[AArch64] Make gdbserver register set selection dynamic
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
eb79b231
LM
12021-11-03 Luis Machado <luis.machado@linaro.org>
2
3 PR gdb/28355
4
5 * linux-aarch64-low.cc (is_sve_tdesc): Remove.
6 (aarch64_target::low_arch_setup): Rework to adjust the register sets.
7 (aarch64_regsets): Update to list all register sets.
8 (aarch64_regsets_info, regs_info_aarch64): Replace NULL with nullptr.
9 (aarch64_sve_regsets, aarch64_sve_regsets_info)
10 (regs_info_aarch64_sve): Remove.
11 (aarch64_adjust_register_sets): New.
12 (aarch64_target::get_regs_info): Remove references to removed structs.
13 (initialize_low_arch): Likewise.
14
9b4d030e
TV
152021-10-04 Tom de Vries <tdevries@suse.de>
16
17 PR build/28318
18 * configure: Regenerate.
19
507af45f
SM
202021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
21
22 * config.in, configure: Re-generate.
23
7e3941ac
MF
242021-06-19 Mike Frysinger <vapier@gentoo.org>
25
26 * acinclude.m4: Delete most m4_include's of ../config files.
27 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
28 * aclocal.m4: Regenerate.
29 * configure: Regenerate.
30
483ab96a
MF
312021-06-14 Mike Frysinger <vapier@gentoo.org>
32
33 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
34 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
35
01add95b
SM
362021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
37
38 * Fix some indentation mistakes throughout.
39
c1c0a7e1
AB
402021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
41
42 * .dir-locals.el: Set sentence-end-double-space for all modes, and
43 set brace-list-open to 0 for C and C++ modes.
44
8d06918f
SM
452021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * linux-low.cc (linux_process_target::wait_for_event_filtered):
48 Adjust to status_to_str returning std::string.
49
4655f850
PA
502021-05-08 Pedro Alves <pedro@palves.net>
51
52 * linux-low.cc:
53 (linux_process_target::supports_disable_randomization): Remove
54 reference to HAVE_PERSONALITY.
55 * config.in, configure: Regenerate.
56
e2ea3a38
PA
572021-05-08 Pedro Alves <pedro@palves.net>
58
59 * linux-low.cc: Don't include sys/personality.h or define
60 ADDR_NO_RANDOMIZE.
61
482155e6
TBA
622021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
63
64 * server.cc (handle_v_attach)
65 (handle_v_run)
66 (handle_v_kill): Make void.
67
82288339
TT
682021-05-03 Tom Tromey <tromey@adacore.com>
69
70 PR build/27807:
71 * win32-i386-low.cc (i386_get_thread_context): Call
72 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
73
e228ef97
TT
742021-04-30 Tom Tromey <tromey@adacore.com>
75
76 * win32-low.cc (do_initial_child_stuff): Update.
77 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
78 Change parameter type.
79 (win32_add_dll, win32_add_all_dlls)
80 (windows_nat::handle_load_dll): Remove.
81 (get_child_debug_event): Call dll_loaded_event.
82
de071872
TT
832021-04-30 Tom Tromey <tromey@adacore.com>
84
85 * win32-low.cc (GETPROCADDRESS): Remove.
86 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
87 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
88 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
89 (win32_Wow64SetThreadContext): Remove.
90 (win32_set_thread_context, do_initial_child_stuff)
91 (win32_process_target::attach, win32_process_target::detach):
92 Update.
93 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
94 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
95 Remove.
96 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
97 (win32_GetModuleInformation, win32_GetModuleInformationA):
98 Remove.
99 (load_psapi): Remove.
100 (win32_add_dll, win32_process_target::request_interrupt): Update.
101 (initialize_low): Call initialize_loadable.
102
38ae2915
TT
1032021-04-14 Tom Tromey <tromey@adacore.com>
104
105 * win32-low.cc (windows_nat::handle_load_dll): Don't check
106 _WIN32_WCE.
107
6cacd449
PA
1082021-04-13 Pedro Alves <pedro@palves.net>
109
110 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
111
1228cb90
TT
1122021-04-13 Tom Tromey <tromey@adacore.com>
113
114 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
115 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
116
0256da25
PA
1172021-04-13 Pedro Alves <pedro@palves.net>
118
119 * Makefile.in (SFILES): Remove hostio-errno.cc.
120 * configure: Regenerate.
121 * configure.ac (GDBSERVER_DEPFILES): No longer add
122 $srv_hostio_err_objs.
123 * configure.srv (srv_hostio_err_objs): Delete.
124 * hostio-errno.cc: Delete.
125 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
126 here.
127 * hostio.h (hostio_last_error_from_errno): Delete.
128 * target.cc (process_stratum_target::hostio_last_error): Delete.
129 * target.h (class process_stratum_target) <hostio_last_error>:
130 Delete.
131
d4717483
SM
1322021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
135 * win32-low.h: Likewise.
136
04977957
TBA
1372021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
138
139 * target.h (class process_stratum_target) <pid_to_exec_file>:
140 Constify the return type. Update the definition/references below.
141 * target.cc (process_stratum_target::pid_to_exec_file)
142 * linux-low.h (class linux_process_target) <pid_to_exec_file>
143 * linux-low.cc (linux_process_target::pid_to_exec_file)
144 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
145 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
146 * server.cc (handle_qxfer_exec_file)
147
114ee2a4
EZ
1482021-04-11 Eli Zaretskii <eliz@gnu.org>
149
150 * win32-low.cc (win32_add_dll): New function, with body almost
151 identical to what win32_add_all_dlls did. Accepts one argument;
152 if that is non-NULL, returns the file name of the DLL that is
153 loaded at the base address equal to that argument, or NULL if not
154 found. If the argument is NULL, add all the DLLs loaded by the
155 inferior to the list of solibs and return NULL.
156 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
157 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
158 failed to glean the file name of the DLL, call win32_add_dll to
159 try harder using the lpBaseOfDll member of the load-DLL event.
160
782c1ab8
LM
1612021-03-30 Luis Machado <luis.machado@linaro.org>
162
163 * server.cc (handle_general_set, handle_query): Update variable
164 to bool and fix verification logic.
165
41919a58
LM
1662021-03-24 Luis Machado <luis.machado@linaro.org>
167
168 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
169 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
170 nat/aarch64-mte-linux-ptrace.o.
171 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
172 (class aarch64_target) <supports_memory_tagging>
173 <fetch_memtags, store_memtags>: New method overrides.
174 (aarch64_target::supports_memory_tagging)
175 (aarch64_target::fetch_memtags)
176 (aarch64_target::store_memtags): New methods.
177
5e984dbf
LM
1782021-03-24 Luis Machado <luis.machado@linaro.org>
179
180 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
181 (aarch64_store_mteregset): New function.
182 (aarch64_regsets): Add MTE register set entry.
183 (aarch64_sve_regsets): Add MTE register set entry.
184
c1bd443b
LM
1852021-03-24 Luis Machado <luis.machado@linaro.org>
186
187 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
188 aarch64_linux_read_description.
189 (initialize_low_tracepoint): Likewise.
190 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
191 into account.
192 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
193 for MTE.
194 (aarch64_linux_read_description): Add mte_p parameter and update to
195 use it.
196 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
197 parameter.
198
04245125
LM
1992021-03-24 Luis Machado <luis.machado@linaro.org>
200
201 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
202
c2cfa654
LM
2032021-03-24 Luis Machado <luis.machado@linaro.org>
204
205 * server.cc (test_memory_tagging_functions): New function.
206 (captured_main): Register test_memory_tagging_functions.
207
546b77fe
LM
2082021-03-24 Luis Machado <luis.machado@linaro.org>
209
210 * remote-utils.cc (decode_m_packet_params): Renamed from ...
211 (decode_m_packet): ... this, which now calls decode_m_packet_params.
212 Make char * param/return const char *.
213 (decode_M_packet): Use decode_m_packet_params and make char * param
214 const char *.
215 * remote-utils.h (decode_m_packet_params): New prototype.
216 (decode_m_packet): Constify char pointers.
217 (decode_M_packet): Likewise.
218 * server.cc (create_fetch_memtags_reply)
219 (parse_store_memtags_request): New
220 functions.
221 (handle_general_set): Handle the QMemTags packet.
222 (parse_fetch_memtags_request): New function.
223 (handle_query): Handle the qMemTags packet and advertise memory
224 tagging support.
225 (captured_main): Initialize memory tagging flag.
226 * server.h (struct client_state): Initialize memory tagging flag.
227 * target.cc (process_stratum_target::supports_memory_tagging)
228 (process_stratum_target::fetch_memtags)
229 (process_stratum_target::store_memtags): New methods.
230 * target.h: Include gdbsupport/byte-vector.h.
231 (class process_stratum_target) <supports_memory_tagging>
232 <fetch_memtags, store_memtags>: New class virtual methods.
233 (target_supports_memory_tagging): Define.
234
d171632f
TBA
2352021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
236
237 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
238 fields.
239 * dll.h (loaded_dll)
240 (unloaded_dll): Declare an overloaded version that takes a proc
241 parameter.
242 * dll.cc (loaded_dll)
243 (unloaded_dll): Implement the overloaded versions.
244 (clear_dlls): Clear all process' dll lists.
245 (all_dlls, dlls_changed): Remove the global variables.
246 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
247 list per proc.
248 * server.cc (handle_qxfer_libraries): Ditto.
249 (handle_v_attach): Ditto.
250 (captured_main): Ditto.
251
1a48f002
SM
2522021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * linux-low.cc (linux_process_target::filter_event): Return
255 void.
256 * linux-low.h (class linux_process_target) <filter_event>:
257 Return void.
258
77fba254
TT
2592021-02-12 Tom Tromey <tromey@adacore.com>
260
261 * gdbreplay.cc (remote_desc): Remove.
262 (remote_desc_in, remote_desc_out): New globals.
263 (remote_close): Update.
264 (remote_open): Handle "-".
265 (remote_open): Update.
266 (logchar): Log to stderr.
267 (expect, play): Update.
268
c054dcd5
TT
2692021-02-12 Tom Tromey <tromey@adacore.com>
270
271 * gdbreplay.cc (remote_open): Constify.
272
9c9d63b1
PM
2732021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
274
275 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
276 gnulib free replacement too.
277 * common-defs.h [USE_WIN32API](read, write): Undefine
278 gnulib versions before defining these macros.
279
7e9cf1fe
PA
2802021-02-03 Pedro Alves <pedro@palves.net>
281
282 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
283 Discard step SIGTRAP, unless GDB wanted the thread to step.
284
b0083dd7
PA
2852021-02-03 Pedro Alves <pedro@palves.net>
286
287 * server.cc (discard_queued_stop_replies): Don't ever discard the
288 notification at the head of the list.
289
6bd434d6
SM
2902021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
291
292 * ax.cc (bytecode_address_table): Make static.
293 * debug.cc (debug_file): Make static.
294 * linux-low.cc (stopping_threads): Make static.
295 (step_over_bkpt): Make static.
296 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
297 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
298 alloced_trace_state_variables, trace_buffer_ctrl,
299 tracing_start_time, tracing_stop_time, tracing_user_name,
300 tracing_notes, tracing_stop_note): Make static.
301
037e8112
TV
3022021-01-20 Tom de Vries <tdevries@suse.de>
303
304 * linux-x86-low.cc (collect_register_i386): New function.
305 (x86_fill_gregset): Remove memset. Use collect_register_i386.
306
78e49486
TV
3072021-01-07 Tom de Vries <tdevries@suse.de>
308
309 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
310 (LIBIBERTY_FOR_SHLIB): New var.
311 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
312 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
313
3ec3145c
SM
3142021-01-04 Simon Marchi <simon.marchi@efficios.com>
315
316 * debug.cc (debug_print_depth): New.
317
2b47c078
JB
3182021-01-01 Joel Brobecker <brobecker@adacore.com>
319
320 * server.cc (gdbserver_version): Update copyright year.
321 * gdbreplay.cc (gdbreplay_version): Likewise.
322
19007d95
LM
3232020-12-16 Luis Machado <luis.machado@linaro.org>
324
325 * linux-aarch64-low.cc (address_significant): New function.
326 (aarch64_target::low_stopped_data_address): Handle the TBI.
327
96648494
AB
3282020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
329
330 * Makefile.in (IPA_LIB): Include libiberty library.
331
81fdd7ac
AB
3322020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * server.cc (gdbserver_usage): Add missing option to usage text.
335 (gdbserver_show_disableable): Likewise.
336
dda83cd7
SM
3372020-11-02 Simon Marchi <simon.marchi@efficios.com>
338
339 * ax.cc: Fix indentation.
340 * dll.cc: Fix indentation.
341 * inferiors.h: Fix indentation.
342 * linux-low.cc: Fix indentation.
343 * linux-nios2-low.cc: Fix indentation.
344 * linux-ppc-ipa.cc: Fix indentation.
345 * linux-ppc-low.cc: Fix indentation.
346 * linux-x86-low.cc: Fix indentation.
347 * linux-xtensa-low.cc: Fix indentation.
348 * regcache.cc: Fix indentation.
349 * server.cc: Fix indentation.
350 * tracepoint.cc: Fix indentation.
351
19dd0ae5
SM
3522020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
353
354 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
355 AC_LANG_PROGRAM.
356 * configure: Re-generate.
357
b6fb30ed
SM
3582020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
359
360 * configure: Re-generate.
864ca435
SM
361
3622020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
363
364 * configure: Re-generate.
b9442ec1
SM
365
3662020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
367
368 * configure: Re-generate.
b6fb30ed 369
5164c117
SM
3702020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * configure: Re-generate.
373
7e8c7130
SM
3742020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * configure.ac: Modernize.
377 * configure: Re-generate.
378
91e1a0ed
SM
3792020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
380
381 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
382 AC_CANONICAL_SYSTEM.
383 * configure: Re-generate.
384
d744f0f9
PA
3852020-10-26 Pedro Alves <pedro@palves.net>
386
387 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
388 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
389 explicit type.
390
006811bc
SM
3912020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * acinclude.m4: Update ptrace.m4 path.
394
92a048fd
SM
3952020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * config.in: Re-generate.
398 * configure: Re-generate.
399
4dbe16c8
SM
4002020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
401
402 * server.cc (handle_general_set): Don't use sprintf with
403 argument overlapping buffer.
404
a9b45cb7
TT
4052020-10-20 Tom Tromey <tromey@adacore.com>
406
407 PR gdb/26742:
408 * inferiors.cc (remove_thread): Clear current_thread before
409 freeing the thread.
410
b07993f6
KR
4112020-10-13 Kamil Rytarowski <n54@gmx.com>x
412
413 * netbsd-low.cc (netbsd_tdesc): Remove.
414 (netbsd_add_process): Likewise.
415 (netbsd_process_target::create_inferior): Update.
416
bbb826f5
AB
4172020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
418
419 * linux-arc-low.cc (arc_linux_read_description): Release the
420 unique_ptr returned from arc_create_target_description.
421
361cb219
AB
4222020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
423
424 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
425 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
426
51a948fd
AB
4272020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 * linux-low.cc (linux_process_target::handle_extended_wait):
430 Release the unique_ptr returned from allocate_target_description.
431 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
432 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
433 (tdesc_i386_linux_no_xml): Change type.
434 (x86_linux_read_description): Borrow pointer from unique_ptr
435 object.
436 (x86_target::get_ipa_tdesc_idx): Likewise.
437 (initialize_low_arch): Likewise.
438 * tdesc.cc (allocate_target_description): Update return type.
439
60b74662
TT
4402020-10-07 Tom Tromey <tromey@adacore.com>
441
442 * server.cc (handle_search_memory): Remove dead code.
443
55b10d89
TT
4442020-10-07 Tom Tromey <tromey@adacore.com>
445
446 * server.cc (handle_search_memory_1): Remove.
447 (handle_search_memory): Use simple_search_memory.
448
a038ffd8
SM
4492020-10-07 Simon Marchi <simon.marchi@efficios.com>
450
451 * Makefile.in (COMPILE): Add CXXFLAGS.
452 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
453 (gdbserver$(EXEEXT)): Add CXXFLAGS.
454 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
455 ($(IPA_LIB)): Add CXXFLAGS.
456 (IPAGENT_COMPILE): Add CXXFLAGS.
457
bbe90b5d 4582020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
459
460 * configure.srv: Support ARC architecture.
461 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
462 * linux-arc-low.cc: New file.
463
48491055
KR
4642020-10-07 Kamil Rytarowski <n54@gmx.com>
465
466 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
467 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
468 (netbsd_process_target::qxfer_libraries_svr4): Update.
469
2be01f63
KR
4702020-10-07 Kamil Rytarowski <n54@gmx.com>
471
472 * netbsd-low.cc: Fix whitespace formatting.
473 * netbsd-amd64-low.cc: Likewise.
474
91e5e8db
KR
4752020-10-07 Kamil Rytarowski <n54@gmx.com>
476
477 * netbsd-low.cc (netbsd_process_target::read_memory)
478 (netbsd_process_target::write_memory): Update.
479
9529c852
KR
4802020-10-07 Kamil Rytarowski <n54@gmx.com>
481
482 * netbsd-aarch64-low.cc: Add.
483 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
484 * configure.srv: Add aarch64*-*-netbsd*.
485
981b570a
SV
4862020-10-06 Shahab Vahedi <shahab@synopsys.com>
487
488 * regcache.cc (register_data): Remove unused "fetch" argument.
489
6b01403b
SM
4902020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
491
492 * server.cc (handle_monitor_command): Handle "set
493 debug-event-loop".
494 (captured_main): Handle "--debug-event-loop".
495 (monitor_show_help): Mention new setting.
496 (gdbserver_usage): Mention new flag.
497
2554f6f5
SM
4982020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
499
500 * linux-low.cc (linux_process_target::async): Pass name to
501 add_file_handler.
502 * remote-utils.cc (handle_accept_event): Likewise.
503 (remote_open): Likewise.
504
8b667fae
KR
5052020-10-01 Kamil Rytarowski <n54@gmx.com>
506
507 * netbsd-i386-low.cc: Add.
508 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
509 * configure.srv: Add i[34567]86-*-netbsd*.
510
15397b0e
KR
5112020-10-01 Kamil Rytarowski <n54@gmx.com>
512
513 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
514 (netbsd_target_regsets): Now const.
515 (the_low_target): Remove.
516 (class netbsd_amd64_target, the_netbsd_amd64_target)
517 (the_netbsd_target): Add.
518 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
519 low_arch_setup ().
520 (netbsd_process_target::fetch_registers)
521 (netbsd_process_target::store_registers, initialize_low): Update.
522 (the_netbsd_target): Remove.
523 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
524 (the_low_target, netbsd_tdesc): Remove.
525 (netbsd_process_target::get_regs_info)
526 (netbsd_process_target::low_arch_setup): Add.
527
99bb393f
HD
5282020-09-23 Hannes Domani <ssbssa@yahoo.de>
529
530 * win32-low.cc: Remove local wow64_process variable.
531 * win32-low.h: Remove local wow64_process variable.
532
b60cea74
TT
5332020-09-18 Tom Tromey <tromey@adacore.com>
534
535 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
536 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
537 (netbsd_process_target::wait): Change type of target_options.
538 * win32-low.h (class win32_process_target) <wait>: Update.
539 * win32-low.cc (win32_process_target::wait): Update.
540 * target.h (class process_stratum_target) <wait>: Update.
541 (mywait): Update.
542 * target.cc (mywait, target_wait): Change type of "options".
543 * linux-low.h (class linux_process_target) <wait, wait_1>:
544 Update.
545 * linux-low.cc (linux_process_target::wait)
546 (linux_process_target::wait_1): Update.
547
db92ac45
TT
5482020-09-15 Tom Tromey <tromey@adacore.com>
549
550 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
551 (xmltarget_amd64_linux_no_xml): Now arrays.
552
27087b7f
TT
5532020-09-14 Tom Tromey <tromey@adacore.com>
554
555 * tracepoint.cc (eval_result_names): Now const.
556 * ax.cc (gdb_agent_op_names): Now const.
557
62ba5048
KR
5582020-09-10 Kamil Rytarowski <n54@gmx.com>
559
560 * netbsd-low.cc: Add.
561 * netbsd-low.h: Likewise.
562 * netbsd-amd64-low.cc: Likewise.
563 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
564 "netbsd-amd64-low.cc".
565 * configure.srv: Add x86_64-*-netbsd*.
566
ece5bc8a
SM
5672020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
568
569 * server.cc (captured_main): Accept multiple `--selftest=`
570 options. Pass all `--selftest=` arguments to run_tests.
571
c8693053
RO
5722020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
573
574 * configure, config.in: Regenerate.
575
05a6b8c2
EZ
5762020-07-26 Eli Zaretskii <eliz@gnu.org>
577
578 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
579 When checking whether socklen_t type is defined, use ws2tcpip.h if
580 it is available and sys/socket.h isn't.
581 * configure: Regenerate.
582 * config.in: Regenerate.
583
028a4603
PA
5842020-07-22 Pedro Alves <pedro@palves.net>
585
586 * inferiors.cc (switch_to_process): New, moved here from
587 thread-db.cc, and made extern.
588 * inferiors.h (switch_to_process): Declare.
589 * server.cc: Include "gdbsupport/scoped_restore.h".
590 (handle_qxfer_threads_proper): Now returns bool. Prepare to
591 access memory around target calls.
592 (handle_qxfer_threads): Handle errors.
593 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
594
05c309a8
SM
5952020-07-21 Simon Marchi <simon.marchi@efficios.com>
596
597 * linux-low.cc (stopped_pids): Make static.
598
0e267416
AB
5992020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
600
601 * tdesc.cc (allocate_target_description): Add header comment.
602 (target_desc_deleter::operator()): New function.
603 * tdesc.h (struct target_desc): Declare as final.
604
b315b67d
SM
6052020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
606
607 * server.cc (handle_query): Use std::vector of
608 std::string for `qsupported` vector. Use separate
609 vector for unknowns.
610 * target.h (class process_stratum_target) <process_qsupported>:
611 Change parameters to array_view of const char *.
612 (target_process_qsupported): Remove `count` parameter.
613 * target.cc (process_stratum_target::process_qsupported): Change
614 parameters to array_view of const char *.
615 * linux-x86-low.cc (class x86_target) <process_qsupported>:
616 Likewise.
617
f638ed73
TV
6182020-06-29 Tom de Vries <tdevries@suse.de>
619
620 * ax.h: Include gdbsupport/debug_agent.h.
621
fbf42f4e
AB
6222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
623
624 * tdesc.cc (struct tdesc_compatible_info): New struct.
625 (tdesc_compatible_info_list): New function.
626 (tdesc_compatible_info_arch_name): New function.
627
013e3554
TBA
6282020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
629
630 Use std::list to stop pending signal instead of manually-created
631 linked list.
632 * linux-low.h: Include <list>.
633 (struct pending_signal): Move here from linux-low.cc.
634 (struct lwp_info) <pending_signals>
635 <pending_signals_to_report>: Update the type.
636 * linux-low.cc (struct pending_signals): Remove.
637 (linux_process_target::delete_lwp)
638 (linux_process_target::add_lwp)
639 (enqueue_one_deferred_signal)
640 (dequeue_one_deferred_signal)
641 (enqueue_pending_signal)
642 (linux_process_target::resume_one_lwp_throw)
643 (linux_process_target::thread_needs_step_over)
644 (linux_process_target::resume_one_thread)
645 (linux_process_target::proceed_one_lwp): Update the use of pending
646 signal list.
647
7d458ea5
SM
6482020-06-17 Simon Marchi <simon.marchi@efficios.com>
649
650 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
651 Remove.
652
84b300de
SM
6532020-06-12 Simon Marchi <simon.marchi@efficios.com>
654
655 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
656 * configure.srv: Remove mingw32ce cases.
657 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
658 * win32-low.h (to_back_slashes): Remove.
659 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
660
96c16e2b
SM
6612020-06-12 Simon Marchi <simon.marchi@efficios.com>
662
663 * Makefile.in (SFILES): linux-tile-low.cc.
664 * configure.srv: Remove tilegx case.
665 * linux-tile-low.cc: Remove.
666
bd1467ae
SM
6672020-06-12 Simon Marchi <simon.marchi@efficios.com>
668
669 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
670 * configure.srv: Remove m32r case.
671 * linux-m32r-low.cc: Remove.
672
7b46bf6f
SM
6732020-06-12 Simon Marchi <simon.marchi@efficios.com>
674
675 * Makefile.in (SFILES): Remove linux-cris-low.c.
676 * configure.srv: Remove cris cases.
677 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
678
1fa29f56
SM
6792020-06-12 Simon Marchi <simon.marchi@efficios.com>
680
681 * Makefile.in (SFILES): Remove linux-bfin-low.c.
682 * configure.srv: Remove bfin case.
683 * linux-bfin-low.cc: Remove.
684 * linux-low.cc: Remove BFIN-conditional code.
685
613f149a
SM
6862020-06-12 Simon Marchi <simon.marchi@efficios.com>
687
688 * configure: Re-generate.
689 * configure.ac: Remove srv_qnx test.
690 * configure.srv: Remove nto case.
691 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
692 * remote-utils.c: Remove __QNX__-guarded code.
693
fdb95bf5
SM
6942020-06-12 Simon Marchi <simon.marchi@efficios.com>
695
696 * configure: Re-generate.
697 * configure.ac: Remove srv_lynxos test.
698 * configure.srv: Remove lynxos cases.
699 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
700 Remove.
701
c00094dc
SM
7022020-06-12 Simon Marchi <simon.marchi@efficios.com>
703
704 * README: Fix a few outdated or incoherent things.
705
6479bf85
HD
7062020-05-27 Hannes Domani <ssbssa@yahoo.de>
707
708 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
709 (win32_clear_inferiors): Use open_process_used.
710 (get_child_debug_event): Likewise.
711
bea571eb
MW
7122020-05-25 Michael Weghorn <m.weghorn@posteo.de>
713
714 PR gdbserver/25893
715 * linux-low.cc (linux_process_target::create_inferior),
716 lynx-low.cc (lynx_process_target::create_inferior),
717 win32-low.cc (win32_process_target::create_inferior): Use
718 construct_inferior_arguments instead of stringify_argv
719 to get string representation which properly escapes
720 special characters.
721 * server.cc (handle_v_run): Just pass empty program arg
722 as such, since any further processing is now handled via
723 construct_inferior_arguments.
724
ace6b919
MW
7252020-05-25 Michael Weghorn <m.weghorn@posteo.de>
726
727 * nto-low.cc (nto_process_target::create_inferior): Pass
728 argv to spawnp function as char **.
729
b69ca137
MW
7302020-05-25 Michael Weghorn <m.weghorn@posteo.de>
731
732 * server.cc (captured_main), (handle_v_run): No longer
733 insert extra NULL element to args vector.
734
51e2cfa2
PA
7352020-05-23 Pedro Alves <palves@redhat.com>
736
737 * gdb-safe-ctype.h: New.
738
8bbf0394
TBA
7392020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
740
741 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
742 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
743 (ia64_target::low_breakpoint_at): Ditto.
744
01370779
HD
7452020-05-15 Hannes Domani <ssbssa@yahoo.de>
746
747 * win32-i386-low.cc (i386_supports_z_point_type): Handle
748 Z_PACKET_HW_BP z_type.
749 (i386_insert_point): Handle raw_bkpt_type type.
750 (i386_remove_point): Likewise.
751
7d186bc0
HD
7522020-04-30 Hannes Domani <ssbssa@yahoo.de>
753
754 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
755 Add arch/i386.o.
756 * win32-arm-low.cc (arm_num_regs): New function.
757 (struct win32_target_ops): Use arm_num_regs.
758 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
759 processes.
760 (i386_get_thread_context): Likewise.
761 (i386_prepare_to_resume): Likewise.
762 (i386_thread_added): Likewise.
763 (i386_single_step): Likewise.
764 (i386_fetch_inferior_register): Likewise.
765 (i386_store_inferior_register): Likewise.
766 (i386_arch_setup): Likewise.
767 (i386_win32_num_regs): New function.
768 (struct win32_target_ops): Use i386_win32_num_regs.
769 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
770 processes.
771 (win32_require_context): Likewise.
772 (child_add_thread): Likewise.
773 (do_initial_child_stuff): Likewise.
774 (continue_one_thread): Likewise.
775 (win32_process_target::resume): Likewise.
776 (load_psapi): Likewise.
777 (win32_add_all_dlls): Likewise.
778 (maybe_adjust_pc): Likewise.
779 (win32_process_target::qxfer_siginfo): Likewise.
780 (initialize_low): Likewise.
781 * win32-low.h (struct win32_target_ops): Change num_regs to
782 callback function.
783
1eb39914
SM
7842020-04-27 Simon Marchi <simon.marchi@efficios.com>
785
786 * configure.ac: Remove check for fs_base/gs_base in
787 user_regs_struct.
788 * configure: Re-generate.
789 * config.in: Re-generate.
790 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
791 x86_store_gregset): Adjust.
792
51ac8e22
HD
7932020-04-22 Hannes Domani <ssbssa@yahoo.de>
794
795 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
796 comparison.
797
a010605f
TT
7982020-04-16 Tom Tromey <tromey@adacore.com>
799
800 * win32-low.cc (windows_nat::handle_access_violation): New
801 function.
802
e2275c6e
SM
8032020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
804
805 * win32-low.cc (get_child_debug_event): Fix format string warning.
806
73944e9f
TT
8072020-04-13 Tom Tromey <tom@tromey.com>
808
809 * server.h (gdb_fildes_t): Remove typedef.
810 * remote-utils.c (remote_desc, list_desc): Now int.
811 (INVALID_DESCRIPTOR): Remove.
812 (gdb_connected, remote_close)
813 (check_remote_input_interrupt_request): Update.
814 * utils.h (pfildes): Don't declare.
815 * utils.c (pfildes): Remove.
816
55d7aec8
TT
8172020-04-13 Tom Tromey <tom@tromey.com>
818
819 * server.h (handle_serial_event, handle_target_event): Update.
820 * server.c: Don't call initialize_event_loop.
821 (keep_processing_events): New global.
822 (handle_serial_event): Return void. Set keep_processing_events.
823 (handle_target_event): Return void.
824 (start_event_loop): Move from event-loop.c. Rewrite.
825 * remote-utils.c (handle_accept_event): Return void.
826 (reset_readchar): Use delete_timer.
827 (process_remaining): Return void.
828 (reschedule): Use create_timer.
829 * event-loop.h: Remove.
830 * event-loop.cc: Remove.
831 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
832
e487f994
TT
8332020-04-13 Tom Tromey <tom@tromey.com>
834
835 * server.c (invoke_async_signal_handlers)
836 (check_async_event_handlers, flush_streams, gdb_select): New
837 functions.
838
8ae8e197
TT
8392020-04-13 Tom Tromey <tom@tromey.com>
840
841 * configure: Rebuild.
842 * config.in: Rebuild.
843
360ad8b3
TT
8442020-04-08 Tom Tromey <tromey@adacore.com>
845
846 PR gdb/22992
847 * win32-low.c (child_continue): Call matching_pending_stop.
848 (get_child_debug_event): Call fetch_pending_stop. Push pending
849 stop when needed.
850
523d4f80
TT
8512020-04-08 Tom Tromey <tromey@adacore.com>
852
853 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
854 (win32_process_target::supports_stopped_by_sw_breakpoint):
855 Declare.
856 * win32-low.c (win32_supports_z_point_type): Always handle
857 Z_PACKET_SW_BP.
858 (win32_insert_point): Call insert_memory_breakpoint when needed.
859 (win32_remove_point): Call remove_memory_breakpoint when needed.
860 (win32_process_target::stopped_by_sw_breakpoint)
861 (win32_process_target::supports_stopped_by_sw_breakpoint): New
862 methods.
863 (win32_target_ops): Update.
864 (maybe_adjust_pc): New function.
865 (win32_wait): Call maybe_adjust_pc.
866
e54e5929
TT
8672020-04-08 Tom Tromey <tromey@adacore.com>
868
869 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
870 field.
871 * win32-i386-low.c (the_low_target): Update.
872 * win32-arm-low.c (the_low_target): Update.
873
d6225aff
TT
8742020-04-08 Tom Tromey <tromey@adacore.com>
875
876 * win32-low.h (win32_process_target::read_pc)
877 (win32_process_target::write_pc): Declare.
878 * win32-low.c (win32_process_target::read_pc)
879 (win32_process_target::write_pc): New methods.
880 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
881 functions.
882 (the_low_target): Update.
883 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
884 functions.
885 (the_low_target): Update.
886
2c1d95e8
TT
8872020-04-08 Tom Tromey <tromey@adacore.com>
888
889 * win32-low.c (win32_kill, get_child_debug_event): Use
890 wait_for_debug_event.
891
e758e19c
TT
8922020-04-08 Tom Tromey <tromey@adacore.com>
893
894 * win32-low.c (child_continue): Call continue_last_debug_event.
895
8d30e395
TT
8962020-04-08 Tom Tromey <tromey@adacore.com>
897
898 * win32-low.c (handle_exception): Remove.
899 (windows_nat::handle_ms_vc_exception): New function.
900 (get_child_debug_event): Add "continue_status" parameter.
901 Update.
902 (win32_wait): Update.
903
a816ba18
TT
9042020-04-08 Tom Tromey <tromey@adacore.com>
905
906 * win32-low.c (windows_nat::handle_load_dll): Rename from
907 handle_load_dll. No longer static.
908 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
909 No longer static.
910
d41b524f
TT
9112020-04-08 Tom Tromey <tromey@adacore.com>
912
913 * win32-low.c (handle_output_debug_string): Add parameter. Change
914 return type.
915 (win32_kill, get_child_debug_event): Update.
916
3c76026d
TT
9172020-04-08 Tom Tromey <tromey@adacore.com>
918
919 * win32-low.c (current_process_handle, current_process_id)
920 (main_thread_id, last_sig, current_event, siginfo_er): Move to
921 nat/windows-nat.c.
922
9d8679cc
TT
9232020-04-08 Tom Tromey <tromey@adacore.com>
924
925 * win32-low.c (get_image_name): Remove.
926 (handle_load_dll): Update.
927
28688adf
TT
9282020-04-08 Tom Tromey <tromey@adacore.com>
929
930 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
931 No longer static. Change parameters.
932 (child_add_thread, child_fetch_inferior_registers)
933 (child_store_inferior_registers, win32_resume)
934 (win32_get_tib_address): Update.
935
4834dad0
TT
9362020-04-08 Tom Tromey <tromey@adacore.com>
937
938 * win32-low.h (struct win32_target_ops): Use qualified names where
939 needed.
940 * win32-i386-low.c: Add "using namespace".
941 * win32-low.c: Add "using namespace".
942 * win32-arm-low.c: Add "using namespace".
943
65bafd5b
TT
9442020-04-08 Tom Tromey <tromey@adacore.com>
945
946 * win32-low.c (delete_thread_info): Don't call CloseHandle.
947
98a03287
TT
9482020-04-08 Tom Tromey <tromey@adacore.com>
949
950 * win32-low.c (win32_require_context, suspend_one_thread): Use
951 windows_thread_info::suspend.
952 (continue_one_thread): Use windows_thread_info::resume.
953 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
954
62fe396b
TT
9552020-04-08 Tom Tromey <tromey@adacore.com>
956
957 * win32-i386-low.c (update_debug_registers)
958 (i386_prepare_to_resume, i386_thread_added): Update.
959
e9534bd2
TT
9602020-04-08 Tom Tromey <tromey@adacore.com>
961
962 * win32-low.c (child_add_thread): Use new.
963 (delete_thread_info): Use delete.
964
ae1f8880
TT
9652020-04-08 Tom Tromey <tromey@adacore.com>
966
967 * win32-low.h (struct windows_thread_info): Remove.
968
e56f8ccb
TT
9692020-04-08 Tom Tromey <tromey@adacore.com>
970
971 * win32-low.h (struct windows_thread_info): Rename from
972 win32_thread_info. Remove typedef.
973 (struct win32_target_ops, win32_require_context): Update.
974 * win32-low.c (win32_get_thread_context)
975 (win32_set_thread_context, win32_prepare_to_resume)
976 (win32_require_context, thread_rec, child_add_thread)
977 (delete_thread_info, continue_one_thread)
978 (child_fetch_inferior_registers, child_store_inferior_registers)
979 (win32_resume, suspend_one_thread, win32_get_tib_address):
980 Update.
981 * win32-i386-low.c (update_debug_registers)
982 (win32_get_current_dr, i386_get_thread_context)
983 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
984 (i386_fetch_inferior_register, i386_store_inferior_register):
985 Update.
986 * win32-arm-low.c (arm_get_thread_context)
987 (arm_fetch_inferior_register, arm_store_inferior_register):
988 Update.
989
0dd7b52e
TBA
9902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
991
992 * linux-low.h (struct linux_target_ops): Remove.
993 (the_low_target): Remove.
994 * linux-x86-low.cc (the_low_target): Remove.
995 * linux-aarch64-low.cc (the_low_target): Ditto.
996 * linux-arm-low.cc (the_low_target): Ditto.
997 * linux-bfin-low.cc (the_low_target): Ditto.
998 * linux-cris-low.cc (the_low_target): Ditto.
999 * linux-crisv32-low.cc (the_low_target): Ditto.
1000 * linux-ia64-low.cc (the_low_target): Ditto.
1001 * linux-m32r-low.cc (the_low_target): Ditto.
1002 * linux-m68k-low.cc (the_low_target): Ditto.
1003 * linux-mips-low.cc (the_low_target): Ditto.
1004 * linux-nios2-low.cc (the_low_target): Ditto.
1005 * linux-ppc-low.cc (the_low_target): Ditto.
1006 * linux-riscv-low.cc (the_low_target): Ditto.
1007 * linux-s390-low.cc (the_low_target): Ditto.
1008 * linux-sh-low.cc (the_low_target): Ditto.
1009 * linux-sparc-low.cc (the_low_target): Ditto.
1010 * linux-tic6x-low.cc (the_low_target): Ditto.
1011 * linux-tile-low.cc (the_low_target): Ditto.
1012 * linux-xtensa-low.cc (the_low_target): Ditto.
1013
fc5ecdb6
TBA
10142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1015
1016 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
1017 linux target define the op by overriding the declaration in
1018 process_stratum_target.
1019
1020 * linux-low.h (struct linux_target_ops): Remove the op.
1021 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
1022 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
1023 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
1024 (x86_get_ipa_tdesc_idx): Turn into...
1025 (x86_target::get_ipa_tdesc_idx): ...this.
1026 (the_low_target): Remove the op field.
1027 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
1028 (ppc_get_ipa_tdesc_idx): Turn into...
1029 (ppc_target::get_ipa_tdesc_idx): ...this.
1030 (the_low_target): Remove the op field.
1031 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
1032 (s390_get_ipa_tdesc_idx): Turn into...
1033 (s390_target::get_ipa_tdesc_idx): ...this.
1034 (the_low_target): Remove the op field.
1035
9eedd27d
TBA
10362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1037
1038 Turn the 'get_syscall_trapinfo' linux target op into a method
1039 of process_stratum_target.
1040
1041 * linux-low.h (struct linux_target_ops): Remove the op.
1042 (class linux_process_target) <get_syscall_trapinfo>
1043 <gdb_catch_this_syscall>
1044 <low_supports_catch_syscall>
1045 <low_get_syscall_trapinfo>: Declare.
1046 * linux-low.cc (get_syscall_trapinfo): Turn into...
1047 (linux_process_target::get_syscall_trapinfo): ...this.
1048 (linux_process_target::low_get_syscall_trapinfo): Define.
1049 (gdb_catch_this_syscall_p): Turn into...
1050 (linux_process_target::gdb_catch_this_syscall): ...this.
1051 (linux_process_target::low_supports_catch_syscall): Define.
1052
1053 Update the callers below.
1054
1055 (linux_process_target::wait_1)
1056 (linux_process_target::supports_catch_syscall)
1057
1058 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
1059 <low_get_syscall_trapinfo>: Declare.
1060 (x86_target::low_supports_catch_syscall): Define.
1061 (x86_get_syscall_trapinfo): Turn into...
1062 (x86_target::low_get_syscall_trapinfo): ...this.
1063 (the_low_target): Remove the op field.
1064 * linux-aarch64-low.cc (class aarch64_target)
1065 <low_supports_catch_syscall>
1066 <low_get_syscall_trapinfo>: Declare.
1067 (aarch64_target::low_supports_catch_syscall): Define.
1068 (aarch64_get_syscall_trapinfo): Turn into...
1069 (aarch64_target::low_get_syscall_trapinfo): ...this.
1070 (the_low_target): Remove the op field.
1071 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1072 <low_get_syscall_trapinfo>: Declare.
1073 (arm_target::low_supports_catch_syscall): Define.
1074 (arm_get_syscall_trapinfo): Turn into...
1075 (arm_target::low_get_syscall_trapinfo): ...this.
1076 (the_low_target): Remove the op field.
1077 * linux-ppc-low.cc (the_low_target): Remove the op field.
1078 * linux-s390-low.cc (the_low_target): Remove the op field.
1079
b31cdfa6
TBA
10802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1081
1082 Remove the 'supports_hardware_single_step' linux target op and
1083 override the process_stratum_target's op definition in
1084 linux_process_target to return true.
1085
1086 * linux-low.h (struct linux_target_ops): Remove the op.
1087 (class linux_process_target) <finish_step_over>
1088 <maybe_hw_step>: Declare.
1089 * linux-low.cc (can_hardware_single_step): Remove.
1090 (maybe_hw_step): Turn into...
1091 (linux_process_target::maybe_hw_step): ...this.
1092 (finish_step_over): Turn into...
1093 (linux_process_target::finish_step_over): ...this.
1094 (linux_process_target::supports_hardware_single_step): Update
1095 to return true.
1096
1097 Update the callers below.
1098
1099 (linux_process_target::single_step)
1100 (linux_process_target::resume_one_lwp_throw)
1101
1102 * linux-arm-low.cc (class arm_target)
1103 <supports_hardware_single_step>: Declare.
1104 (arm_supports_hardware_single_step): Turn into...
1105 (arm_target::supports_hardware_single_step): ...this.
1106 (the_low_target): Remove the op field.
1107 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1108 (the_low_target): Remove the op field.
1109 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1110 Remove.
1111 (the_low_target): Remove the op field.
1112 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1113 (the_low_target): Remove the op field.
1114 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1115 (the_low_target): Remove the op field.
1116 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1117 (the_low_target): Remove the op field.
1118 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1119 (the_low_target): Remove the op field.
1120 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1121 (the_low_target): Remove the op field.
1122 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1123 (the_low_target): Remove the op field.
1124 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1125 (the_low_target): Remove the op field.
1126 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1127 (the_low_target): Remove the op field.
1128 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1129 (the_low_target): Remove the op field.
1130 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1131 Remove.
1132 (the_low_target): Remove the op field.
1133
9cfd8715
TBA
11342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1135
1136 Turn the 'supports_range_stepping' linux target op into a method
1137 of linux_process_target.
1138
1139 * linux-low.h (struct linux_target_ops): Remove the op.
1140 (class linux_process_target) <low_supports_range_stepping>: Declare.
1141 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1142 Define.
1143 (linux_process_target::supports_range_stepping): Update the call
1144 site.
1145 * linux-x86-low.cc (class x86_target)
1146 <low_supports_range_stepping>: Declare.
1147 (x86_supports_range_stepping): Turn into...
1148 (x86_target::low_supports_range_stepping): ...this.
1149 (the_low_target): Remove the op field.
1150 * linux-aarch64-low.cc (class aarch64_target)
1151 <low_supports_range_stepping>: Declare.
1152 (aarch64_supports_range_stepping): Turn into...
1153 (aarch64_target::low_supports_range_stepping): ...this.
1154 (the_low_target): Remove the op field.
1155 * linux-arm-low.cc (the_low_target): Remove the op field.
1156 * linux-bfin-low.cc (the_low_target): Ditto.
1157 * linux-crisv32-low.cc (the_low_target): Ditto.
1158 * linux-m32r-low.cc (the_low_target): Ditto.
1159 * linux-m68k-low.cc (the_low_target): Ditto.
1160 * linux-ppc-low.cc (the_low_target): Ditto.
1161 * linux-s390-low.cc (the_low_target): Ditto.
1162 * linux-sh-low.cc (the_low_target): Ditto.
1163 * linux-tic6x-low.cc (the_low_target): Ditto.
1164 * linux-tile-low.cc (the_low_target): Ditto.
1165 * linux-xtensa-low.cc (the_low_target): Ditto.
1166
ab64c999
TBA
11672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1168
1169 Remove the 'emit_ops' linux target ops and let the concrete
1170 linux target define the op by overriding the declaration of
1171 process_stratum_target.
1172
1173 * linux-low.h (struct linux_target_ops): Remove the op.
1174 (class linux_process_target) <emit_ops>: Remove.
1175 * linux-low.cc (linux_process_target::emit_ops): Remove.
1176 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1177 (x86_emit_ops): Turn into...
1178 (x86_target::emit_ops): ...this.
1179 (the_low_target): Remove the op field.
1180 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1181 (aarch64_emit_ops): Turn into...
1182 (aarch64_target::emit_ops): ...this.
1183 (the_low_target): Remove the op field.
1184 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1185 (ppc_emit_ops): Turn into...
1186 (ppc_target::emit_ops): ...this.
1187 (the_low_target): Remove the op field.
1188 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1189 (s390_emit_ops): Turn into...
1190 (s390_target::emit_ops): ...this.
1191 (the_low_target): Remove the op field.
1192 * linux-arm-low.cc (the_low_target): Remove the op field.
1193 * linux-bfin-low.cc (the_low_target): Ditto.
1194 * linux-crisv32-low.cc (the_low_target): Ditto.
1195 * linux-m32r-low.cc (the_low_target): Ditto.
1196 * linux-m68k-low.cc (the_low_target): Ditto.
1197 * linux-sh-low.cc (the_low_target): Ditto.
1198 * linux-tic6x-low.cc (the_low_target): Ditto.
1199 * linux-tile-low.cc (the_low_target): Ditto.
1200 * linux-xtensa-low.cc (the_low_target): Ditto.
1201
809a0c35
TBA
12022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1203
1204 Remove the 'install_fast_tracepoint_jump_pad' and
1205 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1206 concrete linux target define the ops by overriding the declarations
1207 of process_stratum_target.
1208
1209 * linux-low.h (struct linux_target_ops): Remove the ops.
1210 (class linux_process_target) <supports_fast_tracepoints>
1211 <install_fast_tracepoint_jump_pad>
1212 <get_min_fast_tracepoint_insn_len>: Remove.
1213 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1214 (linux_process_target::install_fast_tracepoint_jump_pad)
1215 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1216 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1217 <install_fast_tracepoint_jump_pad>
1218 <get_min_fast_tracepoint_insn_len>: Declare.
1219 (x86_target::supports_fast_tracepoints): Define.
1220 (x86_install_fast_tracepoint_jump_pad): Turn into...
1221 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1222 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1223 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1224 (the_low_target): Remove the op fields.
1225 * linux-aarch64-low.cc (class aarch64_target)
1226 <supports_fast_tracepoints>
1227 <install_fast_tracepoint_jump_pad>
1228 <get_min_fast_tracepoint_insn_len>: Declare.
1229 (aarch64_target::supports_fast_tracepoints): Define.
1230 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1231 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1232 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1233 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1234 (the_low_target): Remove the op fields.
1235 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1236 <install_fast_tracepoint_jump_pad>
1237 <get_min_fast_tracepoint_insn_len>: Declare.
1238 (ppc_target::supports_fast_tracepoints): Define.
1239 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1240 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1241 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1242 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1243 (the_low_target): Remove the op fields.
1244 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1245 <install_fast_tracepoint_jump_pad>
1246 <get_min_fast_tracepoint_insn_len>: Declare.
1247 (s390_target::supports_fast_tracepoints): Define.
1248 (s390_install_fast_tracepoint_jump_pad): Turn into...
1249 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1250 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1251 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1252 (the_low_target): Remove the op fields.
1253 * linux-arm-low.cc (the_low_target): Remove the op fields.
1254 * linux-bfin-low.cc (the_low_target): Ditto.
1255 * linux-crisv32-low.cc (the_low_target): Ditto.
1256 * linux-m32r-low.cc (the_low_target): Ditto.
1257 * linux-m68k-low.cc (the_low_target): Ditto.
1258 * linux-sh-low.cc (the_low_target): Ditto.
1259 * linux-tic6x-low.cc (the_low_target): Ditto.
1260 * linux-tile-low.cc (the_low_target): Ditto.
1261 * linux-xtensa-low.cc (the_low_target): Ditto.
1262
13e567af
TBA
12632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1264
1265 Turn the 'get_thread_area' linux target op into a method of
1266 process_stratum_target.
1267
1268 * linux-low.h (struct linux_target_ops): Remove the op.
1269 (class linux_process_target) <stuck_in_jump_pad>
1270 <linux_fast_tracepoint_collecting>
1271 <low_get_thread_area>: Declare.
1272 * linux-low.cc (supports_fast_tracepoints): Remove.
1273 (linux_fast_tracepoint_collecting): Turn into...
1274 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1275 (linux_process_target::low_get_thread_area): Define.
1276 (stuck_in_jump_pad_callback): Turn into...
1277 (linux_process_target::stuck_in_jump_pad): ...this.
1278
1279 Update the caller below.
1280
1281 (linux_process_target::stabilize_threads)
1282
1283 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1284 Declare.
1285 (x86_get_thread_area): Turn into...
1286 (x86_target::low_get_thread_area): ...this.
1287 (the_low_target): Remove the op field.
1288 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1289 Declare.
1290 (aarch64_get_thread_area): Turn into...
1291 (aarch64_target::low_get_thread_area): ...this.
1292 (the_low_target): Remove the op field.
1293 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1294 Declare.
1295 (ppc_get_thread_area): Turn into...
1296 (ppc_target::low_get_thread_area): ...this.
1297 (the_low_target): Remove the op field.
1298 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1299 Declare.
1300 (s390_get_thread_area): Turn into...
1301 (s390_target::low_get_thread_area): ...this.
1302 (the_low_target): Remove the op field.
1303 * linux-arm-low.cc (the_low_target): Remove the op field.
1304 * linux-bfin-low.cc (the_low_target): Ditto.
1305 * linux-crisv32-low.cc (the_low_target): Ditto.
1306 * linux-m32r-low.cc (the_low_target): Ditto.
1307 * linux-m68k-low.cc (the_low_target): Ditto.
1308 * linux-sh-low.cc (the_low_target): Ditto.
1309 * linux-tic6x-low.cc (the_low_target): Ditto.
1310 * linux-tile-low.cc (the_low_target): Ditto.
1311 * linux-xtensa-low.cc (the_low_target): Ditto.
1312
47f70aa7
TBA
13132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1314
1315 Remote the 'supports_tracepoints' linux target op and let the
1316 concrete linux target define it by overriding the op declared in
1317 process_stratum_target.
1318
1319 * linux-low.h (struct linux_target_ops): Remove the op.
1320 (class linux_process_target) <supports_tracepoints>: Remove.
1321 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1322 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1323 Declare.
1324 (x86_supports_tracepoints): Turn into...
1325 (x86_target::supports_tracepoints): ...this.
1326 (the_low_target): Remove the op field.
1327 * linux-aarch64-low.cc (class aarch64_target)
1328 <supports_tracepoints>: Declare.
1329 (aarch64_supports_tracepoints): Turn into...
1330 (aarch64_target::supports_tracepoints): ...this.
1331 (the_low_target): Remove the op field.
1332 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1333 Declare.
1334 (ppc_supports_tracepoints): Turn into...
1335 (ppc_target::supports_tracepoints): ...this.
1336 (the_low_target): Remove the op field.
1337 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1338 Declare.
1339 (s390_supports_tracepoints): Turn into...
1340 (s390_target::supports_tracepoints): ...this.
1341 (the_low_target): Remove the op field.
1342 * linux-arm-low.cc (the_low_target): Remove the op field.
1343 * linux-bfin-low.cc (the_low_target): Ditto.
1344 * linux-crisv32-low.cc (the_low_target): Ditto.
1345 * linux-m32r-low.cc (the_low_target): Ditto.
1346 * linux-m68k-low.cc (the_low_target): Ditto.
1347 * linux-sh-low.cc (the_low_target): Ditto.
1348 * linux-tic6x-low.cc (the_low_target): Ditto.
1349 * linux-tile-low.cc (the_low_target): Ditto.
1350 * linux-xtensa-low.cc (the_low_target): Ditto.
1351
a5b5da92
TBA
13522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1353
1354 Remove the 'process_qsupported' linux target op and let a concrete
1355 linux target define the op by overriding the op declaration in
1356 process_stratum_target.
1357
1358 * linux-low.h (struct linux_target_ops): Remove the op.
1359 (class linux_process_target) <process_qsupported>: Remove.
1360 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1361 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1362 (x86_linux_process_qsupported): Turn into...
1363 (x86_target::process_qsupported): ...this.
1364 (the_low_target): Remove the op field.
1365 * linux-aarch64-low.cc (the_low_target): Remove the op
1366 field.
1367 * linux-arm-low.cc (the_low_target): Ditto.
1368 * linux-bfin-low.cc (the_low_target): Ditto.
1369 * linux-crisv32-low.cc (the_low_target): Ditto.
1370 * linux-m32r-low.cc (the_low_target): Ditto.
1371 * linux-m68k-low.cc (the_low_target): Ditto.
1372 * linux-ppc-low.cc (the_low_target): Ditto.
1373 * linux-s390-low.cc (the_low_target): Ditto.
1374 * linux-sh-low.cc (the_low_target): Ditto.
1375 * linux-tic6x-low.cc (the_low_target): Ditto.
1376 * linux-tile-low.cc (the_low_target): Ditto.
1377 * linux-xtensa-low.cc (the_low_target): Ditto.
1378
d7599cc0
TBA
13792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1380
1381 Turn the 'prepare_to_resume' linux target op into a method of
1382 linux_process_target.
1383
1384 * linux-low.h (struct linux_target_ops): Remove the op.
1385 (class linux_process_target) <low_prepare_to_resume>: Declare.
1386 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1387 Define.
1388
1389 Update the callers below:
1390
1391 (linux_process_target::resume_one_lwp_throw)
1392 (linux_process_target::low_prepare_to_resume)
1393
1394 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1395 Declare.
1396 (x86_target::low_prepare_to_resume): Define.
1397 (the_low_target): Remove the op field.
1398 * linux-aarch64-low.cc (class aarch64_target)
1399 <low_prepare_to_resume>: Declare.
1400 (aarch64_target::low_prepare_to_resume): Define.
1401 (the_low_target): Remove the op field.
1402 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1403 Declare.
1404 (arm_prepare_to_resume): Turn into...
1405 (arm_target::low_prepare_to_resume): ...this.
1406 (the_low_target): Remove the op field.
1407 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1408 Declare.
1409 (mips_linux_prepare_to_resume): Turn into...
1410 (mips_target::low_prepare_to_resume): ...this.
1411 (the_low_target): Remove the op field.
1412 * linux-bfin-low.cc (the_low_target): Remove the op field.
1413 * linux-crisv32-low.cc (the_low_target): Ditto.
1414 * linux-m32r-low.cc (the_low_target): Ditto.
1415 * linux-m68k-low.cc (the_low_target): Ditto.
1416 * linux-ppc-low.cc (the_low_target): Ditto.
1417 * linux-s390-low.cc (the_low_target): Ditto.
1418 * linux-sh-low.cc (the_low_target): Ditto.
1419 * linux-tic6x-low.cc (the_low_target): Ditto.
1420 * linux-tile-low.cc (the_low_target): Ditto.
1421 * linux-xtensa-low.cc (the_low_target): Ditto.
1422
fd000fb3
TBA
14232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1424
1425 Turn the 'new_process', 'delete_process', 'new_thread',
1426 'delete_thread', and 'new_fork' linux target ops into methods
1427 of linux_process_target.
1428
1429 * linux-low.h (struct linux_target_ops): Remove the ops.
1430 (class linux_process_target) <add_linux_process>
1431 <add_lwp>
1432 <delete_lwp>
1433 <attach_lwp>
1434 <detach_one_lwp>
1435 <check_zombie_leaders>
1436 <filter_exit_event>
1437 <low_new_process>
1438 <low_delete_process>
1439 <low_new_thread>
1440 <low_delete_thread>
1441 <low_new_fork>: Declare.
1442 * linux-low.cc (delete_lwp): Turn into...
1443 (linux_process_target::delete_lwp): ...this.
1444 (linux_process_target::low_delete_thread): Define.
1445 (linux_add_process): Turn into...
1446 (linux_process_target::add_linux_process): ...this.
1447 (linux_process_target::low_new_process): Define.
1448 (linux_process_target::low_delete_process): Define.
1449 (linux_process_target::low_new_fork): Define.
1450 (add_lwp): Turn into...
1451 (linux_process_target::add_lwp): ...this.
1452 (linux_process_target::low_new_thread): Define.
1453 (linux_attach_lwp): Turn into...
1454 (linux_process_target::attach_lwp): ...this.
1455 (linux_detach_one_lwp): Turn into...
1456 (linux_process_target::detach_one_lwp): ...this.
1457 (linux_detach_lwp_callback): Remove and inline...
1458 (linux_process_target::detach): ...here.
1459 (check_zombie_leaders): Turn into...
1460 (linux_process_target::check_zombie_leaders): ...this.
1461 (filter_exit_event): Turn into...
1462 (linux_process_target::filter_exit_event): ...this.
1463
1464 Update the callers below.
1465
1466 (linux_process_target::handle_extended_wait)
1467 (linux_process_target::create_inferior)
1468 (attach_proc_task_lwp_callback)
1469 (linux_process_target::attach)
1470 (linux_process_target::detach)
1471 (linux_process_target::mourn)
1472 * thread-db.cc (attach_thread)
1473
1474 * linux-x86-low.cc (class x86_target) <low_new_process>
1475 <low_delete_process>
1476 <low_new_thread>
1477 <low_delete_thread>
1478 <low_new_fork>: Declare.
1479 (x86_linux_new_process): Turn into...
1480 (x86_target::low_new_process): ...this.
1481 (x86_linux_delete_process): Turn into...
1482 (x86_target::low_delete_process): ...this.
1483 (x86_target::low_new_thread): Define.
1484 (x86_target::low_delete_thread): Define.
1485 (x86_linux_new_fork): Turn into...
1486 (x86_target::low_new_fork): ...this.
1487 (the_low_target): Remove the op fields.
1488 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1489 <low_delete_process>
1490 <low_new_thread>
1491 <low_delete_thread>
1492 <low_new_fork>: Declare.
1493 (aarch64_linux_new_process): Turn into...
1494 (aarch64_target::low_new_process): ...this.
1495 (aarch64_linux_delete_process): Turn into...
1496 (aarch64_target::low_delete_process): ...this.
1497 (aarch64_target::low_new_thread): Define.
1498 (aarch64_target::low_delete_thread): Define.
1499 (aarch64_linux_new_fork): Turn into...
1500 (aarch64_target::low_new_fork): ...this.
1501 (the_low_target): Remove the op fields.
1502 * linux-arm-low.cc (class arm_target) <low_new_process>
1503 <low_delete_process>
1504 <low_new_thread>
1505 <low_delete_thread>
1506 <low_new_fork>: Declare.
1507 (arm_new_process): Turn into...
1508 (arm_target::low_new_process): ...this.
1509 (arm_delete_process): Turn into...
1510 (arm_target::low_delete_process): ...this.
1511 (arm_new_thread): Turn into...
1512 (arm_target::low_new_thread): ...this.
1513 (arm_delete_thread): Turn into...
1514 (arm_target::low_delete_thread): ...this.
1515 (arm_new_fork): Turn into...
1516 (arm_target::low_new_fork): ...this.
1517 (the_low_target): Remove the op fields.
1518 * linux-mips-low.cc (class mips_target) <low_new_process>
1519 <low_delete_process>
1520 <low_new_thread>
1521 <low_delete_thread>
1522 <low_new_fork>: Declare.
1523 (mips_linux_new_process): Turn into...
1524 (mips_target::low_new_process): ...this.
1525 (mips_linux_delete_process): Turn into...
1526 (mips_target::low_delete_process): ...this.
1527 (mips_linux_new_thread): Turn into...
1528 (mips_target::low_new_thread): ...this.
1529 (mips_linux_delete_thread): Turn into...
1530 (mips_target::low_delete_thread): ...this.
1531 (mips_linux_new_fork): Turn into...
1532 (mips_target::low_new_fork): ...this.
1533 (the_low_target): Remove the op fields.
1534 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1535 * linux-crisv32-low.cc (the_low_target): Ditto.
1536 * linux-m32r-low.cc (the_low_target): Ditto.
1537 * linux-m68k-low.cc (the_low_target): Ditto.
1538 * linux-ppc-low.cc (the_low_target): Ditto.
1539 * linux-s390-low.cc (the_low_target): Ditto.
1540 * linux-sh-low.cc (the_low_target): Ditto.
1541 * linux-tic6x-low.cc (the_low_target): Ditto.
1542 * linux-tile-low.cc (the_low_target): Ditto.
1543 * linux-xtensa-low.cc (the_low_target): Ditto.
1544
cb63de7c
TBA
15452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1546
1547 Turn the 'siginfo_fixup' linux target op into a method of
1548 linux_process_target.
1549
1550 * linux-low.h (struct linux_target_ops): Remove the op.
1551 (class linux_process_target) <siginfo_fixup>
1552 <low_siginfo_fixup>: Declare.
1553 * linux-low.cc (siginfo_fixup): Turn into...
1554 (linux_process_target::siginfo_fixup): ...this.
1555 (linux_process_target::low_siginfo_fixup): Define.
1556 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1557 (x86_siginfo_fixup): Turn into...
1558 (x86_target::low_siginfo_fixup): ...this.
1559 (the_low_target): Remove the op field.
1560 * linux-aarch64-low.cc (class aarch64_target):
1561 <low_siginfo_fixup>: Declare.
1562 (aarch64_linux_siginfo_fixup): Turn into...
1563 (aarch64_target::low_siginfo_fixup): ...this.
1564 (the_low_target): Remove the op field.
1565 * linux-arm-low.cc (the_low_target): Remove the op field.
1566 * linux-bfin-low.cc (the_low_target): Ditto.
1567 * linux-crisv32-low.cc (the_low_target): Ditto.
1568 * linux-m32r-low.cc (the_low_target): Ditto.
1569 * linux-m68k-low.cc (the_low_target): Ditto.
1570 * linux-mips-low.cc (the_low_target): Ditto.
1571 * linux-ppc-low.cc (the_low_target): Ditto.
1572 * linux-s390-low.cc (the_low_target): Ditto.
1573 * linux-sh-low.cc (the_low_target): Ditto.
1574 * linux-tic6x-low.cc (the_low_target): Ditto.
1575 * linux-tile-low.cc (the_low_target): Ditto.
1576 * linux-xtensa-low.cc (the_low_target): Ditto.
1577
b35db733
TBA
15782020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1579
1580 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1581 linux target ops into methods of linux_process_target.
1582
1583 * linux-low.h (struct linux_target_ops): Remove the ops.
1584 (class linux_process_target) <low_collect_ptrace_register>
1585 <low_store_ptrace_register>: Declare.
1586 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1587 (linux_process_target::low_supply_ptrace_register): Define.
1588
1589 Update the callers below.
1590
1591 (linux_process_target::fetch_register)
1592 (linux_process_target::store_register)
1593
1594 * linux-x86-low.cc (the_low_target): Remove the op fields.
1595 * linux-aarch64-low.cc (the_low_target): Ditto.
1596 * linux-arm-low.cc (the_low_target): Ditto.
1597 * linux-bfin-low.cc (the_low_target): Ditto.
1598 * linux-crisv32-low.cc (the_low_target): Ditto.
1599 * linux-m32r-low.cc (the_low_target): Ditto.
1600 * linux-m68k-low.cc (the_low_target): Ditto.
1601 * linux-sh-low.cc (the_low_target): Ditto.
1602 * linux-sparc-low.cc (the_low_target): Ditto.
1603 * linux-tic6x-low.cc (the_low_target): Ditto.
1604 * linux-tile-low.cc (the_low_target): Ditto.
1605 * linux-xtensa-low.cc (the_low_target): Ditto.
1606 * linux-mips-low.cc (class mips_target)
1607 <low_collect_ptrace_register>
1608 <low_supply_ptrace_register>: Declare.
1609 (mips_collect_ptrace_register): Turn into ...
1610 (mips_target::low_collect_ptrace_register): ...this.
1611 (mips_supply_ptrace_register): Turn into...
1612 (mips_target::low_supply_ptrace_register): ...this.
1613 (the_low_target): Remove the op fields.
1614 * linux-ppc-low.cc (class ppc_target)
1615 <low_collect_ptrace_register>
1616 <low_supply_ptrace_register>: Declare.
1617 (ppc_collect_ptrace_register): Turn into ...
1618 (ppc_target::low_collect_ptrace_register): ...this.
1619 (ppc_supply_ptrace_register): Turn into ...
1620 (ppc_target::low_supply_ptrace_register): ...this.
1621 (ppc_fill_gregset): Update for the calls to
1622 low_collect_ptrace_register.
1623 (the_low_target): Remove the op fields.
1624 * linux-s390-low.cc (class s390_target)
1625 <low_collect_ptrace_register>
1626 <low_supply_ptrace_register>: Declare.
1627 (s390_collect_ptrace_register): Turn into ...
1628 (s390_target::low_collect_ptrace_register): ...this.
1629 (s390_supply_ptrace_register): Turn into ...
1630 (s390_target::low_supply_ptrace_register): ...this.
1631 (s390_fill_gregset): Update for the calls to
1632 low_collect_ptrace_register.
1633 (the_low_target): Remove the op fields.
1634
ac1bbaca
TBA
16352020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1636
1637 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1638 target ops into methods of linux_process_target.
1639
1640 * linux-low.h (struct linux_target_ops): Remove the ops.
1641 (class linux_process_target) <check_stopped_by_watchpoint>
1642 <low_stopped_by_watchpoint>
1643 <low_stopped_data_address>: Declare.
1644 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1645 (linux_process_target::check_stopped_by_watchpoint): ...this.
1646 (linux_process_target::low_stopped_by_watchpoint): Define.
1647 (linux_process_target::low_stopped_data_address): Define.
1648 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1649 <low_stopped_data_address>: Declare.
1650 (x86_stopped_by_watchpoint): Turn into...
1651 (x86_target::low_stopped_by_watchpoint): ...this.
1652 (x86_stopped_data_address): Turn into...
1653 (x86_target::low_stopped_data_address): ...this.
1654 (the_low_target): Remove the op fields.
1655 * linux-aarch64-low.cc (class aarch64_target)
1656 <low_stopped_by_watchpoint>
1657 <low_stopped_data_address>: Declare.
1658 (aarch64_stopped_by_watchpoint): Turn into...
1659 (aarch64_target::low_stopped_by_watchpoint): ...this.
1660 (aarch64_stopped_data_address): Turn into...
1661 (aarch64_target::low_stopped_data_address): ...this.
1662 (the_low_target): Remove the op fields.
1663 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1664 <low_stopped_data_address>: Declare.
1665 (arm_stopped_by_watchpoint): Turn into...
1666 (arm_target::low_stopped_by_watchpoint): ...this.
1667 (arm_stopped_data_address): Turn into...
1668 (arm_target::low_stopped_data_address): ...this.
1669 (the_low_target): Remove the op fields.
1670 * linux-crisv32-low.cc (class crisv32_target)
1671 <low_stopped_by_watchpoint>
1672 <low_stopped_data_address>: Declare.
1673 (cris_stopped_by_watchpoint): Turn into...
1674 (crisv32_target::low_stopped_by_watchpoint): ...this.
1675 (cris_stopped_data_address): Turn into...
1676 (crisv32_target::low_stopped_data_address): ...this.
1677 (the_low_target): Remove the op fields.
1678 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1679 <low_stopped_data_address>: Declare.
1680 (mips_stopped_by_watchpoint): Turn into...
1681 (mips_target::low_stopped_by_watchpoint): ...this.
1682 (mips_stopped_data_address): Turn into...
1683 (mips_target::low_stopped_data_address): ...this.
1684 (the_low_target): Remove the op fields.
1685 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1686 * linux-m32r-low.cc (the_low_target): Ditto.
1687 * linux-m68k-low.cc (the_low_target): Ditto.
1688 * linux-ppc-low.cc (the_low_target): Ditto.
1689 * linux-s390-low.cc (the_low_target): Ditto.
1690 * linux-sh-low.cc (the_low_target): Ditto.
1691 * linux-sparc-low.cc (the_low_target): Ditto.
1692 * linux-tic6x-low.cc (the_low_target): Ditto.
1693 * linux-tile-low.cc (the_low_target): Ditto.
1694 * linux-xtensa-low.cc (the_low_target): Ditto.
1695
9db9aa23
TBA
16962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1697
1698 Turn the 'insert_point' and 'remove_point' linux target ops into
1699 methods of linux_process_target.
1700
1701 * linux-low.h (struct linux_target_ops): Remove the ops.
1702 (class linux_process_target) <low_insert_point>
1703 <low_remove_point>: Declare.
1704 * linux-low.cc (linux_process_target::low_insert_point)
1705 (linux_process_target::low_remove_point): Define.
1706 (linux_process_target::insert_point)
1707 (linux_process_target::remove_point): Update for calls to
1708 low_insert_point and low_remove_point.
1709 * linux-x86-low.cc (class x86_target) <low_insert_point>
1710 <low_remove_point>: Declare.
1711 (x86_insert_point): Turn into...
1712 (x86_target::low_insert_point): ...this.
1713 (x86_remove_point): Turn into...
1714 (x86_target::low_remove_point): ...this.
1715 (the_low_target): Remove the op fields.
1716 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1717 <low_remove_point>: Declare.
1718 (aarch64_insert_point): Turn into...
1719 (aarch64_target::low_insert_point): ...this.
1720 (aarch64_remove_point): Turn into...
1721 (aarch64_target::low_remove_point): ...this.
1722 (the_low_target): Remove the op fields.
1723 * linux-arm-low.cc (class arm_target) <low_insert_point>
1724 <low_remove_point>: Declare.
1725 (arm_insert_point): Turn into...
1726 (arm_target::low_insert_point): ...this.
1727 (arm_remove_point): Turn into...
1728 (arm_target::low_remove_point): ...this.
1729 (the_low_target): Remove the op fields.
1730 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1731 <low_remove_point>: Declare.
1732 (crisv32_insert_point): Turn into...
1733 (crisv32_target::low_insert_point): ...this.
1734 (crisv32_remove_point): Turn into...
1735 (crisv32_target::low_remove_point): ...this.
1736 (the_low_target): Remove the op fields.
1737 * linux-mips-low.cc (class mips_target) <low_insert_point>
1738 <low_remove_point>: Declare.
1739 (mips_insert_point): Turn into...
1740 (mips_target::low_insert_point): ...this.
1741 (mips_remove_point): Turn into...
1742 (mips_target::low_remove_point): ...this.
1743 (the_low_target): Remove the op fields.
1744 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1745 <low_remove_point>: Declare.
1746 (ppc_insert_point): Turn into...
1747 (ppc_target::low_insert_point): ...this.
1748 (ppc_remove_point): Turn into...
1749 (ppc_target::low_remove_point): ...this.
1750 (the_low_target): Remove the op fields.
1751 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1752 * linux-m32r-low.cc (the_low_target): Ditto.
1753 * linux-m68k-low.cc (the_low_target): Ditto.
1754 * linux-s390-low.cc (the_low_target): Ditto.
1755 * linux-sh-low.cc (the_low_target): Ditto.
1756 * linux-sparc-low.cc (the_low_target): Ditto.
1757 * linux-tic6x-low.cc (the_low_target): Ditto.
1758 * linux-tile-low.cc (the_low_target): Ditto.
1759 * linux-xtensa-low.cc (the_low_target): Ditto.
1760
007c9b97
TBA
17612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1762
1763 Remove the 'supports_z_point_type' linux target op and let the
1764 concrete linux target define it by overriding the op declared in
1765 process_stratum_target.
1766
1767 * linux-low.cc (linux_process_target::supports_z_point_type):
1768 Remove.
1769 * linux-low.h (struct linux_target_ops): Remove the op.
1770 (class linux_process_target) <supports_z_point_type>: Remove.
1771 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1772 Declare.
1773 (x86_supports_z_point_type): Turn into...
1774 (x86_target::supports_z_point_type): ...this.
1775 (the_low_target): Remove the op field.
1776 * linux-aarch64-low.cc (class aarch64_target)
1777 <supports_z_point_type>: Declare.
1778 (aarch64_supports_z_point_type): Turn into...
1779 (aarch64_target::supports_z_point_type): ...this.
1780 (the_low_target): Remove the op field.
1781 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1782 Declare.
1783 (arm_supports_z_point_type): Turn into...
1784 (arm_target::supports_z_point_type): ...this.
1785 (the_low_target): Remove the op field.
1786 * linux-crisv32-low.cc (class crisv32_target)
1787 <supports_z_point_type>: Declare.
1788 (cris_supports_z_point_type): Turn into...
1789 (crisv32_target::supports_z_point_type): ...this.
1790 (the_low_target): Remove the op field.
1791 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1792 Declare.
1793 (mips_supports_z_point_type): Turn into...
1794 (mips_target::supports_z_point_type): ...this.
1795 (the_low_target): Remove the op field.
1796 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1797 Declare.
1798 (ppc_supports_z_point_type): Turn into...
1799 (ppc_target::supports_z_point_type): ...this.
1800 (the_low_target): Remove the op field.
1801 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1802 Declare.
1803 (s390_supports_z_point_type): Turn into...
1804 (s390_target::supports_z_point_type): ...this.
1805 (the_low_target): Remove the op field.
1806 * linux-bfin-low.cc (the_low_target): Remove the op field.
1807 * linux-m32r-low.cc (the_low_target): Ditto.
1808 * linux-m68k-low.cc (the_low_target): Ditto.
1809 * linux-sh-low.cc (the_low_target): Ditto.
1810 * linux-sparc-low.cc (the_low_target): Ditto.
1811 * linux-tic6x-low.cc (the_low_target): Ditto.
1812 * linux-tile-low.cc (the_low_target): Ditto.
1813 * linux-xtensa-low.cc (the_low_target): Ditto.
1814
d7146cda
TBA
18152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1816
1817 Turn the 'breakpoint_at' linux target op into a method of
1818 linux_process_target.
1819
1820 * linux-low.h (struct linux_target_ops): Remove the op.
1821 (class linux_process_target) <low_breakpoint_at>: Declare.
1822
1823 Update the callers below:
1824
1825 * linux-low.cc (linux_process_target::save_stop_reason)
1826 (linux_process_target::thread_still_has_status_pending)
1827 (linux_process_target::wait_1)
1828
1829 * linux-x86-low.cc (class x86_target)
1830 <low_breakpoint_at>: Declare.
1831 (x86_breakpoint_at): Turn into...
1832 (x86_target::low_breakpoint_at): ...this.
1833 (the_low_target): Remove the op field.
1834 * linux-aarch64-low.cc (class aarch64_target)
1835 <low_breakpoint_at>: Declare.
1836 (aarch64_breakpoint_at): Turn into...
1837 (aarch64_target::low_breakpoint_at): ...this.
1838 (the_low_target): Remove the op field.
1839 * linux-arm-low.cc (class arm_target)
1840 <low_breakpoint_at>: Declare.
1841 (arm_target::low_breakpoint_at): Define.
1842 (the_low_target): Remove the op field.
1843 * linux-bfin-low.cc (class bfin_target)
1844 <low_breakpoint_at>: Declare.
1845 (bfin_breakpoint_at): Turn into...
1846 (bfin_target::low_breakpoint_at): ...this.
1847 (the_low_target): Remove the op field.
1848 * linux-cris-low.cc (class cris_target)
1849 <low_breakpoint_at>: Declare.
1850 (cris_breakpoint_at): Turn into...
1851 (cris_target::low_breakpoint_at): ...this.
1852 (the_low_target): Remove the op field.
1853 * linux-crisv32-low.cc (class crisv32_target)
1854 <low_breakpoint_at>: Declare.
1855 (crisv32_breakpoint_at): Turn into...
1856 (crisv32_target::low_breakpoint_at): ...this.
1857 (the_low_target): Remove the op field.
1858 * linux-ia64-low.cc (class ia64_target)
1859 <low_breakpoint_at>: Declare.
1860 (ia64_target::low_breakpoint_at): Define.
1861 * linux-m32r-low.cc (class m32r_target)
1862 <low_breakpoint_at>: Declare.
1863 (m32r_breakpoint_at): Turn into...
1864 (m32r_target::low_breakpoint_at): ...this.
1865 (the_low_target): Remove the op field.
1866 * linux-m68k-low.cc (class m68k_target)
1867 <low_breakpoint_at>: Declare.
1868 (m68k_breakpoint_at): Turn into...
1869 (m68k_target::low_breakpoint_at): ...this.
1870 (the_low_target): Remove the op field.
1871 * linux-mips-low.cc (class mips_target)
1872 <low_breakpoint_at>: Declare.
1873 (mips_breakpoint_at): Turn into...
1874 (mips_target::low_breakpoint_at): ...this.
1875 (the_low_target): Remove the op field.
1876 * linux-nios2-low.cc (class nios2_target)
1877 <low_breakpoint_at>: Declare.
1878 (nios2_breakpoint_at): Turn into...
1879 (nios2_target::low_breakpoint_at): ...this.
1880 (the_low_target): Remove the op field.
1881 * linux-ppc-low.cc (class ppc_target)
1882 <low_breakpoint_at>: Declare.
1883 (ppc_breakpoint_at): Turn into...
1884 (ppc_target::low_breakpoint_at): ...this.
1885 (the_low_target): Remove the op field.
1886 * linux-riscv-low.cc (class riscv_target)
1887 <low_breakpoint_at>: Declare.
1888 (riscv_breakpoint_at): Turn into...
1889 (riscv_target::low_breakpoint_at): ...this.
1890 (the_low_target): Remove the op field.
1891 * linux-s390-low.cc (class s390_target)
1892 <low_breakpoint_at>: Declare.
1893 (s390_breakpoint_at): Turn into...
1894 (s390_target::low_breakpoint_at): ...this.
1895 (the_low_target): Remove the op field.
1896 * linux-sh-low.cc (class sh_target)
1897 <low_breakpoint_at>: Declare.
1898 (sh_breakpoint_at): Turn into...
1899 (sh_target::low_breakpoint_at): ...this.
1900 (the_low_target): Remove the op field.
1901 * linux-sparc-low.cc (class sparc_target)
1902 <low_breakpoint_at>: Declare.
1903 (sparc_breakpoint_at): Turn into...
1904 (sparc_target::low_breakpoint_at): ...this.
1905 (the_low_target): Remove the op field.
1906 * linux-tic6x-low.cc (class tic6x_target)
1907 <low_breakpoint_at>: Declare.
1908 (tic6x_breakpoint_at): Turn into...
1909 (tic6x_target::low_breakpoint_at): ...this.
1910 (the_low_target): Remove the op field.
1911 * linux-tile-low.cc (class tile_target)
1912 <low_breakpoint_at>: Declare.
1913 (tile_breakpoint_at): Turn into...
1914 (tile_target::low_breakpoint_at): ...this.
1915 (the_low_target): Remove the op field.
1916 * linux-xtensa-low.cc (class xtensa_target)
1917 <low_breakpoint_at>: Declare.
1918 (xtensa_breakpoint_at): Turn into...
1919 (xtensa_target::low_breakpoint_at): ...this.
1920 (the_low_target): Remove the op field.
1921
d4807ea2
TBA
19222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1923
1924 Turn the 'decr_pc_after_break' linux_target_ops field into
1925 a method of linux_process_target.
1926
1927 * linux-low.h (struct linux_target_ops)
1928 <decr_pc_after_break>: Remove.
1929 (class linux_process_target) <low_decr_pc_after_break>: New method
1930 declaration.
1931 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1932 New method implementation.
1933
1934 Update the users below.
1935
1936 (linux_process_target::save_stop_reason)
1937 (linux_process_target::wait_1)
1938 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1939 New declaration.
1940 (x86_target::low_decr_pc_after_break): New method implementation.
1941 (the_low_target): Remove the field.
1942 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1943 New declaration.
1944 (bfin_target::low_decr_pc_after_break): New method implementation.
1945 (the_low_target): Remove the field.
1946 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1947 New declaration.
1948 (m68k_target::low_decr_pc_after_break): New method implementation.
1949 (the_low_target): Remove the field.
1950 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1951 New declaration.
1952 (s390_target::low_decr_pc_after_break): New method implementation.
1953 (the_low_target): Remove the field.
1954 * linux-aarch64-low.cc (the_low_target): Remove the field.
1955 * linux-arm-low.cc (the_low_target): Remove the field.
1956 * linux-cris-low.cc (the_low_target): Remove the field.
1957 * linux-crisv32-low.cc (the_low_target): Remove the field.
1958 * linux-m32r-low.cc (the_low_target): Remove the field.
1959 * linux-mips-low.cc (the_low_target): Remove the field.
1960 * linux-nios2-low.cc (the_low_target): Remove the field.
1961 * linux-ppc-low.cc (the_low_target): Remove the field.
1962 * linux-riscv-low.cc (the_low_target): Remove the field.
1963 * linux-sh-low.cc (the_low_target): Remove the field.
1964 * linux-sparc-low.cc (the_low_target): Remove the field.
1965 * linux-tic6x-low.cc (the_low_target): Remove the field.
1966 * linux-tile-low.cc (the_low_target): Remove the field.
1967 * linux-xtensa-low.cc (the_low_target): Remove the field.
1968
7582c77c
TBA
19692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1970
1971 Remove the 'supports_software_single_step' linux target op and let
1972 the concrete linux target define it by overriding the op in
1973 process_stratum_target.
1974 Turn the 'get_next_pcs' linux target op into a method of
1975 linux_process_target.
1976
1977 * linux-low.h (struct linux_target_ops): Remove the ops.
1978 (class linux_process_target) <supports_software_single_step>:
1979 Remove.
1980 <low_get_next_pcs>: Declare.
1981 * linux-low.cc (can_software_single_step): Remove.
1982 (linux_process_target::low_get_next_pcs): Define.
1983 (linux_process_target::supports_software_single_step): Remove.
1984
1985 Update the callers below.
1986
1987 (linux_process_target::handle_extended_wait)
1988 (linux_process_target::wait_1)
1989 (linux_process_target::install_software_single_step_breakpoints)
1990 (linux_process_target::single_step)
1991 (linux_process_target::thread_needs_step_over)
1992 (linux_process_target::proceed_one_lwp)
1993 (linux_process_target::supports_range_stepping)
1994
1995 * linux-x86-low.cc (the_low_target): Remove the op field.
1996 * linux-aarch64-low.cc (the_low_target): Ditto.
1997 * linux-bfin-low.cc (the_low_target): Ditto.
1998 * linux-cris-low.cc (the_low_target): Ditto.
1999 * linux-crisv32-low.cc (the_low_target): Ditto.
2000 * linux-m32r-low.cc (the_low_target): Ditto.
2001 * linux-m68k-low.cc (the_low_target): Ditto.
2002 * linux-mips-low.cc (the_low_target): Ditto.
2003 * linux-nios2-low.cc (the_low_target): Ditto.
2004 * linux-ppc-low.cc (the_low_target): Ditto.
2005 * linux-riscv-low.cc (the_low_target): Ditto.
2006 * linux-s390-low.cc (the_low_target): Ditto.
2007 * linux-sh-low.cc (the_low_target): Ditto.
2008 * linux-sparc-low.cc (the_low_target): Ditto.
2009 * linux-tic6x-low.cc (the_low_target): Ditto.
2010 * linux-tile-low.cc (the_low_target): Ditto.
2011 * linux-xtensa-low.cc (the_low_target): Ditto.
2012 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
2013 <supports_software_single_step>: Declare.
2014 (arm_target::supports_software_single_step): Define.
2015 (arm_gdbserver_get_next_pcs): Turn into...
2016 (arm_target::low_get_next_pcs): ...this.
2017 (the_low_target): Remove the op field.
2018
3ca4edb6
TBA
20192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2020
2021 Remove the 'sw_breakpoint_from_kind' linux target op, and let
2022 the concrete linux target define it by overriding the op
2023 in process_stratum_target.
2024
2025 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
2026 Remove.
2027 * linux-low.h (struct linux_target_ops): Remove the op.
2028 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
2029 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
2030 Declare.
2031 (x86_sw_breakpoint_from_kind): Turn into...
2032 (x86_target::sw_breakpoint_from_kind): ...this.
2033 (the_low_target): Remove the op field.
2034 * linux-aarch64-low.cc (class aarch64_target)
2035 <sw_breakpoint_from_kind>: Declare.
2036 (aarch64_sw_breakpoint_from_kind): Turn into...
2037 (aarch64_target::sw_breakpoint_from_kind): ...this.
2038 (the_low_target): Remove the op field.
2039 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
2040 Declare.
2041 (arm_target::sw_breakpoint_from_kind): Define.
2042 (the_low_target): Remove the op field.
2043 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
2044 Declare.
2045 (bfin_sw_breakpoint_from_kind): Turn into...
2046 (bfin_target::sw_breakpoint_from_kind): ...this.
2047 (the_low_target): Remove the op field.
2048 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
2049 Declare.
2050 (cris_sw_breakpoint_from_kind): Turn into...
2051 (cris_target::sw_breakpoint_from_kind): ...this.
2052 (the_low_target): Remove the op field.
2053 * linux-crisv32-low.cc (class crisv32_target)
2054 <sw_breakpoint_from_kind>: Declare.
2055 (cris_sw_breakpoint_from_kind): Turn into...
2056 (crisv32_target::sw_breakpoint_from_kind): ...this.
2057 (the_low_target): Remove the op field.
2058 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
2059 Declare.
2060 (ia64_target::sw_breakpoint_from_kind): Define.
2061 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2062 Declare.
2063 (m32r_sw_breakpoint_from_kind): Turn into...
2064 (m32r_target::sw_breakpoint_from_kind): ...this.
2065 (the_low_target): Remove the op field.
2066 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2067 Declare.
2068 (m68k_sw_breakpoint_from_kind): Turn into...
2069 (m68k_target::sw_breakpoint_from_kind): ...this.
2070 (the_low_target): Remove the op field.
2071 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2072 Declare.
2073 (mips_sw_breakpoint_from_kind): Turn into...
2074 (mips_target::sw_breakpoint_from_kind): ...this.
2075 (the_low_target): Remove the op field.
2076 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2077 Declare.
2078 (nios2_sw_breakpoint_from_kind): Turn into...
2079 (nios2_target::sw_breakpoint_from_kind): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2082 Declare.
2083 (ppc_sw_breakpoint_from_kind): Turn into...
2084 (ppc_target::sw_breakpoint_from_kind): ...this.
2085 (the_low_target): Remove the op field.
2086 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2087 Declare.
2088 (riscv_sw_breakpoint_from_kind): Turn into...
2089 (riscv_target::sw_breakpoint_from_kind): ...this.
2090 (the_low_target): Remove the op field.
2091 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2092 Declare.
2093 (s390_sw_breakpoint_from_kind): Turn into...
2094 (s390_target::sw_breakpoint_from_kind): ...this.
2095 (the_low_target): Remove the op field.
2096 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2097 Declare.
2098 (sh_sw_breakpoint_from_kind): Turn into...
2099 (sh_target::sw_breakpoint_from_kind): ...this.
2100 (the_low_target): Remove the op field.
2101 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2102 Declare.
2103 (sparc_sw_breakpoint_from_kind): Turn into...
2104 (sparc_target::sw_breakpoint_from_kind): ...this.
2105 (the_low_target): Remove the op field.
2106 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2107 Declare.
2108 (tic6x_sw_breakpoint_from_kind): Turn into...
2109 (tic6x_target::sw_breakpoint_from_kind): ...this.
2110 (the_low_target): Remove the op field.
2111 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2112 Declare.
2113 (tile_sw_breakpoint_from_kind): Turn into...
2114 (tile_target::sw_breakpoint_from_kind): ...this.
2115 (the_low_target): Remove the op field.
2116 * linux-xtensa-low.cc (class xtensa_target)
2117 <sw_breakpoint_from_kind>: Declare.
2118 (xtensa_sw_breakpoint_from_kind): Turn into...
2119 (xtensa_target::sw_breakpoint_from_kind): ...this.
2120 (the_low_target): Remove the op field.
2121
06250e4e
TBA
21222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2123
2124 Remove the 'breakpoint_kind_from_pc' and
2125 'breakpoint_kind_from_current_state' linux target ops, and let the
2126 concrete linux target define them by overriding the ops of
2127 process_stratum_target.
2128
2129 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2130 Remove.
2131 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2132 * linux-low.h (struct linux_target_ops): Remove ops.
2133 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2134 <breakpoint_kind_from_current_state>: Remove.
2135 * linux-x86-low.cc (the_low_target): Remove the op fields.
2136 * linux-bfin-low.cc (the_low_target): Ditto.
2137 * linux-cris-low.cc (the_low_target): Ditto.
2138 * linux-crisv32-low.cc (the_low_target): Ditto.
2139 * linux-m32r-low.cc (the_low_target): Ditto.
2140 * linux-m68k-low.cc (the_low_target): Ditto.
2141 * linux-mips-low.cc (the_low_target): Ditto.
2142 * linux-nios2-low.cc (the_low_target): Ditto.
2143 * linux-ppc-low.cc (the_low_target): Ditto.
2144 * linux-s390-low.cc (the_low_target): Ditto.
2145 * linux-sh-low.cc (the_low_target): Ditto.
2146 * linux-sparc-low.cc (the_low_target): Ditto.
2147 * linux-tic6x-low.cc (the_low_target): Ditto.
2148 * linux-tile-low.cc (the_low_target): Ditto.
2149 * linux-xtensa-low.cc (the_low_target): Ditto.
2150 * linux-aarch64-low.cc (class aarch64_target)
2151 <breakpoint_kind_from_pc>
2152 <breakpoint_kind_from_current_state>: Declare.
2153 (aarch64_breakpoint_kind_from_pc): Turn into...
2154 (aarch64_target::breakpoint_kind_from_pc): ...this.
2155 (aarch64_breakpoint_kind_from_current_state): Turn into...
2156 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2157 (the_low_target): Remove the op fields.
2158 * linux-arm-low.cc (class arm_target):
2159 <breakpoint_kind_from_pc>
2160 <breakpoint_kind_from_current_state>: Declare.
2161 (arm_target::breakpoint_kind_from_pc): Define.
2162 (arm_target::breakpoint_kind_from_current_state): Define.
2163 (the_low_target): Remove the op fields.
2164 * linux-riscv-low.cc (class riscv_target):
2165 <breakpoint_kind_from_pc>: Declare.
2166 (riscv_breakpoint_kind_from_pc): Turn into...
2167 (riscv_target::breakpoint_kind_from_pc): ...this.
2168 (the_low_target): Remove the op fields.
2169
bf9ae9d8
TBA
21702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2171
2172 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2173 of linux_process_target.
2174
2175 * linux-low.h (struct linux_target_ops): Remove the ops.
2176 (class linux_process_target) <low_supports_breakpoints>
2177 <low_get_pc>
2178 <low_set_pc>: Declare.
2179 * linux-low.cc (supports_breakpoints): Turn into...
2180 (linux_process_target::low_supports_breakpoints): ...this.
2181 (linux_process_target::low_get_pc): Define.
2182 (linux_process_target::low_set_pc): Define.
2183
2184 Update the callers below.
2185
2186 (linux_process_target::get_pc)
2187 (linux_process_target::save_stop_reason)
2188 (linux_process_target::maybe_move_out_of_jump_pad)
2189 (linux_process_target::wait_1)
2190 (linux_process_target::resume_one_lwp_throw)
2191 (linux_process_target::resume)
2192 (linux_process_target::proceed_all_lwps)
2193 (linux_process_target::read_pc)
2194 (linux_process_target::write_pc)
2195
2196 * linux-x86-low.cc (class linux_process_target)
2197 <low_supports_breakpoints>
2198 <low_get_pc>
2199 <low_set_pc>: Declare.
2200 (x86_target::low_supports_breakpoints): Define.
2201 (x86_get_pc): Turn into...
2202 (x86_target::low_get_pc): ...this.
2203 (x86_set_pc): Turn into...
2204 (x86_target::low_set_pc): ...this.
2205 (the_low_target): Remove the op fields.
2206 * linux-arm-low.cc (class arm_target)
2207 <low_supports_breakpoints>
2208 <low_get_pc>
2209 <low_set_pc>: Declare.
2210 (arm_target::low_supports_breakpoints)
2211 (arm_target::low_get_pc)
2212 (arm_target::low_set_pc): Define.
2213 (the_low_target): Remove the op fields.
2214 * linux-bfin-low.cc (class bfin_target)
2215 <low_supports_breakpoints>
2216 <low_get_pc>
2217 <low_set_pc>: Declare.
2218 (bfin_target::low_supports_breakpoints)
2219 (bfin_target::low_get_pc)
2220 (bfin_target::low_set_pc): Define.
2221 (the_low_target): Remove the op fields.
2222 * linux-cris-low.cc (class cris_target)
2223 <low_supports_breakpoints>
2224 <low_get_pc>
2225 <low_set_pc>: Declare.
2226 (cris_target::low_supports_breakpoints)
2227 (cris_target::low_get_pc)
2228 (cris_target::low_set_pc): Define.
2229 (the_low_target): Remove the op fields.
2230 * linux-crisv32-low.cc (class crisv32_target)
2231 <low_supports_breakpoints>
2232 <low_get_pc>
2233 <low_set_pc>: Declare.
2234 (crisv32_target::low_supports_breakpoints)
2235 (crisv32_target::low_get_pc)
2236 (crisv32_target::low_set_pc): Define.
2237 (the_low_target): Remove the op fields.
2238 * linux-m32r-low.cc (class m32r_target)
2239 <low_supports_breakpoints>
2240 <low_get_pc>
2241 <low_set_pc>: Declare.
2242 (m32r_target::low_supports_breakpoints)
2243 (m32r_target::low_get_pc)
2244 (m32r_target::low_set_pc): Define.
2245 (the_low_target): Remove the op fields.
2246 * linux-m68k-low.cc (class m68k_target)
2247 <low_supports_breakpoints>
2248 <low_get_pc>
2249 <low_set_pc>: Declare.
2250 (m68k_target::low_supports_breakpoints)
2251 (m68k_target::low_get_pc)
2252 (m68k_target::low_set_pc): Define.
2253 (the_low_target): Remove the op fields.
2254 * linux-nios2-low.cc (class nios2_target)
2255 <low_supports_breakpoints>
2256 <low_get_pc>
2257 <low_set_pc>: Declare.
2258 (nios2_target::low_supports_breakpoints)
2259 (nios2_target::low_get_pc)
2260 (nios2_target::low_set_pc): Define.
2261 (the_low_target): Remove the op fields.
2262 * linux-sh-low.cc (class sh_target)
2263 <low_supports_breakpoints>
2264 <low_get_pc>
2265 <low_set_pc>: Declare.
2266 (sh_target::low_supports_breakpoints)
2267 (sh_target::low_get_pc)
2268 (sh_target::low_set_pc): Define.
2269 (the_low_target): Remove the op fields.
2270 * linux-xtensa-low.cc (class xtensa_target)
2271 <low_supports_breakpoints>
2272 <low_get_pc>
2273 <low_set_pc>: Declare.
2274 (xtensa_target::low_supports_breakpoints)
2275 (xtensa_target::low_get_pc)
2276 (xtensa_target::low_set_pc): Define.
2277 (the_low_target): Remove the op fields.
2278 * linux-sparc-low.cc (class sparc_target)
2279 <low_supports_breakpoints>
2280 <low_get_pc>: Declare.
2281 (sparc_target::low_supports_breakpoints)
2282 (sparc_target::low_get_pc): Define.
2283 (the_low_target): Remove the op fields.
2284 * linux-tile-low.cc (class tile_target)
2285 <low_supports_breakpoints>
2286 <low_get_pc>
2287 <low_set_pc>: Declare.
2288 (tile_target::low_supports_breakpoints)
2289 (tile_target::low_get_pc)
2290 (tile_target::low_set_pc): Define.
2291 (the_low_target): Remove the op fields.
2292 * linux-aarch64-low.cc (class aarch64_target)
2293 <low_supports_breakpoints>
2294 <low_get_pc>
2295 <low_set_pc>: Declare.
2296 (aarch64_target::low_supports_breakpoints): Define.
2297 (aarch64_get_pc): Turn into...
2298 (aarch64_target::low_get_pc): ...this.
2299 (aarch64_set_pc): Turn into...
2300 (aarch64_target::low_set_pc): ...this.
2301 (the_low_target): Remove the op fields.
2302 * linux-mips-low.cc (class mips_target)
2303 <low_supports_breakpoints>
2304 <low_get_pc>
2305 <low_set_pc>: Declare.
2306 (mips_target::low_supports_breakpoints): Define.
2307 (mips_get_pc): Turn into...
2308 (mips_target::low_get_pc): ...this.
2309 (mips_set_pc): Turn into...
2310 (mips_target::low_set_pc): ...this.
2311 (the_low_target): Remove the op fields.
2312 * linux-ppc-low.cc (class ppc_target)
2313 <low_supports_breakpoints>
2314 <low_get_pc>
2315 <low_set_pc>: Declare.
2316 (ppc_target::low_supports_breakpoints): Define.
2317 (ppc_get_pc): Turn into...
2318 (ppc_target::low_get_pc): ...this.
2319 (ppc_set_pc): Turn into...
2320 (ppc_target::low_set_pc): ...this.
2321 (the_low_target): Remove the op fields.
2322 * linux-riscv-low.cc (class riscv_target)
2323 <low_supports_breakpoints>
2324 <low_get_pc>
2325 <low_set_pc>: Declare.
2326 (riscv_target::low_supports_breakpoints): Define.
2327 (riscv_get_pc): Turn into...
2328 (riscv_target::low_get_pc): ...this.
2329 (riscv_set_pc): Turn into...
2330 (riscv_target::low_set_pc): ...this.
2331 (the_low_target): Remove the op fields.
2332 * linux-s390-low.cc (class s390_target)
2333 <low_supports_breakpoints>
2334 <low_get_pc>
2335 <low_set_pc>: Declare.
2336 (s390_target::low_supports_breakpoints): Define.
2337 (s390_get_pc): Turn into...
2338 (s390_target::low_get_pc): ...this.
2339 (s390_set_pc): Turn into...
2340 (s390_target::low_set_pc): ...this.
2341 (the_low_target): Remove the op fields.
2342 * linux-tic6x-low.cc (class tic6x_target)
2343 <low_supports_breakpoints>
2344 <low_get_pc>
2345 <low_set_pc>: Declare.
2346 (tic6x_target::low_supports_breakpoints): Define.
2347 (tic6x_get_pc): Turn into...
2348 (tic6x_target::low_get_pc): ...this.
2349 (tic6x_set_pc): Turn into...
2350 (tic6x_target::low_set_pc): ...this.
2351 (the_low_target): Remove the op fields.
2352
df95181f
TBA
23532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2354
2355 Turn some more static methods in linux-low into private methods
2356 of linux_process_target.
2357
2358 * linux-low.cc (get_pc): Turn into...
2359 (linux_process_target::get_pc): ...this.
2360 (save_stop_reason): Turn into...
2361 (linux_process_target::save_stop_reason): ...this.
2362 (thread_still_has_status_pending_p): Turn into...
2363 (linux_process_target::thread_still_has_status_pending): ...this.
2364 (status_pending_p_callback): Turn into...
2365 (linux_process_target::status_pending_p_callback): ...this.
2366 (resume_stopped_resumed_lwps): Turn into...
2367 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2368 (install_software_single_step_breakpoints): Turn into...
2369 (linux_process_target::install_software_single_step_breakpoints):
2370 ...this.
2371 (single_step): Turn into...
2372 (linux_process_target::single_step): ...this.
2373 (linux_resume_one_lwp_throw): Turn into...
2374 (linux_process_target::resume_one_lwp_throw): ...this.
2375 (linux_resume_one_lwp): Turn into...
2376 (linux_process_target::resume_one_lwp): ...this.
2377 (resume_status_pending_p): Turn into...
2378 (linux_process_target::resume_status_pending): ...this.
2379 (need_step_over_p): Turn into...
2380 (linux_process_target::thread_needs_step_over): ...this.
2381 (linux_resume_one_thread): Turn into...
2382 (linux_process_target::resume_one_thread): ...this.
2383 (proceed_one_lwp): Turn into...
2384 (linux_process_target::proceed_one_lwp): ...this.
2385 (unsuspend_and_proceed_one_lwp): Turn into...
2386 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2387
2388 Update the calls/references to the above functions below.
2389
2390 (linux_process_target::handle_extended_wait)
2391 (linux_process_target::filter_event)
2392 (linux_process_target::wait_for_event_filtered)
2393 (linux_process_target::wait_1)
2394 (linux_process_target::move_out_of_jump_pad)
2395 (linux_process_target::start_step_over)
2396 (linux_process_target::resume)
2397 (linux_process_target::proceed_all_lwps)
2398 (regsets_store_inferior_registers)
2399 (linux_process_target::store_register)
2400
2401 * linux-low.h (class linux_process_target)
2402 <get_pc>
2403 <save_stop_reason>
2404 <thread_still_has_status_pending>
2405 <status_pending_p_callback>
2406 <resume_stopped_resumed_lwps>
2407 <install_software_single_step_breakpoints>
2408 <single_step>
2409 <resume_one_lwp_throw>
2410 <resume_one_lwp>
2411 <resume_status_pending>
2412 <thread_needs_step_over>
2413 <resume_one_thread>
2414 <proceed_one_lwp>
2415 <unsuspend_and_proceed_one_lwp>: Declare.
2416
bd70b1f2
TBA
24172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2418
2419 Turn the 'fetch_register' linux target op into a method of
2420 linux_process_target.
2421
2422 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2423 (class linux_process_target) <low_fetch_register>: Declare.
2424 * linux-x86-low.cc (the_low_target)
2425 * linux-aarch64-low.cc (the_low_target)
2426 * linux-arm-low.cc (the_low_target)
2427 * linux-bfin-low.cc (the_low_target)
2428 * linux-cris-low.cc (the_low_target)
2429 * linux-crisv32-low.cc (the_low_target)
2430 * linux-m32r-low.cc (the_low_target)
2431 * linux-m68k-low.cc (the_low_target)
2432 * linux-nios2-low.cc (the_low_target)
2433 * linux-ppc-low.cc (the_low_target)
2434 * linux-s390-low.cc (the_low_target)
2435 * linux-sh-low.cc (the_low_target)
2436 * linux-sparc-low.cc (the_low_target)
2437 * linux-tic6x-low.cc (the_low_target)
2438 * linux-tile-low.cc (the_low_target)
2439 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2440 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2441 Declare.
2442 (ia64_fetch_register): Turn into...
2443 (ia64_target::low_fetch_register): ...this.
2444 (the_low_target): Remove the op field.
2445 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2446 Declare.
2447 (mips_fetch_register): Turn into...
2448 (mips_target::low_fetch_register): ...this.
2449 (the_low_target): Remove the op field.
2450 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2451 Declare.
2452 (riscv_fetch_register): Turn into...
2453 (riscv_target::low_fetch_register): ...this.
2454 (the_low_target): Remove the op field.
2455
2456 Update the callers below.
2457
2458 * linux-low.cc (linux_process_target::fetch_registers)
2459 (linux_process_target::low_fetch_register)
2460
daca57a7
TBA
24612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2462
2463 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2464 linux target ops into methods of linux_process_target.
2465
2466 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2467 (class linux_process_target) <fetch_register>
2468 <store_register>
2469 <usr_fetch_inferior_registers>
2470 <usr_store_inferior_registers>
2471 <low_cannot_fetch_register>
2472 <low_cannot_fetch_register> Declare.
2473 * linux-low.cc (fetch_register): Turn into...
2474 (linux_process_target::fetch_register): ...this.
2475 (store_register): Turn into ...
2476 (linux_process_target::store_register): ...this.
2477 (usr_fetch_inferior_registers): Turn into...
2478 (linux_process_target::usr_fetch_inferior_registers): ...this.
2479 (usr_store_inferior_registers): Turn into...
2480 (linux_process_target::usr_store_inferior_registers): ...this.
2481 * linux-x86-low.cc (class x86_target)
2482 <low_cannot_fetch_register>
2483 <low_cannot_store_register>: Declare.
2484 (x86_cannot_store_register): Turn into...
2485 (x86_target::low_cannot_store_register): ...this.
2486 (x86_cannot_fetch_register): Turn into...
2487 (x86_target::low_cannot_fetch_register): ...this.
2488 (the_low_target): Remove the target op fields.
2489 * linux-aarch64-low.cc (class aarch64_target)
2490 <low_cannot_fetch_register>
2491 <low_cannot_store_register>: Declare.
2492 (aarch64_target::low_cannot_fetch_register)
2493 (aarch64_target::low_cannot_store_register): Define.
2494 (the_low_target): Remove the op fields.
2495 * linux-arm-low.cc (class arm_target)
2496 <low_cannot_fetch_register>
2497 <low_cannot_store_register>: Declare.
2498 (arm_cannot_fetch_register): Turn into...
2499 (arm_target::low_cannot_fetch_register): ...this.
2500 (arm_cannot_store_register): Turn into...
2501 (arm_target::low_cannot_store_register): ...this.
2502 (the_low_target): Remove the op fields.
2503 * linux-bfin-low.cc (class bfin_target)
2504 <low_cannot_fetch_register>
2505 <low_cannot_store_register>: Declare.
2506 (bfin_cannot_fetch_register): Turn into...
2507 (bfin_target::low_cannot_fetch_register): ...this.
2508 (bfin_cannot_store_register): Turn into...
2509 (bfin_target::low_cannot_store_register): ...this.
2510 (the_low_target): Remove the op fields.
2511 * linux-cris-low.cc (class cris_target)
2512 <low_cannot_fetch_register>
2513 <low_cannot_store_register>: Declare.
2514 (cris_cannot_fetch_register): Turn into...
2515 (cris_target::low_cannot_fetch_register): ...this.
2516 (cris_cannot_store_register): Turn into...
2517 (cris_target::low_cannot_store_register): ...this.
2518 (the_low_target): Remove the op fields.
2519 * linux-crisv32-low.cc (class crisv32_target)
2520 <low_cannot_fetch_register>
2521 <low_cannot_store_register>: Declare.
2522 (crisv32_target::low_cannot_fetch_register)
2523 (crisv32_target::low_cannot_store_register): Define.
2524 (the_low_target): Remove the op fields.
2525 * linux-ia64-low.cc (class ia64_target)
2526 <low_cannot_fetch_register>
2527 <low_cannot_store_register>: Declare.
2528 (ia64_cannot_fetch_register): Turn into...
2529 (ia64_target::low_cannot_fetch_register): ...this.
2530 (ia64_cannot_store_register): Turn into...
2531 (ia64_target::low_cannot_store_register): ...this.
2532 (the_low_target): Remove the op fields.
2533 * linux-m32r-low.cc (class m32r_target)
2534 <low_cannot_fetch_register>
2535 <low_cannot_store_register>: Declare.
2536 (m32r_cannot_fetch_register): Turn into...
2537 (m32r_target::low_cannot_fetch_register): ...this.
2538 (m32r_cannot_store_register): Turn into...
2539 (m32r_target::low_cannot_store_register): ...this.
2540 (the_low_target): Remove the op fields.
2541 * linux-m68k-low.cc (class m68k_target)
2542 <low_cannot_fetch_register>
2543 <low_cannot_store_register>: Declare.
2544 (m68k_cannot_fetch_register): Turn into...
2545 (m68k_target::low_cannot_fetch_register): ...this.
2546 (m68k_cannot_store_register): Turn into...
2547 (m68k_target::low_cannot_store_register): ...this.
2548 (the_low_target): Remove the op fields.
2549 * linux-mips-low.cc (class mips_target)
2550 <low_cannot_fetch_register>
2551 <low_cannot_store_register>: Declare.
2552 (mips_cannot_fetch_register): Turn into...
2553 (mips_target::low_cannot_fetch_register): ...this.
2554 (mips_cannot_store_register): Turn into...
2555 (mips_target::low_cannot_store_register): ...this.
2556 (get_usrregs_info): Inline at the call sites in
2557 low_cannot_fetch_register and low_cannot_store_register,
2558 and remove.
2559 (the_low_target): Remove the op fields.
2560 * linux-nios2-low.cc (class nios2_target)
2561 <low_cannot_fetch_register>
2562 <low_cannot_store_register>: Declare.
2563 (nios2_cannot_fetch_register): Turn into...
2564 (nios2_target::low_cannot_fetch_register): ...this.
2565 (nios2_cannot_store_register): Turn into...
2566 (nios2_target::low_cannot_store_register): ...this.
2567 (the_low_target): Remove the op fields.
2568 * linux-ppc-low.cc (class ppc_target)
2569 <low_cannot_fetch_register>
2570 <low_cannot_store_register>: Declare.
2571 (ppc_cannot_fetch_register): Turn into...
2572 (ppc_target::low_cannot_fetch_register): ...this.
2573 (ppc_cannot_store_register): Turn into...
2574 (ppc_target::low_cannot_store_register): ...this.
2575 (the_low_target): Remove the op fields.
2576 * linux-riscv-low.cc (class riscv_target)
2577 <low_cannot_fetch_register>
2578 <low_cannot_store_register>: Declare.
2579 (riscv_target::low_cannot_fetch_register)
2580 (riscv_target::low_cannot_store_register): Define.
2581 (the_low_target): Remove the op fields.
2582 * linux-s390-low.cc (class s390_target)
2583 <low_cannot_fetch_register>
2584 <low_cannot_store_register>: Declare.
2585 (s390_cannot_fetch_register): Turn into...
2586 (s390_target::low_cannot_fetch_register): ...this.
2587 (s390_cannot_store_register): Turn into...
2588 (s390_target::low_cannot_store_register): ...this.
2589 (the_low_target): Remove the op fields.
2590 * linux-sh-low.cc (class sh_target)
2591 <low_cannot_fetch_register>
2592 <low_cannot_store_register>: Declare.
2593 (sh_cannot_fetch_register): Turn into...
2594 (sh_target::low_cannot_fetch_register): ...this.
2595 (sh_cannot_store_register): Turn into...
2596 (sh_target::low_cannot_store_register): ...this.
2597 (the_low_target): Remove the op fields.
2598 * linux-sparc-low.cc (class sparc_target)
2599 <low_cannot_fetch_register>
2600 <low_cannot_store_register>: Declare.
2601 (sparc_cannot_fetch_register): Turn into...
2602 (sparc_target::low_cannot_fetch_register): ...this.
2603 (sparc_cannot_store_register): Turn into...
2604 (sparc_target::low_cannot_store_register): ...this.
2605 (the_low_target): Remove the op fields.
2606 * linux-tic6x-low.cc (class tic6x_target)
2607 <low_cannot_fetch_register>
2608 <low_cannot_store_register>: Declare.
2609 (tic6x_cannot_fetch_register): Turn into...
2610 (tic6x_target::low_cannot_fetch_register): ...this.
2611 (tic6x_cannot_store_register): Turn into...
2612 (tic6x_target::low_cannot_store_register): ...this.
2613 (the_low_target): Remove the op fields.
2614 * linux-tile-low.cc (class tile_target)
2615 <low_cannot_fetch_register>
2616 <low_cannot_store_register>: Declare.
2617 (tile_cannot_fetch_register): Turn into...
2618 (tile_target::low_cannot_fetch_register): ...this.
2619 (tile_cannot_store_register): Turn into...
2620 (tile_target::low_cannot_store_register): ...this.
2621 (the_low_target): Remove the op fields.
2622 * linux-xtensa-low.cc (class xtensa_target)
2623 <low_cannot_fetch_register>
2624 <low_cannot_store_register>: Declare.
2625 (xtensa_target::low_cannot_fetch_register)
2626 (xtensa_target::low_cannot_store_register): Define.
2627 (the_low_target): Remove the op fields.
2628
aa8d21c9
TBA
26292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2630
2631 Turn the 'regs_info' linux target op into a method of
2632 linux_process_target.
2633
2634 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2635 (class linux_process_target) <get_regs_info>: Define.
2636
2637 Update the callers below.
2638
2639 * linux-low.cc (linux_process_target::fetch_registers)
2640 (linux_process_target::store_registers)
2641 * proc-service.cc (gregset_info)
2642
2643 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2644 (x86_linux_regs_info): Turn into ...
2645 (x86_target::get_regs_info): ...this.
2646 (the_low_target): Remove the op field.
2647 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2648 Declare.
2649 (aarch64_regs_info): Turn into ...
2650 (aarch64_target::get_regs_info): ...this.
2651 (the_low_target): Remove the op field.
2652 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2653 (arm_regs_info): Turn into ...
2654 (arm_target::get_regs_info): ...this.
2655 (the_low_target): Remove the op field.
2656 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2657 (bfin_regs_info): Turn into ...
2658 (bfin_target::get_regs_info): ...this.
2659 (the_low_target): Remove the op field.
2660 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2661 (cris_regs_info): Turn into ...
2662 (cris_target::get_regs_info): ...this.
2663 (the_low_target): Remove the op field.
2664 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2665 Declare.
2666 (crisv32_regs_info): Turn into ...
2667 (crisv32_target::get_regs_info): ...this.
2668 (the_low_target): Remove the op field.
2669 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2670 (ia64_regs_info): Turn into ...
2671 (ia64_target::get_regs_info): ...this.
2672 (the_low_target): Remove the op field.
2673 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2674 (m32r_regs_info): Turn into ...
2675 (m32r_target::get_regs_info): ...this.
2676 (the_low_target): Remove the op field.
2677 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2678 (m68k_regs_info): Turn into ...
2679 (m68k_target::get_regs_info): ...this.
2680 (the_low_target): Remove the op field.
2681 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2682 (mips_regs_info): Turn into ...
2683 (mips_target::get_regs_info): ...this.
2684 (the_low_target): Remove the op field.
2685 (get_usrregs_info): Update the call to the op.
2686 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2687 (nios2_regs_info): Turn into ...
2688 (nios2_target::get_regs_info): ...this.
2689 (the_low_target): Remove the op field.
2690 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2691 (ppc_regs_info): Turn into ...
2692 (ppc_target::get_regs_info): ...this.
2693 (the_low_target): Remove the op field.
2694 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2695 (riscv_regs_info): Turn into ...
2696 (riscv_target::get_regs_info): ...this.
2697 (the_low_target): Remove the op field.
2698 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2699 (s390_regs_info): Turn into ...
2700 (s390_target::get_regs_info): ...this.
2701 (the_low_target): Remove the op field.
2702 (s390_collect_ptrace_register)
2703 (s390_supply_ptrace_register)
2704 (s390_fill_gregset): Update the call to the op.
2705 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2706 (sh_regs_info): Turn into ...
2707 (sh_target::get_regs_info): ...this.
2708 (the_low_target): Remove the op field.
2709 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2710 (sparc_regs_info): Turn into ...
2711 (sparc_target::get_regs_info): ...this.
2712 (the_low_target): Remove the op field.
2713 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2714 (tic6x_regs_info): Turn into ...
2715 (tic6x_target::get_regs_info): ...this.
2716 (the_low_target): Remove the op field.
2717 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2718 (tile_regs_info): Turn into ...
2719 (tile_target::get_regs_info): ...this.
2720 (the_low_target): Remove the op field.
2721 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2722 Declare.
2723 (xtensa_regs_info): Turn into ...
2724 (xtensa_target::get_regs_info): ...this.
2725 (the_low_target): Remove the op field.
2726
797bcff5
TBA
27272020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2728
2729 Turn the 'arch_setup' linux target op into a method of
2730 linux_process_target.
2731
2732 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2733 (class linux_process_target) <arch_setup_thread>
2734 <low_arch_setup>: New declarations.
2735 * linux-low.cc (linux_arch_setup): Delete.
2736 (linux_arch_setup_thread): Turn into...
2737 (linux_process_target::arch_setup_thread): ... this.
2738
2739 Update the callers below.
2740
2741 (linux_process_target::handle_extended_wait)
2742 (linux_process_target::post_create_inferior)
2743 (linux_process_target::filter_event)
2744
2745 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2746 declaration.
2747 (x86_linux_update_xmltarget): Turn into...
2748 (x86_target::update_xmltarget): ...this.
2749 (x86_linux_process_qsupported): Update the call to
2750 x86_linux_update_xmltarget.
2751 (x86_arch_setup): Turn into ...
2752 (x86_target::low_arch_setup): ...this.
2753 (the_low_target): Remove the op field.
2754 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2755 declaration.
2756 (aarch64_arch_setup): Turn into ...
2757 (aarch64_target::low_arch_setup): ...this.
2758 (the_low_target): Remove the op field.
2759 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2760 declaration.
2761 (arm_arch_setup): Turn into ...
2762 (arm_target::low_arch_setup): ...this.
2763 (the_low_target): Remove the op field.
2764 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2765 declaration.
2766 (bfin_arch_setup): Turn into ...
2767 (bfin_target::low_arch_setup): ...this.
2768 (the_low_target): Remove the op field.
2769 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2770 declaration.
2771 (cris_arch_setup): Turn into ...
2772 (cris_target::low_arch_setup): ...this.
2773 (the_low_target): Remove the op field.
2774 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2775 declaration.
2776 (crisv32_arch_setup): Turn into ...
2777 (crisv32_target::low_arch_setup): ...this.
2778 (the_low_target): Remove the op field.
2779 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2780 declaration.
2781 (ia64_arch_setup): Turn into ...
2782 (ia64_target::low_arch_setup): ...this.
2783 (the_low_target): Remove the op field.
2784 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2785 declaration.
2786 (m32r_arch_setup): Turn into ...
2787 (m32r_target::low_arch_setup): ...this.
2788 (the_low_target): Remove the op field.
2789 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2790 declaration.
2791 (m68k_arch_setup): Turn into ...
2792 (m68k_target::low_arch_setup): ...this.
2793 (the_low_target): Remove the op field.
2794 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2795 declaration.
2796 (mips_arch_setup): Turn into ...
2797 (mips_target::low_arch_setup): ...this.
2798 (the_low_target): Remove the op field.
2799 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2800 declaration.
2801 (nios2_arch_setup): Turn into ...
2802 (nios2_target::low_arch_setup): ...this.
2803 (the_low_target): Remove the op field.
2804 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2805 declaration.
2806 (ppc_arch_setup): Turn into ...
2807 (ppc_target::low_arch_setup): ...this.
2808 (the_low_target): Remove the op field.
2809 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2810 declaration.
2811 (riscv_arch_setup): Turn into ...
2812 (riscv_target::low_arch_setup): ...this.
2813 (the_low_target): Remove the op field.
2814 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2815 declaration.
2816 (s390_arch_setup): Turn into ...
2817 (s390_target::low_arch_setup): ...this.
2818 (the_low_target): Remove the op field.
2819 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2820 declaration.
2821 (sh_arch_setup): Turn into ...
2822 (sh_target::low_arch_setup): ...this.
2823 (the_low_target): Remove the op field.
2824 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2825 declaration.
2826 (sparc_arch_setup): Turn into ...
2827 (sparc_target::low_arch_setup): ...this.
2828 (the_low_target): Remove the op field.
2829 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2830 declaration.
2831 (tic6x_arch_setup): Turn into ...
2832 (tic6x_target::low_arch_setup): ...this.
2833 (the_low_target): Remove the op field.
2834 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2835 declaration.
2836 (tile_arch_setup): Turn into ...
2837 (tile_target::low_arch_setup): ...this.
2838 (the_low_target): Remove the op field.
2839 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2840 declaration.
2841 (xtensa_arch_setup): Turn into ...
2842 (xtensa_target::low_arch_setup): ...this.
2843 (the_low_target): Remove the op field.
2844
ef0478f6
TBA
28452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2846
2847 * linux-low.h (the_linux_target): New extern declaration.
2848 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2849 'the_target'.
2850 (the_linux_target): Remove.
2851 * linux-x86-low.cc (class x86_target): New class.
2852 (the_x86_target): New static object.
2853 (the_linux_target): Define as pointer to the_x86_target.
2854 * linux-aarch64-low.cc (class aarch64_target): New class.
2855 (the_aarch64_target): New static object.
2856 (the_linux_target): Define as pointer to the_aarch64_target.
2857 * linux-arm-low.cc (class arm_target): New class.
2858 (the_arm_target): New static object.
2859 (the_linux_target): Define as pointer to the_arm_target.
2860 * linux-bfin-low.cc (class bfin_target): New class.
2861 (the_bfin_target): New static object.
2862 (the_linux_target): Define as pointer to the_bfin_target.
2863 * linux-cris-low.cc (class cris_target): New class.
2864 (the_cris_target): New static object.
2865 (the_linux_target): Define as pointer to the_cris_target.
2866 * linux-crisv32-low.cc (class crisv32_target): New class.
2867 (the_crisv32_target): New static object.
2868 (the_linux_target): Define as pointer to the_crisv32_target.
2869 * linux-ia64-low.cc (class ia64_target): New class.
2870 (the_ia64_target): New static object.
2871 (the_linux_target): Define as pointer to the_ia64_target.
2872 * linux-m32r-low.cc (class m32r_target): New class.
2873 (the_m32r_target): New static object.
2874 (the_linux_target): Define as pointer to the_m32r_target.
2875 * linux-m68k-low.cc (class m68k_target): New class.
2876 (the_m68k_target): New static object.
2877 (the_linux_target): Define as pointer to the_m68k_target.
2878 * linux-mips-low.cc (class mips_target): New class.
2879 (the_mips_target): New static object.
2880 (the_linux_target): Define as pointer to the_mips_target.
2881 * linux-nios2-low.cc (class nios2_target): New class.
2882 (the_nios2_target): New static object.
2883 (the_linux_target): Define as pointer to the_nios2_target.
2884 * linux-ppc-low.cc (class ppc_target): New class.
2885 (the_ppc_target): New static object.
2886 (the_linux_target): Define as pointer to the_ppc_target.
2887 * linux-riscv-low.cc (class riscv_target): New class.
2888 (the_riscv_target): New static object.
2889 (the_linux_target): Define as pointer to the_riscv_target.
2890 * linux-s390-low.cc (class s390_target): New class.
2891 (the_s390_target): New static object.
2892 (the_linux_target): Define as pointer to the_s390_target.
2893 * linux-sh-low.cc (class sh_target): New class.
2894 (the_sh_target): New static object.
2895 (the_linux_target): Define as pointer to the_sh_target.
2896 * linux-sparc-low.cc (class sparc_target): New class.
2897 (the_sparc_target): New static object.
2898 (the_linux_target): Define as pointer to the_sparc_target.
2899 * linux-tic6x-low.cc (class tic6x_target): New class.
2900 (the_tic6x_target): New static object.
2901 (the_linux_target): Define as pointer to the_tic6x_target.
2902 * linux-tile-low.cc (class tile_target): New class.
2903 (the_tile_target): New static object.
2904 (the_linux_target): Define as pointer to the_tile_target.
2905 * linux-xtensa-low.cc (class xtensa_target): New class.
2906 (the_xtensa_target): New static object.
2907 (the_linux_target): Define as pointer to the_xtensa_target.
2908
d16f3f6c
TBA
29092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2910
2911 Turn some static functions in linux-low.cc into private methods of
2912 linux_process_target.
2913
2914 * linux-low.cc (handle_extended_wait): Turn into ...
2915 (linux_process_target::handle_extended_wait): ...this. Call
2916 'mourn' on 'this' object instead of 'the_target'.
2917 (maybe_move_out_of_jump_pad): Turn into...
2918 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2919 (linux_low_filter_event): Turn into...
2920 (linux_process_target::filter_event): ...this.
2921 (linux_wait_for_event_filtered): Turn into...
2922 (linux_process_target::wait_for_event_filtered): ...this.
2923 (linux_wait_for_event): Turn into...
2924 (linux_process_target::wait_for_event): ...this.
2925 (linux_wait_1): Turn into...
2926 (linux_process_target::wait_1): ...this.
2927 (wait_for_sigstop): Turn into...
2928 (linux_process_target::wait_for_sigstop): ...this.
2929 (move_out_of_jump_pad_callback): Turn into...
2930 (linux_process_target::move_out_of_jump_pad): ...this.
2931 (stop_all_lwps): Turn into...
2932 (linux_process_target::stop_all_lwps): ...this.
2933 (start_step_over): Turn into...
2934 (linux_process_target::start_step_over): ...this.
2935 (complete_ongoing_step_over): Turn into...
2936 (linux_process_target::complete_ongoing_step_over): ...this.
2937 (proceed_all_lwps): Turn into...
2938 (linux_process_target::proceed_all_lwps): ...this.
2939 (unstop_all_lwps): Turn into...
2940 (linux_process_target::unstop_all_lwps): ...this.
2941
2942 * linux-low.h (class linux_process_target)
2943 <handle_extended_wait>
2944 <maybe_move_out_of_jump_pad>
2945 filter_event>
2946 <wait_for_event_filtered>
2947 <wait_for_event>
2948 <wait_1>
2949 <wait_for_sigstop>
2950 <move_out_of_jump_pad>
2951 <stop_all_lwps>
2952 <start_step_over>
2953 <complete_ongoing_step_over>
2954 <proceed_all_lwps>
2955 <unstop_all_lwps>: Declare.
2956
2957 Update the callers below.
2958
2959 * linux-low.cc (linux_process_target::attach): Update.
2960 (linux_process_target::stabilize_threads): Ditto.
2961 (linux_process_target::wait): Ditto.
2962
a5863204
TBA
29632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2964
2965 * linux-low.h (struct linux_target_ops): Update the comment for
2966 'cannot_store_register' to return 0 or 1.
2967 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2968 of 2.
2969
c884cc46
SM
29702020-03-20 Simon Marchi <simon.marchi@efficios.com>
2971
2972 * config.in: Re-generate.
2973 * configure: Re-generate.
2974
5a82b8a1
KR
29752020-03-17 Kamil Rytarowski <n54@gmx.com>
2976
2977 * regcache.cc (find_register_by_number): Update.
2978 * tdesc.cc (init_target_desc): Likewise.
2979 * tdesc.h (target_desc::reg_defs): Likewise.
2980
4635ff97
TT
29812020-03-12 Tom Tromey <tom@tromey.com>
2982
2983 * configure: Rebuild.
2984 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2985 (WIN32APILIBS): New subst.
2986 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2987 gdbsupport files.
2988 (gdbsupport/%.o): Remove target.
2989 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2990 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2991 (WIN32APILIBS): New variable.
2992 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2993 (gdbreplay$(EXEEXT)): Likewise.
2994
9a665d62
TT
29952020-03-12 Tom Tromey <tom@tromey.com>
2996
2997 * config.in, configure: Rebuild.
2998 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2999 * acinclude.m4: Include gettext-sister.m4.
3000 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
3001 variables.
3002 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
3003 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
3004
272cd5a3
SM
30052020-03-12 Simon Marchi <simon.marchi@efficios.com>
3006
3007 * acinclude.m4: Update path to selftest.m4.
3008
db6878ac
SM
30092020-03-12 Simon Marchi <simon.marchi@efficios.com>
3010
3011 * configure.ac: Don't source bfd/development.sh, move
3012 GDB_AC_COMMON higher.
3013 * configure: Re-generate.
3014
4d696a5c
SM
30152020-03-12 Simon Marchi <simon.marchi@efficios.com>
3016
3017 * configure: Re-generate.
3018
a0761e34
SM
30192020-03-11 Simon Marchi <simon.marchi@efficios.com>
3020
3021 * configure: Re-generate.
3022
20ea4a60
AB
30232020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3024
3025 * .dir-locals.el: New file.
3026
842806cb
TBA
30272020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3028
3029 * .gitattributes: New file.
3030
442131c1
AB
30312020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3032
3033 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
3034 reply into an S reply.
3035 * server.cc (disable_packet_T): New global.
3036 (captured_main): Set new global when appropriate.
3037 * server.h (disable_packet_T): Declare.
3038
dda42c0b
TT
30392020-02-21 Tom Tromey <tom@tromey.com>
3040
3041 * Makefile.in (mostlyclean): New target.
3042
52405d85
TBA
30432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3044
3045 * target.h (struct process_stratum_target): Remove.
3046 (class process_target): Rename to ...
3047 (class process_stratum_target): ... this.
3048 * linux-low.h (class linux_process_target): Derive from
3049 'process_stratum_target'.
3050 * linux-low.cc (linux_target_ops): Remove.
3051 (initialize_low): Set the_target to the singleton instance of
3052 linux_process_target.
3053 * lynx-low.h (class lynx_process_target): Derive from
3054 'process_stratum_target'.
3055 * lynx-low.cc (lynx_target_ops): Remove.
3056 (initialize_low): Set the_target to the singleton instance of
3057 lynx_process_target.
3058 * nto-low.h (class nto_process_target): Derive from
3059 'process_stratum_target'.
3060 * nto-low.cc (nto_target_ops): Remove.
3061 (initialize_low): Set the_target to the singleton instance of
3062 nto_process_target.
3063 * win32-low.h (class win32_process_target): Derive from
3064 'process_stratum_target'.
3065 * win32-low.cc (win32_target_ops): Remove.
3066 (initialize_low): Set the_target to the singleton instance of
3067 win32_process_target.
3068
3069 Replace 'the_target->pt' with 'the_target' in the uses below.
3070
3071 * hostio.cc (hostio_error)
3072 (handle_setfs)
3073 (handle_open)
3074 (handle_unlink)
3075 (handle_readlink)
3076 * linux-aarch32-low.cc (arm_breakpoint_at)
3077 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3078 * linux-arm-low.cc (arm_sigreturn_next_pc)
3079 (arm_get_hwcap)
3080 (arm_get_syscall_trapinfo)
3081 * linux-cris-low.cc (cris_breakpoint_at)
3082 * linux-crisv32-low.cc (cris_breakpoint_at)
3083 * linux-low.cc (handle_extended_wait)
3084 (linux_wait_1)
3085 (linux_read_memory)
3086 (linux_process_target::breakpoint_kind_from_pc)
3087 (linux_get_auxv)
3088 * linux-m32r-low.cc (m32r_breakpoint_at)
3089 * linux-mips-low.cc (mips_breakpoint_at)
3090 * linux-nios2-low.cc (nios2_breakpoint_at)
3091 * linux-ppc-low.cc (ppc_breakpoint_at)
3092 * linux-s390-low.cc (s390_get_hwcap)
3093 * linux-sh-low.cc (sh_breakpoint_at)
3094 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3095 (sparc_store_gregset_from_stack)
3096 (sparc_breakpoint_at)
3097 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3098 * linux-tile-low.cc (tile_breakpoint_at)
3099 * linux-x86-low.cc (x86_breakpoint_at)
3100 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3101 * mem-break.cc (bp_size)
3102 (bp_opcode)
3103 (insert_memory_breakpoint)
3104 (set_raw_breakpoint_at)
3105 (delete_raw_breakpoint)
3106 (z_type_supported)
3107 (uninsert_raw_breakpoint)
3108 (reinsert_raw_breakpoint)
3109 (validate_inserted_breakpoint)
3110 * regcache.cc (regcache_read_pc)
3111 (regcache_write_pc)
3112 * remote-utils.cc (putpkt_binary_1)
3113 (input_interrupt)
3114 (getpkt)
3115 (prepare_resume_reply)
3116 * server.cc (handle_general_set)
3117 (handle_detach)
3118 (handle_qxfer_auxv)
3119 (handle_qxfer_exec_file)
3120 (handle_qxfer_libraries_svr4)
3121 (handle_qxfer_osdata)
3122 (handle_qxfer_siginfo)
3123 (handle_qxfer_fdpic)
3124 (handle_query)
3125 (resume)
3126 (handle_v_requests)
3127 (queue_stop_reply_callback)
3128 (captured_main)
3129 * target.cc (prepare_to_access_memory)
3130 (done_accessing_memory)
3131 (read_inferior_memory)
3132 (target_write_memory)
3133 (target_stop_and_wait)
3134 (target_wait)
3135 (target_mourn_inferior)
3136 (target_continue_no_signal)
3137 (target_continue)
3138 (target_supports_multi_process)
3139 (kill_inferior)
3140 * target.h
3141 (target_create_inferior)
3142 (target_post_create_inferior)
3143 (myattach)
3144 (target_supports_fork_events)
3145 (target_supports_vfork_events)
3146 (target_supports_exec_events)
3147 (target_handle_new_gdb_connection)
3148 (detach_inferior)
3149 (mythread_alive)
3150 (fetch_inferior_registers)
3151 (store_inferior_registers)
3152 (join_inferior)
3153 (target_supports_non_stop)
3154 (target_async)
3155 (target_process_qsupported)
3156 (target_supports_catch_syscall)
3157 (target_get_ipa_tdesc_idx)
3158 (target_supports_tracepoints)
3159 (target_supports_fast_tracepoints)
3160 (target_get_min_fast_tracepoint_insn_len)
3161 (target_thread_stopped)
3162 (target_pause_all)
3163 (target_unpause_all)
3164 (target_stabilize_threads)
3165 (target_install_fast_tracepoint_jump_pad)
3166 (target_emit_ops)
3167 (target_supports_disable_randomization)
3168 (target_supports_agent)
3169 (target_enable_btrace)
3170 (target_disable_btrace)
3171 (target_read_btrace)
3172 (target_read_btrace_conf)
3173 (target_supports_range_stepping)
3174 (target_supports_stopped_by_sw_breakpoint)
3175 (target_stopped_by_sw_breakpoint)
3176 (target_supports_stopped_by_hw_breakpoint)
3177 (target_supports_hardware_single_step)
3178 (target_stopped_by_hw_breakpoint)
3179 (target_breakpoint_kind_from_pc)
3180 (target_breakpoint_kind_from_current_state)
3181 (target_supports_software_single_step)
3182 (target_core_of_thread)
3183 (target_thread_name)
3184 (target_thread_handle)
3185 * win32-low.cc (do_initial_child_stuff)
3186
3187 Rename target op default definitions listed below.
3188
3189 * target.cc (process_target::post_create_inferior): Rename as ...
3190 (process_stratum_target::post_create_inferior): ... this.
3191 (process_target::prepare_to_access_memory): Rename as ...
3192 (process_stratum_target::prepare_to_access_memory): ... this.
3193 (process_target::done_accessing_memory): Rename as ...
3194 (process_stratum_target::done_accessing_memory): ... this.
3195 (process_target::look_up_symbols): Rename as ...
3196 (process_stratum_target::look_up_symbols): ... this.
3197 (process_target::supports_read_auxv): Rename as ...
3198 (process_stratum_target::supports_read_auxv): ... this.
3199 (process_target::read_auxv): Rename as ...
3200 (process_stratum_target::read_auxv): ... this.
3201 (process_target::supports_z_point_type): Rename as ...
3202 (process_stratum_target::supports_z_point_type): ... this.
3203 (process_target::insert_point): Rename as ...
3204 (process_stratum_target::insert_point): ... this.
3205 (process_target::remove_point): Rename as ...
3206 (process_stratum_target::remove_point): ... this.
3207 (process_target::stopped_by_sw_breakpoint): Rename as ...
3208 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3209 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3210 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3211 (process_target::stopped_by_hw_breakpoint): Rename as ...
3212 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3213 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3214 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3215 (process_target::supports_hardware_single_step): Rename as ...
3216 (process_stratum_target::supports_hardware_single_step): ... this.
3217 (process_target::stopped_by_watchpoint): Rename as ...
3218 (process_stratum_target::stopped_by_watchpoint): ... this.
3219 (process_target::stopped_data_address): Rename as ...
3220 (process_stratum_target::stopped_data_address): ... this.
3221 (process_target::supports_read_offsets): Rename as ...
3222 (process_stratum_target::supports_read_offsets): ... this.
3223 (process_target::read_offsets): Rename as ...
3224 (process_stratum_target::read_offsets): ... this.
3225 (process_target::supports_get_tls_address): Rename as ...
3226 (process_stratum_target::supports_get_tls_address): ... this.
3227 (process_target::get_tls_address): Rename as ...
3228 (process_stratum_target::get_tls_address): ... this.
3229 (process_target::hostio_last_error): Rename as ...
3230 (process_stratum_target::hostio_last_error): ... this.
3231 (process_target::supports_qxfer_osdata): Rename as ...
3232 (process_stratum_target::supports_qxfer_osdata): ... this.
3233 (process_target::qxfer_osdata): Rename as ...
3234 (process_stratum_target::qxfer_osdata): ... this.
3235 (process_target::supports_qxfer_siginfo): Rename as ...
3236 (process_stratum_target::supports_qxfer_siginfo): ... this.
3237 (process_target::qxfer_siginfo): Rename as ...
3238 (process_stratum_target::qxfer_siginfo): ... this.
3239 (process_target::supports_non_stop): Rename as ...
3240 (process_stratum_target::supports_non_stop): ... this.
3241 (process_target::async): Rename as ...
3242 (process_stratum_target::async): ... this.
3243 (process_target::start_non_stop): Rename as ...
3244 (process_stratum_target::start_non_stop): ... this.
3245 (process_target::supports_multi_process): Rename as ...
3246 (process_stratum_target::supports_multi_process): ... this.
3247 (process_target::supports_fork_events): Rename as ...
3248 (process_stratum_target::supports_fork_events): ... this.
3249 (process_target::supports_vfork_events): Rename as ...
3250 (process_stratum_target::supports_vfork_events): ... this.
3251 (process_target::supports_exec_events): Rename as ...
3252 (process_stratum_target::supports_exec_events): ... this.
3253 (process_target::handle_new_gdb_connection): Rename as ...
3254 (process_stratum_target::handle_new_gdb_connection): ... this.
3255 (process_target::handle_monitor_command): Rename as ...
3256 (process_stratum_target::handle_monitor_command): ... this.
3257 (process_target::core_of_thread): Rename as ...
3258 (process_stratum_target::core_of_thread): ... this.
3259 (process_target::supports_read_loadmap): Rename as ...
3260 (process_stratum_target::supports_read_loadmap): ... this.
3261 (process_target::read_loadmap): Rename as ...
3262 (process_stratum_target::read_loadmap): ... this.
3263 (process_target::process_qsupported): Rename as ...
3264 (process_stratum_target::process_qsupported): ... this.
3265 (process_target::supports_tracepoints): Rename as ...
3266 (process_stratum_target::supports_tracepoints): ... this.
3267 (process_target::read_pc): Rename as ...
3268 (process_stratum_target::read_pc): ... this.
3269 (process_target::write_pc): Rename as ...
3270 (process_stratum_target::write_pc): ... this.
3271 (process_target::supports_thread_stopped): Rename as ...
3272 (process_stratum_target::supports_thread_stopped): ... this.
3273 (process_target::thread_stopped): Rename as ...
3274 (process_stratum_target::thread_stopped): ... this.
3275 (process_target::supports_get_tib_address): Rename as ...
3276 (process_stratum_target::supports_get_tib_address): ... this.
3277 (process_target::get_tib_address): Rename as ...
3278 (process_stratum_target::get_tib_address): ... this.
3279 (process_target::pause_all): Rename as ...
3280 (process_stratum_target::pause_all): ... this.
3281 (process_target::unpause_all): Rename as ...
3282 (process_stratum_target::unpause_all): ... this.
3283 (process_target::stabilize_threads): Rename as ...
3284 (process_stratum_target::stabilize_threads): ... this.
3285 (process_target::supports_fast_tracepoints): Rename as ...
3286 (process_stratum_target::supports_fast_tracepoints): ... this.
3287 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3288 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3289 (process_target::emit_ops): Rename as ...
3290 (process_stratum_target::emit_ops): ... this.
3291 (process_target::supports_disable_randomization): Rename as ...
3292 (process_stratum_target::supports_disable_randomization): ... this.
3293 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3294 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3295 (process_target::qxfer_libraries_svr4): Rename as ...
3296 (process_stratum_target::qxfer_libraries_svr4): ... this.
3297 (process_target::supports_agent): Rename as ...
3298 (process_stratum_target::supports_agent): ... this.
3299 (process_target::enable_btrace): Rename as ...
3300 (process_stratum_target::enable_btrace): ... this.
3301 (process_target::disable_btrace): Rename as ...
3302 (process_stratum_target::disable_btrace): ... this.
3303 (process_target::read_btrace): Rename as ...
3304 (process_stratum_target::read_btrace): ... this.
3305 (process_target::read_btrace_conf): Rename as ...
3306 (process_stratum_target::read_btrace_conf): ... this.
3307 (process_target::supports_range_stepping): Rename as ...
3308 (process_stratum_target::supports_range_stepping): ... this.
3309 (process_target::supports_pid_to_exec_file): Rename as ...
3310 (process_stratum_target::supports_pid_to_exec_file): ... this.
3311 (process_target::pid_to_exec_file): Rename as ...
3312 (process_stratum_target::pid_to_exec_file): ... this.
3313 (process_target::supports_multifs): Rename as ...
3314 (process_stratum_target::supports_multifs): ... this.
3315 (process_target::multifs_open): Rename as ...
3316 (process_stratum_target::multifs_open): ... this.
3317 (process_target::multifs_unlink): Rename as ...
3318 (process_stratum_target::multifs_unlink): ... this.
3319 (process_target::multifs_readlink): Rename as ...
3320 (process_stratum_target::multifs_readlink): ... this.
3321 (process_target::breakpoint_kind_from_pc): Rename as ...
3322 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3323 (process_target::breakpoint_kind_from_current_state): Rename as ...
3324 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3325 (process_target::thread_name): Rename as ...
3326 (process_stratum_target::thread_name): ... this.
3327 (process_target::thread_handle): Rename as ...
3328 (process_stratum_target::thread_handle): ... this.
3329 (process_target::supports_software_single_step): Rename as ...
3330 (process_stratum_target::supports_software_single_step): ... this.
3331 (process_target::supports_catch_syscall): Rename as ...
3332 (process_stratum_target::supports_catch_syscall): ... this.
3333 (process_target::get_ipa_tdesc_idx): Rename as ...
3334 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3335
478f9adf
PA
33362020-02-20 Pedro Alves <palves@redhat.com>
3337
3338 * target.cc (set_target_ops): Simply copy the given target pointer
3339 instead of creating a copy of the pointed object.
3340
d633e831
TBA
33412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3342
3343 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3344 of process_target.
3345
3346 * target.h (struct process_stratum_target): Remove the target op.
3347 (class process_target): Add the target op.
3348 (target_get_ipa_tdesc_idx): Update the macro.
3349 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3350
3351 Update the derived classes and callers below.
3352
3353 * linux-low.cc (linux_target_ops): Update.
3354 (linux_get_ipa_tdesc_idx): Turn into ...
3355 (linux_process_target::get_ipa_tdesc_idx): ... this.
3356 * linux-low.h (class linux_process_target): Update.
3357 * lynx-low.cc (lynx_target_ops): Update.
3358 * nto-low.cc (nto_target_ops): Update.
3359 * win32-low.cc (win32_target_ops): Update.
3360
bc8d3ae4
TBA
33612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3362
3363 Turn process_stratum_target's supports_catch_syscall op into a
3364 method of process_target.
3365
3366 * target.h (struct process_stratum_target): Remove the target op.
3367 (class process_target): Add the target op.
3368 (target_supports_catch_syscall): Update the macro.
3369 * target.cc (process_target::supports_catch_syscall): Define.
3370
3371 Update the derived classes and callers below.
3372
3373 * linux-low.cc (linux_target_ops): Update.
3374 (linux_supports_catch_syscall): Turn into ...
3375 (linux_process_target::supports_catch_syscall): ... this.
3376 * linux-low.h (class linux_process_target): Update.
3377 * lynx-low.cc (lynx_target_ops): Update.
3378 * nto-low.cc (nto_target_ops): Update.
3379 * win32-low.cc (win32_target_ops): Update.
3380
5303a34f
TBA
33812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3382
3383 Turn process_stratum_target's supports_software_single_step op
3384 into a method of process_target.
3385
3386 * target.h (struct process_stratum_target): Remove the target op.
3387 (class process_target): Add the target op.
3388 (target_supports_software_single_step): Update the macro.
3389 * target.cc (process_target::supports_software_single_step): Define.
3390
3391 Update the derived classes and callers below.
3392
3393 * linux-low.cc (linux_target_ops): Update.
3394 (linux_supports_software_single_step): Turn into ...
3395 (linux_process_target::supports_software_single_step): ... this.
3396 * linux-low.h (class linux_process_target): Update.
3397 * lynx-low.cc (lynx_target_ops): Update.
3398 * nto-low.cc (nto_target_ops): Update.
3399 * win32-low.cc (win32_target_ops): Update.
3400
7f63b89b
TBA
34012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3402
3403 Turn process_stratum_target's thread_name and thread_handle ops
3404 into methods of process_target.
3405
3406 * target.h (struct process_stratum_target): Remove the target ops.
3407 (class process_target): Add the target ops.
3408 (target_thread_name): Update the macro.
3409 (target_thread_handle): Update the macro.
3410 * target.cc (process_target::thread_name): Define.
3411 (process_target::thread_handle): Define.
3412
3413 Update the derived classes and callers below.
3414
3415 * linux-low.cc (linux_target_ops): Update.
3416 (linux_process_target::thread_name): Define.
3417 (linux_process_target::thread_handle): Define.
3418 * linux-low.h (class linux_process_target): Update.
3419 * lynx-low.cc (lynx_target_ops): Update.
3420 * nto-low.cc (nto_target_ops): Update.
3421 * win32-low.cc (win32_target_ops): Update.
3422
d367006f
TBA
34232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3424
3425 Turn process_stratum_target's breakpoint_kind_from_pc,
3426 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3427 ops into methods of process_target.
3428
3429 * target.h (struct process_stratum_target): Remove the target op.
3430 (class process_target): Add the target op.
3431 (target_breakpoint_kind_from_pc): Update the macro.
3432 (target_breakpoint_kind_from_current_state): Update the macro.
3433 (default_breakpoint_kind_from_pc): Remove declaration.
3434 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3435 (process_target::breakpoint_kind_from_pc): ... this.
3436 (process_target::breakpoint_kind_from_current_state): Define.
3437
3438 Update the derived classes and callers below.
3439
3440 * mem-break.cc (bp_size): Update.
3441 (bp_opcode): Update.
3442 * linux-low.cc (linux_target_ops): Update.
3443 (linux_wait_1): Update.
3444 (linux_breakpoint_kind_from_pc): Turn into ...
3445 (linux_process_target::breakpoint_kind_from_pc): ... this.
3446 (linux_sw_breakpoint_from_kind): Turn into ...
3447 (linux_process_target::sw_breakpoint_from_kind): ... this.
3448 (linux_breakpoint_kind_from_current_state): Turn into ...
3449 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3450 * linux-low.h (class linux_process_target): Update.
3451 * lynx-low.cc (lynx_target_ops): Update.
3452 (lynx_process_target::sw_breakpoint_from_kind): Define.
3453 * lynx-low.h (class lynx_process_target): Update.
3454 * nto-low.cc (nto_target_ops): Update.
3455 (nto_sw_breakpoint_from_kind): Turn into ...
3456 (nto_process_target::sw_breakpoint_from_kind): ... this.
3457 * nto-low.h (class nto_process_target): Update.
3458 * win32-low.cc (win32_target_ops): Update.
3459 (win32_sw_breakpoint_from_kind): Turn into ...
3460 (win32_process_target::sw_breakpoint_from_kind): ... this.
3461 * win32-low.h (class win32_process_target): Update.
3462
c9b7b804
TBA
34632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3464
3465 Turn process_stratum_target's multifs_open, multifs_readlink,
3466 multifs_unlink ops into methods of process_target.
3467
3468 * target.h (struct process_stratum_target): Remove the target ops.
3469 (class process_target): Add the target ops. Also add
3470 'supports_multifs'.
3471 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3472 "sys/stat.h".
3473 (process_target::supports_multifs): Define.
3474 (process_target::multifs_open): Define.
3475 (process_target::multifs_readlink): Define.
3476 (process_target::multifs_unlink): Define.
3477
3478 Update the derived classes and callers below.
3479
3480 * hostio.cc (handle_setfs): Update.
3481 (handle_open): Update.
3482 (handle_unlink): Update.
3483 (handle_readlink): Update.
3484 * linux-low.cc (linux_target_ops): Update.
3485 (linux_process_target::supports_multifs): Define.
3486 (linux_process_target::multifs_open): Define.
3487 (linux_process_target::multifs_readlink): Define.
3488 (linux_process_target::multifs_unlink): Define.
3489 * linux-low.h (class linux_process_target): Update.
3490 * lynx-low.cc (lynx_target_ops): Update.
3491 * nto-low.cc (nto_target_ops): Update.
3492 * win32-low.cc (win32_target_ops): Update.
3493
8247b823
TBA
34942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3495
3496 Turn process_stratum_target's pid_to_exec_file op into a method
3497 of process_target.
3498
3499 * target.h (struct process_stratum_target): Remove the target op.
3500 (class process_target): Add the target op. Also add
3501 'supports_pid_to_exec_file'.
3502 * target.cc (process_target::pid_to_exec_file): Define.
3503 (process_target::supports_pid_to_exec_file): Define.
3504
3505 Update the derived classes and callers below.
3506
3507 * server.cc (handle_qxfer_exec_file): Update.
3508 (handle_query): Update.
3509 * linux-low.cc (linux_target_ops): Update.
3510 (linux_process_target::supports_pid_to_exec_file): Define.
3511 (linux_process_target::pid_to_exec_file): Define.
3512 * linux-low.h (class linux_process_target): Update.
3513 * lynx-low.cc (lynx_target_ops): Update.
3514 * nto-low.cc (nto_target_ops): Update.
3515 * win32-low.cc (win32_target_ops): Update.
3516
2526e0cd
TBA
35172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3518
3519 Turn process_stratum_target's supports_range_stepping op into a
3520 method of process_target.
3521
3522 * target.h (struct process_stratum_target): Remove the target op.
3523 (class process_target): Add the target op.
3524 (target_supports_range_stepping): Update the macro.
3525 * target.cc (process_target::supports_range_stepping): Define.
3526
3527 Update the derived classes and callers below.
3528
3529 * linux-low.cc (linux_target_ops): Update.
3530 (linux_supports_range_stepping): Turn into ...
3531 (linux_process_target::supports_range_stepping): ... this.
3532 * linux-low.h (class linux_process_target): Update.
3533 * lynx-low.cc (lynx_target_ops): Update.
3534 * nto-low.cc (nto_target_ops): Update.
3535 * win32-low.cc (win32_target_ops): Update.
3536
79597bdd
TBA
35372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3538
3539 Turn process_stratum_target's btrace-related ops (enable_btrace,
3540 disable_btrace, read_btrace, read_btrace_conf) into methods of
3541 process_target.
3542
3543 * target.h (struct process_stratum_target): Remove the target ops.
3544 (class process_target): Add the target ops.
3545 (target_enable_btrace): Update.
3546 (target_disable_btrace): Update.
3547 (target_read_btrace): Update.
3548 (target_read_btrace_conf): Update.
3549 * target.cc (process_target::enable_btrace): Define.
3550 (process_target::disable_btrace): Define.
3551 (process_target::read_btrace): Define.
3552 (process_target::read_btrace_conf): Define.
3553
3554 Update the derived classes and callers below.
3555
3556 * linux-low.cc (linux_target_ops): Update.
3557 (linux_process_target:enable_btrace): Define as a wrapper around
3558 linux_enable_btrace.
3559 (linux_low_disable_btrace): Turn into ...
3560 (linux_process_target::disable_btrace): ... this.
3561 (linux_low_read_btrace): Turn into ...
3562 (linux_process_target::read_btrace): ... this.
3563 (linux_low_btrace_conf): Turn into ...
3564 (linux_process_target::read_btrace_conf): ... this.
3565 * linux-low.h (class linux_process_target): Update.
3566 * lynx-low.cc (lynx_target_ops): Update.
3567 * nto-low.cc (nto_target_ops): Update.
3568 * win32-low.cc (win32_target_ops): Update.
3569
c0245cb9
TBA
35702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3571
3572 Turn process_stratum_target's supports_agent op into a method of
3573 process_target.
3574
3575 * target.h (struct process_stratum_target): Remove the target op.
3576 (class process_target): Add the target op.
3577 (target_supports_agent): Update the macro.
3578 * target.cc (process_target::supports_agent): Define.
3579
3580 Update the derived classes and callers below.
3581
3582 * linux-low.cc (linux_target_ops): Update.
3583 (linux_supports_agent): Turn into ...
3584 (linux_process_target::supports_agent): ... this.
3585 * linux-low.h (class linux_process_target): Update.
3586 * lynx-low.cc (lynx_target_ops): Update.
3587 * nto-low.cc (nto_target_ops): Update.
3588 * win32-low.cc (win32_target_ops): Update.
3589
974387bb
TBA
35902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3591
3592 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3593 method of process_target.
3594
3595 * target.h (struct process_stratum_target): Remove the target op.
3596 (class process_target): Add the target op. Also add
3597 'supports_qxfer_libraries_svr4'.
3598 * target.cc (process_target::qxfer_libraries_svr4): Define.
3599 (process_target::supports_qxfer_libraries_svr4): Define.
3600
3601 Update the derived classes and callers below.
3602
3603 * server.cc (handle_qxfer_libraries_svr4): Update.
3604 (handle_query): Update.
3605 * linux-low.cc (linux_target_ops): Update.
3606 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3607 (linux_qxfer_libraries_svr4): Turn into ...
3608 (linux_process_target::qxfer_libraries_svr4): ... this.
3609 * linux-low.h (class linux_process_target): Update.
3610 * lynx-low.cc (lynx_target_ops): Update.
3611 * nto-low.cc (nto_target_ops): Update.
3612 * win32-low.cc (win32_target_ops): Update.
3613
c756403b
TBA
36142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3615
3616 Turn process_stratum_target's supports_disable_randomization op
3617 into a method of process_target.
3618
3619 * target.h (struct process_stratum_target): Remove the target op.
3620 (class process_target): Add the target op.
3621 (target_supports_disable_randomization): Update the macro.
3622 * target.cc (process_target::supports_disable_randomization): Define.
3623
3624 Update the derived classes and callers below.
3625
3626 * linux-low.cc (linux_target_ops): Update.
3627 (linux_supports_disable_randomization): Turn into ...
3628 (linux_process_target::supports_disable_randomization): ... this.
3629 * linux-low.h (class linux_process_target): Update.
3630 * lynx-low.cc (lynx_target_ops): Update.
3631 * nto-low.cc (nto_target_ops): Update.
3632 * win32-low.cc (win32_target_ops): Update.
3633
345dafad
TBA
36342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3635
3636 Turn process_stratum_target's emit_ops op into a method of
3637 process_target.
3638
3639 * target.h (struct process_stratum_target): Remove the target op.
3640 (class process_target): Add the target op.
3641 (target_emit_ops): Update the macro.
3642 * target.cc (process_target::emit_ops): Define.
3643
3644 Update the derived classes and callers below.
3645
3646 * linux-low.cc (linux_target_ops): Update.
3647 (linux_emit_ops): Turn into ...
3648 (linux_process_target::emit_ops): ... this.
3649 * linux-low.h (class linux_process_target): Update.
3650 * lynx-low.cc (lynx_target_ops): Update.
3651 * nto-low.cc (nto_target_ops): Update.
3652 * win32-low.cc (win32_target_ops): Update.
3653
c23c9391
TBA
36542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3655
3656 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3657 and get_min_fast_tracepoint_insn_len ops into methods of
3658 process_target.
3659
3660 * target.h (struct process_stratum_target): Remove the target ops.
3661 (class process_target): Add the target ops. Also add
3662 'supports_fast_tracepoints'.
3663 (target_supports_fast_tracepoints): Update the macro.
3664 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3665 (install_fast_tracepoint_jump_pad): Update and rename the macro
3666 to ...
3667 (target_install_fast_tracepoint_jump_pad): ... this.
3668 * target.cc (process_target::supports_fast_tracepoints): Define.
3669 (process_target::install_fast_tracepoint_jump_pad): Define.
3670 (process_target::get_min_fast_tracepoint_insn_len): Define.
3671
3672 Update the derived classes and callers below.
3673
3674 * tracepoint.cc (install_fast_tracepoint): Update.
3675 * linux-low.cc (linux_target_ops): Update.
3676 (linux_process_target::supports_fast_tracepoints): Define.
3677 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3678 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3679 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3680 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3681 * linux-low.h (class linux_process_target): Update.
3682 * lynx-low.cc (lynx_target_ops): Update.
3683 * nto-low.cc (nto_target_ops): Update.
3684 * win32-low.cc (win32_target_ops): Update.
3685
5c9eb2f2
TBA
36862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3687
3688 Turn process_stratum_target's stabilize_threads op into a
3689 method of process_target.
3690
3691 * target.h (struct process_stratum_target): Remove the target op.
3692 (class process_target): Add the target op.
3693 (target_stabilize_threads): Update the macro.
3694 * target.cc (process_target::stabilize_threads): Define.
3695
3696 Update the derived classes and callers below.
3697
3698 * server.cc (handle_status): Update.
3699 * tracepoint.cc (cmd_qtdp): Update.
3700 (cmd_qtstart): Update.
3701 * linux-low.cc (linux_target_ops): Update.
3702 (linux_stabilize_threads): Turn into ...
3703 (linux_process_target::stabilize_threads): ... this.
3704 (linux_wait_1): Update.
3705 * linux-low.h (class linux_process_target): Update.
3706 * lynx-low.cc (lynx_target_ops): Update.
3707 * nto-low.cc (nto_target_ops): Update.
3708 * win32-low.cc (win32_target_ops): Update.
3709
29e8dc09
TBA
37102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3711
3712 Turn process_stratum_target's pause_all and unpause_all ops
3713 into methods of process_target.
3714
3715 * target.h (struct process_stratum_target): Remove the target ops.
3716 (class process_target): Add the target ops.
3717 (pause_all): Update the macro and rename to...
3718 (target_pause_all): ... this.
3719 (unpause_all): Update the macro and rename to...
3720 (target_unpause_all): ... this.
3721 * target.cc (process_target::pause_all): Define.
3722 (process_target::unpause_all): Define.
3723
3724 Update the derived classes and callers below.
3725
3726 * server.cc (handle_status): Update.
3727 * tracepoint.cc (clear_installed_tracepoints): Update.
3728 (cmd_qtdp): Update.
3729 (cmd_qtstart): Update.
3730 (stop_tracing): Update.
3731 (cmd_qtstatus): Update.
3732 (upload_fast_traceframes): Update.
3733 (run_inferior_command): Update.
3734 * linux-low.cc (linux_target_ops): Update.
3735 (linux_pause_all): Turn into ...
3736 (linux_process_target::pause_all): ... this.
3737 (linux_unpause_all): Turn into ...
3738 (linux_process_target::unpause_all): ... this.
3739 (linux_process_target::prepare_to_access_memory): Update.
3740 (linux_process_target::done_accessing_memory): Update.
3741 * linux-low.h (class linux_process_target): Update.
3742 * lynx-low.cc (lynx_target_ops): Update.
3743 * nto-low.cc (nto_target_ops): Update.
3744 * win32-low.cc (win32_target_ops): Update.
3745
4e2e869c
TBA
37462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3747
3748 Turn process_stratum_target's get_tib_address op into a method of
3749 process_target.
3750
3751 * target.h (struct process_stratum_target): Remove the target op.
3752 (class process_target): Add the target op. Also add
3753 'supports_get_tib_address'.
3754 * target.cc (process_target::get_tib_address): Define.
3755 (process_target::supports_get_tib_address): Define.
3756
3757 Update the derived classes and callers below.
3758
3759 * server.cc (handle_query): Update.
3760 * linux-low.cc (win32_target_ops): Update.
3761 * lynx-low.cc (lynx_target_ops): Update.
3762 * nto-low.cc (nto_target_ops): Update.
3763 * win32-low.cc (win32_target_ops): Update.
3764 (win32_process_target::supports_get_tib_address): Define.
3765 (win32_get_tib_address): Turn into ...
3766 (win32_process_target::get_tib_address): ... this.
3767 * win32-low.h (class win32_process_target): Update.
3768
68119632
TBA
37692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3770
3771 Turn process_stratum_target's thread_stopped op into a method of
3772 process_target.
3773
3774 * target.h (struct process_stratum_target): Remove the target op.
3775 (class process_target): Add the target op. Also add
3776 'supports_thread_stopped'.
3777 (target_thread_stopped): Update the macro.
3778 * target.cc (process_target::thread_stopped): Define.
3779 (process_target::supports_thread_stopped): Define.
3780 (prepare_to_access_memory): Update.
3781
3782 Update the derived classes and callers below.
3783
3784 * server.cc (queue_stop_reply_callback): Update.
3785 * linux-low.cc (linux_target_ops): Update.
3786 (linux_process_target::supports_thread_stopped): Define.
3787 (linux_thread_stopped): Turn into ...
3788 (linux_process_target::thread_stopped): ... this.
3789 * linux-low.h (class linux_process_target): Update.
3790 * lynx-low.cc (lynx_target_ops): Update.
3791 * nto-low.cc (nto_target_ops): Update.
3792 * win32-low.cc (win32_target_ops): Update.
3793
770d8f6a
TBA
37942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3795
3796 Turn process_stratum_target's read_pc and write_pc ops into
3797 methods of process_target.
3798
3799 * target.h (struct process_stratum_target): Remove the target ops.
3800 (class process_target): Add the target ops.
3801 * target.cc (process_target::read_pc): Define.
3802 (process_target::write_pc): Define.
3803
3804 Update the derived classes and callers below.
3805
3806 * regcache.cc (regcache_read_pc): Update.
3807 (regcache_write_pc): Update.
3808 * linux-low.cc (linux_target_ops): Update.
3809 (linux_read_pc): Turn into ...
3810 (linux_process_target::read_pc): ... this.
3811 (linux_write_pc): Turn into ...
3812 (linux_process_target::write_pc): ... this.
3813 * linux-low.h (class linux_process_target): Update.
3814 * lynx-low.cc (lynx_target_ops): Update.
3815 * nto-low.cc (nto_target_ops): Update.
3816 * win32-low.cc (win32_target_ops): Update.
3817
290732bf
TBA
38182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3819
3820 Turn process_stratum_target's supports_tracepoints op into a
3821 method of process_target.
3822
3823 * target.h (struct process_stratum_target): Remove the target op.
3824 (class process_target): Add the target op.
3825 (target_supports_tracepoints): Update the macro.
3826 * target.cc (process_target::supports_tracepoints): Define.
3827
3828 Update the derived classes and callers below.
3829
3830 * linux-low.cc (linux_target_ops): Update.
3831 (linux_supports_tracepoints): Turn into ...
3832 (linux_process_target::supports_tracepoints): ... this.
3833 * linux-low.h (class linux_process_target): Update.
3834 * lynx-low.cc (lynx_target_ops): Update.
3835 * nto-low.cc (nto_target_ops): Update.
3836 * win32-low.cc (win32_target_ops): Update.
3837
0df28b1b
TBA
38382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3839
3840 Turn process_stratum_target's process_qsupported op into a method
3841 of process_target.
3842
3843 * target.h (struct process_stratum_target): Remove the target op.
3844 (class process_target): Add the target op.
3845 (target_process_qsupported): Update the macro.
3846 * target.cc (process_target::process_qsupported): Define.
3847
3848 Update the derived classes and callers below.
3849
3850 * linux-low.cc (linux_target_ops): Update.
3851 (linux_process_qsupported): Turn into ...
3852 (linux_process_target::process_qsupported): ... this.
3853 * linux-low.h (class linux_process_target): Update.
3854 * lynx-low.cc (lynx_target_ops): Update.
3855 * nto-low.cc (nto_target_ops): Update.
3856 * win32-low.cc (win32_target_ops): Update.
3857
9da41fda
TBA
38582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3859
3860 Turn process_stratum_target's read_loadmap op into a method of
3861 process_target.
3862
3863 * target.h (struct process_stratum_target): Remove the target op.
3864 (class process_target): Add the target op. Also add
3865 'supports_read_loadmap'.
3866 * target.cc (process_target::read_loadmap): Define.
3867 (process_target::supports_read_loadmap): Define.
3868
3869 Update the derived classes and callers below.
3870
3871 * server.cc (handle_qxfer_fdpic): Update.
3872 (handle_query): Update.
3873 * linux-low.cc (linux_target_ops): Update.
3874 (linux_process_target::supports_read_loadmap): Define.
3875 (linux_read_loadmap): Turn into ...
3876 (linux_process_target::read_loadmap): ... this.
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
95a45fc1
TBA
38822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3883
3884 Turn process_stratum_target's core_of_thread op into a method of
3885 process_target.
3886
3887 * target.h (struct process_stratum_target): Remove the target op.
3888 (class process_target): Add the target op.
3889 (target_core_of_thread): Update the macro.
3890 * target.cc (process_target::core_of_thread): Define.
3891
3892 Update the derived classes and callers below.
3893
3894 * linux-low.cc (linux_target_ops): Update.
3895 (linux_process_target::core_of_thread): Define.
3896 * linux-low.h (class linux_process_target): Update.
3897 * lynx-low.cc (lynx_target_ops): Update.
3898 * nto-low.cc (nto_target_ops): Update.
3899 * win32-low.cc (win32_target_ops): Update.
3900
55cf3021
TBA
39012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3902
3903 Turn process_stratum_target's handle_monitor_command op into a
3904 method of process_target.
3905
3906 * target.h (struct process_stratum_target): Remove the target op.
3907 (class process_target): Add the target op.
3908 (target_handle_monitor_command): Update the macro.
3909 * target.cc (process_target::handle_monitor_command): Define.
3910
3911 Update the derived classes and callers below.
3912
3913 * server.cc (handle_query): Update.
3914 * linux-low.cc (linux_target_ops): Update.
3915 (linux_process_target::handle_monitor_command): Define.
3916 * linux-low.h (class linux_process_target): Update.
3917 * lynx-low.cc (lynx_target_ops): Update.
3918 * nto-low.cc (nto_target_ops): Update.
3919 * win32-low.cc (win32_target_ops): Update.
3920
fb00dfce
TBA
39212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3922
3923 Turn process_stratum_target's handle_new_gdb_connection op into a
3924 method of process_target.
3925
3926 * target.h (struct process_stratum_target): Remove the target op.
3927 (class process_target): Add the target op.
3928 (target_handle_new_gdb_connection): Update the macro.
3929 * target.cc (process_target::handle_new_gdb_connection): Define.
3930
3931 Update the derived classes and callers below.
3932
3933 * linux-low.cc (linux_target_ops): Update.
3934 (linux_handle_new_gdb_connection): Turn into ...
3935 (linux_process_target::handle_new_gdb_connection): ... this.
3936 * linux-low.h (class linux_process_target): Update.
3937 * lynx-low.cc (lynx_target_ops): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 * win32-low.cc (win32_target_ops): Update.
3940
9690a72a
TBA
39412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3942
3943 Turn process_stratum_target's supports_fork_events,
3944 supports_vfork_events, and supports_exec_events ops into methods
3945 of process_target.
3946
3947 * target.h (struct process_stratum_target): Remove the target ops.
3948 (class process_target): Add the target ops.
3949 (target_supports_fork_events): Update the macro.
3950 (target_supports_vfork_events): Update the macro.
3951 (target_supports_exec_events): Update the macro.
3952 * target.cc (process_target::supports_fork_events): Define.
3953 (process_target::supports_vfork_events): Define.
3954 (process_target::supports_exec_events): Define.
3955
3956 Update the derived classes and callers below.
3957
3958 * linux-low.cc (linux_target_ops): Update.
3959 (linux_supports_fork_events): Turn into ...
3960 (linux_process_target::supports_fork_events): ... this.
3961 (linux_supports_vfork_events): Turn into ...
3962 (linux_process_target::supports_vfork_events): ... this.
3963 (linux_supports_exec_events): Turn into ...
3964 (linux_process_target::supports_exec_events): ... this.
3965 * linux-low.h (class linux_process_target): Update.
3966 * lynx-low.cc (lynx_target_ops): Update.
3967 * nto-low.cc (nto_target_ops): Update.
3968 * win32-low.cc (win32_target_ops): Update.
3969
652aef77
TBA
39702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3971
3972 Turn process_stratum_target's supports_multi_process op into a
3973 method of process_target.
3974
3975 * target.h (struct process_stratum_target): Remove the target op.
3976 (class process_target): Add the target op.
3977 * target.cc (process_target::supports_multi_process): Define.
3978 (target_supports_multi_process): Update.
3979
3980 Update the derived classes and callers below.
3981
3982 * linux-low.cc (linux_target_ops): Update.
3983 (linux_supports_multi_process): Turn into ...
3984 (linux_process_target::supports_multi_process): ... this.
3985 * linux-low.h (class linux_process_target): Update.
3986 * lynx-low.cc (lynx_target_ops): Update.
3987 * nto-low.cc (nto_target_ops): Update.
3988 * win32-low.cc (win32_target_ops): Update.
3989
0dc587d4
TBA
39902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3991
3992 Turn process_stratum_target's supports_non_stop, async, and
3993 start_non_stop ops into methods of process_target.
3994
3995 * target.h (struct process_stratum_target): Remove the target ops.
3996 (class process_target): Add the target ops.
3997 (target_supports_non_stop): Update the macro.
3998 (target_async): Update the macro.
3999 (start_non_stop): Remove declaration.
4000 * target.cc (process_target::supports_non_stop): Define.
4001 (process_target::async): Define.
4002 (process_target::start_non_stop): Define.
4003 (start_non_stop): Remove.
4004
4005 Update the derived classes and callers below.
4006
4007 * server.cc (handle_qxfer_siginfo): Update.
4008 (handle_query): Update.
4009 * linux-low.cc (linux_target_ops): Update.
4010 (linux_supports_non_stop): Turn into ...
4011 (linux_process_target::supports_non_stop): ... this.
4012 (linux_async): Turn into ...
4013 (linux_process_target::async): ... this.
4014 (linux_start_non_stop): Turn into ...
4015 (linux_process_target::start_non_stop): ... this.
4016 * linux-low.h (class linux_process_target): Update.
4017 * lynx-low.cc (lynx_target_ops): Update.
4018 * nto-low.cc (nto_target_ops): Update.
4019 (nto_supports_non_stop): Remove; rely on the default behavior
4020 instead.
4021 * win32-low.cc (win32_target_ops): Update.
4022
d7abedf7
TBA
40232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4024
4025 Turn process_stratum_target's qxfer_siginfo op into a method of
4026 process_target.
4027
4028 * target.h (struct process_stratum_target): Remove the target op.
4029 (class process_target): Add the target op. Also add
4030 'supports_qxfer_siginfo'.
4031 * target.cc (process_target::qxfer_siginfo): Define.
4032 (process_target::supports_qxfer_siginfo): Define.
4033
4034 Update the derived classes and callers below.
4035
4036 * server.cc (handle_qxfer_siginfo): Update.
4037 (handle_query): Update.
4038 * linux-low.cc (linux_target_ops): Update.
4039 (linux_process_target::supports_qxfer_siginfo): Define.
4040 (linux_xfer_siginfo): Turn into ...
4041 (linux_process_target::qxfer_siginfo): ... this.
4042 * linux-low.h (class linux_process_target): Update.
4043 * lynx-low.cc (lynx_target_ops): Update.
4044 * nto-low.cc (nto_target_ops): Update.
4045 * win32-low.cc (win32_target_ops): Update.
4046
2d0795ee
TBA
40472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4048
4049 Turn process_stratum_target's qxfer_osdata op into a method of
4050 process_target.
4051
4052 * target.h (struct process_stratum_target): Remove the target op.
4053 (class process_target): Add the target op. Also add
4054 'supports_qxfer_osdata'.
4055 * target.cc (process_target::qxfer_osdata): Define.
4056 (process_target::supports_qxfer_osdata): Define.
4057
4058 Update the derived classes and callers below.
4059
4060 * server.cc (handle_qxfer_osdata): Update.
4061 (handle_query): Update.
4062 * linux-low.cc (linux_target_ops): Update.
4063 (linux_process_target::supports_qxfer_osdata): Define.
4064 (linux_qxfer_osdata): Turn into ...
4065 (linux_process_target::qxfer_osdata): ... this.
4066 * linux-low.h (class linux_process_target): Update.
4067 * lynx-low.cc (lynx_target_ops): Update.
4068 * nto-low.cc (nto_target_ops): Update.
4069 * win32-low.cc (win32_target_ops): Update.
4070
ea06bbaa
TBA
40712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4072
4073 Turn process_stratum_target's hostio_last_error op into a
4074 method of process_target.
4075
4076 * target.h (struct process_stratum_target): Remove the target op.
4077 (class process_target): Add the target op.
4078 * target.cc: Add "hostio.h" to includes.
4079 (process_target::hostio_last_error): Define.
4080
4081 Update the derived classes and callers below.
4082
4083 * hostio.cc (hostio_error): Update.
4084 * linux-low.cc: Remove "hostio.h" from includes.
4085 (linux_target_ops): Update.
4086 * lynx-low.cc (lynx_target_ops): Update.
4087 * nto-low.cc (nto_target_ops): Update.
4088 * win32-low.h (class win32_process_target): Update.
4089 * win32-low.cc (win32_target_ops): Update.
4090 (wince_hostio_last_error): Turn into ...
4091 (win32_process_target::hostio_last_error): ... this.
4092
6e3fd7e9
TBA
40932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4094
4095 Turn process_stratum_target's get_tls_address op into a method of
4096 process_target.
4097
4098 * target.h (struct process_stratum_target): Remove the target op.
4099 (class process_target): Add the target op. Also add
4100 'supports_get_tls_address'.
4101 * target.cc (process_target::get_tls_address): Define.
4102 (process_target::supports_get_tls_address): Define.
4103
4104 Update the derived classes and callers below.
4105
4106 * server.cc (handle_query): Update.
4107 * linux-low.cc (linux_target_ops): Update.
4108 (linux_process_target::supports_get_tls_address): Define.
4109 (linux_process_target::get_tls_address): Define.
4110 * linux-low.h (class linux_process_target): Update.
4111 * lynx-low.cc (lynx_target_ops): Update.
4112 * nto-low.cc (nto_target_ops): Update.
4113 * win32-low.cc (win32_target_ops): Update.
4114
5203ae1e
TBA
41152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4116
4117 Turn process_stratum_target's read_offsets op into a method of
4118 process_target.
4119
4120 * target.h (struct process_stratum_target): Remove the target op.
4121 (class process_target): Add the target op. Also add
4122 'supports_read_offsets'.
4123 * target.cc (process_target::read_offsets): Define.
4124 (process_target::supports_read_offsets): Define.
4125
4126 Update the derived classes and callers below.
4127
4128 * server.cc (handle_query): Update.
4129 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4130 (linux_target_ops): Update.
4131 (linux_process_target::supports_read_offsets): Define.
4132 (linux_read_offsets): Turn into ...
4133 (linux_process_target::read_offsets): ... this.
4134 * linux-low.h (class linux_process_target): Update.
4135 * lynx-low.cc (lynx_target_ops): Update.
4136 * nto-low.cc (nto_target_ops): Update.
4137 * win32-low.cc (win32_target_ops): Update.
4138
6eeb5c55
TBA
41392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4140
4141 Turn process_stratum_target's stopped_by_watchpoint and
4142 stopped_data_address ops into methods of process_target.
4143
4144 * target.h (struct process_stratum_target): Remove the target ops.
4145 (class process_target): Add the target ops.
4146 * target.cc (process_target::stopped_by_watchpoint): Define.
4147 (process_target::stopped_data_address): Define.
4148
4149 Update the derived classes and callers below.
4150
4151 * remote-utils.cc (prepare_resume_reply): Update.
4152 * linux-low.cc (linux_target_ops): Update.
4153 (linux_stopped_by_watchpoint): Turn into ...
4154 (linux_process_target::stopped_by_watchpoint): ... this.
4155 (linux_stopped_data_address): Turn into ...
4156 (linux_process_target::stopped_data_address): ... this.
4157 * linux-low.h (class linux_process_target): Update.
4158 * lynx-low.cc (lynx_target_ops): Update.
4159 * nto-low.cc (nto_target_ops): Update.
4160 (nto_stopped_by_watchpoint): Turn into ...
4161 (nto_process_target::stopped_by_watchpoint): ... this.
4162 (nto_stopped_data_address): Turn into ...
4163 (nto_process_target::stopped_data_address): ... this.
4164 * nto-low.h (class nto_process_target): Update.
4165 * win32-low.cc (win32_target_ops): Update.
4166 (win32_stopped_by_watchpoint): Turn into ...
4167 (win32_process_target::stopped_by_watchpoint): ... this.
4168 (win32_stopped_data_address): Turn into ...
4169 (win32_process_target::stopped_data_address): ... this.
4170 * win32-low.h (class win32_process_target): Update.
4171
22aa6223
TBA
41722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4173
4174 Turn process_stratum_target's supports_hardware_single_step op into
4175 a method of process_target.
4176
4177 * target.h (struct process_stratum_target): Remove the target op.
4178 (class process_target): Add the target op.
4179 (target_supports_hardware_single_step): Update the macro.
4180 (target_can_do_hardware_single_step): Remove declaration.
4181 * target.cc (process_target::supports_hardware_single_step): Define.
4182 (target_can_do_hardware_single_step): Remove.
4183
4184 Update the derived classes and callers below.
4185
4186 * linux-low.h (class linux_process_target): Update.
4187 * linux-low.cc (linux_target_ops): Update.
4188 (linux_supports_hardware_single_step): Turn into ...
4189 (linux_process_target::supports_hardware_single_step): ... this.
4190 * lynx-low.h (class lynx_process_target): Update.
4191 * lynx-low.cc (lynx_target_ops): Update.
4192 (lynx_process_target::supports_hardware_single_step): Define.
4193 * nto-low.h (class nto_process_target): Update.
4194 * nto-low.cc (nto_target_ops): Update.
4195 (nto_process_target::supports_hardware_single_step): Define.
4196 * win32-low.h (class win32_process_target): Update.
4197 * win32-low.cc (win32_target_ops): Update.
4198 (win32_process_target::supports_hardware_single_step): Define.
4199
93fe88b2
TBA
42002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4201
4202 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4203 ops into methods of process_target.
4204
4205 * target.h (struct process_stratum_target): Remove the target ops.
4206 (class process_target): Add the target ops.
4207 (target_stopped_by_hw_breakpoint): Update the macro.
4208 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4209 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4210 (process_target::supports_stopped_by_hw_breakpoint): Define.
4211
4212 Update the derived classes and callers below.
4213
4214 * linux-low.cc (linux_target_ops): Update.
4215 (linux_stopped_by_hw_breakpoint): Turn into ...
4216 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4217 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4218 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4219 * linux-low.h (class linux_process_target): Update.
4220 * lynx-low.cc (lynx_target_ops): Update.
4221 * nto-low.cc (nto_target_ops): Update.
4222 * win32-low.cc (win32_target_ops): Update.
4223
84320c4e
TBA
42242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4225
4226 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4227 ops into methods of process_target.
4228
4229 * target.h (struct process_stratum_target): Remove the target ops.
4230 (class process_target): Add the target ops.
4231 (target_stopped_by_sw_breakpoint): Update the macro.
4232 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4233 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4234 (process_target::supports_stopped_by_sw_breakpoint): Define.
4235
4236 Update the derived classes and callers below.
4237
4238 * linux-low.cc (linux_target_ops): Update.
4239 (linux_stopped_by_sw_breakpoint): Turn into ...
4240 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4241 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4242 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4243 * linux-low.h (class linux_process_target): Update.
4244 * lynx-low.cc (lynx_target_ops): Update.
4245 * nto-low.cc (nto_target_ops): Update.
4246 * win32-low.cc (win32_target_ops): Update.
4247
7e0bde70
TBA
42482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4249
4250 Turn process_stratum_target's insert_point and remove_point ops
4251 into methods of process_target.
4252
4253 * target.h (struct process_stratum_target): Remove the target ops.
4254 (class process_target): Add the target ops.
4255 * target.cc (process_target::insert_point): Define.
4256 (process_target::remove_point): Define.
4257
4258 Update the derived classes and callers below.
4259
4260 * mem-break.cc (set_raw_breakpoint_at): Update.
4261 (delete_raw_breakpoint): Update.
4262 (uninsert_raw_breakpoint): Update.
4263 (reinsert_raw_breakpoint): Update.
4264 * linux-low.cc (linux_target_ops): Update.
4265 (linux_insert_point): Turn into ...
4266 (linux_process_target::insert_point): ... this.
4267 (linux_remove_point): Turn into ...
4268 (linux_process_target::remove_point): ... this.
4269 * linux-low.h (class linux_process_target): Update.
4270 * lynx-low.cc (lynx_target_ops): Update.
4271 * nto-low.cc (nto_target_ops): Update.
4272 (nto_insert_point): Turn into ...
4273 (nto_process_target::insert_point): ... this.
4274 (nto_remove_point): Turn into ...
4275 (nto_process_target::remove_point): ... this.
4276 * nto-low.h (class nto_process_target): Update.
4277 * win32-low.cc (win32_target_ops): Update.
4278 (win32_insert_point): Turn into ...
4279 (win32_process_target::insert_point): ... this.
4280 (win32_remove_point): Turn into ...
4281 (win32_process_target::remove_point): ... this.
4282 * win32-low.h (class win32_process_target): Update.
4283
a2b2297a
TBA
42842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4285
4286 Turn process_stratum_target's supports_z_point_type op into a
4287 method of process_target.
4288
4289 * target.h (struct process_stratum_target): Remove the target op.
4290 (class process_target): Add the target op.
4291 * target.cc (process_target::supports_z_point_type): Define.
4292
4293 Update the derived classes and callers below.
4294
4295 * mem-break.cc (z_type_supported): Update.
4296 * linux-low.cc (linux_target_ops): Update.
4297 (linux_supports_z_point_type): Turn into ...
4298 (linux_process_target::supports_z_point_type): ... this.
4299 * linux-low.h (class linux_process_target): Update.
4300 * lynx-low.cc (lynx_target_ops): Update.
4301 * nto-low.cc (nto_target_ops): Update.
4302 (nto_supports_z_point_type): Turn into ...
4303 (nto_process_target::supports_z_point_type): ... this.
4304 * nto-low.h (class nto_process_target): Update.
4305 * win32-low.cc (win32_target_ops): Update.
4306 (win32_supports_z_point_type): Turn into ...
4307 (win32_process_target::supports_z_point_type): ... this.
4308 * win32-low.h (class win32_process_target): Update.
4309
eac215cc
TBA
43102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4311
4312 Turn process_stratum_target's read_auxv op into a method of
4313 process_target.
4314
4315 * target.h (class process_stratum_target): Remove the target op.
4316 (struct process_target): Add the target op. Also add
4317 'supports_read_auxv'.
4318 * target.cc (process_target::read_auxv): Define.
4319 (process_target::supports_read_auxv): Define.
4320
4321 Update the derived classes and callers below.
4322
4323 * server.cc (handle_qxfer_auxv): Update.
4324 (handle_query): Update.
4325 * linux-low.cc (linux_target_ops): Update.
4326 (linux_process_target::supports_read_auxv): Define.
4327 (linux_read_auxv): Turn into ...
4328 (linux_process_target::read_auxv): ... this.
4329 * linux-low.h (class linux_process_target): Update.
4330 * lynx-low.cc (lynx_target_ops): Update.
4331 * nto-low.cc (nto_target_ops): Update.
4332 (nto_process_target::supports_read_auxv): Define.
4333 (nto_read_auxv): Turn into ...
4334 (nto_process_target::read_auxv): ... this.
4335 * nto-low.h (class nto_process_target): Update.
4336 * win32-low.cc (win32_target_ops): Update.
4337
eb497a2a
TBA
43382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4339
4340 Turn process_stratum_target's request_interrupt op into a method of
4341 process_target.
4342
4343 * target.h (struct process_stratum_target): Remove the target op.
4344 (class process_target): Add the target op.
4345
4346 Update the derived classes and callers below.
4347
4348 * remote-utils.cc (putpkt_binary_1): Update.
4349 (input_interrupt): Update.
4350 (getpkt): Update.
4351 * server.cc (handle_v_requests): Update.
4352 * linux-low.cc (linux_target_ops): Update.
4353 (linux_request_interrupt): Turn into ...
4354 (linux_process_target::request_interrupt): ... this.
4355 * linux-low.h (class linux_process_target): Update.
4356 * lynx-low.cc (lynx_target_ops): Update.
4357 (lynx_request_interrupt): Turn into ...
4358 (lynx_process_target::request_interrupt): ... this.
4359 * lynx-low.h (class lynx_process_target): Update.
4360 * nto-low.cc (nto_target_ops): Update.
4361 (nto_request_interrupt): Turn into ...
4362 (nto_process_target::request_interrupt): ... this.
4363 * nto-low.h (class nto_process_target): Update.
4364 * win32-low.cc (win32_target_ops): Update.
4365 (win32_request_interrupt): Turn into ...
4366 (win32_process_target::request_interrupt): ... this.
4367 * win32-low.h (class win32_process_target): Update.
4368
2a31c7aa
TBA
43692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4370
4371 Turn process_stratum_target's look_up_symbols op into a method of
4372 process_target.
4373
4374 * target.h (struct process_stratum_target): Remove the target op.
4375 (class process_target): Add the target op.
4376 * target.cc (process_target::look_up_symbols): Define.
4377
4378 Update the derived classes and callers below.
4379
4380 * server.cc (handle_query): Update.
4381 * linux-low.cc (linux_target_ops): Update.
4382 (linux_look_up_symbols): Turn into ...
4383 (linux_process_target::look_up_symbols): ... this.
4384 * linux-low.h (class linux_process_target): Update.
4385 * lynx-low.cc (lynx_target_ops): Update.
4386 * nto-low.cc (nto_target_ops): Update.
4387 * win32-low.cc (win32_target_ops): Update.
4388
e2558df3
TBA
43892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4390
4391 Turn process_stratum_target's read_memory and write_memory
4392 ops into methods of process_target.
4393
4394 * target.h (struct process_stratum_target): Remove the target ops.
4395 (class process_target): Add the target ops.
4396
4397 Update the derived classes and callers below.
4398
4399 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4400 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4401 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4402 (arm_get_syscall_trapinfo): Update.
4403 * linux-cris-low.cc (cris_breakpoint_at): Update.
4404 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4405 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4406 * linux-mips-low.cc (mips_breakpoint_at): Update.
4407 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4408 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4409 * linux-sh-low.cc (sh_breakpoint_at): Update.
4410 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4411 (sparc_store_gregset_from_stack): Update.
4412 (sparc_breakpoint_at): Update.
4413 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4414 * linux-tile-low.cc (tile_breakpoint_at): Update.
4415 * linux-x86-low.cc (x86_breakpoint_at): Update.
4416 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4417 * mem-brea.cc (insert_memory_breakpoint): Update.
4418 (validate_inserted_breakpoint): Update.
4419 * target.cc (read_inferior_memory): Update.
4420 (target_write_memory): Update.
4421 * linux-low.cc (linux_target_ops): Update.
4422 (linux_read_memory): Make a wrapper around the read_memory target
4423 op call.
4424 (linux_process_target::read_memory): Rename from linux_read_memory.
4425 (linux_write_memory): Turn into ...
4426 (linux_process_target::write_memory): ... this.
4427 * linux-low.h (class linux_process_target): Update.
4428 * lynx-low.cc (lynx_target_ops): Update.
4429 (lynx_read_memory): Turn into ...
4430 (lynx_process_target::read_memory): ... this.
4431 (lynx_write_memory): Turn into ...
4432 (lynx_process_target::write_memory): ... this.
4433 * lynx-low.h (class lynx_process_target): Update.
4434 * nto-low.cc (nto_target_ops): Update.
4435 (nto_read_memory): Turn into ...
4436 (nto_process_target::read_memory): ... this.
4437 (nto_write_memory): Turn into ...
4438 (nto_process_target::write_memory): ... this.
4439 * nto-low.h (class nto_process_target): Update.
4440 * win32-low.cc (win32_target_ops): Update.
4441 (win32_read_inferior_memory): Turn into ...
4442 (win32_process_target::read_memory): ... this.
4443 (win32_write_inferior_memory): Turn into ...
4444 (win32_process_target::write_memory): ... this.
4445 * win32-low.h (class win32_process_target): Update.
4446
79b44087
TBA
44472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4448
4449 Turn process_stratum_target's prepare_to_access_memory and
4450 done_accessing_memory ops into methods of process_target.
4451
4452 * target.h (struct process_stratum_target): Remove the target ops.
4453 (class process_target): Add the target ops.
4454 * target.cc (process_target::prepare_to_access_memory): Define.
4455 (process_target::done_accessing_memory): Define.
4456 (prepare_to_access_memory): Update.
4457 (done_accessing_memory): Update.
4458
4459 Update the derived classes and callers below.
4460
4461 * linux-low.cc (linux_target_ops): Update.
4462 (linux_prepare_to_access_memory): Turn into ...
4463 (linux_process_target::prepare_to_access_memory): ... this.
4464 (linux_done_accessing_memory): Turn into ...
4465 (linux_process_target::done_accessing_memory): ... this.
4466 * linux-low.h (class linux_process_target): Update.
4467 * lynx-low.cc (lynx_target_ops): Update.
4468 * nto-low.cc (nto_target_ops): Update.
4469 * win32-low.cc (win32_target_ops): Update.
4470
a5a4d4cd
TBA
44712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4472
4473 Turn process_stratum_target's fetch_registers and store_registers
4474 ops into methods of process_target.
4475
4476 * target.h (struct process_stratum_target): Remove the target ops.
4477 (class process_target): Add the target ops.
4478 (fetch_inferior_registers): Update the macro.
4479 (store_inferior_registers): Update the macro.
4480
4481 Update the derived classes and callers below.
4482
4483 * linux-low.cc (linux_target_ops): Update.
4484 (linux_fetch_registers): Turn into ...
4485 (linux_process_target::fetch_registers): ... this.
4486 (linux_store_registers): Turn into ...
4487 (linux_process_target::store_registers): ... this.
4488 * linux-low.h (class linux_process_target): Update.
4489 * lynx-low.cc (lynx_target_ops): Update.
4490 (lynx_fetch_registers): Turn into ...
4491 (lynx_process_target::fetch_registers): ... this.
4492 (lynx_store_registers): Turn into ...
4493 (lynx_process_target::store_registers): ... this.
4494 * lynx-low.h (class lynx_process_target): Update.
4495 * nto-low.cc (nto_target_ops): Update.
4496 (nto_fetch_registers): Turn into ...
4497 (nto_process_target::fetch_registers): ... this.
4498 (nto_store_registers): Turn into ...
4499 (nto_process_target::store_registers): ... this.
4500 * nto-low.h (class nto_process_target): Update.
4501 * win32-low.cc (win32_target_ops): Update.
4502 (win32_fetch_inferior_registers): Turn into ...
4503 (win32_process_target::fetch_registers): ... this.
4504 (win32_store_inferior_registers): Turn into ...
4505 (win32_process_target::store_registers): ... this.
4506 * win32-low.h (class win32_process_target): Update.
4507
6532e7e3
TBA
45082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4509
4510 Turn process_stratum_target's wait op into a method of
4511 process_target.
4512
4513 * target.h (struct process_stratum_target): Remove the target op.
4514 (class process_target): Add the target op.
4515
4516 Update the derived classes and callers below.
4517
4518 * target.cc (target_wait): Update.
4519 * linux-low.cc (linux_target_ops): Update.
4520 (linux_wait): Turn into ...
4521 (linux_process_target::wait): ... this.
4522 * linux-low.h (class linux_process_target): Update.
4523 * lynx-low.cc (lynx_target_ops): Update.
4524 (lynx_wait): Turn into ...
4525 (lynx_process_target::wait): ... this.
4526 * lynx-low.h (class lynx_process_target): Update.
4527 * nto-low.cc (nto_target_ops): Update.
4528 (nto_wait): Turn into ...
4529 (nto_process_target::wait): ... this.
4530 * nto-low.h (class nto_process_target): Update.
4531 * win32-low.cc (win32_target_ops): Update.
4532 (win32_wait): Turn into ...
4533 (win32_process_target::wait): ... this.
4534 (do_initial_child_stuff): Update.
4535 * win32-low.h (class win32_process_target): Update.
4536
0e4d7e35
TBA
45372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4538
4539 Turn process_stratum_target's resume op into a method of
4540 process_target.
4541
4542 * target.h (struct process_stratum_target): Remove the target op.
4543 (class process_target): Add the target op.
4544
4545 Update the derived classes and callers below.
4546
4547 * server.cc (resume): Update.
4548 * target.cc (target_stop_and_wait): Update.
4549 (target_continue_no_signal): Update.
4550 (target_continue): Update.
4551 * linux-low.cc (linux_target_ops): Update.
4552 (linux_resume): Turn into ...
4553 (linux_process_target::resume): ... this.
4554 * linux-low.h (class linux_process_target): Update.
4555 * lynx-low.cc (lynx_target_ops): Update.
4556 (lynx_resume): Turn into ...
4557 (lynx_process_target::resume): ... this.
4558 * lynx-low.h (class lynx_process_target): Update.
4559 * nto-low.cc (nto_target_ops): Update.
4560 (nto_resume): Turn into ...
4561 (nto_process_target::resume): ... this.
4562 * nto-low.h (class nto_process_target): Update.
4563 * win32-low.cc (win32_target_ops): Update.
4564 (win32_resume): Turn into ...
4565 (win32_process_target::resume): ... this.
4566 (win32_process_target::detach): Update.
4567 (do_initial_child_stuff): Update.
4568 * win32-low.h (class win32_process_target): Update.
4569
13d3d99b
TBA
45702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4571
4572 Turn process_stratum_target's thread_alive op into a method of
4573 process_target.
4574
4575 * target.h (struct process_stratum_target): Remove the target op.
4576 (class process_target): Add the target op.
4577 (mythread_alive): Update the macro.
4578
4579 Update the derived classes and callers below.
4580
4581 * linux-low.cc (linux_target_ops): Update.
4582 (linux_thread_alive): Turn into ...
4583 (linux_process_target::thread_alive): ... this.
4584 (wait_for_sigstop): Update.
4585 * linux-low.h (class linux_process_target): Update.
4586 * lynx-low.cc (lynx_target_ops): Update.
4587 (lynx_thread_alive): Turn into ...
4588 (lynx_process_target::thread_alive): ... this.
4589 * lynx-low.h (class lynx_process_target): Update.
4590 * nto-low.cc (nto_target_ops): Update.
4591 (nto_thread_alive): Turn into ...
4592 (nto_process_target::thread_alive): ... this.
4593 * nto-low.h (class nto_process_target): Update.
4594 * win32-low.cc (win32_target_ops): Update.
4595 (win32_thread_alive): Turn into ...
4596 (win32_process_target::thread_alive): ... this.
4597 * win32-low.h (class win32_process_target): Update.
4598
95a49a39
TBA
45992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4600
4601 Turn process_stratum_target's join op into a method of
4602 process_target.
4603
4604 * target.h (struct process_stratum_target): Remove the target op.
4605 (class process_target): Add the target op.
4606 (join_inferior): Update the macro.
4607
4608 Update the derived classes and callers below.
4609
4610 * linux-low.cc (linux_target_ops): Update.
4611 (linux_join): Turn into ...
4612 (linux_process_target::join): ... this.
4613 * linux-low.h (class linux_process_target): Update.
4614 * lynx-low.cc (lynx_target_ops): Update.
4615 (lynx_join): Turn into ...
4616 (lynx_process_target::join): ... this.
4617 * lynx-low.h (class lynx_process_target): Update.
4618 * nto-low.cc (nto_target_ops): Update.
4619 (nto_process_target::join): Define.
4620 * nto-low.h (class nto_process_target): Update.
4621 * win32-low.cc (win32_target_ops): Update.
4622 (win32_join): Turn into ...
4623 (win32_process_target::join): ... this.
4624 * win32-low.h (class win32_process_target): Update.
4625
8adb37b9
TBA
46262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4627
4628 Turn process_stratum_target's mourn op into a method of
4629 process_target.
4630
4631 * target.h (struct process_stratum_target): Remove the target op.
4632 (class process_target): Add the target op.
4633
4634 Update the derived classes and callers below.
4635
4636 * target.cc (target_mourn_inferior): Update.
4637 * linux-low.cc (linux_target_ops): Update.
4638 (linux_mourn): Turn into ...
4639 (linux_process_target::mourn): ... this.
4640 (handle_extended_wait): Update.
4641 (linux_process_target::kill): Update.
4642 (linux_process_target::detach): Update.
4643 * linux-low.h (class linux_process_target): Update.
4644 * lynx-low.cc (lynx_target_ops): Update.
4645 (lynx_mourn): Turn into ...
4646 (lynx_process_target::mourn): ... this.
4647 * lynx-low.h (class lynx_process_target): Update.
4648 * nto-low.cc (nto_target_ops): Update.
4649 (nto_mourn): Turn into ...
4650 (nto_process_target::mourn): ... this.
4651 * nto-low.h (class nto_process_target): Update.
4652 * win32-low.cc (win32_target_ops): Update.
4653 (win32_mourn): Turn into ...
4654 (win32_process_target::mourn): ... this.
4655 * win32-low.h (class win32_process_target): Update.
4656
9061c9cf
TBA
46572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4658
4659 Turn process_stratum_target's detach op into a method of
4660 process_target.
4661
4662 * target.h (struct process_stratum_target): Remove the target op.
4663 (class process_target): Add the target op.
4664 (detach_inferior): Update the macro.
4665
4666 Update the derived classes and callers below.
4667
4668 * linux-low.cc (linux_target_ops): Update.
4669 (linux_detach): Turn into ...
4670 (linux_process_target::detach): ... this.
4671 * linux-low.h (class linux_process_target): Update.
4672 * lynx-low.cc (lynx_target_ops): Update.
4673 (lynx_detach): Turn into ...
4674 (lynx_process_target::detach): ... this.
4675 * lynx-low.h (class lynx_process_target): Update.
4676 * nto-low.cc (nto_target_ops): Update.
4677 (nto_detach): Turn into ...
4678 (nto_process_target::detach): ... this.
4679 * nto-low.h (class nto_process_target): Update.
4680 * win32-low.cc (win32_target_ops): Update.
4681 (win32_detach): Turn into ...
4682 (win32_process_target::detach): ... this.
4683 * win32-low.h (class win32_process_target): Update.
4684
c6885a57
TBA
46852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4686
4687 Turn process_stratum_target's kill op into a method of
4688 process_target.
4689
4690 * target.h (struct process_stratum_target): Remove the target op.
4691 (class process_target): Add the target op.
4692
4693 Update the derived classes and callers below.
4694
4695 * target.cc (kill_inferior): Update.
4696 * linux-low.cc (linux_target_ops): Update.
4697 (linux_kill): Turn into ...
4698 (linux_process_target::kill): ... this.
4699 * linux-low.h (class linux_process_target): Update.
4700 * lynx-low.cc (lynx_target_ops): Update.
4701 (lynx_kill): Turn into ...
4702 (lynx_process_target::kill): ... this.
4703 * lynx-low.h (class lynx_process_target): Update.
4704 * nto-low.cc (nto_target_ops): Update.
4705 (nto_kill): Turn into ...
4706 (nto_process_target::kill): ... this.
4707 * nto-low.h (class nto_process_target): Update.
4708 * win32-low.cc (win32_target_ops): Update.
4709 (win32_kill): Turn into ...
4710 (win32_process_target::kill): ... this.
4711 * win32-low.h (class win32_process_target): Update.
4712
ef03dad8
TBA
47132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4714
4715 Turn process_stratum_target's attach op into a method of
4716 process_target.
4717
4718 * target.h (struct process_stratum_target): Remove the target op.
4719 (class process_target): Add the target op.
4720 (myattach): Update the macro.
4721
4722 Update the derived classes and callers below.
4723
4724 * linux-low.cc (linux_target_ops): Update.
4725 (linux_attach): Turn into ...
4726 (linux_process_target::attach): ... this.
4727 * linux-low.h (class linux_process_target): Update.
4728 * lynx-low.cc (lynx_target_ops): Update.
4729 (lynx_attach): Turn into ...
4730 (lynx_process_target::attach): ... this.
4731 * lynx-low.h (class lynx_process_target): Update.
4732 * nto-low.cc (nto_target_ops): Update.
4733 (nto_attach): Turn into ...
4734 (nto_process_target::attach): ... this.
4735 * nto-low.h (class nto_process_target): Update.
4736 * win32-low.cc (win32_target_ops): Update.
4737 (win32_attach): Turn into ...
4738 (win32_process_target::attach): ... this.
4739 * win32-low.h (class win32_process_target): Update.
4740
6dee9afb
TBA
47412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4742
4743 Turn process_stratum_target's post_create_inferior op into a method
4744 of process_target.
4745
4746 * target.h (struct process_stratum_target): Remove the target op.
4747 (class process_target): Add the target op.
4748 (target_post_create_inferior): Update the macro.
4749 * target.cc (process_target::post_create_inferior): Define.
4750
4751 Update the derived classes and callers below.
4752
4753 * linux-low.cc (linux_target_ops): Update.
4754 (linux_post_create_inferior): Turn into ...
4755 (linux_process_target::post_create_inferior): ... this.
4756 * linux-low.h (class linux_process_target): Update.
4757 * lynx-low.cc (lynx_target_ops): Update.
4758 * nto-low.cc (nto_target_ops): Update.
4759 * win32-low.cc (win32_target_ops): Update.
4760
15295543
TBA
47612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4762
4763 Turn process_stratum_target's create_inferior op into a method of
4764 process_target.
4765
4766 * target.h (struct process_stratum_target): Remove the target op.
4767 (class process_target): Add the target op.
4768 (create_inferior): Rename the macro to ...
4769 (target_create_inferior): ... this.
4770
4771 Update the derived classes and callers below.
4772
4773 * server.cc (handle_v_run): Update.
4774 (captured_main): Update.
4775 (process_serial_event): Update.
4776 * linux-low.cc (linux_target_ops): Update.
4777 (linux_create_inferior): Turn into ...
4778 (linux_process_target::create_inferior): ... this.
4779 * linux-low.h (class linux_process_target): Update.
4780 * lynx-low.cc (lynx_target_ops): Update.
4781 (lynx_create_inferior): Turn into ...
4782 (lynx_process_target::create_inferior): ... this.
4783 * lynx-low.h (class lynx_process_target): Update.
4784 * nto-low.cc (nto_target_ops): Update.
4785 (nto_create_inferior): Turn into ...
4786 (nto_process_target::create_inferior): ... this.
4787 * nto-low.h (class nto_process_target): Update.
4788 * win32-low.cc (win32_target_ops): Update.
4789 (win32_create_inferior): Turn into ...
4790 (win32_process_target::create_inferior): ... this.
4791 * win32-low.h (class win32_process_target): Update.
4792
5ef9273d
TBA
47932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4794
4795 * target.h (class process_target): New class definition.
4796 (struct process_stratum_target) <pt>: New field with type
4797 'process_target*'.
4798 * linux-low.h (class linux_process_target): Define as a derived
4799 class of 'process_target'.
4800 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4801 as the 'pt' field.
4802 * lynx-low.h (class lynx_process_target): Define as a derived
4803 class of 'process_target'.
4804 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4805 as the 'pt' field.
4806 * nto-low.h (class nto_process_target): Define as a derived
4807 class of 'process_target'.
4808 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4809 as the 'pt' field.
4810 * win32-low.h (class win32_process_target): Define as a derived
4811 class of 'process_target'.
4812 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4813 as the 'pt' field.
4814
9f1528a1
AB
48152020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4816
4817 * configure: Regenerate.
4818
bf84f706
MR
48192020-02-19 Maciej W. Rozycki <macro@wdc.com>
4820 Andrew Burgess <andrew.burgess@embecosm.com>
4821
4822 * linux-riscv-low.cc: New file.
4823 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4824 and nat/riscv-linux-tdesc.c.
4825 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4826 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4827 Define.
4828
1a627e7e
TT
48292020-02-14 Tom Tromey <tom@tromey.com>
4830
4831 * acinclude.m4: Don't include acx_configure_dir.m4.
4832 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4833 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4834 (all, install-only, uninstall, clean-info, clean)
4835 (maintainer-clean): Don't recurse.
4836 (subdir_do, all-lib): Remove.
4837 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4838 (GNULIB_H): Remove.
4839 (generated_files): Update.
4840 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4841 * configure: Rebuild.
4842 * configure.ac: Don't configure gnulib or libiberty.
4843 (GNULIB): Update.
4844
a9b34532
EZ
48452020-02-14 Eli Zaretskii <eliz@gnu.org>
4846
4847 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4848 preparing the command line for CreateProcess.
4849 (win32_create_inferior): Reflect the program name in debugging
4850 output that shows the process and its command line.
4851
feacfcac
SM
48522020-02-13 Simon Marchi <simon.marchi@efficios.com>
4853
4854 * Makefile.in: Rename source files from .c to .cc.
4855 * %.c: Rename to %.cc.
4856 * configure.ac: Rename server.c to server.cc.
4857 * configure: Re-generate.
4858
06b3c5bd
SM
48592020-02-13 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4862
052793ad
HD
48632020-02-12 Hannes Domani <ssbssa@yahoo.de>
4864
4865 * win32-low.c (win32_create_inferior): Set signal_pid.
4866
f20e3e82
MR
48672020-02-12 Maciej W. Rozycki <macro@wdc.com>
4868 Pedro Alves <palves@redhat.com>
4869
4870 Skip building gdbserver in a cross-configuration.
4871 * configure.srv: Set $gdbserver_host depending on whether $target
4872 is $host. Use $gdbserver_host instead of $host.
4873
8ddd8e0e
SM
48742020-02-11 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * configure: Re-generate.
4877
898e7f60
SM
48782020-02-11 Simon Marchi <simon.marchi@efficios.com>
4879
4880 * configure: Re-generate.
4881
58df732b
SM
48822020-02-11 Simon Marchi <simon.marchi@efficios.com>
4883
4884 * acinclude.m4: Update warning.m4 path.
4885
7928d571
HD
48862020-02-09 Hannes Domani <ssbssa@yahoo.de>
4887
4888 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4889 (handle_exception): Set siginfo_er.
4890 (win32_xfer_siginfo): New function.
4891
919adfe8
TT
48922020-02-07 Tom Tromey <tom@tromey.com>
4893 Pedro Alves <palves@redhat.com>
4894
4895 * README: Update build documentation.
4896 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4897 host, not target.
4898 * configure.ac: Update paths.
4899 * configure: Rebuild.
4900 * acinclude.m4: Update paths.
4901 * Makefile.in: Update include paths.
4902 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4903 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4904 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4905 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4906 (%-generated.c): Update paths.
4907 * Move entire directory from ../gdb/gdbserver.
4908
287c844a
MR
49092020-01-29 Maciej W. Rozycki <macro@wdc.com>
4910
4911 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4912
548a204f
PFC
49132020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4914
4915 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4916 assignment instead of srv_linux_obj.
4917
a2236a08
HD
49182020-01-28 Hannes Domani <ssbssa@yahoo.de>
4919
4920 * server.c (handle_qxfer_libraries): Write segment-address with
4921 paddress.
4922
bdaed379
HD
49232020-01-24 Hannes Domani <ssbssa@yahoo.de>
4924
4925 * Makefile.in (install-strip): New target.
4926 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4927 * aclocal.m4: Regenerate.
4928 * configure: Regenerate.
4929 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4930
42cd72aa
MR
49312020-01-24 Maciej W. Rozycki <macro@wdc.com>
4932
4933 * Makefile.in (SFILES): Adjust paths to point to real files.
4934 (OBS): Move waitstatus.o to target/waitstatus.o.
4935 (TAGS): Transform paths appropriately.
4936 (%.o): Rename to...
4937 (nat/%.o): ... this pattern rule.
4938 (%.o): Rename to...
4939 (target/%.o): ... this pattern rule.
4940 * configure.srv: Adjust paths throughout to include nat/ prefix
4941 with the revant files.
4942 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4943 * configure: Regenerate.
4944
42ba50ec
MR
49452020-01-24 Maciej W. Rozycki <macro@wdc.com>
4946
4947 * Makefile.in (TAGS): Remove config files from the recipe.
4948
05ea2a05
TT
49492020-01-14 Tom Tromey <tom@tromey.com>
4950
4951 * configure: Rebuild.
4952 * configure.ac: Remove any checks that were added to common.m4.
4953 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4954 lib-link.m4.
4955
01027315
TT
49562020-01-14 Tom Tromey <tom@tromey.com>
4957
4958 * server.h: Include config.h.
4959 * gdbreplay.c: Include config.h.
4960 * configure: Rebuild.
4961 * configure.ac: Don't source common.host.
4962 * acinclude.m4: Update path.
4963 * Makefile.in (INCSUPPORT): New variable.
4964 (INCLUDE_CFLAGS): Add INCSUPPORT.
4965 (SFILES): Update paths.
4966 (version-generated.c): Update path to create-version.sh.
4967 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4968
b2ceabe8
TT
49692020-01-14 Tom Tromey <tom@tromey.com>
4970
4971 * configure.ac (LIBS): Use WIN32APILIBS.
4972 (USE_WIN32API): Don't define.
4973 * configure: Rebuild.
4974
25c51f71
TT
49752020-01-14 Tom Tromey <tom@tromey.com>
4976
4977 * configure: Rebuild.
4978
c0bd321d
SM
49792020-01-13 Simon Marchi <simon.marchi@efficios.com>
4980
4981 * Makefile.in (%-generated.c): Remove rule for files from
4982 regformats/i386.
4983
bb564c58
SM
49842020-01-13 Simon Marchi <simon.marchi@efficios.com>
4985
4986 * configure: Re-generate.
4987
6e37c371
SM
49882020-01-13 Simon Marchi <simon.marchi@efficios.com>
4989
4990 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4991 Define to static.
4992 * tracepoint.c (stop_tracing, flush_trace_buffer,
4993 about_to_request_buffer_space, get_trace_state_variable_value,
4994 set_trace_state_variable_value, gdb_collect): Add declaration.
4995
df4a0200
SM
49962020-01-13 Simon Marchi <simon.marchi@efficios.com>
4997
4998 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4999 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
5000 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
5001 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
5002 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
5003 static.
5004
89e94ec9
SM
50052020-01-13 Simon Marchi <simon.marchi@efficios.com>
5006
5007 * inferiors.c: Include gdbsupport/common-inferior.h.
5008
2552728a
SM
50092020-01-13 Simon Marchi <simon.marchi@efficios.com>
5010
5011 * hostio-errno.c: Include hostio.h.
5012
4025fa09
SM
50132020-01-13 Simon Marchi <simon.marchi@efficios.com>
5014
5015 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
5016 prerequisite.
5017
c0b0a142
SM
50182020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5019
5020 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
5021 * linux-arm-tdesc.h: Include arch/arm.h.
5022
bb1183e2
SM
50232020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5024
5025 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
5026
f5df0b5f
SM
50272020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5028
5029 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
5030 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
5031
5b6d1e4f
PA
50322020-01-10 Pedro Alves <palves@redhat.com>
5033
5034 * fork-child.c (post_fork_inferior): Pass target down to
5035 startup_inferior.
5036 * inferiors.c (switch_to_thread): Add process_stratum_target
5037 parameter.
5038 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
5039 * nto-low.c (nto_target_ops): Now a process_stratum_target.
5040 * linux-low.c (linux_target_ops): Now a process_stratum_target.
5041 * remote-utils.c (prepare_resume_reply): Pass the target to
5042 switch_to_thread.
5043 * target.c (the_target): Now a process_stratum_target.
5044 (done_accessing_memory): Pass the target to switch_to_thread.
5045 (set_target_ops): Ajust to use process_stratum_target.
5046 * target.h (struct target_ops): Rename to ...
5047 (struct process_stratum_target): ... this.
5048 (the_target, set_target_ops): Adjust.
5049 (prepare_to_access_memory): Adjust comment.
5050 * win32-low.c (child_xfer_memory): Adjust to use
5051 process_stratum_target.
5052 (win32_target_ops): Now a process_stratum_target.
5053
559e7e50
EZ
50542020-01-06 Eli Zaretskii <eliz@gnu.org>
5055 Pedro Alves <palves@redhat.com>
5056
5057 * win32-low.c (get_child_debug_event): Extract the fatal exception
5058 from the exit status and convert to the equivalent Posix signal
5059 number.
5060 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5061 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5062
48189bec
HD
50632020-01-01 Hannes Domani <ssbssa@yahoo.de>
5064
5065 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5066
5dd8bf88
JB
50672020-01-01 Joel Brobecker <brobecker@adacore.com>
5068
5069 * server.c (gdbserver_version): Change copyright year to 2020.
5070 * gdbreplay.c (gdbreplay_version): Likewise.
5071
0ad6b8ee
CB
50722019-12-19 Christian Biesinger <cbiesinger@google.com>
5073
5074 * configure: Regenerate.
5075 * configure.ac: Quote variable arguments of test.
5076
1ee7b812
BE
50772019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5078
5079 * Makefile.in: Fix build with GNU Make 3.81
5080
d9fa87f4
TT
50812019-12-16 Tom Tromey <tromey@adacore.com>
5082
5083 * server.c (get_exec_file): Constify result.
5084
ab7d13f0
CB
50852019-12-10 Christian Biesinger <cbiesinger@google.com>
5086
5087 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5088 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5089 * config.in: Regenerate.
5090 * configure: Regenerate.
5091 * configure.ac: Don't check for strerror.
5092 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5093 Call safe_strerror instead of strerror.
5094 * server.h (strerror): Remove this now-unnecessary declaration.
5095 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5096 strerror.
5097 (gdb_agent_helper_thread): Likewise.
5098 * utils.c (perror_with_name): Likewise.
5099
4da8c3a8
TT
51002019-11-26 Tom Tromey <tom@tromey.com>
5101
5102 * configure, config.in: Rebuild.
5103
21987b9c
TT
51042019-11-26 Tom Tromey <tom@tromey.com>
5105
5106 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5107 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5108 gdb_sigmask.
5109 * configure, config.in: Rebuild.
5110
5e030278
TT
51112019-11-26 Tom Tromey <tom@tromey.com>
5112
5113 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5114 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5115 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5116 * acinclude.m4: Include ax_pthread.m4.
5117 * config.in, configure: Rebuild.
5118
6d91ce9a
CB
51192019-11-26 Christian Biesinger <cbiesinger@google.com>
5120
5121 * debug.c (debug_set_output): Call safe_strerror instead of
5122 strerror.
5123 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5124 (linux_kill_one_lwp): Likewise.
5125 (linux_detach_one_lwp): Likewise.
5126 (linux_wait_for_event_filtered): Likewise.
5127 (store_register): Likewise.
5128 * lynx-low.c (lynx_attach): Likewise.
5129 * mem-break.c (insert_memory_breakpoint): Likewise.
5130 (remove_memory_breakpoint): Likewise.
5131 (delete_fast_tracepoint_jump): Likewise.
5132 (set_fast_tracepoint_jump): Likewise.
5133 (uninsert_fast_tracepoint_jumps_at): Likewise.
5134 (reinsert_fast_tracepoint_jumps_at): Likewise.
5135 * nto-low.c (nto_xfer_memory): Likewise.
5136 (nto_resume): Likewise.
5137
6cdd651f
LM
51382019-11-20 Luis Machado <luis.machado@linaro.org>
5139
5140 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5141 instead of register count.
5142 * tdesc.c (tdesc_contains_feature): New function.
5143 * tdesc.h (tdesc_contains_feature): New prototype.
5144
cd850b40
CB
51452019-11-15 Christian Biesinger <cbiesinger@google.com>
5146
5147 * Makefile.in: Add safe-strerror.c.
5148 * configure: Regenerate.
5149 * configure.ac: Don't source common.host.
5150
5abebf3c
CB
51512019-11-15 Christian Biesinger <cbiesinger@google.com>
5152
5153 * config.in: Regenerate.
5154 * configure: Regenerate.
5155
e06f3d6e
AB
51562019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5157
5158 * ax.c (ax_printf): Handle size_t_arg.
5159
ca3a04f6
CB
51602019-11-06 Christian Biesinger <cbiesinger@google.com>
5161
5162 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5163 * mi/mi-main.c (output_cores): Likewise.
5164 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5165 (linux_xfer_osdata_modules): Likewise.
5166 * remote.c (register_remote_support_xml): Likewise.
5167 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5168 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5169
e48f6033
CB
51702019-11-01 Christian Biesinger <cbiesinger@google.com>
5171
5172 * configure: Regenerate.
5173 * configure.ac: Remove check for strerror_r.
5174
e7e97a2e
CB
51752019-10-31 Christian Biesinger <cbiesinger@google.com>
5176
5177 * config.in: Regenerate.
5178 * configure: Regenerate.
5179 * configure.ac: Also check for strerror_r.
5180
75cafaa6
CB
51812019-10-31 Christian Biesinger <cbiesinger@google.com>
5182
5183 * ax.h (debug_agent): Remove duplicate declaration.
5184
30baf67b
TV
51852019-10-26 Tom de Vries <tdevries@suse.de>
5186
5187 * linux-aarch64-low.c: Fix typos in comments.
5188 * linux-arm-low.c: Same.
5189 * linux-low.c: Same.
5190 * linux-ppc-low.c: Same.
5191 * proc-service.c: Same.
5192 * regcache.h: Same.
5193 * server.c: Same.
5194 * tracepoint.c: Same.
5195 * win32-low.c: Same.
5196
52c64cf7
TT
51972019-10-25 Tom Tromey <tromey@adacore.com>
5198
5199 * utils.c (xstrdup): Remove.
5200
c12d372d
TT
52012019-10-23 Tom Tromey <tom@tromey.com>
5202
5203 * configure, config.in: Rebuild.
5204
4d0b984b
TT
52052019-10-23 Tom Tromey <tom@tromey.com>
5206
5207 * configure: Rebuild.
5208 * acinclude.m4: Use m4_include, not sinclude.
5209
c5adaa19
TT
52102019-10-17 Tom Tromey <tromey@adacore.com>
5211
5212 * configure: Rebuild.
5213 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5214 in AC_CONFIG_FILES invocation.
5215 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5216 invocation.
5217
fec4e896
CB
52182019-10-16 Christian Biesinger <cbiesinger@google.com>
5219
5220 * server.c: Include xml-builtin.h.
5221 (get_xml_features): Don't declare xml_builtins here.
5222
00975ff6
AB
52232019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5224
5225 * Makefile.in: Remove references to vec-ipa.o.
5226
0dc32745
AB
52272019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5228
5229 * Makefile.in: Remove references to vec.c.
5230
3e6ec53a
CB
52312019-10-02 Christian Biesinger <cbiesinger@google.com>
5232
5233 * server.c (server_waiting): Change to bool.
5234 (extended_protocol): Likewise.
5235 (response_needed): Likewise.
5236 (exit_requested): Likewise.
5237 (run_once): Likewise.
5238 (report_no_resumed): Likewise.
5239 (non_stop): Likewise.
5240 (disable_packet_vCont): Likewise.
5241 (disable_packet_Tthread): Likewise.
5242 (disable_packet_qC): Likewise.
5243 (disable_packet_qfThreadInfo): Likewise.
5244 (handle_general_set): Update.
5245 (handle_detach): Update.
5246 (handle_monitor_command): Update.
5247 (handle_query): Update.
5248 (captured_main): Update.
5249 (process_serial_event): Update.
5250 * server.h (server_waiting): Change to bool.
5251 (disable_packet_vCont): Likewise.
5252 (disable_packet_Tthread): Likewise.
5253 (disable_packet_qC): Likewise.
5254 (disable_packet_qfThreadInfo): Likewise.
5255 (run_once): Likewise.
5256 (non_stop): Likewise.
5257 * target.c (target_stop_and_wait): Update.
5258
80fd2826
TT
52592019-10-02 Tom Tromey <tromey@adacore.com>
5260
5261 * Makefile.in (SFILES): Add common-inferior.c.
5262 (OBS): Add common-inferior.o.
5263 * server.c (startup_with_shell): Don't define.
5264
46f29a9a
AB
52652019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5266
5267 * linux-low.c (linux_low_read_btrace): Update for change to
5268 std::vector.
5269
f9d949fb
CB
52702019-09-20 Christian Biesinger <cbiesinger@google.com>
5271
5272 * debug.c (debug_threads): Remove comment in favor of the header.
5273 * debug.h (using_threads): Add declaration.
5274 (debug_threads): Add comment.
5275 * linux-aarch64-low.c: Include debug.h and remove declaration of
5276 debug_threads.
5277 * nto-low.c: Likewise.
5278 * remote-utils.c: Likewise.
5279 * thread-db.c: Likewise.
5280
abf516c6
UW
52812019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5282
5283 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5284 and powerpc-cell64l-ipa.o.
5285 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5286 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5287 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5288 (spu*-*-*): Remove.
5289
5290 * spu-low.c: Remove file.
5291
5292 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5293 (parse_spufs_run): Remove.
5294 (ppc_get_pc): Remove Cell/B.E. support.
5295 (ppc_set_pc): Likewise.
5296 (ppc_breakpoint_at): Likewise.
5297 (ppc_arch_setup): Likewise.
5298 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5299 tdesc_powerpc_cell32l.
5300 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5301 or init_registers_powerpc_cell32l.
5302 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5303 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5304 or init_registers_powerpc_cell32l.
5305 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5306 (init_registers_powerpc_cell32l): Remove prototype.
5307 (init_registers_powerpc_cell64l): Likewise.
5308
5309 * target.h (struct target_ops): Remove qxfer_spu member.
5310 * server.c (handle_qxfer_spu): Remove.
5311 (qxfer_packets): Remove entry for "spu".
5312 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5313 * linux-low.c (SPUFS_MAGIC): Remove.
5314 (spu_enumerate_spu_ids): Remove.
5315 (linux_qxfer_spu): Remove.
5316 (linux_target_ops): Remove qxfer_spu member.
5317 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5318 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5319 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5320
2d41fa11
SDJ
53212019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5322
5323 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5324 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5325 * config.in: Regenerate.
5326 * configure: Regenerate.
5327
d59b55f0
TT
53282019-08-15 Tom Tromey <tromey@adacore.com>
5329
5330 * target.c (target_write_memory): Use gdb::byte_vector.
5331
4196ab2a
TT
53322019-08-15 Tom Tromey <tromey@adacore.com>
5333
5334 * tracepoint.c (write_inferior_data_pointer)
5335 (write_inferior_integer, write_inferior_int8)
5336 (write_inferior_uinteger, m_tracepoint_action_download)
5337 (r_tracepoint_action_download, x_tracepoint_action_download)
5338 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5339 (download_agent_expr, download_tracepoint_1)
5340 (download_trace_state_variables, upload_fast_traceframes): Update.
5341 * server.c (gdb_write_memory): Update.
5342 * remote-utils.c (relocate_instruction): Update.
5343 * proc-service.c (ps_pdwrite): Update.
5344 * mem-break.c (remove_memory_breakpoint)
5345 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5346 (uninsert_fast_tracepoint_jumps_at)
5347 (reinsert_fast_tracepoint_jumps_at): Update.
5348 * linux-x86-low.c (append_insns)
5349 (i386_install_fast_tracepoint_jump_pad)
5350 (amd64_write_goto_address, i386_write_goto_address): Update.
5351 * linux-s390-low.c (append_insns, s390_write_goto_address):
5352 Update.
5353 * linux-ppc-low.c (ppc_relocate_instruction)
5354 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5355 (ppc_write_goto_address): Update.
5356 * linux-aarch64-low.c (append_insns): Update.
5357 * target.h (struct target_ops): Update.
5358 (write_inferior_memory): Don't declare.
5359 * target.c (target_write_memory): Rename from
5360 write_inferior_memory. Remove old target_write_memory.
5361
c6778d00
TT
53622019-08-15 Tom Tromey <tromey@adacore.com>
5363
5364 * target.c (write_inferior_memory): Use std::vector.
5365
404f2902
FCE
53662019-08-06 Frank Ch. Eigler <fche@redhat.com>
5367
5368 PR build/24886
5369 * configure.ac: Drop enable-libmcheck support.
5370 * configure, config.in: Rebuild.
5371 * acinclude.m4: Don't include it.
5372
4c5aa8e0
AH
53732019-07-19 Alan Hayward <alan.hayward@arm.com>
5374
5375 * configure.srv: Remove Arm xml files.
5376
7cc17433
AH
53772019-07-19 Alan Hayward <alan.hayward@arm.com>
5378
5379 * configure.srv: Add new files. Remove xml generated files.
5380 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5381 registers.
5382 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5383 * linux-aarch32-tdesc.c: New file.
5384 * linux-aarch32-tdesc.h: New file.
5385 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5386 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5387 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5388 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5389 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5390 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5391 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5392 (arm_read_description): Call arm_linux_read_description.
5393 (initialize_low_arch): Don't init registers.
5394 * linux-arm-tdesc.c: New file.
5395 * linux-arm-tdesc.h: New file.
5396
166a82be
AH
53972019-07-10 Alan Hayward <alan.hayward@arm.com>
5398
5399 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5400 Move counter inside for.
5401 (arm_read_description): Check ptrace earlier.
5402 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5403
268a13a5
TT
54042019-07-09 Tom Tromey <tom@tromey.com>
5405
5406 * configure: Rebuild.
5407 * configure.ac: Change common to gdbsupport.
5408 * acinclude.m4: Change common to gdbsupport.
5409 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5410 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5411 common to gdbsupport.
5412 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5413 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5414 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5415 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5416 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5417 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5418 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5419 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5420 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5421 common to gdbsupport.
5422
350fab54
AH
54232019-07-04 Alan Hayward <alan.hayward@arm.com>
5424
5425 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5426 defines.
5427 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5428
2b40fda7
AH
54292019-07-04 Alan Hayward <alan.hayward@arm.com>
5430
5431 * configure.srv: Remove legacy xml.
5432 * linux-aarch64-low.c (initialize_low_arch): Remove
5433 initialize_low_tdesc call.
5434 * linux-aarch64-tdesc-selftest.c: Remove file.
5435 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5436 * linux-x86-low.c (initialize_low_arch): Remove
5437 initialize_low_tdesc call.
5438 * linux-x86-tdesc-selftest.c: Remove file.
5439 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5440
7d10623d
TV
54412019-06-20 Tom de Vries <tdevries@suse.de>
5442
5443 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5444 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5445
8d6a48df
TV
54462019-06-19 Tom de Vries <tdevries@suse.de>
5447
5448 * debug.h (debug_write): Change return type to ssize_t.
5449 * debug.c (debug_write): Same.
5450
73cc7272
TT
54512019-06-14 Tom Tromey <tom@tromey.com>
5452
5453 * configure.ac: Use new path to gnulib.
5454 * configure: Rebuild.
5455 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5456 to gnulib.
5457
08f10e02
TT
54582019-06-11 Tom Tromey <tom@tromey.com>
5459
5460 * Makefile.in (SFILES): Add alloc.c.
5461 (OBS): Add alloc.o.
5462 (IPA_OBJS): Add alloc-ipa.o.
5463 (alloc-ipa.o): New target.
5464 (%.o: ../%.c): New pattern rule.
5465
422186a9
TT
54662019-06-10 Tom Tromey <tromey@adacore.com>
5467
5468 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5469 end warning with a newline.
5470 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5471 newline.
5472 * thread-db.c (attach_thread): Don't end warning with a newline.
5473 (thread_db_notice_clone): Likewise.
5474 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5475 newline.
5476 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5477 end warning with a newline.
5478
b02f78f9
PA
54792019-06-04 Pedro Alves <palves@redhat.com>
5480
5481 * server.c (captured_main): Use make_unique_xstrdup.
5482
88ed7edb
TT
54832019-06-02 Tom Tromey <tom@tromey.com>
5484
5485 * gdbreplay.c (fromhex): Remove.
5486 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5487
33a6bc35
TT
54882019-05-29 Tom Tromey <tromey@adacore.com>
5489
5490 * configure: Rebuild.
5491
e90a813d
KB
54922019-05-06 Kevin Buettner <kevinb@redhat.com>
5493
5494 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5495 sign extension code on 32-bit builds.
5496
353ea2d1
EZ
54972019-05-03 Eli Zaretskii <eliz@gnu.org>
5498
5499 * remote-utils.c:
5500 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5501
b494cdff
TT
55022019-04-19 Tom Tromey <tom@tromey.com>
5503
5504 * server.c (struct vstop_notif): Derive from notif_event.
5505 <base>: Remove.
5506 (queue_stop_reply): Update.
5507 (remove_all_on_match_ptid): Change type. Rewrite.
5508 (discard_queued_stop_replies): Rewrite.
5509 (in_queued_stop_replies_ptid): Change type.
5510 (in_queued_stop_replies): Rewrite.
5511 (notif_stop): Update.
5512 (queue_stop_reply_callback): Update.
5513 (captured_main): Don't call initialize_notif.
5514 (push_stop_notification): Update.
5515 * notif.c (notif_write_event, handle_notif_ack)
5516 (notif_event_enque, notif_push): Update.
5517 (notif_event_xfree, initialize_notif): Remove.
5518 * notif.h (struct notif_event): Include <list>, not
5519 "common/queue.h".
5520 (struct notif_server) <queue>: Now a std::list.
5521 (notif_event_p): Remove typedef.
5522 (initialize_notif): Don't declare.
5523 (struct notif_event): Add virtual destructor.
5524
a7e559cc
AH
55252019-04-17 Alan Hayward <alan.hayward@arm.com>
5526
5527 * ax.c (ax_vdebug): Call debug_printf.
5528 * debug.c (debug_write): New function.
5529 * debug.h (debug_write): New declaration.
5530 * linux-low.c (sigchld_handler): Call debug_write.
5531
aeb2e706
AH
55322019-04-17 Alan Hayward <alan.hayward@arm.com>
5533
5534 * debug.c (debug_set_output): New function.
5535 (debug_vprintf): Send output to debug_file.
5536 (debug_flush): Likewise.
5537 * debug.h (debug_set_output): New declaration.
5538 * server.c (handle_monitor_command): Add debug-file option.
5539 (captured_main): Likewise.
5540
c1bc0935
AH
55412019-04-17 Alan Hayward <alan.hayward@arm.com>
5542
5543 * debug.c (remote_debug): Add definition.
5544 * debug.h (remote_debug): Add declaration.
5545 * hostio.c (remote_debug): Remove declaration.
5546 * remote-utils.c (struct ui_file): Likewise.
5547 (remote_debug): Likewise.
5548 * remote-utils.h (remote_debug): Likewise,
5549 * server.c (remote_debug): Remove definition.
5550
3f52fdbc
KB
55512019-04-10 Kevin Buettner <kevinb@redhat.com>
5552
5553 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5554 when using a 64-bit gdbserver.
5555
b0319eaa
TT
55562019-04-09 Tom Tromey <tromey@adacore.com>
5557
5558 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5559
eedc3f4f
TT
55602019-04-08 Tom Tromey <tom@tromey.com>
5561
5562 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5563 throw.
5564 (linux_resume_one_lwp): Likewise.
5565
230d2906
TT
55662019-04-08 Tom Tromey <tom@tromey.com>
5567
5568 * gdbreplay.c: Update.
5569 * linux-low.c: Update.
5570 * server.c: Update.
5571
a70b8144
TT
55722019-04-08 Tom Tromey <tom@tromey.com>
5573
5574 * server.c: Use C++ exception handling.
5575 * linux-low.c: Use C++ exception handling.
5576 * gdbreplay.c: Use C++ exception handling.
5577
3d6e9d23
TT
55782019-04-08 Tom Tromey <tom@tromey.com>
5579
5580 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5581 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5582 (captured_main, main): Update.
5583 * gdbreplay.c (main): Update.
5584
0570503d
PFC
55852019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5586
5587 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5588 value in argument pointer, return 1 if the entry is found and 0
5589 otherwise. Move comment.
5590 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5591 * linux-low.h (linux_get_auxv): Declare.
5592 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5593
227a9e65
TT
55942019-04-05 Tom Tromey <tromey@adacore.com>
5595
5596 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5597 variables.
5598
69f4c9cc
AH
55992019-03-28 Alan Hayward <alan.hayward@arm.com>
5600
5601 * linux-low.c (AT_HWCAP2): Add define if not already included.
5602
974c89e0
AH
56032019-03-26 Alan Hayward <alan.hayward@arm.com>
5604
5605 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5606 (aarch64_arch_setup): Call linux_get_hwcap.
5607 * linux-arm-low.c (arm_get_hwcap): Remove function.
5608 (arm_read_description): Call linux_get_hwcap.
5609 * linux-low.c (linux_get_auxv): New function.
5610 (linux_get_hwcap): Likewise.
5611 (linux_get_hwcap2): Likewise.
5612 * linux-low.h (linux_get_hwcap): New declaration.
5613 (linux_get_hwcap2): Likewise.
5614 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5615 (ppc_arch_setup): Call linux_get_hwcap.
5616 * linux-s390-low.c (s390_get_hwcap): Remove function.
5617 (s390_arch_setup): Call linux_get_hwcap.
5618
1ef53e6b
AH
56192019-03-22 Alan Hayward <alan.hayward@arm.com>
5620 Jiong Wang <jiong.wang@arm.com>
5621
5622 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5623 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5624 to fail.
5625 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5626
ee4fbcfa
AH
56272019-03-22 Alan Hayward <alan.hayward@arm.com>
5628 Jiong Wang <jiong.wang@arm.com>
5629
5630 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5631 (aarch64_get_hwcap): New function.
5632 (aarch64_arch_setup): Read APIA hwcap.
5633
6dc0ebde
AH
56342019-03-22 Alan Hayward <alan.hayward@arm.com>
5635 Jiong Wang <jiong.wang@arm.com>
5636
5637 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5638 (initialize_low_tracepoint): Likewise.
5639 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5640 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5641 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5642 (aarch64_linux_read_description): Likewise.
5643 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5644
1163a4b7
JB
56452019-03-12 John Baldwin <jhb@FreeBSD.org>
5646
5647 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5648 i386_create_target_description for 'segments' parameter.
5649 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5650 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5651 * win32-i386-low.c (i386_arch_setup): Likewise.
5652
d3a70e03
TT
56532019-03-12 Tom Tromey <tromey@adacore.com>
5654
5655 * linux-low.c (iterate_over_lwps): Update.
5656
37991b4f
TT
56572019-03-06 Tom Tromey <tom@tromey.com>
5658
5659 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5660 (captured_main): Use SCOPE_EXIT.
5661
45950eb6
SDJ
56622019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5663
5664 * configure.srv: Use '$enable_unittest' instead of '$development'
5665 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5666 case.
5667
43ac54fc
TT
56682019-02-27 Tom Tromey <tromey@adacore.com>
5669
5670 * gdbreplay.c (logchar): Handle \r\n.
5671
df0da8a2
AH
56722019-02-07 Alan Hayward <alan.hayward@arm.com>
5673
5674 * linux-low.c (linux_attach): Add process before lwp.
5675 * server.c (attach_inferior): Check if already attached.
5676
1a5c2598
TT
56772019-02-07 Tom Tromey <tom@tromey.com>
5678
5679 * x86-tdesc.h: Rename include guard.
5680 * x86-low.h: Add include guard.
5681 * wincecompat.h: Rename include guard.
5682 * win32-low.h: Add include guard.
5683 * utils.h: Rename include guard.
5684 * tracepoint.h: Rename include guard.
5685 * tdesc.h: Rename include guard.
5686 * target.h: Rename include guard.
5687 * server.h: Rename include guard.
5688 * remote-utils.h: Rename include guard.
5689 * regcache.h: Rename include guard.
5690 * nto-low.h: Rename include guard.
5691 * notif.h: Add include guard.
5692 * mem-break.h: Rename include guard.
5693 * lynx-low.h: Add include guard.
5694 * linux-x86-tdesc.h: Add include guard.
5695 * linux-s390-tdesc.h: Add include guard.
5696 * linux-ppc-tdesc-init.h: Add include guard.
5697 * linux-low.h: Add include guard.
5698 * linux-aarch64-tdesc.h: Add include guard.
5699 * linux-aarch32-low.h: Add include guard.
5700 * inferiors.h: Rename include guard.
5701 * i387-fp.h: Rename include guard.
5702 * hostio.h: Rename include guard.
5703 * gdbthread.h: Rename include guard.
5704 * gdb_proc_service.h: Rename include guard.
5705 * event-loop.h: Rename include guard.
5706 * dll.h: Rename include guard.
5707 * debug.h: Rename include guard.
5708 * ax.h: Rename include guard.
5709
956cc47c
SN
57102018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5711
5712 PR gdb/23985
5713 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5714 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5715
a0707f3c
TT
57162019-01-25 Tom Tromey <tom@tromey.com>
5717
5718 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5719
0747795c
TT
57202019-01-25 Tom Tromey <tom@tromey.com>
5721
5722 * win32-low.c: Fix common/ includes.
5723 * win32-i386-low.c: Fix common/ includes.
5724 * tracepoint.c: Fix common/ includes.
5725 * thread-db.c: Fix common/ includes.
5726 * target.h: Fix common/ includes.
5727 * symbol.c: Fix common/ includes.
5728 * spu-low.c: Fix common/ includes.
5729 * server.h: Fix common/ includes.
5730 * server.c: Fix common/ includes.
5731 * remote-utils.c: Fix common/ includes.
5732 * regcache.h: Fix common/ includes.
5733 * regcache.c: Fix common/ includes.
5734 * nto-x86-low.c: Fix common/ includes.
5735 * notif.h: Fix common/ includes.
5736 * mem-break.h: Fix common/ includes.
5737 * lynx-low.c: Fix common/ includes.
5738 * lynx-i386-low.c: Fix common/ includes.
5739 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5740 * linux-x86-low.c: Fix common/ includes.
5741 * linux-low.c: Fix common/ includes.
5742 * inferiors.h: Fix common/ includes.
5743 * i387-fp.c: Fix common/ includes.
5744 * hostio.c: Fix common/ includes.
5745 * hostio-errno.c: Fix common/ includes.
5746 * gdbthread.h: Fix common/ includes.
5747 * gdbreplay.c: Fix common/ includes.
5748 * fork-child.c: Fix common/ includes.
5749 * event-loop.c: Fix common/ includes.
483ab96a 5750 * ax.c (enum gdb_agent_op): Fix common/ includes.
0747795c 5751
be6d4f74
TT
57522019-01-21 Tom Tromey <tom@tromey.com>
5753
5754 * tracepoint.c: Fix includes.
5755 * remote-utils.c: Fix includes.
5756 * linux-x86-low.c: Fix includes.
5757
66d91b39
JB
57582019-01-01 Joel Brobecker <brobecker@adacore.com>
5759
5760 * gdbreplay.c (gdbreplay_version): Update copyright year in
5761 version message.
5762 * server.c (gdbserver_version): Likewise.
5763
754e3168
AH
57642018-12-05 Alan Hayward <alan.hayward@arm.com>
5765
5766 * linux-low.c (add_lwp): Switch ordering.
5767
d105de22
TT
57682018-11-29 Tom Tromey <tom@tromey.com>
5769
5770 * win32-low.c (win32_join): Take pid, not process.
5771 * target.h (struct target_ops) <join>: Change argument type.
5772 (join_inferior): Change argument name.
5773 * spu-low.c (spu_join): Take pid, not process.
5774 * server.c (handle_detach): Preserve pid before destroying
5775 process.
5776 * lynx-low.c (lynx_join): Take pid, not process.
5777 * linux-low.c (linux_join): Take pid, not process.
5778
50138245
AH
57792018-11-23 Alan Hayward <alan.hayward@arm.com>
5780
5781 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5782 (aarch64_cannot_fetch_register): Likewise.
5783 (struct linux_target_ops): Update references.
5784
64f57f3d
PFC
57852018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5786
5787 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5788
8d619c01
EBM
57892018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5790
5791 * configure.srv (ipa_ppc_linux_regobj): Add
5792 powerpc-isa207-htm-vsx32l-ipa.o and
5793 powerpc-isa207-htm-vsx64l-ipa.o.
5794 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5795 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5796 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5797 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5798 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5799 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5800 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5801 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5802 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5803 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5804 (init_registers_powerpc_isa207_htm_vsx32l)
5805 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5806 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5807 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5808 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5809 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5810 (ppc_store_tm_ctarregset): New functions.
5811 (ppc_regsets): Add entries for HTM regsets.
5812 (ppc_arch_setup): Set htm in features struct when needed. Set
5813 sizes for the HTM regsets.
5814 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5815 (initialize_low_arch): Call
5816 init_registers_powerpc_isa207_htm_vsx32l and
5817 init_registers_powerpc_isa207_htm_vsx64l.
5818 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5819 PPC_TDESC_ISA207_HTM_VSX.
5820 (initialize_low_tracepoint): Call
5821 init_registers_powerpc_isa207_htm_vsx32l and
5822 init_registers_powerpc_isa207_htm_vsx64l.
5823
232bfb86
EBM
58242018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5825
5826 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5827 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5828 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5829 (ppc_store_pmuregset): New functions.
5830 (ppc_regsets): Add entries for ebb and pmu regsets.
5831 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5832 pmu regsets are available. Set sizes for these regsets.
5833
f2cf6173
EBM
58342018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5835
5836 * configure.srv (ipa_ppc_linux_regobj): Add
5837 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5838 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5839 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5840 rs6000/powerpc-isa207-vsx32l.xml, and
5841 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5842 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5843 <PPC_TDESC_ISA207_VSX>: New enum value.
5844 (init_registers_powerpc_isa207_vsx32l): Declare.
5845 (init_registers_powerpc_isa207_vsx64l): Declare.
5846 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5847 (ppc_store_tarregset): New function.
5848 (ppc_regsets): Add entry for the TAR regset.
5849 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5850 size for the TAR regsets.
5851 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5852 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5853 and init_registers_powerpc_isa207_vsx64l.
5854 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5855 (initialize_low_tracepoint): Call
5856 init_registers_powerpc_isa207_vsx32l and
5857 init_registers_powerpc_isa207_vsx64l.
5858
7ca18ed6
EBM
58592018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5860 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5861
5862 * configure.srv (ipa_ppc_linux_regobj): Add
5863 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5864 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5865 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5866 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5867 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5868 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5869 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5870 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5871 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5872 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5873 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5874 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5875 (ppc_hwcap): Add comment.
5876 (ppc_hwcap2): New global.
5877 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5878 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5879 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5880 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5881 when needed. Set sizes for the the DSCR and PPR regsets.
5882 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5883 (initialize_low_arch): Call
5884 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5885 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5886 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5887 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5888 (initialize_low_tracepoint): Call
5889 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5890 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5891
5c849b22
PFC
58922018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5893
5894 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5895
8ecfd7bd
SDJ
58962018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5897 Simon Marchi <simark@simark.ca>
5898
5899 * acinclude.m4: Include "../selftest.m4".
5900 * configure: Regenerate.
5901 * configure.ac: Use "GDB_AC_SELFTEST".
5902 * configure.srv: Use "$enable_unittests" instead of
5903 "$development" when checking whether unit tests have been
5904 enabled.
5905 * server.c (captured_main): Update message informing that
5906 selftests have been disabled.
5907
96643e35
TT
59082018-10-04 Tom Tromey <tom@tromey.com>
5909
5910 * configure: Rebuild.
5911
da4ae14a
TT
59122018-10-04 Tom Tromey <tom@tromey.com>
5913
5914 * server.c (handle_status): Rename inner "thread".
5915 (process_serial_event): Declare "res" in 'm' case.
5916 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5917 (iterate_over_lwps): Rename inner "thread".
5918 (linux_qxfer_libraries_svr4): Rename inner "len".
5919 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5920
7c619dbd
GB
59212018-10-01 Gary Benson <gbenson@redhat.com>
5922
5923 * gdb_proc_service.h: Moved common code to
5924 common/gdb_proc_service.h.
5925
3795e814
GB
59262018-10-01 Gary Benson <gbenson@redhat.com>
5927
5928 * gdb_proc_service.h: Synchronize comments and whitespace with
5929 GDB's version of this file.
5930
49b036f1
TT
59312018-09-25 Tom Tromey <tom@tromey.com>
5932
5933 * configure: Rebuild.
5934 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5935
8ff03f0b
SM
59362018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5937
5938 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5939 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5940 ($(IPA_LIB)): Sort IPA_OBJS.
5941
a1cd91dc
SM
59422018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5943
5944 * Makefile.in: Remove references to $(ADD_DEPS).
5945
752312ba
TT
59462018-09-16 Tom Tromey <tom@tromey.com>
5947
5948 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5949 variables.
5950 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5951 variables.
5952
f1628857
TT
59532018-09-05 Tom Tromey <tom@tromey.com>
5954
5955 * configure: Rebuild.
5956
ad202fcc
SM
59572018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5958
5959 PR build/23399
5960 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5961
d3d8724a
TT
59622018-08-27 Tom Tromey <tom@tromey.com>
5963
5964 PR build/23087:
5965 * configure: Rebuild.
5966
b4f183d2
TT
59672018-08-27 Tom Tromey <tom@tromey.com>
5968
5969 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5970 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5971 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5972 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5973 (s390x_emit_stack_adjust): Add casts to unsigned char.
5974
4e2aa472
SM
59752018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5976
5977 PR gdb/23374
5978 PR gdb/23375
5979 * server.h (struct client_state) <disable_randomization>:
5980 Initialize to 1.
5981
cf4088a9
SM
59822018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5983
5984 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5985 variable.
5986 (mips_supply_ptrace_register): Likewise.
5987
a0de763e
TT
59882018-07-22 Tom Tromey <tom@tromey.com>
5989
5990 * configure: Rebuild.
5991
b0a7723d
TT
59922018-07-22 Tom Tromey <tom@tromey.com>
5993
5994 * win32-low.c (win32_create_inferior): Remove unused variables.
5995 * gdbreplay.c (remote_open): Remove unused variable.
5996 * remote-utils.c (remote_prepare): Remove unused variable.
5997 * x86-tdesc.h (X86_TDESC_H): Define.
5998 (amd64_expedite_regs): Define conditionally.
5999 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
6000 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
6001 * remote-utils.c (readchar): Remove unused variable.
6002
a780ef4f
PA
60032018-07-13 Pedro Alves <palves@redhat.com>
6004
6005 * linux-low.c (linux_kill): Change parameter to process_info
6006 pointer instead of pid. Adjust.
6007 * lynx-low.c (lynx_kill): Likewise.
6008 * nto-low.c (nto_kill): Likewise.
6009 * spu-low.c (spu_kill): Likewise.
6010 * win32-low.c (win32_kill): Likewise.
6011 * server.c (handle_v_kill, kill_inferior_callback)
6012 (detach_or_kill_for_exit): Adjust.
6013 * target.c (kill_inferior): Change parameter to process_info
6014 pointer instead of pid. Adjust.
6015 * target.h (struct target_ops) <kill>: Change parameter to
6016 process_info pointer instead of pid. Adjust all implementations
6017 and callers.
6018 (kill_inferior): Likewise.
6019
ef2ddb33
PA
60202018-07-13 Pedro Alves <palves@redhat.com>
6021
6022 * linux-low.c (linux_detach, linux_join): Change parameter to
6023 process_info pointer instead of pid. Adjust.
6024 * lynx-low.c (lynx_detach, lynx_join): Likewise.
6025 * nto-low.c (nto_detach): Likewise.
6026 * spu-low.c (spu_detach, spu_join): Likewise.
6027 * win32-low.c (win32_detach, win32_join): Likewise.
6028 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
6029 * target.h (struct target_ops) <detach, join>: Change parameter to
6030 process_info pointer instead of pid. Adjust all implementations
6031 and callers.
6032 (detach_inferior, join_inferior): Rename 'pid' parameter to
6033 'proc'.
6034
c7ab0aef
SDJ
60352018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6036 Jan Kratochvil <jan.kratochvil@redhat.com>
6037 Paul Fertser <fercerpav@gmail.com>
6038 Tsutomu Seki <sekiriki@gmail.com>
6039
6040 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
6041 (OBS): Add 'common/netstuff.o'.
6042 (GDBREPLAY_OBS): Likewise.
6043 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
6044 (remote_open): Implement support for IPv6
6045 connections.
6046 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
6047 and 'wspiapi.h'.
6048 (handle_accept_event): Accept connections from IPv6 sources.
6049 (remote_prepare): Handle IPv6-style hostnames; implement
6050 support for IPv6 connections.
6051 (remote_open): Implement support for printing connections from
6052 IPv6 sources.
6053
31445d10
PA
60542018-07-11 Pedro Alves <palves@redhat.com>
6055
6056 PR gdb/23377
6057 * mem-break.c (any_persistent_commands): Add process_info
6058 parameter and use it instead of relying on the current process.
6059 Change return type to bool.
6060 * mem-break.h (any_persistent_commands): Add process_info
6061 parameter and change return type to bool.
6062 * server.c (handle_detach): Remove require_running_or_return call.
6063 Look up the process_info for the process we're about to detach.
6064 If not found, return back error to GDB. Adjust
6065 any_persistent_commands call to pass down a process pointer.
6066
cb197132
PA
60672018-07-11 Pedro Alves <palves@redhat.com>
6068
6069 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6070 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6071 instead of collect_register_by_name.
6072 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6073 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6074
1b919490
VB
60752018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6076 Pedro Alves <palves@redhat.com>
6077
6078 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6079
d7e15655
TT
60802018-07-03 Tom Tromey <tom@tromey.com>
6081
6082 * linux-low.c: Update.
6083 * lynx-low.c: Update.
6084 * mem-break.c: Update.
6085 * nto-low.c: Update.
6086 * remote-utils.c: Update.
6087 * server.c: Update.
6088 * spu-low.c: Update.
6089 * target.c: Update.
6090 * win32-low.c: Update.
6091
26a57c92
TT
60922018-07-03 Tom Tromey <tom@tromey.com>
6093
6094 * server.c: Update.
6095
0e998d96
TT
60962018-07-03 Tom Tromey <tom@tromey.com>
6097
6098 * linux-low.c: Update.
6099
cc6bcb54
TT
61002018-07-03 Tom Tromey <tom@tromey.com>
6101
6102 * target.c: Update.
6103
e38504b3
TT
61042018-07-03 Tom Tromey <tom@tromey.com>
6105
6106 * linux-low.c: Update.
6107 * linux-mips-low.c: Update.
6108 * lynx-low.c: Update.
6109 * nto-low.c: Update.
6110 * remote-utils.c: Update.
6111 * server.c: Update.
6112 * spu-low.c: Update.
6113 * target.c: Update.
6114 * thread-db.c: Update.
6115
e99b03dc
TT
61162018-07-03 Tom Tromey <tom@tromey.com>
6117
6118 * linux-low.c: Update.
6119 * linux-mips-low.c: Update.
6120 * lynx-low.c: Update.
6121 * mem-break.c: Update.
6122 * nto-low.c: Update.
6123 * remote-utils.c: Update.
6124 * server.c: Update.
6125 * spu-low.c: Update.
6126 * target.c: Update.
6127 * tracepoint.c: Update.
6128
f2907e49
TT
61292018-07-03 Tom Tromey <tom@tromey.com>
6130
6131 * linux-low.c: Update.
6132 * linux-ppc-low.c: Update.
6133 * linux-x86-low.c: Update.
6134 * proc-service.c: Update.
6135 * server.c: Update.
6136 * spu-low.c: Update.
6137 * thread-db.c: Update.
6138 * win32-low.c: Update.
6139
fd79271b
TT
61402018-07-03 Tom Tromey <tom@tromey.com>
6141
6142 * linux-low.c: Update.
6143 * lynx-low.c: Update.
6144 * nto-low.c: Update.
6145 * remote-utils.c: Update.
6146 * spu-low.c: Update.
6147 * thread-db.c: Update.
6148 * win32-low.c: Update.
6149
c0867626
SDJ
61502018-06-29 Joel Brobecker <brobecker@adacore.com>
6151
6152 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6153 parameter in call to 'amd64_create_target_description'.
6154
2512d7ef
JK
61552018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6156
6157 * x86-tdesc.h: Remove executable permission flag.
6158
d0ac1c44
SM
61592018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6160
6161 * configure.ac: Remove AC_PREREQ, add missing quoting.
6162 * configure: Re-generate.
6163 * config.in: Re-generate.
6164 * aclocal.m4: Re-generate.
6165
c4eb05ff
SM
61662018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6167
6168 * tracepoint.h (current_traceframe): Remove declaration.
6169
02895270
AH
61702018-06-18 Alan Hayward <alan.hayward@arm.com>
6171
6172 * linux-aarch64-low.c (is_sve_tdesc): New function.
6173 (aarch64_sve_regs_copy_to_regcache): Likewise.
6174 (aarch64_sve_regs_copy_from_regcache): Likewise.
6175 (aarch64_regs_info): Add SVE checks.
6176 (initialize_low_arch): Initialize SVE.
6177
e9902bfc
AH
61782018-06-18 Alan Hayward <alan.hayward@arm.com>
6179
6180 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6181
fefa175e
AH
61822018-06-11 Alan Hayward <alan.hayward@arm.com>
6183
6184 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6185 (initialize_low_tracepoint): Likewise
6186 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6187 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6188 param.
6189 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6190 checks.
6191 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6192
b91ad3ff
AH
61932018-06-11 Alan Hayward <alan.hayward@arm.com>
6194
6195 * server.h (PBUFSIZ): Increase size
6196
f868386e
AH
61972018-06-11 Alan Hayward <alan.hayward@arm.com>
6198
6199 * regcache.c (regcache::raw_compare): New function.
6200 * regcache.h (regcache::raw_compare): New declaration.
6201
9c861883
AH
62022018-06-11 Alan Hayward <alan.hayward@arm.com>
6203
6204 * regcache.c (new_register_cache): Use new.
6205 (free_register_cache): Use delete.
6206 (register_data): Use const.
6207 (supply_register): Move body inside regcache.
6208 (regcache::raw_supply): New override function.
6209 (collect_register): Move body inside regcache.
6210 (regcache::raw_collect): New override function.
6211 (regcache::get_register_status): New override function.
6212 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6213
40591844
TT
62142018-06-09 Tom Tromey <tom@tromey.com>
6215
6216 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6217 declare queue.
6218 (event_queue): Use std::queue.
6219 (gdb_event_xfree): Remove.
6220 (initialize_event_loop, process_event, wait_for_event): Update.
6221
6341380d
SC
62222018-06-08 Stan Cox <scox@redhat.com>
6223
6224 * win32-low.c (win32_create_inferior): last_ptid and last_status
6225 moved to client_state.
6226
03349c93
PA
62272018-06-08 Pedro Alves <palves@redhat.com>
6228
6229 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6230 common/common-exceptions.o, common/common-utils.o,
6231 common/errors.o, common/print-utils.o and utils.o.
6232 * gdbreplay.c: Include "common-defs.h" instead of the two
6233 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6234 string.h or alloca.h.
6235 (perror_with_name): Delete.
6236 (remote_open): Use xstrdup instead of strdup.
6237 (main): Rename to ...
6238 (captured_main): ... this.
6239 (main): New.
6240
8dcc53b3
TT
62412018-06-08 Tom Tromey <tom@tromey.com>
6242
6243 * linux-low.c (linux_low_read_btrace): Update.
6244
c12a5089
SC
62452018-06-04 Stan Cox <scox@redhat.com>
6246
6247 * server.h (struct client_state): New.
6248 * server.c (cont_thread, general_thread, multi_process)
6249 (report_fork_events, report_vfork_events, report_exec_events)
6250 (report_thread_events, swbreak_feature, hwbreak_feature)
6251 (vCont_supported, disable_randomization, pass_signals)
6252 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6253 Moved to client_state.
6254 * remote-utils.c (remote_debug, noack_mode)
6255 (transport_is_reliable): Moved to client_state.
6256 * tracepoint.c (current_traceframe): Moved to client_state.
6257
6258 Update all callers.
6259 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6260 linux-low.c, remote-utils.h, target.c: Use client_state.
6261
122394f1
AH
62622018-05-31 Alan Hayward <alan.hayward@arm.com>
6263
6264 * configure.srv: Add new c/h file.
6265
95228a0d
AH
62662018-05-31 Alan Hayward <alan.hayward@arm.com>
6267
6268 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6269 null VQ.
6270
d8dab6c3
MR
62712018-05-25 Maciej W. Rozycki <macro@mips.com>
6272
6273 * gdb.arch/mips-fpregset-core.exp: New test.
6274 * gdb.arch/mips-fpregset-core.c: New test source.
6275
81e25b7c
EK
62762018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6277
6278 PR server/23198
6279 * hostio.c (require_int): Do not report overflow for integers
6280 between 0xfffffff and 0x7fffffff.
6281
7e947ad3
MR
62822018-05-22 Maciej W. Rozycki <macro@mips.com>
6283
6284 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6285 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6286 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6287 functions.
6288 (the_low_target): Wire them.
6289
1d75a658
PFC
62902018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6291
6292 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6293 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6294 mode. Call collect_register_by_name with vscr using
6295 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6296 (ppc_store_vrregset): Add and set vscr_offset variable as in
6297 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6298 vscr_offset.
6299
d078308a
PFC
63002018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6301
6302 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6303 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6304 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6305
7273b5fc
PFC
63062018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6307
6308 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6309 (ppc_store_vsxregset): Likewise.
6310 (ppc_fill_vrregset): Likewise.
6311 (ppc_store_vrregset): Likewise.
6312 (ppc_fill_evrregset): Likewise.
6313 (ppc_store_evrregset): Likewise.
6314 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6315 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6316 needed.
6317
2e077f5e
PFC
63182018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6319
6320 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6321 wordsize of the inferior. Call ppc_linux_target_wordsize.
6322
bd64614e
PFC
63232018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6324
6325 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6326 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6327 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6328 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6329 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6330 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6331 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6332 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6333 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6334 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6335 (tdesc_powerpc_e500l): Remove.
6336 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6337 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6338 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6339 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6340 linux-ppc-tdesc.h.
6341 (ppc_arch_setup): Remove target description matching code. Fill a
6342 ppc_linux_features struct and call ppc_linux_match_description
6343 with it.
6344
75d74cca
MR
63452018-05-22 Maciej W. Rozycki <macro@mips.com>
6346
6347 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6348 width of the requested register exceeds the width of the
6349 `ptrace' data type.
6350 (mips_cannot_store_register): Likewise.
6351
e4439e43
MR
63522018-05-21 Maciej W. Rozycki <macro@mips.com>
6353
6354 * linux-mips-low.c (mips_fetch_register): New function. Update
6355 preceding comment.
6356 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6357 (the_low_target): Wire `mips_fetch_register'.
6358
55271bf9
JB
63592018-05-10 Joel Brobecker <brobecker@adacore.com>
6360
6361 * lynx-i386-low.c (LYNXOS_178): New macro.
6362 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6363 the layout on LynxOS-178.
6364 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6365 handle floating point registers that are not supported by
6366 LynxOS-178.
6367
1a34f210
TT
63682018-05-10 Tom Tromey <tom@tromey.com>
6369
6370 * configure: Rebuild.
6371
190852c8
JB
63722018-05-10 Joel Brobecker <brobecker@adacore.com>
6373
6374 PR server/23158:
6375 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6376 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6377 Use it to set the expedite_regs field in the given tdesc.
6378 * x86-tdesc.h: New file.
6379 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6380 Adjust following the addition of the new expedite_regs parameter
6381 to init_target_desc.
6382 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6383 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6384 (i386_linux_read_description, amd64_linux_read_description):
6385 Adjust following the addition of the new expedite_regs parameter
6386 to init_target_desc.
6387 * lynx-i386-low.c: #include "x86-tdesc.h".
6388 (lynx_i386_arch_setup): Adjust following the addition of the new
6389 expedite_regs parameter to init_target_desc.
6390 * nto-x86-low.c: #include "x86-tdesc.h".
6391 (nto_x86_arch_setup): Adjust following the addition of the new
6392 expedite_regs parameter to init_target_desc.
6393 * win32-i386-low.c: #include "x86-tdesc.h".
6394 (i386_arch_setup): Adjust following the addition of the new
6395 expedite_regs parameter to init_target_desc.
6396
7dbac825
JB
63972018-05-10 Joel Brobecker <brobecker@adacore.com>
6398
6399 PR server/23158:
6400 * win32-low.c (win32_create_inferior): Add call to my_wait
6401 setting last_status global.
6402
906994d9
JB
64032018-05-10 Joel Brobecker <brobecker@adacore.com>
6404
6405 PR server/23158:
6406 * win32-low.c (create_process): Only call gdb_tilde_expand if
6407 inferior_cwd is not NULL.
6408
8ee22052
AB
64092018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6410
6411 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6412 registers to the cache if their values have changed.
6413 (i387_xsave_to_cache): Provide default values for x87 control
6414 registers when these features are available, but disabled.
6415 * regcache.c (supply_register_by_name_zeroed): New function.
6416 * regcache.h (supply_register_by_name_zeroed): Declare new
6417 function.
6418
aff689d3
TT
64192018-05-07 Tom Tromey <tom@tromey.com>
6420
6421 * configure: Rebuild.
6422
85e26832
TT
64232018-05-04 Tom Tromey <tom@tromey.com>
6424
6425 * configure: Rebuild.
6426
a3b60e45
JK
64272018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6428 Pedro Alves <palves@redhat.com>
6429
6430 * linux-aarch64-low.c (aarch64_stopped_data_address):
6431 Likewise.
6432
632e107b
TT
64332018-04-27 Tom Tromey <tom@tromey.com>
6434
6435 * configure: Rebuild.
6436
458412c3
TT
64372018-04-23 Tom Tromey <tom@tromey.com>
6438
6439 * configure: Rebuild.
6440
f31c089e
SM
64412018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6442
6443 * Makefile.in (depcomp): Add "..".
6444 (all_deps_files): New and use it.
6445
b319b098
AH
64462018-04-18 Alan Hayward <alan.hayward@arm.com>
6447
6448 * configure.srv (aarch64*-*-linux*): Don't include xml.
6449 (i[34567]86-*-cygwin*): Likewise.
6450 (i[34567]86-*-linux*): Likewise.
6451 (i[34567]86-*-lynxos*): Likewise.
6452 (i[34567]86-*-mingw32ce*): Likewise.
6453 (i[34567]86-*-mingw*): Likewise.
6454 (i[34567]86-*-nto*): Likewise.
6455 (tic6x-*-uclinux): Likewise.
6456 (x86_64-*-linux*): Likewise.
6457 (x86_64-*-mingw*): Likewise.
6458 (x86_64-*-cygwin*): Likewise.
6459
3b74854b
AH
64602018-04-18 Alan Hayward <alan.hayward@arm.com>
6461
6462 * tdesc.c: Remove xml parameter.
6463
e98577a9
AH
64642018-04-18 Alan Hayward <alan.hayward@arm.com>
6465
6466 * server.c (get_features_xml): Remove cast.
6467 * tdesc.c (void target_desc::accept): Fill in function.
6468 (tdesc_get_features_xml): Remove old xml creation.
6469 (print_xml_feature::visit_pre): Add xml vistor.
6470 * tdesc.h (struct target_desc): Make xmltarget mutable.
6471 (tdesc_get_features_xml): Remove declaration.
6472
d278f585
AH
64732018-04-18 Alan Hayward <alan.hayward@arm.com>
6474
6475 * tdesc.c (tdesc_architecture_name): Add new function.
6476 (tdesc_osabi_name): Likewise.
6477 (tdesc_get_features_xml): Use new functions.
6478
eee8a18d
AH
64792018-04-18 Alan Hayward <alan.hayward@arm.com>
6480
6481 * tdesc.c (tdesc_create_flags): Remove.
6482 (tdesc_add_flag): Likewise.
6483 (tdesc_named_type): Likewise.
6484 (tdesc_create_union): Likewise.
6485 (tdesc_create_struct): Likewise.
6486 (tdesc_create_vector): Likewise.
6487 (tdesc_add_bitfield): Likewise.
6488 (tdesc_add_field): Likewise.
6489 (tdesc_set_struct_size): Likewise.
6490
82ec9bc7
AH
64912018-04-18 Alan Hayward <alan.hayward@arm.com>
6492
6493 * tdesc.c (~target_desc): Remove implictly deleted items.
6494 (init_target_desc): Iterate all features.
6495 (tdesc_get_features_xml): Use vector.
6496 (tdesc_create_feature): Create feature.
6497 * tdesc.h (tdesc_feature) Remove
6498 (target_desc): Add features.
6499
ea3e7d71
AH
65002018-04-18 Alan Hayward <alan.hayward@arm.com>
6501
6502 * Makefile.in: Add common/tdesc.c
6503 * tdesc.c (init_target_desc): init all reg_defs from register
6504 vector.
6505 (tdesc_create_reg): Create tdesc_reg.
6506 * tdesc.h (tdesc_feature): Add register vector.
6507
17d08cd4
SM
65082018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6509
6510 * tdesc.h (struct target_desc) <features>: Change type to
6511 std::vector<std::string>.
6512 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6513 changes.
6514 (tdesc_get_features_xml): Likewise.
6515 (tdesc_create_feature): Likewise.
6516
5cd3e386
AH
65172018-03-26 Alan Hayward <alan.hayward@arm.com>
6518
6519 * regcache.c (find_register_by_number): Return a ref.
6520 (find_regno): Use references.
6521 (register_size): Likewise.
6522 (register_data): Likewise.
6523 * tdesc.c (target_desc::~target_desc): Remove free calls.
6524 (target_desc::operator==): Use std::vector compare.
6525 (init_target_desc): Use reference.
6526 (tdesc_create_reg): Use reg constructors.
6527 * tdesc.h (struct target_desc): Replace pointer with object.
6528
dff7492c
AH
65292018-03-23 Alan Hayward <alan.hayward@arm.com>
6530
6531 * regcache.c (find_register_by_number): Make static.
6532 (find_regno): Use find_register_by_number
6533 * regcache.h (struct reg): Remove declaration.
6534
d80e5242
AH
65352018-03-23 Alan Hayward <alan.hayward@arm.com>
6536
6537 * tdesc.c (target_desc::~target_desc): Move to here.
6538 (target_desc::operator==): Likewise.
6539 * tdesc.h (target_desc::~target_desc): Move from here.
6540 (target_desc::operator==): Likewise.
6541
f69c5afb
AA
65422018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6543
6544 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6545
ce29f843
AA
65462018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6547
6548 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6549 S390_TDESC_GS.
6550 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6551 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6552 and init_registers_s390_gs_linux64.
6553
c49bd90b
AA
65542018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6555
6556 * linux-s390-low.c (s390_fill_gs): Remove function.
6557 (s390_fill_gsbc): Remove function.
6558 (s390_regsets): Set fill functions for the guarded storage regsets
6559 to NULL.
6560
7edb9bd3
AA
65612018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6562
6563 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6564 the word size. Add comment.
6565 (s390_get_wordsize): New function.
6566 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6567 pswm with it. Instead, use s390_get_wordsize to determine the
6568 word size first and derive the correct tdesc from that directly.
6569
39be3c7e
SM
65702018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6571
6572 * Makefile.in: Include silent-rules.mk.
6573 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6574 (COMPILE): Add ECHO_CXX.
6575 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6576 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6577 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6578 (version-generated.c): Add ECHO_GEN.
6579 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6580 (IPAGENT_COMPILE): Add ECHO_CXX.
6581 (%-generated.c): Add ECHO_REGDAT.
6582
3ae9ce5d
TT
65832018-03-14 Tom Tromey <tom@tromey.com>
6584
6585 PR cli/14977:
6586 * ax.c (ax_printf): Special case for NULL.
6587
e6a58aa8
SM
65882018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6589
6590 * linux-low.c (linux_qxfer_libraries_svr4): Use
6591 xml_escape_text_append.
6592
f6e8a41e
SM
65932018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6594
6595 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6596
b9671caf
SM
65972018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6598
6599 * server.c (handle_general_set): Remove unnecessary xstrdup.
6600
e80aaf61
SM
66012018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6602
6603 * server.c (parse_debug_format_options): Adjust to
6604 delim_string_to_char_ptr_vec changes.
6605 * thread-db.c (thread_db_load_search): Adjust to
6606 dirnames_to_char_ptr_vec changes.
6607
b1223e78
MM
66082018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6609
6610 * target.h (target_enable_btrace, target_disable_btrace)
6611 (target_read_btrace, target_read_btrace_conf): Turn macro into
6612 inline function. Throw error if target method is not defined.
6613 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6614 check for btrace target method. Be prepared to handle exceptions
6615 from btrace target methods.
6616
81561546
SDJ
66172018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6618
6619 * server.c (captured_main): Change order of error message printed
6620 when the current working directory cannot be found.
6621
25e3c82c
SDJ
66222018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6623
6624 * server.c: Include "filenames.h" and "pathstuff.h".
6625 (program_name): Delete variable.
6626 (program_path): New anonymous class.
6627 (get_exec_wrapper): Use "program_path" instead of
6628 "program_name".
6629 (handle_v_run): Likewise.
6630 (captured_main): Likewise.
6631 (process_serial_event): Likewise.
6632
b4987c95
SDJ
66332018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6634
6635 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6636 (OBJS): Add "pathstuff.o".
6637 * server.c (current_directory): New global variable.
6638 (captured_main): Initialize "current_directory".
6639
f46cd62a
AH
66402018-02-26 Alan Hayward <alan.hayward@arm.com>
6641
6642 * tdesc.c: Use common/tdesc.h.
6643 * tdesc.h: Likewise.
6644
a543c5ca
AH
66452018-02-20 Alan Hayward <alan.hayward@arm.com>
6646 Simon Marchi <simon.marchi@ericsson.com>
6647
6648 * Makefile.in: Switch order of make rules.
6649
b5884fa7
AH
66502018-02-19 Alan Hayward <alan.hayward@arm.com>
6651
6652 * Makefile.in: Add common directory in build.
6653 * configure.ac: Add common reference.
6654 * configure: Regenerate.
6655
de6242d3
MM
66562018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6657
6658 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6659 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6660 * spu-low.c (spu_target_ops): Likewise.
6661 * win32-low.c (win32_target_ops): Likewise.
6662 * server.c (supported_btrace_packets): Report packets unconditionally.
6663 * target.h (target_ops) <supports_btrace>: Remove.
6664 (target_supports_btrace): Remove.
6665
9ee23a85
MM
66662018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6667
6668 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6669 (handle_btrace_disable): Change return type to void. Use exceptions
6670 to report errors.
6671 (handle_btrace_general_set): Catch exception and copy message to
6672 return message.
6673
8ce47547
TT
66742018-02-08 Tom Tromey <tom@tromey.com>
6675
6676 * linux-low.c (install_software_single_step_breakpoints): Use
6677 make_scoped_restore.
6678 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6679 (do_restore_current_thread_cleanup): Remove.
6680 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6681 declare.
6682
45dd3607
TT
66832018-02-08 Tom Tromey <tom@tromey.com>
6684
6685 * mem-break.c (set_raw_breakpoint_at): Use
6686 gdb::unique_xmalloc_ptr.
6687
e671cd59
PA
66882018-01-30 Pedro Alves <palves@redhat.com>
6689
6690 PR gdb/13211
6691 * target.c (target_terminal::terminal_state): Rename to ...
6692 (target_terminal::m_terminal_state): ... this.
6693
a0aad537
JC
66942018-01-19 James Clarke <jrtc27@jrtc27.com>
6695
6696 * linux-low.c (handle_extended_wait): Surround call to
6697 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6698
4d9b86e1
SM
66992018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6700
6701 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6702 linux_ptrace_attach_fail_reason_string now returning an
6703 std::string.
6704 (linux_attach): Likewise.
6705 * thread-db.c (attach_thread): Likewise.
6706
f517c180
EA
67072018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6708
6709 PR gdb/21559
6710 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6711 checking for fs_base/gs_base fields in struct user_regs_struct.
6712 * configure: Regenerate.
6713
9a70f35c
YQ
67142018-01-16 Yao Qi <yao.qi@linaro.org>
6715
6716 PR gdb/18749
6717 * linux-low.c (fetch_register): Call supply_register instead of
6718 error.
6719
605fd3c6
YQ
67202018-01-08 Yao Qi <yao.qi@linaro.org>
6721 Simon Marchi <simon.marchi@ericsson.com>
6722
6723 * Makefile.in (OBS): Remove selftest.o.
6724 * configure.ac: Set srv_selftest_objs if $development is true.
6725 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6726 * configure: Re-generated.
6727 * server.c (captured_main): Wrap variable selftest_filter with
6728 GDB_SELF_TEST.
6729
2cc05030
SM
67302018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6731
6732 * server.c (parse_debug_format_options): Return std::string.
6733 (handle_monitor_command, captured_main): Adjust.
6734
e379cee6
PA
67352018-01-05 Pedro Alves <palves@redhat.com>
6736
6737 PR gdb/18653
6738 * server.c (captured_main): Pass quiet=false to
6739 save_original_signals_state.
6740
82e1e79a
JB
67412018-01-01 Joel Brobecker <brobecker@adacore.com>
6742
6743 * gdbreplay.c (gdbreplay_version): Update copyright year in
6744 version message.
6745 * server.c (gdbserver_version): Likewise.
6746
8e481c3b
TT
67472017-12-08 Tom Tromey <tom@tromey.com>
6748
6749 * ax.c (ax_printf): Update.
6750
a8806230
YQ
67512017-12-07 Yao Qi <yao.qi@linaro.org>
6752
6753 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6754 aarch64_linux_read_description.
6755 * linux-amd64-ipa.c (idx2mask): New array.
6756 (get_ipa_tdesc): Move idx2mask out.
6757 (initialize_low_tracepoint): Initialize target descriptions.
6758 * linux-i386-ipa.c (idx2mask): New array.
6759 (get_ipa_tdesc): Move idx2mask out.
6760 (initialize_low_tracepoint): Initialize target descriptions.
6761
d4a0e8b5
SM
67622017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6763
6764 * tdesc.c (struct tdesc_type): Change return type.
6765 (tdesc_add_flag): Change parameter type.
6766 (tdesc_add_bitfield): Likewise.
6767 (tdesc_add_field): Likewise.
6768 (tdesc_set_struct_size): Likewise.
6769
798a7429
SM
67702017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6771
6772 * regcache.c (registers_to_string): Remove unused variable.
6773
c0e15c9b
SM
67742017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6775
6776 * inferiors.c (for_each_inferior_with_data): Remove.
6777 * inferiors.h (for_each_inferior_with_data): Remove.
6778 * server.c (handle_qxfer_threads_worker): Change parameter type.
6779 (handle_qxfer_threads_proper): Use for_each_thread.
6780
f0045347
SM
67812017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6782
6783 * inferiors.c (for_each_inferior): Remove.
6784 (clear_inferiors): Use for_each_thread.
6785 * inferiors.h (for_each_inferior): Remove.
6786 * linux-low.c (linux_wait_for_event_filtered): Use
6787 for_each_thread.
6788 (linux_stabilize_threads): Likewise.
6789 * regcache.c (regcache_release): Likewise.
6790 * server.c (gdb_wants_all_threads_stopped): Likewise.
6791 (clear_pending_status_callback): Remove.
6792 (handle_status): Use for_each_thread.
6793 (captured_main): Likewise.
6794 * win32-low.c (child_init_thread_list): Likewise.
6795 (win32_clear_inferiors): Likewise.
6796 (fake_breakpoint_event): Likewise.
6797
9521758b
SM
67982017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6799
6800 * inferiors.h (find_inferior): Remove.
6801 * inferiors.c (find_inferior): Remove.
6802
8f86d7aa
SM
68032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6804
6805 * linux-low.c (resume_status_pending_p): Update comment.
6806 (need_step_over_p): Update comment.
6807
e2b44075
SM
68082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6809
6810 * linux-low.c (proceed_one_lwp): Return void, change parameter
6811 type.
6812 (unsuspend_and_proceed_one_lwp): Likewise.
6813 (proceed_all_lwps): Use for_each_thread.
6814 (unstop_all_lwps): Likewise.
6815
c80825ff
SM
68162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6817
6818 * linux-low.c (linux_resume_one_thread): Return void, take
6819 parameter directly.
6820 (linux_resume): Use for_each_thread.
6821
df3e4dbe
SM
68222017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6823
6824 * linux-low.c (send_sigstop_callback): Return void, change
6825 parameter type. Rename to...
6826 (send_sigstop): ... this.
6827 (suspend_and_send_sigstop_callback): Return void, change parameter
6828 type. Rename to...
6829 (suspend_and_send_sigstop): ... this.
6830 (stop_all_lwps): Use for_each_thread.
6831
5a6b0a41
SM
68322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6833
6834 * linux-low.c (lwp_running): Return bool, remove unused
6835 argument.
6836 (linux_stabilize_threads): Use find_thread.
6837
39a64da5
SM
68382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6839
6840 * linux-low.c (select_singlestep_lwp_callback): Remove.
6841 (count_events_callback): Remove.
6842 (select_event_lwp_callback): Remove.
6843 (select_event_lwp): Use find_thread/for_each_thread.
6844
a1385b7b
SM
68452017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6846
6847 * linux-low.c (not_stopped_callback): Return bool, take filter
6848 argument directly.
6849 (linux_wait_for_event_filtered): Use find_thread.
6850 (linux_wait_1): Likewise.
6851
454296a2
SM
68522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6853
6854 * linux-low.c (same_lwp): Remove.
6855 (find_lwp_pid): Use find_thread.
6856
6b2a85da
SM
68572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6858
6859 * linux-low.c (delete_lwp_callback): Remove.
6860 (linux_mourn): Use for_each_thread.
6861
798a38e8
SM
68622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6863
6864 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6865 args parameter, don't check for pid.
6866 (linux_detach): Use for_each_thread.
6867
e4eb0dec
SM
68682017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6869
6870 * linux-low.c (struct counter): Remove.
6871 (second_thread_of_pid_p): Remove.
6872 (last_thread_of_process_p): Use find_thread.
6873
83e1b6c1
SM
68742017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6875
6876 * inferiors.c (find_inferior_in_random): Remove.
6877 * inferiors.h (find_inferior_in_random): Remove.
6878 * linux-low.c (status_pending_p_callback): Return bool, accept
6879 parameter ptid directly.
6880 (linux_wait_for_event_filtered): Use find_thread_in_random.
6881 (linux_wait_1): Likewise.
6882
8dc7b443
SM
68832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6884
6885 * inferiors.c (find_inferior_id): Remove.
6886 (find_thread_ptid): Move implemention from find_inferior_id to
6887 here.
6888 * inferiors.h (find_inferior_id): Remove.
6889 * server.c (handle_status): Use find_thread_ptid.
6890 (process_serial_event): Likewise.
6891 * thread-db.c (find_one_thread): Likewise.
6892 (thread_db_thread_handle): Likewise.
6893 * win32-low.c (thread_rec): Likewise.
6894 (child_delete_thread): Likewise.
6895 (win32_thread_alive): Likewise.
6896 (get_child_debug_event): Likewise.
6897
da25033c
SM
68982017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6899
6900 * linux-mips-low.c (update_watch_registers_callback): Return
6901 void, remove pid_p parameter, don't check for pid.
6902 (mips_insert_point, mips_remove_point): Use for_each_thread.
6903
c91bb56b
SM
69042017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6905
6906 * lynx.low (lynx_delete_thread_callback): Remove.
6907 (lynx_mourn): Use for_each_thread.
6908
634a3254
SM
69092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6910
6911 * regcache.c (regcache_invalidate_one): Remove.
6912 (regcache_invalidate_pid): use for_each_thread.
6913
41272101
TT
69142017-11-26 Tom Tromey <tom@tromey.com>
6915
6916 * linux-low.c (linux_create_inferior): Update.
6917
f5291a6f
UW
69182017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6919
6920 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6921
6654d750
AH
69222017-11-24 Alan Hayward <alan.hayward@arm.com>
6923
6924 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6925 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6926 * linux-aarch64-tdesc-selftest.c: New file.
6927 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6928
69292017-11-24 Alan Hayward <alan.hayward@arm.com>
6930
6931 * configure.srv: Add new file.
6932 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6933 * linux-aarch64-tdesc-selftest.c: New file.
6934 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6935
49bdb7ee
AH
69362017-11-24 Alan Hayward <alan.hayward@arm.com>
6937
6938 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6939 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6940 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6941
d6d7ce56
AH
69422017-11-24 Alan Hayward <alan.hayward@arm.com>
6943
6944 * configure.srv: Add new files.
6945 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6946 aarch64_linux_read_description.
6947 * linux-aarch64-low.c (aarch64_linux_read_description):
6948 Merge with aarch64_arch_setup.
6949 (aarch64_arch_setup): Call aarch64_linux_read_description.
6950 * linux-aarch64-tdesc.c: New file.
6951 * linux-aarch64-tdesc.h: New file.
6952
506fe5f4
YQ
69532017-11-24 Yao Qi <yao.qi@linaro.org>
6954
6955 * configure.srv: Set $srv_regobj for tic6x-linux.
6956 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6957 (tic6x_read_description): Move some code to tic6x_arch_setup.
6958 (tic6x_tdesc_test): New function.
6959 (initialize_low_arch): Call selftests::register_test.
6960
29f9a567
YQ
69612017-11-22 Yao Qi <yao.qi@linaro.org>
6962
6963 * remote-utils.c (prepare_resume_reply): Use memcpy.
6964
578290ec
SM
69652017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6966
6967 * linux-low.c (kill_one_lwp_callback): Return void, take
6968 argument directly, don't filter on pid.
6969 (linux_kill): Use for_each_thread.
6970
eca55aec
SM
69712017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6972
6973 * linux-low.c (need_step_over_p): Return bool, remove dummy
6974 argument.
6975 (linux_resume, proceed_all_lwps): Use find_thread.
6976
25c28b4d
SM
69772017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6978
6979 * linux-low.c (resume_status_pending_p): Return bool, remove
6980 flag_p argument.
6981 (linux_resume): Use find_thread.
6982
5fdda392
SM
69832017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6984
6985 * linux-low.c (struct thread_resume_array): Remove.
6986 (linux_set_resume_request): Return void, take arguments
6987 directly.
6988 (linux_resume): Use for_each_thread.
6989
fcb056a5
SM
69902017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6991
6992 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6993 return bool, remove data argument.
6994 (linux_stabilize_threads): Use find_thread.
6995
139720c5
SM
69962017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6997
6998 * linux-low.c (unsuspend_one_lwp): Remove.
6999 (unsuspend_all_lwps): Use for_each_thread, inline code from
7000 unsuspend_one_lwp.
7001
6d1e5673
SM
70022017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7003
7004 * gdbthread.h (find_thread): Add overload with ptid_t filter.
7005 * linux-low.c (struct iterate_over_lwps_args): Remove.
7006 (iterate_over_lwps_filter): Remove.
7007 (iterate_over_lwps): Use find_thread.
7008
bbf550d5
SM
70092017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7010
7011 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
7012 (linux_handle_new_gdb_connection): Use for_each_thread, inline
7013 code from reset_lwp_ptrace_options_callback.
7014
00192f77
SM
70152017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7016
7017 * linux-arm-low.c (struct update_registers_data): Remove.
7018 (update_registers_callback): Return void, take arguments
7019 directly, don't check thread's pid.
7020 (arm_insert_point, arm_remove_point): Use for_each_thread.
7021
2bee2b6c
SM
70222017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7023
7024 * win32-low.c (continue_one_thread): Return void, take argument
7025 directly.
7026 (child_continue): Use for_each_thread.
7027
0b360f19
SM
70282017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7029
7030 * win32-i386-low.c (update_debug_registers_callback): Rename
7031 to ...
7032 (update_debug_registers): ... this, return void, remove pid_p arg.
7033 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
7034
f27866ba
SM
70352017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7036
7037 * inferiors.h (struct process_info): Add constructor, initialize
7038 fields..
7039 <syscalls_to_catch>: Change type to std::vector<int>.
7040 * inferiors.c (add_process): Allocate process_info with new.
7041 (remove_process): Free process_info with delete.
7042 * linux-low.c (handle_extended_wait): Adjust.
7043 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
7044 * server.c (handle_general_set): Adjust.
7045
e849ea89
PA
70462017-11-16 Pedro Alves <palves@redhat.com>
7047
7048 * remote-utils.c (remote_close): Block SIGIO signals instead of
7049 uninstalling the SIGIO handler.
7050
1d0aa65c
AH
70512017-11-16 Alan Hayward <alan.hayward@arm.com>
7052
7053 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
7054
3491a34c
YQ
70552017-11-16 Yao Qi <yao.qi@linaro.org>
7056
7057 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
7058 (tic6x_store_gregset): Likewise.
7059 (tic6x_usrregs_info): Move it up.
7060
a602f924
AH
70612017-11-15 Alan Hayward <alan.hayward@arm.com>
7062
7063 * Makefile.in: Update arch rules.
7064 * configure.srv: Explicitly mark arch/ files.
7065
5616b6c3
AS
70662017-11-13 Andreas Schwab <schwab@suse.de>
7067
7068 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7069 function.
7070 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7071
d1928160
PA
70722017-11-06 Pedro Alves <palves@redhat.com>
7073
7074 * config.in, configure: Regenerate.
7075
bac608e7
SM
70762017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7077
7078 * target.c (struct thread_search): Remove.
7079 (thread_search_callback): Remove.
7080 (prepare_to_access_memory): Use for_each_thread instead of
7081 find_inferior. Inline code from thread_search_callback.
7082
eaddb425
SM
70832017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7084
7085 * server.c (struct visit_actioned_threads_data): Remove.
7086 (visit_actioned_threads): Change prototype to take arguments
7087 directly.
7088 (resume): Use find_thread instead of find_inferior.
7089
99078d34
SM
70902017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7091
7092 * server.c (queue_stop_reply_callback): Change prototype, return
7093 void.
7094 (find_status_pending_thread_callback): Remove.
7095 (handle_status): Replace find_inferior with find_thread and
7096 for_each_thread.
7097
cc628f3d
AH
70982017-10-25 Alan Hayward <alan.hayward@arm.com>
7099
7100 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7101 with REGNO.
7102 (aarch64_store_gregset): Likewise.
7103 (aarch64_fill_fpregset): Likewise.
7104 (aarch64_store_fpregset): Likewise.
7105
4d3bb80e
SM
71062017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7107
7108 * gdbthread.h (find_thread, for_each_thread): New functions.
7109 * inferiors.c (thread_of_pid): Remove.
7110 (find_any_thread_of_pid): Use find_thread.
7111 * linux-low.c (num_lwps): Use for_each_thread.
7112
7a7cdfa0
YQ
71132017-10-17 Yao Qi <yao.qi@linaro.org>
7114
7115 * Makefile.in: Remove one rule.
7116 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7117
e675d170
YQ
71182017-10-17 Yao Qi <yao.qi@linaro.org>
7119
7120 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7121 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7122
7eb4e0f9
YQ
71232017-10-17 Yao Qi <yao.qi@linaro.org>
7124
7125 * configure.srv: Rename arm.o with arch/arm.o.
7126
60d6cfc9
YQ
71272017-10-17 Yao Qi <yao.qi@linaro.org>
7128
7129 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7130 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7131 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7132 (arch-i386.o, arch-amd64.o): Remove rules.
7133 (arch/%.o): New rule.
7134 Update POSTCOMPILE and COMPILE.pre.
7135 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7136 * configure: Re-generated.
7137 * configure.srv: Replace arch-i386.o with arch/i386.o.
7138 Replace arch-amd64.o with arch/amd64.o.
7139
5bfda255
YQ
71402017-10-16 Yao Qi <yao.qi@linaro.org>
7141
7142 * configure: Regenerated.
7143
9c80ecd6
SM
71442017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7145
7146 * inferiors.h: (struct inferior_list): Remove.
7147 (struct inferior_list_entry); Remove.
7148 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7149 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7150 get_first_inferior): Remove.
7151 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7152 find_inferior_id, find_inferior_in_random): Change signature.
7153 * inferiors.c (all_threads): Change type to
7154 std::list<thread_info *>.
7155 (get_thread): Remove macro.
7156 (find_inferior, find_inferior_id): Change signature, implement
7157 using find_thread.
7158 (find_inferior_in_random): Change signature, implement using
7159 find_thread_in_random.
7160 (for_each_inferior, for_each_inferior_with_data): Change
7161 signature, implement using for_each_thread.
7162 (add_inferior_to_list, remove_inferior): Remove.
7163 (add_thread, get_first_thread, thread_of_pid,
7164 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7165 (get_first_inferior, one_inferior_p, clear_inferior_list):
7166 Remove.
7167 (clear_inferiors, get_thread_process): Update.
7168 * gdbthread.h: Include <list>.
7169 (struct thread_info) <entry>: Remove field.
7170 <id>: New field.
7171 (all_threads): Change type to std::list<thread_info *>.
7172 (get_first_inferior): Add doc.
7173 (find_thread, for_each_thread, find_thread_in_random): New
7174 functions.
7175 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7176 * linux-arm-low.c (update_registers_callback): Update.
7177 * linux-low.c (second_thread_of_pid_p): Update.
7178 (kill_one_lwp_callback, linux_detach_lwp_callback,
7179 delete_lwp_callback, status_pending_p_callback, same_lwp,
7180 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7181 iterate_over_lwps, not_stopped_callback,
7182 resume_stopped_resumed_lwps, count_events_callback,
7183 select_singlestep_lwp_callback, select_event_lwp_callback,
7184 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7185 suspend_and_send_sigstop_callback, wait_for_sigstop,
7186 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7187 lwp_running, linux_set_resume_request, resume_status_pending_p,
7188 need_step_over_p, start_step_over, linux_resume_one_thread,
7189 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7190 reset_lwp_ptrace_options_callback): Update.
7191 * linux-mips-low.c (update_watch_registers_callback): Update.
7192 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7193 Update.
7194 (free_register_cache_thread_one): Remove.
7195 (regcache_release): Update.
7196 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7197 handle_qxfer_threads_worker): Update.
7198 (handle_query): Update, use list iterator.
7199 (visit_actioned_threads, handle_pending_status,
7200 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7201 clear_pending_status_callback, set_pending_status_callback,
7202 find_status_pending_thread_callback, handle_status,
7203 process_serial_event): Update.
7204 * target.c (thread_search_callback): Update.
7205 * thread-db.c (thread_db_get_tls_address): Update.
7206 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7207 Update.
7208 * win32-i386-low.c (update_debug_registers_callback): Update.
7209 * win32-low.c (delete_thread_info, child_delete_thread,
7210 continue_one_thread, suspend_one_thread,
7211 get_child_debug_event): Adjust.
7212
9179355e
SM
72132017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7214
7215 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7216 * inferiors.h: Include <list>.
7217 (struct process_info) <entry>: Remove field.
7218 <pid>: New field.
7219 (pid_of): Change macro to function.
7220 (ptid_of, lwpid_of): Remove macro.
7221 (all_processes): Change type to std::list<process_info *>.
7222 (ALL_PROCESSES): Remove macro.
7223 (for_each_process, find_process): New function.
7224 * inferiors.c (all_processes): Change type to
7225 std::list<process_info *>.
7226 (find_thread_process): Adjust.
7227 (add_process): Likewise.
7228 (remove_process): Likewise.
7229 (find_process_pid): Likewise.
7230 (get_first_process): Likewise.
7231 (started_inferior_callback): Remove.
7232 (have_started_inferiors_p): Adjust.
7233 (attached_inferior_callback): Remove.
7234 (have_attached_inferiors_p): Adjust.
7235 * linux-low.c (check_zombie_leaders): Likewise.
7236 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7237 (x86_linux_update_xmltarget): Adjust.
7238 * server.c (handle_query): Likewise.
7239 (gdb_reattached_process): Remove.
7240 (handle_status): Adjust.
7241 (kill_inferior_callback): Likewise.
7242 (detach_or_kill_inferior): Remove.
7243 (print_started_pid): Likewise.
7244 (print_attached_pid): Likewise.
7245 (detach_or_kill_for_exit): Update.
7246 (process_serial_event): Likewise.
7247 * linux-arm-low.c (arm_new_fork): Likewise.
7248
c9cb8905
SM
72492017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7250
7251 * dll.h: Include <list>.
7252 (struct dll_info): Add constructor.
7253 <entry>: Remove field.
7254 (all_dlls): Change type to std::list<dll_info>.
7255 * dll.c: Include <algorithm>.
7256 (get_dll): Remove macro.
7257 (all_dlls): Change type to std::list<dll_info *>.
7258 (free_one_dll): Remove.
7259 (match_dll): Likewise.
7260 (loaded_dll): Adjust.
7261 (unloaded_dll): Adjust to all_dlls type change, use
7262 std::find_if. Inline code from match_dll.
7263 (clear_dlls): Adjust to all_dlls type change.
7264 * server.c (emit_dll_description): Remove.
7265 (handle_qxfer_libraries): Adjust to all_dlls type change,
7266 integrate emit_dll_description's functionality.
7267
04ec7890
SM
72682017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7269
7270 * linux-low.h (struct linux_target_ops) <delete_process>: New
7271 field.
7272 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7273 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7274 (struct linux_target_ops): Add delete_process callback.
7275 * linux-arm-low.c (arm_delete_process): New.
7276 (struct linux_target_ops): Add delete_process callback.
7277 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7278 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7279 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7280 * linux-mips-low.c (mips_linux_delete_process): New.
7281 (struct linux_target_ops): Add delete_process callback.
7282 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7283 * linux-s390-low.c (struct linux_target_ops): Likewise.
7284 * linux-sh-low.c (struct linux_target_ops): Likewise.
7285 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7286 * linux-tile-low.c (struct linux_target_ops): Likewise.
7287 * linux-x86-low.c (x86_linux_delete_process): New.
7288 (struct linux_target_ops): Add delete_process callback.
7289 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7290
466eecee
SM
72912017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7292
7293 * linux-aarch64-low.c (the_low_target): Add thread delete
7294 callback.
7295 * linux-arm-low.c (arm_delete_thread): New function.
7296 (the_low_target): Add thread delete callback.
7297 * linux-bfin-low.c (the_low_target): Likewise.
7298 * linux-crisv32-low.c (the_low_target): Likewise.
7299 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7300 set.
7301 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7302 field.
7303 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7304 * linux-mips-low.c (mips_linux_delete_thread): New function.
7305 (the_low_target): Add thread delete callback.
7306 * linux-ppc-low.c (the_low_target): Likewise.
7307 * linux-s390-low.c (the_low_target): Likewise.
7308 * linux-sh-low.c (the_low_target): Likewise.
7309 * linux-tic6x-low.c (the_low_target): Likewise.
7310 * linux-tile-low.c (the_low_target): Likewise.
7311 * linux-x86-low.c (the_low_target): Likewise.
7312 * linux-xtensa-low.c (the_low_target): Likewise.
7313
b79f7801
YZ
73142017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7315
7316 * win32-low.c: Include "common-inferior.h".
7317
bc3b087d
SDJ
73182017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7319
7320 * inferiors.c (set_inferior_cwd): New function.
7321 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7322 (handle_query): Inform that QSetWorkingDir is supported.
7323 * win32-low.c (create_process): Pass the inferior's cwd to
7324 CreateProcess.
7325
d092c5a2
SDJ
73262017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7327
7328 * inferiors.c (current_inferior_cwd): New global variable.
7329 (get_inferior_cwd): New function.
7330 * inferiors.h (struct process_info) <cwd>: New field.
7331
7da0a886
SDJ
73322017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7333
7334 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7335 (OBS): Add gdb_tilde_expand.o.
7336
289a6840
SM
73372017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7338
7339 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7340 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7341
256642e8
PA
73422017-09-29 Pedro Alves <palves@redhat.com>
7343
7344 * ax.c (gdb_parse_agent_expr): Constify.
7345 * ax.h (gdb_parse_agent_expr): Constify.
7346 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7347 Constify.
7348 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7349 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7350 * remote-utils.h (read_ptid): Constify.
7351 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7352 (process_point_options, process_serial_event): Constify.
7353 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7354 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7355 (cmd_qtbuffer): Constify.
7356
5b9ca4d4
PA
73572017-09-29 Pedro Alves <palves@redhat.com>
7358
7359 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7360 fails.
7361
94c207e0
PA
73622017-09-29 Pedro Alves <palves@redhat.com>
7363
7364 * linux-low.c (handle_extended_wait): Pass parent thread instead
7365 of process to thread_db_notice_clone.
7366 * linux-low.h (thread_db_notice_clone): Replace parent process
7367 parameter with parent thread parameter.
7368 * thread-db.c (find_one_thread): Add comment.
7369 (thread_db_notice_clone): Replace parent process parameter with
7370 parent thread parameter. Temporarily switch to the parent thread.
7371
75352e28
SDJ
73722017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7373
7374 * gdbthread.h: Include "common-gdbthread.h".
7375 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7376 "if" when validating the ptid.
7377 * remote-utils.c: Include "gdbthread.h".
7378 (prepare_resume_reply): Use "switch_to_thread".
7379 * target.c (done_accessing_memory): Likewise.
7380
ad339634
AA
73812017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7382
7383 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7384 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7385 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7386 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7387 s390x-gs-linux64-ipa.o to ipa_obj.
7388 * linux-s390-low.c (HWCAP_S390_GS): New define.
7389 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7390 New functions.
7391 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7392 (s390_arch_setup): Check for guarded-storage support and choose
7393 appropriate tdesc.
7394 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7395 init_registers_s390x_gs_linux64.
7396 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7397 enum value.
7398 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7399 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7400
cc4d742f
SM
74012017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7402
7403 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7404
f6327dcb
KB
74052017-09-21 Kevin Buettner <kevinb@redhat.com>
7406
7407 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7408 (thread_db_thread_handle): Declare.
7409 * linux-low.c (linux_target_ops): Initialize thread_handle.
7410 * server.c (handle_qxfer_threads_worker): Add support for
7411 "handle" attribute.
7412 * target.h (struct target_ops): Add new function pointer,
7413 thread_handle.
7414 (target_thread_handle): Define.
7415 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7416 field in lwp.
7417 (thread_db_thread_handle): New function.
7418
86299109
KB
74192017-09-21 Kevin Buettner <kevinb@redhat.com>
7420
7421 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7422 * linux-low.h (thread_db_notice_clone): Declare.
7423 * thread-db.c (thread_db_notice_clone): New function.
7424
f557a88a
PA
74252017-09-21 Pedro Alves <palves@redhat.com>
7426
7427 * server.c (gdb_read_memory, handle_status, process_serial_event)
7428 (handle_serial_event, handle_target_event): Adjust to
7429 set_desired_thread prototype change.
7430 * target.c (set_desired_thread): Remove 'use_general' parameter
7431 and adjust.
7432 * target.h (set_desired_thread): Remove 'use_general' parameter.
7433
223ffa71
TT
74342017-09-20 Tom Tromey <tom@tromey.com>
7435
7436 * target.c (target_terminal::terminal_state): Define.
7437 (target_terminal::init): Rename from target_terminal_init.
7438 (target_terminal::inferior): Rename from
7439 target_terminal_inferior.
7440 (target_terminal::ours): Rename from target_terminal_ours.
7441 (target_terminal::ours_for_output, target_terminal::info): New.
7442
04fd3ba9
SM
74432017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7444
7445 * server.c (accumulate_file_name_length): Remove.
7446 (emit_dll_description): Adjust to std::string change.
7447 (handle_qxfer_libraries): Use std::string to hold document.
7448
5e187554
SM
74492017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7450
7451 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7452 return type of xml_escape_text.
7453 * server.c (emit_dll_description): Likewise.
7454
1526853e
SM
74552017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7456
7457 * server.c (captured_main): Accept argument for --selftest.
7458 Update run_tests call.
7459 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7460 when registering selftests.
7461
c4dfafab
SDJ
74622017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7463
7464 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7465 instead of "VEC" for "target_desc.reg_defs".
7466 (regcache_cpy): Likewise.
7467 (registers_to_string): Likewise.
7468 (registers_from_string): Likewise.
7469 (find_regno): Likewise.
7470 (supply_regblock): Likewise.
7471 (regcache_raw_read_unsigned): Likewise.
7472 * tdesc.c (init_target_desc): Likewise.
7473 (tdesc_create_reg): Likewise.
7474 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7475 (struct target_desc) <reg_defs>: Convert to "std::vector".
7476 (target_desc): Do not initialize "reg_defs".
7477 (~target_desc): Update code to use "std::vector" instead of "VEC"
7478 for "target_desc.reg_defs".
7479 (operator==): Likewise.
7480
124aceb4
SM
74812017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7482
7483 * inferiors.h (thread_to_gdb_id): Remove.
7484 * inferiors.c (thread_to_gdb_id): Remove.
7485 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7486 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7487 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7488 Likewise.
7489 * nto-low.c (nto_fetch_registers, nto_store_registers,
7490 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7491
96cde54f
SM
74922017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7493
7494 * inferiors.h (gdb_id_to_thread_id): Remove.
7495 * inferiors.c (gdb_id_to_thread_id): Remove.
7496 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7497 removal. Move pid declaration closer to where it's used.
7498
e8ca139e
SM
74992017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7500
7501 * server.c (handle_detach): New function.
7502 (process_serial_event): Move code out, call handle_detach.
7503
f8a4e119
SM
75042017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7505
7506 * server.c (require_running): Rename to ...
7507 (require_running_or_return): ... this ...
7508 (require_running_or_break): ... and this.
7509 (handle_query, process_serial_event): Adjust.
7510
0eb0a407
SM
75112017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7512
7513 * linux-low.c (linux_set_resume_request): Remove unused
7514 variables.
7515
785922a5
SM
75162017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7517
7518 * server.c (first_thread_of): Remove.
7519 (process_serial_event): Replace usage of first_thread_of with
7520 find_any_thread_of_pid.
7521 * tracepoint.c (same_process_p): Remove.
7522 (gdb_agent_about_to_close): Replace usage of same_process_p with
7523 find_any_thread_of_pid.
7524 * linux-x86-low.c (same_process_callback): Remove.
7525 (x86_arch_setup_process_callback): Replace usage of
7526 same_process_callback with find_any_thread_of_pid.
7527 * thread-db.c (any_thread_of): Remove.
7528 (switch_to_process): Replace usage of any_thread_of with
7529 find_any_thread_of_pid.
7530 * inferiors.c (thread_pid_matches_callback): Remove.
7531 (find_thread_process): Adjust to use find_any_thread_of_pid.
7532
a059f00c
SDJ
75332017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7534
7535 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7536 with "!VEC_empty".
a059f00c 7537
cc397f3a
SDJ
75382017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7539
7540 * linux-low.c (handle_extended_wait): Use
7541 "allocate_target_description" instead of "XNEW".
7542 * linux-x86-low.c (initialize_low_arch): Likewise.
7543
22916b07
YQ
75442017-09-05 Yao Qi <yao.qi@linaro.org>
7545
7546 * configure.srv (srv_i386_regobj): Remove.
7547 (srv_amd64_regobj): Remove.
7548 (srv_regobj): Set it to "" for x86 non-linux targets.
7549 * linux-x86-tdesc.c (i386_linux_read_description):
7550 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7551 (init_registers_i386): Remove the declaration.
7552 (tdesc_i386): Remove the declaration.
7553 (lynx_i386_arch_setup): Call i386_create_target_description.
7554 * nto-x86-low.c: Likewise.
7555 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7556 [!__x86_64__]: include arch/i386.h.
7557 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7558
38602d55
YQ
75592017-09-05 Yao Qi <yao.qi@linaro.org>
7560
7561 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7562 i386/amd64-XXX-linux from it.
7563
44b886ff
YQ
75642017-09-05 Yao Qi <yao.qi@linaro.org>
7565
7566 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7567 false.
7568 (ipa_amd64_linux_regobj): Remove.
7569 (ipa_x32_linux_regobj): Remove.
7570
b4570e4b
YQ
75712017-09-05 Yao Qi <yao.qi@linaro.org>
7572
7573 * Makefile.in (arch-amd64.o): New rule.
7574 * configure.srv: Append arch-amd64.o.
7575 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7576 (get_ipa_tdesc): Call amd64_linux_read_description.
7577 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7578 and init_registers_amd64_XXX.
7579 * linux-x86-low.c (x86_linux_read_description): Call
7580 amd64_linux_read_description.
7581 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7582 (initialize_low_arch): Don't call init_registers_x32_XXX and
7583 init_registers_amd64_XXX.
7584 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7585 and tdesc_amd64_XXX.
7586 [__x86_64__] (amd64_tdesc_test): New function.
7587 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7588 and init_registers_amd64_XXX.
7589 * linux-x86-tdesc.c: Include arch/amd64.h.
7590 (xcr0_to_tdesc_idx): New function.
7591 (i386_linux_read_description): New function.
7592 (amd64_get_ipa_tdesc_idx): New function.
7593 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7594 (amd64_get_ipa_tdesc): Declare.
7595
d1f28ea2
YQ
75962017-09-05 Yao Qi <yao.qi@linaro.org>
7597
7598 * configure.srv (srv_i386_linux_xmlfiles): Remove
7599 i386/i386-XXX-linux.xml from it.
7600
25a93583
YQ
76012017-09-05 Yao Qi <yao.qi@linaro.org>
7602
7603 * configure.srv: Set srv_i386_linux_regobj empty if $development
7604 is false.
7605 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7606 initialize_low_tdesc.
7607 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7608 with #if initialize_low_tdesc.
7609 * linux-x86-tdesc-selftest.c: New file.
7610 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7611
5f035c07
YQ
76122017-09-05 Yao Qi <yao.qi@linaro.org>
7613
7614 * Makefile.in (arch-i386.o): New rule.
7615 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7616 (x86_64-*-linux*): Likewise.
7617 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7618 include arch/i386.h.
7619 (i386_linux_read_description): Remove code and call
7620 i386_create_target_description.
7621 * tdesc.c (allocate_target_description): New function.
7622 * tdesc.h (set_tdesc_architecture): Remove declaration.
7623 (set_tdesc_osabi): Likewise.
7624
0abe8a89
YQ
76252017-09-05 Yao Qi <yao.qi@linaro.org>
7626
7627 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7628 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7629 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7630 .xmltarget.
7631 * server.c (get_features_xml): Call tdesc_get_features_xml.
7632 * tdesc.c (set_tdesc_architecture): New function.
7633 (set_tdesc_osabi): New function.
7634 (tdesc_get_features_xml): New function.
7635 (tdesc_create_feature): Add an argument.
7636 * tdesc.h (struct target_desc) <features>: New field.
7637 <arch, osabi>: New field.
7638 (~target_desc): xfree features, arch, and osabi.
7639 (target_desc::oerator==): Don't compare .xmltarget.
7640 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7641 (set_tdesc_osabi): Likewise.
7642 (tdesc_get_features_xml): Likewise.
7643
0a188386
YQ
76442017-09-05 Yao Qi <yao.qi@linaro.org>
7645
7646 * linux-x86-tdesc.c: Include selftest.h.
7647 (i386_tdesc_test): New function.
7648 (initialize_low_tdesc): Call selftests::register_test.
7649 * tdesc.h: Include regdef.h.
7650 (target_desc): Override operator == and !=.
7651
f49ff000
YQ
76522017-09-05 Yao Qi <yao.qi@linaro.org>
7653
7654 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7655 (ipa_obj): Likewise.
7656 * linux-i386-ipa.c: Include common/x86-xstate.h
7657 (get_ipa_tdesc): Call i386_linux_read_description.
7658 (initialize_low_tracepoint): Don't call init_registers_XXX
7659 functions, call initialize_low_tdesc instead.
7660 * linux-x86-low.c (x86_linux_read_description): Call
7661 i386_linux_read_description.
7662 (initialize_low_arch): Don't call init_registers_i386_XXX
7663 functions, call initialize_low_tdesc.
7664 * linux-x86-tdesc.c: New file.
7665 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7666 (i386_get_ipa_tdesc_idx): Declare.
7667 (i386_get_ipa_tdesc): Declare.
7668 (initialize_low_tdesc): Declare.
7669
2b68ef2f
YQ
76702017-09-05 Yao Qi <yao.qi@linaro.org>
7671
7672 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7673 instead of 0.
7674
f7000548
YQ
76752017-09-05 Yao Qi <yao.qi@linaro.org>
7676
7677 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7678 * regcache.c (get_thread_regcache): Use VEC_length.
7679 (init_register_cache): Likewise.
7680 (regcache_cpy): Likewise.
7681 (registers_to_string): Iterate reg_defs via VEC_iterate.
7682 (find_regno): Likewise.
7683 (find_register_by_number): Use VEC_index.
7684 (register_size): Call find_register_by_number.
7685 (register_data): Call find_register_by_number.
7686 (supply_regblock): Use VEC_length.
7687 (regcache_raw_read_unsigned): Likewise.
7688 * tdesc.c (init_target_desc): Iterate reg_defs via
7689 VEC_iterate.
7690 (default_description): Update initializer.
7691 (copy_target_description): Don't update field num_registers.
7692 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7693 <num_registers>: Remove.
7694
50a421ac
SM
76952017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7696
7697 * Makefile.in (.SECONDARY): Define target.
7698
23fdd69e
SM
76992017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7700
7701 * linux-low.c (linux_wait_1): Adjust.
7702 * server.c (queue_stop_reply_callback): Adjust.
7703
0a2dde4a
SDJ
77042017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7705
7706 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7707 QEnvironmentUnset and QEnvironmentReset packets.
7708 (handle_query): Inform remote that QEnvironmentHexEncoded,
7709 QEnvironmentUnset and QEnvironmentReset are supported.
7710
6afd337d
SM
77112017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7712
7713 * inferiors.h (inferior_target_data): Rename to ...
7714 (thread_target_data): ... this.
7715 (inferior_regcache_data): Rename to ...
7716 (thread_regcache_data): ... this.
7717 (set_inferior_regcache_data): Rename to ...
7718 (set_thread_regcache_data): ... this.
7719 * inferiors.c (inferior_target_data): Rename to ...
7720 (thread_target_data): ... this.
7721 (inferior_regcache_data): Rename to ...
7722 (thread_regcache_data): ... this.
7723 (set_inferior_regcache_data): Rename to ...
7724 (set_thread_regcache_data): ... this.
7725 (free_one_thread): Update.
7726 * linux-low.h (get_thread_lwp): Update.
7727 * regcache.c (get_thread_regcache): Update.
7728 (regcache_invalidate_thread): Update.
7729 (free_register_cache_thread): Update.
7730 * win32-i386-low.c (update_debug_registers_callback): Update.
7731 (win32_get_current_dr): Update.
7732 * win32-low.c (thread_rec): Update.
7733 (delete_thread_info): Update.
7734 (continue_one_thread): Update.
7735 (suspend_one_thread): Update.
7736
a160cc46
SM
77372017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7738
7739 * inferiors.c (set_inferior_target_data): Remove.
7740 * inferiors.h (set_inferior_target_data): Remove.
7741
6d580b63
YQ
77422017-08-18 Yao Qi <yao.qi@linaro.org>
7743
7744 * Makefile.in (OBS): Add selftest.o.
7745 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7746 * configure, config.in: Re-generated.
7747 * server.c: Include common/sefltest.h.
7748 (captured_main): Handle option --selftest.
7749
f5a29eb0
YQ
77502017-08-09 Yao Qi <yao.qi@linaro.org>
7751
7752 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7753 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7754 i386-avx-mpx.o and i386-mmx.o.
7755 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7756 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7757 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7758 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7759 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7760 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7761 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7762 i386/amd64-avx-mpx.xml.
7763
57757c2f
YQ
77642017-08-09 Yao Qi <yao.qi@linaro.org>
7765
7766 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7767 and x32-avx-avx512.o.
7768 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7769 i386/x32-avx-avx512.xml.
7770
229d26fc
SM
77712017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7772
7773 * tracepoint.h (enum class fast_tpoint_collect_result): New
7774 enumeration.
7775 (fast_tracepoint_collecting): Change return type to
7776 fast_tpoint_collect_result.
7777 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7778 * linux-low.h: Include tracepoint.h.
7779 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7780 fast_tpoint_collect_result.
7781 * linux-low.c (handle_tracepoints): Adjust.
7782 (linux_fast_tracepoint_collecting): Change return type to
7783 fast_tpoint_collect_result.
7784 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7785 linux_wait_1, stuck_in_jump_pad_callback,
7786 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7787 proceed_one_lwp): Adjust to type change.
7788
2e1e43e1
YQ
77892017-07-10 Yao Qi <yao.qi@linaro.org>
7790
7791 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7792
adc764e7
YQ
77932017-06-29 Yao Qi <yao.qi@linaro.org>
7794
7795 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7796 Remove.
7797 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7798
a206891a
SM
77992017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7800
7801 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7802
9a6c7d9c
SDJ
78032017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7804
7805 * linux-low.c (linux_create_inferior): Adjust code to access the
7806 environment information via 'gdb_environ' class.
7807 * lynx-low.c (lynx_create_inferior): Likewise.
7808 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7809 (get_environ): Return a pointer to 'our_environ'.
7810 (captured_main): Initialize 'our_environ'.
7811 * server.h (get_environ): Adjust prototype.
7812 * spu-low.c (spu_create_inferior): Adjust code to access the
7813 environment information via 'gdb_environ' class.
7814
ae3e2ccf
SM
78152017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7816
7817 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7818 usage of "register" keyword.
7819
3e019bdc
SM
78202017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7821
7822 * configure: Re-generate.
7823
8465943a
SM
78242017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7825
7826 * configure: Re-generate.
7827
cf0dd6f0
SM
78282017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7829
7830 * Makefile.in (COMPILE.pre): Add "-x c++".
7831
9845682b
SDJ
78322017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7833
7834 * fork-child.c: Conditionally include <signal.h>.
7835
aefd8b33
SDJ
78362017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7837
7838 * server.c (handle_general_set): Handle new packet
7839 "QStartupWithShell".
7840 (handle_query): Add "QStartupWithShell" to the list of supported
7841 packets.
7842 (gdbserver_usage): Add help text explaining the
7843 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7844 options.
7845 (captured_main): Recognize and act upon the presence of the new
7846 CLI options.
7847
2090129c
SDJ
78482017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7849 Pedro Alves <palves@redhat.com>
7850
7851 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7852 * configure: Regenerate.
7853 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7854 "fork-inferior.o".
7855 (i[34567]86-*-lynxos*): Likewise.
7856 (spu*-*-*): Likewise.
7857 * fork-child.c: New file.
7858 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7859 and "environ.h".
7860 (linux_ptrace_fun): New function.
7861 (linux_create_inferior): Adjust function prototype to reflect
7862 change on "target.h". Adjust function code to use
7863 "fork_inferior".
7864 (linux_request_interrupt): Delete "signal_pid".
7865 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7866 (lynx_ptrace_fun): New function.
7867 (lynx_create_inferior): Adjust function prototype to reflect
7868 change on "target.h". Adjust function code to use
7869 "fork_inferior".
7870 * nto-low.c (nto_create_inferior): Adjust function prototype and
7871 code to reflect change on "target.h". Update comments.
7872 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7873 "common-terminal.h" and "environ.h".
7874 (terminal_fd): Moved to fork-child.c.
7875 (old_foreground_pgrp): Likewise.
7876 (restore_old_foreground_pgrp): Likewise.
7877 (last_status): Make it global.
7878 (last_ptid): Likewise.
7879 (our_environ): New variable.
7880 (startup_with_shell): Likewise.
7881 (program_name): Likewise.
7882 (program_argv): Rename to...
7883 (program_args): ...this.
7884 (wrapper_argv): New variable.
7885 (start_inferior): Delete function.
7886 (get_exec_wrapper): New function.
7887 (get_exec_file): Likewise.
7888 (get_environ): Likewise.
7889 (prefork_hook): Likewise.
7890 (post_fork_inferior): Likewise.
7891 (postfork_hook): Likewise.
7892 (postfork_child_hook): Likewise.
7893 (handle_v_run): Update code to deal with arguments coming from the
7894 remote host. Update calls from "start_inferior" to
7895 "create_inferior".
7896 (captured_main): Likewise. Initialize environment variable. Call
7897 "have_job_control".
7898 * server.h (post_fork_inferior): New prototype.
7899 (get_environ): Likewise.
7900 (last_status): Declare.
7901 (last_ptid): Likewise.
7902 (signal_pid): Likewise.
7903 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7904 (spu_ptrace_fun): New function.
7905 (spu_create_inferior): Adjust function prototype to reflect change
7906 on "target.h". Adjust function code to use "fork_inferior".
7907 * target.c (target_terminal_init): New function.
7908 (target_terminal_inferior): Likewise.
7909 (target_terminal_ours): Likewise.
7910 * target.h: Include <vector>.
7911 (struct target_ops) <create_inferior>: Update prototype.
7912 (create_inferior): Update macro.
7913 * utils.c (gdb_flush_out_err): New function.
7914 * win32-low.c (win32_create_inferior): Adjust function prototype
7915 and code to reflect change on "target.h".
7916
043a4934
SDJ
79172017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7918
7919 * inferiors.c (switch_to_thread): New function.
7920
15652511
SDJ
79212017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7922
7923 * Makefile.in (SFILE): Add "common/job-control.c".
7924 (OBS): Add "job-control.o".
7925
21ea5acd
SDJ
79262017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7927
7928 * Makefile: Remove "@host_makefile_frag@".
7929
e13cb306
PA
79302017-05-05 Pedro Alves <palves@redhat.com>
7931
7932 * configure: Regenerate.
7933
c94fee56
SDJ
79342017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7935
7936 * configure: Regenerate.
7937
a0ff9e1a
SM
79382017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7939
7940 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7941 software_single_step change of return type to
7942 std::vector<CORE_ADDR>.
7943 * linux-low.c (install_software_single_step_breakpoints):
7944 Likewise.
7945 * linux-low.h (install_software_single_step_breakpoints):
7946 Likewise.
7947
be628ab8
SDJ
79482017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7949
7950 * remote-utils.c: Include "gdb_termios.h" instead of
7951 "terminal.h".
7952 * terminal.h: Delete file.
7953
7c5ded6a
SDJ
79542017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7955
7956 * server.c: Include <vector>.
7957 <program_argv, wrapper_argv>: Convert to std::vector.
7958 (start_inferior): Rewrite function to use C++.
7959 (handle_v_run): Likewise. Update code that calculates the argv
7960 based on the vRun packet; use C++.
7961 (captured_main): Likewise.
7962
436252de
SM
79632017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7964
7965 * server.c (handle_v_cont): Initialize thread_resume::thread
7966 with null_ptid.
7967
9bf2a700
PA
79682017-04-05 Pedro Alves <palves@redhat.com>
7969
7970 * configure: Regenerate.
7971
a121b7c1
PA
79722017-04-05 Pedro Alves <palves@redhat.com>
7973
7974 * gdbreplay.c (sync_error): Constify.
7975 * linux-x86-low.c (push_opcode): Constify.
7976
21c8a587
PA
79772017-04-05 Pedro Alves <palves@redhat.com>
7978
7979 * win32-low.c (get_child_debug_event)
7980 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7981 Report TARGET_WAITKIND_SPURIOUS instead.
7982
fb32b4f7
PA
79832017-04-05 Pedro Alves <palves@redhat.com>
7984
e79be6e5
SM
7985 * remote-utils.c (remote_prepare, remote_open): Constify.
7986 * remote-utils.h (remote_prepare, remote_open): Constify.
7987 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7988
65dd1e59
SM
79892017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7990
7991 * Makefile.in (clean): Clear .deps.
7992
8fa5b777
SM
79932017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7994
7995 * .gitignore: Remove generated files, replace with wildcard.
7996 * (clean): Replace removal of generated files with wildcard.
7997 (version.c): Replace with...
7998 (version-generated.c): ...this.
7999 (xml-builtin.c): Replace with...
8000 (xml-builtin-generated.c): ...this.
8001 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
8002 (%.c: *regformats*): Replace with...
8003 (%-generated.c: *regformats*): ...this.
8004
a12e714b
MF
80052017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8006
8007 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
8008 (xtensa_fill_gregset): Call collect_register_by_name for
8009 threadptr register.
8010 (xtensa_store_gregset): Call supply_register_by_name for
8011 threadptr register.
8012
1a09b50a
MF
80132017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8014
8015 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
8016 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
8017 (xtensa_store_gregset): Call supply_register for all registers in
8018 a0_regnum..a0_regnum + C0_NREGS range.
8019
1a01e7c6
SM
80202017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8021
8022 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
8023 (ax-ipa.o: ax.c): Remove.
8024 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
8025 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
8026 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
8027 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
8028 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
8029
36bc18a8
SM
80302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8031
8032 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
8033 (print-utils-ipa.o: ../common/print-utils.c): Remove.
8034 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
8035 (errors-ipa.o: ../common/errors.c): Remove.
8036 (format-ipa.o: ../common/format.c): Remove.
8037 (common-utils-ipa.o: ../common/common-utils.c): Remove.
8038
a8ebe3d5
SM
80392017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8040
8041 * Makefile.in (%-ipa.o: %.c): New rule.
8042 (tracepoint-ipa.o: tracepoint.c): Remove.
8043 (utils-ipa.o: utils.c): Remove.
8044 (remote-utils-ipa.o: remote-utils.c): Remove.
8045 (regcache-ipa.o: regcache.c): Remove.
8046 (i386-linux-ipa.o: i386-linux.c): Remove.
8047 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
8048 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
8049 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
8050 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
8051 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
8052 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
8053 (amd64-linux-ipa.o: amd64-linux.c): Remove.
8054 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
8055 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
8056 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
8057 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
8058 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
8059 (aarch64-ipa.o: aarch64.c): Remove.
8060 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8061 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8062 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8063 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8064 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8065 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8066 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8067 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8068 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8069 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8070 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8071 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8072 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8073 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8074 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8075 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8076 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8077 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8078 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8079 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8080 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8081 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8082 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8083 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8084 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8085 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8086 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8087 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8088 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8089 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8090 (tdesc-ipa.o: tdesc.c): Remove.
8091 (x32-linux-ipa.o: x32-linux.c): Remove.
8092 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8093 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8094
50cfacb7
SM
80952017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8096
8097 * Makefile.in (%.o: ../arch/%.c): New rule.
8098 (arm.o: ../arch/arm.c): Remove.
8099 (arm-linux.o: ../arch/arm-linux.c): Remove.
8100 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8101 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8102
c5a22423
SM
81032017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8104
8105 * Makefile.in (%.o: ../nat/%.c): New rule.
8106 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8107 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8108 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8109 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8110 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8111 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8112 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8113 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8114 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8115 (linux-personality.o: ../nat/linux-personality.c): Remove.
8116 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8117 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8118 (x86-linux.o: ../nat/x86-linux.c): Remove.
8119 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8120 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8121
6bda016b
SM
81222017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8123
8124 * Makefile.in (%.o: ../common/%.c): New rule.
8125 (signals.o: ../common/signals.c): Remove.
8126 (print-utils.o: ../common/print-utils.c): Remove.
8127 (rsp-low.o: ../common/rsp-low.c): Remove.
8128 (common-utils.o: ../common/common-utils.c): Remove.
8129 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8130 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8131 (vec.o: ../common/vec.c): Remove.
8132 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8133 (xml-utils.o: ../common/xml-utils.c): Remove.
8134 (ptid.o: ../common/ptid.c): Remove.
8135 (buffer.o: ../common/buffer.c): Remove.
8136 (format.o: ../common/format.c): Remove.
8137 (filestuff.o: ../common/filestuff.c): Remove.
8138 (agent.o: ../common/agent.c): Remove.
8139 (errors.o: ../common/errors.c): Remove.
8140 (environ.o: ../common/environ.c): Remove.
8141 (common-debug.o: ../common/common-debug.c): Remove.
8142 (cleanups.o: ../common/cleanups.c): Remove.
8143 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8144 (fileio.o: ../common/fileio.c): Remove.
8145 (common-regcache.o: ../common/common-regcache.c): Remove.
8146 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8147 (new-op.o: ../common/new-op.c): Remove.
8148 (btrace-common.o: ../common/btrace-common.c): Remove.
8149
21122961
SM
81502017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8151
8152 * Makefile.in (%.o: ../target/%.c): New rule.
8153 (waitstatus.o: ../target/waitstatus.c): Remove.
8154
c362e621
SM
81552017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8156
8157 * Makefile.in
8158 (%.c: ../regformats/%.dat,
8159 (%.c: ../regformats/arm/%.dat,
8160 (%.c: ../regformats/i386/%.dat,
8161 (%.c: ../regformats/rs6000/%.dat): New rules.
8162 (aarch64.c): Remove.
8163 (reg-arm.c): Remove.
8164 (arm-with-iwmmxt.c): Remove.
8165 (arm-with-vfpv2.c): Remove.
8166 (arm-with-vfpv3.c): Remove.
8167 (arm-with-neon.c): Remove.
8168 (reg-bfin.c): Remove.
8169 (reg-cris.c): Remove.
8170 (reg-crisv32.c): Remove.
8171 (i386.c): Remove.
8172 (i386-linux.c): Remove.
8173 (i386-avx.c): Remove.
8174 (i386-avx-linux.c): Remove.
8175 (i386-avx-avx512.c): Remove.
8176 (i386-avx-avx512-linux.c): Remove.
8177 (i386-mpx.c): Remove.
8178 (i386-mpx-linux.c): Remove.
8179 (i386-avx-mpx-avx512-pku.c): Remove.
8180 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8181 (i386-avx-mpx.c): Remove.
8182 (i386-avx-mpx-linux.c): Remove.
8183 (i386-mmx.c): Remove.
8184 (i386-mmx-linux.c): Remove.
8185 (reg-ia64.c): Remove.
8186 (reg-m32r.c): Remove.
8187 (reg-m68k.c): Remove.
8188 (reg-cf.c): Remove.
8189 (mips-linux.c): Remove.
8190 (mips-dsp-linux.c): Remove.
8191 (mips64-linux.c): Remove.
8192 (mips64-dsp-linux.c): Remove.
8193 (nios2-linux.c): Remove.
8194 (powerpc-32.c): Remove.
8195 (powerpc-32l.c): Remove.
8196 (powerpc-altivec32l.c): Remove.
8197 (powerpc-cell32l.c): Remove.
8198 (powerpc-vsx32l.c): Remove.
8199 (powerpc-isa205-32l.c): Remove.
8200 (powerpc-isa205-altivec32l.c): Remove.
8201 (powerpc-isa205-vsx32l.c): Remove.
8202 (powerpc-e500l.c): Remove.
8203 (powerpc-64l.c): Remove.
8204 (powerpc-altivec64l.c): Remove.
8205 (powerpc-cell64l.c): Remove.
8206 (powerpc-vsx64l.c): Remove.
8207 (powerpc-isa205-64l.c): Remove.
8208 (powerpc-isa205-altivec64l.c): Remove.
8209 (powerpc-isa205-vsx64l.c): Remove.
8210 (s390-linux32.c): Remove.
8211 (s390-linux32v1.c): Remove.
8212 (s390-linux32v2.c): Remove.
8213 (s390-linux64.c): Remove.
8214 (s390-linux64v1.c): Remove.
8215 (s390-linux64v2.c): Remove.
8216 (s390-te-linux64.c): Remove.
8217 (s390-vx-linux64.c): Remove.
8218 (s390-tevx-linux64.c): Remove.
8219 (s390x-linux64.c): Remove.
8220 (s390x-linux64v1.c): Remove.
8221 (s390x-linux64v2.c): Remove.
8222 (s390x-te-linux64.c): Remove.
8223 (s390x-vx-linux64.c): Remove.
8224 (s390x-tevx-linux64.c): Remove.
8225 (tic6x-c64xp-linux.c): Remove.
8226 (tic6x-c64x-linux.c): Remove.
8227 (tic6x-c62x-linux.c): Remove.
8228 (reg-sh.c): Remove.
8229 (reg-sparc64.c): Remove.
8230 (reg-spu.c): Remove.
8231 (amd64.c): Remove.
8232 (amd64-linux.c): Remove.
8233 (amd64-avx.c): Remove.
8234 (amd64-avx-linux.c): Remove.
8235 (amd64-avx-avx512.c): Remove.
8236 (amd64-avx-avx512-linux.c): Remove.
8237 (amd64-mpx.c): Remove.
8238 (amd64-mpx-linux.c): Remove.
8239 (amd64-avx-mpx-avx512-pku.c): Remove.
8240 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8241 (amd64-avx-mpx.c): Remove.
8242 (amd64-avx-mpx-linux.c): Remove.
8243 (x32.c): Remove.
8244 (x32-linux.c): Remove.
8245 (x32-avx.c): Remove.
8246 (x32-avx-linux.c): Remove.
8247 (x32-avx-avx512.c): Remove.
8248 (x32-avx-avx512-linux.c): Remove.
8249 (reg-xtensa.c): Remove.
8250 (reg-tilegx.c): Remove.
8251 (reg-tilegx32.c): Remove.
8252
1672e0d9
SDJ
82532017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8254
8255 * Makefile.in (SFILES): Add "common/environ.c".
8256 (OBJS): Add "common/environ.h".
8257
239b6d10
WT
82582017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8259
8260 * configure.ac: Check if the fs_base and gs_base members of
8261 `struct user_regs_struct' exist.
8262 * config.in: Regenerated.
8263 * configure: Likewise.
8264
694b382c
AT
82652017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8266
8267 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8268 target_read_memory.
8269 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8270 (get_next_pcs_syscall_next_pc): Likewise.
8271
7dc53023
LM
82722016-12-23 Luis Machado <lgustavo@codesourcery.com>
8273
8274 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8275 * nto-x86-low.c: Likewise.
8276
ad02e4fe
SM
82772016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8278
8279 * Makefile.in: Include disable-implicit-rules.mk.
8280
dcb07cfa
PA
82812016-11-23 Pedro Alves <palves@redhat.com>
8282
8283 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8284 (debug_vprintf): Use std::chrono::steady_clock instead of
8285 gettimeofday. Use '.' instead of ':'.
8286 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8287 (get_timestamp): Use std::chrono::steady_clock instead of
8288 gettimeofday.
8289
8629c02c
SM
82902016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8291
8292 * Makefile.in: Fix whitespace formatting.
8293
b593ecca
SM
82942016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8295
8296 * Makefile.in (SFILES, OBS): Flatten list and order
8297 alphabetically.
8298
9986ba08
PA
82992016-11-23 Pedro Alves <palves@redhat.com>
8300
8301 * event-loop.c (handle_file_event): Use warning.
8302 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8303 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8304 Use warning.
8305
4eefa7bc
PA
83062016-11-23 Pedro Alves <palves@redhat.com>
8307
8308 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8309 output.
8310 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8311 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8312 debug_printf and debug_flush for debug output.
8313 * server.c (handle_general_set): Likewise.
8314 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8315 output.
8316
5443506e
SM
83172016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8318
8319 * Makefile.in (.c.o): Replace rule with ...
8320 (%.o: %.c): ... this one.
8321
3b165252
SM
83222016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8323
8324 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8325 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8326 make.
8327 * configure.ac: Remove checks for the make program.
8328 * configure: Re-generate.
8329
0bcda685
PA
83302016-10-28 Pedro Alves <palves@redhat.com>
8331
8332 * Makefile.in (CXX_DIALECT): Get from configure.
8333 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8334 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8335 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8336 * config.in: Regenerate.
8337 * configure: Regenerate.
8338
c3805894
YQ
83392016-10-27 Yao Qi <yao.qi@linaro.org>
8340
8341 * linux-low.c (linux_supports_range_stepping): Return true if
8342 can_software_single_step return true.
8343
89342618
YQ
83442016-10-27 Yao Qi <yao.qi@linaro.org>
8345
8346 * inferiors.c (find_inferior_in_random): New function.
8347 * inferiors.h (find_inferior_in_random): Declare.
8348 * linux-low.c (linux_wait_for_event_filtered): Call
8349 find_inferior_in_random instead of find_inferior.
8350
e3652c84
YQ
83512016-10-27 Yao Qi <yao.qi@linaro.org>
8352
8353 * linux-low.c (linux_wait_1): If single-step breakpoints are
8354 inserted, remove them.
8355
5a04c4cf
PA
83562016-10-26 Pedro Alves <palves@redhat.com>
8357
8358 * linux-low.c (handle_extended_wait): Link parent/child fork
8359 threads.
8360 (linux_wait_1): Unlink them.
8361 (linux_set_resume_request): Ignore resume requests for
8362 already-resumed and unhandled fork child threads.
8363 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8364 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8365 New functions.
8366 (handle_v_requests) <vCont>: Don't call require_running.
8367 * server.h (in_queued_stop_replies): New declaration.
8368
cb93dc7f
YQ
83692016-10-24 Yao Qi <yao.qi@linaro.org>
8370
8371 PR server/20733
8372 * linux-aarch64-low.c (append_insns): Cast the return value to
8373 'uint32_t *'.
8374
a1078bea
YQ
83752016-10-10 Yao Qi <yao.qi@linaro.org>
8376
8377 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8378
1fb77080
SDJ
83792016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8380
8381 * target.c (target_supports_multi_process): New function, moved
8382 from...
8383 * target.h (target_supports_multi_process): ... here. Remove
8384 macro.
8385
39b5a3b9
TT
83862016-10-05 Tom Tromey <tom@tromey.com>
8387
8388 PR remote/20655:
8389 * tracepoint.c (handle_tracepoint_bkpts): Check
8390 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8391
c1d0b70a
YQ
83922016-10-05 Yao Qi <yao.qi@linaro.org>
8393
8394 * configure.srv: Update the path of arm-*.xml files.
8395
0a69eedb
YQ
83962016-10-05 Terry Guo <terry.guo@arm.com>
8397 Yao Qi <yao.qi@linaro.org>
8398
8399 * Makefile.in: Adjust the path of rules.
8400 * configure.srv: Update the path of xml files.
8401 * regformats/arm-with-iwmmxt.dat: Regenerated.
8402 * regformats/arm-with-neon.dat: Likewise.
8403 * regformats/arm-with-vfpv2.dat: Likewise.
8404 * regformats/arm-with-vfpv3.dat Likewise.
8405
17e16485
YQ
84062016-09-30 Yao Qi <yao.qi@linaro.org>
8407
8408 PR gdbserver/20627
8409 * target.c (target_stop_and_wait): Don't call
8410 target_continue_no_signal, use resume_stop instead.
8411
edeeb602
YQ
84122016-09-26 Yao Qi <yao.qi@linaro.org>
8413
8414 * linux-low.c (linux_wait_1): Call debug_exit.
8415
503b1c39
PA
84162016-09-23 Pedro Alves <palves@redhat.com>
8417
8418 * Makefile.in (SFILES): Add common/new-op.c.
8419 (OBS): Add common/new-op.o.
8420 (new-op.o): New rule.
8421
74172ecf
SM
84222016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8423
8424 * .gitinore: Ignore more files.
8425
fc6cda2e
YQ
84262016-09-21 Yao Qi <yao.qi@linaro.org>
8427
8428 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8429 23.
8430
bc1e6c81
SDJ
84312016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8432
8433 * server.c (start_inferior): Call target_mourn_inferior instead of
8434 mourn_inferior; pass ptid_t argument to it.
8435 (resume): Likewise.
8436 (handle_target_event): Likewise.
8437 * target.c (target_mourn_inferior): New function.
8438 * target.h (mourn_inferior): Delete macro.
8439
0e00e962
AA
84402016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8441
8442 * linux-low.c (lwp_is_stepping): New function.
8443
1d8cb77d
CL
84442016-09-06 Carl Love <cel@us.ibm.com>
8445
8446 * server.c (start_inferior): Fixed comment, requested comment change
8447 didn't get updated correctly. Removed reference to ptrace () call as
8448 it is only true on Linux systems.
8449
7313bced
CL
84502016-09-06 Carl Love <cel@us.ibm.com>
8451
8452 * server.c (start_inferior): Do not call
8453 function target_post_create_inferior () if the
8454 inferior process has already exited.
8455
cf6de44d
PA
84562016-09-05 Pedro Alves <palves@redhat.com>
8457
8458 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8459 (COMPILE.pre, CC_LD): Use CXX directly.
8460 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8461 * acinclude.m4: Don't include build-with-cxx.m4.
8462 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8463 * configure: Regenerate.
8464
c1da6748
AT
84652016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8466
8467 PR gdb/19495
8468 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8469 call writing data to own_buf.
8470
f2b9e3df
SDJ
84712016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8472
8473 * target.c (mywait): Call target_wait instead of
8474 the_target->wait.
8475 (target_wait): New function.
8476
049a8570
SDJ
84772016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8478
8479 * server.c (start_inferior): New variable 'ptid'. Replace calls
8480 to the_target->resume by target_continue{,_no_signal}, depending
8481 on the case.
8482 * target.c (target_stop_and_wait): Call target_continue_no_signal
8483 instead of the_target->resume.
8484 (target_continue): New function.
8485
3aa5cfa0
AT
84862016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8487
8488 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8489
754653a7
AZ
84902016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8491
8492 PR server/20491
8493 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8494 ps_prochandle.
8495 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8496 * linux-arm-low.c (ps_get_thread_area): Likewise.
8497 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8498 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8499 * linux-mips-low.c (ps_get_thread_area): Likewise.
8500 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8501 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8502 * linux-x86-low.c (ps_get_thread_area): Likewise.
8503 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8504
ed036b40
PA
85052016-08-19 Pedro Alves <palves@redhat.com>
8506
8507 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8508
c8ef42ee
PA
85092016-08-19 Pedro Alves <palves@redhat.com>
8510
8511 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8512 comment. Use memcpy instead of casting through unsigned long.
8513
9c235a72
PA
85142016-08-19 Pedro Alves <palves@redhat.com>
8515
8516 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8517 allocating around 0x80000000.
8518
201506da
PA
85192016-08-19 Pedro Alves <palves@redhat.com>
8520
8521 PR gdb/20415
8522 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8523 (x32-avx512-linux-ipa.o): New rules.
8524 * configure.ac (x86_64-*-linux*): New x32 check.
8525 * configure.srv (ipa_x32_linux_regobj): New.
8526 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8527 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8528 descriptions.
8529 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8530 descriptions.
8531 * configure: Regenerate.
8532
f348d89a
PA
85332016-08-09 Pedro Alves <palves@redhat.com>
8534
8535 PR gdb/18653
8536 * Makefile.in (OBS): Add signals-state-save-restore.o.
8537 (signals-state-save-restore.o): New rule.
8538 * config.in: Regenerate.
8539 * configure: Regenerate.
8540 * linux-low.c: Include "signals-state-save-restore.h".
8541 (linux_create_inferior): Call
8542 restore_original_signals_state.
8543 * server.c: Include "dispositions-save-restore.h".
8544 (captured_main): Call save_original_signals_state.
8545
1baf5149
PA
85462016-08-05 Pedro Alves <palves@redhat.com>
8547
8548 * configure: Regenerate.
8549
fcd4a73d
YQ
85502016-08-04 Yao Qi <yao.qi@linaro.org>
8551
8552 * linux-low.c (regsets_fetch_inferior_registers): Check
8553 errno is ESRCH or not.
8554
979659d0
YQ
85552016-08-02 Yao Qi <yao.qi@linaro.org>
8556
8557 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8558 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8559 (thread_db_load_search): Update.
8560 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8561 td_ta_set_event and td_ta_event_getmsg.
8562
6598661d
PA
85632016-07-26 Pedro Alves <palves@redhat.com>
8564
8565 PR server/20414
8566 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8567 of unsigned long for 64-bit registers and use uint32_t instead of
8568 unsigned int for 32-bit registers.
8569
9cf12d57
PA
85702016-07-26 Pedro Alves <palves@redhat.com>
8571
8572 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8573 to 'ptrace'.
8574
305450ed
TT
85752016-07-21 Tom Tromey <tom@tromey.com>
8576
8577 * configure: Rebuild.
8578
2583da7c
YQ
85792016-07-21 Yao Qi <yao.qi@linaro.org>
8580
8581 * mem-break.c (find_gdb_breakpoint): Cast bp to
8582 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8583
21536b36
YQ
85842016-07-21 Yao Qi <yao.qi@linaro.org>
8585
8586 * server.c (handle_v_requests): Support s and S actions
8587 if target_supports_software_single_step return true.
8588
8901d193
YQ
85892016-07-21 Yao Qi <yao.qi@linaro.org>
8590
8591 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8592 is resume_step, call maybe_hw_step.
8593 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8594 and unstop them.
8595 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8596 breakpoints or not.
8597 (proceed_one_lwp): If resume request is resume_step, install
8598 reinsert breakpoints and call maybe_hw_step.
8599
0e9a339e
YQ
86002016-07-21 Yao Qi <yao.qi@linaro.org>
8601
8602 * linux-low.c (proceed_one_lwp): Declare.
8603 (linux_resume_one_thread): Remove local variable 'step'.
8604 Lift code enqueue signal. Call proceed_one_lwp instead of
8605 linux_resume_one_lwp.
8606
4281b351
YQ
86072016-07-21 Yao Qi <yao.qi@linaro.org>
8608
8609 * linux-low.c (linux_resume_one_thread): Call
8610 enqueue_pending_signal.
8611
984a2c04
YQ
86122016-07-21 Yao Qi <yao.qi@linaro.org>
8613
8614 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8615 * inferiors.c (do_restore_current_thread_cleanup): New function.
8616 (make_cleanup_restore_current_thread): Likewise.
8617 * linux-low.c (install_software_single_step_breakpoints): Call
8618 make_cleanup_restore_current_thread. Switch current_thread to
8619 thread.
8620
bec903c9
YQ
86212016-07-21 Yao Qi <yao.qi@linaro.org>
8622
8623 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8624 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8625 (clone_one_breakpoint): Likewise.
8626 (delete_reinsert_breakpoints): Change parameter to thread.
8627 Callers updated.
8628 (has_reinsert_breakpoints): Likewise.
8629 (uninsert_reinsert_breakpoints): Likewise.
8630 (reinsert_reinsert_breakpoints): Likewise.
8631 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8632 (delete_reinsert_breakpoints): Likewise.
8633 (reinsert_reinsert_breakpoints): Likewise.
8634 (uninsert_reinsert_breakpoints): Likewise.
8635 (has_reinsert_breakpoints): Likewise.
8636
63c40ec7
YQ
86372016-07-21 Yao Qi <yao.qi@linaro.org>
8638
8639 * inferiors.c (get_thread_process): Make parameter const.
8640 * inferiors.h (get_thread_process): Update declaration.
8641 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8642 Add new parameters child_thread and parent_thread. Callers
8643 updated.
8644 * mem-break.h (clone_all_breakpoints): Update declaration.
8645
9aa76cd0
YQ
86462016-07-21 Yao Qi <yao.qi@linaro.org>
8647
8648 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8649 <command_list, handler>: Remove.
8650 (struct gdb_breakpoint): New.
8651 (struct other_breakpoint): New.
8652 (struct reinsert_breakpoint): New.
8653 (is_gdb_breakpoint): New function.
8654 (any_persistent_commands): Update command_list if
8655 is_gdb_breakpoint returns true.
8656 (set_breakpoint): Create breakpoints according to their types.
8657 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8658 (set_gdb_breakpoint_1): Likewise.
8659 (set_gdb_breakpoint): Likewise.
8660 (clear_breakpoint_conditions): Change parameter type to
8661 'struct gdb_breakpoint *'.
8662 (clear_breakpoint_commands): Likewise.
8663 (clear_breakpoint_conditions_and_commands): Likewise.
8664 (add_condition_to_breakpoint): Likewise.
8665 (add_breakpoint_condition): Likewise.
8666 (add_commands_to_breakpoint): Likewise.
8667 (check_breakpoints): Check other_breakpoint.
8668 (clone_one_breakpoint): Clone breakpopint according to its type.
8669 * mem-break.h (struct gdb_breakpoint): Declare.
8670 (set_gdb_breakpoint): Update declaration.
8671 (clear_breakpoint_conditions_and_commands): Likewise.
8672 (add_breakpoint_condition): Likewise.
8673 (add_breakpoint_commands): Likewise.
8674 * server.c (process_point_options): Change parameter type to
8675 'struct gdb_breakpoint *'.
8676
811f8301
YQ
86772016-07-21 Yao Qi <yao.qi@linaro.org>
8678
8679 * mem-break.c (set_breakpoint_at): Rename it to ...
8680 (set_breakpoint_type_at): ... it.
8681 (set_breakpoint_at): Call set_breakpoint_type_at.
8682 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8683 * mem-break.h (set_breakpoint_at): Update comments.
8684
b1c51e36
CLT
86852016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8686
8687 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8688 to buf parameter.
8689 (nios2_store_gregset): Likewise.
8690
ced2dffb
PA
86912016-07-01 Pedro Alves <palves@redhat.com>
8692 Antoine Tremblay <antoine.tremblay@ericsson.com>
8693
8694 * linux-low.c: Change interface to take the target lwp_info
8695 pointer directly and return void. Handle detaching from a zombie
8696 thread.
8697 (linux_detach_lwp_callback): New function.
8698 (linux_detach): Detach from the leader thread after detaching from
8699 the clone threads.
8700
2ac09a5b
YQ
87012016-06-28 Yao Qi <yao.qi@linaro.org>
8702
8703 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8704 for variable new_offset.
8705 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8706 (aarch64_ftrace_insn_reloc_cb): Likewise.
8707 (aarch64_ftrace_insn_reloc_tb): Likewise.
8708 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8709 PRIx64 instead of PRIx32.
8710
79e7fd4f
YQ
87112016-06-28 Yao Qi <yao.qi@linaro.org>
8712
8713 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8714 (the_low_target): Install arm_get_syscall_trapinfo.
8715
061fc021
YQ
87162016-06-28 Yao Qi <yao.qi@linaro.org>
8717
8718 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8719 function.
8720 (the_low_target): Install aarch64_get_syscall_trapinfo.
8721
4cc32bec
YQ
87222016-06-28 Yao Qi <yao.qi@linaro.org>
8723
8724 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8725 Callers updated.
8726 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8727 Remove parameter sysno.
8728 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8729 sysret.
8730
782c1122
AA
87312016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8732
8733 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8734 (s390_emit_ne_goto): Likewise.
8735 (s390_emit_lt_goto): Likewise.
8736 (s390_emit_le_goto): Likewise.
8737 (s390_emit_gt_goto): Likewise.
8738 (s390_emit_ge_goto): Likewise.
8739 (s390x_emit_eq_goto): Likewise.
8740 (s390x_emit_ne_goto): Likewise.
8741 (s390x_emit_lt_goto): Likewise.
8742 (s390x_emit_le_goto): Likewise.
8743 (s390x_emit_gt_goto): Likewise.
8744 (s390x_emit_ge_goto): Likewise.
8745 (s390_emit_ops_impl): Mark variable static.
8746 (s390x_emit_ops): Likewise.
8747
2e7b624b
YQ
87482016-06-17 Yao Qi <yao.qi@linaro.org>
8749
8750 * linux-low.c (handle_extended_wait): Call
8751 uninsert_reinsert_breakpoints for the parent process. Remove
8752 reinsert breakpoints from the child process. Reinsert them to
8753 the parent process when vfork is done.
8754 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8755 (reinsert_reinsert_breakpoints): New function.
8756 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8757 (reinsert_reinsert_breakpoints): Declare.
8758
8a81c5d7
YQ
87592016-06-17 Yao Qi <yao.qi@linaro.org>
8760
8761 * linux-low.c (handle_extended_wait): If the parent is doing
8762 step-over, remove the reinsert breakpoints from the forked child.
8763
f50bf8e5
YQ
87642016-06-17 Yao Qi <yao.qi@linaro.org>
8765
8766 * linux-low.c (unsuspend_all_lwps): Declare.
8767 (linux_low_filter_event): If thread exited, call finish_step_over.
8768 If step-over is finished, unsuspend other threads.
8769
8376a3cb
YQ
87702016-06-17 Yao Qi <yao.qi@linaro.org>
8771
8772 * linux-low.c (linux_resume_one_lwp_throw): Assert
8773 has_reinsert_breakpoints returns false.
8774 * mem-break.c (delete_disabled_breakpoints): Assert
8775 bp type isn't reinsert_breakpoint.
8776
f79b145d
YQ
87772016-06-17 Yao Qi <yao.qi@linaro.org>
8778
8779 * linux-low.c (maybe_hw_step): New function.
8780 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8781 (finish_step_over): Switch current_thread to lwp temporarily,
8782 and assert has_reinsert_breakpoints returns true.
8783 (proceed_one_lwp): Call maybe_hw_step.
8784 * mem-break.c (has_reinsert_breakpoints): New function.
8785 * mem-break.h (has_reinsert_breakpoints): Declare.
8786
0ae534d2
JT
87872016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8788
8789 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8790
fcdad592
YQ
87912016-05-17 Yao Qi <yao.qi@linaro.org>
8792
8793 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8794 instead of find_inferior.
8795
9e784964
YQ
87962016-05-05 Yao Qi <yao.qi@linaro.org>
8797
8798 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8799 Initialize res to zero.
8800
cf2ebb6e
YQ
88012016-05-05 Yao Qi <yao.qi@linaro.org>
8802
8803 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8804 to uint32_t.
8805
c1aebf87
UW
88062016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8807
8808 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8809 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8810 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8811
35fd2deb 88122016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8813 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8814
8815 * tracepoint.c (write_inferior_int8): New function.
8816 (cmd_qtenable_disable): Write enable flag using
8817 write_inferior_int8.
8818
484b3c32
YQ
88192016-04-25 Yao Qi <yao.qi@linaro.org>
8820
8821 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8822 (need_step_over_p): Return zero if the LWP has pending signals
8823 can be delivered on software single step target.
8824
85ba7d86
YQ
88252016-04-25 Yao Qi <yao.qi@linaro.org>
8826
8827 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8828 return instead of error.
8829
3539aa13
YQ
88302016-04-22 Yao Qi <yao.qi@linaro.org>
8831
8832 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8833 to 23.
8834
5b061e98
YQ
88352016-04-22 Yao Qi <yao.qi@linaro.org>
8836
8837 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8838 signal when stepping over breakpoint with software single
8839 step.
8840
3451269c
PA
88412016-04-21 Pedro Alves <palves@redhat.com>
8842
8843 * linux-s390-low.c (s390_collect_ptrace_register)
8844 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8845 add casts.
8846 (s390_check_regset): Use void * instead of gdb_byte *.
8847
a2358508
PA
88482016-04-20 Pedro Alves <palves@redhat.com>
8849
8850 * configure: Renegerate.
8851
6885166d
YQ
88522016-04-20 Yao Qi <yao.qi@linaro.org>
8853
8854 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8855 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8856 number 16.
8857 (arm_store_gregset): Likewise.
8858
2b863f51
WT
88592016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8860
8861 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8862 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8863 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8864 (amd64-avx-mpx-linux.c): New rules.
8865 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8866 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8867 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8868 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8869 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8870 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8871 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8872 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8873 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8874 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8875 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8876 * linux-x86-low.c (x86_linux_read_description): Add case for
8877 X86_XSTATE_AVX_MPX_MASK.
8878 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8879 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8880 init_registers_i386_avx_mpx_linux.
8881 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8882 (initialize_low_tracepoint): Call
8883 init_registers_i386_avx_mpx_linux.
8884 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8885 (initialize_low_tracepoint): Call
8886 init_registers_amd64_avx_mpx_linux.
8887 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8888 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8889 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8890 declarations.
8891
9b30624b
PA
88922016-04-18 Pedro Alves <palves@redhat.com>
8893
8894 * configure: Regenerate.
8895
45e3745e
AT
88962016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8897
8898 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8899 (aarch64_emit_sub): Likewise.
8900
2afc13ff
PA
89012016-04-12 Pedro Alves <palves@redhat.com>
8902
8903 * utils.c (prepare_to_throw_exception): Delete.
8904
6e774b13
SM
89052016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8906
8907 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8908
4dca19f8
MK
89092016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8910
8911 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8912
d0a9981f
MK
89132016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8914
8915 * linux-aarch64-ipa.c: Add <elf.h> include.
8916 * linux-ppc-ipa.c: Add <elf.h> include.
8917 * linux-s390-ipa.c: Add <elf.h> include.
8918
252db07e
MK
89192016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8920
8921 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8922 (get_raw_reg_ptr): Likewise.
8923 (get_trace_state_variable_value_ptr): Likewise.
8924 (set_trace_state_variable_value_ptr): Likewise.
8925 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8926 char *.
8927
14e2b6d9
MK
89282016-03-31 Wei-cheng Wang <cole945@gmail.com>
8929 Marcin Kościelnicki <koriakin@0x04.net>
8930
8931 PR/17221
8932 * linux-ppc-low.c (emit_insns): New function.
8933 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8934 (ppc_emit_prologue): New function.
8935 (ppc_emit_epilogue): New function.
8936 (ppc_emit_add): New function.
8937 (ppc_emit_sub): New function.
8938 (ppc_emit_mul): New function.
8939 (ppc_emit_lsh): New function.
8940 (ppc_emit_rsh_signed): New function.
8941 (ppc_emit_rsh_unsigned): New function.
8942 (ppc_emit_ext): New function.
8943 (ppc_emit_zero_ext): New function.
8944 (ppc_emit_log_not): New function.
8945 (ppc_emit_bit_and): New function.
8946 (ppc_emit_bit_or): New function.
8947 (ppc_emit_bit_xor): New function.
8948 (ppc_emit_bit_not): New function.
8949 (ppc_emit_equal): New function.
8950 (ppc_emit_less_signed): New function.
8951 (ppc_emit_less_unsigned): New function.
8952 (ppc_emit_ref): New function.
8953 (ppc_emit_const): New function.
8954 (ppc_emit_reg): New function.
8955 (ppc_emit_pop): New function.
8956 (ppc_emit_stack_flush): New function.
8957 (ppc_emit_swap): New function.
8958 (ppc_emit_stack_adjust): New function.
8959 (ppc_emit_call): New function.
8960 (ppc_emit_int_call_1): New function.
8961 (ppc_emit_void_call_2): New function.
8962 (ppc_emit_if_goto): New function.
8963 (ppc_emit_goto): New function.
8964 (ppc_emit_eq_goto): New function.
8965 (ppc_emit_ne_goto): New function.
8966 (ppc_emit_lt_goto): New function.
8967 (ppc_emit_le_goto): New function.
8968 (ppc_emit_gt_goto): New function.
8969 (ppc_emit_ge_goto): New function.
8970 (ppc_write_goto_address): New function.
8971 (ppc_emit_ops_impl): New static variable.
8972 (ppc64v1_emit_prologue): New function.
8973 (ppc64v2_emit_prologue): New function.
8974 (ppc64_emit_epilogue): New function.
8975 (ppc64_emit_add): New function.
8976 (ppc64_emit_sub): New function.
8977 (ppc64_emit_mul): New function.
8978 (ppc64_emit_lsh): New function.
8979 (ppc64_emit_rsh_signed): New function.
8980 (ppc64_emit_rsh_unsigned): New function.
8981 (ppc64_emit_ext): New function.
8982 (ppc64_emit_zero_ext): New function.
8983 (ppc64_emit_log_not): New function.
8984 (ppc64_emit_bit_and): New function.
8985 (ppc64_emit_bit_or): New function.
8986 (ppc64_emit_bit_xor): New function.
8987 (ppc64_emit_bit_not): New function.
8988 (ppc64_emit_equal): New function.
8989 (ppc64_emit_less_signed): New function.
8990 (ppc64_emit_less_unsigned): New function.
8991 (ppc64_emit_ref): New function.
8992 (ppc64_emit_const): New function.
8993 (ppc64v1_emit_reg): New function.
8994 (ppc64v2_emit_reg): New function.
8995 (ppc64_emit_pop): New function.
8996 (ppc64_emit_stack_flush): New function.
8997 (ppc64_emit_swap): New function.
8998 (ppc64v1_emit_call): New function.
8999 (ppc64v2_emit_call): New function.
9000 (ppc64v1_emit_int_call_1): New function.
9001 (ppc64v2_emit_int_call_1): New function.
9002 (ppc64v1_emit_void_call_2): New function.
9003 (ppc64v2_emit_void_call_2): New function.
9004 (ppc64_emit_if_goto): New function.
9005 (ppc64_emit_eq_goto): New function.
9006 (ppc64_emit_ne_goto): New function.
9007 (ppc64_emit_lt_goto): New function.
9008 (ppc64_emit_le_goto): New function.
9009 (ppc64_emit_gt_goto): New function.
9010 (ppc64_emit_ge_goto): New function.
9011 (ppc64v1_emit_ops_impl): New static variable.
9012 (ppc64v2_emit_ops_impl): New static variable.
9013 (ppc_emit_ops): New function.
9014 (linux_low_target): Wire in ppc_emit_ops.
9015
a2174ba4
MK
90162016-03-31 Wei-cheng Wang <cole945@gmail.com>
9017 Marcin Kościelnicki <koriakin@0x04.net>
9018
9019 PR/17221
9020 * Makefile.in: Add powerpc-*-ipa.o
9021 * configure.srv: Add ipa_obj for powerpc*-linux.
9022 * linux-ppc-ipa.c: New file.
9023 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
9024 includes.
9025 (PPC_FIELD): New macro.
9026 (PPC_SEXT): New macro.
9027 (PPC_OP6): New macro.
9028 (PPC_BO): New macro.
9029 (PPC_LI): New macro.
9030 (PPC_BD): New macro.
9031 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
9032 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
9033 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
9034 (ppc_get_thread_area): New function.
9035 (is_elfv2_inferior): New function.
9036 (gen_ds_form): New function.
9037 (GEN_STD): New macro.
9038 (GEN_STDU): New macro.
9039 (GEN_LD): New macro.
9040 (GEN_LDU): New macro.
9041 (gen_d_form): New function.
9042 (GEN_ADDI): New macro.
9043 (GEN_ADDIS): New macro.
9044 (GEN_LI): New macro.
9045 (GEN_LIS): New macro.
9046 (GEN_ORI): New macro.
9047 (GEN_ORIS): New macro.
9048 (GEN_LWZ): New macro.
9049 (GEN_STW): New macro.
9050 (GEN_STWU): New macro.
9051 (gen_xfx_form): New function.
9052 (GEN_MFSPR): New macro.
9053 (GEN_MTSPR): New macro.
9054 (GEN_MFCR): New macro.
9055 (GEN_MTCR): New macro.
9056 (GEN_SYNC): New macro.
9057 (GEN_LWSYNC): New macro.
9058 (gen_x_form): New function.
9059 (GEN_OR): New macro.
9060 (GEN_MR): New macro.
9061 (GEN_LWARX): New macro.
9062 (GEN_STWCX): New macro.
9063 (GEN_CMPW): New macro.
9064 (gen_md_form): New function.
9065 (GEN_RLDICL): New macro.
9066 (GEN_RLDICR): New macro.
9067 (gen_i_form): New function.
9068 (GEN_B): New macro.
9069 (GEN_BL): New macro.
9070 (gen_b_form): New function.
9071 (GEN_BNE): New macro.
9072 (GEN_LOAD): New macro.
9073 (GEN_STORE): New macro.
9074 (gen_limm): New function.
9075 (gen_atomic_xchg): New function.
9076 (gen_call): New function.
9077 (ppc_relocate_instruction): New function.
9078 (ppc_install_fast_tracepoint_jump_pad): New function.
9079 (ppc_get_min_fast_tracepoint_insn_len): New function.
9080 (ppc_get_ipa_tdesc_idx): New function.
9081 (the_low_target): Wire in the new functions.
9082 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9083 tdescs.
9084 * linux-ppc-tdesc.h: New file.
9085
a13c4696
MK
90862016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9087
9088 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9089 (alloc_jump_pad_buffer): New function.
9090 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9091 (alloc_jump_pad_buffer): New function.
9092 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9093 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9094 (alloc_jump_pad_buffer): New function.
9095 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9096 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9097 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9098 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9099
1cda1512
MK
91002016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9101
9102 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9103 * linux-amd64-ipa.c: Likewise.
9104 * linux-i386-ipa.c: Likewise.
9105 * linux-s390-ipa.c: Likewise.
9106 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9107 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9108 set_trace_state_variable_value_ptr.
9109 (struct ipa_sym_addresses): Likewise.
9110 (symbol_list): Likewise.
9111 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9112 accessing gdb_collect directly.
9113 (gdb_collect_ptr_type): New typedef.
9114 (get_raw_reg_ptr_type): New typedef.
9115 (get_trace_state_variable_value_ptr_type): New typedef.
9116 (set_trace_state_variable_value_ptr_type): New typedef.
9117 (gdb_collect_ptr): New global.
9118 (get_raw_reg_ptr): New global.
9119 (get_trace_state_variable_value_ptr): New global.
9120 (set_trace_state_variable_value_ptr): New global.
9121 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9122 accessing get_raw_reg directly.
9123 (get_get_tsv_func_addr): Likewise for
9124 get_trace_state_variable_value_ptr.
9125 (get_set_tsv_func_addr): Likewise for
9126 set_trace_state_variable_value_ptr.
9127 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9128
72fb5488
SM
91292016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9130
9131 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9132
28170b88
MK
91332016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9134
9135 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9136 packets.
9137 (relocate_instruction): Remove own_buf.
9138 * server.c (own_buf): Make global.
9139 (handle_v_requests): Make global.
9140 * server.h (own_buf): New declaration.
9141 (handle_v_requests): New prototype.
9142
f39e8743
MK
91432016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9144
9145 PR 18377
9146 * linux-s390-low.c (add_insns): New function.
9147 (s390_emit_prologue): New function.
9148 (s390_emit_epilogue): New function.
9149 (s390_emit_add): New function.
9150 (s390_emit_sub): New function.
9151 (s390_emit_mul): New function.
9152 (s390_emit_lsh): New function.
9153 (s390_emit_rsh_signed): New function.
9154 (s390_emit_rsh_unsigned): New function.
9155 (s390_emit_ext): New function.
9156 (s390_emit_log_not): New function.
9157 (s390_emit_bit_and): New function.
9158 (s390_emit_bit_or): New function.
9159 (s390_emit_bit_xor): New function.
9160 (s390_emit_bit_not): New function.
9161 (s390_emit_equal): New function.
9162 (s390_emit_less_signed): New function.
9163 (s390_emit_less_unsigned): New function.
9164 (s390_emit_ref): New function.
9165 (s390_emit_if_goto): New function.
9166 (s390_emit_goto): New function.
9167 (s390_write_goto_address): New function.
9168 (s390_emit_litpool): New function.
9169 (s390_emit_const): New function.
9170 (s390_emit_call): New function.
9171 (s390_emit_reg): New function.
9172 (s390_emit_pop): New function.
9173 (s390_emit_stack_flush): New function.
9174 (s390_emit_zero_ext): New function.
9175 (s390_emit_swap): New function.
9176 (s390_emit_stack_adjust): New function.
9177 (s390_emit_set_r2): New function.
9178 (s390_emit_int_call_1): New function.
9179 (s390_emit_void_call_2): New function.
9180 (s390_emit_eq_goto): New function.
9181 (s390_emit_ne_goto): New function.
9182 (s390_emit_lt_goto): New function.
9183 (s390_emit_le_goto): New function.
9184 (s390_emit_gt_goto): New function.
9185 (s390_emit_ge_goto): New function.
9186 (s390x_emit_prologue): New function.
9187 (s390x_emit_epilogue): New function.
9188 (s390x_emit_add): New function.
9189 (s390x_emit_sub): New function.
9190 (s390x_emit_mul): New function.
9191 (s390x_emit_lsh): New function.
9192 (s390x_emit_rsh_signed): New function.
9193 (s390x_emit_rsh_unsigned): New function.
9194 (s390x_emit_ext): New function.
9195 (s390x_emit_log_not): New function.
9196 (s390x_emit_bit_and): New function.
9197 (s390x_emit_bit_or): New function.
9198 (s390x_emit_bit_xor): New function.
9199 (s390x_emit_bit_not): New function.
9200 (s390x_emit_equal): New function.
9201 (s390x_emit_less_signed): New function.
9202 (s390x_emit_less_unsigned): New function.
9203 (s390x_emit_ref): New function.
9204 (s390x_emit_if_goto): New function.
9205 (s390x_emit_const): New function.
9206 (s390x_emit_call): New function.
9207 (s390x_emit_reg): New function.
9208 (s390x_emit_pop): New function.
9209 (s390x_emit_stack_flush): New function.
9210 (s390x_emit_zero_ext): New function.
9211 (s390x_emit_swap): New function.
9212 (s390x_emit_stack_adjust): New function.
9213 (s390x_emit_int_call_1): New function.
9214 (s390x_emit_void_call_2): New function.
9215 (s390x_emit_eq_goto): New function.
9216 (s390x_emit_ne_goto): New function.
9217 (s390x_emit_lt_goto): New function.
9218 (s390x_emit_le_goto): New function.
9219 (s390x_emit_gt_goto): New function.
9220 (s390x_emit_ge_goto): New function.
9221 (s390_emit_ops): New function.
9222 (struct linux_target_ops): Fill in emit_ops hook.
9223
abd9baf9
MK
92242016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9225
9226 PR 18377
9227 * Makefile.in: Add s390 IPA files.
9228 * configure.srv: Build IPA for s390.
9229 * linux-s390-ipa.c: New file.
9230 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9231 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9232 (tdesc_s390_linux32): Likewise.
9233 (init_registers_s390_linux32v1): Likewise.
9234 (tdesc_s390_linux32v1): Likewise.
9235 (init_registers_s390_linux32v2): Likewise.
9236 (tdesc_s390_linux32v2): Likewise.
9237 (init_registers_s390_linux64): Likewise.
9238 (tdesc_s390_linux64): Likewise.
9239 (init_registers_s390_linux64v1): Likewise.
9240 (tdesc_s390_linux64v1): Likewise.
9241 (init_registers_s390_linux64v2): Likewise.
9242 (tdesc_s390_linux64v2): Likewise.
9243 (init_registers_s390_te_linux64): Likewise.
9244 (tdesc_s390_te_linux64): Likewise.
9245 (init_registers_s390_vx_linux64): Likewise.
9246 (tdesc_s390_vx_linux64): Likewise.
9247 (init_registers_s390_tevx_linux64): Likewise.
9248 (tdesc_s390_tevx_linux64): Likewise.
9249 (init_registers_s390x_linux64): Likewise.
9250 (tdesc_s390x_linux64): Likewise.
9251 (init_registers_s390x_linux64v1): Likewise.
9252 (tdesc_s390x_linux64v1): Likewise.
9253 (init_registers_s390x_linux64v2): Likewise.
9254 (tdesc_s390x_linux64v2): Likewise.
9255 (init_registers_s390x_te_linux64): Likewise.
9256 (tdesc_s390x_te_linux64): Likewise.
9257 (init_registers_s390x_vx_linux64): Likewise.
9258 (tdesc_s390x_vx_linux64): Likewise.
9259 (init_registers_s390x_tevx_linux64): Likewise.
9260 (tdesc_s390x_tevx_linux64): Likewise.
9261 (have_hwcap_s390_vx): New static variable.
9262 (s390_arch_setup): Fill have_hwcap_s390_vx.
9263 (s390_get_thread_area): New function.
9264 (s390_ft_entry_gpr_esa): New const.
9265 (s390_ft_entry_gpr_zarch): New const.
9266 (s390_ft_entry_misc): New const.
9267 (s390_ft_entry_fr): New const.
9268 (s390_ft_entry_vr): New const.
9269 (s390_ft_main_31): New const.
9270 (s390_ft_main_64): New const.
9271 (s390_ft_exit_fr): New const.
9272 (s390_ft_exit_vr): New const.
9273 (s390_ft_exit_misc): New const.
9274 (s390_ft_exit_gpr_esa): New const.
9275 (s390_ft_exit_gpr_zarch): New const.
9276 (append_insns): New function.
9277 (s390_relocate_instruction): New function.
9278 (s390_install_fast_tracepoint_jump_pad): New function.
9279 (s390_get_min_fast_tracepoint_insn_len): New function.
9280 (s390_get_ipa_tdesc_idx): New function.
9281 (struct linux_target_ops): Wire in the above functions.
9282 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9283 * linux-s390-tdesc.h: New file.
9284
a4105d04
MK
92852016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9286
9287 * linux-s390-low.c (s390_supports_tracepoints): New function.
9288 (struct linux_target_ops): Fill supports_tracepoints hook.
9289
35ac8b3e
YQ
92902016-03-18 Yao Qi <yao.qi@linaro.org>
9291
9292 * linux-low.c (lwp_signal_can_be_delivered): New function.
9293 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9294
94610ec4
YQ
92952016-03-18 Yao Qi <yao.qi@linaro.org>
9296
9297 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9298 0 if signal is enqueued. Remove 'signal' from one debugging
9299 message. Move one debugging message to some lines below.
9300 Remove code setting 'signal' to 0.
9301
80aea927
YQ
93022016-03-18 Yao Qi <yao.qi@linaro.org>
9303
9304 * linux-low.c (linux_low_filter_event): Remove redundant
9305 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9306
b04fd3be
MK
93072016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9308
9309 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9310 (struct linux_target_ops): Wire in the above.
9311
c40c8d4b
YQ
93122016-03-03 Yao Qi <yao.qi@linaro.org>
9313
9314 * linux-low.c: Update comments to start_step_over.
9315
0f8288ae
YQ
93162016-03-03 Yao Qi <yao.qi@linaro.org>
9317
9318 PR server/19736
9319 * linux-low.c (handle_extended_wait): Set child suspended
9320 if event_lwp->bp_reinsert isn't zero.
9321
fdbd04a8
YQ
93222016-03-02 Yao Qi <yao.qi@linaro.org>
9323
9324 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9325 enqueue_pending_signal.
9326
6896a8fa
MK
93272016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9328
9329 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9330 is actually loaded.
9331
ab503087
MK
93322016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9333
9334 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9335 (s390_regmap_3264) [!__s390x__]: New global.
9336 (s390_collect_ptrace_register): Skip map entries containing -1.
9337 (s390_supply_ptrace_register): Ditto.
9338 (s390_fill_gprs_high): New function.
9339 (s390_store_gprs_high): New function.
9340 (s390_regsets): Add NT_S390_HIGH_GPRS.
9341 (s390_get_hwcap): Enable on 31-bit.
9342 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9343 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9344 Detect NT_S390_HIGH_GPRS.
9345 (s390_usrregs_info_3264): Enable on 31-bit.
9346 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9347 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9348
ae91f625
MK
93492016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9350
9351 PR gdb/13808
9352 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9353 * configure.srv: Ditto.
9354 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9355 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9356 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9357 (init_registers_amd64_linux): Remove prototype.
9358 (tdesc_amd64_linux): Remove declaration.
9359 (get_ipa_tdesc): New function.
9360 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9361 initialize remaining tdescs.
9362 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9363 (init_registers_i386_linux): Remove prototype.
9364 (tdesc_i386_linux): Remove declaration.
9365 (get_ipa_tdesc): New function.
9366 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9367 initialize remaining tdescs.
9368 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9369 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9370 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9371 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9372 (x86_get_ipa_tdesc_idx): New function.
9373 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9374 * linux-x86-tdesc.h: New file.
9375 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9376 (target_get_ipa_tdesc_idx): New macro.
9377 * tracepoint.c (ipa_tdesc_idx): New macro.
9378 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9379 (symbol_list): Add ipa_tdesc_idx.
9380 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9381 (ipa_tdesc): Remove.
9382 (ipa_tdesc_idx): New variable.
9383 (get_context_regcache): Use get_ipa_tdesc.
9384 (gdb_collect): Ditto.
9385 (gdb_probe): Ditto.
9386 * tracepoint.h (get_ipa_tdesc): New prototype.
9387 (ipa_tdesc): Remove.
9388
e7ad2f14
PA
93892016-02-24 Pedro Alves <palves@redhat.com>
9390
9391 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9392 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9393 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9394 Factor out common code between the USE_SIGTRAP_SIGINFO and
9395 !USE_SIGTRAP_SIGINFO blocks.
9396 (linux_low_filter_event): Call save_stop_reason instead of
9397 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9398 Update comments.
9399 (linux_wait_1): Update comments.
9400
657f9cde
WW
94012016-02-24 Wei-cheng Wang <cole945@gmail.com>
9402
9403 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9404 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9405 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9406 ppc_insert_point, ppc_remove_point.
9407
b00b61e1
MK
94082016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9409
9410 * linux-s390-low.c (s390_supports_z_point_type): New function.
9411 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9412
553cb527
YQ
94132016-02-16 Yao Qi <yao.qi@linaro.org>
9414
9415 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9416 PC. Get pc from regcache_read_pc.
9417
a5652c21
YQ
94182016-02-12 Yao Qi <yao.qi@linaro.org>
9419
9420 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9421 or linux_get_pc_32bit.
9422 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9423
ed443b61
YQ
94242016-02-12 Yao Qi <yao.qi@linaro.org>
9425
9426 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9427 arm_linux_get_next_pcs_fixup.
9428
020ecd38
MK
94292016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9430
9431 * tracepoint.c (x_tracepoint_action_download): Change
9432 write_inferior_data_ptr to write_inferior_data_pointer.
9433 (cmd_qtstart): Likewise.
9434 (write_inferior_data_ptr): Remove.
9435 (download_agent_expr): Change write_inferior_data_ptr to
9436 write_inferior_data_pointer.
9437 (download_tracepoint_1): Likewise.
9438 (download_tracepoint): Likewise.
9439 (download_trace_state_variables): Likewise.
9440
7cae9051
WW
94412016-02-11 Wei-cheng Wang <cole945@gmail.com>
9442 Marcin Kościelnicki <koriakin@0x04.net>
9443
9444 * tracepoint.c (struct tracepoint_action_ops): Remove.
9445 (struct tracepoint_action): Remove ops.
9446 (m_tracepoint_action_download, r_tracepoint_action_download)
9447 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9448 size and offset accordingly.
9449 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9450 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9451 (tracepoint_action_send, tracepoint_action_download): New functions.
9452 Helpers for trace action handlers.
9453 (add_tracepoint_action): Remove setup actions ops.
9454 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9455
9f6a71b4
YQ
94562016-02-10 Yao Qi <yao.qi@linaro.org>
9457
9458 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9459
1e94266c
SM
94602016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9461
9462 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9463 to AC_OUTPUT.
9464 * configure: Regenerate.
9465
8adce034
SM
94662016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9467
9468 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9469 void * to gdb_byte *.
9470 * linux-low.c (siginfo_fixup): Likewise.
9471 (linux_xfer_siginfo): Likewise.
9472 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9473 Likewise.
9474 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9475
93813b37
WT
94762016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9477
9478 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9479 to srv_tgtobj.
9480 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9481 to srv_tgtobj.
9482 * linux-x86-low.c [__x86_64__]: Include
9483 "nat/amd64-linux-siginfo.h".
9484 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9485 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9486 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9487 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9488 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9489 (cpt_si_fd, si_timerid, si_overrun): Move from
9490 nat/amd64-linux-siginfo.c.
9491 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9492
8424cc97
SM
94932016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9494
9495 * server.c (skip_to_semicolon): Remove.
9496 (process_point_options): Use strchrnul instead of
9497 skip_to_semicolon.
9498
4d18591b
YQ
94992016-01-26 Yao Qi <yao.qi@linaro.org>
9500
9501 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9502 * linux-low.c (install_software_single_step_breakpoints): Don't
9503 call regcache_read_pc.
9504 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9505 argument pc.
9506
d8020970
YQ
95072016-01-26 Yao Qi <yao.qi@linaro.org>
9508
9509 * linux-low.c (install_software_single_step_breakpoints): Call
9510 regcache_read_pc instead of get_pc.
9511
8b207339
YQ
95122016-01-26 Yao Qi <yao.qi@linaro.org>
9513
9514 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9515 (unblock_async_io): Rename to ...
9516 (block_unblock_async_io): ... it. New function.
9517 (enable_async_io): Don't install SIGIO handler. Unblock it
9518 instead.
9519 (disable_async_io): Don't ignore SIGIO. Block it instead.
9520 (initialize_async_io): Install SIGIO handler. Don't call
9521 unblock_async_io.
9522
18879fef
YQ
95232016-01-26 Yao Qi <yao.qi@linaro.org>
9524
9525 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9526 first character is '\003', call *the_target->request_interrupt.
9527
a0f8e08a
YQ
95282016-01-25 Yao Qi <yao.qi@linaro.org>
9529
9530 * remote-utils.c (new_thread_notify): Remove.
9531 (dead_thread_notify): Likewise.
9532 * remote-utils.h (new_thread_notify): Remove declaration.
9533 (dead_thread_notify): Likewise.
9534
cc5fd9ab
MK
95352016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9536
9537 * gdb.trace/pending.exp: Fix expected message on continue.
9538
99e8eb11
MK
95392016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9540
9541 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9542 it works properly on big-endian machines where sizeof (CORE_ADDR)
9543 != sizeof (void *).
9544
a994041d
PA
95452016-01-21 Pedro Alves <palves@redhat.com>
9546
9547 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9548 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9549 * configure: Regenerate.
9550
f7a6a40d
YQ
95512016-01-21 Yao Qi <yao.qi@linaro.org>
9552
9553 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9554 is_thumb and set it according to CPSR saved on the stack.
9555 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9556 arm_sigreturn_next_pc.
9557
6f69e520
YQ
95582016-01-18 Yao Qi <yao.qi@linaro.org>
9559
9560 * linux-low.c (linux_set_pc_64bit): New function.
9561 (linux_get_pc_64bit): New function.
9562 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9563 Declare.
9564 * linux-sparc-low.c (debug_threads): Remove declaration.
9565 (sparc_get_pc): Remove.
9566 (the_low_target): Use linux_get_pc_64bit instead of
9567 sparc_get_pc.
9568 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9569 (the_low_target): Use linux_get_pc_64bit and
9570 linux_set_pc_64bit.
9571
276d4552
YQ
95722016-01-18 Yao Qi <yao.qi@linaro.org>
9573
9574 * linux-arm-low.c (debug_threads): Remove declaration.
9575 (arm_get_pc, arm_set_pc): Remove.
9576 (the_low_target): Use linux_get_pc_32bit and
9577 linux_set_pc_32bit.
9578 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9579 (the_low_target): Use linux_get_pc_32bit and
9580 linux_set_pc_32bit.
9581 * linux-cris-low.c (debug_threads): Remove declaration.
9582 (cris_get_pc, cris_set_pc,): Remove.
9583 (the_low_target): Use linux_get_pc_32bit and
9584 linux_set_pc_32bit.
9585 * linux-crisv32-low.c (debug_threads): Remove declaration.
9586 (cris_get_pc, cris_set_pc): Remove.
9587 (the_low_target): Use linux_get_pc_32bit and
9588 linux_set_pc_32bit.
9589 * linux-low.c: Include inttypes.h.
9590 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9591 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9592 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9593 (the_low_target): Use linux_get_pc_32bit and
9594 linux_set_pc_32bit.
9595 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9596 (the_low_target): Use linux_get_pc_32bit and
9597 linux_set_pc_32bit.
9598 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9599 (the_low_target): Use linux_get_pc_32bit and
9600 linux_set_pc_32bit.
9601 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9602 (the_low_target): Use linux_get_pc_32bit and
9603 linux_set_pc_32bit.
9604 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9605 (the_low_target): Use linux_get_pc_32bit and
9606 linux_set_pc_32bit.
9607
eb0edac8
GB
96082016-01-18 Gary Benson <gbenson@redhat.com>
9609
9610 * configure.ac (AC_FUNC_FORK): New check.
9611 * config.in: Regenerate.
9612 * configure: Likewise.
9613
1b451dda
YQ
96142016-01-14 Yao Qi <yao.qi@linaro.org>
9615
9616 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9617 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9618 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9619 arm_get_next_pcs_ctor.
9620
82075af2
JS
96212016-01-12 Josh Stone <jistone@redhat.com>
9622 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9623
9624 * inferiors.h: Include "gdb_vecs.h".
9625 (struct process_info): Add syscalls_to_catch.
9626 * inferiors.c (remove_process): Free syscalls_to_catch.
9627 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9628 syscall_return stops.
9629 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9630 * server.c (handle_general_set): Handle QCatchSyscalls.
9631 (handle_query): Report support for QCatchSyscalls.
9632 * target.h (struct target_ops): Add supports_catch_syscall.
9633 (target_supports_catch_syscall): New macro.
9634 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9635 (struct lwp_info): Add syscall_state.
9636 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9637 Maintain syscall_state and syscalls_to_catch across exec.
9638 (get_syscall_trapinfo): New function, proxy to the_low_target.
9639 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9640 (linux_low_filter_event): Toggle syscall_state entry/return for
9641 syscall traps, and set it ignored for all others.
9642 (gdb_catching_syscalls_p): New function.
9643 (gdb_catch_this_syscall_p): New function.
9644 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9645 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9646 (linux_supports_catch_syscall): New function.
9647 (linux_target_ops): Install it.
9648 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9649 (the_low_target): Install it.
9650
8f13a3ce
MF
96512016-01-12 Mike Frysinger <vapier@gentoo.org>
9652
9653 * acinclude.m4: Include new ../warning.m4 file.
9654 * configure: Regenerated.
9655 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9656
5b3da067
MF
96572016-01-12 Mike Frysinger <vapier@gentoo.org>
9658
9659 * ax.c (is_goto_target): Mark static.
9660 * linux-low.c (register_addr): Likewise.
9661 (linux_fetch_registers, linux_store_registers): Likewise.
9662 * mem-break.c (any_persistent_commands): Fix old prototype.
9663 (add_commands_to_breakpoint): Mark static.
9664 * regcache.c (find_register_by_name): Delete unused func.
9665 * remote-utils.c (hex_or_minus_one): Mark static.
9666 * server.c (monitor_show_help): Mark static.
9667 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9668 handle_v_requests): Likewise.
9669
bc504a31
PA
96702016-01-12 Pedro Alves <palves@redhat.com>
9671
9672 Remove use of the registered trademark symbol throughout.
9673
5a0dd67a
YQ
96742016-01-08 Yao Qi <yao.qi@linaro.org>
9675
9676 * remote-utils.c (getpkt): If c is '\003', call target hook
9677 request_interrupt.
9678
b2ca446f
YQ
96792016-01-06 Yao Qi <yao.qi@linaro.org>
9680
9681 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9682 linux-aarch32-low.c.
9683 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9684 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9685 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9686 (thumb2_breakpoint): Declare.
9687 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9688 linux-aarch32-low.h.
9689 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9690 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9691 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9692
edd88788
JB
96932016-01-01 Joel Brobecker <brobecker@adacore.com>
9694
9695 * gdbreplay.c (gdbreplay_version): Change copyright year in
9696 version message.
9697 * server.c (gdbserver_version): Likewise.
9698
65da7f14
PP
96992015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9700
9701 * server.c (crc32_table): Delete.
9702 (crc32): Use libiberty's xcrc32 function.
9703
4abd5ed2
JB
97042015-12-22 Joel Brobecker <brobecker@adacore.com>
9705
9706 * lynx-low.c (lynx_delete_thread_callback): New function.
9707 (lynx_mourn): Properly delete our process and all of its
9708 threads. Remove call to clear_inferiors.
9709
0e50fe5c
JB
97102015-12-22 Joel Brobecker <brobecker@adacore.com>
9711
9712 * target.c (thread_search_callback): Add check that
9713 the thread_stopped target callback is not NULL before
9714 calling it.
9715
35adc03f
YQ
97162015-12-21 Yao Qi <yao.qi@linaro.org>
9717
9718 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9719 arm breakpoint.
9720
bd2b2909
AT
97212015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9722
9723 * server.c (handle_query): Call target_supports_software_single_step.
9724
7fe5e27e
AT
97252015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9726
9727 * linux-low.c (single_step): New function.
9728 (linux_resume_one_lwp_throw): Call single_step.
9729 (start_step_over): Likewise.
9730
d9311bfa
AT
97312015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9732
9733 * Makefile.in (SFILES): Append arch/arm-linux.c,
9734 arch/arm-get-next-pcs.c.
9735 (arm-linux.o): New rule.
9736 (arm-get-next-pcs.o): New rule.
9737 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9738 arm-linux.o.
9739 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9740 to linux-aarch32-low.c.
9741 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9742 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9743 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9744 (thumb2_breakpoint_len): Likewise.
9745 (arm_is_thumb_mode): Make non-static.
9746 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9747 from linux-aarch32-low.c.
9748 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9749 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9750 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9751 (thumb2_breakpoint_len): Likewise.
9752 (arm_is_thumb_mode): New declaration.
9753 * linux-arm-low.c: Include arch/arm-linux.h
9754 aarch/arm-get-next-pcs.h, sys/syscall.h.
9755 (get_next_pcs_ops): New struct.
9756 (get_next_pcs_addr_bits_remove): New function.
9757 (get_next_pcs_is_thumb): New function.
9758 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9759 (arm_sigreturn_next_pc): Likewise.
9760 (get_next_pcs_syscall_next_pc): Likewise.
9761 (arm_gdbserver_get_next_pcs): Likewise.
9762 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9763 Initialize.
9764 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9765 * server.h: Include gdb_vecs.h.
9766
68ce2059
AT
97672015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9768
9769 * Makefile.in (SFILES): Append common/common-regcache.c.
9770 (OBS): Append common-regcache.o.
9771 (common-regcache.o): New rule.
9772 * regcache.c (init_register_cache): Initialize cache to
9773 REG_UNAVAILABLE.
9774 (regcache_raw_read_unsigned): New function.
9775 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9776 register_status enum.
9777
fa5308bd
AT
97782015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9779
9780 * linux-aarch64-low.c (the_low_targets): Rename
9781 breakpoint_reinsert_addr to get_next_pcs.
9782 * linux-arm-low.c (the_low_targets): Likewise.
9783 * linux-bfin-low.c (the_low_targets): Likewise.
9784 * linux-cris-low.c (the_low_targets): Likewise.
9785 * linux-crisv32-low.c (the_low_targets): Likewise.
9786 * linux-low.c (can_software_single_step): Likewise.
9787 (install_software_single_step_breakpoints): New function.
9788 (start_step_over): Use install_software_single_step_breakpoints.
9789 * linux-low.h: New CORE_ADDR vector.
9790 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9791 get_next_pcs.
9792 * linux-mips-low.c (the_low_targets): Likewise.
9793 * linux-nios2-low.c (the_low_targets): Likewise.
9794 * linux-sparc-low.c (the_low_targets): Likewise.
9795
4a6ed09b
PA
97962015-12-17 Pedro Alves <palves@redhat.com>
9797
9798 * linux-low.c (linux_kill_one_lwp): Remove references to
9799 LinuxThreads.
9800 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9801 to 'kill'.
9802 (linux_init_signals): Delete.
9803 (initialize_low): Adjust.
9804 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9805
7544db95
PA
98062015-12-16 Pedro Alves <palves@redhat.com>
9807
9808 * configure.ac (compiler warning flags): When testing a
9809 -Wno-foo option, check whether -Wfoo works instead.
9810 * configure: Regenerate.
9811
8020350c
DB
98122015-12-11 Don Breazeal <donb@codesourcery.com>
9813
9814 * server.c (process_serial_event): Don't exit from gdbserver
9815 in remote mode if there are still active inferiors.
9816
db91f502
YQ
98172015-12-11 Yao Qi <yao.qi@linaro.org>
9818
9819 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9820 arm_breakpoint_at if the process is 32-bit.
9821
b37a6290
YQ
98222015-12-11 Yao Qi <yao.qi@linaro.org>
9823
9824 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9825 arm breakpoint.
9826
17b1509a
YQ
98272015-12-07 Yao Qi <yao.qi@linaro.org>
9828
9829 * configure.srv: Append arm.o to srv_tgtobj for
9830 aarch64*-*-linux* target.
9831 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9832 from linux-arm-low.c.
9833 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9834 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9835 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9836 (thumb2_breakpoint_len): Likewise.
9837 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9838 (arm_breakpoint_kinds): Likewise.
9839 (arm_breakpoint_kind_from_pc): Likewise.
9840 (arm_sw_breakpoint_from_kind): Likewise.
9841 (arm_breakpoint_kind_from_current_state): Likewise.
9842 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9843 (arm_sw_breakpoint_from_kind): Declare.
9844 (arm_breakpoint_kind_from_current_state): Declare.
9845 (arm_breakpoint_at): Declare.
9846 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9847 arm_sw_breakpoint_from_kind if process is 32-bit.
9848 (aarch64_breakpoint_kind_from_pc): New function.
9849 (aarch64_breakpoint_kind_from_current_state): New function.
9850 (the_low_target): Initialize fields breakpoint_kind_from_pc
9851 and breakpoint_kind_from_current_state.
9852 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9853 linux-aarch32-low.c.
9854 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9855 (arm_breakpoint, arm_breakpoint_len): Likewise.
9856 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9857 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9858 (arm_is_thumb_mode): Likewise.
9859 (arm_breakpoint_at): Likewise.
9860 (arm_breakpoint_kind_from_pc): Likewise.
9861 (arm_sw_breakpoint_from_kind): Likewise.
9862 (arm_breakpoint_kind_from_current_state): Likewise.
9863
9864 Revert:
9865 2015-08-04 Yao Qi <yao.qi@linaro.org>
9866
9867 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9868 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9869 * server.c (extended_protocol): Remove "static".
9870 * server.h (extended_protocol): Declare it.
9871
ece66d65
JS
98722015-12-04 Josh Stone <jistone@redhat.com>
9873
9874 * target.h (struct target_ops) <arch_setup>: Rename to ...
9875 (struct target_ops) <post_create_inferior>: ... this.
9876 (target_arch_setup): Rename to ...
9877 (target_post_create_inferior): ... this, calling post_create_inferior.
9878 * server.c (start_inferior): Update target_arch_setup calls to
9879 target_post_create_inferior.
9880 * linux-low.c (linux_low_ptrace_options): Forward declare.
9881 (linux_arch_setup): Update its comment for general use.
9882 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9883 (struct linux_target_ops): Use linux_post_create_inferior.
9884 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9885 to post_create_inferior.
9886 * nto-low.c (struct nto_target_ops): Likewise.
9887 * spu-low.c (struct spu_target_ops): Likewise.
9888 * win32-low.c (struct win32_target_ops): Likewise.
9889
e58c48b4
AT
98902015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9891
9892 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9893
fbec8956
AT
98942015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9895
9896 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9897 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9898 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9899 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9900 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9901 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9902 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9903 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9904 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9905 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9906 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9907 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9908
9b4c5f87
AT
99092015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9910
9911 * linux-low.c (linux_look_up_symbols): Don't call
9912 linux_supports_traceclone.
9913 * linux-low.h (thread_db_init): Remove use_events argument.
9914 * thread-db.c (thread_db_use_event): Remove global variable.
9915 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9916 (struct thread_db) <td_create_bp>: Remove field.
9917 (thread_db_create_event): Remove function.
9918 (thread_db_enable_reporting): Likewise.
9919 (find_one_thread): Don't check for thread_db_use_events.
9920 (attach_thread): Likewise.
9921 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9922 (try_thread_db_load_1): Don't check for thread_db_use_events.
9923 (thread_db_init): Remove use_events argument and thread events
9924 handling.
9925 (remove_thread_event_breakpoints): Remove function.
9926 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9927
7d00775e
AT
99282015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9929
9930 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9931 New function.
9932 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9933 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9934 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9935 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9936 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9937 Initialize.
9938 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9939 New function.
9940 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9941 * linux-low.c (can_hardware_single_step): Use
9942 supports_hardware_single_step.
9943 (can_software_single_step): New function.
9944 (start_step_over): Call can_software_single_step.
9945 (linux_supports_hardware_single_step): New function.
9946 (struct target_ops) <supports_software_single_step>: Initialize.
9947 * linux-low.h (struct linux_target_ops)
9948 <supports_hardware_single_step>: Initialize.
9949 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9950 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9951 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9952 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9953 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9954 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9955 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9956 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9957 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9958 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9959 Initialize.
9960 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9961 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9962 Initialize.
9963 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9964 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9965 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9966 New function.
9967 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9968 * target.h (struct target_ops): <supports_software_single_step>:
9969 New field.
9970 (target_supports_software_single_step): New macro.
9971
2d97cd35
AT
99722015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9973
9974 * linux-low.c (linux_wait_1): Fix pc advance condition.
9975 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9976 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9977
769ef81f
AT
99782015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9979
9980 * linux-arm-low.c (arm_is_thumb_mode): New function.
9981 (arm_breakpoint_at): Use arm_is_thumb_mode.
9982 (arm_breakpoint_kind_from_current_state): New function.
9983 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9984 Initialize.
9985 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9986 (linux_breakpoint_kind_from_current_state): New function.
9987 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9988 * linux-low.h (struct linux_target_ops)
9989 <breakpoint_kind_from_current_state>: New field.
9990 * target.h (struct target_ops): Likewise.
9991 (target_breakpoint_kind_from_current_state): New macro.
9992
1bebeeca
PA
99932015-11-30 Pedro Alves <palves@redhat.com>
9994
9995 * linux-low.c (linux_resume): Wake up the event loop before
9996 returning.
9997
a67a9fae
PA
99982015-11-30 Pedro Alves <palves@redhat.com>
9999
10000 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
10001 check.
10002 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
10003 to -1.
10004 * target.c (struct thread_search): New structure.
10005 (thread_search_callback): New function.
10006 (prev_general_thread): New global.
10007 (prepare_to_access_memory, done_accessing_memory): New functions.
10008 * target.h (prepare_to_access_memory, done_accessing_memory):
10009 Replace macros with function declarations.
10010
f2faf941
PA
100112015-11-30 Pedro Alves <palves@redhat.com>
10012
10013 PR 14618
10014 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
10015 report TARGET_WAITKIND_NO_RESUMED.
10016 * remote-utils.c (prepare_resume_reply): Handle
10017 TARGET_WAITKIND_NO_RESUMED.
10018 * server.c (report_no_resumed): New global.
10019 (handle_query) <qSupported>: Handle "no-resumed+". Report
10020 "no-resumed+" support.
10021 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
10022 return error if the client doesn't support no-resumed events.
10023 (push_stop_notification): New function.
10024 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
10025 events if the client supports them.
10026
a681f9c9
PA
100272015-11-30 Pedro Alves <palves@redhat.com>
10028
10029 * linux-low.c (thread_still_has_status_pending_p): Don't check
10030 vCont;t here.
10031 (lwp_resumed): New function.
10032 (status_pending_p_callback): Return early if the LWP is not
10033 supposed to be resumed.
10034
65706a29
PA
100352015-11-30 Pedro Alves <palves@redhat.com>
10036
10037 * linux-low.c (handle_extended_wait): Assert that the LWP's
10038 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
10039 thread create events, leave the new child's status pending.
10040 (linux_low_filter_event): If GDB wants to hear about thread exit
10041 events, leave the LWP marked dead and don't delete it.
10042 (linux_wait_for_event_filtered): Don't check for thread exit.
10043 (filter_exit_event): New function.
10044 (linux_wait_1): Use it, when returning an exit event.
10045 (linux_resume_one_lwp_throw): Assert that the LWP's
10046 waitstatus is TARGET_WAITKIND_IGNORE.
10047 * remote-utils.c (prepare_resume_reply): Handle
10048 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
10049 * server.c (report_thread_events): New global.
10050 (handle_general_set): Handle QThreadEvents.
10051 (handle_query) <qSupported>: Handle and report QThreadEvents+;
10052 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
10053 TARGET_WAITKIND_THREAD_EXITED.
10054 * server.h (report_thread_events): Declare.
10055
56cf4bed
PA
100562015-11-30 Pedro Alves <palves@redhat.com>
10057
10058 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
10059 the thread's last_resume_kind was resume_stop.
10060
500c1d85
PA
100612015-11-30 Pedro Alves <palves@redhat.com>
10062
10063 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10064 before returning.
10065
de979965
PA
100662015-11-30 Pedro Alves <palves@redhat.com>
10067
10068 * server.c (handle_v_requests): Handle vCtrlC.
10069
34c65914
PA
100702015-11-30 Pedro Alves <palves@redhat.com>
10071
10072 * gdbthread.h (find_any_thread_of_pid): Declare.
10073 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10074 functions.
10075 * server.c (handle_query): If current_thread is NULL, look for
10076 another thread of the selected process.
10077
79efa585 100782015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 10079 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
10080
10081 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10082 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10083 name in reply.
10084 * target.h (struct target_ops) <thread_name>: New field.
10085 (target_thread_name): New macro.
10086
80d82c19
JB
100872015-11-23 Joel Brobecker <brobecker@adacore.com>
10088
10089 * regcache.h (regcache_invalidate_pid): Add declaration.
10090 * regcache.c (regcache_invalidate_pid): New function, extracted
10091 from regcache_invalidate.
10092 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10093 Add trivial documentation comment.
10094 * lynx-low.c: Use regcache_invalidate_pid instead of
10095 regcache_invalidate.
10096
64da5dd5
JB
100972015-11-23 Joel Brobecker <brobecker@adacore.com>
10098
10099 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10100 and Elf64_auxv_t if the target is Android.
10101
37ce4055
DE
101022015-11-22 Doug Evans <xdje42@gmail.com>
10103
10104 * target.h: #include <sys/types.h>.
10105
06e03fff
PA
101062015-11-19 Pedro Alves <palves@redhat.com>
10107
10108 * linux-low.c (linux_process_qsupported): Change prototype.
10109 Adjust.
10110 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10111 Change prototype.
10112 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10113 and adjust to loop over all features.
10114 * server.c (handle_query) <qSupported>: Adjust to call
10115 target_process_qsupported once, passing it a vector of unprocessed
10116 features.
10117 * target.h (struct target_ops) <process_qsupported>: Change
10118 prototype.
10119 (target_process_qsupported): Adjust.
10120
9a084706
PA
101212015-11-19 Pedro Alves <palves@redhat.com>
10122
10123 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10124 mode.
10125 * configure: Regenerate.
10126
dad44a1f
PA
101272015-11-19 Pedro Alves <palves@redhat.com>
10128
10129 * configure: Regenerate.
10130
231c0592
YQ
101312015-11-19 Yao Qi <yao.qi@linaro.org>
10132
10133 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10134 type to uint32_t.
10135
6c1c9a8b
YQ
101362015-11-19 Yao Qi <yao.qi@linaro.org>
10137
10138 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10139 (struct aarch64_operand): Move enum out.
10140
9caa3311
YQ
101412015-11-19 Yao Qi <yao.qi@linaro.org>
10142
10143 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10144 struct user_fpsimd_state *.
10145 (aarch64_store_fpregset): Likewise.
10146
6a69a054
YQ
101472015-11-19 Yao Qi <yao.qi@linaro.org>
10148
10149 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10150 struct user_pt_regs *.
10151 (aarch64_store_gregset): Likewise.
10152
1798301e
PA
101532015-11-18 Pedro Alves <palves@redhat.com>
10154
10155 * Makefile.in (all_object_files): Add $IPA_OBJS.
10156
ce7715e2
PA
101572015-11-17 Pedro Alves <palves@redhat.com>
10158
10159 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10160 GDB_SIGNAL_0 and gdb_signal_to_string.
10161
c0879059
PA
101622015-11-17 Pedro Alves <palves@redhat.com>
10163
10164 * win32-low.c (handle_output_debug_string): Remove parameter.
10165 (win32_kill): Remove our_status local and adjust call to
10166 handle_output_debug_string.
10167 (get_child_debug_event): Adjust call to
10168 handle_output_debug_string.
10169
1996e237
SM
101702015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10171
10172 * linux-mips-low.c (mips_fill_gregset): Add cast.
10173 (mips_store_gregset): Likewise.
10174 (mips_fill_fpregset): Likewise.
10175 (mips_store_fpregset): Likewise.
10176
cbec665b
SM
101772015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10178
10179 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10180 priv.
10181
eb3e3c67
SM
101822015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10183
10184 * linux-mips-low.c (mips_linux_new_thread): Change type of
10185 watch_type to enum target_hw_bp_type.
10186
171de4b8
SM
101872015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10188
10189 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10190 Change return type to arm_hwbp_type.
10191
04248ead
SM
101922015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10193
10194 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10195 (arm_store_gregset): Likewise.
10196 * linux-arm-low.c (arm_get_hwcap): Likewise.
10197 (arm_read_description): Likewise.
10198
04b3479c
SM
101992015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10200
10201 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10202
2bc84e8a
SM
102032015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10204
10205 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10206 (ppc_fill_vsxregset): Likewise.
10207 (ppc_store_vsxregset): Likewise.
10208 (ppc_fill_vrregset): Likewise.
10209 (ppc_store_vrregset): Likewise.
10210 (ppc_fill_evrregset): Likewise.
10211 (ppc_store_evrregset): Likewise.
10212
e6c5bb05
SM
102132015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10214
10215 * linux-ppc-low.c (ppc_usrregs_info): Remove
10216 forward-declaration.
10217 (ppc_arch_setup): Move lower in file.
10218
7ea45d72
SM
102192015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10220
10221 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10222 (ps_pdwrite): Likewise.
10223
69291610
HW
102242015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10225
10226 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10227 to after assert checks.
10228
b42945fd
SM
102292015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10230
10231 * proc-service.c (ps_pdread): Add/adjust casts.
10232 (ps_pdwrite): Add/adjust casts.
10233
d6f85c84
SM
102342015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10235
10236 * server.c (handle_search_memory_1): Cast return value of
10237 memmem.
10238
f98cd059
SM
102392015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10240
10241 * server.c (write_qxfer_response): Change type of data to
10242 gdb_byte *.
10243
d2412fa5
PA
102442015-10-29 Pedro Alves <palves@redhat.com>
10245
10246 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10247
c17414a2
PA
102482015-10-29 Pedro Alves <palves@redhat.com>
10249
10250 * tracepoint.c (clear_installed_tracepoints): Add casts.
10251
e053fbc4
PA
102522015-10-29 Pedro Alves <palves@redhat.com>
10253
10254 * server.c (handle_v_cont, process_serial_event): Add enum
10255 gdb_signal casts to signal parsing code.
10256
add67df8
PA
102572015-10-29 Pedro Alves <palves@redhat.com>
10258
10259 * linux-low.h (NULL_REGSET): Define.
10260 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10261 * linux-arm-low.c (arm_regsets): Likewise.
10262 * linux-crisv32-low.c (cris_regsets): Likewise.
10263 * linux-m68k-low.c (m68k_regsets): Likewise.
10264 * linux-mips-low.c (mips_regsets): Likewise.
10265 * linux-nios2-low.c (nios2_regsets): Likewise.
10266 * linux-ppc-low.c (ppc_regsets): Likewise.
10267 * linux-s390-low.c (s390_regsets): Likewise.
10268 * linux-sh-low.c (sh_regsets): Likewise.
10269 * linux-sparc-low.c (sparc_regsets): Likewise.
10270 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10271 * linux-tile-low.c (tile_regsets): Likewise.
10272 * linux-x86-low.c (x86_regsets): Likewise.
10273 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10274
50bc912a
PA
102752015-10-29 Pedro Alves <palves@redhat.com>
10276
10277 * linux-low.h (NULL_REGSET): Define.
10278 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10279 * linux-arm-low.c (arm_regsets): Likewise.
10280 * linux-crisv32-low.c (cris_regsets): Likewise.
10281 * linux-m68k-low.c (m68k_regsets): Likewise.
10282 * linux-mips-low.c (mips_regsets): Likewise.
10283 * linux-nios2-low.c (nios2_regsets): Likewise.
10284 * linux-ppc-low.c (ppc_regsets): Likewise.
10285 * linux-s390-low.c (s390_regsets): Likewise.
10286 * linux-sh-low.c (sh_regsets): Likewise.
10287 * linux-sparc-low.c (sparc_regsets): Likewise.
10288 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10289 * linux-tile-low.c (tile_regsets): Likewise.
10290 * linux-x86-low.c (x86_regsets): Likewise.
10291 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10292
682b2546
DE
102932015-10-26 Doug Evans <dje@google.com>
10294
10295 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10296
963843d4
DE
102972015-10-26 Doug Evans <dje@google.com>
10298
10299 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10300
d41401ac
DE
103012015-10-26 Doug Evans <dje@google.com>
10302
10303 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10304 for debug_printf.
10305 (attach_thread, find_new_threads_callback): Ditto.
10306
3db28855
AT
103072015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10308
10309 * mem-break.h (set_breakpoint_data): Remove.
10310
fb78e89c
AT
103112015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10312
10313 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10314 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10315 (initialize_low): Remove set_breakpoint_data call.
10316 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10317 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10318 (initialize_low): Remove set_breakpoint_data call.
10319 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10320 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10321 (initialize_low): Remove set_breakpoint_data call.
10322
2e6ee069
AT
103232015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10324
10325 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10326 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10327 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10328 * target.h (target_breakpoint_kind_from_pc): New macro.
10329
1652a986
AT
103302015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10331
10332 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10333 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10334 the default breakpoint kind.
10335
abeead09
AT
103362015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10337
10338 * linux-arm-low.c (arm_supports_z_point_type): Add software
10339 breakpoint support.
10340
b0b4b501
AT
103412015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10342
10343 * linux-arm-low.c: Refactor breakpoint definitions.
10344 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10345 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10346
8689682c
AT
103472015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10348
10349 * Makefile.in: Add arm.c/o.
10350 * configure.srv: Likewise.
10351 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10352 (arm_breakpoint_kind_from_pc): New function.
10353 (arm_sw_breakpoint_from_kind): Return proper kind.
10354 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10355
27165294
AT
103562015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10357
10358 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10359 removal.
10360 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10361 (struct raw_breakpoint) <size>: Remove.
10362 (struct raw_breakpoint) <kind>: Add.
10363 (bp_size): New function.
10364 (bp_opcode): Likewise.
10365 (find_raw_breakpoint_at): Adjust for kind.
10366 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10367 (remove_memory_breakpoint): Adjust for kind call bp_size.
10368 (set_raw_breakpoint_at): Adjust for kind.
10369 (set_breakpoint): Likewise.
10370 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10371 (delete_raw_breakpoint): Adjust for kind.
10372 (delete_breakpoint): Likewise.
10373 (find_gdb_breakpoint): Likewise.
10374 (set_gdb_breakpoint_1): Likewise.
10375 (set_gdb_breakpoint): Likewise.
10376 (delete_gdb_breakpoint_1): Likewise.
10377 (delete_gdb_breakpoint): Likewise.
10378 (uninsert_raw_breakpoint): Likewise.
10379 (reinsert_raw_breakpoint): Likewise.
10380 (set_breakpoint_data): Remove.
10381 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10382 (check_mem_read): Adjust for kind call bp_size.
10383 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10384 (clone_one_breakpoint): Adjust for kind.
10385 * mem-break.h (set_gdb_breakpoint): Likewise.
10386 (delete_gdb_breakpoint): Likewise.
10387 * server.c (process_serial_event): Likewise.
10388
dd373349
AT
103892015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10390
10391 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10392 (struct linux_target_ops) <breakpoint>: Remove.
10393 (struct linux_target_ops) <breakpoint_len>: Remove.
10394 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10395 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10396 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10397 (arm_sw_breakpoint_from_kind): New function.
10398 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10399 (struct linux_target_ops) <breakpoint>: Remove.
10400 (struct linux_target_ops) <breakpoint_len>: Remove.
10401 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10402 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10403 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10404 (struct linux_target_ops) <breakpoint>: Remove.
10405 (struct linux_target_ops) <breakpoint_len>: Remove.
10406 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10407 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10408 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10409 (struct linux_target_ops) <breakpoint>: Remove.
10410 (struct linux_target_ops) <breakpoint_len>: Remove.
10411 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10412 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10413 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10414 and sw_breakpoint_from_kind to increment the pc.
10415 (linux_breakpoint_kind_from_pc): New function.
10416 (linux_sw_breakpoint_from_kind): New function.
10417 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10418 (initialize_low): Call breakpoint_kind_from_pc and
10419 sw_breakpoint_from_kind to replace breakpoint_data/len.
10420 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10421 New field.
10422 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10423 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10424 (struct linux_target_ops) <breakpoint>: Remove.
10425 (struct linux_target_ops) <breakpoint_len>: Remove.
10426 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10427 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10428 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10429 (struct linux_target_ops) <breakpoint>: Remove.
10430 (struct linux_target_ops) <breakpoint_len>: Remove.
10431 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10432 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10433 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10434 (struct linux_target_ops) <breakpoint>: Remove.
10435 (struct linux_target_ops) <breakpoint_len>: Remove.
10436 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10437 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10438 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10439 (struct linux_target_ops) <breakpoint>: Remove.
10440 (struct linux_target_ops) <breakpoint_len>: Remove.
10441 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10442 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10443 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10444 (struct linux_target_ops) <breakpoint>: Remove.
10445 (struct linux_target_ops) <breakpoint_len>: Remove.
10446 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10447 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10448 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10449 (struct linux_target_ops) <breakpoint>: Remove.
10450 (struct linux_target_ops) <breakpoint_len>: Remove.
10451 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10452 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10453 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10454 (struct linux_target_ops) <breakpoint>: Remove.
10455 (struct linux_target_ops) <breakpoint_len>: Remove.
10456 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10457 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10458 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10459 (struct linux_target_ops) <breakpoint>: Remove.
10460 (struct linux_target_ops) <breakpoint_len>: Remove.
10461 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10462 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10463 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10464 (struct linux_target_ops) <breakpoint>: Remove.
10465 (struct linux_target_ops) <breakpoint_len>: Remove.
10466 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10467 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10468 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10469 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10470 (struct linux_target_ops) <breakpoint>: Remove.
10471 (struct linux_target_ops) <breakpoint_len>: Remove.
10472 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10473 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10474 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10475 (struct linux_target_ops) <breakpoint>: Remove.
10476 (struct linux_target_ops) <breakpoint_len>: Remove.
10477 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10478 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10479
4cd98a19
AT
104802015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10481
10482 * linux-cris-low.c (cris_get_pc): Remove void arg.
10483
774ee6d2
AR
104842015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10485
10486 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10487 variable name.
10488
833dcd29
AR
104892015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10490
10491 * inferiors.c (thread_pid_matches_callback): New function.
10492 (find_thread_process): New function.
10493 (remove_thread): Reset current_thread.
10494 (remove_process): Assert threads have been removed first.
10495
8d689ee5
YQ
104962015-10-15 Yao Qi <yao.qi@linaro.org>
10497
10498 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10499 if it is 3.
10500 (aarch64_remove_point): Likewise.
10501 * regcache.c (regcache_register_size): New function.
10502
1c2e1515
YQ
105032015-10-12 Yao Qi <yao.qi@linaro.org>
10504
10505 * linux-aarch64-low.c: Update all callers as emit_load_store
10506 is renamed to aarch64_emit_load_store.
10507
e1c587c3
YQ
105082015-10-12 Yao Qi <yao.qi@linaro.org>
10509
10510 * linux-aarch64-low.c: Update all callers of function renaming
10511 from emit_insn to aarch64_emit_insn.
10512
b6542f81
YQ
105132015-10-12 Yao Qi <yao.qi@linaro.org>
10514
10515 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10516 arch/aarch64-insn.h.
10517 (struct aarch64_memory_operand): Likewise.
10518 (ENCODE): Likewise.
10519 (emit_insn): Move to arch/aarch64-insn.c.
10520 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10521 (emit_load_store): Move to arch/aarch64-insn.c.
10522 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10523 (can_encode_int32): Remove.
10524
246994ce
YQ
105252015-10-12 Yao Qi <yao.qi@linaro.org>
10526
10527 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10528 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10529 (aarch64_relocate_instruction): Likewise.
10530 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10531 (struct aarch64_insn_visitor): Likewise.
10532
0badd99f
YQ
105332015-10-12 Yao Qi <yao.qi@linaro.org>
10534
10535 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10536 (struct aarch64_insn_visitor): New.
10537 (struct aarch64_insn_relocation_data): New.
10538 (aarch64_ftrace_insn_reloc_b): New function.
10539 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10540 (aarch64_ftrace_insn_reloc_cb): Likewise.
10541 (aarch64_ftrace_insn_reloc_tb): Likewise.
10542 (aarch64_ftrace_insn_reloc_adr): Likewise.
10543 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10544 (aarch64_ftrace_insn_reloc_others): Likewise.
10545 (visitor): New.
10546 (aarch64_relocate_instruction): Use visitor.
10547
dfaffe9d
YQ
105482015-10-12 Yao Qi <yao.qi@linaro.org>
10549
10550 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10551 int. Add argument buf.
10552 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10553 aarch64_relocate_instruction.
10554
70b439f0
YQ
105552015-10-12 Yao Qi <yao.qi@linaro.org>
10556
10557 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10558 argument insn. Remove local variable insn. Don't call
10559 target_read_uint32.
10560 (aarch64_install_fast_tracepoint_jump_pad): Call
10561 target_read_uint32.
10562
7781c06f
YQ
105632015-09-30 Yao Qi <yao.qi@linaro.org>
10564
10565 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10566 (emit_load_store_pair): Likewise.
10567
9a3c8263
SM
105682015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10569
10570 * dll.c (match_dll): Add cast(s).
10571 (unloaded_dll): Likewise.
10572 * linux-low.c (second_thread_of_pid_p): Likewise.
10573 (delete_lwp_callback): Likewise.
10574 (count_events_callback): Likewise.
10575 (select_event_lwp_callback): Likewise.
10576 (linux_set_resume_request): Likewise.
10577 * server.c (accumulate_file_name_length): Likewise.
10578 (emit_dll_description): Likewise.
10579 (handle_qxfer_threads_worker): Likewise.
10580 (visit_actioned_threads): Likewise.
10581 * thread-db.c (any_thread_of): Likewise.
10582 * tracepoint.c (same_process_p): Likewise.
10583 (match_blocktype): Likewise.
10584 (build_traceframe_info_xml): Likewise.
10585
224c3ddb
SM
105862015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10587
10588 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10589 assignment.
10590 (gdb_unparse_agent_expr): Likewise.
10591 * hostio.c (require_data): Likewise.
10592 (handle_pread): Likewise.
10593 * linux-low.c (disable_regset): Likewise.
10594 (fetch_register): Likewise.
10595 (store_register): Likewise.
10596 (get_dynamic): Likewise.
10597 (linux_qxfer_libraries_svr4): Likewise.
10598 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10599 (set_fast_tracepoint_jump): Likewise.
10600 (uninsert_fast_tracepoint_jumps_at): Likewise.
10601 (reinsert_fast_tracepoint_jumps_at): Likewise.
10602 (validate_inserted_breakpoint): Likewise.
10603 (clone_agent_expr): Likewise.
10604 * regcache.c (init_register_cache): Likewise.
10605 * remote-utils.c (putpkt_binary_1): Likewise.
10606 (decode_M_packet): Likewise.
10607 (decode_X_packet): Likewise.
10608 (look_up_one_symbol): Likewise.
10609 (relocate_instruction): Likewise.
10610 (monitor_output): Likewise.
10611 * server.c (handle_search_memory): Likewise.
10612 (handle_qxfer_exec_file): Likewise.
10613 (handle_qxfer_libraries): Likewise.
10614 (handle_qxfer): Likewise.
10615 (handle_query): Likewise.
10616 (handle_v_cont): Likewise.
10617 (handle_v_run): Likewise.
10618 (captured_main): Likewise.
10619 * target.c (write_inferior_memory): Likewise.
10620 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10621 * tracepoint.c (init_trace_buffer): Likewise.
10622 (add_tracepoint_action): Likewise.
10623 (add_traceframe): Likewise.
10624 (add_traceframe_block): Likewise.
10625 (cmd_qtdpsrc): Likewise.
10626 (cmd_qtdv): Likewise.
10627 (cmd_qtstatus): Likewise.
10628 (response_source): Likewise.
10629 (response_tsv): Likewise.
10630 (cmd_qtnotes): Likewise.
10631 (gdb_collect): Likewise.
10632 (initialize_tracepoint): Likewise.
10633
afbe19f8
PL
106342015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10635
10636 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10637 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10638 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10639 <NOP>: New.
10640 (enum aarch64_condition_codes): New enum.
10641 (w0): New static global.
10642 (fp): Likewise.
10643 (lr): Likewise.
10644 (struct aarch64_memory_operand) <type>: New
10645 MEMORY_OPERAND_POSTINDEX type.
10646 (postindex_memory_operand): New helper function.
10647 (emit_ret): New function.
10648 (emit_load_store_pair): New function, factored out of emit_stp
10649 with support for MEMORY_OPERAND_POSTINDEX.
10650 (emit_stp): Rewrite using emit_load_store_pair.
10651 (emit_ldp): New function.
10652 (emit_load_store): Likewise.
10653 (emit_ldr): Mention post-index instruction in comment.
10654 (emit_ldrh): New function.
10655 (emit_ldrb): New function.
10656 (emit_ldrsw): Mention post-index instruction in comment.
10657 (emit_str): Likewise.
10658 (emit_subs): New function.
10659 (emit_cmp): Likewise.
10660 (emit_and): Likewise.
10661 (emit_orr): Likewise.
10662 (emit_orn): Likewise.
10663 (emit_eor): Likewise.
10664 (emit_mvn): Likewise.
10665 (emit_lslv): Likewise.
10666 (emit_lsrv): Likewise.
10667 (emit_asrv): Likewise.
10668 (emit_mul): Likewise.
10669 (emit_sbfm): Likewise.
10670 (emit_sbfx): Likewise.
10671 (emit_ubfm): Likewise.
10672 (emit_ubfx): Likewise.
10673 (emit_csinc): Likewise.
10674 (emit_cset): Likewise.
10675 (emit_nop): Likewise.
10676 (emit_ops_insns): New helper function.
10677 (emit_pop): Likewise.
10678 (emit_push): Likewise.
10679 (aarch64_emit_prologue): New function.
10680 (aarch64_emit_epilogue): Likewise.
10681 (aarch64_emit_add): Likewise.
10682 (aarch64_emit_sub): Likewise.
10683 (aarch64_emit_mul): Likewise.
10684 (aarch64_emit_lsh): Likewise.
10685 (aarch64_emit_rsh_signed): Likewise.
10686 (aarch64_emit_rsh_unsigned): Likewise.
10687 (aarch64_emit_ext): Likewise.
10688 (aarch64_emit_log_not): Likewise.
10689 (aarch64_emit_bit_and): Likewise.
10690 (aarch64_emit_bit_or): Likewise.
10691 (aarch64_emit_bit_xor): Likewise.
10692 (aarch64_emit_bit_not): Likewise.
10693 (aarch64_emit_equal): Likewise.
10694 (aarch64_emit_less_signed): Likewise.
10695 (aarch64_emit_less_unsigned): Likewise.
10696 (aarch64_emit_ref): Likewise.
10697 (aarch64_emit_if_goto): Likewise.
10698 (aarch64_emit_goto): Likewise.
10699 (aarch64_write_goto_address): Likewise.
10700 (aarch64_emit_const): Likewise.
10701 (aarch64_emit_call): Likewise.
10702 (aarch64_emit_reg): Likewise.
10703 (aarch64_emit_pop): Likewise.
10704 (aarch64_emit_stack_flush): Likewise.
10705 (aarch64_emit_zero_ext): Likewise.
10706 (aarch64_emit_swap): Likewise.
10707 (aarch64_emit_stack_adjust): Likewise.
10708 (aarch64_emit_int_call_1): Likewise.
10709 (aarch64_emit_void_call_2): Likewise.
10710 (aarch64_emit_eq_goto): Likewise.
10711 (aarch64_emit_ne_goto): Likewise.
10712 (aarch64_emit_lt_goto): Likewise.
10713 (aarch64_emit_le_goto): Likewise.
10714 (aarch64_emit_gt_goto): Likewise.
10715 (aarch64_emit_ge_got): Likewise.
10716 (aarch64_emit_ops_impl): New static global variable.
10717 (aarch64_emit_ops): New target function, return
10718 &aarch64_emit_ops_impl.
10719 (struct linux_target_ops): Install it.
10720
bb903df0
PL
107212015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10722
10723 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10724 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10725 aarch64-ipa.o.
10726 * linux-aarch64-ipa.c: New file.
10727 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10728 and endian.h.
10729 (aarch64_get_thread_area): New target method.
10730 (extract_signed_bitfield): New helper function.
10731 (aarch64_decode_ldr_literal): New function.
10732 (enum aarch64_opcodes): New enum.
10733 (struct aarch64_register): New struct.
10734 (struct aarch64_operand): New struct.
10735 (x0): New static global.
10736 (x1): Likewise.
10737 (x2): Likewise.
10738 (x3): Likewise.
10739 (x4): Likewise.
10740 (w2): Likewise.
10741 (ip0): Likewise.
10742 (sp): Likewise.
10743 (xzr): Likewise.
10744 (aarch64_register): New helper function.
10745 (register_operand): Likewise.
10746 (immediate_operand): Likewise.
10747 (struct aarch64_memory_operand): New struct.
10748 (offset_memory_operand): New helper function.
10749 (preindex_memory_operand): Likewise.
10750 (enum aarch64_system_control_registers): New enum.
10751 (ENCODE): New macro.
10752 (emit_insn): New helper function.
10753 (emit_b): New function.
10754 (emit_bcond): Likewise.
10755 (emit_cb): Likewise.
10756 (emit_tb): Likewise.
10757 (emit_blr): Likewise.
10758 (emit_stp): Likewise.
10759 (emit_ldp_q_offset): Likewise.
10760 (emit_stp_q_offset): Likewise.
10761 (emit_load_store): Likewise.
10762 (emit_ldr): Likewise.
10763 (emit_ldrsw): Likewise.
10764 (emit_str): Likewise.
10765 (emit_ldaxr): Likewise.
10766 (emit_stxr): Likewise.
10767 (emit_stlr): Likewise.
10768 (emit_data_processing_reg): Likewise.
10769 (emit_data_processing): Likewise.
10770 (emit_add): Likewise.
10771 (emit_sub): Likewise.
10772 (emit_mov): Likewise.
10773 (emit_movk): Likewise.
10774 (emit_mov_addr): Likewise.
10775 (emit_mrs): Likewise.
10776 (emit_msr): Likewise.
10777 (emit_sevl): Likewise.
10778 (emit_wfe): Likewise.
10779 (append_insns): Likewise.
10780 (can_encode_int32_in): New helper function.
10781 (aarch64_relocate_instruction): New function.
10782 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10783 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10784 (struct linux_target_ops): Install aarch64_get_thread_area,
10785 aarch64_install_fast_tracepoint_jump_pad and
10786 aarch64_get_min_fast_tracepoint_insn_len.
10787
787749ea
PL
107882015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10789
10790 * Makefile.in (aarch64-insn.o): New rule.
10791 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10792
9812b2e6
YQ
107932015-09-21 Yao Qi <yao.qi@linaro.org>
10794
10795 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10796
18fe412b
YQ
107972015-09-21 Yao Qi <yao.qi@linaro.org>
10798
10799 * tracepoint.c (max_jump_pad_size): Remove.
10800
a0cc84cd
YQ
108012015-09-18 Yao Qi <yao.qi@linaro.org>
10802
10803 * linux-aarch64-low.c: Don't include sys/uio.h.
10804 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10805
d78908cf
WW
108062015-09-16 Wei-cheng Wang <cole945@gmail.com>
10807
10808 * tracepoint.c (eval_result_type): Change prototype.
10809 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10810
d57e0d50
PA
108112015-09-15 Pedro Alves <palves@redhat.com>
10812
10813 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10814 Check whether to report exec events instead of checking whether
10815 multiprocess is enabled.
10816
5a676acc
PA
108172015-09-15 Pedro Alves <palves@redhat.com>
10818
10819 PR remote/18965
10820 * remote-utils.c (prepare_resume_reply): Merge
10821 TARGET_WAITKIND_VFORK_DONE switch case with the
10822 TARGET_WAITKIND_FORKED case.
10823
7c5d0fad
YQ
108242015-09-15 Yao Qi <yao.qi@linaro.org>
10825
10826 * server.c (handle_query): Check string comparison using
10827 "else if" instead of "if".
10828
750ce8d1
YQ
108292015-09-15 Yao Qi <yao.qi@linaro.org>
10830
10831 * server.c (vCont_supported): New global variable.
10832 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10833 matches. Append ";vContSupported+" to own_buf.
10834 (handle_v_requests): Append ";s;S" to own_buf if target supports
10835 hardware single step or vCont_supported is false.
10836 (capture_main): Set vCont_supported to zero.
10837
70b90b91
YQ
108382015-09-15 Yao Qi <yao.qi@linaro.org>
10839
10840 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10841 it to ...
10842 (linux_supports_hardware_single_step): ... New function.
10843 (linux_target_ops): Update.
10844 * lynx-low.c (lynx_target_ops): Set field
10845 supports_hardware_single_step to target_can_do_hardware_single_step.
10846 * nto-low.c (nto_target_ops): Likewise.
10847 * spu-low.c (spu_target_ops): Likewise.
10848 * win32-low.c (win32_target_ops): Likewise.
10849 * target.c (target_can_do_hardware_single_step): New function.
10850 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10851 Remove. <supports_hardware_single_step>: New field.
10852 (target_supports_conditional_breakpoints): Remove.
10853 (target_supports_hardware_single_step): New macro.
10854 (target_can_do_hardware_single_step): Declare.
10855 * server.c (handle_query): Use target_supports_hardware_single_step
10856 instead of target_supports_conditional_breakpoints.
10857
ade90bde
YQ
108582015-09-15 Yao Qi <yao.qi@linaro.org>
10859
10860 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10861 function.
10862 (struct linux_target_ops the_low_target): Install
10863 aarch64_linux_siginfo_fixup.
10864
94585166
DB
108652015-09-11 Don Breazeal <donb@codesourcery.com>
10866 Luis Machado <lgustavo@codesourcery.com>
10867
10868 * linux-low.c (linux_mourn): Static declaration.
10869 (linux_arch_setup): Move in front of
10870 handle_extended_wait.
10871 (linux_arch_setup_thread): New function.
10872 (handle_extended_wait): Handle exec events. Call
10873 linux_arch_setup_thread. Make event_lwp argument a
10874 pointer-to-a-pointer.
10875 (check_zombie_leaders): Do not check stopped threads.
10876 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10877 (linux_low_filter_event): Add lwp and thread for exec'ing
10878 non-leader thread if leader thread has been deleted.
10879 Refactor code into linux_arch_setup_thread and call it.
10880 Pass child lwp pointer by reference to handle_extended_wait.
10881 (linux_wait_for_event_filtered): Update comment.
10882 (linux_wait_1): Prevent clobbering exec event status.
10883 (linux_supports_exec_events): New function.
10884 (linux_target_ops) <supports_exec_events>: Initialize new member.
10885 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10886 new member.
10887 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10888 * server.c (report_exec_events): New global variable.
10889 (handle_query): Handle qSupported query for exec-events feature.
10890 (captured_main): Initialize report_exec_events.
10891 * server.h (report_exec_events): Declare new global variable.
10892 * target.h (struct target_ops) <supports_exec_events>: New
10893 member.
10894 (target_supports_exec_events): New macro.
10895 * win32-low.c (win32_target_ops) <supports_exec_events>:
10896 Initialize new member.
10897
0568462b
MM
108982015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10899
10900 * linux-low.c (linux_low_enable_btrace): Remove.
10901 (linux_target_ops): Replace linux_low_enable_btrace with
10902 linux_enable_btrace.
10903
39edd165
YQ
109042015-09-03 Yao Qi <yao.qi@linaro.org>
10905
10906 * linux-aarch64-low.c (aarch64_insert_point): Call
10907 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10908 returns true.
10909
1db33b5a
UW
109102015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10911
10912 * linux-low.c (check_stopped_by_breakpoint): Use
10913 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10914
ab290430
PA
109152015-08-27 Pedro Alves <palves@redhat.com>
10916
10917 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10918
8d749320
SM
109192015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10920
6711b7f8
SM
10921 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10922 the XNEW-family equivalent.
8d749320
SM
10923 (compile_bytecodes): Likewise.
10924 * dll.c (loaded_dll): Likewise.
10925 * event-loop.c (append_callback_event): Likewise.
10926 (create_file_handler): Likewise.
10927 (create_file_event): Likewise.
10928 * hostio.c (handle_open): Likewise.
10929 * inferiors.c (add_thread): Likewise.
10930 (add_process): Likewise.
10931 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10932 * linux-arm-low.c (arm_new_process): Likewise.
10933 (arm_new_thread): Likewise.
10934 * linux-low.c (add_to_pid_list): Likewise.
10935 (linux_add_process): Likewise.
10936 (handle_extended_wait): Likewise.
10937 (add_lwp): Likewise.
10938 (enqueue_one_deferred_signal): Likewise.
10939 (enqueue_pending_signal): Likewise.
10940 (linux_resume_one_lwp_throw): Likewise.
10941 (linux_resume_one_thread): Likewise.
10942 (linux_read_memory): Likewise.
10943 (linux_write_memory): Likewise.
10944 * linux-mips-low.c (mips_linux_new_process): Likewise.
10945 (mips_linux_new_thread): Likewise.
10946 (mips_add_watchpoint): Likewise.
10947 * linux-x86-low.c (initialize_low_arch): Likewise.
10948 * lynx-low.c (lynx_add_process): Likewise.
10949 * mem-break.c (set_raw_breakpoint_at): Likewise.
10950 (set_breakpoint): Likewise.
10951 (add_condition_to_breakpoint): Likewise.
10952 (add_commands_to_breakpoint): Likewise.
10953 (clone_agent_expr): Likewise.
10954 (clone_one_breakpoint): Likewise.
10955 * regcache.c (new_register_cache): Likewise.
10956 * remote-utils.c (look_up_one_symbol): Likewise.
10957 * server.c (queue_stop_reply): Likewise.
10958 (start_inferior): Likewise.
10959 (queue_stop_reply_callback): Likewise.
10960 (handle_target_event): Likewise.
10961 * spu-low.c (fetch_ppc_memory): Likewise.
10962 (store_ppc_memory): Likewise.
10963 * target.c (set_target_ops): Likewise.
10964 * thread-db.c (thread_db_load_search): Likewise.
10965 (try_thread_db_load_1): Likewise.
10966 * tracepoint.c (add_tracepoint): Likewise.
10967 (add_tracepoint_action): Likewise.
10968 (create_trace_state_variable): Likewise.
10969 (cmd_qtdpsrc): Likewise.
10970 (cmd_qtro): Likewise.
10971 (add_while_stepping_state): Likewise.
10972 * win32-low.c (child_add_thread): Likewise.
10973 (get_image_name): Likewise.
10974
ed8b7b42
YQ
109752015-08-25 Yao Qi <yao.qi@linaro.org>
10976
10977 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10978
db3cb7cb
YQ
109792015-08-25 Yao Qi <yao.qi@linaro.org>
10980
10981 * Makefile.in (aarch64-linux.o): New rule.
10982 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10983 srv_tgtobj.
10984 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10985 (aarch64_init_debug_reg_state): Make it extern.
10986 (aarch64_linux_prepare_to_resume): Remove.
10987
f6011a1c
YQ
109882015-08-25 Yao Qi <yao.qi@linaro.org>
10989
10990 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10991 lwp_arch_private_info and ptid_of_lwp.
10992
88e2cf7e
YQ
109932015-08-25 Yao Qi <yao.qi@linaro.org>
10994
10995 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10996 Find proc_info by find_process_pid. All callers updated.
10997
5e35436e
YQ
109982015-08-25 Yao Qi <yao.qi@linaro.org>
10999
11000 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
11001 Remove.
11002 (debug_reg_change_callback): Remove.
11003 (aarch64_notify_debug_reg_change): Remove.
11004
4a8a7965
YQ
110052015-08-25 Yao Qi <yao.qi@linaro.org>
11006
11007 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
11008 Call current_lwp_ptid.
11009
32a271ee
YQ
110102015-08-25 Yao Qi <yao.qi@linaro.org>
11011
11012 * linux-aarch64-low.c (debug_reg_change_callback): Use
11013 debug_printf.
11014
0d51c8d7
YQ
110152015-08-25 Yao Qi <yao.qi@linaro.org>
11016
11017 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
11018
31a43dd5
YQ
110192015-08-25 Yao Qi <yao.qi@linaro.org>
11020
11021 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
11022
8ee52567
YQ
110232015-08-25 Yao Qi <yao.qi@linaro.org>
11024
11025 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
11026 the code.
11027
ff3f0f45
YQ
110282015-08-25 Yao Qi <yao.qi@linaro.org>
11029
11030 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
11031 Remove.
11032 (debug_reg_change_callback): Remove argument entry and add argument
11033 lwp. Remove local variable thread. Don't print thread id in the
11034 debugging output. Don't check whether pid of thread equals to pid.
11035 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
11036 iterate_over_lwps instead find_inferior.
11037
3d40fbb5
PA
110382015-08-24 Pedro Alves <palves@redhat.com>
11039
11040 * inferiors.c (get_first_process): New function.
11041 * inferiors.h (get_first_process): New declaration.
11042 * remote-utils.c (read_ptid): Default to the first process in the
11043 list, instead of to the current thread's process.
11044
438e1e42
PA
110452015-08-24 Pedro Alves <palves@redhat.com>
11046
11047 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
11048 * event-loop.c: Likewise.
11049 * remote-utils.c: Likewise.
11050 * tracepoint.c: Likewise.
11051
a8c6d4fc
PA
110522015-08-24 Pedro Alves <palves@redhat.com>
11053
11054 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
11055 ptid_get_lwp.
11056
99b0bb12
PA
110572015-08-21 Pedro Alves <palves@redhat.com>
11058
11059 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11060 instead of literal 1.
11061
f8904751
PA
110622015-08-21 Pedro Alves <palves@redhat.com>
11063
11064 * tdesc.c (default_description): Explicitly zero-initialize.
11065
465a859e
PA
110662015-08-21 Pedro Alves <palves@redhat.com>
11067
11068 PR gdb/18749
11069 * inferiors.c (remove_thread): Discard any pending stop reply for
11070 this thread.
11071 * server.c (remove_all_on_match_pid): Rename to ...
11072 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11073 instead of a pid.
11074 (discard_queued_stop_replies): Change parameter to a ptid. Now
11075 extern.
11076 (handle_v_kill, kill_inferior_callback, captured_main)
11077 (process_serial_event): Adjust.
11078 * server.h (discard_queued_stop_replies): Declare.
11079
f0db101d
PA
110802015-08-21 Pedro Alves <palves@redhat.com>
11081
11082 * linux-low.c (wait_for_sigstop): Always switch to no thread
11083 selected if the previously current thread dies.
11084 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11085 process instead of the current thread's.
11086 * remote-utils.c (input_interrupt): Don't check if there's no
11087 current thread.
11088 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11089 current thread to the general thread fails, error out.
11090 (handle_qxfer_auxv, handle_qxfer_libraries)
11091 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11092 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11093 (handle_query): Check if there's a thread selected instead of
11094 checking whether there's any thread in the thread list.
11095 (handle_qxfer_threads, handle_qxfer_btrace)
11096 (handle_qxfer_btrace_conf): Don't error out early if there's no
11097 thread in the thread list.
11098 (handle_v_cont, myresume): Don't set the current thread to the
11099 continue thread.
11100 (process_serial_event) <Hg handling>: Also set thread_id if the
11101 previous general thread is still alive.
11102 (process_serial_event) <g/G handling>: If setting the current
11103 thread to the general thread fails, error out.
11104 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11105 thread's lwp instead of the current thread's.
11106 * target.c (set_desired_thread): If the desired thread was not
11107 found, leave the current thread pointing to NULL. Return an int
11108 (boolean) indicating success.
11109 * target.h (set_desired_thread): Change return type to int.
11110
40045d91
MF
111112015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11112
11113 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11114 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11115 #includes.
11116 (ps_get_thread_area): New function.
11117
45face3b
GB
111182015-08-19 Gary Benson <gbenson@redhat.com>
11119
11120 * hostio.c (handle_pread): Do not attempt to read more data
11121 than hostio_reply_with_data can fit in a packet.
11122
16d5f642
JB
111232015-08-18 Joel Brobecker <brobecker@adacore.com>
11124
11125 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11126
a738da3a
MF
111272015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11128
11129 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11130
33ebda9d
PA
111312015-08-06 Pedro Alves <palves@redhat.com>
11132
11133 * tracepoint.c (expr_eval_result): Now an int.
11134
a44892be
PA
111352015-08-06 Pedro Alves <palves@redhat.com>
11136
11137 * gdbthread.h (struct regcache): Forward declare.
11138 (struct thread_info) <regcache_data>: Now a struct regcache
11139 pointer.
11140 * inferiors.c (inferior_regcache_data)
11141 (set_inferior_regcache_data): Now work with struct regcache
11142 pointers.
11143 * inferiors.h (struct regcache): Forward declare.
11144 (inferior_regcache_data, set_inferior_regcache_data): Now work
11145 with struct regcache pointers.
11146 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11147 (free_register_cache_thread): Remove struct regcache pointer
11148 casts.
11149
608a1e46
PA
111502015-08-06 Pedro Alves <palves@redhat.com>
11151
11152 * server.c (captured_main): On error, print the exception message
11153 to stderr, and if run_once is set, throw a quit.
11154
f0ce0d3a
PA
111552015-08-06 Pedro Alves <palves@redhat.com>
11156
11157 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11158 the current thread.
11159
bf47e248
PA
111602015-08-06 Pedro Alves <palves@redhat.com>
11161
11162 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11163 reading beyond the passed in buffer length.
11164
b6b9ffcc
PL
111652015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11166
11167 * tracepoint.c (symbol_list) <required>: Remove.
11168
863d01bd
PA
111692015-08-06 Pedro Alves <palves@redhat.com>
11170
11171 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11172 count if stopping and suspending threads.
11173 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11174 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11175 (linux_detach): Complete an ongoing step-over.
11176 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11177 throughout.
11178 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11179 (linux_wait_1): If passing a signal to the inferior after
11180 finishing a step-over, unsuspend and re-resume all lwps. If we
11181 see a single-step event but the thread should be continuing, don't
11182 pass the trap to gdb.
11183 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11184 internal_error instead of gdb_assert.
11185 (enqueue_pending_signal): New function.
11186 (check_ptrace_stopped_lwp_gone): Add debug output.
11187 (start_step_over): Use internal_error instead of gdb_assert.
11188 (complete_ongoing_step_over): New function.
11189 (linux_resume_one_thread): Don't resume a suspended thread.
11190 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11191 it stepping.
11192
00db26fa
PA
111932015-08-06 Pedro Alves <palves@redhat.com>
11194
11195 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11196 (linux_thread_alive): Use lwp_is_marked_dead.
11197 (extended_event_reported): Delete.
11198 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11199 instead of extended_event_reported.
11200 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11201 as well.
11202 (lwp_is_marked_dead): New function.
11203 (lwp_running): Use lwp_is_marked_dead.
11204 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11205 comment.
11206
ad071a30
PA
112072015-08-06 Pedro Alves <palves@redhat.com>
11208
11209 * linux-low.c (linux_wait_1): Move fork event output out of the
11210 !report_to_gdb check. Pass event_child->waitstatus to
11211 target_waitstatus_to_string instead of ourstatus.
11212
524b57e6
YQ
112132015-08-04 Yao Qi <yao.qi@linaro.org>
11214
11215 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11216 if current_thread is 32 bit.
11217
6085d6f6
YQ
112182015-08-04 Yao Qi <yao.qi@linaro.org>
11219
11220 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11221 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11222 * server.c (extended_protocol): Remove "static".
11223 * server.h (extended_protocol): Declare it.
11224
8a7e4587
YQ
112252015-08-04 Yao Qi <yao.qi@linaro.org>
11226
11227 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11228 both aarch64 and aarch32.
11229 (aarch64_set_pc): Likewise.
11230
3b53ae99
YQ
112312015-08-04 Yao Qi <yao.qi@linaro.org>
11232
11233 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11234 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11235 arm-with-neon.xml to srv_xmlfiles.
11236 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11237 (is_64bit_tdesc): New function.
11238 (aarch64_linux_read_description): New function.
11239 (aarch64_arch_setup): Call aarch64_linux_read_description.
11240 (regs_info): Rename to regs_info_aarch64.
11241 (aarch64_regs_info): Return right regs_info.
11242 (initialize_low_arch): Call initialize_low_arch_aarch32.
11243
bd9e6534
YQ
112442015-08-04 Yao Qi <yao.qi@linaro.org>
11245
11246 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11247 * linux-aarch32-low.c: New file.
11248 * linux-aarch32-low.h: New file.
11249 * linux-arm-low.c (arm_fill_gregset): Move it to
11250 linux-aarch32-low.c.
11251 (arm_store_gregset): Likewise.
11252 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11253 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11254 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11255 (regs_info): Rename to regs_info_arm.
11256 (arm_regs_info): Return regs_info_aarch32 if
11257 have_ptrace_getregset is 1 and target description is
11258 arm_with_neon or arm_with_vfpv3.
11259 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11260 Call initialize_low_arch_aarch32 instead.
11261
ded48a5e
YQ
112622015-08-04 Yao Qi <yao.qi@linaro.org>
11263
11264 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11265 * linux-low.c: ... here.
11266 * linux-low.h (have_ptrace_getregset): Declare it.
11267
96e9210f
PA
112682015-08-04 Pedro Alves <palves@redhat.com>
11269
11270 * thread-db.c (struct thread_db): Use new typedefs.
11271 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11272 CHK calls.
11273 (disable_thread_event_reporting): Cast result of dlsym to
11274 destination function pointer type.
11275 (thread_db_mourn): Use td_ta_delete_ftype.
11276
af60a1ef
SL
112772015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11278
11279 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11280 arch variant.
11281 (CDX_BREAKPOINT): Define for R2.
11282 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11283 (the_low_target): Add comments.
11284
e8b41681
YQ
112852015-07-30 Yao Qi <yao.qi@linaro.org>
11286
11287 * linux-arm-low.c (arm_hwcap): Remove it.
11288 (arm_read_description): New local variable arm_hwcap. Don't
11289 set arm_hwcap to zero.
11290
89abb039
YQ
112912015-07-30 Yao Qi <yao.qi@linaro.org>
11292
11293 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11294 Use regcache->tdesc instead.
11295 (arm_store_wmmxregset): Likewise.
11296 (arm_fill_vfpregset): Likewise.
11297 (arm_store_vfpregset): Likewise.
11298
deca266c
YQ
112992015-07-30 Yao Qi <yao.qi@linaro.org>
11300
11301 * linux-arm-low.c: Include arch/arm.h.
11302 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11303 (arm_store_gregset): Likewise.
11304
aa58a496
SM
113052015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11306
11307 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11308 ptrace's 4th parameter.
11309
50904b25
YQ
113102015-07-27 Yao Qi <yao.qi@linaro.org>
11311
11312 * configure.srv (case aarch64*-*-linux*): Don't set
11313 srv_linux_usrregs.
11314
5826e159
PA
113152015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11316
11317 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11318 sys/ptrace.h.
11319 * linux-arm-low.c: Likewise.
11320 * linux-cris-low.c: Likewise.
11321 * linux-crisv32-low.c: Likewise.
11322 * linux-low.c: Likewise.
11323 * linux-m68k-low.c: Likewise.
11324 * linux-mips-low.c: Likewise.
11325 * linux-nios2-low.c: Likewise.
11326 * linux-s390-low.c: Likewise.
11327 * linux-sparc-low.c: Likewise.
11328 * linux-tic6x-low.c: Likewise.
11329 * linux-tile-low.c: Likewise.
11330 * linux-x86-low.c: Likewise.
11331
54019719
PA
113322015-07-24 Pedro Alves <palves@redhat.com>
11333
11334 * config.in: Regenerate.
11335 * configure: Regenerate.
11336
eb7aa561
PA
113372015-07-24 Pedro Alves <palves@redhat.com>
11338
11339 * acinclude.m4: Include ../ptrace.m4.
11340 * configure.ac: Call GDB_AC_PTRACE.
11341 * config.in, configure: Regenerate.
11342
55d7b841
YQ
113432015-07-24 Yao Qi <yao.qi@linaro.org>
11344
11345 * linux-low.c (linux_create_inferior): Remove setting to
11346 proc->priv->new_inferior.
11347 (linux_attach): Likewise.
11348 (linux_low_filter_event): Likewise.
11349 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11350
c06cbd92
YQ
113512015-07-24 Yao Qi <yao.qi@linaro.org>
11352
11353 * linux-low.c (linux_arch_setup): New function.
11354 (linux_low_filter_event): If proc->tdesc is NULL and
11355 proc->attached is true, call the_low_target.arch_setup.
11356 Otherwise, keep status pending, and return.
11357 (linux_resume_one_lwp_throw): Don't call get_pc if
11358 thread->while_stepping isn't NULL. Don't call
11359 get_thread_regcache if proc->tdesc is NULL.
11360 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11361 (linux_target_ops): Install arch_setup.
11362 * server.c (start_inferior): Call the_target->arch_setup.
11363 * target.h (struct target_ops) <arch_setup>: New field.
11364 (target_arch_setup): New marco.
11365 * lynx-low.c (lynx_target_ops): Update.
11366 * nto-low.c (nto_target_ops): Update.
11367 * spu-low.c (spu_target_ops): Update.
11368 * win32-low.c (win32_target_ops): Update.
11369
5ae3ebba
YQ
113702015-07-24 Yao Qi <yao.qi@linaro.org>
11371
11372 * linux-low.c (linux_add_process): Don't set
11373 proc->priv->new_inferior.
11374 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11375 (linux_attach): Likewise.
11376
eb97750b
YQ
113772015-07-24 Yao Qi <yao.qi@linaro.org>
11378
11379 * server.c (start_inferior): Code refactor.
11380
51aee833
YQ
113812015-07-24 Yao Qi <yao.qi@linaro.org>
11382
11383 * server.c (process_serial_event): Set general_thread.
11384
af1b22f3
YQ
113852015-07-21 Yao Qi <yao.qi@linaro.org>
11386
11387 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11388 aarch64_linux_get_debug_reg_capacity.
11389
554717a3
YQ
113902015-07-17 Yao Qi <yao.qi@linaro.org>
11391
11392 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11393 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11394 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11395 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11396 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11397 (AARCH64_HWP_ALIGNMENT): Likewise.
11398 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11399 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11400 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11401 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11402 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11403 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11404 (struct aarch64_debug_reg_state): Likewise.
11405 (struct arch_lwp_info): Likewise.
11406 (aarch64_align_watchpoint): Likewise.
11407 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11408 (aarch64_watchpoint_length): Likewise.
11409 (aarch64_point_encode_ctrl_reg): Likewise
11410 (aarch64_point_is_aligned): Likewise.
11411 (aarch64_align_watchpoint): Likewise.
11412 (aarch64_linux_set_debug_regs):
11413 (aarch64_dr_state_insert_one_point): Likewise.
11414 (aarch64_dr_state_remove_one_point): Likewise.
11415 (aarch64_handle_breakpoint): Likewise.
11416 (aarch64_handle_aligned_watchpoint): Likewise.
11417 (aarch64_handle_unaligned_watchpoint): Likewise.
11418 (aarch64_handle_watchpoint): Likewise.
11419
c67ca4de
YQ
114202015-07-17 Yao Qi <yao.qi@linaro.org>
11421
11422 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11423 and don't aarch64_get_debug_reg_state. All callers update.
11424 (aarch64_handle_aligned_watchpoint): Likewise.
11425 (aarch64_handle_unaligned_watchpoint): Likewise.
11426 (aarch64_handle_watchpoint): Likewise.
11427 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11428 (aarch64_remove_point): Likewise.
11429
25abf979
YQ
114302015-07-17 Yao Qi <yao.qi@linaro.org>
11431
11432 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11433 debug_printf.
11434 (aarch64_handle_unaligned_watchpoint): Likewise.
11435
db1ff28b
JK
114362015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11437
11438 Revert the previous 3 commits:
11439 Move gdb_regex* to common/
11440 Move linux_find_memory_regions_full & co.
11441 gdbserver build-id attribute generator
11442
700ca40f
JK
114432015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11444 Jan Kratochvil <jan.kratochvil@redhat.com>
11445
11446 gdbserver build-id attribute generator.
11447 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11448 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11449 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11450 (find_phdr): New.
11451 (get_dynamic): Use find_pdhr to traverse program headers.
11452 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11453 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11454 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11455 (get_hex_build_id): New.
11456 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11457 to reply XML document.
11458
9904185c
JK
114592015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11460 Jan Kratochvil <jan.kratochvil@redhat.com>
11461
11462 * target.c: Include target/target-utils.h and fcntl.h.
11463 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11464 (target_fileio_read_stralloc): New functions.
11465
6e5b4429
JK
114662015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11467
11468 * Makefile.in (OBS): Add gdb_regex.o.
11469 (gdb_regex.o): New.
11470 * config.in: Rebuilt.
11471 * configure: Rebuilt.
11472
ddc98fbf
JK
114732015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11474 Jan Kratochvil <jan.kratochvil@redhat.com>
11475
11476 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11477 * Makefile.in (OBS): Add target-utils.o.
11478 (linux-maps.o, target-utils.o): New.
11479 * configure.srv (srv_linux_obj): Add linux-maps.o.
11480
e57bb7a0
PL
114812015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11482
11483 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11484 function, return 1.
11485 (the_low_target): Install it.
11486
586b02a9
PA
114872015-07-14 Pedro Alves <palves@redhat.com>
11488
11489 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11490 Instead, ignore ECHILD, and throw an error for other errnos.
11491
58c1b36c
PA
114922015-07-10 Pedro Alves <palves@redhat.com>
11493
11494 * event-loop.c (struct callback_event) <data>: Change type to
11495 gdb_client_data instance instead of gdb_client_data pointer.
11496 (append_callback_event): Adjust.
11497
421530db
PL
114982015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11499
11500 * linux-aarch64-low.c: Add comments for each linux_target_ops
11501 method. Remove comments already covered in target_ops and
11502 linux_target_ops definitions.
11503 (the_low_target): Add comments for each unimplemented method.
11504
c2d65f38
YQ
115052015-07-09 Yao Qi <yao.qi@linaro.org>
11506
11507 * linux-aarch64-low.c (aarch64_regmap): Remove.
11508 (aarch64_usrregs_info): Remove.
11509 (regs_info): Set field usrregs to NULL.
11510
b20a6524
MM
115112015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11512
11513 * linux-low.c: Include "rsp-low.h"
11514 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11515 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11516 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11517 (handle_btrace_enable_pt): New.
11518 (handle_btrace_general_set): Support "pt".
11519 (handle_btrace_conf_general_set): Support "pt:size".
11520
96c97461
PL
115212015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11522
11523 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11524 Z_PACKET_SW_BP.
11525
37d66942
PL
115262015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11527
11528 * linux-aarch64-low.c: Remove comment about endianness.
11529 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11530 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11531 memcmp.
11532
dc06243f
GB
115332015-06-24 Gary Benson <gbenson@redhat.com>
11534
11535 * linux-i386-ipa.c (stdint.h): Do not include.
11536 * lynx-i386-low.c (stdint.h): Likewise.
11537 * lynx-ppc-low.c (stdint.h): Likewise.
11538 * mem-break.c (stdint.h): Likewise.
11539 * thread-db.c (stdint.h): Likewise.
11540 * tracepoint.c (stdint.h): Likewise.
11541 * win32-low.c (stdint.h): Likewise.
11542
124e13d9
SM
115432015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11544
11545 * server.c (write_qxfer_response): Update call to
11546 remote_escape_output.
11547
909c2cda
JK
115482015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11549 Jan Kratochvil <jan.kratochvil@redhat.com>
11550
11551 Merge multiple hex conversions.
11552 * gdbreplay.c (tohex): Rename to 'fromhex'.
11553 (logchar): Use fromhex.
11554
24c05f46
JK
115552015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11556
11557 * server.c (handle_qxfer_libraries): Set `version' attribute for
11558 <library-list>.
11559
14d2069a
GB
115602015-06-10 Gary Benson <gbenson@redhat.com>
11561
11562 * target.h (struct target_ops) <multifs_open>: New field.
11563 <multifs_unlink>: Likewise.
11564 <multifs_readlink>: Likewise.
11565 * linux-low.c (nat/linux-namespaces.h): New include.
11566 (linux_target_ops): Initialize the_target->multifs_open,
11567 the_target->multifs_unlink and the_target->multifs_readlink.
11568 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11569 * hostio.c (hostio_fs_pid): New static variable.
11570 (hostio_handle_new_gdb_connection): New function.
11571 (handle_setfs): Likewise.
11572 (handle_open): Use the_target->multifs_open as appropriate.
11573 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11574 (handle_readlink): Use the_target->multifs_readlink as
11575 appropriate.
11576 (handle_vFile): Handle vFile:setfs packets.
11577 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11578 after target_handle_new_gdb_connection.
11579
4b8b5e72
GB
115802015-06-10 Gary Benson <gbenson@redhat.com>
11581
11582 * configure.ac (AC_CHECK_FUNCS): Add setns.
11583 * config.in: Regenerate.
11584 * configure: Likewise.
11585 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11586 (linux-namespaces.o): New rule.
11587 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11588
3ac2e371
GB
115892015-06-09 Gary Benson <gbenson@redhat.com>
11590
11591 * hostio.c (handle_open): Process mode argument with
11592 fileio_to_host_mode.
11593
ca9b78ce
YQ
115942015-06-01 Yao Qi <yao.qi@linaro.org>
11595
11596 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11597 * linux-x86-low.c: Likewise.
11598
bfacd19d
DB
115992015-05-28 Don Breazeal <donb@codesourcery.com>
11600
11601 * linux-low.c (handle_extended_wait): Initialize
11602 thread_info.last_resume_kind for new fork children.
11603
452003ef
PA
116042015-05-15 Pedro Alves <palves@redhat.com>
11605
11606 * target.h (target_handle_new_gdb_connection): Rewrite using if
11607 wrapped in do/while.
11608
1041a03c
JB
116092015-05-14 Joel Brobecker <brobecker@adacore.com>
11610
11611 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11612 * configure, config.in: Regenerate.
11613 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11614 Declare typedef.
11615
c269dbdb
DB
116162015-05-12 Don Breazeal <donb@codesourcery.com>
11617
11618 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11619 PTRACE_EVENT_VFORK_DONE.
11620 (linux_low_ptrace_options, extended_event_reported): Add vfork
11621 events.
11622 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11623 and "vforkdone" for RSP 'T' Stop Reply Packet.
11624 * server.h (report_vfork_events): Declare
11625 global variable.
11626
3a8a0396
DB
116272015-05-12 Don Breazeal <donb@codesourcery.com>
11628
11629 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11630 (the_low_target) <new_fork>: Initialize new member.
11631 * linux-arm-low.c (arm_new_fork): New function.
11632 (the_low_target) <new_fork>: Initialize new member.
11633 * linux-low.c (handle_extended_wait): Call new target function
11634 new_fork.
11635 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11636 * linux-mips-low.c (mips_add_watchpoint): New function
11637 extracted from mips_insert_point.
11638 (the_low_target) <new_fork>: Initialize new member.
11639 (mips_linux_new_fork): New function.
11640 (mips_insert_point): Call mips_add_watchpoint.
11641 * linux-x86-low.c (x86_linux_new_fork): New function.
11642 (the_low_target) <new_fork>: Initialize new member.
11643
de0d863e
DB
116442015-05-12 Don Breazeal <donb@codesourcery.com>
11645
11646 * linux-low.c (handle_extended_wait): Implement return value,
11647 rename argument 'event_child' to 'event_lwp', handle
11648 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11649 (linux_low_ptrace_options): New function.
11650 (linux_low_filter_event): Call linux_low_ptrace_options,
11651 use different argument fo linux_enable_event_reporting,
11652 use return value from handle_extended_wait.
11653 (extended_event_reported): New function.
11654 (linux_wait_1): Call extended_event_reported and set
11655 status to report fork events.
11656 (linux_write_memory): Add pid to debug message.
11657 (reset_lwp_ptrace_options_callback): New function.
11658 (linux_handle_new_gdb_connection): New function.
11659 (linux_target_ops): Initialize new structure member.
11660 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11661 * lynx-low.c: Initialize new structure member.
11662 * remote-utils.c (prepare_resume_reply): Implement stop reason
11663 "fork" for "T" stop message.
11664 * server.c (handle_query): Call handle_new_gdb_connection.
11665 * server.h (report_fork_events): Declare global flag.
11666 * target.h (struct target_ops) <handle_new_gdb_connection>:
11667 New member.
11668 (target_handle_new_gdb_connection): New macro.
11669 * win32-low.c: Initialize new structure member.
11670
ddcbc397
DB
116712015-05-12 Don Breazeal <donb@codesourcery.com>
11672
11673 * mem-break.c (APPEND_TO_LIST): Define macro.
11674 (clone_agent_expr): New function.
11675 (clone_one_breakpoint): New function.
11676 (clone_all_breakpoints): New function.
11677 * mem-break.h: Declare new functions.
11678
89245bc0
DB
116792015-05-12 Don Breazeal <donb@codesourcery.com>
11680
11681 * linux-low.c (linux_supports_fork_events): New function.
11682 (linux_supports_vfork_events): New function.
11683 (linux_target_ops): Initialize new structure members.
11684 (initialize_low): Call linux_check_ptrace_features.
11685 * lynx-low.c (lynx_target_ops): Initialize new structure
11686 members.
11687 * server.c (report_fork_events, report_vfork_events):
11688 New global flags.
11689 (handle_query): Add new features to qSupported packet and
11690 response.
11691 (captured_main): Initialize new global variables.
11692 * target.h (struct target_ops) <supports_fork_events>:
11693 New member.
11694 <supports_vfork_events>: New member.
11695 (target_supports_fork_events): New macro.
11696 (target_supports_vfork_events): New macro.
11697 * win32-low.c (win32_target_ops): Initialize new structure
11698 members.
11699
835205d0
GB
117002015-05-12 Gary Benson <gbenson@redhat.com>
11701
11702 * server.c (handle_qxfer_exec_file): Use current process
11703 if annex is empty.
11704
21e94bd9
SL
117052015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11706
11707 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11708 Remove HAVE_PTRACE_GETREGS conditionals.
11709 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11710 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11711
45614f15
YQ
117122015-05-08 Yao Qi <yao.qi@linaro.org>
11713
11714 * linux-low.c (linux_supports_conditional_breakpoints): New
11715 function.
11716 (linux_target_ops): Install new target method.
11717 * lynx-low.c (lynx_target_ops): Install NULL hook for
11718 supports_conditional_breakpoints.
11719 * nto-low.c (nto_target_ops): Likewise.
11720 * spu-low.c (spu_target_ops): Likewise.
11721 * win32-low.c (win32_target_ops): Likewise.
11722 * server.c (handle_query): Check
11723 target_supports_conditional_breakpoints.
11724 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11725 New field.
11726 (target_supports_conditional_breakpoints): New macro.
11727
80ad801e
PA
117282015-05-06 Pedro Alves <palves@redhat.com>
11729
11730 PR server/18081
11731 * server.c (start_inferior): If the process exits, mourn it.
11732
819843c7
GB
117332015-04-21 Gary Benson <gbenson@redhat.com>
11734
11735 * hostio.c (fileio_open_flags_to_host): Factored out to
11736 fileio_to_host_openflags in common/fileio.c. Single use
11737 updated.
11738
a2d5a9d7
MF
117392015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11740
11741 * linux-xtensa-low.c (xtensa_fill_gregset)
11742 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11743 XCHAL_HAVE_LOOP.
11744
deb44829
MF
117452015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11746
11747 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11748 (regs_info): Replace usrregs pointer with NULL.
11749
e57f1de3
GB
117502015-04-17 Gary Benson <gbenson@redhat.com>
11751
11752 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11753 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11754 * server.c (handle_qxfer_exec_file): New function.
11755 (qxfer_packets): Add exec-file entry.
11756 (handle_query): Report qXfer:exec-file:read as supported packet.
11757
62828379
RN
117582015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11759
11760 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11761
b88bb450
GB
117622015-04-09 Gary Benson <gbenson@redhat.com>
11763
11764 * hostio-errno.c (errno_to_fileio_error): Remove function.
11765 Update caller to use remote_fileio_to_fio_error.
11766
c8f4bfdd
YQ
117672015-04-09 Yao Qi <yao.qi@linaro.org>
11768
11769 * linux-low.c (linux_insert_point): Call
11770 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11771 (linux_remove_point): Call remove_memory_breakpoint if type is
11772 raw_bkpt_type_sw.
11773 * linux-x86-low.c (x86_insert_point): Don't call
11774 insert_memory_breakpoint.
11775 (x86_remove_point): Don't call remove_memory_breakpoint.
11776
41f98f02
PA
117772015-04-01 Pedro Alves <palves@redhat.com>
11778 Cleber Rosa <crosa@redhat.com>
11779
11780 * server.c (gdbserver_usage): Reorganize and extend the usage
11781 message.
11782
2bf6fb9d
PA
117832015-03-24 Pedro Alves <palves@redhat.com>
11784
11785 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11786 output. Also dump TRAP_TRACE.
11787 (linux_low_filter_event): In debug output, distinguish a
11788 resume_stop SIGSTOP from a delayed SIGSTOP.
11789
369f6daa
GB
117902015-03-24 Gary Benson <gbenson@redhat.com>
11791
11792 * linux-x86-low.c (x86_linux_new_thread): Moved to
11793 nat/x86-linux.c.
11794 (x86_linux_prepare_to_resume): Likewise.
11795
8e5d4070
GB
117962015-03-24 Gary Benson <gbenson@redhat.com>
11797
11798 * Makefile.in (x86-linux-dregs.o): New rule.
11799 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11800 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11801 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11802 (x86_linux_dr_get): Likewise.
11803 (x86_linux_dr_set): Likewise.
11804 (update_debug_registers_callback): Likewise.
11805 (x86_linux_dr_set_addr): Likewise.
11806 (x86_linux_dr_get_addr): Likewise.
11807 (x86_linux_dr_set_control): Likewise.
11808 (x86_linux_dr_get_control): Likewise.
11809 (x86_linux_dr_get_status): Likewise.
11810 (x86_linux_update_debug_registers): Likewise.
11811
2b95d440
GB
118122015-03-24 Gary Benson <gbenson@redhat.com>
11813
11814 * linux-x86-low.c (x86_linux_update_debug_registers):
11815 New function, factored out from...
11816 (x86_linux_prepare_to_resume): ...this.
11817
14b0bc68
GB
118182015-03-24 Gary Benson <gbenson@redhat.com>
11819
11820 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11821 (x86_linux_dr_set): Likewise.
11822 (update_debug_registers_callback): Likewise.
11823 (x86_linux_dr_set_addr): Likewise.
11824 (x86_linux_dr_get_addr): Likewise.
11825 (x86_linux_dr_set_control): Likewise.
11826 (x86_linux_dr_get_control): Likewise.
11827 (x86_linux_dr_get_status): Likewise.
11828 (x86_linux_prepare_to_resume): Likewise.
11829
5dfe6ca8
GB
118302015-03-24 Gary Benson <gbenson@redhat.com>
11831
11832 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11833 Use perror_with_name. Pass string through gettext.
11834 (x86_linux_dr_set): Likewise.
11835
d33472ad
GB
118362015-03-24 Gary Benson <gbenson@redhat.com>
11837
11838 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11839 (x86_linux_dr_set_addr): ...this.
11840 (x86_dr_low_get_addr): Rename to...
11841 (x86_linux_dr_get_addr): ...this.
11842 (x86_dr_low_set_control): Rename to...
11843 (x86_linux_dr_set_control): ...this.
11844 (x86_dr_low_get_control): Rename to...
11845 (x86_linux_dr_get_control): ...this.
11846 (x86_dr_low_get_status): Rename to...
11847 (x86_linux_dr_get_status): ...this.
11848 (x86_dr_low): Update with new function names.
11849
4b134ca1
GB
118502015-03-24 Gary Benson <gbenson@redhat.com>
11851
11852 * Makefile.in (x86-linux.o): New rule.
11853 * configure.srv: Add x86-linux.o to relevant targets.
11854 * linux-low.c (lwp_set_arch_private_info): New function.
11855 (lwp_arch_private_info): Likewise.
11856 * linux-x86-low.c: Include nat/x86-linux.h.
11857 (arch_lwp_info): Removed structure.
11858 (update_debug_registers_callback):
11859 Use lwp_set_debug_registers_changed.
11860 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11861 and lwp_set_debug_registers_changed.
11862 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11863
34c703da
GB
118642015-03-24 Gary Benson <gbenson@redhat.com>
11865
11866 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11867 * linux-arm-low.c (arm_new_thread): Likewise.
11868 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11869 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11870 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11871 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11872
cff068da
GB
118732015-03-24 Gary Benson <gbenson@redhat.com>
11874
11875 * linux-low.c (ptid_of_lwp): New function.
11876 (lwp_is_stopped): Likewise.
11877 (lwp_stop_reason): Likewise.
11878 * linux-x86-low.c (update_debug_registers_callback):
11879 Use lwp_is_stopped.
11880 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11881 lwp_stop_reason.
11882
b2f7c7e8
GB
118832015-03-24 Gary Benson <gbenson@redhat.com>
11884
11885 * linux-low.h (linux_stop_lwp): Remove declaration.
11886
6d4ee8c6
GB
118872015-03-24 Gary Benson <gbenson@redhat.com>
11888
11889 * linux-low.h: Include nat/linux-nat.h.
11890 * linux-low.c (iterate_over_lwps_args): New structure.
11891 (iterate_over_lwps_filter): New function.
11892 (iterate_over_lwps): Likewise.
11893 * linux-x86-low.c (update_debug_registers_callback):
11894 Update signature to what iterate_over_lwps expects.
11895 Remove PID check that iterate_over_lwps now performs.
11896 (x86_dr_low_set_addr): Use iterate_over_lwps.
11897 (x86_dr_low_set_control): Likewise.
11898
70a0bb6b
GB
118992015-03-24 Gary Benson <gbenson@redhat.com>
11900
11901 * linux-x86-low.c (x86_debug_reg_state): New function.
11902 (x86_linux_prepare_to_resume): Use the above.
11903
7b669087
GB
119042015-03-24 Gary Benson <gbenson@redhat.com>
11905
11906 * linux-low.c (current_lwp_ptid): New function.
11907 * linux-x86-low.c: Include nat/linux-nat.h.
11908 (x86_dr_low_get_addr): Use current_lwp_ptid.
11909 (x86_dr_low_get_control): Likewise.
11910 (x86_dr_low_get_status): Likewise.
11911
eef49a3d
PA
119122015-03-20 Pedro Alves <palves@redhat.com>
11913
11914 * tracepoint.c (cmd_qtstatus): Make "str" const.
11915
b2333d22
PA
119162015-03-20 Pedro Alves <palves@redhat.com>
11917
11918 * server.c (handle_general_set): Make "req_str" const.
11919
23f238d3
PA
119202015-03-19 Pedro Alves <palves@redhat.com>
11921
11922 * linux-low.c (linux_resume_one_lwp): Rename to ...
11923 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11924 instead call perror_with_name.
11925 (check_ptrace_stopped_lwp_gone): New function.
11926 (linux_resume_one_lwp): Reimplement as wrapper around
11927 linux_resume_one_lwp_throw that swallows errors if the LWP is
11928 gone.
11929
91baf43f
PA
119302015-03-19 Pedro Alves <palves@redhat.com>
11931
11932 * linux-low.c (count_events_callback, select_event_lwp_callback):
11933 No longer check whether the thread has resume_stop as last resume
11934 kind.
11935
8bf3b159
PA
119362015-03-19 Pedro Alves <palves@redhat.com>
11937
11938 * linux-low.c (count_events_callback, select_event_lwp_callback):
11939 Use the lwp's status_pending_p field, not the thread's.
11940
b90fc188
PA
119412015-03-19 Pedro Alves <palves@redhat.com>
11942
11943 * linux-low.c (select_event_lwp_callback): Update comments to
11944 no longer mention SIGTRAP.
11945
464b0089
GB
119462015-03-18 Gary Benson <gbenson@redhat.com>
11947
11948 * server.c (handle_query): Do not report vFile:fstat as supported.
11949
aa9e327f
GB
119502015-03-11 Gary Benson <gbenson@redhat.com>
11951
11952 * hostio.c (sys/types.h): New include.
11953 (sys/stat.h): Likewise.
11954 (common-remote-fileio.h): Likewise.
11955 (handle_fstat): New function.
11956 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11957
791c0056
GB
119582015-03-11 Gary Benson <gbenson@redhat.com>
11959
11960 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11961 struct stat.st_blocks and struct stat.st_blksize.
11962 * configure: Regenerate.
11963 * config.in: Likewise.
11964 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11965 (OBS): Add common-remote-fileio.o.
11966 (common-remote-fileio.o): New rule.
11967
9a9df970
PA
119682015-03-09 Pedro Alves <palves@redhat.com>
11969
11970 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11971 'struct sockaddr' pointer in 'accept' call.
11972
9eb1356e
PA
119732015-03-09 Pedro Alves <palves@redhat.com>
11974
11975 Revert:
11976 2015-03-07 Pedro Alves <palves@redhat.com>
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
aac331e4
PA
119882015-03-07 Pedro Alves <palves@redhat.com>
11989
11990 * configure.ac (build_warnings): Move
11991 -Wdeclaration-after-statement to the C-specific set.
11992 * configure: Regenerate.
11993
366c75fc
PA
119942015-03-07 Pedro Alves <palves@redhat.com>
11995
11996 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11997 or <winsock2.h> here. Instead include "gdb_socket.h".
11998 (remote_open): Use union gdb_sockaddr_u.
11999 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
12000 or <winsock2.h> here. Instead include "gdb_socket.h".
12001 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
12002 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
12003 or <sys/un.h>.
12004 (init_named_socket, gdb_agent_helper_thread): Use union
12005 gdb_sockaddr_u.
12006
492d29ea
PA
120072015-03-07 Pedro Alves <palves@redhat.com>
12008
12009 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
12010 instead.
12011
60a191ed
YQ
120122015-03-06 Yao Qi <yao.qi@linaro.org>
12013
12014 * linux-aarch64-low.c (aarch64_insert_point): Use
12015 show_debug_regs as a boolean.
12016 (aarch64_remove_point): Likewise.
12017
f5771b1d
PA
120182015-03-05 Pedro Alves <palves@redhat.com>
12019
12020 * lynx-low.c (lynx_target_ops): Install NULL hooks for
12021 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
12022 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
12023 * nto-low.c (nto_target_ops): Likewise.
12024 * spu-low.c (spu_target_ops): Likewise.
12025 * win32-low.c (win32_target_ops): Likewise.
12026
3e572f71
PA
120272015-03-04 Pedro Alves <palves@redhat.com>
12028
72f4393d 12029 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
12030 Decide whether a breakpoint triggered based on the SIGTRAP's
12031 siginfo.si_code.
72f4393d
L
12032 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
12033 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
12034 (linux_low_filter_event): Check for breakpoints before checking
12035 watchpoints.
12036 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
12037 siginfo.si_code.
72f4393d
L
12038 (linux_stopped_by_sw_breakpoint)
12039 (linux_supports_stopped_by_sw_breakpoint)
12040 (linux_stopped_by_hw_breakpoint)
12041 (linux_supports_stopped_by_hw_breakpoint): New functions.
12042 (linux_target_ops): Install new target methods.
3e572f71 12043
1ec68e26
PA
120442015-03-04 Pedro Alves <palves@redhat.com>
12045
12046 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
12047 * server.c (swbreak_feature, hwbreak_feature): New globals.
12048 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
12049 (captured_main): Clear swbreak_feature and hwbreak_feature.
12050 * server.h (swbreak_feature, hwbreak_feature): Declare.
12051 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
12052 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
12053 supports_stopped_by_hw_breakpoint>: New fields.
12054 (target_supports_stopped_by_sw_breakpoint)
12055 (target_stopped_by_sw_breakpoint)
12056 (target_supports_stopped_by_hw_breakpoint)
12057 (target_stopped_by_hw_breakpoint): Declare.
12058
15c66dd6
PA
120592015-03-04 Pedro Alves <palves@redhat.com>
12060
12061 enum lwp_stop_reason -> enum target_stop_reason
12062 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12063 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12064 (linux_wait_1, stuck_in_jump_pad_callback)
12065 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12066 (linux_stopped_by_watchpoint):
12067 * linux-low.h (enum lwp_stop_reason): Delete.
12068 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12069 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12070
98fc70d6
YQ
120712015-03-04 Yao Qi <yao.qi@linaro.org>
12072
12073 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12074
dd2ac174
GB
120752015-03-03 Gary Benson <gbenson@redhat.com>
12076
12077 * hostio.c (handle_vFile): Fix prefix lengths.
12078
d68e53f4
MM
120792015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12080
12081 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12082 ptr_bits.
12083
bf2d68ab
AA
120842015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12085
12086 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12087 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12088 (clean): Add "rm -f" for above C files.
12089 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12090 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12091 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12092 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12093 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12094 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12095 (init_registers_s390x_vx_linux64)
12096 (init_registers_s390x_tevx_linux64)
12097 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12098 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12099 declarations.
12100 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12101 (s390_store_vxrs_high): New functions.
12102 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12103 NT_S390_VXRS_HIGH.
12104 (s390_arch_setup): Add logic for selecting one of the new target
12105 descriptions. Activate the new vector regsets if applicable.
12106 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12107 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12108 and init_registers_s390x_tevx_linux64.
12109
c966a859
PA
121102015-03-01 Pedro Alves <palves@redhat.com>
12111
12112 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12113 parameter.
12114
4180215b
PA
121152015-02-27 Pedro Alves <palves@redhat.com>
12116
12117 * linux-x86-low.c (u_debugreg_offset): New function.
12118 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12119
749bab01
PA
121202015-02-27 Pedro Alves <palves@redhat.com>
12121
12122 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12123 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12124 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12125 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12126 (ps_lsetfpregs, ps_getpid)
12127 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12128 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12129 (ps_lsetxregs, ps_plog): Declare.
12130
3c14e5a3
PA
121312015-02-27 Pedro Alves <palves@redhat.com>
12132
12133 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12134 IP_AGENT_EXPORT_FUNC.
12135 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12136 IP_AGENT_EXPORT_FUNC.
12137 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12138 (IP_AGENT_EXPORT): Delete.
12139 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12140 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12141 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12142 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12143 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12144 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12145 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12146 (traceframe_read_count, traceframe_write_count)
12147 (traceframes_created, trace_state_variables, get_raw_reg)
12148 (get_trace_state_variable_value, set_trace_state_variable_value)
12149 (ust_loaded, helper_thread_id, cmd_buf): Use
12150 IPA_SYM_EXPORTED_NAME.
12151 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12152 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12153 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12154 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12155 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12156 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12157 EXTERN_C_PUSH/EXTERN_C_POP.
12158 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12159 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12160 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12161 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12162 (traceframe_write_count, traceframe_read_count)
12163 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12164 (about_to_request_buffer_space, get_trace_state_variable_value)
12165 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12166 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12167 EXTERN_C_PUSH/EXTERN_C_POP.
12168 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12169 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12170 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12171 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12172 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12173 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12174 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12175 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12176 Define.
12177 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12178 (IP_AGENT_EXPORT_VAR_DECL): Define.
12179 (tracing): Declare.
12180 (gdb_agent_get_raw_reg): Declare.
12181
fe978cb0
PA
121822015-02-27 Tom Tromey <tromey@redhat.com>
12183 Pedro Alves <palves@redhat.com>
12184
12185 Rename symbols whose names are reserved C++ keywords throughout.
12186
3bc3d82a
PA
121872015-02-27 Pedro Alves <palves@redhat.com>
12188
12189 * Makefile.in (COMPILER): New, get it from autoconf.
12190 (CXX): Get from autoconf instead.
12191 (COMPILE.pre): Use COMPILER.
12192 (CC-LD): Rename to ...
12193 (CC_LD): ... this. Use COMPILER.
12194 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12195 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12196 * acinclude.m4: Include build-with-cxx.m4.
12197 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12198 Disable -Werror by default if building in C++ mode.
12199 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12200 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12201 the C++ compiler. Save/restore CXXFLAGS too.
12202 * configure: Regenerate.
12203
07697489
PA
122042015-02-27 Pedro Alves <palves@redhat.com>
12205
12206 * acinclude.m4: Include libiberty.m4.
12207 * configure.ac: Call libiberty_INIT.
12208 * config.in, configure: Regenerate.
12209
9beb7c4e
PA
122102015-02-26 Pedro Alves <palves@redhat.com>
12211
12212 * linux-low.c (linux_wait_1): When incrementing the PC past a
12213 program breakpoint always use the_low_target.breakpoint_len as
12214 increment, rather than the maximum between that and
12215 the_low_target.decr_pc_after_break.
12216
8090aef2
PA
122172015-02-23 Pedro Alves <palves@redhat.com>
12218
12219 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12220 thread was doing a step-over; always adjust the PC if
12221 we stepped over a permanent breakpoint.
12222 (linux_wait_1): If we stepped over breakpoint that was on top of a
12223 permanent breakpoint, manually advance the PC past it.
12224
bc9540e8
PA
122252015-02-23 Pedro Alves <palves@redhat.com>
12226
12227 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12228 modes.
12229 (x86_fill_gregset, x86_store_gregset): Use it when handling
12230 $orig_eax.
12231
2db9a427
PA
122322015-02-20 Pedro Alves <palves@redhat.com>
12233
12234 * thread-db.c: Include "nat/linux-procfs.h".
12235 (thread_db_init): Skip listing new threads if the kernel supports
12236 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12237
afa8d396
PA
122382015-02-20 Pedro Alves <palves@redhat.com>
12239
12240 * linux-low.c (status_pending_p_callback): Use ptid_match.
12241
c9587f88
AT
122422015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12243
12244 PR breakpoints/16812
12245 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12246 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12247 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12248
b05ec7a5
AT
122492015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12250
12251 PR breakpoints/15956
12252 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12253
d33501a5
MM
122542015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12255
12256 * linux-low.c (linux_low_btrace_conf): Print size.
12257 * server.c (handle_btrace_conf_general_set): New.
12258 (hanle_general_set): Call handle_btrace_conf_general_set.
12259 (handle_query): Report Qbtrace-conf:bts:size as supported.
12260
f4abbc16
MM
122612015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12262
12263 * linux-low.c (linux_low_enable_btrace): Update parameters.
12264 (linux_low_btrace_conf): New.
12265 (linux_target_ops)<to_btrace_conf>: Initialize.
12266 * server.c (current_btrace_conf): New.
12267 (handle_btrace_enable): Rename to ...
12268 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12269 to target_enable_btrace. Update comment. Update users.
12270 (handle_qxfer_btrace_conf): New.
12271 (qxfer_packets): Add btrace-conf entry.
12272 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12273 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12274 (target_ops)<read_btrace_conf>: New.
12275 (target_enable_btrace): Update parameters.
12276 (target_read_btrace_conf): New.
12277
043c3577
MM
122782015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12279
12280 * server.c (handle_btrace_general_set): Remove call to
12281 target_supports_btrace.
12282 (supported_btrace_packets): New.
12283 (handle_query): Call supported_btrace_packets.
12284 * target.h: include btrace-common.h.
12285 (btrace_target_info): Removed.
12286 (supports_btrace, target_supports_btrace): Update parameters.
12287
734b0e4b
MM
122882015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12289
12290 * Makefile.in (SFILES): Add common/btrace-common.c.
12291 (OBS): Add common/btrace-common.o.
12292 (btrace-common.o): Add build rules.
12293 * linux-low: Include btrace-common.h.
12294 (linux_low_read_btrace): Use struct btrace_data. Call
12295 btrace_data_init and btrace_data_fini.
12296
d6c146e9
PA
122972015-02-06 Pedro Alves <palves@redhat.com>
12298
12299 * thread-db.c (find_new_threads_callback): Add debug output.
12300
20ba1ce6
PA
123012015-02-04 Pedro Alves <palves@redhat.com>
12302
12303 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12304 (resume_stopped_resumed_lwps): New function.
12305 (linux_wait_for_event_filtered): Use it.
12306
8cc73a39
SDJ
123072015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12308
12309 * Makefile.in (SFILES): Add linux-personality.c.
12310 (linux-personality.o): New rule.
12311 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12312 list of objects to be built.
12313 * linux-low.c: Include nat/linux-personality.h.
12314 (linux_create_inferior): Remove code to disable address space
12315 randomization (moved to ../nat/linux-personality.c). Create
12316 cleanup to disable address space randomization.
12317
fb23d554
SDJ
123182015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12319
12320 * Makefile.in (posix-strerror.o): New rule.
12321 (mingw-strerror.o): Likewise.
12322 * configure: Regenerated.
12323 * configure.ac: Source file ../common/common.host. Initialize new
12324 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12325
cdf43629
YQ
123262015-01-14 Yao Qi <yao@codesourcery.com>
12327
12328 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12329 (ppc-linux.o): New rule.
12330 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12331 * configure.ac: AC_CHECK_FUNCS(getauxval).
12332 * config.in: Re-generated.
12333 * configure: Re-generated.
12334 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12335 ppc64_64bit_inferior_p
12336
514c5338
YQ
123372015-01-14 Yao Qi <yao@codesourcery.com>
12338
12339 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12340 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12341 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12342 (PT_ORIG_R3, PT_TRAP): Likewise.
12343 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12344 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12345 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12346
3368c1e5
JB
123472015-01-10 Joel Brobecker <brobecker@adacore.com>
12348
12349 * i387-fp.c (i387_cache_to_xsave): In look over
12350 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12351 zmmh_low_space field by use of zmmh_high_space.
12352
582511be
PA
123532015-01-09 Pedro Alves <palves@redhat.com>
12354
12355 * linux-low.c (step_over_bkpt): Move higher up in the file.
12356 (handle_extended_wait): Don't store the stop_pc here.
12357 (get_stop_pc): Adjust comments and rename to ...
12358 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12359 stopped for a software breakpoint or hardware breakpoint.
12360 (thread_still_has_status_pending_p): New function.
12361 (status_pending_p_callback): Use
12362 thread_still_has_status_pending_p. If the event is no longer
12363 interesting, resume the LWP.
12364 (handle_tracepoints): Add assert.
12365 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12366 (wstatus_maybe_breakpoint): New function.
12367 (cancel_breakpoint): Delete function.
12368 (check_stopped_by_watchpoint): New function, factored out from
12369 linux_low_filter_event.
12370 (lp_status_maybe_breakpoint): Delete function.
12371 (linux_low_filter_event): Remove filter_ptid argument.
12372 Leave thread group exits pending here. Store the LWP's stop PC.
12373 Always leave events pending.
12374 (linux_wait_for_event_filtered): Pull all events out of the
12375 kernel, and leave them all pending.
12376 (count_events_callback, select_event_lwp_callback): Consider all
12377 events.
12378 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12379 (select_event_lwp): Only give preference to the stepping LWP in
12380 all-stop mode. Adjust comments.
12381 (ignore_event): New function.
12382 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12383 references to cancel_breakpoints. Adjust to renames. Also give
12384 equal priority to all LWPs that have had events in non-stop mode.
12385 If reporting a software breakpoint event, unadjust the LWP's PC.
12386 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12387 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12388 Adjust.
12389 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12390 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12391 (linux_stopped_by_watchpoint): Adjust.
12392 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12393 * linux-low.h (enum lwp_stop_reason): New.
12394 (struct lwp_info) <stop_pc>: Adjust comment.
12395 <stopped_by_watchpoint>: Delete field.
12396 <stop_reason>: New field.
12397 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12398 * mem-break.c (software_breakpoint_inserted_here)
12399 (hardware_breakpoint_inserted_here): New function.
12400 * mem-break.h (software_breakpoint_inserted_here)
12401 (hardware_breakpoint_inserted_here): Declare.
12402 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12403 (cancel_breakpoints): Delete.
12404 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12405 (upload_fast_traceframes): Remove references to
12406 cancel_breakpoints.
12407
a33e3959
PA
124082015-01-09 Pedro Alves <palves@redhat.com>
12409
12410 * thread-db.c (find_new_threads_callback): Ignore thread if the
12411 kernel thread ID is -1.
12412
8784d563
PA
124132015-01-09 Pedro Alves <palves@redhat.com>
12414
12415 * linux-low.c (linux_attach_fail_reason_string): Move to
12416 nat/linux-ptrace.c, and rename.
12417 (linux_attach_lwp): Update comment.
12418 (attach_proc_task_lwp_callback): New function.
12419 (linux_attach): Adjust to rename and use
12420 linux_proc_attach_tgid_threads.
12421 (linux_attach_fail_reason_string): Delete declaration.
12422
76f2b779
JB
124232015-01-01 Joel Brobecker <brobecker@adacore.com>
12424
12425 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12426 * server.c (gdbserver_version): Likewise.
12427
fafcc06a
SDJ
124282014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12429
12430 * remote-utils.c: Include ctype.h.
12431 (input_interrupt): Explicitly handle the case when the char
12432 received is the NUL byte. Improve the printing of non-ASCII
12433 characters.
12434
beed38b8
JB
124352014-12-16 Joel Brobecker <brobecker@adacore.com>
12436
12437 * linux-low.c (linux_low_filter_event): Update call to
12438 linux_enable_event_reporting following the addition of
12439 a new parameter to that function.
12440
bf330350
CU
124412014-12-16 Catalin Udma <catalin.udma@freescale.com>
12442
12443 PR server/17457
12444 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12445 (AARCH64_FPCR_REGNO): Likewise.
12446 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12447 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12448 (aarch64_store_fpregset): Likewise.
12449
5227d625
JB
124502014-12-15 Joel Brobecker <brobecker@adacore.com>
12451
12452 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12453 Remove FIXME comment about assumption about N.
12454
f93b65a0
JB
124552014-12-13 Joel Brobecker <brobecker@adacore.com>
12456
12457 * configure.ac: If large-file support is disabled in GDBserver,
12458 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12459 * configure: Regenerate.
12460
e5a9158d
AA
124612014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12462
12463 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12464 warning upon ENODATA from ptrace.
12465 * linux-s390-low.c (s390_store_tdb): New.
12466 (s390_regsets): Add regset for NT_S390_TDB.
12467
feea5f36
AA
124682014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12469
12470 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12471 without a fill_function.
12472 * linux-s390-low.c (s390_fill_last_break): Remove.
12473 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12474 (s390_arch_setup): Use regset's size instead of fill_function for
12475 loop end condition.
12476
098dbe61
AA
124772014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12478
12479 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12480 the regset's store function when ptrace returned an error.
12481 * regcache.c (get_thread_regcache): Invalidate register cache
12482 before fetching inferior's registers.
12483
28eef672
AA
124842014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12485
12486 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12487 while-loop as for-loop.
12488 (regsets_store_inferior_registers): Likewise.
12489
bdca27a2
YQ
124902014-11-28 Yao Qi <yao@codesourcery.com>
12491
12492 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12493 * config.in, configure: Re-generate.
12494 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12495 is defined.
12496
9c232dda
YQ
124972014-11-21 Yao Qi <yao@codesourcery.com>
12498
12499 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12500 (AC_CHECK_HEADERS): Remove malloc.h.
12501 * configure: Re-generated.
12502 * config.in: Re-generated.
12503 * server.h: Don't include alloca.h and malloc.h.
12504 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12505 Don't include malloc.h.
12506
43968415
JB
125072014-11-17 Joel Brobecker <brobecker@adacore.com>
12508
12509 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12510 corresponding ERRNO check in same block.
12511
40e91bc7
PA
125122014-11-12 Pedro Alves <palves@redhat.com>
12513
12514 * server.c (cont_thread): Update comment.
12515 (start_inferior, attach_inferior): No longer clear cont_thread.
12516 (handle_v_cont): No longer set cont_thread.
12517 (captured_main): Clear cont_thread each time a GDB connects.
12518
c2c118cf
PA
125192014-11-12 Pedro Alves <palves@redhat.com>
12520
12521 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12522 thread, and don't resume all threads if the Hc thread has exited.
12523
78708b7c
PA
125242014-11-12 Pedro Alves <palves@redhat.com>
12525
12526 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12527 the process group instead of to a specific LWP.
12528
a2abc7de
PA
125292014-10-15 Pedro Alves <palves@redhat.com>
12530
12531 PR server/17487
12532 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12533 parameter.
12534 (arm_set_thread_context): Delete.
12535 (the_low_target): Adjust.
12536 * win32-i386-low.c (debug_registers_changed)
12537 (debug_registers_used): Delete.
12538 (update_debug_registers_callback): New function.
12539 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12540 needing to update their debug registers.
12541 (win32_get_current_dr): New function.
12542 (x86_dr_low_get_addr, x86_dr_low_get_control)
12543 (x86_dr_low_get_status): Fetch the debug register from the thread
12544 record's context.
12545 (i386_initial_stuff): Adjust.
12546 (i386_get_thread_context): Remove current_event parameter. Don't
12547 clear debug_registers_changed nor copy DR values to
12548 debug_reg_state.
12549 (i386_set_thread_context): Delete.
12550 (i386_prepare_to_resume): New function.
12551 (i386_thread_added): Mark the thread as needing to update irs
12552 debug registers.
12553 (the_low_target): Remove i386_set_thread_context and install
12554 i386_prepare_to_resume.
12555 * win32-low.c (win32_get_thread_context): Adjust.
12556 (win32_set_thread_context): Use SetThreadContext
12557 directly.
12558 (win32_prepare_to_resume): New function.
12559 (win32_require_context): New function, factored out from ...
12560 (thread_rec): ... this.
12561 (continue_one_thread): Call win32_prepare_to_resume on each thread
12562 we're about to continue.
12563 (win32_resume): Call win32_prepare_to_resume on the event thread.
12564 * win32-low.h (struct win32_thread_info)
12565 <debug_registers_changed>: New field.
12566 (struct win32_target_ops): Change prototype of set_thread_context,
12567 delete set_thread_context and add prepare_to_resume.
12568 (win32_require_context): New declaration.
12569
a442d071
GB
125702014-10-08 Gary Benson <gbenson@redhat.com>
12571
12572 * server.h: Do not include common-exceptions.h.
12573
6f1947e8
GB
125742014-10-08 Gary Benson <gbenson@redhat.com>
12575
12576 * server.h: Do not include cleanups.h.
12577
63b434a4
JH
125782014-09-30 James Hogan <james.hogan@imgtec.com>
12579
12580 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12581 mips64-dsp-linux.c.
12582
c4d9ceb6
YQ
125832014-09-23 Yao Qi <yao@codesourcery.com>
12584
12585 * linux-low.c (lp_status_maybe_breakpoint): New function.
12586 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12587 (count_events_callback): Likewise.
12588 (select_event_lwp_callback): Likewise.
12589 (cancel_breakpoints_callback): Likewise.
12590
89a5711c
DB
125912014-09-19 Don Breazeal <donb@codesourcery.com>
12592
12593 * linux-low.c (handle_extended_wait): Call
12594 linux_ptrace_get_extended_event.
12595 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12596 linux_is_extended_waitstatus.
12597
bffc0964
JB
125982014-09-16 Joel Brobecker <brobecker@adacore.com>
12599
12600 * Makefile.in (CPPFLAGS): Define.
12601 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12602 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12603
0bfdf32f
GB
126042014-09-16 Gary Benson <gbenson@redhat.com>
12605
12606 * inferiors.h (current_inferior): Renamed as...
12607 (current_thread): New variable. All uses updated.
12608 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12609 (maybe_move_out_of_jump_pad): Likewise.
12610 (cancel_breakpoint): Likewise.
12611 (linux_low_filter_event): Likewise.
12612 (wait_for_sigstop): Likewise.
12613 (linux_resume_one_lwp): Likewise.
12614 (need_step_over_p): Likewise.
12615 (start_step_over): Likewise.
12616 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12617 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12618 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12619 and save_inferior as saved_thread.
12620 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12621 saved_thread.
12622 (regcache_invalidate_thread): Likewise.
12623 * remote-utils.c (prepare_resume_reply): Likewise.
12624 * thread-db.c (thread_db_get_tls_address): Likewise.
12625 (disable_thread_event_reporting): Likewise.
12626 (remove_thread_event_breakpoints): Likewise.
12627 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12628 as saved_thread.
12629 * target.h (set_desired_inferior): Renamed as...
12630 (set_desired_thread): New declaration. All uses updated.
12631 * server.c (myresume): Updated comment to reference thread instead
12632 of inferior.
12633 (handle_serial_event): Likewise.
12634 (handle_target_event): Likewise.
12635
361c8ade
GB
126362014-09-12 Tom Tromey <tromey@redhat.com>
12637 Gary Benson <gbenson@redhat.com>
12638
12639 * regcache.h: Include common-regcache.h.
12640 (regcache_read_pc): Don't declare.
12641 * regcache.c (get_thread_regcache_for_ptid): New function.
12642
bd9269f7
GB
126432014-09-11 Tom Tromey <tromey@redhat.com>
12644 Gary Benson <gbenson@redhat.com>
12645
12646 * symbol.c: New file.
12647 * Makefile.in (SFILES): Add symbol.c.
12648 (OBS): Add symbol.o.
12649
f8c1d06b
GB
126502014-09-11 Gary Benson <gbenson@redhat.com>
12651
12652 * target.c (target_stop_ptid, target_continue_ptid): New
12653 functions.
12654
721ec300
GB
126552014-09-11 Tom Tromey <tromey@redhat.com>
12656 Gary Benson <gbenson@redhat.com>
12657
12658 * target.h: Include target/target.h.
12659 * target.c (target_read_memory, target_read_uint32)
12660 (target_write_memory): New functions.
12661
c5e92cca
GB
126622014-09-11 Gary Benson <gbenson@redhat.com>
12663
12664 * server.h (debug_hw_points): Don't declare.
12665 * server.c (debug_hw_points): Don't define. Replace all uses
12666 with show_debug_regs.
12667 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12668 all uses with show_debug_regs.
12669
2e4bb98a
EBM
126702014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12671
12672 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12673 endianness into account.
12674 (ppc_supply_ptrace_register): Likewise.
12675
ac740bc7
JH
126762014-09-03 James Hogan <james.hogan@imgtec.com>
12677
12678 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12679 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12680
97ea6506
GB
126812014-09-03 Gary Benson <gbenson@redhat.com>
12682
12683 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12684 ALL_DEBUG_ADDRESS_REGISTERS.
12685
df7e5265
GB
126862014-09-02 Gary Benson <gbenson@redhat.com>
12687
12688 * i386-low.h: Renamed as...
12689 * x86-low.h: New file. All type, function and variable name
12690 prefixes changed from "i386_" to "x86_". All references updated.
12691 * i386-low.c: Renamed as...
12692 * x86-low.c: New file. All type, function and variable name
12693 prefixes changed from "i386_" to "x86_". All references updated.
12694
ed859da7
GB
126952014-09-02 Gary Benson <gbenson@redhat.com>
12696
12697 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12698 (x86_linux_new_thread): Likewise.
12699
860789c7
GB
127002014-08-29 Gary Benson <gbenson@redhat.com>
12701
12702 * server.h (setjmp.h): Do not include.
12703 (toplevel): Do not declare.
12704 (common-exceptions.h): Include.
12705 (cleanups.h): Likewise.
12706 * server.c (toplevel): Do not define.
12707 (exit_code): New static global.
12708 (detach_or_kill_for_exit_cleanup): New function.
12709 (main): New function. Original main renamed to...
12710 (captured_main): New function.
12711 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12712
ff55e1b5
GB
127132014-08-29 Gary Benson <gbenson@redhat.com>
12714
12715 * Makefile.in (SFILES): Add common/common-exceptions.c.
12716 (OBS): Add common-exceptions.o.
12717 (common-exceptions.o): New rule.
12718 * utils.c (prepare_to_throw_exception): New function.
12719
e9bcb658
GB
127202014-08-29 Gary Benson <gbenson@redhat.com>
12721
12722 * config.in: Regenerate.
12723 * configure: Likewise.
12724
e3180625
GB
127252014-08-29 Gary Benson <gbenson@redhat.com>
12726
12727 * Makefile.in (SFILES): Add common/cleanups.c.
12728 (OBS): cleanups.o.
12729 (cleanups.o): New rule.
12730
e3d6ba5d
GB
127312014-08-29 Gary Benson <gbenson@redhat.com>
12732
12733 * utils.c (internal_vwarning): New function.
12734
7096e886
GB
127352014-08-28 Gary Benson <gbenson@redhat.com>
12736
12737 * utils.h (fatal): Remove declaration.
12738 * utils.c (fatal): Remove function.
12739
14ce3192
GB
127402014-08-28 Gary Benson <gbenson@redhat.com>
12741
12742 * tracepoint.c (gdb_agent_init): Replace fatal with
12743 perror_with_name.
12744 (initialize_tracepoint): Likewise.
12745
50278d59
GB
127462014-08-28 Gary Benson <gbenson@redhat.com>
12747
12748 * remote-utils.c (remote_prepare): Replace fatal with error.
12749
aa96c426
GB
127502014-08-28 Gary Benson <gbenson@redhat.com>
12751
12752 * linux-low.c (linux_async): Replace fatal with warning.
12753 Tidy up and return.
12754 (linux_start_non_stop): Return -1 if linux_async failed.
12755
f7160e97
GB
127562014-08-28 Gary Benson <gbenson@redhat.com>
12757
12758 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12759 gdb_assert.
12760 (i386_dr_low_get_addr): Remove vague comment.
12761 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12762 gdb_assert.
12763
38e08fca
GB
127642014-08-28 Gary Benson <gbenson@redhat.com>
12765
12766 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12767 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12768 internal_error.
12769 (linux_resume_one_lwp): Likewise.
12770 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12771 gdb_assert.
12772 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12773 with internal_error.
12774 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12775 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12776 (find_register_by_name): Replace fatal with internal_error.
12777 (find_regno): Likewise.
12778 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12779 * thread-db.c (thread_db_create_event): Likewise.
12780 (thread_db_load_search): Likewise.
12781 (try_thread_db_load_1): Likewise.
12782 * tracepoint.c (get_jump_space_head): Replace fatal with
12783 internal_error.
12784 (claim_trampoline_space): Likewise.
12785 (have_fast_tracepoint_trampoline_buffer): Likewise.
12786 (cmd_qtstart): Likewise.
12787 (stop_tracing): Likewise.
12788 (fast_tracepoint_collecting): Likewise.
12789 (target_malloc): Likewise.
12790 (download_tracepoint): Likewise.
12791 (download_trace_state_variables): Replace check with gdb_assert.
12792 (upload_fast_traceframes): Replace fatal with internal_error.
12793
34abf635
GB
127942014-08-19 Tom Tromey <tromey@redhat.com>
12795 Gary Benson <gbenson@redhat.com>
12796
12797 * Makefile.in (SFILES): Add common/common-debug.c.
12798 (OBS): Add common-debug.o.
12799 (common-debug.o): New rule.
12800 * debug.h (debug_printf): Don't declare.
12801 * debug.c (debug_printf): Renamed and rewritten as...
12802 (debug_vprintf): New function.
12803
f6e94d78
GB
128042014-08-19 Gary Benson <gbenson@redhat.com>
12805
12806 * utils.h: Do not include print-utils.h.
12807
9239eeab
GB
128082014-08-19 Tom Tromey <tromey@redhat.com>
12809 Gary Benson <gbenson@redhat.com>
12810
12811 * server.h: Add static assertion.
12812 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12813
ef87c8bb
GB
128142014-08-19 Tom Tromey <tromey@redhat.com>
12815 Gary Benson <gbenson@redhat.com>
12816
12817 * Makefile.in (SFILES): Add common/errors.c.
12818 (OBS): Add errors.o.
12819 (IPA_OBS): Add errors-ipa.o.
12820 (errors.o): New rule.
12821 (errors-ipa.o): Likewise.
12822 * utils.h (perror_with_name, error, warning): Don't declare.
12823 * utils.c (warning): Renamed and rewritten as...
12824 (vwarning): New function.
12825 (error): Renamed and rewritten as...
12826 (verror): New function.
12827 (internal_error): Renamed and rewritten as...
12828 (internal_verror): New function.
12829
bb974a24
GB
128302014-08-07 Gary Benson <gbenson@redhat.com>
12831
12832 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12833 * configure: Regenerate.
12834 * config.in: Likewise.
12835 * server.h: Do not include errno.h.
12836 * event-loop.c: Likewise.
12837 * hostio-errno.c: Likewise.
12838 * linux-low.c: Likewise.
12839 * remote-utils.c: Likewise.
12840 * spu-low.c: Likewise.
12841 * utils.c: Likewise.
12842 * gdbreplay.c: Unconditionally include errno.h.
12843
6d3d12eb
GB
128442014-08-07 Gary Benson <gbenson@redhat.com>
12845
12846 * server.h: Do not include string.h.
12847 * event-loop.c: Likewise.
12848 * linux-low.c: Likewise.
12849 * regcache.c: Likewise.
12850 * remote-utils.c: Likewise.
12851 * spu-low.c: Likewise.
12852 * utils.c: Likewise.
12853
dccbb609
GB
128542014-08-07 Gary Benson <gbenson@redhat.com>
12855
12856 * server.h: Do not include gdb_assert.h.
12857
e76df0d0
GB
128582014-08-07 Gary Benson <gbenson@redhat.com>
12859
12860 * server.h: Do not include common-utils.h.
12861
4cb9c816
GB
128622014-08-07 Gary Benson <gbenson@redhat.com>
12863
12864 * server.h: Do not include ptid.h.
12865 * notif.h: Likewise.
12866
3995eeee
GB
128672014-08-07 Gary Benson <gbenson@redhat.com>
12868
12869 * server.h: Do not include gdb_locale.h.
12870
cb9f1a9b
GB
128712014-08-07 Gary Benson <gbenson@redhat.com>
12872
12873 * server.h: Do not include gdb/signals.h.
12874 * win32-low.c: Likewise.
12875
a5fceff8
GB
128762014-08-07 Gary Benson <gbenson@redhat.com>
12877
12878 * server.h: Do not include pathmax.h.
12879
b9391142
GB
128802014-08-07 Gary Benson <gbenson@redhat.com>
12881
12882 * server.h: Do not include libiberty.h.
12883 * linux-bfin-low.c: Likewise.
12884
0e443c87
GB
128852014-08-07 Gary Benson <gbenson@redhat.com>
12886
12887 * server.h: Do not include ansidecl.h.
12888
8ebb3f56
GB
128892014-08-07 Gary Benson <gbenson@redhat.com>
12890
12891 * linux-x86-low.c: Do not include stddef.h.
12892 * lynx-ppc-low.c: Likewise.
12893 * tracepoint.c: Likewise.
12894
8980bdf6
GB
128952014-08-07 Gary Benson <gbenson@redhat.com>
12896
12897 * server.h: Do not include stdarg.h.
12898 * nto-low.c: Likewise.
12899
d7096f71
GB
129002014-08-07 Gary Benson <gbenson@redhat.com>
12901
12902 * server.h: Do not include stdlib.h.
12903 * inferiors.c: Likewise.
12904 * linux-low.c: Likewise.
12905 * regcache.c: Likewise.
12906 * spu-low.c: Likewise.
12907 * tracepoint.c: Likewise.
12908 * utils.c: Likewise.
12909
d02f550d
GB
129102014-08-07 Gary Benson <gbenson@redhat.com>
12911
12912 * server.h: Do not include stdio.h.
12913 * linux-low.c: Likewise.
12914 * remote-utils.c: Likewise.
12915 * spu-low.c: Likewise.
12916 * utils.c: Likewise.
12917 * wincecompat.c: Likewise.
12918
87f6c4e3
GB
129192014-08-06 Gary Benson <gbenson@redhat.com>
12920
12921 * regcache.c (init_register_cache): Move conditionals inside if.
12922
7089dca4
GB
129232014-08-06 Gary Benson <gbenson@redhat.com>
12924
12925 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12926
462f517e
GB
129272014-07-31 Gary Benson <gbenson@redhat.com>
12928
12929 * ax.h: Do not include server.h.
12930 * gdbthread.h: Likewise.
12931 * lynx-low.h: Likewise.
12932 * notif.h: Likewise.
12933
976411d6
GB
129342014-07-30 Gary Benson <gbenson@redhat.com>
12935
12936 * server.h: Include common-defs.h.
12937 Do not include config.h or build-gnulib-gdbserver/config.h.
12938
d41f6d8e
GB
129392014-07-30 Gary Benson <gbenson@redhat.com>
12940
12941 * hostio-errno.c: Move server.h to top of includes list.
12942 * inferiors.c: Likewise.
12943 * linux-x86-low.c: Likewise.
12944 * notif.c: Include server.h.
12945
314c6a35
TT
129462014-07-24 Tom Tromey <tromey@redhat.com>
12947 Gary Benson <gbenson@redhat.com>
12948
12949 * server.h (CORE_ADDR): Now unsigned.
12950
69ff6be5
PA
129512014-07-16 Pedro Alves <palves@redhat.com>
12952
12953 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12954
ce9e3fe7
PA
129552014-07-15 Pedro Alves <palves@redhat.com>
12956
12957 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12958 copy.
12959
e76126e8
PA
129602014-07-11 Pedro Alves <palves@redhat.com>
12961
12962 * linux-low.c (kill_wait_lwp): New function, based on
12963 kill_one_lwp_callback, but use my_waitpid directly.
12964 (kill_one_lwp_callback, linux_kill): Use it.
12965
8e9db26e
PA
129662014-06-23 Pedro Alves <palves@redhat.com>
12967
12968 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12969 before setting DR0..DR3.
12970
698b3e08
GB
129712014-06-20 Gary Benson <gbenson@redhat.com>
12972
12973 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12974 * configure: Regenerated.
12975 * config.in: Likewise.
12976
125f8a3d
GB
129772014-06-20 Gary Benson <gbenson@redhat.com>
12978
12979 * Makefile.in (SFILES): Update locations for files moved
12980 from common to nat.
12981 (object file files): Reordered.
12982
42995dbd
GB
129832014-06-20 Gary Benson <gbenson@redhat.com>
12984
12985 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12986 (i386_dr_low_set_addr): Likewise.
12987 (i386_dr_low_get_addr): Likewise.
12988 (i386_dr_low_can_set_control): Likewise.
12989 (i386_dr_low_set_control): Likewise.
12990 (i386_dr_low_get_control): Likewise.
12991 (i386_dr_low_get_status): Likewise.
12992 (i386_get_debug_register_length): Likewise.
12993 * linux-x86-low.c (i386_dr_low_set_addr):
12994 Changed signature. Made static.
12995 (i386_dr_low_get_addr): Likewise.
12996 (i386_dr_low_set_control): Likewise.
12997 (i386_dr_low_get_control): Likewise.
12998 (i386_dr_low_get_status): Likewise.
12999 (i386_dr_low): New global variable.
13000 * win32-i386-low.c (i386_dr_low_set_addr):
13001 Changed signature. Made static.
13002 (i386_dr_low_get_addr): Likewise.
13003 (i386_dr_low_set_control): Likewise.
13004 (i386_dr_low_get_control): Likewise.
13005 (i386_dr_low_get_status): Likewise.
13006 (i386_dr_low): New global variable.
13007
e1d2394b
MS
130082014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
13009
13010 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
13011 * Makefile.in (AR, AR_FLAGS): Define.
13012 * configure: Regenerate.
13013
3a8ee006
GB
130142014-06-19 Gary Benson <gbenson@redhat.com>
13015
13016 * Makefile.in (i386-dregs.o): New rule.
13017 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
13018 * i386-low.c (target.h): Remove include.
13019 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
13020 (DR_CONTROL_SHIFT): Likewise.
13021 (DR_CONTROL_SIZE): Likewise.
13022 (DR_RW_EXECUTE): Likewise.
13023 (DR_RW_WRITE): Likewise.
13024 (DR_RW_READ): Likewise.
13025 (DR_RW_IORW): Likewise.
13026 (DR_LEN_1): Likewise.
13027 (DR_LEN_2): Likewise.
13028 (DR_LEN_4): Likewise.
13029 (DR_LEN_8): Likewise.
13030 (DR_LOCAL_ENABLE_SHIFT): Likewise.
13031 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
13032 (DR_ENABLE_SIZE): Likewise.
13033 (DR_LOCAL_SLOWDOWN): Likewise.
13034 (DR_GLOBAL_SLOWDOWN): Likewise.
13035 (DR_CONTROL_RESERVED): Likewise.
13036 (I386_DR_CONTROL_MASK): Likewise.
13037 (I386_DR_VACANT): Likewise.
13038 (I386_DR_LOCAL_ENABLE): Likewise.
13039 (I386_DR_GLOBAL_ENABLE): Likewise.
13040 (I386_DR_DISABLE): Likewise.
13041 (I386_DR_SET_RW_LEN): Likewise.
13042 (I386_DR_GET_RW_LEN): Likewise.
13043 (I386_DR_WATCH_HIT): Likewise.
13044 (i386_wp_op_t): Likewise.
13045 (i386_show_dr): Likewise.
13046 (i386_length_and_rw_bits): Likewise.
13047 (i386_insert_aligned_watchpoint): Likewise.
13048 (i386_remove_aligned_watchpoint): Likewise.
13049 (i386_handle_nonaligned_watchpoint): Likewise.
13050 i386_update_inferior_debug_regs(): Likewise.
13051 (i386_dr_insert_watchpoint): Likewise.
13052 (i386_dr_remove_watchpoint): Likewise.
13053 (i386_dr_region_ok_for_watchpoint): Likewise.
13054 (i386_dr_stopped_data_address): Likewise.
13055 (i386_dr_stopped_by_watchpoint): Likewise.
13056
8f26655c
GB
130572014-06-19 Gary Benson <gbenson@redhat.com>
13058
13059 * i386-low.c (i386_dr_show): Renamed to
13060 i386_show_dr and made static. All uses updated.
13061 (i386_dr_length_and_rw_bits): Renamed to
13062 i386_length_and_rw_bits and made static.
13063 All uses updated.
13064 (i386_dr_insert_aligned_watchpoint): Renamed to
13065 i386_insert_aligned_watchpoint and made static.
13066 All uses updated.
13067 (i386_dr_remove_aligned_watchpoint): Renamed to
13068 i386_remove_aligned_watchpoint and made static.
13069 All uses updated.
13070 (i386_dr_update_inferior_debug_regs): Renamed to
13071 i386_update_inferior_debug_regs and made static.
13072 All uses updated.
13073
b9228891
GB
130742014-06-18 Gary Benson <gbenson@redhat.com>
13075
5171def3
GB
13076 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13077 (i386_dr_low_can_set_control): Likewise.
13078 (i386_get_debug_register_length): Likewise.
13079 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13080 (i386_dr_low_can_set_control): Likewise.
13081 (i386_get_debug_register_length): Likewise.
13082
130832014-06-17 Gary Benson <gbenson@redhat.com>
13084
b9228891
GB
13085 * i386-low.h (i386-dregs.h): New include.
13086 (DR_FIRSTADDR): Now in i386-dregs.h.
13087 (DR_LASTADDR): Likewise.
13088 (DR_NADDR): Likewise.
13089 (DR_STATUS): Likewise.
13090 (DR_CONTROL): Likewise.
13091 (i386_debug_reg_state): Likewise.
13092 (i386_dr_insert_watchpoint): Likewise.
13093 (i386_dr_remove_watchpoint): Likewise.
13094 (i386_dr_region_ok_for_watchpoint): Likewise.
13095 (i386_dr_stopped_data_address): Likewise.
13096 (i386_dr_stopped_by_watchpoint): Likewise.
13097 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13098
4be83cc2
GB
130992014-06-18 Gary Benson <gbenson@redhat.com>
13100
13101 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13102 i386_dr_insert_watchpoint.
13103 (i386_low_remove_watchpoint): Renamed to
13104 i386_dr_remove_watchpoint.
13105 (i386_low_region_ok_for_watchpoint): Renamed to
13106 i386_dr_region_ok_for_watchpoint.
13107 (i386_low_stopped_data_address): Renamed to
13108 i386_dr_stopped_data_address.
13109 (i386_low_stopped_by_watchpoint): Renamed to
13110 i386_dr_stopped_by_watchpoint.
13111 * i386-low.c (i386_show_dr): Renamed to
13112 i386_dr_show and made nonstatic. All uses updated.
13113 (i386_length_and_rw_bits): Renamed to
13114 i386_dr_length_and_rw_bits and made nonstatic.
13115 All uses updated.
13116 (i386_insert_aligned_watchpoint): Renamed to
13117 i386_dr_insert_aligned_watchpoint and made nonstatic.
13118 All uses updated.
13119 (i386_remove_aligned_watchpoint): Renamed to
13120 i386_dr_remove_aligned_watchpoint and made nonstatic.
13121 All uses updated.
13122 (i386_update_inferior_debug_regs): Renamed to
13123 i386_dr_update_inferior_debug_regs and made nonstatic.
13124 All uses updated.
13125 (i386_low_insert_watchpoint): Renamed to
13126 i386_dr_insert_watchpoint. All uses updated.
13127 (i386_low_remove_watchpoint): Renamed to
13128 i386_dr_remove_watchpoint. All uses updated.
13129 (i386_low_region_ok_for_watchpoint): Renamed to
13130 i386_dr_region_ok_for_watchpoint. All uses updated.
13131 (i386_low_stopped_data_address): Renamed to
13132 i386_dr_stopped_data_address. All uses updated.
13133 (i386_low_stopped_by_watchpoint): Renamed to
13134 i386_dr_stopped_by_watchpoint. All uses updated.
13135
131aa0d4
GB
131362014-06-18 Gary Benson <gbenson@redhat.com>
13137
13138 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13139 (i386_dr_low_can_set_control): Likewise.
13140 (i386_insert_aligned_watchpoint): New check.
13141
d9305f7f
GB
131422014-06-18 Gary Benson <gbenson@redhat.com>
13143
13144 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13145 Renamed to state.
13146
e927c9fc
GB
131472014-06-18 Gary Benson <gbenson@redhat.com>
13148
13149 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13150 instead of fatal and error.
13151 (i386_handle_nonaligned_watchpoint): Likewise.
13152
1b6d4134
GB
131532014-06-18 Gary Benson <gbenson@redhat.com>
13154
13155 * i386-low.c (i386_get_debug_register_length): New macro.
13156 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13157 (i386_show_dr): Use debug_printf instead of fprintf. Use
13158 phex to format values.
13159
6e62758f
GB
131602014-06-18 Gary Benson <gbenson@redhat.com>
13161
13162 * i386-low.h: Comment changes.
13163 * i386-low.c: Likewise.
13164
fc6e2f03
GB
131652014-06-18 Gary Benson <gbenson@redhat.com>
13166
13167 * i386-low.c: Whitespace changes.
13168
f9d1eeed
TT
131692014-06-12 Tom Tromey <tromey@redhat.com>
13170
13171 * utils.c (freeargv): Remove.
13172
0b04e523
TT
131732014-06-12 Tom Tromey <tromey@redhat.com>
13174
13175 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13176 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13177 (parse_debug_format_options): Likewise.
13178 (gdbserver_usage): Likewise.
13179 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13180 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13181 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13182 against libiberty.
13183 ($(LIBGNU)): Depend on libiberty.
13184 (all-lib): Recurse into all subdirs.
13185 (install-only): Invoke "install" target in subdirs.
13186 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13187 targets.
13188 * configure: Rebuild.
13189 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13190 for vasprintf, vsnprintf, or gettimeofday.
13191 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13192 srv_tgtobj.
13193
270c9937
JB
131942014-06-05 Joel Brobecker <brobecker@adacore.com>
13195
13196 * development.sh: Delete.
13197 * Makefile.in (config.status): Adjust dependency on development.sh.
13198 * configure.ac: Adjust development.sh source call.
13199 * configure: Regenerate.
13200
0a261ed8
PA
132012014-06-02 Pedro Alves <palves@redhat.com>
13202
13203 * ax.c (gdb_free_agent_expr): New function.
13204 * ax.h (gdb_free_agent_expr): New declaration.
13205 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13206 list.
13207 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13208 static.
13209 (clear_breakpoint_conditions_and_commands): New function.
13210 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13211 (clear_breakpoint_conditions_and_commands): New declaration.
13212
e9dae05e
RR
132132014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13214
13215 * linux-aarch64-low.c (asm/ptrace.h): Include.
13216
5876f503
JK
132172014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13218
13219 Fix TLS access for -static -pthread.
13220 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13221 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13222 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13223
802e8e6d
PA
132242014-05-20 Pedro Alves <palves@redhat.com>
13225
13226 * linux-aarch64-low.c (aarch64_insert_point)
13227 (aarch64_remove_point): No longer check whether the type is
13228 supported here. Adjust to new interface.
13229 (the_low_target): Install aarch64_supports_z_point_type as
13230 supports_z_point_type method.
13231 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13232 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13233 instead of a Z packet char. Adjust.
13234 (arm_supports_z_point_type): New function.
13235 (arm_insert_point, arm_remove_point): Adjust to new interface.
13236 (the_low_target): Install arm_supports_z_point_type.
13237 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13238 (cris_insert_point, cris_remove_point): Adjust to new interface.
13239 Don't check whether the type is supported here.
13240 (the_low_target): Install cris_supports_z_point_type.
13241 * linux-low.c (linux_supports_z_point_type): New function.
13242 (linux_insert_point, linux_remove_point): Adjust to new interface.
13243 * linux-low.h (struct linux_target_ops) <insert_point,
13244 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13245 raw_breakpoint pointer parameter.
13246 <supports_z_point_type>: New method.
13247 * linux-mips-low.c (mips_supports_z_point_type): New function.
13248 (mips_insert_point, mips_remove_point): Adjust to new interface.
13249 Use mips_supports_z_point_type.
13250 (the_low_target): Install mips_supports_z_point_type.
13251 * linux-ppc-low.c (the_low_target): Install NULL as
13252 supports_z_point_type method.
13253 * linux-s390-low.c (the_low_target): Install NULL as
13254 supports_z_point_type method.
13255 * linux-sparc-low.c (the_low_target): Install NULL as
13256 supports_z_point_type method.
13257 * linux-x86-low.c (x86_supports_z_point_type): New function.
13258 (x86_insert_point): Adjust to new insert_point interface. Use
13259 insert_memory_breakpoint. Adjust to new
13260 i386_low_insert_watchpoint interface.
13261 (x86_remove_point): Adjust to remove_point interface. Use
13262 remove_memory_breakpoint. Adjust to new
13263 i386_low_remove_watchpoint interface.
13264 (the_low_target): Install x86_supports_z_point_type.
13265 * lynx-low.c (lynx_target_ops): Install NULL as
13266 supports_z_point_type callback.
13267 * nto-low.c (nto_supports_z_point_type): New.
13268 (nto_insert_point, nto_remove_point): Adjust to new interface.
13269 (nto_target_ops): Install nto_supports_z_point_type.
13270 * mem-break.c: Adjust intro comment.
13271 (struct raw_breakpoint) <raw_type, size>: New fields.
13272 <inserted>: Update comment.
13273 <shlib_disabled>: Delete field.
13274 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13275 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13276 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13277 (raw_bkpt_type_to_target_hw_bp_type): New function.
13278 (find_enabled_raw_code_breakpoint_at): New function.
13279 (find_raw_breakpoint_at): New type and size parameters. Use them.
13280 (insert_memory_breakpoint): New function, based off
13281 set_raw_breakpoint_at.
13282 (remove_memory_breakpoint): New function.
13283 (set_raw_breakpoint_at): Reimplement.
13284 (set_breakpoint): New, based on set_breakpoint_at.
13285 (set_breakpoint_at): Reimplement.
13286 (delete_raw_breakpoint): Go through the_target->remove_point
13287 instead of assuming memory breakpoints.
13288 (find_gdb_breakpoint_at): Delete.
13289 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13290 (find_gdb_breakpoint): New function.
13291 (set_gdb_breakpoint_at): Delete.
13292 (z_type_supported): New function.
13293 (set_gdb_breakpoint_1): New function, loosely based off
13294 set_gdb_breakpoint_at.
13295 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13296 (delete_gdb_breakpoint_at): Delete.
13297 (delete_gdb_breakpoint_1): New function, loosely based off
13298 delete_gdb_breakpoint_at.
13299 (delete_gdb_breakpoint): New function.
13300 (clear_gdb_breakpoint_conditions): Rename to ...
13301 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13302 breakpoint.
13303 (add_condition_to_breakpoint): Make static.
13304 (add_breakpoint_condition): Take a struct breakpoint pointer
13305 instead of an address. Adjust.
13306 (gdb_condition_true_at_breakpoint): Rename to ...
13307 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13308 z_type parameter.
13309 (gdb_condition_true_at_breakpoint): Reimplement.
13310 (add_breakpoint_commands): Take a struct breakpoint pointer
13311 instead of an address. Adjust.
13312 (gdb_no_commands_at_breakpoint): Rename to ...
13313 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13314 parameter. Return true if no breakpoint was found. Change debug
13315 output.
13316 (gdb_no_commands_at_breakpoint): Reimplement.
13317 (run_breakpoint_commands): Rename to ...
13318 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13319 and change return type to boolean.
13320 (run_breakpoint_commands): New function.
13321 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13322 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13323 breakpoint. Go through the_target->remove_point instead of
13324 assuming memory breakpoint.
13325 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13326 software and hardware breakpoints.
13327 (reinsert_raw_breakpoint): Go through the_target->insert_point
13328 instead of assuming memory breakpoint.
13329 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13330 software and hardware breakpoints.
13331 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13332 Check both software and hardware breakpoints.
13333 (validate_inserted_breakpoint): Assert the breakpoint is a
13334 software breakpoint. Set the inserted flag to -1 instead of
13335 setting shlib_disabled.
13336 (delete_disabled_breakpoints): Adjust.
13337 (validate_breakpoints): Only validate software breakpoints.
13338 Adjust to inserted flag change.
13339 (check_mem_read, check_mem_write): Skip breakpoint types other
13340 than software breakpoints. Adjust to inserted flag change.
13341 * mem-break.h (enum raw_bkpt_type): New enum.
13342 (raw_breakpoint, struct process_info): Forward declare.
13343 (Z_packet_to_target_hw_bp_type): Delete declaration.
13344 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13345 (set_gdb_breakpoint, delete_gdb_breakpoint)
13346 (clear_breakpoint_conditions): New declarations.
13347 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13348 (breakpoint_inserted_here): Update comment.
13349 (add_breakpoint_condition, add_breakpoint_commands): Replace
13350 address parameter with a breakpoint pointer parameter.
13351 (gdb_breakpoint_here): Update comment.
13352 (delete_gdb_breakpoint_at): Delete.
13353 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13354 * server.c (process_point_options): Take a struct breakpoint
13355 pointer instead of an address. Adjust.
13356 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13357 delete_gdb_breakpoint.
13358 * spu-low.c (spu_target_ops): Install NULL as
13359 supports_z_point_type method.
13360 * target.h: Include mem-break.h.
13361 (struct target_ops) <prepare_to_access_memory>: Update comment.
13362 <supports_z_point_type>: New field.
13363 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13364 instead of a char. Also take a raw breakpoint pointer.
13365 * win32-arm-low.c (the_low_target): Install NULL as
13366 supports_z_point_type.
13367 * win32-i386-low.c (i386_supports_z_point_type): New function.
13368 (i386_insert_point, i386_remove_point): Adjust to new interface.
13369 (the_low_target): Install i386_supports_z_point_type.
13370 * win32-low.c (win32_supports_z_point_type): New function.
13371 (win32_insert_point, win32_remove_point): Adjust to new interface.
13372 (win32_target_ops): Install win32_supports_z_point_type.
13373 * win32-low.h (struct win32_target_ops):
13374 <supports_z_point_type>: New method.
13375 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13376 instead of a char. Also take a raw breakpoint pointer.
13377
932539e3
PA
133782014-05-20 Pedro Alves <palves@redhat.com>
13379
13380 * mem-break.h: Include break-common.h.
13381 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13382 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13383 (Z_packet_to_target_hw_bp_type): New declaration.
13384 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13385 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13386 (Z_PACKET_ACCESS_WP): Delete macros.
13387 (Z_packet_to_hw_type): Delete function.
13388 * i386-low.h: Don't include break-common.h here.
13389 (Z_packet_to_hw_type): Delete declaration.
13390 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13391 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13392 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13393 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13394 * linux-aarch64-low.c: Don't include break-common.h here.
13395 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13396 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13397 (Z_packet_to_target_hw_bp_type): Delete function.
13398 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13399 function.
13400 (mips_insert_point, mips_remove_point): Use
13401 Z_packet_to_target_hw_bp_type.
13402
4ff0d3d8
PA
134032014-05-20 Pedro Alves <palves@redhat.com>
13404
13405 * linux-aarch64-low.c: Include break-common.h.
13406 (enum target_point_type): Delete.
13407 (Z_packet_to_point_type): Rename to ...
13408 (Z_packet_to_target_hw_bp_type): ... this, and return a
13409 target_hw_bp_type instead.
13410 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13411 instead of an enum target_point_type.
13412 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13413 breakpoint type.
13414 (aarch64_dr_state_insert_one_point)
13415 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13416 (aarch64_handle_aligned_watchpoint)
13417 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13418 Take an enum target_hw_bp_type instead of an enum
13419 target_point_type.
13420 (aarch64_supports_z_point_type): New function.
13421 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13422 use Z_packet_to_target_hw_bp_type.
13423
786dc519
JB
134242014-05-20 Joel Brobecker <brobecker@adacore.com>
13425
13426 * configure.ac: Only use -Werror by default when DEVELOPMENT
13427 is true.
13428 * configure: Regenerate.
13429
9e0aa64f
JK
134302014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13431
13432 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13433 * linux-x86-low.c (X86_64_USER_REGS): New.
13434 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13435
2b577b92
YQ
134362014-04-28 Yao Qi <yao@codesourcery.com>
13437
13438 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13439 name.
13440
94611da2
PA
134412014-04-25 Pedro Alves <palves@redhat.com>
13442
13443 PR server/16255
13444 * linux-low.c (linux_attach_fail_reason_string): New function.
13445 (linux_attach_lwp): Delete.
13446 (linux_attach_lwp_1): Rename to ...
13447 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13448 argument. Remove "initial" parameter. Return int instead of
13449 void. Don't error or warn here.
13450 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13451 failure to attach to the tgid. Call warning when failing to
13452 attach to an lwp.
13453 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13454 argument. Remove "initial" parameter. Return int instead of
13455 void. Don't error or warn here.
13456 (linux_attach_fail_reason_string): New declaration.
13457 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13458 interface change. Use linux_attach_fail_reason_string.
13459
01f9f808
MS
134602014-04-24 Michael Sturm <michael.sturm@mintel.com>
13461 Walfred Tedeschi <walfred.tedeschi@intel.com>
13462
13463 * Makefile.in: Added rules to handle new files
13464 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13465 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13466 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13467 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13468 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13469 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13470 x32-avx512-linux.o.
13471 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13472 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13473 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13474 i386/x32-avx512.xml.
13475 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13476 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13477 i386/x32-avx512-linux.xml.
13478 * i387-fp.c (num_avx512_k_registers): New constant for number
13479 of K registers.
13480 (num_avx512_zmmh_low_registers): New constant for number of
13481 lower ZMM registers (0-15).
13482 (num_avx512_zmmh_high_registers): New constant for number of
13483 higher ZMM registers (16-31).
13484 (num_avx512_ymmh_registers): New contant for number of higher
13485 YMM registers (ymm16-31 added by avx521 on x86_64).
13486 (num_avx512_xmm_registers): New constant for number of higher
13487 XMM registers (xmm16-31 added by AVX512 on x86_64).
13488 (struct i387_xsave): Add space for AVX512 registers.
13489 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13490 Add code to handle AVX512 registers.
13491 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13492 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13493 prototypei from generated file.
13494 (tdesc_amd64_avx512_linux): Likewise.
13495 (init_registers_x32_avx512_linux): Likewise.
13496 (tdesc_x32_avx512_linux): Likewise.
13497 (init_registers_i386_avx512_linux): Likewise.
13498 (tdesc_i386_avx512_linux): Likewise.
13499 (x86_64_regmap): Add AVX512 registers.
13500 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13501 mask.
13502 (initialize_low_arch): Add code to initialize AVX512 registers.
13503
51aa91f9
PA
135042014-04-23 Pedro Alves <palves@redhat.com>
13505
13506 * mem-break.c (find_gdb_breakpoint_at): Make static.
13507 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13508
a4165e94
PA
135092014-04-23 Pedro Alves <palves@redhat.com>
13510
13511 * i386-low.c: Don't include break-common.h here.
13512 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13513 prototype to take target_hw_bp_type as argument instead of a Z
13514 packet char.
13515 * i386-low.h: Include break-common.h here.
13516 (Z_packet_to_hw_type): Declare.
13517 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13518 prototypes.
13519 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13520 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13521 (x86_remove_point): Convert the packet number to a
13522 target_hw_bp_type before calling i386_low_remove_watchpoint.
13523 * win32-i386-low.c (i386_insert_point): Convert the packet number
13524 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13525 (i386_remove_point): Convert the packet number to a
13526 target_hw_bp_type before calling i386_low_remove_watchpoint.
13527
b8acf843
PA
135282014-04-23 Pedro Alves <palves@redhat.com>
13529
13530 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13531
d708bcd1
PA
135322014-04-10 Pedro Alves <palves@redhat.com>
13533
13534 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13535 Check if the condition or command is NULL before checking if the
13536 breakpoint is known. On success, return true.
13537 * mem-break.h (add_breakpoint_condition): Document return.
13538 (add_breakpoint_commands): Add describing comment.
13539 * server.c (skip_to_semicolon): New function.
13540 (process_point_options): Use it.
13541
2eec7d5b
PA
135422014-04-09 Pedro Alves <palves@redhat.com>
13543
13544 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13545 to lwpid_of.
13546
fa96cb38
PA
135472014-02-27 Pedro Alves <palves@redhat.com>
13548
13549 PR 12702
13550 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13551 macros.
13552 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13553 output.
13554 (last_thread_of_process_p): Take a PID argument instead of a
13555 thread pointer.
13556 (linux_wait_for_lwp): Delete.
13557 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13558 functions.
13559 (linux_low_filter_event): New function, party factored out from
13560 linux_wait_for_event.
13561 (linux_wait_for_event): Rename to ...
13562 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13563 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13564 sigsuspend. Check for zombie leaders.
13565 (linux_wait_for_event): Reimplement as wrapper around
13566 linux_wait_for_event_filtered.
13567 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13568 a normal or signal exit is seen, it's the whole process exiting.
13569 (wait_for_sigstop): No longer a for_each_inferior callback.
13570 Rewrite on top of linux_wait_for_event_filtered.
13571 (stop_all_lwps): Call wait_for_sigstop directly.
13572 * server.c (resume, handle_target_event): Handle
13573 TARGET_WAITKIND_NO_RESUMED.
13574
d763de10
JB
135752014-02-26 Joel Brobecker <brobecker@adacore.com>
13576
13577 * win32-low.c (psapi_get_dll_name,
13578 * win32_CreateToolhelp32Snapshot): Delete.
13579 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13580 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13581 Delete.
13582 (handle_load_dll): Add function description.
13583 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13584
850a0f76
JB
135852014-02-26 Joel Brobecker <brobecker@adacore.com>
13586
13587 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13588 Add comment.
13589 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13590 base address when calling win32_add_one_solib.
13591 (handle_load_dll): Delete local variable load_addr.
13592 Remove 0x1000 offset applied to DLL base address when calling
13593 win32_add_one_solib.
13594 (handle_unload_dll): Add comment.
13595
f25b3fc3
JB
135962014-02-26 Joel Brobecker <brobecker@adacore.com>
13597
13598 * win32-low.c (win32_add_all_dlls): Renames
13599 win32_ensure_ntdll_loaded. Rewrite function documentation.
13600 Adjust implementation to always load all DLLs.
13601 Add 0x1000 offset to DLL base address when calling
13602 win32_add_one_solib.
13603 (child_initialization_done): New static global.
13604 (do_initial_child_stuff): Set child_initialization_done to
13605 zero during child initialization, and 1 after. Replace call
13606 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13607 Add comment.
13608 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13609 (handle_unload_dll): Add function documentation.
13610 (get_child_debug_event): Ignore load and unload DLL events
13611 during child initialization.
13612
d86d4aaf
DE
136132014-02-20 Doug Evans <dje@google.com>
13614
3bc32da3 13615 Remove global all_lwps.
d86d4aaf
DE
13616 * inferiors.h (ptid_of): Move here from linux-low.h.
13617 (pid_of, lwpid_of): Ditto.
13618 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13619 parameter is a struct thread_info * now.
13620 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13621 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13622 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13623 directly.
13624 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13625 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13626 * linux-arm-low.c (update_registers_callback): Update, "entry"
13627 parameter is a struct thread_info * now.
13628 Fetch lwpid from current_inferior directly.
13629 (arm_insert_point): Pass &all_threads to find_inferior instead of
13630 &all_lwps.
13631 (arm_remove_point): Ditto.
13632 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13633 (arm_prepare_to_resume): Fetch pid from thread.
13634 (arm_read_description): Fetch lwpid from current_inferior directly.
13635 * linux-low.c (all_lwps): Delete.
13636 (delete_lwp): Delete call to remove_inferior.
13637 (handle_extended_wait): Fetch lwpid from thread.
13638 (add_lwp): Don't set lwp->entry.id. Remove call to
13639 add_inferior_to_list.
13640 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13641 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13642 (kill_one_lwp_callback): Ditto.
13643 (linux_kill): Don't dereference NULL pointer.
13644 Fetch ptid,lwpid from thread.
13645 (get_detach_signal): Fetch ptid from thread.
13646 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13647 Simplify call to regcache_invalidate_thread.
13648 (delete_lwp_callback): Update, "entry" parameter is a
13649 struct thread_info * now. Fetch pid from thread.
13650 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13651 (status_pending_p_callback): Update, "entry" parameter is a
13652 struct thread_info * now. Fetch ptid from thread.
13653 (find_lwp_pid): Update, "entry" parameter is a
13654 struct thread_info * now.
13655 (linux_wait_for_lwp): Fetch pid from thread.
13656 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13657 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13658 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13659 (dequeue_one_deferred_signal): Ditto.
13660 (cancel_breakpoint): Fetch ptid from current_inferior.
13661 (linux_wait_for_event): Pass &all_threads to find_inferior,
13662 not &all_lwps. Fetch ptid, lwpid from thread.
13663 (count_events_callback): Update, "entry" parameter is a
13664 struct thread_info * now.
13665 (select_singlestep_lwp_callback): Ditto.
13666 (select_event_lwp_callback): Ditto.
13667 (cancel_breakpoints_callback): Ditto.
13668 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13669 not &all_lwps.
13670 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13671 (unsuspend_one_lwp): Update, "entry" parameter is a
13672 struct thread_info * now.
13673 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13674 not &all_lwps.
13675 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13676 Fetch lwpid from thread, not lwp.
13677 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13678 Pass &all_threads to find_inferior, not &all_lwps.
13679 (send_sigstop): Fetch lwpid from thread, not lwp.
13680 (send_sigstop_callback): Update, "entry" parameter is a
13681 struct thread_info * now.
13682 (suspend_and_send_sigstop_callback): Ditto.
13683 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13684 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13685 struct thread_info * now.
13686 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13687 from thread, lwp.
13688 (lwp_running): Update, "entry" parameter is a
13689 struct thread_info * now.
13690 (stop_all_lwps): Fetch ptid from thread.
13691 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13692 (linux_resume_one_lwp): Fetch lwpid from thread.
13693 (linux_set_resume_request): Update, "entry" parameter is a
13694 struct thread_info * now. Fetch pid, lwpid from thread.
13695 (resume_status_pending_p): Update, "entry" parameter is a
13696 struct thread_info * now.
13697 (need_step_over_p): Ditto. Fetch lwpid from thread.
13698 (start_step_over): Fetch lwpid from thread.
13699 (linux_resume_one_thread): Update, "entry" parameter is a
13700 struct thread_info * now. Fetch lwpid from thread.
13701 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13702 (proceed_one_lwp): Update, "entry" parameter is a
13703 struct thread_info * now. Fetch lwpid from thread.
13704 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13705 struct thread_info * now.
13706 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13707 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13708 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13709 directly.
13710 (regsets_store_inferior_registers): Ditto.
13711 (fetch_register, store_register): Ditto.
13712 (linux_read_memory, linux_write_memory): Ditto.
13713 (linux_request_interrupt): Ditto.
13714 (linux_read_auxv): Ditto.
13715 (linux_xfer_siginfo): Ditto.
13716 (linux_qxfer_spu): Ditto.
13717 (linux_qxfer_libraries_svr4): Ditto.
13718 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13719 moved to inferiors.h.
13720 (get_lwp): Delete.
13721 (get_thread_lwp): Update.
13722 (struct lwp_info): Delete member "entry". Simplify comment for
13723 member "thread".
13724 (all_lwps): Delete.
13725 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13726 current_inferior directly.
13727 (update_watch_registers_callback): Update, "entry" parameter is a
13728 struct thread_info * now. Fetch pid from thread.
13729 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13730 (mips_insert_point): Fetch lwpid from current_inferior.
13731 Pass &all_threads to find_inferior, not &all_lwps.
13732 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13733 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13734 directly.
13735 (mips_stopped_data_address): Ditto.
13736 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13737 directly.
13738 * linux-tile-low.c (tile_arch_setup): Ditto.
13739 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13740 (update_debug_registers_callback): Update, "entry" parameter is a
13741 struct thread_info * now. Fetch pid from thread.
13742 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13743 Pass &all_threads to find_inferior, not &all_lwps.
13744 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13745 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13746 Pass &all_threads to find_inferior, not &all_lwps.
13747 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13748 (i386_dr_low_get_status): Ditto.
13749 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13750 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13751 (x86_linux_read_description): Ditto.
13752 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13753
3b8361aa
DE
137542014-02-20 Doug Evans <dje@google.com>
13755
13756 * inferiors.c (get_first_inferior): Fix buglet.
13757
f7667f0d
DE
137582014-02-19 Doug Evans <dje@google.com>
13759
13760 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13761 * inferiors.c (add_thread): Change result type to struct thread_info *.
13762 All callers updated.
13763 (add_lwp): Call add_thread here instead of in callers.
13764 All callers updated.
13765 * linux-low.h (get_lwp_thread): Rewrite.
13766 (struct lwp_info): New member "thread".
13767
b3312d80
DE
137682014-02-19 Doug Evans <dje@google.com>
13769
13770 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13771 All callers updated.
13772
ecc6f45c
DE
137732014-02-19 Doug Evans <dje@google.com>
13774
13775 * inferiors.c (add_thread): Fix whitespace.
13776
649ebbca
DE
137772014-02-19 Doug Evans <dje@google.com>
13778
13779 * dll.c (clear_dlls): Replace accessing list implemention details
13780 with API function.
13781 * gdbthread.h (get_first_thread): Declare.
13782 * inferiors.c (for_each_inferior_with_data): New function.
13783 (get_first_thread): New function.
13784 (find_thread_ptid): Simplify.
13785 (get_first_inferior): New function.
13786 (clear_list): Delete.
13787 (one_inferior_p): New function.
13788 (clear_inferior_list): New function.
13789 (clear_inferiors): Update.
13790 * inferiors.h (for_each_inferior_with_data): Declare.
13791 (clear_inferior_list): Declare.
13792 (one_inferior_p): Declare.
13793 (get_first_inferior): Declare.
13794 * linux-low.c (linux_wait_for_event): Replace accessing list
13795 implemention details with API function.
13796 * server.c (target_running): Ditto.
13797 (accumulate_file_name_length): New function.
13798 (emit_dll_description): New function.
13799 (handle_qxfer_libraries): Replace accessing list implemention
13800 details with API function.
13801 (handle_qxfer_threads_worker): New function.
13802 (handle_qxfer_threads_proper): Replace accessing list implemention
13803 details with API function.
13804 (handle_query): Ditto.
13805 (visit_actioned_threads_callback_ftype): New typedef.
13806 (visit_actioned_threads_data): New struct.
13807 (visit_actioned_threads): Rewrite to be find_inferior callback.
13808 (resume): Call find_inferior.
13809 (handle_status): Replace accessing list implemention
13810 details with API function.
13811 (process_serial_event): Replace accessing list implemention details
13812 with API function.
13813 * target.c (set_desired_inferior): Replace accessing list implemention
13814 details with API function.
13815 * tracepoint.c (same_process_p): New function.
13816 (gdb_agent_about_to_close): Replace accessing list implemention
13817 details with API function.
13818 * win32-low.c (child_delete_thread): Replace accessing list
13819 implemention details with API function.
13820 (match_dll_by_basename): New function.
13821 (dll_is_loaded_by_basename): New function.
13822 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13823 details call to dll_is_loaded_by_basename.
13824
80894984
DE
138252014-02-19 Doug Evans <dje@google.com>
13826
13827 * dll.h (struct dll_info): Add comment.
13828 * gdbthread.h (struct thread_info): Add comment.
13829 (current_ptid): Simplify.
13830 * inferiors.c (add_process): Update.
13831 (remove_process): Update.
13832 * inferiors.h (struct process_info): Rename member "head" to "entry".
13833 * linux-low.c (delete_lwp): Update.
13834 (add_lwp): Update.
13835 (last_thread_of_process_p): Update.
13836 (kill_one_lwp_callback, linux_kill): Update.
13837 (status_pending_p_callback): Update.
13838 (wait_for_sigstop): Update. Simplify read of ptid.
13839 (start_step_over): Update.
13840 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13841 (get_lwp_thread): Update.
13842 (struct lwp_info): Rename member "head" to "entry".
13843 * regcache.h (inferior_list_entry): Delete.
13844 * server.c (kill_inferior_callback): Update.
13845 (detach_or_kill_inferior_callback): Update.
13846 (print_started_pid): Update.
13847 (print_attached_pid): Update.
13848 (process_serial_event): Simplify read of ptid.
13849 * thread-db.c (thread_db_create_event): Update.
13850 (thread_db_get_tls_address): Update.
13851 * win32-low.c (current_inferior_ptid): Simplify.
13852
46917d26
TT
138532014-02-19 Tom Tromey <tromey@redhat.com>
13854
13855 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13856 argument.
13857 (target_supports_btrace): Update.
13858
0759a81e
YQ
138592014-02-14 Yao Qi <yao@codesourcery.com>
13860
13861 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13862 (rsp-low-ipa.o): New target.
13863
a7191e8b
TT
138642014-02-12 Tom Tromey <tromey@redhat.com>
13865
13866 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13867 convert_ascii_to_int.
13868 * regcache.c (registers_to_string): Likewise.
13869 * remote-utils.c (decode_M_packet): Likewise.
13870 * server.c (process_serial_event): Likewise.
13871
ff0e980e
TT
138722014-02-12 Tom Tromey <tromey@redhat.com>
13873
13874 * server.c (handle_query, handle_v_run): Use hex2bin, not
13875 unhexify.
13876 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13877
e9371aff
TT
138782014-02-12 Tom Tromey <tromey@redhat.com>
13879
13880 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13881 convert_int_to_ascii.
13882 * regcache.c (registers_to_string, collect_register_as_string):
13883 Likewise.
13884 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13885 Likewise.
13886 * server.c (process_serial_event): Likewise.
13887 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13888 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13889
971dc0b8
TT
138902014-02-12 Tom Tromey <tromey@redhat.com>
13891
13892 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13893 bin2hex, not hexify.
13894 * tracepoint.c (cmd_qtstatus): Likewise.
13895
0a822afb
TT
138962014-02-12 Tom Tromey <tromey@redhat.com>
13897
13898 * remote-utils.c (monitor_output): Pass explicit length to
13899 hexify.
13900
9c3d6531
TT
139012014-02-12 Tom Tromey <tromey@redhat.com>
13902
13903 * tracepoint.c: Include rsp-low.h.
13904 * server.c: Include rsp-low.h.
13905 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13906 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13907 declare.
13908 * remote-utils.c: Include rsp-low.h.
13909 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13910 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13911 (convert_int_to_ascii, convert_ascii_to_int): Move to
13912 common/rsp-low.c.
13913 * regcache.c: Include rsp-low.h.
13914 * ax.c: Include rsp-low.h.
13915 * Makefile.in (SFILES): Add common/rsp-low.c.
13916 (OBS): Add rsp-low.o.
13917 (rsp-low.o): New target.
13918
01fd3ea5
TT
139192014-02-12 Tom Tromey <tromey@redhat.com>
13920
13921 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13922 Include print-utils.h.
13923 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13924 (plongest, thirty_two, phex_nz): Remove.
13925 * Makefile.in (SFILES): Add common/print-utils.c.
13926 (OBS): Add print-utils.o.
13927 (print-utils-ipa.o): New target.
13928 (print-utils.o): New target.
13929 (IPA_OBJS): Add print-utils-ipa.o.
13930
e99dc820
TT
139312014-02-06 Tom Tromey <tromey@redhat.com>
13932
13933 * Makefile.in (SFILES): Fix indentation.
13934
ee1e2d4f
DE
139352014-02-05 Doug Evans <dje@google.com>
13936
13937 * linux-low.c (linux_wait_for_event): Improve comment.
13938 (linux_wait_1): Keep current_inferior in sync with event_child.
13939
f5a02773
DE
139402014-01-22 Doug Evans <dje@google.com>
13941
13942 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13943
87ce2a04
DE
139442014-01-22 Doug Evans <dje@google.com>
13945
13946 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13947 * configure: Regenerate.
13948 * config.in: Regenerate.
13949 * Makefile.in (SFILES): Add debug.c.
13950 (OBS): Add debug.o.
13951 * debug.c: New file.
13952 * debug.h: New file.
13953 * linux-aarch64-low.c (*): Update all debugging printfs to use
13954 debug_printf instead of fprintf.
13955 * linux-arm-low.c (*): Ditto.
13956 * linux-cris-low.c (*): Ditto.
13957 * linux-crisv32-low.c (*): Ditto.
13958 * linux-m32r-low.c (*): Ditto.
13959 * linux-sparc-low.c (*): Ditto.
13960 * linux-x86.c (*): Ditto.
13961 * linux-low.c (*): Ditto.
13962 (linux_wait_1): Add calls to debug_enter, debug_exit.
13963 (linux_wait): Remove redundant debugging printf.
13964 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13965 (linux_resume, unstop_all_lwps): Ditto.
13966 * mem-break.c (*): Update all debugging printfs to use
13967 debug_printf instead of fprintf.
13968 * remote-utils.c (*): Ditto.
13969 * thread-db.c (*): Ditto.
13970 * server.c #include <ctype.h>, "gdb_vecs.h".
13971 (debug_threads): Moved to debug.c.
13972 (*): Update all debugging printfs to use debug_printf instead of
13973 fprintf.
13974 (start_inferior): Replace call to fflush with call to debug_flush.
13975 (monitor_show_help): Mention set debug-format.
13976 (parse_debug_format_options): New function.
13977 (handle_monitor_command): Handle "monitor set debug-format".
13978 (gdbserver_usage): Mention --debug-format.
13979 (main): Parse --debug-format.
13980 * server.h (debug_threads): Declaration moved to debug.h.
13981 #include "debug.h".
13982 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13983 trace_debug_1 that uses debug_printf.
13984 (tracepoint_look_up_symbols): Update all debugging printfs to use
13985 debug_printf instead of fprintf.
13986
e671835b
BS
139872014-01-20 Baruch Siach <baruch@tkos.co.il>
13988
13989 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13990 sys/ptrace.h.
13991
b5737fa9
PA
139922014-01-17 Pedro Alves <palves@redhat.com>
13993
ea38d2a9 13994 PR build/16445
c7faa97a
PA
13995 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13996 defined after including gdb_proc_service.h.
b5737fa9 13997
40ed484e
DE
139982014-01-16 Doug Evans <dje@google.com>
13999
14000 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
14001 (match_dll): Use it.
14002
969c39fb
MM
140032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14004
14005 * target.h (target_ops) <read_btrace>: Change parameters and
14006 return type to allow error reporting.
14007 * server.c (handle_qxfer_btrace): Support delta reads. Pass
14008 trace reading errors on.
14009 * linux-low.c (linux_low_read_btrace): Pass trace reading
14010 errors on.
14011 (linux_low_disable_btrace): New.
14012
ab7f45ba
DE
140132014-01-15 Doug Evans <dje@google.com>
14014
14015 * inferiors.c (thread_id_to_gdb_id): Delete.
14016 * inferiors.h (thread_id_to_gdb_id): Delete.
14017
66af0f44
EZ
140182014-01-13 Eli Zaretskii <eliz@gnu.org>
14019
14020 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
14021 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
14022 versions.
14023
9939e131
PA
140242014-01-08 Pedro Alves <palves@redhat.com>
14025
14026 * server.c (handle_status): Don't discard previous queued stop
14027 replies or thread's pending status here.
14028 (main) <disconnection>: Do it here instead.
14029
b7ea362b
PA
140302014-01-08 Pedro Alves <palves@redhat.com>
14031
14032 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
14033 * server.c (visit_actioned_threads, handle_pending_status): New
14034 function.
14035 (handle_v_cont): Factor out parts to ...
14036 (resume): ... this new function. If in all-stop, and a thread
14037 being resumed has a pending status, report it without actually
14038 resuming.
14039 (myresume): Adjust to use the new 'resume' function.
14040 (clear_pending_status_callback, set_pending_status_callback)
14041 (find_status_pending_thread_callback): New functions.
14042 (handle_status): Handle the case of multiple threads having
14043 interesting statuses to report. Report threads' real last signal
14044 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
14045 with an interesting thread to report the status for, instead of
14046 always reporting the status of the first thread.
14047
28498c42
JB
140482014-01-01 Joel Brobecker <brobecker@adacore.com>
14049
14050 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
14051 * gdbreplay.c (gdbreplay_version): Likewise.
14052
f45c82da
YZ
140532013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
14054
14055 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
14056 iov.iov_len with the real length in use.
14057
379a5e2d
JB
140582013-12-13 Joel Brobecker <brobecker@adacore.com>
14059
14060 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14061 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14062 for all targets that use win32-low.c.
14063 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14064 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14065
4210d83e
PA
140662013-12-13 Pedro Alves <palves@redhat.com>
14067
14068 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14069 if equal to TARGET_WAITKIND_LOADED.
14070 * win32-low.c (cached_status): New static global.
14071 (win32_wait): Add declaration.
14072 (do_initial_child_stuff): Flush all initial pending debug events
14073 up to the initial breakpoint.
14074 (win32_wait): If CACHED_STATUS was set, return that instead
14075 of doing a real wait. Remove the code resuming the execution
14076 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14077 during the initial phase. Also remove the code changing
14078 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14079 TARGET_WAITKIND_STOPPED.
14080
e7f0d979
YQ
140812013-12-11 Yao Qi <yao@codesourcery.com>
14082
14083 * notif.c (handle_notif_ack): Return 0 if no notification
14084 matches.
14085
ebcf782c
DE
140862013-11-20 Doug Evans <dje@google.com>
14087
14088 * linux-low.c (linux_set_resume_request): Fix comment.
14089
20ad9378
DE
140902013-11-20 Doug Evans <dje@google.com>
14091
14092 * linux-low.c (resume_status_pending_p): Tweak comment.
14093
a196ebeb
WT
140942013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14095
14096 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14097 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14098 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14099 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14100 (srv_amd64_regobj): Add amd64-mpx.o.
14101 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14102 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14103 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14104 * i387-fp.c (num_pl_bnd_register) Added constant.
14105 (num_pl_bnd_cfg_registers) Added constant.
14106 (struct i387_xsave) Added reserved area and MPX fields.
14107 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14108 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14109 function.
14110 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14111 (init_registers_amd64_mpx_linux): Declare new function.
14112 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14113 (x86_64_regmap): Add MPX registers.
14114 (x86_linux_read_description): Add MPX case.
14115 (initialize_low_arch): Initialize MPX targets.
14116
0080a2f6
TT
141172013-11-18 Tom Tromey <tromey@redhat.com>
14118
14119 * configure: Rebuild.
14120 * configure.ac: Don't check for stdlib.h.
14121 * gdbreplay.c: Unconditionally include stdlib.h.
14122
2978b111
TT
141232013-11-18 Tom Tromey <tromey@redhat.com>
14124
14125 * config.in: Rebuild.
14126 * configure: Rebuild.
14127 * configure.ac: Don't use AC_HEADER_DIRENT.
14128
a3d08894
TT
141292013-11-18 Tom Tromey <tromey@redhat.com>
14130
14131 * server.h: Don't check HAVE_STRING_H.
14132 * gdbreplay.c: Don't check HAVE_STRING_H.
14133 * configure: Rebuild.
14134
0a5dd17d
TT
141352013-11-18 Tom Tromey <tromey@redhat.com>
14136
14137 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14138 LIBGNU.
14139
1bd2f0ba
TT
141402013-11-08 Tom Tromey <tromey@redhat.com>
14141
14142 * configure, config.in: Rebuild.
14143 * configure.ac: Remove unused configury.
14144
3266f10b
TT
141452013-11-08 Tom Tromey <tromey@redhat.com>
14146
14147 * acinclude.m4: Include common.m4, codeset.m4.
14148 * configure, config.in: Rebuild.
14149 * configure.ac: Use GDB_AC_COMMON.
14150
6682d959
AA
141512013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14152
14153 * linux-s390-low.c (HWCAP_S390_TE): New define.
14154 (s390_arch_setup): Consider the TE field in the HWCAP for
14155 determining 'have_regset_tdb'.
14156
fd0a4d76
SDJ
141572013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14158
14159 PR gdb/16014
14160 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14161 call to sizeof.
14162
1a3d890b
PA
141632013-10-02 Pedro Alves <palves@redhat.com>
14164
14165 * server.c (process_serial_event): Don't output "GDBserver
14166 exiting" if GDB is connected through stdio.
14167 * target.c (mywait): Likewise, be silent if GDB is connected
14168 through stdio.
14169
97ad4581
JB
141702013-10-01 Joel Brobecker <brobecker@adacore.com>
14171
14172 * lynx-low.c (lynx_add_threads_after_attach): New function.
14173 (lynx_attach): Remove call to add_thread. Add call to
14174 lynx_add_threads_after_attach instead.
14175
5b4e221c
MF
141762013-09-28 Mike Frysinger <vapier@gentoo.org>
14177
14178 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14179 * config.in, configure: Regenerated.
14180
ee47b2f8
YQ
141812013-09-18 Yao Qi <yao@codesourcery.com>
14182
14183 PR server/15959
14184 * server.c (start_inferior): Clear 'resume_info'.
14185
d6707650 141862013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14187
d6707650
JW
14188 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14189 for each register.
14190
9243dd0e 141912013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14192
9243dd0e
JW
14193 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14194 linux-tile-low.o to srv_tgtobj.
14195
c623a6ef
WN
141962013-09-16 Will Newton <will.newton@linaro.org>
14197
14198 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14199 out regs.
14200
fb71d39e
PA
142012013-09-06 Pedro Alves <palves@redhat.com>
14202
14203 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14204 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14205 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14206 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14207 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14208 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14209
8e7e9910
PA
142102013-09-06 Pedro Alves <palves@redhat.com>
14211
14212 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14213 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14214
7c3a12ca
PA
142152013-09-06 Pedro Alves <palves@redhat.com>
14216
14217 * linux-amd64-ipa.c: Include tracepoint.h.
14218 * linux-i386-ipa.c: Include tracepoint.h.
14219
8eb3d7b6
RW
142202013-09-06 Ricard Wanderlof <ricardw@axis.com>
14221
14222 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14223 (ps_get_thread_area): New function.
14224
eddddb9d
RW
142252013-09-06 Ricard Wanderlof <ricardw@axis.com>
14226
14227 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14228 (initialize_low_arch): Call init_registers_crisv32 rather than
14229 init_register_crisv32.
14230
533b0600
PA
142312013-09-05 Pedro Alves <palves@redhat.com>
14232
14233 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14234 to ...
14235 * hostio.h: ... this new file.
14236 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14237 win32-low.c: Include hostio.h.
14238
0ce3d3b5
PA
142392013-09-05 Pedro Alves <palves@redhat.com>
14240
14241 * server.h (gdb_client_data, handler_func, callback_handler_func)
14242 (delete_file_handler, add_file_handler, append_callback_event)
14243 (delete_callback_event, start_event_loop, initialize_event_loop):
14244 Move to event-loop.h and include it.
14245 * event-loop.h: New file.
14246
799cdc37
PA
142472013-09-05 Pedro Alves <palves@redhat.com>
14248
14249 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14250 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14251 (loaded_dll, unloaded_dll): Move to ...
14252 * dll.h: ... this new file.
14253 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14254
6a6bbd9d
PA
142552013-09-05 Pedro Alves <palves@redhat.com>
14256
14257 * server.h (current_process, get_thread_process, all_processes)
14258 (add_inferior_to_list, for_each_inferior, current_inferior)
14259 (remove_inferior, add_process, remove_process, find_process_pid)
14260 (have_started_inferiors_p, have_attached_inferiors_p)
14261 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14262 (clear_inferiors, find_inferior, find_inferior_id)
14263 (inferior_target_data, set_inferior_target_data)
14264 (inferior_regcache_data, set_inferior_regcache_data): Move to
14265 inferiors.h, and include it.
14266 * inferiors.h: New file.
14267
f699aaba
PA
142682013-09-05 Pedro Alves <palves@redhat.com>
14269
14270 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14271 Move ...
72f4393d 14272 * ax.h: ... here.
f699aaba 14273
c144c7a0
PA
142742013-09-05 Pedro Alves <palves@redhat.com>
14275
14276 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14277 tracepoint.h.
14278 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14279 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14280 (handle_tracepoint_general_set, handle_tracepoint_query)
14281 (tracepoint_finished_step, tracepoint_was_hit)
14282 (release_while_stepping_state_list, current_traceframe)
14283 (in_readonly_region, traceframe_read_mem)
14284 (fetch_traceframe_registers, traceframe_read_sdata)
14285 (traceframe_read_info, struct fast_tpoint_collect_status)
14286 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14287 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14288 (supply_fast_tracepoint_registers)
14289 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14290 (ipa_tdesc, claim_trampoline_space)
14291 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14292 (agent_mem_read, agent_get_trace_state_variable_value)
14293 (agent_set_trace_state_variable_value, agent_tsv_read)
14294 (agent_mem_read_string, get_raw_reg_func_addr)
14295 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14296 * tracepoint.h: ... this new file.
14297
ff42e6ab
PA
142982013-09-05 Pedro Alves <palves@redhat.com>
14299
14300 * server.h (perror_with_name, error, fatal, warning, paddress)
14301 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14302 include it.
14303 * utils.h: New file.
14304
541af0f4
PA
143052013-09-05 Pedro Alves <palves@redhat.com>
14306
14307 * server.h (remote_debug, noack_mode, transport_is_reliable)
14308 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14309 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14310 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14311 (write_enn, initialize_async_io, enable_async_io)
14312 (disable_async_io, check_remote_input_interrupt_request)
14313 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14314 (dead_thread_notify, prepare_resume_reply)
14315 (decode_address_to_semicolon, decode_address, decode_m_packet)
14316 (decode_M_packet, decode_X_packet, decode_xfer_write)
14317 (decode_search_memory_packet, unhexify, hexify)
14318 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14319 (look_up_one_symbol, relocate_instruction)
14320 (monitor_output): Move to remote-utils.h, and include it.
14321 * remote-utils.h: New file.
14322
eebdf26b
PA
143232013-09-05 Pedro Alves <palves@redhat.com>
14324
14325 * server.h (_): Delete.
14326
3aafd2ff
PA
143272013-09-02 Pedro Alves <palves@redhat.com>
14328
14329 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14330 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14331 allocated.
14332 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14333
cee83bcb
PM
143342013-09-02 Pierre Muller <muller@sourceware.org>
14335
14336 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14337 or WriteProcessMemory complete successfully and handle
14338 ERROR_PARTIAL_COPY error.
14339
9a13b2fa
PA
143402013-09-02 Pedro Alves <palves@redhat.com>
14341
14342 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14343 error instead of EIO.
14344
602e3198
JK
143452013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14346
14347 PR server/15604
14348 * linux-low.c: Include filestuff.h.
14349 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14350 * lynx-low.c: Include filestuff.h.
14351 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14352 * server.c: Include filestuff.h.
14353 (main): Call notice_open_fds.
14354 * spu-low.c: Include filestuff.h.
14355 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14356
96d7229d
LM
143572013-08-22 Luis Machado <lgustavo@codesourcery.com>
14358
14359 * Makefile.in: Explain why ../target and ../nat are not
14360 listed as include file search paths.
14361 (linux-waitpid.o): New object file rule.
14362 * configure.srv (srv_native_linux_obj): New variable.
14363 Replace all occurrences of linux native object files with
14364 $srv_native_linux_obj.
14365 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14366 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14367 (linux_enable_event_reporting): Remove declaration.
14368 (my_waitpid): Moved to common/linux-waitpid.c.
14369 (linux_wait_for_event): Pass ptid when calling
14370 linux_enable_event_reporting.
14371 (linux_supports_tracefork_flag): Remove.
14372 (linux_enable_event_reporting): Likewise.
14373 (linux_tracefork_grandchild): Remove.
14374 (STACK_SIZE): Moved to common/linux-ptrace.c.
14375 (linux_tracefork_child): Remove.
14376 (linux_test_for_tracefork): Remove.
14377 (linux_look_up_symbols): Call linux_supports_traceclone.
14378 (initialize_low): Remove call to linux_test_for_tracefork.
14379 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14380 common/linux-ptrace.h.
14381 (PTRACE_TYPE_ARG4): Likewise.
14382 Include linux-ptrace.h.
14383
32940073
PA
143842013-08-21 Pedro Alves <palves@redhat.com>
14385
14386 * config.in: Renegerate.
14387
33b60d58 143882013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14389
33b60d58
LM
14390 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14391 (SFILES): Remove $(srcdir)/common/target-common.c and
14392 add $(srcdir)/target/waitstatus.c.
14393 (OBS): Remove target-common.o and add waitstatus.o.
14394 (server_h): Remove $(srcdir)/../common/target-common.h and
14395 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14396 and $(srcdir)/../target/waitstatus.h.
14397 (target-common.o): Remove.
14398 (waitstatus.o): New target object file.
14399 * target.h: Do not include target-common.h and
14400 include target/resume.h, target/wait.h and
14401 target/waitstatus.h.
14402
b8e1b30e
LM
144032013-08-13 Luis Machado <lgustavo@codesourcery.com>
14404
14405 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14406 to PTRACE_TYPE_ARG3.
14407 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14408 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14409 PTRACE_TYPE_ARG4.
14410 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14411 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14412
7a60ad40
YQ
144132013-07-27 Jie Zhang <jie@codesourcery.com>
14414 Daniel Jacobowitz <dan@codesourcery.com>
14415 Yao Qi <yao@codesourcery.com>
14416
14417 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14418 (mips-linux-watch.o): New rule.
14419 (mips_linux_watch_h): New variable.
14420 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14421 srv_tgtobj.
14422 * linux-mips-low.c: Include mips-linux-watch.h.
14423 (struct arch_process_info, struct arch_lwp_info): New.
14424 (update_watch_registers_callback): New function.
14425 (mips_linux_new_process, mips_linux_new_thread) New functions.
14426 (mips_linux_prepare_to_resume, mips_insert_point): New
14427 functions.
14428 (mips_remove_point, mips_stopped_by_watchpoint): New
14429 functions.
14430 (rsp_bp_type_to_target_hw_bp_type): New function.
14431 (mips_stopped_data_address): New function.
14432 (the_low_target): Add watchpoint support functions.
14433
de6f69ad
YQ
144342013-07-27 Yao Qi <yao@codesourcery.com>
14435
14436 * i386-low.c: Include break-common.h.
14437 (enum target_hw_bp_type): Remove.
14438
3360c0bf
LM
144392013-07-24 Luis Machado <lgustavo@codesourcery.com>
14440
14441 * Makefile.in (SFILES): /common/target-common.c.
14442 (OBS): Add target-common.o.
14443 (server_h): Add $(srcdir)/../common/target-common.h.
14444 (target-common.o): New target.
14445 * server.c (queue_stop_reply_callback): Free
14446 status string after use.
14447 * target.c (target_waitstatus_to_string): Remove.
14448 * target.h: Include target-common.h.
14449 (resume_kind): Likewise.
14450 (target_waitkind): Likewise.
14451 (target_waitstatus): Likewise.
14452 (TARGET_WNOHANG): Likewise.
14453
bd885420
YQ
144542013-07-04 Yao Qi <yao@codesourcery.com>
14455
14456 * Makefile.in (host_alias): Use @host_noncanonical@.
14457 (target_alias): Use @target_noncanonical@.
14458 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14459 ACX_NONCANONICAL_HOST.
14460 * configure: Regenerated.
14461
14462 Revert:
14463 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14464
14465 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14466 * configure: Rebuild.
14467 * Makefile.in (version_host, version_target): Get from configure.
14468 (version.c): Use $(version_host) and $(version_target).
14469
17ef446e
PA
144702013-07-03 Pedro Alves <palves@redhat.com>
14471
14472 * Makefile.in (config.status): Depend on development.sh.
14473 * acinclude.m4: Include libmcheck.m4.
14474 * configure: Regenerate.
14475
7a9a7487
MG
144762013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14477
14478 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14479 attribute inside the parentheses.
14480 (winapi_DebugSetProcessKillOnExit): Ditto.
14481 (winapi_DebugBreakProcess): Ditto.
14482 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14483
49b64de6
MG
144842013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14485
14486 * notif.h (notif_event): Add a dummy member to avoid compiler
14487 errors.
14488
d5749ee7
PA
144892013-07-01 Pedro Alves <palves@redhat.com>
14490
14491 * hostio.c (HOSTIO_PATH_MAX): Define.
14492 (require_filename, handle_open, handle_unlink, handle_readlink):
14493 Use it.
14494
d8d2a3ee
PA
144952013-07-01 Pedro Alves <palves@redhat.com>
14496
14497 * server.h: Include "pathmax.h".
14498 * linux-low.c: Don't include sys/param.h.
14499 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14500 MAXPATHLEN.
14501 * win32-low.c: Don't include sys/param.h.
14502 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14503
bc7dea8d
PA
145042013-07-01 Pedro Alves <palves@redhat.com>
14505
14506 * event-loop.c: Don't check HAVE_UNISTD_H before including
14507 <unistd.h>.
14508 * gdbreplay.c: Likewise.
14509 * remote-utils.c: Likewise.
14510 * server.c: Likewise.
14511 * configure.ac: Don't check for unistd.h.
14512 * configure: Regenerate.
14513
d6c2da54
TT
145142013-06-28 Tom Tromey <tromey@redhat.com>
14515
14516 * Makefile.in (version.c): Use version.in, not
14517 common/version.in.
14518
257b6bec
MG
145192013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14520
14521 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14522 * configure: Rebuild.
14523 * Makefile.in (version_host, version_target): Get from configure.
14524 (version.c): Use $(version_host) and $(version_target).
14525
86ebe149
DK
145262013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14527
14528 Fix trace-status to output user name without trailing colon.
14529 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14530
f30aa5af
DK
145312013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14532
14533 Fix trace-status to output proper start-time and stop-time.
14534 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14535 output start time and stop time in hex as gdb expects.
14536
28a93511
YQ
145372013-06-26 Pedro Alves <pedro@codesourcery.com>
14538
14539 * tracepoint.c (build_traceframe_info_xml): Output trace state
14540 variables present in the trace buffer.
14541
01208463
TT
145422013-06-24 Tom Tromey <tromey@redhat.com>
14543
14544 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14545 create-version.sh.
14546 (version.o): Remove.
14547 * gdbreplay.c: Include version.h.
14548 (version, host_name): Don't declare.
14549 * server.h: Include version.h.
14550 (version, host_name): Don't declare.
14551
760256f9
PA
145522013-06-12 Pedro Alves <palves@redhat.com>
14553
14554 * linux-x86-low.c (linux_is_elf64): Delete global.
14555 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14556 with local linux_pid_exe_is_elf_64_file use.
14557
030031ee
PA
145582013-06-11 Pedro Alves <palves@redhat.com>
14559
14560 * linux-low.c (regset_disabled, disable_regset): New functions.
14561 (regsets_fetch_inferior_registers)
14562 (regsets_store_inferior_registers): Use them.
14563 (initialize_regsets_info); Don't allocate the disabled_regsets
14564 array here.
14565 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14566 comment.
14567
5da6eb0a
PA
145682013-06-11 Pedro Alves <palves@redhat.com>
14569
14570 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14571 xmalloc.
14572
7e5aaa09
PA
145732013-06-11 Pedro Alves <palves@redhat.com>
14574
14575 * linux-x86-low.c (initialize_low_arch): Call
14576 init_registers_x32_avx_linux.
14577
d878444c
JK
145782013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14579
14580 Fix compatibility with Android Bionic.
14581 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14582 it is not empty.
14583
3aee8918
PA
145842013-06-07 Pedro Alves <palves@redhat.com>
14585
5f2b57b5 14586 PR server/14823
3aee8918
PA
14587 * Makefile.in (OBS): Add tdesc.o.
14588 (IPA_OBJS): Add tdesc-ipa.o.
14589 (tdesc-ipa.o): New rule.
14590 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14591 interface.
14592 * linux-low.c (new_inferior): Delete.
14593 (disabled_regsets, num_regsets): Delete.
14594 (linux_add_process): Adjust to set the new per-process
14595 new_inferior flag.
14596 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14597 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14598 was a stop. When calling arch_setup, switch the current inferior
14599 to the thread that got an event.
14600 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14601 (regsets_fetch_inferior_registers)
14602 (regsets_store_inferior_registers): New regsets_info parameter.
14603 Adjust to use it.
14604 (linux_register_in_regsets): New regs_info parameter. Adjust to
14605 use it.
14606 (register_addr, fetch_register, store_register): New usrregs_info
14607 parameter. Adjust to use it.
14608 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14609 parameter regs_info. Adjust to use it.
14610 (linux_fetch_registers): Get the current inferior's regs_info, and
14611 adjust to use it.
14612 (linux_store_registers): Ditto.
14613 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14614 (initialize_low): Don't initialize the target_regsets here. Call
14615 initialize_low_arch.
14616 * linux-low.h (target_regsets): Delete declaration.
14617 (struct regsets_info): New.
14618 (struct usrregs_info): New.
14619 (struct regs_info): New.
14620 (struct process_info_private) <new_inferior>: New field.
14621 (struct linux_target_ops): Delete the num_regs, regmap, and
14622 regset_bitmap fields. New field regs_info.
14623 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14624 * i387-fp.c (num_xmm_registers): Delete.
14625 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14626 calls to new interface.
14627 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14628 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14629 Infer the number of xmm registers from the regcache's target
14630 description.
14631 * i387-fp.h (num_xmm_registers): Delete.
14632 * inferiors.c (add_thread): Don't install the thread's regcache
14633 here.
14634 * proc-service.c (gregset_info): Fetch the current inferior's
14635 regs_info. Adjust to use it.
14636 * regcache.c: Include tdesc.h.
14637 (register_bytes, reg_defs, num_registers)
14638 (gdbserver_expedite_regs): Delete.
14639 (get_thread_regcache): If the thread doesn't have a regcache yet,
14640 create one, instead of aborting gdbserver.
14641 (regcache_invalidate_one): Rename to ...
14642 (regcache_invalidate_thread): ... this.
14643 (regcache_invalidate_one): New.
14644 (regcache_invalidate): Only invalidate registers of the current
14645 process.
14646 (init_register_cache): Add target_desc parameter, and use it.
14647 (new_register_cache): Ditto. Assert the target description has a
14648 non zero registers_size.
14649 (regcache_cpy): Add assertions. Adjust.
14650 (realloc_register_cache, set_register_cache): Delete.
14651 (registers_to_string, registers_from_string): Adjust.
14652 (find_register_by_name, find_regno, find_register_by_number)
14653 (register_cache_size): Add target_desc parameter, and use it.
14654 (free_register_cache_thread, free_register_cache_thread_one)
14655 (regcache_release, register_cache_size): New.
14656 (register_size): Add target_desc parameter, and use it.
14657 (register_data, supply_register, supply_register_zeroed)
14658 (supply_regblock, supply_register_by_name, collect_register)
14659 (collect_register_as_string, collect_register_by_name): Adjust.
14660 * regcache.h (struct target_desc): Forward declare.
14661 (struct regcache) <tdesc>: New field.
14662 (init_register_cache, new_register_cache): Add target_desc
14663 parameter.
14664 (regcache_invalidate_thread): Declare.
14665 (regcache_invalidate_one): Delete declaration.
14666 (regcache_release): Declare.
14667 (find_register_by_number, register_cache_size, register_size)
14668 (find_regno): Add target_desc parameter.
14669 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14670 declarations.
14671 * remote-utils.c: Include tdesc.h.
14672 (outreg, prepare_resume_reply): Adjust.
14673 * server.c: Include tdesc.h.
14674 (gdbserver_xmltarget): Delete declaration.
14675 (get_features_xml, process_serial_event): Adjust.
14676 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14677 declare.
14678 (struct process_info) <tdesc>: New field.
14679 (ipa_tdesc): Declare.
14680 * tdesc.c: New file.
14681 * tdesc.h: New file.
14682 * tracepoint.c: Include tdesc.h.
14683 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14684 (get_context_regcache): Adjust to pass ipa_tdesc down.
14685 (do_action_at_tracepoint): Adjust to get the register cache size
14686 from the context regcache's description.
14687 (traceframe_walk_blocks): Adjust to get the register cache size
14688 from the current trace frame's description.
14689 (traceframe_get_pc): Adjust to get current trace frame's
14690 description and pass it down.
14691 (gdb_collect): Adjust to get the register cache size from the
14692 IPA's description.
14693 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14694 (gdbserver_xmltarget): Delete.
14695 (initialize_low_tracepoint): Set the ipa's target description.
14696 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14697 (initialize_low_tracepoint): Set the ipa's target description.
14698 * linux-x86-low.c: Include tdesc.h.
14699 [__x86_64__] (is_64bit_tdesc): New.
14700 (ps_get_thread_area, x86_get_thread_area): Use it.
14701 (i386_cannot_store_register): Rename to ...
14702 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14703 (i386_cannot_fetch_register): Rename to ...
14704 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14705 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14706 to new interface.
14707 (target_regsets): Rename to ...
14708 (x86_regsets): ... this.
14709 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14710 interface.
14711 (x86_siginfo_fixup): Use is_64bit_tdesc.
14712 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14713 (tdesc_x32_avx_linux, tdesc_x32_linux)
14714 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14715 Declare.
14716 (x86_linux_update_xmltarget): Delete.
14717 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14718 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14719 (AMD64_LINUX_USER64_CS): New.
14720 (x86_linux_read_description): New, based on
14721 x86_linux_update_xmltarget.
14722 (same_process_callback): New.
14723 (x86_arch_setup_process_callback): New.
14724 (x86_linux_update_xmltarget): New.
14725 (x86_regsets_info): New.
14726 (amd64_linux_regs_info): New.
14727 (i386_linux_usrregs_info): New.
14728 (i386_linux_regs_info): New.
14729 (x86_linux_regs_info): New.
14730 (x86_arch_setup): Reimplement.
14731 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14732 (x86_emit_ops): Ditto.
14733 (the_low_target): Adjust. Install x86_linux_regs_info,
14734 x86_cannot_fetch_register, and x86_cannot_store_register.
14735 (initialize_low_arch): New.
14736 * linux-ia64-low.c (tdesc_ia64): Declare.
14737 (ia64_fetch_register): Adjust.
14738 (ia64_usrregs_info, regs_info): New globals.
14739 (ia64_regs_info): New function.
14740 (the_low_target): Adjust.
14741 (initialize_low_arch): New function.
14742 * linux-sparc-low.c (tdesc_sparc64): Declare.
14743 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14744 Adjust.
14745 (sparc_arch_setup): New function.
14746 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14747 (the_low_target): Adjust.
14748 (initialize_low_arch): New function.
14749 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14750 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14751 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14752 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14753 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14754 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14755 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14756 (tdesc_powerpc_isa205_vsx64l): Declare.
14757 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14758 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14759 (ppc_set_pc, ppc_get_hwcap): Adjust.
14760 (ppc_usrregs_info): Forward declare.
14761 (!__powerpc64__) ppc_regmap_adjusted: New global.
14762 (ppc_arch_setup): Adjust to the current process'es target
14763 description.
14764 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14765 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14766 (ppc_store_evrregset): Adjust.
14767 (target_regsets): Rename to ...
14768 (ppc_regsets): ... this, and make static.
14769 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14770 (ppc_regs_info): New function.
14771 (the_low_target): Adjust.
14772 (initialize_low_arch): New function.
14773 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14774 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14775 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14776 (tdesc_s390x_linux64v2): Declare.
14777 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14778 (s390_fill_gregset, s390_store_last_break): Adjust.
14779 (target_regsets): Rename to ...
14780 (s390_regsets): ... this, and make static.
14781 (s390_get_pc, s390_set_pc): Adjust.
14782 (s390_get_hwcap): New target_desc parameter, and use it.
14783 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14784 (s390_arch_setup): Adjust to set the current process'es target
14785 description. Don't adjust the regmap.
14786 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14787 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14788 (regs_info_3264): New globals.
14789 (s390_regs_info): New function.
14790 (the_low_target): Adjust.
14791 (initialize_low_arch): New function.
14792 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14793 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14794 [__mips64] (init_registers_mips_linux)
14795 (init_registers_mips_dsp_linux): Delete defines.
14796 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14797 (have_dsp): New global.
14798 (mips_read_description): New, based on mips_arch_setup.
14799 (mips_arch_setup): Reimplement.
14800 (get_usrregs_info): New function.
14801 (mips_cannot_fetch_register, mips_cannot_store_register)
14802 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14803 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14804 (target_regsets): Rename to ...
14805 (mips_regsets): ... this, and make static.
14806 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14807 (dsp_regs_info, regs_info): New globals.
14808 (mips_regs_info): New function.
14809 (the_low_target): Adjust.
14810 (initialize_low_arch): New function.
14811 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14812 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14813 Declare.
14814 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14815 (arm_read_description): New, with bits factored from
14816 arm_arch_setup.
14817 (arm_arch_setup): Reimplement.
14818 (target_regsets): Rename to ...
14819 (arm_regsets): ... this, and make static.
14820 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14821 (arm_regs_info): New function.
14822 (the_low_target): Adjust.
14823 (initialize_low_arch): New function.
14824 * linux-m68k-low.c (tdesc_m68k): Declare.
14825 (target_regsets): Rename to ...
14826 (m68k_regsets): ... this, and make static.
14827 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14828 (m68k_regs_info): New function.
14829 (m68k_arch_setup): New function.
14830 (the_low_target): Adjust.
14831 (initialize_low_arch): New function.
14832 * linux-sh-low.c (tdesc_sharch): Declare.
14833 (target_regsets): Rename to ...
14834 (sh_regsets): ... this, and make static.
14835 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14836 (sh_regs_info, sh_arch_setup): New functions.
14837 (the_low_target): Adjust.
14838 (initialize_low_arch): New function.
14839 * linux-bfin-low.c (tdesc_bfin): Declare.
14840 (bfin_arch_setup): New function.
14841 (bfin_usrregs_info, regs_info): New globals.
14842 (bfin_regs_info): New function.
14843 (the_low_target): Adjust.
14844 (initialize_low_arch): New function.
14845 * linux-cris-low.c (tdesc_cris): Declare.
14846 (cris_arch_setup): New function.
14847 (cris_usrregs_info, regs_info): New globals.
14848 (cris_regs_info): New function.
14849 (the_low_target): Adjust.
14850 (initialize_low_arch): New function.
14851 * linux-cris-low.c (tdesc_crisv32): Declare.
14852 (cris_arch_setup): New function.
14853 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14854 (cris_regs_info): New function.
14855 (the_low_target): Adjust.
14856 (initialize_low_arch): New function.
14857 * linux-m32r-low.c (tdesc_m32r): Declare.
14858 (m32r_arch_setup): New function.
14859 (m32r_usrregs_info, regs_info): New globals.
14860 (m32r_regs_info): Adjust.
14861 (initialize_low_arch): New function.
14862 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14863 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14864 (tic6x_usrregs_info): Forward declare.
14865 (tic6x_read_description): New function, based on ...
14866 (tic6x_arch_setup): ... this. Reimplement.
14867 (target_regsets): Rename to ...
14868 (tic6x_regsets): ... this, and make static.
14869 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14870 (tic6x_regs_info): New function.
14871 (the_low_target): Adjust.
14872 (initialize_low_arch): New function.
14873 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14874 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14875 (target_regsets): Rename to ...
14876 (xtensa_regsets): ... this, and make static.
14877 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14878 globals.
14879 (xtensa_arch_setup, xtensa_regs_info): New functions.
14880 (the_low_target): Adjust.
14881 (initialize_low_arch): New function.
14882 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14883 (nios2_arch_setup): Set the current process'es tdesc.
14884 (target_regsets): Rename to ...
14885 (nios2_regsets): ... this.
14886 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14887 (nios2_regs_info): New function.
14888 (the_low_target): Adjust.
14889 (initialize_low_arch): New function.
a261b8f5
PA
14890 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14891 (aarch64_arch_setup): Set the current process'es tdesc.
14892 (target_regsets): Rename to ...
14893 (aarch64_regsets): ... this.
14894 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14895 (aarch64_regs_info): New function.
14896 (the_low_target): Adjust.
14897 (initialize_low_arch): New function.
3aee8918
PA
14898 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14899 globals.
14900 (target_regsets): Rename to ...
14901 (tile_regsets): ... this.
14902 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14903 (tile_regs_info): New function.
14904 (tile_arch_setup): Set the current process'es tdesc.
14905 (the_low_target): Adjust.
14906 (initialize_low_arch): New function.
14907 * spu-low.c (tdesc_spu): Declare.
14908 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14909 * win32-arm-low.c (tdesc_arm): Declare.
14910 (arm_arch_setup): New function.
14911 (the_low_target): Install arm_arch_setup instead of
14912 init_registers_arm.
14913 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14914 (init_windows_x86): Rename to ...
14915 (i386_arch_setup): ... this. Set `win32_tdesc'.
14916 (the_low_target): Adjust.
14917 * win32-low.c (win32_tdesc): New global.
14918 (child_add_thread): Don't create the thread cache here.
14919 (do_initial_child_stuff): Set the new process'es tdesc.
14920 * win32-low.h (struct target_desc): Forward declare.
14921 (win32_tdesc): Declare.
14922 * lynx-i386-low.c (tdesc_i386): Declare global.
14923 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14924 * lynx-low.c (lynx_tdesc): New global.
14925 (lynx_add_process): Set the new process'es tdesc.
14926 * lynx-low.h (struct target_desc): Forward declare.
14927 (lynx_tdesc): Declare global.
14928 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14929 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14930 * nto-low.c (nto_tdesc): New global.
14931 (do_attach): Set the new process'es tdesc.
14932 * nto-low.h (struct target_desc): Forward declare.
14933 (nto_tdesc): Declare.
14934 * nto-x86-low.c (tdesc_i386): Declare.
14935 (nto_x86_arch_setup): Set `nto_tdesc'.
14936
b1fbec62
GB
149372013-06-04 Gary Benson <gbenson@redhat.com>
14938
14939 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14940 to qSupported response when appropriate.
14941 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14942 with nonzero-length annex.
14943 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14944 arguments supplied in annex.
14945
d1ec4ce7
DE
149462013-05-31 Doug Evans <dje@google.com>
14947
ac44adcb 14948 PR server/15594
d1ec4ce7
DE
14949 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14950 64 bits in 64-cross-32 environment.
14951
9b25f2d3
PA
149522013-05-28 Pedro Alves <palves@redhat.com>
14953
14954 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14955 (aarch64-without-fpu.c): Delete rule.
14956 * configure.srv (aarch64*-*-linux*): Remove references to
14957 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14958 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14959 declaration.
14960
6740dc9c
PA
149612013-05-24 Pedro Alves <palves@redhat.com>
14962
14963 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14964 instead of strchr/decode_address. Error if the range isn't split
14965 with a ','. Don't assume there's be a ':' in the action.
14966
c2d6af84
PA
149672013-05-23 Yao Qi <yao@codesourcery.com>
14968 Pedro Alves <palves@redhat.com>
14969
14970 * linux-low.c (lwp_in_step_range): New function.
14971 (linux_wait_1): If the thread was range stepping and stopped
14972 outside the stepping range, report the stop to GDB. Otherwise,
14973 continue stepping. Add range stepping debug output.
14974 (linux_set_resume_request): Copy the step range from the resume
14975 request to the lwp.
14976 (linux_supports_range_stepping): New.
14977 (linux_target_ops) <supports_range_stepping>: Set to
14978 linux_supports_range_stepping.
14979 * linux-low.h (struct linux_target_ops)
14980 <supports_range_stepping>: New field.
14981 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14982 * linux-x86-low.c (x86_supports_range_stepping): New.
14983 (the_low_target) <supports_range_stepping>: Set to
14984 x86_supports_range_stepping.
14985 * server.c (handle_v_cont): Handle 'r' action.
14986 (handle_v_requests): Append ";r" if the target supports range
14987 stepping.
14988 * target.h (struct thread_resume) <step_range_start,
14989 step_range_end>: New fields.
14990 (struct target_ops) <supports_range_stepping>:
14991 New field.
14992 (target_supports_range_stepping): New macro.
14993
58794e1a
JB
149942013-05-17 Joel Brobecker <brobecker@adacore.com>
14995
14996 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14997 confusion in comment.
14998
d631c5a7
JB
149992013-05-17 Joel Brobecker <brobecker@adacore.com>
15000
15001 * lynx-low.c (struct process_info_private): New type.
15002 (lynx_add_process): New function.
15003 (lynx_create_inferior, lynx_attach): Replace calls to
15004 add_process by calls to lynx_add_process.
15005 (lynx_resume): If PTID is null, then try using
15006 current_process()->private->last_wait_event_ptid.
15007 Add comments.
15008 (lynx_clear_inferiors): Delete. The contents of that function
15009 has been inlined in lynx_mourn;
15010 (lynx_wait_1): Save the ptid in the process's private data.
15011 (lynx_mourn): Free the process' private data. Replace call
15012 to lynx_clear_inferiors by call to clear_inferiors.
15013
96f7a20f
YQ
150142013-05-17 Yao Qi <yao@codesourcery.com>
15015
15016 * i386-low.c (i386_length_and_rw_bits): Move the comment to
15017 the right place.
15018
db0dfaa0
LM
150192013-05-16 Luis Machado <lgustavo@codesourcery.com>
15020
15021 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
15022 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
15023 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
15024 PT_TEXT_END_ADDR guards. Update comments.
15025 (linux_target_op) <read_offsets>: Conditionally define to
15026 linux_read_offsets if the target is UCLIBC and if it defines
15027 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
15028
68f5f838
SL
150292013-05-06 Sandra Loosemore <sandra@codesourcery.com>
15030 Andrew Jenner <andrew@codesourcery.com>
15031
15032 * Makefile.in (SFILES): Add linux-nios2-low.c.
15033 (clean): Add action to delete nios2-linux.c.
15034 (nios2-linux.c): New rule.
15035 * configure.srv: Add nios2*-*-linux*.
15036 * linux-nios2-low.c: New.
15037
1ebff1fd
HAQ
150382013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
15039
15040 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
15041
f6150862
HZ
150422013-04-25 Hui Zhu <hui@codesourcery.com>
15043
15044 PR gdb/15186
f6150862
HZ
15045 * ax.c (ax_printf): Add fflush.
15046
614c279d
TT
150472013-04-22 Tom Tromey <tromey@redhat.com>
15048
15049 * Makefile.in (SFILES): Add filestuff.c.
15050 (OBS): Add filestuff.o.
15051 (filestuff.o): New target.
15052 * config.in, configure: Rebuild.
15053 * configure.ac: Check for fdwalk, pipe2.
15054
7d4e5717
PA
150552013-04-17 Pedro Alves <palves@redhat.com>
15056
15057 * configure.ac (USE_THREAD_DB): Delete variable.
15058 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
15059 Don't AC_SUBST USE_THREAD_DB.
15060 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15061 * config.in, configure: Regenerate.
15062
d5c93e41
PA
150632013-04-16 Pedro Alves <palves@redhat.com>
15064
15065 * linux-low.h (struct lwp_info) <thread_known>: Move under
15066 the USE_THREAD_DB #ifdef.
15067
04f5fe89
PA
150682013-04-16 Pedro Alves <palves@redhat.com>
15069
15070 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15071 (linux-low.o): Delete rule.
15072 * linux-low.h: Always include "gdb_thread_db.h" instead of
15073 conditionally including thread_db.h.
15074 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15075 HAVE_THREAD_DB_H.
15076
480b27bf
JK
150772013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15078
15079 * Makefile.in (install-only): Fix make install regression.
15080
43662968
JK
150812013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15082
15083 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15084 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15085 installation.
15086 * gdbserver.1: Remove.
15087
3e74e146
PA
150882013-03-22 Pedro Alves <palves@redhat.com>
15089
15090 * linux-low.c (handle_extended_wait): Don't call
15091 linux_enable_event_reporting.
15092
a8347a2a
TT
150932013-03-15 Tony Theodore <tonyt@logyst.com>
15094
15095 PR build/9098:
15096 * Makefile.in (SHELL): Use @SHELL@.
15097
eeb56fa7
SDJ
150982013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15099
15100 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15101 compiler warning.
15102
4fa7e2ff
JB
151032013-03-13 Joel Brobecker <brobecker@adacore.com>
15104
15105 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15106 Remove extraneous NULL element.
15107
8ddb1965
YQ
151082013-03-13 Yao Qi <yao@codesourcery.com>
15109
15110 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15111 'V' block in trace frame.
15112
9accd112
MM
151132013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15114
15115 * target.h (struct target_ops): Add btrace ops.
15116 (target_supports_btrace): New macro.
15117 (target_enable_btrace): New macro.
15118 (target_disable_btrace): New macro.
15119 (target_read_btrace): New macro.
15120 * gdbthread.h (struct thread_info): Add btrace field.
15121 * server.c: Include btrace-common.h.
15122 (handle_btrace_general_set): New function.
15123 (handle_btrace_enable): New function.
15124 (handle_btrace_disable): New function.
15125 (handle_general_set): Call handle_btrace_general_set.
15126 (handle_qxfer_btrace): New function.
15127 (struct qxfer qxfer_packets[]): Add btrace entry.
15128 * inferiors.c (remove_thread): Disable btrace.
15129 * linux-low: Include linux-btrace.h.
15130 (linux_low_enable_btrace): New function.
15131 (linux_low_read_btrace): New function.
15132 (linux_target_ops): Add btrace ops.
15133 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15134 Add srv_linux_btrace=yes.
15135 (x86_64-*-linux*): Add linux-btrace.o.
15136 Add srv_linux_btrace=yes.
15137 * configure.ac: Define HAVE_LINUX_BTRACE.
15138 * config.in: Regenerated.
15139 * configure: Regenerated.
15140
5cc22e4c
MM
151412013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15142
15143 * server.c (handle_qxfer): Preserve error message if -3 is
15144 returned.
15145 (qxfer): Document the -3 return value.
15146
7c97f91e
MM
151472013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15148
15149 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15150 (linux_btrace_h): New variable.
15151 (linux-btrace.o): New rule.
15152
be9a119c 151532013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
15154 Hafiz Abid Qadeer <abidh@codesourcery.com>
15155
15156 * tracepoint.c (trace_buffer_size): New global.
15157 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15158 (init_trace_buffer): Change to one-argument function. Allocate
15159 trace buffer memory.
15160 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15161 handle QTBuffer:size packet.
15162 (cmd_bigqtbuffer_size): New function.
15163 (initialize_tracepoint): Call init_trace_buffer with
15164 DEFAULT_TRACE_BUFFER_SIZE.
15165 * server.c (handle_query): Add QTBuffer:size in the
15166 supported packets.
15167
e64f7499
YQ
151682013-03-07 Yao Qi <yao@codesourcery.com>
15169
15170 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15171 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15172 of -1.
15173 (cmd_qtsp): Adjust condition. Do post increment.
15174 Set cur_action and cur_step_action back to 0.
15175
f0ae6fc3
PA
151762013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15177
15178 PR server/15236
15179 * linux-low.c (linux_write_memory): Return early success if LEN is
15180 zero.
15181
b5b0b0af
CV
151822013-03-05 Corinna Vinschen <vinschen@redhat.de>
15183
334ad4a8 15184 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 15185
589bc927
TT
151862013-02-28 Tom Tromey <tromey@redhat.com>
15187
15188 * configure.ac: Invoke AC_SYS_LARGEFILE.
15189 * configure, config.in: Rebuild.
15190
dfe07582
CV
151912013-02-28 Corinna Vinschen <vinschen@redhat.com>
15192
15193 * win32-low.c: Throughout, fix format strings and casts of
15194 printf-like functions to avoid type related warnings on all
15195 platforms.
15196 (get_child_debug_event): Print dwDebugEventCode as hex since
15197 that's how it's usually documented.
15198
736cd585
YQ
151992013-02-28 Yao Qi <yao@codesourcery.com>
15200
15201 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15202 pulongest.
15203
e1f58301
JW
152042013-02-27 Jiong Wang <jiwang@tilera.com>
15205
15206 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15207 (reg-tilegx32.c): New rule.
15208 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15209 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15210 different register info initializer according to elf class.
15211 (init_registers_tilgx32): New function. The tilegx32 register info
15212 initializer.
15213 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15214 (tile_store_gregset): Likewise.
15215
d171ca78
YQ
152162013-02-27 Yao Qi <yao@codesourcery.com>
15217
15218 * server.c (process_point_options): Print debug message when
15219 debug_threads is true.
15220
282bbdf3
YQ
152212013-02-26 Yao Qi <yao@codesourcery.com>
15222
15223 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15224
aca22551
PA
152252013-02-19 Pedro Alves <palves@redhat.com>
15226 Kai Tietz <ktietz@redhat.com>
15227
15228 PR gdb/15161
15229
15230 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15231 instead of strtoul to extract address from packet.
15232 (process_serial_event) <'z'>: Likewise.
15233
4f3cee1c
YQ
152342013-02-18 Yao Qi <yao@codesourcery.com>
15235
15236 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15237
8e1d55a3
PA
152382013-02-14 Pedro Alves <palves@redhat.com>
15239
15240 Plug memory leak.
15241
15242 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15243 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15244
458820da
PA
152452013-02-14 Pedro Alves <palves@redhat.com>
15246
15247 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15248
baea0dae
PA
152492013-02-14 Pedro Alves <palves@redhat.com>
15250
15251 * tracepoint.c (save_string): Delete.
15252 (add_tracepoint_action): Use savestring instead of save_string.
15253
0b1afbb3
PA
152542013-02-12 Pedro Alves <palves@redhat.com>
15255
15256 * linux-xtensa-low.c: Ditto.
15257 * xtensa-xtregs.c: Ditto.
15258
8a4ac37e
PA
152592013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15260
15261 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15262 thread_db.
15263
148de6bb
MS
152642013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15265
15266 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15267 aarch64_num_wp_regs and aarch64_num_bp_regs to
15268 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15269
55fac6e0
MS
152702013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15271
15272 * linux-aarch64-low.c (ps_get_thread_area): Replace
15273 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15274
176eb98c
MS
152752013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15276 Marcus Shawcroft <marcus.shawcroft@arm.com>
15277 Nigel Stephens <nigel.stephens@arm.com>
15278 Yufeng Zhang <yufeng.zhang@arm.com>
15279
15280 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15281 (aarch64.c, aarch64-without-fpu.c): New targets.
15282 * configure.srv (aarch64*-*-linux*): New.
15283 * linux-aarch64-low.c: New file.
15284
56f7af9c
MS
152852013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15286
43aaf8b6 15287 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
15288 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15289 (dequeue_one_deferred_signal, linux_resume_one_thread)
15290 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15291 (linux_tracefork_grandchild, linux_test_for_tracefork)
15292 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15293 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15294 where the argument is 0.
15295
60f662b0
YQ
152962013-01-25 Yao Qi <yao@codesourcery.com>
15297
15298 * event-loop.c: Include "queue.h".
15299 (gdb_event_p): New typedef.
15300 (struct gdb_event) <next_event>: Remove.
15301 (event_queue): Change to QUEUE(gdb_event_p).
15302 (async_queue_event): Remove.
15303 (gdb_event_xfree): New.
15304 (initialize_event_loop): New.
15305 (process_event): Use API from QUEUE.
15306 (wait_for_event): Likewise.
15307 * server.c (main): Call initialize_event_loop.
15308 * server.h (initialize_event_loop): Declare.
15309
5ae4861a
YQ
153102013-01-18 Yao Qi <yao@codesourcery.com>
15311
15312 * ax.h (struct eval_agent_expr_context): New.
15313 (gdb_eval_agent_expr): Update declaration.
15314 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15315 TFRAME. Add new argument CTX.
15316 * server.h (struct eval_agent_expr_context): Declare.
15317 (agent_mem_read, agent_tsv_read): Update declaration.
15318 (agent_mem_read_string): Likewise.
15319 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15320 (add_traceframe_block): Add new argument TPOINT.
15321 Increase TPOINT->traceframe_usage.
15322 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15323 eval_tracepoint_agent_expr.
15324 (condition_true_at_tracepoint): Likewise.
15325 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15326 (agent_mem_read_string, agent_tsv_read): Likewise.
15327
85e00e85
YQ
153282013-01-16 Yao Qi <yao@codesourcery.com>
15329
15330 * linux-low.c (linux_resume_one_lwp): Don't check
15331 'lwp->bp_reinsert != 0'.
15332
4039cf45
JB
153332013-01-07 Joel Brobecker <brobecker@adacore.com>
15334 Pedro Alves <palves@redhat.com>
15335
15336 * lynx-low.c (ptrace_request_to_str): Define a temporary
15337 macro and use it to simplify this function's implementation.
15338
9044dee2
JB
153392013-01-07 Joel Brobecker <brobecker@adacore.com>
15340
15341 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15342 sets errno.
15343
e6352c8f
JB
153442013-01-07 Joel Brobecker <brobecker@adacore.com>
15345
15346 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15347
50681a27
JB
153482013-01-07 Joel Brobecker <brobecker@adacore.com>
15349
15350 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15351
3f6e77ef
JB
153522013-01-07 Joel Brobecker <brobecker@adacore.com>
15353
15354 * lynx-low.c (lynx_resume): Use the resume_info parameter
15355 to determine the ptid for the lynx_ptrace call, unless
15356 it is equal to minus_one_ptid, in which case we use the
15357 ptid of the current_inferior.
15358 (lynx_wait_1): After having received a thread create/exit
15359 event, resume the inferior's execution using the signaling
15360 thread's ptid, rather than the old ptid.
15361
7fda33ae
JB
153622013-01-07 Joel Brobecker <brobecker@adacore.com>
15363
15364 * lynx-low.c (lynx_resume): Delete variable ret.
15365
b9786c74
JB
153662013-01-01 Joel Brobecker <brobecker@adacore.com>
15367
15368 * gdbreplay.c (gdbreplay_version): Update copyright year.
15369 * server.c (gdbserver_version): Likewise.
15370
8b93d60f
JB
153712012-12-17 Joel Brobecker <brobecker@adacore.com>
15372
15373 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15374 new thread.
15375
037335a7
JB
153762012-12-17 Joel Brobecker <brobecker@adacore.com>
15377
15378 * lynx-low.c (ptrace_request_to_str): Add handling for
15379 PTRACE_GETTRACESIG.
15380
52d4cbd8
JB
153812012-12-17 Joel Brobecker <brobecker@adacore.com>
15382
15383 * lynx-low.c (lynx_attach): Delete variable new_process.
15384
ab8f6ca9
JB
153852012-12-17 Joel Brobecker <brobecker@adacore.com>
15386
15387 * lynx-low.c (lynx_create_inferior): Delete variable
15388 new_process.
15389
78cbc024
JB
153902012-12-17 Joel Brobecker <brobecker@adacore.com>
15391
15392 * lynx-low.c (ptrace_request_to_str): Do not handle
15393 PTRACE_GETTHREADLIST if this macro does not exist.
15394
14a00470
YQ
153952012-12-15 Yao Qi <yao@codesourcery.com>
15396
15397 * Makefile.in (OBS): Add notif.o.
15398 * notif.c, notif.h: New.
15399 * server.c: Include "notif.h".
15400 (struct vstop_notif) <next>: Remove.
15401 <base>: New field.
15402 (queue_stop_reply): Update.
15403 (push_event, send_next_stop_reply): Remove.
15404 (discard_queued_stop_replies): Update.
15405 (notif_stop): New variable.
15406 (handle_v_stopped): Remove.
15407 (handle_v_requests): Don't call handle_v_stopped. Call
15408 handle_ack_notif instead.
15409 (queue_stop_reply_callback): Call notif_event_enque instead
15410 of queue_stop_reply.
15411 (handle_status): Don't call send_next_stop_reply, call
15412 notif_write_event instead.
15413 (kill_inferior_callback): Likewise.
15414 (detach_or_kill_inferior_callback): Likewise.
15415 (main): Call initialize_notif.
15416 (process_serial_event): Call QUEUE_is_empty.
15417 (handle_target_event): Call notif_push instead of push event.
15418 * server.h (push_event): Remove declaration.
15419
61c125b9
TT
154202012-12-10 Tom Tromey <tromey@redhat.com>
15421
15422 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15423 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15424 macros.
15425 (.c.o): Rewrite.
15426 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15427 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15428 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15429 (amd64-linux-ipa.o, ax.o): Rewrite.
15430 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15431 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15432 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15433 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15434 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15435 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15436 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15437 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15438 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15439 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15440 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15441 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15442 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15443 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15444 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15445 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15446 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15447 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15448 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15449 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15450 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15451 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15452 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15453 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15454 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15455 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15456 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15457 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15458 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15459 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15460 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15461 (reg-tilegx.o): Remove.
15462 (all_object_files): New macro.
15463 Include .deps files.
15464 * aclocal.m4, configure: Rebuild.
15465 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15466 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15467 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15468
e90e9ad9
TT
154692012-12-05 Tom Tromey <tromey@redhat.com>
15470
15471 PR gdb/14917:
15472 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15473
02d403bf 154742012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15475
15476 * configure.ac: Check for linux/perf_event.h.
15477 * config.in: Regenerated.
15478 * configure: Regenerated.
15479
0270a750
PA
154802012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15481
15482 * hostio.c (handle_readlink): Decrease buffer size
15483 parameter passed to readlink by one byte.
15484
8c29b58e
YQ
154852012-11-26 Yao Qi <yao@codesourcery.com>
15486
15487 * configure.ac (build_warnings): Append '-Wempty-body'.
15488 * configure: Regenerated.
15489 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15490 body.
15491
8bdce1ff
PM
154922012-11-15 Pierre Muller <muller@sourceware.org>
15493
15494 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15495 * config.in: Regenerate.
15496 * configure: Regenerate.
15497 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15498 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15499 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15500 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15501 header.
15502 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15503 instead of <sys/wait.h> header.
15504 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15505
02d403bf 155062012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15507
15508 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15509 (various make rules): Remove -DGDBSERVER
15510
fbd5db48
YQ
155112012-11-09 Yao Qi <yao@codesourcery.com>
15512
15513 * spu-low.c (current_ptid): Move it to ..
15514 * gdbthread.h: ... here. New.
15515 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15516 * server.c (myresume, process_serial_event): Likewise.
15517 * thread-db.c (thread_db_find_new_threads): Likewise.
15518 * tracepoint.c (run_inferior_command): Likewise.
15519
b3dc46ff
AB
155202012-10-01 Andrew Burgess <aburgess@broadcom.com>
15521
15522 * server.c (handle_search_memory_1): Include access length in
15523 warning message.
15524
07c04788
HPN
155252012-09-05 Michael Brandt <michael.brandt@axis.com>
15526
15527 * linux-crisv32-low.c: Fix compile errors.
15528
918d227b
YQ
155292012-09-04 Yao Qi <yao@codesourcery.com>
15530
15531 * tracepoint.c (cmd_qtsv): Adjust debug message.
15532 Don't check CUR_TPOINT.
15533
18c1b81a
YQ
155342012-08-28 Yao Qi <yao@codesourcery.com>
15535
15536 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15537 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15538 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15539 Remove declarations of xmalloc, xreallloc, xstrdup and
15540 freeargv.
15541 * Makefile.in (libiberty_h): New.
15542 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15543 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15544
dc82f37b
YQ
155452012-08-23 Yao Qi <yao@codesourcery.com>
15546
15547 * server.h: Remove declaration of 'xsnprintf'.
15548
406b1477
KS
155492012-08-22 Keith Seitz <keiths@redhat.com>
15550
15551 * server.h: Include build-gnulib-gbserver/config.h.
15552 * gdbreplay.c: Likewise.
15553
e6712ff1
DE
155542012-08-08 Doug Evans <dje@google.com>
15555
15556 * Makefile.in (SFILES): Add gdb_vecs.c.
15557 (OBS): Add gdb_vecs.o.
15558 (gdb_vecs_h, host_defs_h): New variables.
15559 (thread-db.o): Add $(gdb_vecs_h) dependency.
15560 (gdb_vecs.o): New rule.
15561 * thread-db.c: #include "gdb_vecs.h".
15562 (thread_db_load_search): Use a vector to iterate over path elements.
15563 Handle text appearing after "$pdir".
15564
15565 * configure.ac: Add check for strstr.
15566 * config.in: Regenerate.
15567 * configure: Regenerate.
15568
7c3270ae
UW
155692012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15570
15571 * hostio.c (handle_pread): If pread fails, fall back to attempting
15572 lseek/read.
15573 (handle_pwrite): Likewise for pwrite.
15574
b62e2b27
UW
155752012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15576
15577 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15578 between unsupported TYPE and unimplementable ADDR/LEN combination.
15579 (arm_insert_point): Act on new return value.
15580
78a99e91
PA
155812012-07-31 Pedro Alves <palves@redhat.com>
15582
15583 * server.c (process_point_options): Only skip tokens if we find
15584 one that is unrecognized. Don't treat 'X' specially while
15585 skipping unrecognized tokens.
15586
fcf303ab
UW
155872012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15588
15589 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15590 to 4-byte-align HW breakpoint addresses for Thumb.
15591
7255706c
YQ
155922012-07-27 Yao Qi <yao@codesourcery.com>
15593
15594 PR remote/14161.
15595
15596 * server.h: Declare gdb_agent_about_to_close.
15597 * target.c (kill_inferior): Include "agent.h".
15598 New. Send command 'kill'.
15599 * target.h (kill_inferior): Removed macro.
15600 * tracepoint.c (gdb_agent_about_to_close): New.
15601 (gdb_agent_helper_thread): Handle command 'close'.
15602 Wait endlessly until the inferior stops.
15603 Install gdb_agent_remove_socket to atexit hook.
15604 (agent_socket_name): New static variable.
15605 (gdb_agent_socket_init): Replace local variable 'name' with
15606 'agent_socket_name'.
15607 (gdb_agent_remove_socket): New.
15608
5a3f286f
YQ
156092012-07-27 Yao Qi <yao@codesourcery.com>
15610
15611 * server.c (process_point_options): Stop at 'X' when parsing.
15612
961bd387
ME
156132012-07-19 Michael Eager <eager@eagercon.com>
15614
a261b8f5 15615 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15616 to hw_execute.
15617 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15618 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15619 hardware breakpoint.
15620
aa7c7447
JK
156212012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15622
15623 * gdbserver/linux-low.c (initialize_low): Call
15624 linux_ptrace_init_warnings.
15625
7f216e7c
DE
156262012-07-02 Doug Evans <dje@google.com>
15627
15628 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15629 pointer to int.
15630
d3ce09f5
SS
156312012-07-02 Stan Shebs <stan@codesourcery.com>
15632
15633 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15634 (ax.o): Add it to build rule.
15635 (ax-ipa.o): Ditto.
15636 (OBS): Add format.o.
15637 (IPA_OBS): Add format.o.
15638 * server.c (handle_query): Claim support for breakpoint commands.
15639 (process_point_options): Add command case.
15640 (process_serial_event): Leave running if there are printfs in
15641 effect.
15642 * mem-break.h (any_persistent_commands): Declare.
15643 (add_breakpoint_commands): Declare.
15644 (gdb_no_commands_at_breakpoint): Declare.
15645 (run_breakpoint_commands): Declare.
15646 * mem-break.c (struct point_command_list): New struct.
15647 (struct breakpoint): New field command_list.
15648 (any_persistent_commands): New function.
15649 (add_commands_to_breakpoint): New function.
15650 (add_breakpoint_commands): New function.
15651 (gdb_no_commands_at_breakpoint): New function.
15652 (run_breakpoint_commands): New function.
15653 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15654 locally.
15655 * ax.c: Include format.h.
15656 (ax_printf): New function.
15657 (gdb_eval_agent_expr): Add printf opcode.
15658
2f8f6aed
YQ
156592012-06-13 Yao Qi <yao@codesourcery.com>
15660
15661 * server.c (start_inferior): Remove duplicated writes to fields
15662 'last_resume_kind' and 'last_status' of 'current_inferior'.
15663
0c9070b3
YQ
156642012-06-12 Yao Qi <yao@codesourcery.com>
15665 Pedro Alves <palves@redhat.com>
15666
15667 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15668 comment.
15669 * server.c (handle_v_cont): Extend comment.
15670
c52daf70
YQ
156712012-06-11 Yao Qi <yao@codesourcery.com>
15672
15673 * linux-low.c (linux_attach): Add 'static'.
15674
d38bbb0a
YQ
156752012-06-06 Yao Qi <yao@codesourcery.com>
15676
15677 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15678
89dc0afd
JK
156792012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15680
15681 Fix gcc -flto compilation warning.
15682 * server.c (main): Make variable multi_mode and attach volatile.
15683
75f62ce7
TJB
156842012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15685
15686 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15687 if the platform doesn't know about it.
15688
65f479b6
PA
156892012-05-30 Jeff Kenton <jkenton@tilera.com>
15690
15691 * Makefile.in (SFILES): Add linux-tile-low.c.
15692 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15693 * configure.srv: Handle tilegx-*-linux*.
15694 * linux-tile-low.c: New file.
15695
0c5bf5a9
JK
156962012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15697
15698 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15699
a493e3e2
PA
157002012-05-24 Pedro Alves <palves@redhat.com>
15701
15702 PR gdb/7205
15703
43aaf8b6 15704 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15705
2ea28649
PA
157062012-05-24 Pedro Alves <palves@redhat.com>
15707
15708 PR gdb/7205
15709
15710 Replace target_signal with gdb_signal throughout.
15711
8d409d16
MR
157122012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15713
15714 * linux-low.c (linux_store_registers): Avoid the copying sequence
15715 when no data has been retrieved by ptrace.
15716
23512c01
MGD
157172012-05-22 Will Deacon <will.deacon@arm.com>
15718
15719 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15720 Include asm/ptrace.h.
15721 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15722 already defined.
15723
4934b29e
MR
157242012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15725
15726 * linux-low.c (linux_store_registers): Don't re-retrieve data
15727 with ptrace that has already been obtained from /proc. Always
15728 copy any data retrieved with ptrace to the buffer supplied.
15729
bde24c0a
PA
157302012-05-11 Yao Qi <yao@codesourcery.com>
15731 Pedro Alves <palves@redhat.com>
15732
15733 * linux-low.c (enum stopping_threads_kind): New.
15734 (stopping_threads): Change type to `enum stopping_threads_kind'.
15735 (handle_extended_wait): If stopping and suspending threads, leave
15736 the new_lwp suspended too.
15737 (linux_wait_for_event): Adjust.
15738 (stop_all_lwps): Set `stopping_threads' to
15739 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15740 whether we're suspending threads or just stopping them. Assert no
15741 recursion happens.
15742
623b6bdf
YQ
157432012-04-29 Yao Qi <yao@codesourcery.com>
15744
15745 * server.h: Move some code to ...
15746 * gdbthread.h: ... here. New.
15747 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15748 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15749 (nto-low.o, win32-low.o): Likewise.
15750 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15751 * regcache.c, remote-utils.c, server.c: Likewise.
15752 * target.c, tracepoint.c, win32-low.c: Likewise.
15753
f15f9948
TJB
157542012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15755
15756 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15757 (PTRACE_ARG4_TYPE): Likewise.
15758 (PTRACE_XFER_TYPE): Likewise.
15759 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15760 ptrace to PTRACE_ARG3_TYPE.
15761 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15762 (PTRACE_ARG4_TYPE): Likewise.
15763 (PTRACE_XFER_TYPE): Likewise.
15764 (linux_detach_one_lwp): Cast fourth argument of
15765 ptrace to long then PTRACE_ARG4_TYPE.
15766 (regsets_fetch_inferior_registers): Cast third argument of
15767 ptrace to long then PTRACE_ARG3_TYPE.
15768 (regsets_store_inferior_registers): Likewise.
15769
38ea300a
PA
157702012-04-20 Pedro Alves <palves@redhat.com>
15771
15772 * configure: Regenerate.
15773
c971b7fa
PA
157742012-04-19 Pedro Alves <palves@redhat.com>
15775
43aaf8b6 15776 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15777 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15778 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15779 (all, install-only, uninstall, clean-info, all-lib, clean): No
15780 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15781 (maintainer-clean realclean distclean): Use subdir_do.
15782 (subdir_do): New.
15783 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15784 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15785 * acinclude.m4: Include acx_configure_dir.m4.
15786 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15787 calls. Call AC_PROG_RANLIB. Configure gnulib using
15788 ACX_CONFIGURE_DIR.
15789 (GNULIB): New.
15790 (GNULIB_STDINT_H): Adjust.
15791 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15792 * gdbreplay.c: Include build-gnulib/config.h.
15793 * server.h: Likewise.
15794 * aclocal.m4: Regenerate.
15795 * config.in: Regenerate.
15796 * configure: Regenerate.
c971b7fa 15797
809277f8
PA
157982012-04-19 Pedro Alves <palves@redhat.com>
15799
15800 * Makefile.in (LIBGNU, INCGNU): Adjust.
15801 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15802 (all, install-only, uninstall, clean-info, all-lib, clean)
15803 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15804 * configure.ac: Adjust AC_OUTPUT output.
15805 * aclocal.m4: Regenerate.
15806 * configure: Regenerate.
15807
fd9bb8b8
PA
158082012-04-19 Pedro Alves <palves@redhat.com>
15809
15810 * Makefile.in (generated_files): New.
15811 (server_h): Remove the explicit dependency on config.h, and depend
15812 on $generated_files.
15813
1c298c66
PA
158142012-04-19 Pedro Alves <palves@redhat.com>
15815
15816 * Makefile.in (INCGNU): Add -Ignulib.
15817
57c4b50b
PA
158182012-04-19 Pedro Alves <palves@redhat.com>
15819
15820 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15821 (INCGNU): ... this, and spell out -I here.
15822 (GNULIB_LIB): Rename to ...
15823 (LIBGNU): ... this.
15824 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15825
1030e047
PA
158262012-04-19 Pedro Alves <palves@redhat.com>
15827
15828 * config.in: Regenerate.
15829
447d4319
PA
158302012-04-19 Pedro Alves <palves@redhat.com>
15831
15832 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15833 * server.h (memmem): Remove declaration.
15834 * config.in: Regenerate.
15835 * configure: Regenerate.
15836
aad9eab9
YQ
158372012-04-19 Yao Qi <yao@codesourcery.com>
15838
15839 * Makefile.in (SFILES): Add common/vec.c.
15840 (OBS): Add vec.o.
15841 (vec.o): New rule.
15842
3e10640f
YQ
158432012-04-19 Yao Qi <yao@codesourcery.com>
15844
15845 * remote-utils.c (prepare_resume_reply): Replace with macro
15846 target_core_of_thread.
15847 * server.c (handle_qxfer_threads_proper): Likewise.
15848 * target.h (traget_core_of_thread): New macro.
15849
71622373
PA
158502012-04-18 Pedro Alves <palves@redhat.com>
15851
15852 * aclocal.m4: Regenerate.
15853 * configure: Regenerate.
15854
80d26939
YQ
158552012-04-16 Yao Qi <yao@codesourcery.com>
15856
15857 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15858 duplicated on address.
15859
42476b70
YQ
158602012-04-16 Yao Qi <yao@codesourcery.com>
15861
15862 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15863 (struct tracepoint_action_ops) <send>: New field.
15864 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15865 (agent_expr_send, x_tracepoint_action_send): New.
15866 (l_tracepoint_action_send): New.
15867 (cmd_qtdp): Download and install tracepoint
15868 according to `use_agent'.
15869 (run_inferior_command): Add one more parameter `len'.
15870 Update callers.
15871 (tracepoint_send_agent): New.
15872 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15873
7bc83639
YQ
158742012-04-16 Yao Qi <yao@codesourcery.com>
15875
15876 * tracepoint.c (download_tracepoints): Moved to ...
15877 (cmd_qtstart): ... here.
15878
5f18041e
YQ
158792012-04-14 Yao Qi <yao@codesourcery.com>
15880
15881 * tracepoint.c: Include inttypes.h.
15882 (struct collect_memory_action): Use sized types.
15883 (struct tracepoint): Likewise.
15884 (cmd_qtdp, stop_tracing): Update print specifiers.
15885 (cmd_qtp, response_tracepoint): Likewise.
15886 (collect_data_at_tracepoint): Likewise.
15887 (collect_data_at_step): Likewise.
15888
55a8c076
YQ
158892012-04-14 Yao Qi <yao@codesourcery.com>
15890
15891 Import gnulib module inttypes.
15892 * aclocal.m4, config.in, configure: Regenerated.
15893
dc750257
YQ
158942012-04-14 Yao Qi <yao@codesourcery.com>
15895
15896 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15897 Makefile and config.status at last.
15898
0ab5faf9
YQ
158992012-04-13 Yao Qi <yao@codesourcery.com>
15900
15901 * tracepoint.c: Include stdint.h unconditionally.
15902
18f5fd81
TJB
159032012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15904
15905 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15906 on BFD_HAVE_SYS_PROCFS_TYPE.
15907 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15908 * configure: Regenerate.
15909 * config.in: Likewise.
15910
4d47af5c
L
159112012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15912
15913 * Makefile.in (clean): Also remove x32.c x32-linux.c
15914 x32-avx.c x32-avx-linux.c.
15915 (x32.o): New target.
15916 (x32.c): Likewise.
15917 (x32-linux.o): Likewise.
15918 (x32-linux.c): Likewise.
15919 (x32-avx.o): Likewise.
15920 (x32-avx.c): Likewise.
15921 (x32-avx-linux.o): Likewise.
15922 (x32-avx-linux.c): Likewise.
15923
15924 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15925 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15926 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15927 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15928 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15929 i386/x32-avx-linux.xml.
15930
15931 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15932 (init_registers_x32_avx_linux): Likwise.
15933 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15934 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15935
ecedbe58
PA
159362012-04-13 Pedro Alves <palves@redhat.com>
15937
15938 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15939 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15940 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15941 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15942 the sub-make.
15943
c92b5177
L
159442012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15945
15946 * linux-x86-low.c (compat_x32_clock_t): New.
15947 (compat_x32_siginfo_t): Likewise.
15948 (compat_x32_siginfo_from_siginfo): Likewise.
15949 (siginfo_from_compat_x32_siginfo): Likewise.
15950 (linux_is_elf64): Likewise.
15951 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15952 and siginfo_from_compat_x32_siginfo for x32.
15953 (x86_arch_setup): Set linux_is_elf64.
15954
214d508e
L
159552012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15956
15957 PR gdb/13969
15958 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15959 e_machine field.
15960 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15961 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15962 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15963 compatible with process.
15964
c9a1864a
YQ
159652012-04-12 Yao Qi <yao@codesourcery.com>
15966
15967 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15968 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15969 (install-only, install-info, clean): Handle sub dir gnulib.
15970 (all-lib, am--refresh): New targets.
15971 (memmem.o): Remove target.
15972 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15973 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15974 (AC_REPLACE_FUNCS): Remove memmem.
15975 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15976 (AC_OUTPUT): Generate Makefile in gnulib/.
15977 * aclocal.m4, config.in, configure: Regenerated.
15978
367ba2c2
MR
159792012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15980
15981 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15982
9d236627
PA
159832012-04-05 Pedro Alves <palves@redhat.com>
15984
15985 -Werror=strict-aliasing
15986
15987 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15988 pointer.
15989
111217b3
PA
159902012-04-04 Pedro Alves <palves@redhat.com>
15991
15992 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15993 (sparc_store_gregset_from_stack, sparc_store_gregset)
15994 (sparc_breakpoint_at): Fix formatting.
15995
8365dcf5
TJB
159962012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15997
15998 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15999 are available.
16000 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
16001 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
16002 * config.in: Regenerate.
16003 * configure: Likewise.
16004
689cc2ae
PA
160052012-03-29 Pedro Alves <palves@redhat.com>
16006
16007 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
16008 Correct ptrace arguments.
16009
c14dfd32
PA
160102012-03-28 Pedro Alves <palves@redhat.com>
16011
16012 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
16013 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
16014 (IA64_FR1_REGNUM): New defines.
16015 (ia64_fetch_register): New.
16016 (the_low_target): Install it.
16017 * linux-low.h (struct linux_target_ops) <fetch_register>: New
16018 field.
16019 * linux-low.c (linux_fetch_registers): Try the
16020 the_low_target.fetch_register hook first.
16021
16022 * linux-arm-low.c (the_low_target): Adjust.
16023 * linux-bfin-low.c (the_low_target): Adjust.
16024 * linux-cris-low.c (the_low_target): Adjust.
16025 * linux-crisv32-low.c (the_low_target): Adjust.
16026 * linux-m32r-low.c (the_low_target): Adjust.
16027 * linux-m68k-low.c (the_low_target): Adjust.
16028 * linux-mips-low.c (the_low_target): Adjust.
16029 * linux-ppc-low.c (the_low_target): Adjust.
16030 * linux-s390-low.c (the_low_target): Adjust.
16031 * linux-sh-low.c (the_low_target): Adjust.
16032 * linux-sparc-low.c (the_low_target): Adjust.
16033 * linux-tic6x-low.c (the_low_target): Adjust.
16034 * linux-x86-low.c (the_low_target): Adjust.
16035 * linux-xtensa-low.c (the_low_target): Adjust.
16036
63c88e13
PA
160372012-03-26 Pedro Alves <palves@redhat.com>
16038
16039 * server.c (handle_qxfer_libraries): Don't bail early if
16040 the_target->qxfer_libraries_svr4 is not NULL.
16041
fb723180
PA
160422012-03-26 Pedro Alves <palves@redhat.com>
16043
16044 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
16045
0afae3cf
PA
160462012-03-23 Pedro Alves <palves@redhat.com>
16047
16048 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
16049 "library-list-svr4" element's start tag when the the DSO list is
16050 empty.
16051
485f1ee4
PA
160522012-03-23 Pedro Alves <palves@redhat.com>
16053
16054 * linux-low.c (read_one_ptr): Read the inferior's pointer through
16055 a variable whose type size is the same as the inferior's pointer
16056 size.
16057
a5362b9a
TS
160582012-03-21 Thomas Schwinge <thomas@codesourcery.com>
16059
16060 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16061 struct siginfo.
16062 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16063 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16064 * linux-low.h: Include <signal.h>.
16065 (struct siginfo): Remove forward declaration.
16066 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16067 struct siginfo.
16068
d226c142
MF
160692012-03-21 Mike Frysinger <vapier@gentoo.org>
16070
16071 * .gitignore: Ignore more files.
16072
122f36ef
PA
160732012-03-19 Pedro Alves <palves@redhat.com>
16074 Jan Kratochvil <jan.kratochvil@redhat.com>
16075
16076 * server.c (cont_thread, general_thread): Add describing comments.
16077 (start_inferior): Clear `cont_thread'.
16078 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16079 of a process.
16080
fc3e5175
YQ
160812012-03-15 Yao Qi <yao@codesourcery.com>
16082
16083 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16084 handling to ...
16085 (cmd_qtdp): ... here.
16086
8d0d92cd
YQ
160872012-03-15 Yao Qi <yao@codesourcery.com>
16088
16089 * tracepoint.c (struct tracepoint_action_ops): New.
16090 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16091 (m_tracepoint_action_download): New.
16092 (r_tracepoint_action_download): New.
16093 (x_tracepoint_action_download): New.
16094 (l_tracepoint_action_download): New.
16095 (add_tracepoint_action): Install `action->ops' according type.
16096 (download_tracepoint_1): Move code `download' function pointer
16097 of various tracepoint_action_ops.
16098
87b0bb13
JK
160992012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16100
16101 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16102 linux_ptrace_attach_warnings.
16103
5f572dec
JK
161042012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16105
16106 * Makefile.in (linux-ptrace.o): New.
16107 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16108 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16109 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16110 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16111 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16112 of these targets.
16113 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16114
f4647387
YQ
161152012-03-08 Yao Qi <yao@codesourcery.com>
16116 Pedro Alves <palves@redhat.com>
16117
16118 Fix PR server/13392.
16119 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16120 offset of JMP insn.
16121 * tracepoint.c (remove_tracepoint): New.
16122 (cmd_qtdp): Call remove_tracepoint when failed to install.
16123
9b224c5e
PA
161242012-03-07 Pedro Alves <palves@redhat.com>
16125
16126 * linux-low.c (get_detach_signal): New.
16127 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16128 Pass on pending signals to PTRACE_DETACH. Check the result of the
16129 ptrace call.
16130 * server.c (program_signals, program_signals_p): New.
16131 (handle_general_set): Handle QProgramSignals.
16132 * server.h (program_signals, program_signals_p): Declare.
16133
e237a7e2
JK
161342012-03-05 Pedro Alves <palves@redhat.com>
16135 Jan Kratochvil <jan.kratochvil@redhat.com>
16136
16137 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16138 New comment why.
16139
5808517f
YQ
161402012-03-03 Yao Qi <yao@codesourcery.com>
16141
16142 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16143 agent_look_up_symbols.
16144
58b4daa5
YQ
161452012-03-03 Yao Qi <yao@codesourcery.com>
16146
16147 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16148 (linux-x86-low.o): Likewise.
16149 * server.h: Remove in_process_agent_loaded.
16150 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16151 common/agent.c.
16152 Update callers.
16153
8ffcbaaf
YQ
161542012-03-03 Yao Qi <yao@codesourcery.com>
16155
16156 * tracepoint.c (gdb_agent_capability): New global.
16157 (in_process_agent_loaded_ust): Renamed to
16158 `in_process_agent_supports_ust'.
16159 Update callers.
16160 (in_process_agent_supports_ust): Call agent_capability_check.
16161 (clear_installed_tracepoints): Assert that agent supports
16162 agent.
16163
d1feda86
YQ
161642012-03-03 Yao Qi <yao@codesourcery.com>
16165
16166 * linux-low.c (linux_supports_agent): New.
16167 (linux_target_ops): Initialize field `supports_agent' with
16168 linux_supports_agent.
16169 * target.h (struct target_ops) <supports_agent>: New.
16170 (target_supports_agent): New macro.
16171 * server.c (handle_general_set): Handle packet 'QAgent'.
16172 (handle_query): Send `QAgent+'.
16173 * Makefile.in (server.o): Depends on agent.h.
16174
2fa291ac
YQ
161752012-03-03 Yao Qi <yao@codesourcery.com>
16176
16177 * Makefile.in (OBS): Add agent.o.
16178 Add new rule for agent.o.
16179 Track dependence of tracepoint.c on agent.h.
16180 * tracepoint.c (run_inferior_command_1):
16181 (run_inferior_command): Call agent_run_command.
16182 (gdb_ust_connect_sync_socket): Deleted. Move it to
16183 common/agent.c.
16184 (resume_thread, stop_thread): Likewise.
16185 (gdb_ust_socket_init): Renamed to ...
16186 (gdb_agent_socket_init): ... New.
16187 (gdb_ust_thread): Renamed to ...
16188 (gdb_agent_helper_thread): ... New.
16189 (gdb_ust_init): Move some code to ...
16190 (gdb_agent_init): ... here. New.
16191 [HAVE_UST]: Call gdb_ust_init.
16192 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16193 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16194 * config.in, configure: Regenerated.
16195
05044653
PA
161962012-03-02 Pedro Alves <palves@redhat.com>
16197
16198 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16199 * linux-low.c (struct simple_pid_list): New.
16200 (stopped_pids): New a struct simple_pid_list pointer.
16201 (add_to_pid_list, pull_pid_from_list): New.
16202 (handle_extended_wait): Don't assume the first signal new children
16203 report is SIGSTOP. Adjust call to pull_pid_from_list.
16204 (linux_wait_for_lwp): Adjust.
16205
8d00225b
YQ
162062012-03-02 Yao Qi <yao@codesourcery.com>
16207
16208 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16209 debug log.
16210
19560ba5
YQ
162112012-03-02 Yao Qi <yao@codesourcery.com>
16212
16213 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16214 `stop_pc' and `tpoint'. Update caller.
16215
1faeff08
MR
162162012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16217
16218 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16219 * linux-low.c (use_linux_regsets): New macro.
16220 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16221 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16222 (linux_register_in_regsets): New function.
16223 (usr_fetch_inferior_registers): Skip registers covered by
16224 regsets.
16225 (usr_store_inferior_registers): Likewise.
16226 (usr_fetch_inferior_registers): New macro.
16227 (usr_store_inferior_registers): Likewise.
16228 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16229 (linux_store_registers): Likewise.
16230 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16231 prototype.
16232 (init_registers_mips64_dsp_linux): Likewise.
16233 (init_registers_mips_linux): New macro.
16234 (init_registers_mips_dsp_linux): Likewise.
16235 (mips_dsp_num_regs): Likewise.
16236 (DSP_BASE, DSP_CONTROL): New fallback macros.
16237 (mips_base_regs): New macro.
16238 (mips_regmap): Use it. Fix the size.
16239 (mips_dsp_regmap): New variable.
16240 (mips_dsp_regset_bitmap): Likewise.
16241 (mips_arch_setup): New function.
16242 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16243 than mips_regmap.
16244 (mips_cannot_store_register): Likewise.
16245 (the_low_target): Update .arch_setup, .num_regs and .regmap
16246 initializers. Add .regset_bitmap initializer.
16247 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16248 initializer.
16249 * linux-bfin-low.c (the_low_target): Likewise.
16250 * linux-cris-low.c (the_low_target): Likewise.
16251 * linux-crisv32-low.c (the_low_target): Likewise.
16252 * linux-ia64-low.c (the_low_target): Likewise.
16253 * linux-m32r-low.c (the_low_target): Likewise.
16254 * linux-m68k-low.c (the_low_target): Likewise.
16255 * linux-ppc-low.c (the_low_target): Likewise.
16256 * linux-s390-low.c (the_low_target): Likewise.
16257 * linux-sh-low.c (the_low_target): Likewise.
16258 * linux-sparc-low.c (the_low_target): Likewise.
16259 * linux-tic6x-low.c (the_low_target): Likewise.
16260 * linux-x86-low.c (the_low_target): Likewise.
16261 * linux-xtensa-low.c (the_low_target): Likewise.
16262 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16263 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16264 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16265 srv_xmlfiles.
16266 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16267 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16268
c03e6ccc
YQ
162692012-02-29 Yao Qi <yao@codesourcery.com>
16270 Pedro Alves <palves@redhat.com>
16271
16272 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16273 `step_over_finished' is true.
16274
644cebc9
PA
162752012-02-27 Pedro Alves <palves@redhat.com>
16276
16277 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16278 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16279
c14d7ab2
PA
162802012-02-27 Pedro Alves <palves@redhat.com>
16281
16282 PR server/9684
16283 * linux-low.c (pid_is_stopped): New.
16284 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16285
412c89dd
LM
162862012-02-25 Luis Machado <lgustavo@codesourcery.com>
16287
16288 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16289 of conditions.
16290
b745defe
MR
162912012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16292
16293 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16294
9f3a5c85
LM
162952012-02-24 Luis Machado <lgustavo@codesourcery>
16296
16297 * server.c (handle_query): Advertise support for target-side
16298 breakpoint condition evaluation.
16299 (process_point_options): New function.
16300 (process_serial_event): When inserting a breakpoint, check for
16301 a target-side condition that should be evaluated.
16302
16303 * mem-break.c: Include regcache.h and ax.h.
16304 (point_cond_list_t): New data structure.
16305 (breakpoint) <cond_list>: New field.
16306 (find_gdb_breakpoint_at): Make non-static.
16307 (delete_gdb_breakpoint_at): Clear any target-side
16308 conditions.
16309 (clear_gdb_breakpoint_conditions): New function.
16310 (add_condition_to_breakpoint): Likewise.
16311 (add_breakpoint_condition): Likewise.
16312 (gdb_condition_true_at_breakpoint): Likewise.
16313 (gdb_breakpoint_here): Return result directly instead
16314 of going through a local variable.
16315
16316 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16317 (clear_gdb_breakpoint_conditions): Likewise.
16318 (add_breakpoint_condition): Likewise.
16319 (gdb_condition_true_at_breakpoint): Likewise.
16320
16321 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16322 (need_step_over_p): Take target-side breakpoint condition into
16323 consideration.
16324
5e1dc496
LM
163252012-02-24 Luis Machado <lgustavo@codesourcery>
16326
16327 * server.h: Include tracepoint.h.
16328 (agent_mem_read, agent_get_trace_state_variable_value,
16329 agent_set_trace_state_variable_value,
16330 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16331 get_set_tsv_func_addr): New prototypes.
16332
16333 * ax.h: New include file.
16334 * ax.c: New source file.
16335
16336 * tracepoint.c: Include ax.h.
16337 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16338 agent_expr, eval_result_type): Move to ax.h.
16339 (parse_agent_expr): Rename to ...
16340 (gdb_parse_agent_expr): ... this, make it non-static and move
16341 to ax.h.
16342 (unparse_agent_expr) Rename to ...
16343 (gdb_unparse_agent_expr): ... this, make it non-static and move
16344 to ax.h.
16345 (eval_agent_expr): Rename to ...
16346 (eval_tracepoint_agent_expr): ... this.
16347 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16348 forward declarations.
16349 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16350 (agent_get_trace_state_variable_value): New function.
16351 (agent_set_trace_state_variable_value): New function.
16352 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16353 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16354 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16355 (condition_true_at_tracepoint): Likewise.
16356 (parse_agent_expr): Rename to ...
16357 (gdb_parse_agent_expr): ... this and move to ax.c.
16358 (unparse_agent_expr): Rename to ...
16359 (gdb_unparse_agent_expr): ... this and move to ax.c.
16360 (gdb_agent_op_name): Move to ax.c.
16361 (eval_agent_expr): Rename to ...
16362 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16363 and move to ax.c.
16364 (eval_tracepoint_agent_expr): New function.
16365 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16366 non-static.
5e1dc496
LM
16367 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16368 ax.c.
16369 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16370 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16371 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16372 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16373 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16374 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16375 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16376 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16377 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16378 (compile_bytecodes): Remove forward declaration.
16379 (is_goto_target): Move to ax.c.
16380 (compile_bytecodes): Move to ax.c and call
16381 agent_get_trace_state_variable_value (...) and
16382 agent_set_trace_state_variable_value (...).
16383
16384 * Makefile.in: Update ax.c and IPA dependencies.
16385
277e4e52
PA
163862012-02-24 Pedro Alves <palves@redhat.com>
16387
16388 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16389 (cmd_bigqtbuffer_circular): ... this. Only handle
16390 'QTBuffer:circular:'.
16391 (handle_tracepoint_general_set): Adjust.
16392
bf4c19f7
YQ
163932012-02-16 Yao Qi <yao@codesourcery.com>
16394
16395 * inferiors.c: Move code to ...
16396 * dll.c: .... here. New.
16397 * server.h: Declare clear_dlls.
16398 * Makefile.in (SFILES): Add dll.c.
16399 (OBS): Add dll.o
16400 (dll.o): New rule.
16401
d73f2619
YQ
164022012-02-11 Yao Qi <yao@codesourcery.com>
16403
16404 * server.c: (handle_monitor_command): Add a new parameter
16405 `own_buf'.
16406 (handle_query): Update caller.
16407
f8255c2a
JB
164082012-02-09 Joel Brobecker <brobecker@adacore.com>
16409
16410 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16411 * configure, config.in: Regenerate.
16412 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16413 is not defined.
16414
da84f473
PA
164152012-02-02 Pedro Alves <palves@redhat.com>
16416
16417 Try SIGKILL first, then PTRACE_KILL.
16418 * linux-low.c (linux_kill_one_lwp): New.
16419 (linux_kill_one_lwp): Rename to ...
16420 (kill_one_lwp_callback): ... this. Use the new
16421 linux_kill_one_lwp.
16422
e886a173
PA
164232012-02-02 Pedro Alves <palves@redhat.com>
16424
16425 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16426 inferior.
16427
be07f1a2
PA
164282012-01-27 Pedro Alves <palves@redhat.com>
16429
16430 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16431 (elf_64_file_p): Make static.
16432 (linux_pid_exe_is_elf_64_file): New.
16433 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16434 Delete declarations.
16435 (linux_pid_exe_is_elf_64_file): Declare.
16436 * linux-x86-low.c (x86_arch_setup): Use
16437 linux_pid_exe_is_elf_64_file.
16438
d8301ad1
JK
164392012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16440
16441 * linux-low.c (linux_wait_for_event_1): Rename to ...
16442 (linux_wait_for_event): ... here and merge it with former
16443 linux_wait_for_event - new variable wait_ptid, use it.
16444 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16445
01b17894
PA
164462012-01-23 Pedro Alves <palves@redhat.com>
16447
16448 * server.c (main): Avoid yet another case of infinite loop while
16449 detaching/killing after a longjmp.
16450
e825046f
JK
164512012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16452
16453 Code cleanup.
16454 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16455
b9e7b9c3
UW
164562012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16457
16458 * hostio.c (handle_readlink): New function.
16459 (handle_vFile): Call it to handle "vFile:readlink" packets.
16460
901f9912
UW
164612012-01-20 Pedro Alves <palves@redhat.com>
16462 Ulrich Weigand <ulrich.weigand@linaro.org>
16463
16464 * server.c (handle_v_requests): Only support vAttach and vRun to
16465 start multiple processes when in extended protocol mode.
16466
fc1ab1a0
PA
164672012-01-17 Pedro Alves <palves@redhat.com>
16468
16469 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16470 memalign plus mprotect to allocate the scratch buffer.
16471
7d5d4e98
PA
164722012-01-13 Pedro Alves <palves@redhat.com>
16473
16474 * server.c (attach_inferior): Clear `cont_thread'.
16475
f128d5e9
PA
164762012-01-13 Pedro Alves <palves@redhat.com>
16477
16478 * server.c (main): Avoid infinite loop while detaching/killing
16479 after a longjmp.
16480
06db92f0
DE
164812012-01-09 Doug Evans <dje@google.com>
16482
16483 * server.c (start_inferior): Set last_ptid in --wrapper case.
16484
32d92999
YQ
164852012-01-06 Yao Qi <yao@codesourcery.com>
16486
16487 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16488 defined.
16489 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16490
5e0a92a9
YQ
164912012-01-04 Yao Qi <yao@codesourcery.com>
16492
16493 * tracepoint.c (cmd_qtdp): Print debug message
16494 for static tracepoint.
16495
ae639e8c
YQ
164962012-01-04 Yao Qi <yao@codesourcery.com>
16497
16498 * tracepoint.c (trace_vdebug): Differentiate debug message
16499 between gdbserver and IPA.
16500
f72429c5
YQ
165012012-01-03 Yao Qi <yao@codesourcery.com>
16502
16503 * tracepoint.c (tracepoint_was_hit): Don't collect for
16504 static tracepoint.
16505
12c3e59c
JB
165062012-01-02 Joel Brobecker <brobecker@adacore.com>
16507
16508 * terminal.h: Reformat copyright header.
16509
67827812
JB
165102012-01-02 Joel Brobecker <brobecker@adacore.com>
16511
16512 * server.c (gdbserver_version): Update copyright year.
16513 * gdbreplay.c (gdbreplay_version): Likewise.
16514
3e52c33d
JK
165152011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16516
16517 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16518
16519 Revert:
16520 2011-12-18 Hui Zhu <teawater@gmail.com>
16521 * linux-low.c (linux_create_inferior): Save return value to ret.
16522
66f1260e
HZ
165232011-12-18 Hui Zhu <teawater@gmail.com>
16524
16525 * linux-low.c (linux_create_inferior): Save return value to ret.
16526
e77616d7
DE
165272011-12-16 Doug Evans <dje@google.com>
16528
e7b06c57
DE
16529 * linux-low.c (linux_create_inferior): If stdio connection,
16530 redirect stdin from /dev/null, stdout to stderr.
16531 * remote-utils.c (remote_is_stdio): New static global.
16532 (remote_connection_is_stdio): New function.
16533 (remote_prepare): Handle stdio connection.
16534 (remote_open): Ditto.
16535 (remote_close): Don't close stdin for stdio connections.
16536 (read_prim,write_prim): New functions. Replace all calls to
16537 read/write to these.
16538 * server.c (main): Watch for "-" argument. Move call to
16539 remote_prepare before start_inferior.
16540 * server.h (STDIO_CONNECTION_NAME): New macro.
16541 (remote_connection_is_stdio): Declare.
16542
e77616d7
DE
16543 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16544 in debugging output.
16545
82067193
YQ
165462011-12-15 Yao Qi <yao@codesourcery.com>
16547
16548 * tracepoint.c: Include sys/syscall.h.
16549 (gdb_ust_thread): Remove preprocessor conditional.
16550
82bfbe7e
PA
165512011-12-14 Pedro Alves <pedro@codesourcery.com>
16552
16553 * linux-low.c (linux_detach_one_lwp): Call
16554 the_low_target.prepare_to_resume before detaching.
16555
712c6575
YQ
165562011-12-14 Yao Qi <yao@codesourcery.com>
16557
16558 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16559 of write.
16560
d54d1edf
YQ
165612011-12-14 Yao Qi <yao@codesourcery.com>
16562
16563 * i386-low.c (i386_low_stopped_data_address): Initialize local
16564 variable `control'.
16565
6210a125
PA
165662011-12-13 Pedro Alves <pedro@codesourcery.com>
16567
16568 PR remote/13492
16569
16570 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16571 DR_CONTROL unless necessary. Extend comments.
16572 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16573 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16574
2ece8244
YQ
165752011-12-13 Yao Qi <yao@codesourcery.com>
16576
16577 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16578 macros.
16579 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16580
784867a5
JK
165812011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16582
16583 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16584 Print new debug message for such case.
16585
6bf36717
JK
165862011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16587
16588 Fix overlapping memcpy.
16589 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16590 the read_inferior_memory transfer.
16591 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16592 write_inferior_memory transfer.
16593 (set_fast_tracepoint_jump): New variable buf. Use it for the
16594 read_inferior_memory and write_inferior_memory transfers.
16595 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16596 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16597 Use it for the write_inferior_memory transfer.
16598 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16599 buffers.
16600
50275556
MR
166012011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16602
16603 * linux-low.c (fetch_register, store_register): Make code
16604 consistent, fix formatting.
16605
7325beb4
MR
166062011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16607
16608 * linux-low.c (usr_store_inferior_registers): Factor out code
16609 to handle individual registers into...
16610 (store_register): ... this new function.
16611
c642a434
UW
166122011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16613
16614 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16615 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16616 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16617 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16618 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16619 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16620 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16621 (srv_xmlfiles): Add new XML files.
16622
16623 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16624 and <sys/uio.h>.
16625 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16626 (init_registers_s390_linux32v1): Add prototype.
16627 (init_registers_s390_linux32v2): Likewise.
16628 (init_registers_s390_linux64v1): Likewise.
16629 (init_registers_s390_linux64v2): Likewise.
16630 (init_registers_s390x_linux64v1): Likewise.
16631 (init_registers_s390x_linux64v2): Likewise.
16632 (s390_num_regs): Increment to 52.
16633 (s390_regmap): Add orig_r2 register.
16634 (s390_num_regs_3264): Increment to 68.
16635 (s390_regmap_3264): Add orig_r2 register.
16636 (s390_collect_ptrace_register): Handle orig_r2 register.
16637 (s390_supply_ptrace_register): Likewise.
16638 (s390_fill_last_break): New function.
16639 (s390_store_last_break): Likewise.
16640 (s390_fill_system_call): New function.
16641 (s390_store_system_call): Likewise.
16642 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16643 register sets.
16644 (s390_check_regset): New function.
16645 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16646 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16647 Update target_regsets for available register sets.
16648
2268b414
JK
166492011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16650 Jan Kratochvil <jan.kratochvil@redhat.com>
16651
16652 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16653 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16654 New.
16655 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16656 * linux-low.h (struct process_info_private): New member r_debug.
16657 * server.c (handle_qxfer_libraries): Call
16658 the_target->qxfer_libraries_svr4.
16659 (handle_qxfer_libraries_svr4): New function.
16660 (qxfer_packets): New entry "libraries-svr4".
16661 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16662 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16663 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16664 PACKET_qXfer_libraries_svr4.
16665
d6db1fab
UW
166662011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16667
16668 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16669 PSW address/mask between 8-byte and 16-byte formats.
16670 (s390_supply_ptrace_register): Likewise.
16671 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16672 basic addressing mode bit.
16673
242f5f1c
SS
166742011-11-24 Stan Shebs <stan@codesourcery.com>
16675
16676 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16677
f196051f
SS
166782011-11-17 Stan Shebs <stan@codesourcery.com>
16679
16680 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16681 (tracing_start_time): New global.
16682 (tracing_stop_time): New global.
16683 (tracing_user_name): New global.
16684 (tracing_notes): New global.
16685 (tracing_stop_note): New global.
16686 (cmd_qtstart): Set traceframe_usage, start_time.
16687 (stop_tracing): Set stop_time.
16688 (cmd_qtstatus): Report additional status.
16689 (cmd_qtp): New function.
16690 (handle_tracepoint_query): Call it.
16691 (cmd_qtnotes): New function.
16692 (handle_tracepoint_general_set): Call it.
16693 (get_timestamp): Rename from tsv_get_timestamp.
16694
405f8e94
SS
166952011-11-14 Stan Shebs <stan@codesourcery.com>
16696 Kwok Cheung Yeung <kcy@codesourcery.com>
16697
16698 * linux-x86-low.c (small_jump_insn): New.
16699 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16700 trampoline and error message, build a trampoline and issue a small
16701 jump instruction to it.
16702 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16703 trampoline and error message.
16704 (x86_get_min_fast_tracepoint_insn_len): New.
16705 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16706 * linux-low.h (struct linux_target_ops): Add arguments to
16707 install_fast_tracepoint_jump_pad operation, add new operation.
16708 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16709 arguments.
16710 (linux_get_min_fast_tracepoint_insn_len): New function.
16711 (linux_target_op): Add new operation.
16712 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16713 (gdb_trampoline_buffer_end): Ditto.
16714 (gdb_trampoline_buffer_error): Ditto.
16715 (struct ipa_sym_addresses): Add fields for new IPA variables.
16716 (symbol_list): Add entries for new IPA variables.
16717 (struct tracepoint): Add fields to hold the address range of the
16718 trampoline used by the tracepoint.
16719 (trampoline_buffer_head): New static variable.
16720 (trampoline_buffer_tail): Ditto.
16721 (claim_trampoline_space): New function.
16722 (have_fast_tracepoint_trampoline_buffer): New function.
16723 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16724 structure.
16725 (install_fast_tracepoint): Ditto, also add error buffer argument.
16726 (cmd_qtminftpilen): New function.
16727 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16728 (fast_tracepoint_from_trampoline_address): New function.
16729 (fast_tracepoint_collecting): Handle trampoline as part of jump
16730 pad space.
16731 (set_trampoline_buffer_space): New function.
16732 (initialize_tracepoint): Initialize new IPA variables.
16733 * target.h (struct target_ops): Add arguments to
16734 install_fast_tracepoint_jump_pad operation, add new
16735 get_min_fast_tracepoint_insn_len operation.
16736 (target_get_min_fast_tracepoint_insn_len): New.
16737 (install_fast_tracepoint_jump_pad): Add arguments.
16738 * server.h (IPA_BUFSIZ): Define.
16739 * linux-i386-ipa.c: Include extra header files.
16740 (initialize_fast_tracepoint_trampoline_buffer): New function.
16741 (initialize_low_tracepoint): Call it.
16742 * server.h (set_trampoline_buffer_space): Declare.
16743 (claim_trampoline_space): Ditto.
16744 (have_fast_tracepoint_trampoline_buffer): Ditto.
16745
1e4d1764
YQ
167462011-11-14 Yao Qi <yao@codesourcery.com>
16747
16748 * server.c (handle_query): Handle InstallInTrace for qSupported.
16749 * tracepoint.c (add_tracepoint): Sort list.
16750 (install_tracepoint, download_tracepoint): New.
16751 (cmd_qtdp): Call them to install and download tracepoints.
16752 (sort_tracepoints): Removed.
16753 (cmd_qtstart): Update.
16754
5c73ff4e
YQ
167552011-11-14 Yao Qi <yao@codesourcery.com>
16756
16757 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16758 * mem-break.h: Declare.
16759 * tracepoint.c (cmd_qtstart): Move some code to ...
16760 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16761 New.
16762 (download_tracepoints): Move some code to ...
16763 (download_tracepoint_1): ... here. New.
16764
86a30030
YQ
167652011-11-08 Yao Qi <yao@codesourcery.com>
16766
16767 * remote-utils.c (relocate_instruction): A comment fix.
16768
8d26e50c
JB
167692011-11-07 Joel Brobecker <brobecker@adacore.com>
16770
16771 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16772 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16773 dr_status_mirror and dr_control_mirror from debug_reg_state.
16774 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16775 (i386_initial_stuff): Remove use of deleted globals.
16776 (i386_get_thread_context, i386_set_thread_context,
16777 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16778 from debug_reg_state.
16779
a59306a3
YQ
167802011-11-05 Yao Qi <yao@codesourcery.com>
16781
16782 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16783 address as TPOINT's.
16784
3065dfb6
SS
167852011-11-02 Stan Shebs <stan@codesourcery.com>
16786
16787 * tracepoint.c (agent_mem_read_string): New function.
16788 (eval_agent_expr): Call it for tracenz.
16789 * server.c (handle_query): Report support for tracenz.
16790
fd0d8c7c
YQ
167912011-11-02 Yao Qi <yao@codesourcery.com>
16792
16793 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16794
609086b1
YQ
167952011-11-02 Yao Qi <yao@codesourcery.com>
16796
16797 * target.h: Fix a typo in comment.
16798
b9fd1791
PA
167992011-10-31 Pedro Alves <pedro@codesourcery.com>
16800
16801 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16802 clobber the breakpoints' shadows with fast tracepoint jumps.
16803 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16804 * target.c (write_inferior_memory): Also pass MYADDR down to
16805 check_mem_write.
16806
03583c20
UW
168072011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16808
16809 * configure.ac: Check support for personality routine.
16810 * configure: Regenerate.
16811 * config.in: Likewise.
16812 * linux-low.c: Include <sys/personality.h>.
16813 Define ADDR_NO_RANDOMIZE if necessary.
16814 (linux_create_inferior): Disable address space randomization when
16815 forking inferior, if requested.
16816 (linux_supports_disable_randomization): New function.
16817 (linux_target_ops): Install it.
16818 * server.h (disable_randomization): Declare.
16819 * server.c (disable_randomization): New global variable.
16820 (handle_general_set): Handle QDisableRandomization.
16821 (handle_query): Likewise for qSupported.
16822 (main): Support --disable-randomization and --no-disable-randomization
16823 command line arguments.
16824 * target.h (struct target_ops): Add supports_disable_randomization.
16825 (target_supports_disable_randomization): New macro.
16826
723b724b
MF
168272011-09-29 Mike Frysinger <vapier@gentoo.org>
16828
16829 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16830 ifdef check.
16831 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16832 [!PT_GETDSBT] (target_loadmap): New definition.
16833 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16834 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16835 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16836 and PT_GETDSBT to LINUX_LOADMAP.
16837 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16838 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16839
55329a5c 168402011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16841
16842 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16843 (arm_linux_hwbp_cap): New static variable.
16844 (arm_linux_get_hwbp_cap): Replace by ...
16845 (arm_linux_init_hwbp_cap): ... this new function.
16846 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16847 (arm_linux_get_hw_watchpoint_count): Likewise.
16848 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16849 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16850 (arm_prepare_to_resume): Use perror_with_name instead of error.
16851
55329a5c 168522011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16853
16854 * linux-arm-low.c: Include <signal.h>.
16855 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16856 (struct arm_linux_hwbp_cap): New data type.
16857 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16858 (struct arm_linux_hw_breakpoint): New data type.
16859 (MAX_BPTS, MAX_WPTS): Define.
16860 (struct arch_process_info, struct arch_lwp_info): New data types.
16861 (arm_linux_get_hwbp_cap): New function.
16862 (arm_linux_get_hw_breakpoint_count): Likewise.
16863 (arm_linux_get_hw_watchpoint_count): Likewise.
16864 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16865 (arm_hwbp_control_initialize): Likewise.
16866 (arm_hwbp_control_is_enabled): Likewise.
16867 (arm_hwbp_control_is_initialized): Likewise.
16868 (arm_hwbp_control_disable): Likewise.
16869 (arm_linux_hw_breakpoint_equal): Likewise.
16870 (arm_linux_hw_point_initialize): Likewise.
16871 (struct update_registers_data): New data structure.
16872 (update_registers_callback: New function.
16873 (arm_insert_point): Likewise.
16874 (arm_remove_point): Likewise.
16875 (arm_stopped_by_watchpoint): Likewise.
16876 (arm_stopped_data_address): Likewise.
16877 (arm_new_process): Likewise.
16878 (arm_new_thread): Likewise.
16879 (arm_prepare_to_resume): Likewise.
16880 (the_low_target): Register arm_insert_point, arm_remove_point,
16881 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16882 arm_new_thread, and arm_prepare_to_resume.
16883
6b9801d4
SS
168842011-09-15 Stan Shebs <stan@codesourcery.com>
16885
16886 * server.h (struct emit_ops): Add compare-goto fields.
16887 * tracepoint.c (gdb_agent_op_sizes): New table.
16888 (emit_eq_goto): New function.
16889 (emit_ne_goto): New function.
16890 (emit_lt_goto): New function.
16891 (emit_le_goto): New function.
16892 (emit_gt_goto): New function.
16893 (emit_ge_goto): New function.
16894 (is_goto_target): New function.
16895 (compile_bytecodes): Recognize special cases of compare-goto
16896 combinations and call specialized emitters for them.
16897 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16898 (amd64_emit_ne_goto): New function.
16899 (amd64_emit_lt_goto): New function.
16900 (amd64_emit_le_goto): New function.
16901 (amd64_emit_gt_goto): New function.
16902 (amd64_emit_ge_goto): New function.
16903 (amd64_emit_ops): Add the new functions.
16904 (i386_emit_eq_goto): New function.
16905 (i386_emit_ne_goto): New function.
16906 (i386_emit_lt_goto): New function.
16907 (i386_emit_le_goto): New function.
16908 (i386_emit_gt_goto): New function.
16909 (i386_emit_ge_goto): New function.
16910 (i386_emit_ops): Add the new functions.
16911
bf15cbda
SS
169122011-09-08 Stan Shebs <stan@codesourcery.com>
16913
16914 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16915 (i386_emit_epilogue): Restore %ebx.
16916
943ca1dd
JZ
169172011-08-31 Jie Zhang <jzhang918@gmail.com>
16918
16919 * server.c (step_thread): Remove definition.
16920 (process_serial_event): Don't handle Hs.
16921 * server.h (step_thread): Remove declaration.
16922 * target.c (set_desired_inferior): Remove use of step_thread.
16923
e3deef73
LM
169242011-08-24 Luis Machado <lgustavo@codesourcery.com>
16925
16926 * linux-low.c: Include linux-procfs.h.
16927 (linux_attach_lwp_1): Update comments.
16928 (linux_attach): Scan for existing threads when attaching to a
16929 process that is the tgid.
16930 * Makefile.in: Update dependencies.
16931
13da1c97
LM
169322011-08-24 Luis Machado <lgustavo@codesourcery.com>
16933
16934 * configure.srv: Add linux-procfs.o dependencies.
16935
881127c9
YQ
169362011-08-14 Yao Qi <yao@codesourcery.com>
16937
16938 * target.h (struct target_ops): Fix indent.
16939 * win32-low.c (win32_target_ops): Fix comment.
16940
58dbd541
YQ
169412011-08-14 Andrew Jenner <andrew@codesourcery.com>
16942 Yao Qi <yao@codesourcery.com>
16943
16944 * Makefile.in (clean): Remove tic6x-*.c files.
16945 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16946 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16947 (tic6x-c64xp-linux.c): Likewise.
16948 * configure.srv: Add support for tic6x-*-uclinux.
16949 * linux-tic6x-low.c: New.
16950 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16951
78d85199
YQ
169522011-08-14 Andrew Stubbs <ams@codesourcery.com>
16953 Yao Qi <yao@codesourcery.com>
16954
16955 * target.h (struct target_ops): Add read_loadmap.
16956 * linux-low.c (struct target_loadseg): New type.
16957 (struct target_loadmap): New type.
16958 (linux_read_loadmap): New function.
16959 (linux_target_ops): Add linux_read_loadmap.
16960 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16961 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16962 to NULL.
78d85199 16963
a959a88d
EZ
169642011-08-05 Eli Zaretskii <eliz@gnu.org>
16965
16966 * win32-low.c: Include <stdint.h>.
16967
1ced966e
PA
169682011-07-22 Pedro Alves <pedro@codesourcery.com>
16969
16970 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16971 to the inferior here.
16972 (i386_remove_aligned_watchpoint): Ditto.
16973 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16974 fit part of the watchpoint in the debug registers.
16975 (i386_update_inferior_debug_regs): New.
16976 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16977 registers, and only update the inferior on success.
16978 (i386_low_remove_watchpoint): Ditto.
16979
d26e3629
KY
169802011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16981
16982 * linux-low.c (compare_ints, unique, list_threads, show_process,
16983 linux_core_of_thread): Delete.
16984 (linux_target_ops): Change linux_core_of_thread to
16985 linux_common_core_of_thread.
16986 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16987 * utils.c (malloc_failure): Change type of argument.
16988 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16989 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16990 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16991 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16992 (IPA_OBJS): Add common-utils-ipa.o.
16993 (ptid_h, linux_osdata_h): New macros.
16994 (server_h): Add common/common-utils.h, common/xml-utils.h,
16995 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16996 common/ptid.h.
16997 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16998 ptid.o, buffer.o): New rules.
16999 (linux-low.o): Add common/linux-osdata.h as a dependency.
17000 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
17001 * configure.ac: Add AC_HEADER_DIRENT check.
17002 * config.in: Regenerate.
17003 * configure: Regenerate.
17004 * remote-utils.c (xml_escape_text): Delete.
17005 (buffer_grow, buffer_free, buffer_init, buffer_finish,
17006 buffer_xml_printf): Move to common/buffer.c.
17007 * server.c (main): Remove call to initialize_inferiors.
17008 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
17009 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
17010 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
17011 internal_error, gdb_assert, gdb_assert_fail): Delete.
17012 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
17013 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
17014 common/buffer.h.
17015 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
17016 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
17017 initialize_inferiors): Delete.
17018
2275a1a7
PA
170192011-07-20 Pedro Alves <pedro@codesourcery.com>
17020
17021 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
17022 symbol error.
17023
0a5b1e09
PA
170242011-05-31 Pedro Alves <pedro@codesourcery.com>
17025
17026 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
17027 assertion.
17028 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
17029
6938fd34
YQ
170302011-05-26 Yao Qi <yao@codesourcery.com>
17031
17032 * Makefile.in (thread-db.o): Track dependence to
17033 common/gdb_thread_db.h.
17034 * thread-db.c: include gdb_thread_db.h from right place.
17035
b481f9e0
TT
170362011-05-16 Adrian Cornish <gnu@bluedreamer.com>
17037
17038 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
17039 __FILE__ and __LINE__ to internal_error.
17040
98a5dd13
DE
170412011-05-13 Doug Evans <dje@google.com>
17042
17043 * thread-db.c (try_thread_db_load_from_sdir): New function.
17044 (try_thread_db_load_from_dir): New function.
17045 (thread_db_load_search): Handle $sdir, ignore $pdir.
17046 Remove trying of system directories if search of
17047 libthread-db-search-path fails, that is now done via $sdir.
17048
d248b706
KY
170492011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
17050
17051 * server.c (handle_query): Add EnableDisableTracepoints to the list
17052 of supported features.
43aaf8b6 17053 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 17054 tracepoints.
43aaf8b6
PA
17055 (cmd_qtenable_disable): New.
17056 (cmd_qtstart): Install tracepoints even if disabled.
17057 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
17058 receiving a QTEnable or QTDisable packet.
17059 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17060 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17061 tracepoints.
17062 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 17063
84e578fb
DE
170642011-05-10 Doug Evans <dje@google.com>
17065
17066 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17067
71f55dd8
DE
170682011-05-04 Doug Evans <dje@google.com>
17069
17070 * linux-low.c (linux_join): Skip process lookup.
17071 * spu-low.c (spu_join): Ditto.
17072 * server.c (join_inferiors_callback): Delete.
17073 (process_serial_event): For 'D' packet (detach) call join_inferior
17074 directly.
17075
4d393d60
JM
170762011-05-04 Joseph Myers <joseph@codesourcery.com>
17077
17078 * README: Don't mention xscale*-*-linux*.
17079 * configure.srv (xscale*-*-linux*): Don't handle target.
17080
b00ad6ff
NF
170812011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17082
17083 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17084 casting pointers.
17085 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17086 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17087 (i386_emit_void_call_2): Likewise.
17088
af96c192
YQ
170892011-04-26 Yao Qi <yao@codesourcery.com>
17090
43aaf8b6
PA
17091 * linux-low.c: Move common macros to linux-ptrace.h.
17092 Include linux-ptrace.h.
af96c192
YQ
17093 * Makefile.in (linux_ptrace_h): New.
17094 (linux-low.o): Depends on linux-ptrace.h.
17095
03f2bd59
JK
170962011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17097
17098 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17099 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17100 (remote_prepare): New function with most of the TCP code from ...
17101 (remote_open): ... here. Detect PORT here unconditionally. Move also
17102 setting transport_is_reliable.
17103 * server.c (run_once): New variable.
17104 (gdbserver_usage): Document it.
17105 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17106 the first run if RUN_ONCE.
17107 * server.h (run_once, remote_prepare): New declarations.
17108
7a9dd1b2
TT
171092011-04-19 Tom Tromey <tromey@redhat.com>
17110
17111 * win32-low.c (handle_load_dll): Remove duplicate "the".
17112
81239425
PM
171132011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17114
17115 Remove support for old Cygwin 1.5 versions.
17116 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17117 function to avoid warning.
17118 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17119 warning.
17120
9e0627f1
PM
171212011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17122
17123 * gdbserver/server.h (Macro _): Define it if not available.
17124
588eebee
MS
171252011-03-14 Michael Snyder <msnyder@vmware.com>
17126
348af9f7 17127 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 17128
43f70d4c
JB
171292011-03-10 Joel Brobecker <brobecker@adacore.com>
17130
17131 * Makefile.in (maintainer-clean realclean distclean): Remove
17132 "make ... subdir_do" command.
17133
348af9f7
MS
171342011-03-10 Michael Snyder <msnyder@vmware.com>
17135
17136 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17137
17138 * server.c (handle_v_run): Free alloced buffer on early return.
17139
e637a4f5
YQ
171402011-03-09 Yao Qi <yao@codesourcery.com>
17141
17142 Revert:
17143 2011-03-04 Yao Qi <yao@codesourcery.com>
17144
17145 * Makefile.in: Remove GNU make feature --directory.
17146
17147 2011-03-05 Yao Qi <yao@codesourcery.com>
17148
17149 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17150 (subdir_do): New make target. Copied from gdb/Makefile.
17151 (maintainer-clean, realclean, distclean, clean): Call corresponding
17152 make targets in common/Makefile.
17153
17154 2011-02-11 Yao Qi <yao@codesourcery.com>
17155
17156 * configure.ac: Call AC_PROG_RANLIB.
17157 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17158 * configure: Regenerate.
17159
e6edda56
JK
171602011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17161
17162 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17163
e5141119
JB
171642011-03-06 Yao Qi <yao@codesourcery.com>
17165
17166 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17167
64794aa4
JB
171682011-03-05 Yao Qi <yao@codesourcery.com>
17169
17170 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17171 (subdir_do): New make target. Copied from gdb/Makefile.
17172 (maintainer-clean, realclean, distclean, clean): Call corresponding
17173 make targets in common/Makefile.
17174
7a762829
YQ
171752011-03-04 Yao Qi <yao@codesourcery.com>
17176
17177 * Makefile.in: Remove GNU make feature --directory.
17178
348af9f7
MS
171792011-03-04 Michael Snyder <msnyder@vmware.com>
17180
17181 * server.c (queue_stop_reply): Call xmalloc not malloc.
17182
171832011-03-02 Michael Snyder <msnyder@vmware.com>
17184
17185 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17186
9f72fee2
MS
171872011-02-28 Michael Snyder <msnyder@vmware.com>
17188
588eebee
MS
17189 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17190 (cmd_qtframe): Ditto.
17191 (cmd_qtbuffer): Ditto.
17192 (cmd_bigqtbuffer): Ditto.
17193
9f72fee2
MS
17194 * utils.c (decimal2str): Initialize 'width' to nine, then
17195 don't mess with it.
17196
8040bd49
UW
171972011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17198
17199 * hostio.c (require_data): Free *data, not data.
17200
7e52cbd0
JK
172012011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17202
17203 * hostio.c (require_data): Use free, not xfree.
17204
9130f83e
MS
172052011-02-27 Michael Snyder <msnyder@vmware.com>
17206
4b812f4e
MS
17207 * server.c (handle_query): Discard unused value.
17208
9130f83e
MS
17209 * hostio.c (require_data): Free malloc memory before returning
17210 error.
17211
69d37113
MS
172122011-02-26 Michael Snyder <msnyder@vmware.com>
17213
17214 * linux-low.c (list_threads): Call closedir for dirent.
17215
35f5825a
MS
172162011-02-27 Michael Snyder <msnyder@vmware.com>
17217
2a589cef
MS
17218 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17219 a case statement falls through.
17220
0adea5f7
MS
17221 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17222
35f5825a
MS
17223 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17224 in comparison.
17225
238f1c74
MS
172262011-02-26 Michael Snyder <msnyder@vmware.com>
17227
17228 * utils.c (decimal2str): Eliminate dead code and dead param.
17229 (pulongest): Drop dead param from call to decimal2str.
17230 (plongest): Ditto.
17231
633ff500
JB
172322011-02-24 Joel Brobecker <brobecker@adacore.com>
17233
17234 Revert the following patch (not approved yet):
17235 2011-02-21 Hui Zhu <teawater@gmail.com>
17236 * tracepoint.c (tp_printf): New function.
17237 (eval_agent_expr): Handle gdb_agent_op_printf.
17238
f9c6ff72
HZ
172392011-02-21 Hui Zhu <teawater@gmail.com>
17240
17241 * tracepoint.c (tp_printf): New function.
17242 (eval_agent_expr): Handle gdb_agent_op_printf.
17243
94d5e490
TT
172442011-02-18 Tom Tromey <tromey@redhat.com>
17245
17246 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17247 (tracepoint.o): Likewise.
17248 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17249 (gdb_agent_op_names): Likewise.
17250
c7f96d2b
TT
172512011-02-18 Tom Tromey <tromey@redhat.com>
17252
17253 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17254 gdb_agent_op_rot>: New constants.
17255 (gdb_agent_op_names): Add pick and roll.
17256 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17257 cases.
17258
0feedb2c
JK
172592011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17260
17261 * aclocal.m4: Regenerated with aclocal-1.11.1.
17262
b3b9301e
PA
172632011-02-14 Pedro Alves <pedro@codesourcery.com>
17264
17265 * server.c (handle_qxfer_traceframe_info): New.
17266 (qxfer_packets): Register "traceframe-info".
17267 (handle_query): Report support for qXfer:traceframe-info:read+.
17268 * tracepoint.c (match_blocktype): New.
17269 (traceframe_find_block_type): Rename to ...
17270 (traceframe_walk_blocks): ... this. Add callback filter argument,
17271 and use it.
17272 (traceframe_find_block_type): New, reimplemented on top of
17273 traceframe_walk_blocks.
17274 (build_traceframe_info_xml): New.
17275 (traceframe_read_info): New.
17276 * server.h (traceframe_read_info): Declare.
17277
4f3e6fb7
YQ
172782011-02-11 Yao Qi <yao@codesourcery.com>
17279
17280 * configure.ac: Call AC_PROG_RANLIB.
17281 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17282 * configure: Regenerate.
17283
764880b7
PA
172842011-02-07 Pedro Alves <pedro@codesourcery.com>
17285
17286 * server.c (gdb_read_memory): Change return semantics to allow
17287 partial transfers.
17288 (handle_search_memory_1): Adjust.
17289 (process_serial_event) <'m' packet>: Handle partial transfers.
17290 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17291
1c79eb8a
PA
172922011-01-28 Pedro Alves <pedro@codesourcery.com>
17293
17294 * regcache.c (init_register_cache): Initialize
17295 regcache->register_status.
17296 (free_register_cache): Release regcache->register_status.
17297 (regcache_cpy): Copy register_status.
17298 (registers_to_string): Print 'x's for unavailable registers.
17299 (supply_register): Mark the register's status valid or
17300 unavailable, depending on whether a buffer was passed in or not.
17301 (supply_register_zeroed): New.
17302 (supply_regblock): Mark the registers' status valid or
17303 unavailable, depending on whether a buffer was passed in or not.
17304 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17305 (struct regcache): New `register_status' field.
17306 (supply_register_zeroed): Declare.
17307 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17308 supply_register_zeroed, rather than passing a NULL buffer to
17309 supply_register.
17310 * tracepoint.c (fetch_traceframe_registers): Update comment.
17311
85724a0e
PA
173122011-01-28 Pedro Alves <pedro@codesourcery.com>
17313
17314 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17315 buffer explicit.
17316
d08aafef
PA
173172011-01-25 Pedro Alves <pedro@codesourcery.com>
17318
17319 * server.h (decode_xfer_write): Change prototype.
17320 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17321 and don't extract the annex here.
17322 * server.c (decode_xfer_read): Remove `annex' parameter,
17323 and don't extract the annex here.
17324 (decode_xfer): New.
17325 (struct qxfer): New.
17326 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17327 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17328 (handle_qxfer_statictrace): New functions, abstracted out from
17329 handle_query, and made to use the struct qxfer interface.
17330 (handle_threads_qxfer_proper): Rename to ...
17331 (handle_qxfer_threads_proper): ... this.
17332 (handle_threads_qxfer): Rename to ...
17333 (handle_qxfer_threads): ... this. Adjust.
17334 (qxfer_packets): New array.
17335 (handle_qxfer): New function.
17336 (handle_query): Use handle_qxfer.
17337
493e2a69
MS
173382011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17339
17340 * gdbreplay.c: Shorten lines of >= 80 columns.
17341 * linux-low.c: Ditto.
17342 * linux-ppc-low.c: Ditto.
17343 * linux-s390-low.c: Ditto.
17344 * linux-sparc-low.c: Ditto.
17345 * linux-x86-low.c: Ditto.
17346 * linux-xtensa-low.c: Ditto.
17347 * mem-break.c: Ditto.
17348 * nto-low.c: Ditto.
17349 * regcache.h: Ditto.
17350 * remote-utils.c: Ditto.
17351 * server.c: Ditto.
17352 * server.h: Ditto.
17353 * thread-db.c: Ditto.
17354 * tracepoint.c: Ditto.
17355 * utils.c: Ditto.
17356 * win32-low.h: Ditto.
17357
44944448
JB
173582011-01-05 Joel Brobecker <brobecker@adacore.com>
17359
17360 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17361 update.
17362
71ce852c
JB
173632011-01-01 Joel Brobecker <brobecker@adacore.com>
17364
17365 * server.c (gdbserver_version): Update copyright year in version
17366 output.
17367 * gdbreplay.c (gdbreplay_version): Ditto.
17368
eb826dc6
MF
173692010-12-29 Jie Zhang <jie.zhang@analog.com>
17370
17371 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17372 * linux-bfin-low.c: New file.
17373 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17374 PT_DATA_ADDR for BFIN targets.
17375 * Makefile.in (SFILES): Add linux-bfin-low.c.
17376 (clean): Remove reg-bfin.c.
17377 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17378 * README: Mention supported Blackfin targets.
17379
39ab222a
MF
173802010-12-23 Mike Frysinger <vapier@gentoo.org>
17381
17382 * .gitignore: New file.
17383
a1f2ce7d
MF
173842010-11-16 Mike Frysinger <vapier@gentoo.org>
17385
17386 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17387
f474844c
JZ
173882010-10-22 Jie Zhang <jie@codesourcery.com>
17389
17390 * Makefile.in: Add FLAGS_TO_PASS variable.
17391 (install): Remove dependency of install-only and recursively
17392 invoke make for install-only.
17393
f1048712
DE
173942010-10-04 Doug Evans <dje@google.com>
17395
17396 * Makefile.in (uninstall): Use $(DESTDIR).
17397
b53a1623
PA
173982010-09-24 Pedro Alves <pedro@codesourcery.com>
17399
e6ee044d
PA
17400 PR gdb/11842
17401
b53a1623
PA
17402 * linux-x86-low.c (compat_siginfo_from_siginfo)
17403 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17404 si_code is < 0. Check for si_code == SI_TIMER before checking for
17405 si_code < 0.
17406
fa1bd1e4
JB
174072010-09-13 Joel Brobecker <brobecker@adacore.com>
17408
17409 * lynx-i386-low.c: New file.
17410 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17411
47fac8f8
JB
174122010-09-13 Joel Brobecker <brobecker@adacore.com>
17413
17414 * lynx-low.c (ptrace_request_to_str): Remove handling for
17415 request values that have been removed in LynxOS 5.x.
17416
1adfc54d
JB
174172010-09-13 Joel Brobecker <brobecker@adacore.com>
17418
17419 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17420 <ptrace.h>
17421
c2a66c29
NS
174222010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17423
17424 * configure.ac: Add --enable-inprocess-agent option.
17425 * configure: Rebuilt.
17426
32fcada3
YQ
174272010-09-06 Yao Qi <yao@codesourcery.com>
17428
17429 * linux-low.c (linux_kill): Remove unused variable.
17430 (linux_stabilize_threads): Likewise.
17431 * server.c (start_inferior): Likewise.
17432 (queue_stop_reply_callback): Likewise.
17433 * tracepoint.c (do_action_at_tracepoint): Likewise.
17434
0cccb683
YQ
174352010-09-06 Yao Qi <yao@codesourcery.com>
17436
17437 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17438 on return.
17439
423ec54c
JK
174402010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17441
17442 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17443
12ac6819
PA
174442010-09-06 Pedro Alves <pedro@codesourcery.com>
17445
17446 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17447 "$(IPA_DEPFILES)".
17448
8ed54b31
JB
174492010-09-01 Joel Brobecker <brobecker@adacore.com>
17450
17451 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17452 gdbserver/lynx-ppc-low.c: New files.
17453 * Makefile.in (lynx_low_h): New variable.
17454 (lynx-low.o, lynx-ppc-low.o): New rules.
17455 * configure.ac: On LynxOS, link with -lnetinet.
17456 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17457 * configure: regenerate.
17458
bb0116a4
JB
174592010-09-01 Joel Brobecker <brobecker@adacore.com>
17460
17461 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17462 * configure.ac: Add check for vasprintf and vsnprintf.
17463 * configure, config.in: Regenerate.
17464 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17465
a778ab81 174662010-09-01 Joel Brobecker <brobecker@adacore.com>
17467
17468 * gdbreplay.c: Move include of alloca.h up, next to include of
17469 malloc.h.
17470 * server.h: Add include of malloc.h.
17471 * mem-break.c: Remove include of malloc.h.
17472 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17473
8b034a19 174742010-09-01 Joel Brobecker <brobecker@adacore.com>
17475
17476 * Makefile.in (memmem.o): Build with -Wno-error.
17477
174782010-09-01 Joel Brobecker <brobecker@adacore.com>
17479
17480 * utils.c (xsnprintf): Make non-static.
17481 * server.h: Add xsnprintf declaration.
17482 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17483 replace calls to snprintf by calls to xsnprintf throughout.
17484
174852010-09-01 Joel Brobecker <brobecker@adacore.com>
17486
17487 * configure.ac: Add configure check for alloca.
17488 * configure, config.in: Regenerate.
17489 * server.h: Include alloca.h if it exists.
17490 * gdbreplay.c: Include alloca.h if it exists.
17491
1a981360
PA
174922010-08-28 Pedro Alves <pedro@codesourcery.com>
17493
17494 * linux-low.c (__SIGRTMIN): Define if not already defined.
17495 (linux_create_inferior): Check for __ANDROID__ rather than
17496 __SIGRTMIN.
17497 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17498 are already deferred.
17499 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17500 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17501 stopped and already has a pending signal to report.
17502 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17503 a pending signal to report or is moving out of a jump pad.
17504 (linux_init_signals): Check for __ANDROID__ rather than
17505 __SIGRTMIN.
17506
b4d51a55
PA
175072010-08-28 Pedro Alves <pedro@codesourcery.com>
17508
17509 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17510 debug_threads check. Avoid a linear search when not doing debug
17511 output.
17512
ec48365d
PA
175132010-08-27 Pedro Alves <pedro@codesourcery.com>
17514
17515 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17516 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17517 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17518 (process_event): Change local fd's type to gdb_fildes_t.
17519 (create_file_handler): Adjust prototype.
17520 (delete_file_handler): Adjust prototype.
17521 (handle_file_event): Adjust prototype. Use pfildes.
17522 (create_file_event): Adjsut prototype.
17523 * remote-utils.c (remote_desc, listen_desc): Change type to
17524 gdb_fildes_t.
17525 * server.h: New gdb_fildes_t typedef.
17526 [USE_WIN32API]: Include winsock2.h.
17527 (delete_file_handler, add_file_handler): Adjust prototypes.
17528 (pfildes): Declare.
17529 * utils.c (pfildes): New.
17530
854d88f0
PA
175312010-08-27 Pedro Alves <pedro@codesourcery.com>
17532
17533 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17534 * configure: Regenerate.
17535
0146f85b
PA
175362010-08-27 Pedro Alves <pedro@codesourcery.com>
17537
17538 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17539 (linux_done_accessing_memory): ... this.
17540 (linux_target_ops): Adjust.
17541 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17542 * nto-low.c (nto_target_ops): Adjust comment.
17543 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17544 * spu-low.c (spu_target_ops): Adjust comment.
17545 * target.h (target_ops): Rename unprepare_to_access_memory field
17546 to done_accessing_memory.
17547 (unprepare_to_access_memory): Rename to ...
17548 (done_accessing_memory): ... this.
17549
90d74c30
PA
175502010-08-26 Pedro Alves <pedro@codesourcery.com>
17551
17552 * linux-low.c (linux_prepare_to_access_memory): New.
17553 (linux_unprepare_to_access_memory): New.
17554 (linux_target_ops): Install them.
17555 * server.c (read_memory): Rename to ...
17556 (gdb_read_memory): ... this. Use
17557 prepare_to_access_memory/prepare_to_access_memory.
17558 (write_memory): Rename to ...
17559 (gdb_write_memory): ... this. Use
17560 prepare_to_access_memory/prepare_to_access_memory.
17561 (handle_search_memory_1): Adjust.
17562 (process_serial_event): Adjust.
17563 * target.h (struct target_ops): New fields
17564 prepare_to_access_memory and unprepare_to_access_memory.
17565 (prepare_to_access_memory, unprepare_to_access_memory): New.
17566 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17567 prepare_to_access_memory/prepare_to_access_memory.
17568 * nto-low.c (nto_target_ops): Adjust.
17569 * spu-low.c (spu_target_ops): Adjust.
17570 * win32-low.c (win32_target_ops): Adjust.
17571
fd467969
PA
175722010-08-26 Pedro Alves <pedro@codesourcery.com>
17573
17574 * Makefile.in (WARN_CFLAGS): Get it from configure.
17575 (WERROR_CFLAGS): New.
17576 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17577 * configure.ac: Introduce --enable-werror, which adds -Werror to
17578 the compiler command line. Enabled by default. Disable with
17579 --disable-werror. Add -Wdeclaration-after-statement
17580 Wpointer-arith and -Wformat-nonliteral to warning flags.
17581 * configure: Regenerate.
17582
331e2f5f
PA
175832010-08-26 Pedro Alves <pedro@codesourcery.com>
17584
17585 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17586
e581f2b4
PA
175872010-08-26 Pedro Alves <pedro@codesourcery.com>
17588
17589 * gdbreplay.c (remote_error): New.
17590 (gdbchar): New.
17591 (expect): Use gdbchar. Check for error reading from GDB.
17592 Clarify sync error output.
17593 (play): Check for errors writing to GDB.
17594 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17595 * remote-utils.c (getpkt): Check for errors writing to the remote
17596 descriptor.
17597
3c11dd79
PA
175982010-08-25 Pedro Alves <pedro@codesourcery.com>
17599
17600 * linux-low.c (linux_wait_1): Move non-debugging code out of
17601 `debug_threads' control.
17602
d20a8ad9
PA
176032010-08-25 Pedro Alves <pedro@codesourcery.com>
17604
17605 * linux-low.c (linux_wait_1): Don't set last_status here.
17606 * server.c (push_event, queue_stop_reply_callback): Assert we're
17607 not pushing a TARGET_WAITKIND_IGNORE event.
17608 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17609 (myresume, handle_target_event): Set the thread's last_resume_kind
17610 and last_status from the target returned status.
17611
964e4306
PA
176122010-08-25 Pedro Alves <pedro@codesourcery.com>
17613
17614 PR threads/10729
17615
17616 * linux-x86-low.c (update_debug_registers_callback): New.
17617 (i386_dr_low_set_addr): Use it.
17618 (i386_dr_low_get_addr): New.
17619 (i386_dr_low_set_control): Use update_debug_registers_callback.
17620 (i386_dr_low_get_control): New.
17621 (i386_dr_low_get_status): Adjust.
17622 * linux-low.c (linux_stop_lwp): New.
17623 * linux-low.h (linux_stop_lwp): Declare.
17624
17625 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17626 argument instead of a i386_debug_reg_state.
17627 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17628 a i386_debug_reg_state.
17629 (i386_insert_aligned_watchpoint): Adjust.
17630 (i386_remove_aligned_watchpoint): Adjust.
17631 (i386_low_stopped_data_address): Read the debug registers from the
17632 inferior instead of from the mirrors.
17633 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17634 (i386_dr_low_get_addr): Declare.
17635 (i386_dr_low_get_control): Declare.
17636 (i386_dr_low_get_status): Change prototype.
17637
17638 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17639 (i386_dr_low_get_addr): New.
17640 (i386_dr_low_get_control): New.
17641 (i386_dr_low_get_status): Adjust prototype. Return
17642 dr_status_mirror.
17643 (i386_initial_stuff): Clear dr_status_mirror and
17644 dr_control_mirror.
17645 (i386_get_thread_context): Adjust.
17646 (i386_set_thread_context): Adjust.
17647 (i386_thread_added): Adjust.
17648
5f21a75b
PA
176492010-08-24 Pedro Alves <pedro@codesourcery.com>
17650
17651 * linux-low.h (linux_thread_area): Delete declaration.
17652
3e4c1235
TS
176532010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17654
17655 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17656 after its termination.
17657
1971b033
PA
176582010-08-09 Pedro Alves <pedro@codesourcery.com>
17659
17660 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17661 (gdb_wants_all_stopped): Delete.
17662 (linux_wait_1): Don't call them.
17663 * server.c (handle_v_cont): Tag all threads as want-stopped.
17664 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17665 stopped as "client-wants-stopped".
17666
310444ac
PA
176672010-07-31 Pedro Alves <pedro@codesourcery.com>
17668
17669 * Makefile.in (signals_h): New.
17670 (server_h): Depend on it.
17671 (server.o): Don't depend on $(signals_def).
17672 (signals.o): Depend on $(signals_def).
17673
a19cae16
JK
176742010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17675
17676 * Makefile.in (signals_def): New.
17677 (server_h): Append include/gdb/signals.h and signals_def.
17678 (server.o): Append signals_def.
17679
30d50328
JK
176802010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17681
17682 * server.c (handle_target_event): Use target_signal_to_host for
17683 resume_info.sig initialization.
17684 * target.h (struct thread_resume) <sig>: New comment.
17685
5c3216e2
OS
176862010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17687
c6f46ca0
OS
17688 * server.c (handle_query): strcpy() the returned string from paddress()
17689 instead of sprintf().
5c3216e2
OS
17690 * utils.c (paddress): Return phex_nz().
17691
6bd31874
JB
176922010-07-07 Joel Brobecker <brobecker@adacore.com>
17693
17694 * server.c (handle_v_cont): Call mourn_inferior if process
17695 just exited.
17696 (myresume): Likewise.
17697
0fb4aa4b
PA
176982010-07-01 Pedro Alves <pedro@codesourcery.com>
17699
17700 Static tracepoints, and integration with UST.
17701
17702 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17703 * mem-break.c (uninsert_all_breakpoints)
17704 (reinsert_all_breakpoints): New.
17705 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17706 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17707 (gdb_agent_ust_loaded, helper_thread_id)
17708 (gdb_agent_helper_thread_id): New macros.
17709 (struct ipa_sym_addresses): Add addr_ust_loaded,
17710 addr_helper_thread_id, addr_cmd_buf.
17711 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17712 (in_process_agent_loaded_ust): New.
17713 (write_e_ust_not_loaded): New.
17714 (maybe_write_ipa_ust_not_loaded): New.
17715 (struct collect_static_trace_data_action): New.
17716 (enum tracepoint_type) <static_tracepoint>: New.
17717 (struct tracepoint) <handle>: Mention static tracepoints.
17718 (struct static_tracepoint_ctx): New.
17719 (CMD_BUF_SIZE): New.
17720 (add_tracepoint_action): Handle static tracepoint actions.
17721 (unprobe_marker_at): New.
17722 (clear_installed_tracepoints): Handle static tracepoints.
17723 (cmd_qtdp): Handle static tracepoints.
17724 (probe_marker_at): New.
17725 (cmd_qtstart): Handle static tracepoints.
17726 (response_tracepoint): Handle static tracepoints.
17727 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17728 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17729 (get_context_regcache): Handle static tracepoints.
17730 (do_action_at_tracepoint): Handle static tracepoint actions.
17731 (traceframe_find_block_type): Handle static trace data blocks.
17732 (traceframe_read_sdata): New.
17733 (download_tracepoints): Download static tracepoint actions.
17734 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17735 (GDB_PROBE_NAME): New.
17736 (ust_ops): New.
17737 (GET_UST_SYM): New.
17738 (USTF): New.
17739 (dlsym_ust): New.
17740 (ust_marker_to_static_tracepoint): New.
17741 (gdb_probe): New.
17742 (collect_ust_data_at_tracepoint): New.
17743 (gdb_ust_probe): New.
17744 (UNIX_PATH_MAX, SOCK_DIR): New.
17745 (gdb_ust_connect_sync_socket): New.
17746 (resume_thread, stop_thread): New.
17747 (run_inferior_command): New.
17748 (init_named_socket): New.
17749 (gdb_ust_socket_init): New.
17750 (cstr_to_hexstr): New.
17751 (next_st): New.
17752 (first_marker, next_marker): New.
17753 (response_ust_marker): New.
17754 (cmd_qtfstm, cmd_qtsstm): New.
17755 (unprobe_marker_at, probe_marker_at): New.
17756 (cmd_qtstmat, gdb_ust_thread): New.
17757 (gdb_ust_init): New.
17758 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17759 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17760 (ST_REGENTRY): New.
17761 (x86_64_st_collect_regmap): New.
17762 (X86_64_NUM_ST_COLLECT_GREGS): New.
17763 (AMD64_RIP_REGNUM): New.
17764 (supply_static_tracepoint_registers): New.
17765 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17766 (ST_REGENTRY): New.
17767 (i386_st_collect_regmap): New.
17768 (i386_NUM_ST_COLLECT_GREGS): New.
17769 (supply_static_tracepoint_registers): New.
17770 * server.c (handle_query): Handle qXfer:statictrace:read.
17771 <qSupported>: Report support for StaticTracepoints, and
17772 qXfer:statictrace:read features.
17773 * server.h (traceframe_read_sdata)
17774 (supply_static_tracepoint_registers): Declare.
17775 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17776 (unpack_varlen_hex): Include in IPA build.
17777 * Makefile.in (ustlibs, ustinc): New.
17778 (IPA_OBJS): Add remote-utils-ipa.o.
17779 ($(IPA_LIB)): Link -ldl and -lpthread.
17780 (UST_CFLAGS): New.
17781 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17782 * config.in, configure: Regenerate.
17783
9e4344e5
PA
177842010-06-20 Ian Lance Taylor <iant@google.com>
17785 Pedro Alves <pedro@codesourcery.com>
17786
17787 * linux-x86-low.c (always_true): Delete.
17788 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17789 trying to fool the compiler with always_true.
17790
c6beb2cb
PA
177912010-06-20 Pedro Alves <pedro@codesourcery.com>
17792
17793 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17794 conditions in gdbserver.
17795
d2ed6730
UW
177962010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17797
17798 * spu-low.c (spu_read_memory): Wrap around local store limit.
17799 (spu_write_memory): Likewise.
17800
4e29fb54
PA
178012010-06-15 Pedro Alves <pedro@codesourcery.com>
17802
17803 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17804 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17805 LONGEST uses.
17806 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17807 uses.
17808 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17809 uses with LONGEST uses.
17810
6a271cae
PA
178112010-06-14 Stan Shebs <stan@codesourcery.com>
17812 Pedro Alves <pedro@codesourcery.com>
17813
17814 Bytecode compiler.
17815
17816 * linux-x86-low.c: Include limits.h.
17817 (add_insns): New.
17818 (always_true): New.
17819 (EMIT_ASM): New.
17820 (EMIT_ASM32): New.
17821 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17822 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17823 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17824 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17825 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17826 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17827 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17828 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17829 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17830 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17831 (amd64_emit_void_call_2): New.
17832 (amd64_emit_ops): New.
17833 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17834 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17835 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17836 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17837 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17838 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17839 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17840 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17841 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17842 (i386_emit_stack_adjust, i386_emit_int_call_1)
17843 (i386_emit_void_call_2): New.
17844 (i386_emit_ops): New.
17845 (x86_emit_ops): New.
17846 (the_low_target): Install x86_emit_ops.
17847 * server.h (struct emit_ops): New.
17848 (get_raw_reg_func_addr): Declare.
17849 (current_insn_ptr, emit_error): Declare.
17850 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17851 (set_trace_state_variable_value): New defines.
17852 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17853 addr_get_trace_state_variable_value and
17854 addr_set_trace_state_variable_value.
17855 (symbol_list): New fields for get_raw_reg,
17856 get_trace_state_variable_value and set_trace_state_variable_value.
17857 (condfn): New typedef.
17858 (struct tracepoint): New field `compiled_cond'.
17859 (do_action_at_tracepoint): Clear compiled_cond.
17860 (get_trace_state_variable_value, set_trace_state_variable_value):
17861 Export in the IPA.
17862 (condition_true_at_tracepoint): If there's a compiled condition,
17863 run that.
17864 (current_insn_ptr, emit_error): New globals.
17865 (struct bytecode_address): New.
17866 (get_raw_reg_func_addr): New.
17867 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17868 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17869 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17870 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17871 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17872 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17873 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17874 (compile_tracepoint_condition, compile_bytecodes): New.
17875 * target.h (emit_ops): Forward declare.
17876 (struct target_ops): New field emit_ops.
17877 (target_emit_ops): New.
17878 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17879 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17880 * linux-low.c (linux_emit_ops): New.
17881 (linux_target_ops): Install it.
17882 * linux-low.h (struct linux_target_ops): New field emit_ops.
17883
92b72907
UW
178842010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17885
17886 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17887 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17888
fa593d66
PA
178892010-06-01 Pedro Alves <pedro@codesourcery.com>
17890 Stan Shebs <stan@codesourcery.com>
17891
17892 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17893 (all): Depend on $(extra_libraries).
17894 (install-only): Install the IPA.
17895 (IPA_OBJS, IPA_LIB): New.
17896 (clean): Remove the IPA lib.
17897 (IPAGENT_CFLAGS): New.
17898 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17899 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17900 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17901 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17902 * configure.ac: Check for atomic builtins support in the compiler.
17903 (IPA_DEPFILES, extra_libraries): Define.
17904 * configure.srv (ipa_obj): Add description.
17905 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17906 (i[34567]86-*-linux*): Set ipa_obj.
17907 (x86_64-*-linux*): Set ipa_obj.
17908 * linux-low.c (stabilizing_threads): New.
17909 (supports_fast_tracepoints): New.
17910 (linux_detach): Stabilize threads before detaching.
17911 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17912 the lwp is either not stabilizing, or is moving out of a jump pad.
17913 (linux_fast_tracepoint_collecting): New.
17914 (maybe_move_out_of_jump_pad): New.
17915 (enqueue_one_deferred_signal): New.
17916 (dequeue_one_deferred_signal): New.
17917 (linux_wait_for_event_1): If moving out of a jump pad, defer
17918 pending signals to later.
17919 (linux_stabilize_threads): New.
17920 (linux_wait_1): Check if threads need moving out of jump pads, and
17921 do it if so.
17922 (stuck_in_jump_pad_callback): New.
17923 (move_out_of_jump_pad_callback): New.
17924 (lwp_running): New.
17925 (linux_resume_one_lwp): Handle moving out of jump pads.
17926 (linux_set_resume_request): Dequeue deferred signals.
17927 (need_step_over_p): Also step over fast tracepoint jumps.
17928 (start_step_over): Also uninsert fast tracepoint jumps.
17929 (finish_step_over): Also reinsert fast tracepoint jumps.
17930 (linux_install_fast_tracepoint_jump): New.
17931 (linux_target_ops): Install linux_stabilize_threads and
17932 linux_install_fast_tracepoint_jump_pad.
17933 * linux-low.h (linux_target_ops) <get_thread_area,
17934 install_fast_tracepoint_jump_pad>: New fields.
17935 (struct lwp_info) <collecting_fast_tracepoint,
17936 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17937 (linux_get_thread_area): Declare.
17938 * linux-x86-low.c (jump_insn): New.
17939 (x86_get_thread_area): New.
17940 (append_insns): New.
17941 (push_opcode): New.
17942 (amd64_install_fast_tracepoint_jump_pad): New.
17943 (i386_install_fast_tracepoint_jump_pad): New.
17944 (x86_install_fast_tracepoint_jump_pad): New.
17945 (the_low_target): Install x86_get_thread_area and
17946 x86_install_fast_tracepoint_jump_pad.
17947 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17948 (struct fast_tracepoint_jump): New.
17949 (fast_tracepoint_jump_insn): New.
17950 (fast_tracepoint_jump_shadow): New.
17951 (find_fast_tracepoint_jump_at): New.
17952 (fast_tracepoint_jump_here): New.
17953 (delete_fast_tracepoint_jump): New.
17954 (set_fast_tracepoint_jump): New.
17955 (uninsert_fast_tracepoint_jumps_at): New.
17956 (reinsert_fast_tracepoint_jumps_at): New.
17957 (set_breakpoint_at): Use write_inferior_memory.
17958 (uninsert_raw_breakpoint): Use write_inferior_memory.
17959 (check_mem_read): Mask out fast tracepoint jumps.
17960 (check_mem_write): Mask out fast tracepoint jumps.
17961 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17962 (set_fast_tracepoint_jump): Declare.
17963 (delete_fast_tracepoint_jump)
17964 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17965 (reinsert_fast_tracepoint_jumps_at): Declare.
17966 * regcache.c: Don't compile many functions when building the
17967 in-process agent library.
17968 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17969 the register buffer in the heap.
17970 (free_register_cache): If the register buffer isn't owned by the
17971 regcache, don't free it.
17972 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17973 pre-existing register caches.
17974 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17975 type.
17976 (convert_ascii_to_int): : Constify `from' parameter type.
17977 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17978 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17979 the needed buffer in-place.
17980 (relocate_instruction): New.
17981 * server.c (handle_query) <qSymbols>: If the target supports
17982 tracepoints, give it a chance of looking up symbols. Report
17983 support for fast tracepoints.
17984 (handle_status): Stabilize threads.
17985 (process_serial_event): Adjust.
17986 * server.h (struct fast_tracepoint_jump): Forward declare.
17987 (struct process_info) <fast_tracepoint_jumps>: New field.
17988 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17989 (decode_X_packet, decode_M_packet): Adjust.
17990 (relocate_instruction): Declare.
17991 (in_process_agent_loaded): Declare.
17992 (tracepoint_look_up_symbols): Declare.
17993 (struct fast_tpoint_collect_status): Declare.
17994 (fast_tracepoint_collecting): Declare.
17995 (force_unlock_trace_buffer): Declare.
17996 (handle_tracepoint_bkpts): Declare.
17997 (initialize_low_tracepoint)
17998 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17999 * target.h (struct target_ops) <stabilize_threads,
18000 install_fast_tracepoint_jump_pad>: New fields.
18001 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
18002 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
18003 [HAVE_STDINT_H]: Include stdint.h.
18004 (trace_debug_1): Rename to ...
18005 (trace_vdebug): ... this.
18006 (trace_debug): Rename to ...
18007 (trace_debug_1): ... this. Add `level' parameter.
18008 (trace_debug): New.
18009 (ATTR_USED, ATTR_NOINLINE): New.
18010 (IP_AGENT_EXPORT): New.
18011 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
18012 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
18013 (about_to_request_buffer_space, trace_buffer_is_full)
18014 (stopping_tracepoint, expr_eval_result, error_tracepoint)
18015 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
18016 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
18017 (traceframe_write_count, traceframes_created)
18018 (trace_state_variables)
18019 New renaming defines.
18020 (struct ipa_sym_addresses): New.
18021 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
18022 (symbol_list): New.
18023 (ipa_sym_addrs): New.
18024 (all_tracepoint_symbols_looked_up): New.
18025 (in_process_agent_loaded): New.
18026 (write_e_ipa_not_loaded): New.
18027 (maybe_write_ipa_not_loaded): New.
18028 (tracepoint_look_up_symbols): New.
18029 (debug_threads) [IN_PROCESS_AGENT]: New.
18030 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
18031 (UNKNOWN_SIDE_EFFECTS): New.
18032 (stop_tracing): New.
18033 (flush_trace_buffer): New.
18034 (stop_tracing_bkpt): New.
18035 (flush_trace_buffer_bkpt): New.
18036 (read_inferior_integer): New.
18037 (read_inferior_uinteger): New.
18038 (read_inferior_data_pointer): New.
18039 (write_inferior_data_pointer): New.
18040 (write_inferior_integer): New.
18041 (write_inferior_uinteger): New.
18042 (struct collect_static_trace_data_action): Delete.
18043 (enum tracepoint_type): New.
18044 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
18045 <actions_str, step_actions, step_actions_str>: Only include in
18046 GDBserver.
fa593d66
PA
18047 <orig_size, obj_addr_on_target, adjusted_insn_addr>
18048 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
18049 (tracepoints): Use IP_AGENT_EXPORT.
18050 (last_tracepoint): Don't include in the IPA.
18051 (stopping_tracepoint): Use IP_AGENT_EXPORT.
18052 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
18053 (alloced_trace_state_variables): New.
18054 (trace_state_variables): Use IP_AGENT_EXPORT.
18055 (traceframe_t): Delete unused variable.
18056 (circular_trace_buffer): Don't include in the IPA.
18057 (trace_buffer_start): Delete.
18058 (struct trace_buffer_control): New.
18059 (trace_buffer_free): Delete.
18060 (struct ipa_trace_buffer_control): New.
18061 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18062 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18063 New.
18064 (trace_buffer_ctrl): New.
18065 (TRACE_BUFFER_CTRL_CURR): New.
18066 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18067 Reimplement as macros.
18068 (trace_buffer_wrap): Delete.
18069 (traceframe_write_count, traceframe_read_count)
18070 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18071 (struct tracepoint_hit_ctx) <type>: New field.
18072 (struct fast_tracepoint_ctx): New.
18073 (memory_barrier): New.
18074 (cmpxchg): New.
18075 (record_tracepoint_error): Update atomically in the IPA.
18076 (clear_inferior_trace_buffer): New.
18077 (about_to_request_buffer_space): New.
18078 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18079 updating the same buffer.
18080 (add_tracepoint): Default the tracepoint's type to trap
18081 tracepoint, and orig_size to -1.
18082 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18083 internal variables.
18084 (create_trace_state_variable): New parameter `gdb'. Handle it.
18085 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18086 (cmd_qtdp): Handle fast tracepoints.
18087 (cmd_qtdv): Adjust.
18088 (max_jump_pad_size): New.
18089 (gdb_jump_pad_head): New.
18090 (get_jump_space_head): New.
18091 (claim_jump_space): New.
18092 (sort_tracepoints): New.
18093 (MAX_JUMP_SIZE): New.
18094 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18095 IPA.
18096 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18097 support. Upload fast traceframes, and delete internal IPA
18098 breakpoints.
18099 (stop_tracing_handler): New.
18100 (flush_trace_buffer_handler): New.
18101 (cmd_qtstop): Upload fast tracepoints.
18102 (response_tracepoint): Handle fast tracepoints.
18103 (tracepoint_finished_step): Upload fast traceframes. Set the
18104 tracepoint hit context's tracepoint type.
18105 (handle_tracepoint_bkpts): New.
18106 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18107 type. Add comment about fast tracepoints.
18108 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18109 non-existing action_str field.
18110 (get_context_regcache): Handle fast tracepoints.
18111 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18112 to the regcache.
18113 (fast_tracepoint_from_jump_pad_address): New.
18114 (fast_tracepoint_from_ipa_tpoint_address): New.
18115 (collecting_t): New.
18116 (force_unlock_trace_buffer): New.
18117 (fast_tracepoint_collecting): New.
18118 (collecting): New.
18119 (gdb_collect): New.
18120 (write_inferior_data_ptr): New.
18121 (target_tp_heap): New.
18122 (target_malloc): New.
18123 (download_agent_expr): New.
18124 (UALIGN): New.
18125 (download_tracepoints): New.
18126 (download_trace_state_variables): New.
18127 (upload_fast_traceframes): New.
18128 (IPA_FIRST_TRACEFRAME): New.
18129 (IPA_NEXT_TRACEFRAME_1): New.
18130 (IPA_NEXT_TRACEFRAME): New.
18131 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18132 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18133 (gdb_jump_pad_buffer_end): New.
18134 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18135 (initialize_tracepoint): Adjust.
18136 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18137 buffer. Initialize the low module.
18138 * utils.c (PREFIX, TOOLNAME): New.
18139 (malloc_failure): Use PREFIX.
18140 (error): In the IPA, an error causes an exit.
18141 (fatal, warning): Use PREFIX.
18142 (internal_error): Use TOOLNAME.
18143 (NUMCELLS): Increase to 10.
18144 * configure, config.in: Regenerate.
18145
d149dd1d
PA
181462010-06-01 Pedro Alves <pedro@codesourcery.com>
18147
18148 * server.c (handle_query) <qSupported>: Do two passes over the
18149 qSupported string to avoid nesting strtok.
18150
f6528abd
JK
181512010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18152
18153 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18154 (CDEPS): New.
18155 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18156 -Wl,--dynamic-list.
18157 * configure: Regenerate.
18158 * proc-service.list: New.
18159
ca2a87a0
JK
181602010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18161
18162 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18163 New comment.
18164
363a6e9f
OS
181652010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18166
18167 * gdbreplay.c (remote_open): Check error return from socket() call by
18168 its equality to -1 not by it being negative.
18169 * remote-utils.c (remote_open): Likewise.
18170
d23b6cb1
PA
181712010-05-23 Pedro Alves <pedro@codesourcery.com>
18172
18173 * config.h: Regenerate.
18174
28d3cf85
MK
181752010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18176
18177 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18178 doesn't provide PTRACE_GET_THREAD_AREA.
18179
fea36a59
MK
181802010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18181
18182 * linux-m68k-low.c: Include <asm/ptrace.h>
18183 (ps_get_thread_area): Implement.
18184
24b066ba
DE
181852010-05-03 Doug Evans <dje@google.com>
18186
18187 * event-loop.c (struct callback_event): New struct.
18188 (callback_list): New global.
18189 (append_callback_event, delete_callback_event): New functions.
18190 (process_callback): New function.
18191 (start_event_loop): Call it.
18192 * remote-utils.c (NOT_SCHEDULED): Define.
18193 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18194 moved out of readchar.
18195 (readchar): Rewrite. Call reschedule before returning.
18196 (reset_readchar): New function.
18197 (remote_close): Call it.
18198 (process_remaining, reschedule): New functions.
18199 * server.h (callback_handler_func): New typedef.
18200 (append_callback_event, delete_callback_event): Declare.
18201
9836d6ea
PA
182022010-05-03 Pedro Alves <pedro@codesourcery.com>
18203
18204 * proc-service.c (ps_pglobal_lookup): Use
18205 thread_db_look_up_one_symbol.
18206 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18207 parameter. Use it instead of all_symbols_looked_up.
18208 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18209 field.
18210 (all_symbols_looked_up): Don't declare.
18211 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18212 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18213 field.
18214 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18215 Set all_symbols_looked_up here.
18216 (thread_db_look_up_one_symbol): New.
18217 (thread_db_get_tls_address): Adjust.
18218 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18219 thread_db object on the heap, and tentatively set it in the
18220 process structure.
18221 (thread_db_init): Don't set all_symbols_looked_up here.
18222 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18223
7984d532
PA
182242010-05-03 Pedro Alves <pedro@codesourcery.com>
18225
18226 * linux-low.c (linux_kill, linux_detach): Adjust.
18227 (status_pending_p_callback): Remove redundant statement. Check
18228 for !TARGET_WAITIKIND_IGNORE, instead of
18229 TARGET_WAITKIND_STOPPED.
18230 (handle_tracepoints): Make sure LWP is locked. Adjust.
18231 (linux_wait_for_event_1): Adjust.
18232 (linux_cancel_breakpoints): New.
18233 (unsuspend_one_lwp): New.
18234 (unsuspend_all_lwps): New.
18235 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18236 (send_sigstop_callback): Change return type to int, add new
18237 `except' parameter and handle it.
18238 (suspend_and_send_sigstop_callback): New.
18239 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18240 pass them down. If SUSPEND, also increment the lwp's suspend
18241 count.
18242 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18243 (need_step_over_p): Don't consider suspended LWPs.
18244 (start_step_over): Adjust.
18245 (proceed_one_lwp): Change return type to int, add new `except'
18246 parameter and handle it.
18247 (unsuspend_and_proceed_one_lwp): New.
18248 (proceed_all_lwps): Use find_inferior instead of
18249 for_each_inferior.
18250 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18251 also decrement the suspend count of LWPs. Pass `except' down,
18252 instead of hacking its suspend count.
18253 (linux_pause_all): Add `freeze' parameter. Adjust.
18254 (linux_unpause_all): New.
18255 (linux_target_ops): Install linux_unpause_all.
18256 * server.c (handle_status): Adjust.
18257 * target.h (struct target_ops): New fields `unpause_all' and
18258 `cancel_breakpoints'. Add new parameter to `pause_all'.
18259 (pause_all): Add new `freeze' parameter.
18260 (unpause_all): New.
18261 (cancel_breakpoints): New.
18262 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18263 cancel breakpoints.
18264 (cmd_qtstart): Pause threads.
18265 (stop_tracing): Pause threads, and cancel breakpoints.
18266 * win32-low.c (win32_target_ops): Adjust.
18267
e471f25b
PA
182682010-05-03 Pedro Alves <pedro@codesourcery.com>
18269
18270 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18271 the inferior right away from here...
18272 (linux_wait_1): ... to here, and adjust to check the thread's
18273 last_resume_kind instead of the lwp's step or stop_expected flags.
18274
1915ef4f
PA
182752010-05-02 Pedro Alves <pedro@codesourcery.com>
18276
18277 * README: Use consistent `GDB' and `GDBserver' spellings.
18278
f9e39928
PA
182792010-05-02 Pedro Alves <pedro@codesourcery.com>
18280
18281 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18282 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18283 (linux_detach_one_lwp): Assume the lwp is stopped.
18284 (any_thread_of): Delete.
18285 (linux_detach): Stop all lwps here. Don't blindly delete all
18286 breakpoints.
18287 (delete_lwp_callback): New.
18288 (linux_mourn): Delete all lwps of the process that is gone.
18289 (linux_wait_1): Don't delete the last lwp of the process here.
18290 * mem-break.h (mark_breakpoints_out): Declare.
18291 * mem-break.c (mark_breakpoints_out): New.
18292 (free_all_breakpoints): Use it.
18293 * server.c (handle_target_event): If the process is gone, mark
18294 breakpoints out.
18295 * thread-db.c (struct thread_db) <create_bp>: New field.
18296 (thread_db_enable_reporting): Fix prototype. Store a thread event
18297 breakpoint reference in the thread_db struct.
18298 (thread_db_load_search): Clear the thread_db object.
18299 (try_thread_db_load_1): Ditto.
18300 (switch_to_process): New.
18301 (disable_thread_event_reporting): Use it.
18302 (remove_thread_event_breakpoints): New.
18303 (thread_db_detach, thread_db_mourn): Use it.
18304
1e7fc18c
PA
183052010-05-01 Pedro Alves <pedro@codesourcery.com>
18306
18307 * linux-low.c (linux_enable_event_reporting): New.
18308 (linux_wait_for_event_1, handle_extended_wait): Use it.
18309
02fc4de7
PA
183102010-04-30 Pedro Alves <pedro@codesourcery.com>
18311
18312 * linux-low.c (linux_kill_one_lwp, linux_kill)
18313 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18314 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18315 SIGSTOP even if the LWP is stopped.
18316 (send_sigstop_callback): New.
18317 (stop_all_lwps): Use send_sigstop_callback instead.
18318 (linux_resume_one_thread): Adjust.
18319 (proceed_one_lwp): Still proceed an LWP that the client has
18320 requested to stop, if we haven't reported it as stopped yet. Make
18321 sure that LWPs the client want stopped, have a pending SIGSTOP.
18322
bc3b5632
DE
183232010-04-26 Doug Evans <dje@google.com>
18324
ae1ada35
DE
18325 * server.c (handle_general_set): Make static.
18326
bc3b5632
DE
18327 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18328 Print received char after testing for error/eof instead of before.
18329 (input_interrupt): Tweak comment.
18330
65730243
DE
183312010-04-23 Doug Evans <dje@google.com>
18332
18333 * server.c (start_inferior): Print inferior argv if --debug.
18334
a8ae7dc0
AR
183352010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18336
18337 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18338 * nto-x86-low.c: Include server.h
18339
1c07cc19
PM
183402010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18341
18342 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18343 be consistent with other sources of this directory.
18344 (init_registers_amd64): Correct name of source file of this function
18345 in the comment.
18346
e0a61e09
PM
183472010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18348
18349 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18350 64-bit executables.
18351
54709339
PM
183522010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18353
18354 * win32-i386-low.c: Add 64-bit support.
18355 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18356 (init_registers_amd64): Declare.
18357 (mappings): Add 64-bit version of array.
18358 (init_windows_x86): New function.
18359 (the_low_target): Change init_arch field to init_windows_x86.
18360
e8f0053d
PM
183612010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18362
18363 * win32-low.c: Adapt to support also 64-bit architecture.
18364 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18365 (get_image_name): Use SIZE_T type for local variable `done'.
18366 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18367 (toolhelp_get_dll_name): Idem.
18368 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18369 Use uintptr_t typecast to avoid warning.
18370 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18371 (handle_exception): Use phex_nz to avoid warning.
18372 (win32_wait): Remove unused local variable `process'.
18373
c481e77e
PM
183742010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18375
18376 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18377 `amd64-avx.o'.
18378
12ea4b69
PM
183792010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18380
18381 * configure.ac: Use `ws2_32' library for srv_mingw.
18382 * configure: Regenerate.
18383 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18384 * remote-utils.c: Likewise.
18385
f6d1620c
L
183862010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18387
18388 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18389 if __x86_64__ is defined.
18390
8e642873
PM
183912010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18392
18393 * configure: Regenerate.
18394
711e434b
PM
183952010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18396
18397 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18398 * target.h (target_ops): New get_tib_address field.
18399 * win32-low.h (win32_thread_info): Add thread_local_base field.
18400 * win32-low.c (child_add_thread): Add tlb argument.
18401 Set thread_local_base field to TLB.
18402 (get_child_debug_event): Adapt to child_add_thread change.
18403 (win32_get_tib_address): New function.
18404 (win32_target_ops): Set get_tib_address field to
18405 win32_get_tib_address.
18406 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18407
505106cd
PA
184082010-04-12 Pedro Alves <pedro@codesourcery.com>
18409
505106cd
PA
18410 * linux-low.c (linux_mourn): Also remove the process.
18411 * server.c (handle_target_event): Don't remove the process here.
18412 * nto-low.c (nto_mourn): New.
18413 (nto_target_ops): Install it.
18414 * spu-low.c (spu_mourn): New.
18415 (spu_target_ops): Install it.
18416 * win32-low.c (win32_mourn): New.
18417 (win32_target_ops): Install it.
18418
e8470a06
PA
184192010-04-12 Pedro Alves <pedro@codesourcery.com>
18420
18421 * server.h (buffer_xml_printf): Remove redundant `;'.
18422
45ba0d02
PA
184232010-04-12 Pedro Alves <pedro@codesourcery.com>
18424
18425 * regcache.c (set_register_cache): Invalidate regcaches before
18426 changing the register cache layout.
18427 (regcache_invalidate_one): Allow a NULL regcache.
18428 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18429 regcaches before changing the register cache layout or the target
18430 regsets.
18431
59e04013
L
184322010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18433
18434 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18435 variable warning on Linux/x86-64.
18436
8336d594
PA
184372010-04-11 Pedro Alves <pedro@codesourcery.com>
18438
18439 GDBserver disconnected tracing support.
18440
18441 * linux-low.c (linux_remove_process): Delete.
18442 (add_lwp): Don't set last_resume_kind here.
18443 (linux_kill): Use `mourn'.
18444 (linux_detach): Use `thread_db_detach', and `mourn'.
18445 (linux_mourn): New.
18446 (linux_attach_lwp_1): Adjust comment.
18447 (linux_attach): last_resume_kind moved the thread_info; adjust.
18448 (status_pending_p_callback): Adjust.
18449 (linux_wait_for_event_1): Adjust.
18450 (count_events_callback, select_singlestep_lwp_callback)
18451 (select_event_lwp_callback, cancel_breakpoints_callback)
18452 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18453 (proceed_one_lwp): Adjust.
18454 (linux_async): Add debug output.
18455 (linux_thread_stopped): New.
18456 (linux_pause_all): New.
18457 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18458 linux_pause_all.
18459 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18460 (thread_db_free): Delete declaration.
18461 (thread_db_detach, thread_db_mourn): Declare.
18462 * thread-db.c (thread_db_init): Use thread_db_mourn.
18463 (thread_db_free): Delete, split in two.
18464 (disable_thread_event_reporting): New.
18465 (thread_db_detach): New.
18466 (thread_db_mourn): New.
18467
18468 * server.h (struct thread_info) <last_resume_kind>: New field.
18469 <attached>: Add comment.
18470 <gdb_detached>: New field.
18471 (handler_func): Change return type to int.
18472 (handle_serial_event, handle_target_event): Ditto.
18473 (gdb_connected): Declare.
18474 (tracing): Delete.
18475 (disconnected_tracing): Declare.
18476 (stop_tracing): Declare.
18477
18478 * server.c (handle_query) <qSupported>: Report support for
18479 disconnected tracing.
18480 (queue_stop_reply_callback): Account for running threads.
18481 (gdb_wants_thread_stopped): New.
18482 (gdb_wants_all_threads_stopped): New.
18483 (gdb_reattached_process): New.
18484 (handle_status): Clear the `gdb_detached' flag of all processes.
18485 In all-stop, stop all threads.
18486 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18487 (process_serial_event): If the remote connection breaks, or if an
18488 exit was forced with "monitor exit", force an event loop exit.
18489 Handle disconnected tracing on detach.
18490 (handle_serial_event): Adjust.
18491 (handle_target_event): If GDB isn't connected, forward events back
18492 to the inferior, unless the last process exited, in which case,
18493 exit gdbserver. Adjust interface.
18494
18495 * remote-utils.c (remote_open): Don't block in accept. Instead
18496 register an event loop source on the listen socket file
18497 descriptor. Refactor bits into ...
18498 (listen_desc): ... this new global.
18499 (gdb_connected): ... this new function.
18500 (enable_async_notification): ... this new function.
18501 (handle_accept_event): ... this new function.
18502 (remote_close): Clear remote_desc.
18503
18504 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18505
18506 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18507 New fields.
18508 (mourn_inferior): Define.
18509 (target_process_qsupported): Avoid the dangling else problem.
18510 (thread_stopped): Define.
18511 (pause_all): Define.
18512 (target_waitstatus_to_string): Declare.
18513 * target.c (target_waitstatus_to_string): New.
18514
18515 * tracepoint.c (tracing): Make extern.
18516 (disconnected_tracing): New.
18517 (stop_tracing): Make extern. Handle tracing stops due to GDB
18518 disconnecting.
18519 (cmd_qtdisconnected): New.
18520 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18521 (handle_tracepoint_general_set): Handle QTDisconnected.
18522
18523 * event-loop.c (event_handler_func): Change return type to int.
18524 (process_event): Bail out if the event handler wants the event
18525 loop to stop.
18526 (handle_file_event): Ditto.
18527 (start_event_loop): Bail out if the event handler wants the event
18528 loop to stop.
18529
18530 * nto-low.c (nto_target_ops): Adjust.
18531 * spu-low.c (spu_wait): Don't remove the process here.
18532 (spu_target_ops): Adjust.
18533 * win32-low.c (win32_wait): Don't remove the process here.
18534 (win32_target_ops): Adjust.
18535
5d267c4c
PA
185362010-04-11 Pedro Alves <pedro@codesourcery.com>
18537
18538 * regcache.c (realloc_register_cache): Invalidate inferior's
18539 regcache before recreating it.
18540
623ccd72
PA
185412010-04-09 Pedro Alves <pedro@codesourcery.com>
18542
18543 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18544
219f2f23
PA
185452010-04-09 Stan Shebs <stan@codesourcery.com>
18546 Pedro Alves <pedro@codesourcery.com>
18547
18548 * server.h (LONGEST): New.
18549 (struct thread_info) <while_stepping>: New field.
18550 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18551 Declare.
18552 (initialize_tracepoint, handle_tracepoint_general_set)
18553 (handle_tracepoint_query, tracepoint_finished_step)
18554 (tracepoint_was_hit, release_while_stepping_state_list):
18555 (current_traceframe): Declare.
18556 * server.c (handle_general_set): Handle tracepoint packets.
18557 (read_memory): New.
18558 (write_memory): New.
18559 (handle_search_memory_1): Use read_memory.
18560 (handle_query): Report support for conditional tracepoints, trace
18561 state variables, and tracepoint sources. Handle tracepoint
18562 queries.
18563 (main): Initialize the tracepoints module.
18564 (process_serial_event): Handle traceframe reads/writes.
18565
18566 * linux-low.c (handle_tracepoints): New.
18567 (linux_wait_1): Call it.
18568 (linux_resume_one_lwp): Handle while-stepping.
18569 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18570 (linux_target_ops): Install them.
18571 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18572 New field.
18573 * linux-x86-low.c (x86_supports_tracepoints): New.
18574 (the_low_target). Install it.
18575
18576 * mem-break.h (delete_breakpoint): Declare.
18577 * mem-break.c (delete_breakpoint): Make external.
18578
18579 * target.h (struct target_ops): Add `supports_tracepoints',
18580 `read_pc', and `write_pc' fields.
18581 (target_supports_tracepoints): Define.
18582 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18583 (phex_nz): New.
18584
18585 * regcache.h (struct regcache) <registers_owned>: New field.
18586 (init_register_cache, regcache_cpy): Declare.
18587 (regcache_read_pc, regcache_write_pc): Declare.
18588 (register_cache_size): Declare.
18589 (supply_regblock): Declare.
18590 * regcache.c (init_register_cache): New.
18591 (new_register_cache): Use it.
18592 (regcache_cpy): New.
18593 (register_cache_size): New.
18594 (supply_regblock): New.
18595 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18596
219f2f23
PA
18597 * tracepoint.c: New.
18598
18599 * Makefile.in (OBS): Add tracepoint.o.
18600 (tracepoint.o): New rule.
18601
3a13a53b
L
186022010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18603
18604 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18605 (i386-mmx.o): New.
18606 (i386-mmx.c): Likewise.
18607 (i386-mmx-linux.o): Likewise.
18608 (i386-mmx-linux.c): Likewise.
18609
18610 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18611 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18612 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18613 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18614
18615 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18616 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18617 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18618
1570b33e
L
186192010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18620
18621 * Makefile.in (clean): Updated.
18622 (i386-avx.o): New.
18623 (i386-avx.c): Likewise.
18624 (i386-avx-linux.o): Likewise.
18625 (i386-avx-linux.c): Likewise.
18626 (amd64-avx.o): Likewise.
18627 (amd64-avx.c): Likewise.
18628 (amd64-avx-linux.o): Likewise.
18629 (amd64-avx-linux.c): Likewise.
18630
18631 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18632 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18633 (srv_amd64_regobj): Add amd64-avx.o.
18634 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18635 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18636 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18637 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18638 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18639 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18640 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18641
18642 * i387-fp.c: Include "i386-xstate.h".
18643 (i387_xsave): New.
18644 (i387_cache_to_xsave): Likewise.
18645 (i387_xsave_to_cache): Likewise.
18646 (x86_xcr0): Likewise.
18647
18648 * i387-fp.h (i387_cache_to_xsave): Likewise.
18649 (i387_xsave_to_cache): Likewise.
18650 (x86_xcr0): Likewise.
18651
18652 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18653 * linux-crisv32-low.c (target_regsets): Likewise.
18654 * linux-m68k-low.c (target_regsets): Likewise.
18655 * linux-mips-low.c (target_regsets): Likewise.
18656 * linux-ppc-low.c (target_regsets): Likewise.
18657 * linux-s390-low.c (target_regsets): Likewise.
18658 * linux-sh-low.c (target_regsets): Likewise.
18659 * linux-sparc-low.c (target_regsets): Likewise.
18660 * linux-xtensa-low.c (target_regsets): Likewise.
18661
18662 * linux-low.c: Include <sys/uio.h>.
18663 (regsets_fetch_inferior_registers): Support nt_type.
18664 (regsets_store_inferior_registers): Likewise.
18665 (linux_process_qsupported): New.
18666 (linux_target_ops): Add linux_process_qsupported.
18667
18668 * linux-low.h (regset_info): Add nt_type.
18669 (linux_target_ops): Add process_qsupported.
18670
18671 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18672 and <sys/uio.h>.
18673 (init_registers_i386_avx_linux): New.
18674 (init_registers_amd64_avx_linux): Likewise.
18675 (xmltarget_i386_linux_no_xml): Likewise.
18676 (xmltarget_amd64_linux_no_xml): Likewise.
18677 (PTRACE_GETREGSET): Likewise.
18678 (PTRACE_SETREGSET): Likewise.
18679 (x86_fill_xstateregset): Likewise.
18680 (x86_store_xstateregset): Likewise.
18681 (use_xml): Likewise.
18682 (x86_linux_update_xmltarget): Likewise.
18683 (x86_linux_process_qsupported): Likewise.
18684 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18685 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18686 init_registers_i386_linux here. Call
18687 x86_linux_update_xmltarget.
18688 (the_low_target): Add x86_linux_process_qsupported.
18689
18690 * server.c (handle_query): Call target_process_qsupported.
18691
18692 * target.h (target_ops): Add process_qsupported.
18693 (target_process_qsupported): New.
18694
fc7238bb
PA
186952010-04-03 Pedro Alves <pedro@codesourcery.com>
18696
18697 * inferiors.c (add_thread): Set last_status kind to
18698 TARGET_WAITKIND_IGNORE.
18699 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18700 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18701 (linux_wait_1): Move `thread' local definition to block that uses
18702 it. Don't NULL initialize `event_child'.
18703 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18704 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18705 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18706
bdabb078
PA
187072010-04-01 Pedro Alves <pedro@codesourcery.com>
18708
18709 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18710 an extended waitstatus, or by a watchpoint.
18711 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18712 thread was stepping or has been stopped by a watchpoint.
18713
d3bbe7a0
PA
187142010-04-01 Pedro Alves <pedro@codesourcery.com>
18715
18716 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18717 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18718 of another, then delete the previous, and validate all
18719 breakpoints.
18720 (validate_inserted_breakpoint): New.
18721 (delete_disabled_breakpoints): New.
18722 (validate_breakpoints): New.
18723 (check_mem_read): Validate breakpoints before trusting their
18724 shadow. Delete disabled breakpoints.
18725 (check_mem_write): Validate breakpoints before trusting they
18726 should be inserted. Delete disabled breakpoints.
18727 * mem-break.h (validate_breakpoints):
18728 * server.c (handle_query): Validate breakpoints when we see a
18729 qSymbol query.
18730
8b07ae33
PA
187312010-04-01 Pedro Alves <pedro@codesourcery.com>
18732
18733 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18734 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18735 if we could tell there's a GDB breakpoint at stop_pc.
18736 (need_step_over_p): Don't do a step over if we find a GDB
18737 breakpoint at the resume PC.
18738
18739 * mem-break.c (struct raw_breakpoint): New.
18740 (enum bkpt_type): New type `gdb_breakpoint'.
18741 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18742 fields. New field `raw'.
18743 (find_raw_breakpoint_at): New.
18744 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18745 breakpoint instead.
18746 (set_breakpoint_at): Adjust.
18747 (delete_raw_breakpoint): New.
18748 (release_breakpoint): New.
18749 (delete_breakpoint): Rename to...
18750 (delete_breakpoint_1): ... this. Add proc parameter. Use
18751 release_breakpoint. Return ENOENT.
18752 (delete_breakpoint): Reimplement.
18753 (find_breakpoint_at): Delete.
18754 (find_gdb_breakpoint_at): New.
18755 (delete_breakpoint_at): Delete.
18756 (set_gdb_breakpoint_at): New.
18757 (delete_gdb_breakpoint_at): New.
18758 (gdb_breakpoint_here): New.
18759 (set_reinsert_breakpoint): Use release_breakpoint.
18760 (uninsert_breakpoint): Rename to ...
18761 (uninsert_raw_breakpoint): ... this.
18762 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18763 (reinsert_raw_breakpoint): Change parameter type to
18764 raw_breakpoint.
18765 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18766 instead.
18767 (check_breakpoints): Adjust. Use release_breakpoint.
18768 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18769 (breakpoint_inserted_here): Ditto.
18770 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18771 Don't trust the breakpoint's shadow if it is not inserted.
18772 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18773 (delete_all_breakpoints): Adjust.
18774 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18775 use delete_breakpoint_1.
18776
18777 * mem-break.h (breakpoints_supported): Delete declaration.
18778 (set_gdb_breakpoint_at): Declare.
18779 (gdb_breakpoint_here): Declare.
18780 (delete_breakpoint_at): Delete.
18781 (delete_gdb_breakpoint_at): Declare.
18782
18783 * server.h (struct raw_breakpoint): Forward declare.
18784 (struct process_info): New field `raw_breakpoints'.
18785
18786 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18787 breakpoints.
18788
6bf5e0ba
PA
187892010-03-24 Pedro Alves <pedro@codesourcery.com>
18790
18791 * linux-low.c (status_pending_p_callback): Fix comment.
18792 (linux_wait_for_event_1): Move most of the internal breakpoint
18793 handling from here...
18794 (linux_wait_1): ... to here.
18795 (count_events_callback): New.
18796 (select_singlestep_lwp_callback): New.
18797 (select_event_lwp_callback): New.
18798 (cancel_breakpoints_callback): New.
18799 (select_event_lwp): New.
18800 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18801 priority to all LWPs that have had events that should be reported
18802 to the client. Cancel breakpoints when about to reporting the
18803 event to the client, not while stopping lwps. No longer cancel
18804 finished single-steps here.
18805 (cancel_finished_single_step): Delete.
18806 (cancel_finished_single_steps): Delete.
18807
414a389f
PA
188082010-03-24 Pedro Alves <pedro@codesourcery.com>
18809
18810 * mem-break.c (enum bkpt_type): New.
18811 (struct breakpoint): New field `type'.
18812 (set_breakpoint_at): Change return type to struct breakpoint
18813 pointer. Set type to `other_breakpoint' by default.
18814 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18815 in the breakpoint list.
18816 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18817 (reinsert_breakpoint): Rename to ...
18818 (reinsert_raw_breakpoint): ... this.
18819 (reinsert_breakpoints_at): Adjust.
18820 * mem-break.h (struct breakpoint): Declare.
18821 (set_breakpoint_at): Change return type to struct breakpoint
18822 pointer.
18823
2280c721
PA
188242010-03-24 Pedro Alves <pedro@codesourcery.com>
18825
18826 * server.c (handle_query): Assign, not compare.
18827
d50171e4
PA
188282010-03-24 Pedro Alves <pedro@codesourcery.com>
18829
18830 Teach linux gdbserver to step-over-breakpoints.
18831
18832 * linux-low.c (can_hardware_single_step): New.
18833 (supports_breakpoints): New.
18834 (handle_extended_wait): If stopping threads, read the stop pc of
18835 the new cloned LWP.
18836 (get_pc): New.
18837 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18838 low target doesn't support retrieving the PC.
18839 (add_lwp): Set last_resume_kind to resume_continue.
18840 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18841 (linux_attach): Don't clear stop_expected. Set the lwp's
18842 last_resume_kind to resume_stop.
18843 (linux_detach_one_lwp): Don't check for removed breakpoints.
18844 (check_removed_breakpoint): Delete.
18845 (status_pending_p): Rename to ...
18846 (status_pending_p_callback): ... this. Don't check for removed
18847 breakpoints. Don't consider threads that are stopped from GDB's
18848 perspective.
18849 (linux_wait_for_lwp): Always read the stop_pc here.
18850 (cancel_breakpoint): New.
18851 (step_over_bkpt): New global.
18852 (linux_wait_for_event_1): Implement stepping over breakpoints.
18853 (gdb_wants_lwp_stopped): New.
18854 (gdb_wants_all_stopped): New.
18855 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18856 single-step traps here. Store the thread's last reported target
18857 wait status.
18858 (send_sigstop): Don't clear stop_expected. Always set it,
18859 instead.
18860 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18861 (cancel_finished_single_step): New.
18862 (cancel_finished_single_steps): New.
18863 (wait_for_sigstop): Don't cancel finished single-step traps here.
18864 (linux_resume_one_lwp): Don't check for removed breakpoints.
18865 Don't set `step' on non-hardware step archs.
18866 (linux_set_resume_request): Ignore resume_stop requests if already
18867 stopping or stopped. Set the lwp's last_resume_kind.
18868 (resume_status_pending_p): Don't check for removed breakpoints.
18869 (need_step_over_p): New.
18870 (start_step_over): New.
18871 (finish_step_over): New.
18872 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18873 requests. Clear the thread's last reported target waitstatus.
18874 Don't use the `suspended' flag. Don't consider pending breakpoints.
18875 (linux_resume): Start a step-over if necessary.
18876 (proceed_one_lwp): New.
18877 (proceed_all_lwps): New.
18878 (unstop_all_lwps): New.
18879 * linux-low.h (struct lwp_info): Rewrite comment for the
18880 `suspended' flag. Add the `stop_pc' field. Delete the
18881 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18882 Add `'last_resume_kind' and `need_step_over' fields.
18883 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18884 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18885 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18886 (set_raw_breakpoint_at): New.
18887 (set_breakpoint_at): Rewrite to use it.
18888 (reinsert_breakpoint_handler): Delete.
18889 (set_reinsert_breakpoint): New.
18890 (reinsert_breakpoint_by_bp): Delete.
18891 (delete_reinsert_breakpoints): New.
18892 (uninsert_breakpoint): Rewrite.
18893 (uninsert_breakpoints_at): New.
18894 (reinsert_breakpoint): Rewrite.
18895 (reinsert_breakpoints_at): New.
18896 (check_breakpoints): Rewrite.
18897 (breakpoint_here): New.
18898 (breakpoint_inserted_here): New.
18899 (check_mem_read): Adjust.
18900 * mem-break.h (breakpoints_supported, breakpoint_here)
18901 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18902 (reinsert_breakpoint_by_bp): Delete declaration.
18903 (delete_reinsert_breakpoints): Declare.
18904 (reinsert_breakpoint): Delete declaration.
18905 (reinsert_breakpoints_at): Declare.
18906 (uninsert_breakpoint): Delete declaration.
18907 (uninsert_breakpoints_at): Declare.
18908 (check_breakpoints): Adjust prototype.
18909 * server.h: Adjust include order.
18910 (struct thread_info): Declare here. Add a `last_status' field.
18911
30ba68cb
MS
189122010-03-23 Michael Snyder <msnyder@vmware.com>
18913
18914 * server.c (crc32): New function.
18915 (handle_query): Add handling for 'qCRC:' request.
18916
b9a881c2
PA
189172010-03-23 Pedro Alves <pedro@codesourcery.com>
18918
18919 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18920 lwp had been stopped by a watchpoint.
18921
e92d13d5
PA
189222010-03-16 Pedro Alves <pedro@codesourcery.com>
18923
18924 * server.h (internal_error): Declare.
18925 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18926 * utils.c (internal_error): New function.
18927
64daa791
AS
189282010-03-15 Andreas Schwab <schwab@redhat.com>
18929
18930 * configure.srv: Fix typo setting srv_regobj.
18931
f52cd8cd
PA
189322010-03-15 Pedro Alves <pedro@codesourcery.com>
18933
18934 * linux-low.c (fetch_register): Avoid passing a non string literal
18935 format to `error'.
18936 (usr_store_inferior_registers): Ditto.
18937
93ae6fdc
PA
189382010-03-14 Pedro Alves <pedro@codesourcery.com>
18939
18940 * linux-low.c (linux_write_memory): Bail out early if peeking
18941 memory failed.
18942
c3adc08c
PA
189432010-03-14 Pedro Alves <pedro@codesourcery.com>
18944
18945 * linux-low.h (struct lwp_info): New fields
18946 `stopped_by_watchpoint' and `stopped_data_address'.
18947 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18948 here, and cache them in the lwp object.
18949 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18950 directly.
18951 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18952 field.
18953 (linux_stopped_by_watchpoint): Rewrite.
18954 (linux_stopped_data_address): Rewrite.
18955
bce522a2
PA
189562010-03-06 Simo Melenius <simo.melenius@iki.fi>
18957
18958 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18959 switching the current inferior, not before.
18960
90884b2b
L
189612010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18962
18963 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18964 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18965 i386-linux.c and amd64-linux.c.
18966 (reg-i386.o): Removed.
18967 (reg-i386.c): Likewise.
18968 (reg-i386-linux.o): Likewise.
18969 (reg-i386-linux.c): Likewise.
18970 (reg-x86-64.o): Likewise.
18971 (reg-x86-64.c): Likewise.
18972 (reg-x86-64-linux.o): Likewise.
18973 (reg-x86-64-linux.c): Likewise.
18974 (i386.o): New.
18975 (i386.c): Likewise.
18976 (i386-linux.o): Likewise.
18977 (i386-linux.c): Likewise.
18978 (amd64.o): Likewise.
18979 (amd64.c): Likewise.
18980 (amd64-linux.o): Likewise.
18981 (amd64-linux.c): Likewise.
18982
18983 * configure.srv (srv_i386_regobj): New.
18984 (srv_i386_linux_regobj): Likewise.
18985 (srv_amd64_regobj): Likewise.
18986 (srv_amd64_linux_regobj): Likewise.
18987 (srv_i386_32bit_xmlfiles): Likewise.
18988 (srv_i386_64bit_xmlfiles): Likewise.
18989 (srv_i386_xmlfiles): Likewise.
18990 (srv_amd64_xmlfiles): Likewise.
18991 (srv_i386_linux_xmlfiles): Likewise.
18992 (srv_amd64_linux_xmlfiles): Likewise.
18993 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18994 srv_xmlfiles to $srv_i386_xmlfiles.
18995 (i[34567]86-*-mingw32ce*): Likewise.
18996 (i[34567]86-*-mingw*): Likewise.
18997 (i[34567]86-*-nto*): Likewise.
18998 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18999 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
19000 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
19001 (x86_64-*-linux*): Likewise.
19002
19003 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
19004 (init_registers_amd64_linux): New.
19005 (x86_arch_setup): Replace init_registers_x86_64_linux with
19006 init_registers_amd64_linux.
19007
193f13e6
MK
190082010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
19009
19010 * configure.ac: Check for libdl. If it is not available link against
19011 static libthread_db.
19012 * configure: Regenerate.
19013
85d721b8
PA
190142010-02-22 Pedro Alves <pedro@codesourcery.com>
19015
19016 PR9605
19017
19018 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
19019 handing a read watchpoint.
19020 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
19021
6076632b
DE
190222010-02-12 Doug Evans <dje@google.com>
19023
19024 * linux-low.c (linux_supports_tracefork_flag): Document.
19025 (linux_look_up_symbols): Add comment.
19026
3327ccf7
L
190272010-02-03 H.J. Lu <hongjiu.lu@intel.com>
19028
19029 * regcache.c (supply_register): Clear regcache if buf is NULL.
19030
0718675c 190312010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 19032 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
19033
19034 * inferiors.c (find_inferior): Add function documentation.
19035 (unloaded_dll): Handle the case where the unloaded dll has not
19036 been previously registered in the dll list.
19037
177321bd
DJ
190382010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19039
19040 * linux-arm-low.c (thumb_breakpoint_len): Delete.
19041 (thumb2_breakpoint): New.
19042 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
19043
2b009048
DJ
190442010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19045
19046 * linux-low.c (get_stop_pc): Check for SIGTRAP.
19047 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
19048 breakpoints.
19049
3be029c7
PA
190502010-01-21 Pedro Alves <pedro@codesourcery.com>
19051
19052 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
19053
18f5de3b
JK
190542010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19055
19056 * linux-s390-low.c (s390_collect_ptrace_register)
19057 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
19058
3743bb4f
DE
190592010-01-21 Doug Evans <dje@google.com>
19060
14ce3065
DE
19061 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19062 (PTRACE_ARG4_TYPE): New macro.
19063 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19064 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19065 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19066 (usr_store_inferior_registers): Ditto.
19067 (linux_read_memory, linux_write_memory): Ditto.
19068 (linux_test_for_tracefork): Ditto.
19069
3743bb4f
DE
19070 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19071 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19072
8b315be5
PA
190732010-01-21 Pedro Alves <pedro@codesourcery.com>
19074
19075 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19076 target.
19077
85492558
PA
190782010-01-21 Pedro Alves <pedro@codesourcery.com>
19079
19080 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19081 prototype to take a regcache. Adjust.
19082
442ea881
PA
190832010-01-20 Pedro Alves <pedro@codesourcery.com>
19084
19085 * regcache.h (struct thread_info): Forward declare.
19086 (struct regcache): New.
19087 (new_register_cache): Adjust prototype.
19088 (get_thread_regcache): Declare.
19089 (free_register_cache): Adjust prototype.
19090 (registers_to_string, registers_from_string): Ditto.
19091 (supply_register, supply_register_by_name, collect_register)
19092 (collect_register_as_string, collect_register_by_name): Ditto.
19093 * regcache.c (struct inferior_regcache_data): Delete.
19094 (get_regcache): Rename to ...
19095 (get_thread_regcache): ... this. Adjust. Switch inferior before
19096 fetching registers.
19097 (regcache_invalidate_one): Adjust.
19098 (regcache_invalidate): Fix prototype.
19099 (new_register_cache): Return the new register cache.
19100 (free_register_cache): Change prototype.
19101 (realloc_register_cache): Adjust.
19102 (registers_to_string): Change prototype to take a regcache. Adjust.
19103 (registers_from_string): Ditto.
19104 (register_data): Ditto.
19105 (supply_register): Ditto.
19106 (supply_register_by_name): Ditto.
19107 (collect_register): Ditto.
19108 (collect_register_as_string): Ditto.
19109 (collect_register_by_name): Ditto.
19110 * server.c (process_serial_event): Adjust.
19111 * linux-low.h (regset_fill_func, regset_store_func): Change
19112 prototype.
19113 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19114 Change prototype.
19115 * linux-low.c (get_stop_pc): Adjust.
19116 (check_removed_breakpoint): Adjust.
19117 (linux_wait_for_event): Adjust.
19118 (linux_resume_one_lwp): Adjust.
19119 (fetch_register): Add regcache parameter. Adjust.
19120 (usr_store_inferior_registers): Ditto.
19121 (regsets_fetch_inferior_registers): Ditto.
19122 (regsets_store_inferior_registers): Ditto.
19123 (linux_fetch_registers, linux_store_registers): Ditto.
19124 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19125 regcache. Adjust.
43aaf8b6
PA
19126 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19127 Ditto.
442ea881
PA
19128 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19129 prototype to take a regcache.
19130 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19131 * remote-utils.c (convert_ascii_to_int, outreg)
19132 (prepare_resume_reply): Change prototype to take a regcache.
19133 Adjust.
19134 * target.h (struct target_ops) <fetch_registers, store_registers>:
19135 Change prototype to take a regcache.
19136 (fetch_inferior_registers, store_inferior_registers): Change
19137 prototype to take a regcache. Adjust.
19138 * proc-service.c (ps_lgetregs): Adjust.
19139 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19140 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19141 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19142 take a regcache. Adjust.
19143 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19144 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19145 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19146 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19147 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19148 (cris_cannot_fetch_register):
19149 (cris_breakpoint_at): Change prototype to take a regcache.
19150 Adjust.
19151 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19152 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19153 to take a regcache. Adjust.
19154 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19155 Adjust.
19156 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19157 take a regcache. Adjust.
19158 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19159 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19160 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19161 * linux-mips-low.c (mips_get_pc):
19162 (mips_set_pc): Change prototype to take a regcache. Adjust.
19163 (mips_reinsert_addr): Adjust.
19164 (mips_collect_register): Change prototype to take a regcache.
19165 Adjust.
19166 (mips_supply_register):
19167 (mips_collect_register_32bit, mips_supply_register_32bit)
19168 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19169 (mips_store_fpregset): Ditto.
43aaf8b6
PA
19170 * linux-ppc-low.c (ppc_supply_ptrace_register)
19171 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
19172 (parse_spufs_run): Adjust.
19173 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19174 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19175 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19176 take a regcache. Adjust.
19177 * linux-s390-low.c (s390_collect_ptrace_register)
19178 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19179 (s390_set_pc): Change prototype to take a regcache. Adjust.
19180 (s390_arch_setup): Adjust.
19181 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19182 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19183 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19184 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19185 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19186 regcache. Adjust.
19187 (sparc_breakpoint_at): Adjust.
19188 * linux-xtensa-low.c (xtensa_fill_gregset):
19189 (xtensa_store_gregset):
19190 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19191 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19192 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19193 prototype to take a regcache. Adjust.
19194 * win32-arm-low.c (arm_fetch_inferior_register)
19195 (arm_store_inferior_register): Change prototype to take a
19196 regcache. Adjust.
19197 * win32-i386-low.c (i386_fetch_inferior_register)
19198 (i386_store_inferior_register): Change prototype to take a
19199 regcache. Adjust.
19200 * win32-low.c (child_fetch_inferior_registers)
19201 (child_store_inferior_registers): Change prototype to take a
19202 regcache. Adjust.
19203 (win32_wait): Adjust.
19204 (win32_fetch_inferior_registers): Change prototype to take a
19205 regcache. Adjust.
19206 (win32_store_inferior_registers): Adjust.
19207 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19208 store_inferior_register>: Change prototype to take a regcache.
19209
60c3d7b0
DE
192102010-01-20 Doug Evans <dje@google.com>
19211
19212 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19213 #ifdef.
19214 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 19215 (W_STOPCODE): Provide definition if missing.
60c3d7b0 19216
dc146f7c
VP
192172010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19218
19219 * linux-low.c (linux_core_of_thread): New.
19220 (compare_ints, show_process, list_threads): New.
19221 (linux_qxfer_osdata): Report threads and cores.
19222 (linux_target_op): Register linux_core_of_thread.
19223 * remote-utils.c (prepare_resume_reply): Report the core.
19224 (buffer_xml_printf): Support %d specifier.
19225 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19226 New.
19227 (handle_query): Handle qXfer:threads. Announce availability
19228 thereof.
19229 * target.h (struct target_ops): New field core_of_thread.
19230
7803799a
UW
192312010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19232
19233 * Makefile.in (clean): Remove new generated files.
19234 (reg-s390.o, reg-s390.c): Remove rules.
19235 (reg-s390x.o, reg-s390x.c): Likewise.
19236 (s390-linux32.o, s390-linux32.c): Add rules.
19237 (s390-linux64.o, s390-linux64.c): Likewise.
19238 (s390x-linux64.o, s390x-linux64.c): Likewise.
19239 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19240 * linux-s390-low.c: Include <elf.h>.
19241 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19242 (init_registers_s390): Remove prototype.
19243 (init_registers_s390x): Likewise.
19244 (init_registers_s390_linux32): Add prototype.
19245 (init_registers_s390_linux64): Likewise.
19246 (init_registers_s390x_linux64): Likewise.
19247 (s390_num_regs_3264): New define.
19248 (s390_regmap_3264): New global variable.
19249 (s390_cannot_fetch_register): Remove obsolete check.
19250 (s390_cannot_store_register): Likewise.
19251 (s390_collect_ptrace_register): Handle upper/lower register halves.
19252 (s390_supply_ptrace_register): Likewise.
19253 (s390_fill_gregset): Update to register number changes.
19254 (s390_get_hwcap): New routine.
19255 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19256 Install appropriate regmap and register set.
19257
6e7ffa39
JB
192582010-01-01 Joel Brobecker <brobecker@adacore.com>
19259
19260 * server.c (gdbserver_version): Update copyright year to 2010.
19261 * gdbreplay.c (gdbreplay_version): Likewise.
19262
957f3f49
DE
192632009-12-28 Doug Evans <dje@google.com>
19264
19265 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19266 elf/external.h. Include <elf.h> instead but only if necessary.
19267
ca5c370d
PA
192682009-12-28 Pedro Alves <pedro@codesourcery.com>
19269
19270 * linux-low.c (linux_remove_process): Remove `detaching'
19271 parameter. Don't release/detach from thread_db here.
19272 (linux_kill): Release/detach from thread_db here, ...
19273 (linux_detach): ... and here, before actually detaching.
19274 (linux_wait_1): ... and here, when a process exits.
19275 * thread-db.c (any_thread_of): New.
19276 (thread_db_free): Switch the current inferior to a thread of the
19277 passed in process.
19278
4ee62156
DE
192792009-12-21 Doug Evans <dje@google.com>
19280
d90e6a88
DE
19281 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19282
c5f62d5f
DE
19283 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19284 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19285 warning ifndef __NR_tkill. Move setting of errno there too.
19286 Delete unnecessary resetting of errno after syscall.
19287 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19288
10e86dd7
DE
19289 * configure.ac: Check for dladdr.
19290 * config.in: Regenerate.
19291 * configure: Regenerate.
19292 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19293 (try_thread_db_load): Update.
19294
4ee62156
DE
19295 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19296
00f515da
DE
192972009-12-18 Doug Evans <dje@google.com>
19298
e9464885
DE
19299 * event-loop.c: Include unistd.h if it exists.
19300
07d4f67e
DE
19301 * linux-low.c (my_waitpid): Move definition away from being in
19302 between linux_tracefork_child/linux_test_for_tracefork.
19303
00f515da
DE
19304 * gdb_proc_service.h (psaddr_t): Fix type.
19305 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19306 signature to match glibc.
19307
1de1badb
DE
193082009-12-16 Doug Evans <dje@google.com>
19309
19310 * linux-low.c (linux_read_memory): Fix argument to read.
19311
aeeb81d1
PA
193122009-11-26 Pedro Alves <pedro@codesourcery.com>
19313
19314 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19315 events, don't leave current_inferior pointing at null.
19316
10357975
PA
193172009-11-26 Pedro Alves <pedro@codesourcery.com>
19318
19319 * win32-low.c (LOG): Delete.
19320 (OUTMSG): Output to stderr.
19321 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19322 on compile time LOG macro.
19323 (win32_wait): Fix debug output.
19324
cf6e3471
PA
193252009-11-26 Pedro Alves <pedro@codesourcery.com>
19326
19327 * win32-low.c (win32_add_one_solib): If the dll name is
19328 "ntdll.dll", prepend the system directory to the dll path.
19329
0c85e18e
MK
193302009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19331
19332 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19333
9ac544ce 193342009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 19335 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
19336
19337 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19338 * configure.ac: Check for __mcoldfire__ and set
19339 gdb_cv_m68k_is_coldfire.
19340 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19341 reg-cf.o and reg-m68k.o.
19342 * configure: Regenerated.
19343
fd7dd3e6
PA
193442009-11-16 Pedro Alves <pedro@codesourcery.com>
19345
19346 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19347 Pass it to thread_db_free.
19348 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19349 proper `detaching' argument to linux_remove_process.
19350 * linux-low.h (thread_db_free): Add `detaching' parameter.
19351 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19352 to thread_db_free.
19353 (thread_db_free): Add `detaching' parameter. Only
19354 call td_ta_clear_event if detaching from process.
19355
75aa492e
MK
193562009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19357
19358 * thread-db.c (thread_db_free): Fix typo.
19359
21e1bee4
PP
193602009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19361
19362 PR gdb/10838
19363 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19364
8838b45e
NS
193652009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19366
19367 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19368 with an i686 compiler.
19369 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19370 needed.
19371 * configure: Rebuilt.
19372
8a35fb51
SL
193732009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19374
19375 PR gdb/10783
19376
19377 * server.c (handle_search_memory_1): Correct read_addr initialization
19378 in loop for searching subsequent chunks.
19379
96f15937
PP
193802009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19381
19382 * configure.ac: New --with-libthread-db option.
19383 * thread-db.c: Allow direct dependence on libthread_db.
19384 (thread_db_free): Adjust.
19385 * config.in: Regenerate.
19386 * configure: Likewise.
889bf7c5 19387
5f7d1694
PP
193882009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19389
19390 PR gdb/10757
19391 * thread-db.c (attach_thread): New function.
19392 (maybe_attach_thread): Return success/failure.
19393 (find_new_threads_callback): Adjust.
889bf7c5
PA
19394 (thread_db_find_new_threads): Loop until no new threads.
19395
88e3b899
PA
193962009-10-13 Pedro Alves <pedro@codesourcery.com>
19397
19398 * proc-service.c (ps_lgetregs): Formatting.
19399
cdbfd419
PP
194002009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19401
19402 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19403 * configure.ac: Adjust.
19404 * linux-low.h (struct process_info_private): Move members to struct
19405 thread_db.
19406 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19407 * linux-low.c (linux_remove_process): Adjust.
19408 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19409 * server.c (handle_query): Move code ...
19410 (handle_monitor_command): ... here. New function.
19411 * target.h (struct target_ops): New member.
19412 * thread-db.c (struct thread_db): New.
19413 (libthread_db_search_path): New variable.
19414 (thread_db_create_event, thread_db_enable_reporting)
19415 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19416 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19417 (try_thread_db_load_1, dladdr_to_soname): New functions.
19418 (try_thread_db_load, thread_db_load_search): New functions.
19419 (thread_db_init): Search for libthread_db.
19420 (thread_db_free): New function.
19421 (thread_db_handle_monitor_command): Likewise.
19422 * config.in: Regenerate.
19423 * configure: Regenerate.
889bf7c5 19424
4168d2d6
UW
194252009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19426
19427 * spu-low.c (spu_kill): Wait for inferior to terminate.
19428 Call clear_inferiors.
19429 (spu_detach): Call clear_inferiors.
19430
81ecdfbb
RW
194312009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19432
19433 * aclocal.m4: Regenerate.
19434 * config.in: Likewise.
19435 * configure: Likewise.
19436
0b9ff2c0
UW
194372009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19438
19439 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19440 (parse_spufs_run): New function.
19441 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19442 (ppc_breakpoint_at): Handle SPU breakpoints.
19443
efcbbd14
UW
194442009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19445
19446 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19447 (SPUFS_MAGIC): Define.
19448 (spu_enumerate_spu_ids): New function.
19449 (linux_qxfer_spu): New function.
19450 (linux_target_ops): Install linux_qxfer_spu.
19451
f4d9bade
UW
194522009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19453
19454 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19455 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19456 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19457 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19458 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19459 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19460 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19461 (init_registers_powerpc_cell32l): Add prototype.
19462 (init_registers_powerpc_cell64l): Likewise.
19463 (ppc_arch_setup): Detect Cell/B.E. architecture.
19464
96e946ca
RW
194652009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19466
19467 * Makefile.in (datarootdir): New variable.
19468
58d6951d
DJ
194692009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19470
19471 * linux-low.c (linux_write_memory): Update debugging output.
19472 * Makefile.in (clean): Add new descriptions.
19473 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19474 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19475 * configure.srv: Add new files for arm*-*-linux*.
19476 * linux-arm-low.c: Add new declarations.
19477 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19478 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19479 (HWCAP_VFPv3D16): New.
19480 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19481 instead of __IWMMXT__.
19482 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19483 (arm_arch_setup): New.
19484 (target_regsets): Remove #ifdef. Add VFP regset.
19485 (the_low_target): Use arm_arch_setup.
19486
12b42a12
DJ
194872009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19488
19489 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19490 the main thread again.
19491
ac8c974e
AR
194922009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19493
19494 Adding Neutrino gdbserver.
19495 * configure: Regenerated.
19496 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19497 * configure.srv (i[34567]86-*-nto*): New target.
19498 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19499 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19500 (nto_comctrl) [__QNX__]: New function.
19501 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19502
4424e0c3 195032009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19504
19505 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19506 srv_tgtobj.
19507
912cf4ba
PA
195082009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19509 Pedro Alves <pedro@codesourcery.com>
19510
19511 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19512 don't support CONTEXT_EXTENDED_REGISTERS.
19513 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19514 (the_low_target): Install them.
19515 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19516 failing with ERROR_PIPE_NOT_CONNECTED.
19517
aa5ca48f
DE
195182009-06-30 Doug Evans <dje@google.com>
19519 Pierre Muller <muller@ics.u-strasbg.fr>
19520
19521 Add h/w watchpoint support to x86-linux, win32-i386.
19522 * Makefile.in (SFILES): Add i386-low.c
19523 (i386_low_h): Define.
19524 (i386-low.o): Add dependencies.
19525 (linux-x86-low.o): Add i386-low.h dependency.
19526 (win32-i386-low.o): Ditto.
19527 * i386-low.c: New file.
19528 * i386-low.h: New file.
19529 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19530 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19531 * linux-low.c (linux_add_process): Initialize arch_private.
19532 (linux_remove_process): Free arch_private.
19533 (add_lwp): Initialize arch_private.
19534 (delete_lwp): Free arch_private.
19535 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19536 provided.
19537 * linux-low.h (process_info_private): New member arch_private.
19538 (lwp_info): New member arch_private.
19539 (linux_target_ops): New members new_process, new_thread,
19540 prepare_to_resume.
19541 (ptid_of): New macro.
19542 * linux-x86-low.c: Include stddef.h, i386-low.h.
19543 (arch_process_info): New struct.
19544 (arch_lwp_info): New struct.
19545 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19546 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19547 (i386_dr_low_get_status): New function.
19548 (x86_insert_point, x86_remove_point): New functions.
19549 (x86_stopped_by_watchpoint): New function.
19550 (x86_stopped_data_address): New function.
19551 (x86_linux_new_process, x86_linux_new_thread): New functions.
19552 (x86_linux_prepare_to_resume): New function.
19553 (the_low_target): Add entries for insert_point, remove_point,
19554 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19555 prepare_to_resume.
19556 * server.c (debug_hw_points): New global.
19557 (monitor_show_help): Document set debug-hw-points.
19558 (handle_query): Process "set debug-hw-points".
19559 * server.h (debug_hw_points): Declare.
19560 (paddress): Declare.
19561 * utils.c (NUMCELLS, CELLSIZE): New macros.
19562 (get_sell, xsnprintf, paddress): New functions.
19563 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19564 remove_point, stopped_by_watchpoint, stopped_data_address.
19565 * win32-i386-low.c: Include i386-low.h.
19566 (debug_reg_state): Replaces dr.
19567 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19568 (i386_dr_low_get_status): New function.
19569 (i386_insert_point, i386_remove_point): New functions.
19570 (i386_stopped_by_watchpoint): New function.
19571 (i386_stopped_data_address): New function.
19572 (i386_initial_stuff): Update.
19573 (get_thread_context,set_thread_context,i386_thread_added): Update.
19574 (the_low_target): Add entries for insert_point,
19575 remove_point, stopped_by_watchpoint, stopped_data_address.
19576 * win32-low.c (win32_insert_watchpoint): New function.
19577 (win32_remove_watchpoint): New function.
19578 (win32_stopped_by_watchpoint): New function.
19579 (win32_stopped_data_address): New function.
19580 (win32_target_ops): Add entries for insert_watchpoint,
19581 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19582 * win32-low.h (win32_target_ops): New members insert_point,
19583 remove_point, stopped_by_watchpoint, stopped_data_address.
19584
d993e290
PA
195852009-06-25 Pedro Alves <pedro@codesourcery.com>
19586
19587 * server.c (process_serial_event): Re-return unsupported, not
19588 error, if the type isn't recognized. Re-allow supporting only
19589 insert or remove packets. Also call require_running for
19590 breakpoints. Add missing break statement to default case. Tidy.
19591 * target.h (struct target_ops): Rename insert_watchpoint to
19592 insert_point, and remove_watchpoint to remove_point.
19593
19594 * linux-low.h (struct linux_target_ops): Likewise.
19595 * linux-low.c (linux_insert_watchpoint): Rename to ...
19596 (linux_insert_point): ... this. Adjust.
19597 (linux_remove_watchpoint): Rename to ...
19598 (linux_remove_point): ... this. Adjust.
19599 (linux_target_ops): Adjust.
19600 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19601 (cris_insert_point): ... this.
19602 (cris_remove_watchpoint): Rename to ...
19603 (cris_remove_point): ... this.
19604 (the_low_target): Adjust.
19605
0f54c268
PM
196062009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19607
19608 * server.c (handle_v_kill): Pass signal_pid to
19609 kill_inferior if multi_process is zero.
19610
c6314022
AR
196112009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19612
19613 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19614 * target.h (target_ops): Comment for *_watchpoint to make it clear
19615 the functions can get types '0' and '1'.
19616
4463ce24
AR
196172009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19618
19619 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19620 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19621 * regcache.c (get_regcache): Likewise.
19622 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19623 * win32-low.c (child_fetch_inferior_registers): Remove check for
19624 regno 0.
19625
cf8fd78b
PA
196262009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19627 Pedro Alves <pedro@codesourcery.com>
19628
19629 * target.h (struct target_ops) <supports_multi_process>: New
19630 callback.
19631 (target_supports_multi_process): New.
19632 * server.c (handle_query): Even if GDB reports support, only
19633 enable multi-process if the target also supports it. Report
19634 multi-process support only if the target backend supports it.
19635 * linux-low.c (linux_supports_multi_process): New function.
19636 (linux_target_ops): Install it as target_supports_multi_process
19637 callback.
19638
47c0c975
DE
196392009-05-24 Doug Evans <dje@google.com>
19640
e09875d4
DE
19641 Global renaming of find_thread_pid to find_thread_ptid.
19642 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19643 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19644 All callers updated.
19645
e27d73f6
DE
19646 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19647 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19648 directly.
19649
47c0c975
DE
19650 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19651 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19652 (linux_resume_one_lwp): Ditto.
19653
2acc282a
DE
196542009-05-23 Doug Evans <dje@google.com>
19655
19656 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19657 from struct inferior_list_entry * to struct lwp_info *.
19658 All callers updated.
19659
9f1036c1
DE
196602009-05-13 Doug Evans <dje@google.com>
19661
19662 * linux-x86-low.c: Don't include assert.h.
19663 (x86_siginfo_fixup): Use fatal, not assert.
19664 (x86_arch_setup): Fix comment.
19665
d0722149
DE
196662009-05-12 Doug Evans <dje@google.com>
19667
19668 Biarch support for i386/amd64 gdbserver.
19669 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19670 Add linux-x86-low.c.
19671 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19672 (linux-x86-low.o): Add.
19673 * linux-x86-64-low.c: Delete.
19674 * linux-i386-low.c: Delete.
19675 * linux-x86-low.c: New file.
19676 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19677 linux-x86-low.o.
19678 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19679 linux-x86-low.o.
19680 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19681 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19682 (linux_child_pid_to_exec_file): New function.
19683 (elf_64_header_p, elf_64_file_p): New functions.
19684 (siginfo_fixup): New function.
19685 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19686 give target a chance to convert layout.
19687 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19688 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19689
fdeb2a12
DE
196902009-05-07 Doug Evans <dje@google.com>
19691
19692 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19693 (regsets_store_inferior_registers): Ditto.
19694
a6dbe5df
PA
196952009-05-06 Pedro Alves <pedro@codesourcery.com>
19696
19697 PR server/10048
19698
19699 * linux-low.c (must_set_ptrace_flags): Delete.
19700 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19701 of the global.
19702 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19703 `lwp->must_set_ptrace_flags' instead.
ba42693b 19704 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19705 (linux_wait_1): ... not here.
19706
5091eb23
DE
197072009-04-30 Doug Evans <dje@google.com>
19708
9f767825
DE
19709 * inferiors.c (started_inferior_callback): New function.
19710 (attached_inferior_callback): New function.
19711 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19712 * server.c (print_started_pid, print_attached_pid): New functions.
19713 (detach_or_kill_for_exit): New function.
19714 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19715 * server.h (have_started_inferiors_p): Declare.
19716 (have_attached_inferiors_p): Declare.
19717
5091eb23
DE
19718 * inferiors.c (remove_process): Fix memory leak, free process.
19719 * linux-low.c (linux_remove_process): New function.
19720 (linux_kill): Call it instead of remove_process.
19721 (linux_detach, linux_wait_1): Ditto.
19722
155c8968
PA
197232009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19724
19725 * configure.srv: Add x86 Windows CE target.
19726
7fe519cb
UW
197272009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19728
19729 * inferiors.c (get_thread_process): Make global.
19730 * server.h (get_thread_process): Add prototype.
19731 * thread-db.c (find_one_thread): Use get_thread_process
19732 instead of current_process.
19733 (thread_db_get_tls_address): Do not crash if called when
19734 thread layer is not yet initialized.
19735
5472f405
UW
197362009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19737
19738 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19739 * spu-low.c (current_tid): Rename to ...
19740 (current_ptid): ... this.
19741 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19742 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19743 ptid_get_lwp (current_ptid) instead of current_tid.
19744 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19745 instead of current_tid. Use find_process_pid to verify pid
19746 argument is valid. Pass proper argument to remove_process.
19747 (spu_thread_alive): Compare current_ptid instead of current_tid.
19748 (spu_resume): Likewise.
19749
55ac2b99
PA
197502009-04-02 Pedro Alves <pedro@codesourcery.com>
19751
19752 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19753 variable.
19754
95954743
PA
197552009-04-01 Pedro Alves <pedro@codesourcery.com>
19756
19757 Implement the multiprocess extensions, and add linux multiprocess
19758 support.
19759
19760 * server.h (ULONGEST): Declare.
19761 (struct ptid, ptid_t): New.
19762 (minus_one_ptid, null_ptid): Declare.
19763 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19764 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19765 (struct inferior_list_entry): Change `id' type from unsigned from
19766 to ptid_t.
19767 (struct sym_cache, struct breakpoint, struct
19768 process_info_private): Forward declare.
19769 (struct process_info): Declare.
19770 (current_process): Declare.
19771 (all_processes): Declare.
19772 (initialize_inferiors): Declare.
19773 (add_thread): Adjust to use ptid_t.
19774 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19775 (add_process, remove_process, find_thread_pid): Declare.
19776 (find_inferior_id): Adjust to use ptid_t.
19777 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19778 (multi_process): Declare.
19779 (push_event): Adjust to use ptid_t.
19780 (read_ptid, write_ptid): Declare.
19781 (prepare_resume_reply): Adjust to use ptid_t.
19782 (clear_symbol_cache): Declare.
19783 * inferiors.c (all_processes): New.
19784 (null_ptid, minus_one_ptid): New.
19785 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19786 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19787 (add_thread): Change unsigned long to ptid. Remove gdb_id
19788 parameter. Adjust.
19789 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19790 (gdb_id_to_thread): Rename to ...
19791 (find_thread_pid): ... this. Change unsigned long to ptid.
19792 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19793 (loaded_dll, pull_pid_from_list): Adjust.
19794 (add_process, remove_process, find_process_pid)
19795 (get_thread_process, current_process, initialize_inferiors): New.
19796 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19797 (struct target_waitstatus) <related_pid>: Ditto.
19798 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19799 return type to int.
19800 (struct target_ops) <join>: Add `pid' argument.
19801 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19802 (struct target_ops) <wait>: Add `ptid' field. Change return type
19803 to ptid.
19804 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19805 (mywait): Add `ptid' argument. Change return type to ptid_t.
19806 (target_pid_to_str): Declare.
19807 * target.c (set_desired_inferior): Adjust to use ptids.
19808 (mywait): Add new `ptid' argument. Adjust.
19809 (target_pid_to_str): New.
19810 * mem-break.h (free_all_breakpoints): Declare.
19811 * mem-break.c (breakpoints): Delelete.
19812 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19813 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19814 to use per-process breakpoint list.
19815 (free_all_breakpoints): New.
19816 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19817 (symbol_cache, all_symbols_looked_up): Delete.
19818 (hexchars): New.
19819 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19820 read_ptid): New.
19821 (prepare_resume_reply): Change ptid argument's type from unsigned
19822 long to ptid_t. Adjust. Implement W;process and X;process.
19823 (free_sym_cache, clear_symbol_cache): New.
19824 (look_up_one_symbol): Adjust to per-process symbol cache. *
19825 * server.c (cont_thread, general_thread, step_thread): Change type
19826 to ptid_t.
19827 (attached): Delete.
19828 (multi_process): New.
19829 (last_ptid): Change type to ptid_t.
19830 (struct vstop_notif) <ptid>: Change type to ptid_t.
19831 (queue_stop_reply, push_event): Change `ptid' argument's type to
19832 ptid_t.
19833 (discard_queued_stop_replies): Add `pid' argument.
19834 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19835 changes. Don't reference the `attached' global.
19836 (attach_inferior): Adjust to mywait interface changes.
19837 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19838 features. Handle and report "multiprocess+". Handle
19839 "qAttached:PID".
19840 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19841 changes.
19842 (handle_v_kill): New.
19843 (handle_v_stopped): Adjust to use target_pid_to_str.
19844 (handle_v_requests): Allow multiple attaches and runs when
19845 multiprocess extensions are in effect. Handle "vKill".
19846 (myresume): Adjust to use ptids.
19847 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19848 (handle_status): Adjust to discard_queued_stop_replies interface
19849 change.
19850 (first_thread_of, kill_inferior_callback)
19851 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19852 (main): Call initialize_inferiors. Adjust to use ptids, killing
19853 and detaching from all inferiors. Handle multiprocess packet
19854 variants.
19855 * linux-low.h: Include gdb_proc_service.h.
19856 (struct process_info_private): New.
19857 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19858 <lwpid_of>: Use ptid_get_lwp.
19859 (get_lwp_thread): Adjust.
19860 (struct lwp_info): Add `dead' member.
19861 (find_lwp_pid): Declare.
19862 * linux-low.c (thread_db_active): Delete.
19863 (new_inferior): Adjust comment.
19864 (inferior_pid): Delete.
19865 (linux_add_process): New.
19866 (handle_extended_wait): Adjust.
19867 (add_lwp): Change unsigned long to ptid.
19868 (linux_create_inferior): Add process to processes table. Adjust
19869 to use ptids. Don't set new_inferior here.
19870 (linux_attach_lwp): Rename to ...
19871 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19872 it. Adjust to use ptids.
19873 (linux_attach_lwp): New.
19874 (linux_attach): Add process to processes table. Don't set
19875 new_inferior here.
19876 (struct counter): New.
19877 (second_thread_of_pid_p, last_thread_of_process_p): New.
19878 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19879 multiple processes.
19880 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19881 processes. Remove process from process table.
19882 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19883 to multiple processes.
19884 (any_thread_of): New.
19885 (linux_detach): Add `pid' argument, and handle it. Remove process
19886 from processes table.
19887 (linux_join): Add `pid' argument. Handle it.
19888 (linux_thread_alive): Change unsighed long argument to ptid_t.
19889 Consider dead lwps as not being alive.
19890 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19891 threads we're not interested in.
19892 (same_lwp, find_lwp_pid): New.
19893 (linux_wait_for_lwp): Change `pid' argument's type from int to
19894 ptid_t. Adjust.
19895 (linux_wait_for_event): Rename to ...
19896 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19897 from int to ptid_t. Adjust.
19898 (linux_wait_for_event): New.
19899 (linux_wait_1): Add `ptid' argument. Change return type to
19900 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19901 that exit from the process table.
19902 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19903 Adjust.
19904 (mark_lwp_dead): New.
19905 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19906 stopping all threads, mark its main lwp as dead.
19907 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19908 ptids.
19909 (fetch_register, usr_store_inferior_registers)
19910 (regsets_fetch_inferior_registers)
19911 (regsets_store_inferior_registers, linux_read_memory)
19912 (linux_write_memory): Inline `inferior_pid'.
19913 (linux_look_up_symbols): Adjust to use per-process
19914 `thread_db_active'.
19915 (linux_request_interrupt): Adjust to use ptids.
19916 (linux_read_auxv): Inline `inferior_pid'.
19917 (initialize_low): Don't reference thread_db_active.
19918 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19919 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19920 (ps_getpid): Return the pid of the current inferior.
19921 * thread-db.c (proc_handle, thread_agent): Delete.
19922 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19923 per-process data.
19924 (find_one_thread): Change argument type to ptid_t. Adjust to
19925 per-process data.
19926 (maybe_attach_thread): Adjust to per-process data and ptids.
19927 (thread_db_find_new_threads): Ditto.
19928 (thread_db_init): Ditto.
19929 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19930 processes table. Adjust to use ptids.
19931 (spu_kill, spu_detach): Adjust interface. Remove process from
19932 processes table.
19933 (spu_join, spu_thread_alive): Adjust interface.
19934 (spu_wait): Adjust interface. Remove process from processes
19935 table. Adjust to use ptids.
19936 * win32-low.c (current_inferior_tid): Delete.
19937 (current_inferior_ptid): New.
19938 (debug_event_ptid): New.
19939 (thread_rec): Take a ptid. Adjust.
19940 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19941 (child_delete_thread): Ditto.
19942 (do_initial_child_stuff): Add `attached' argument. Add process to
19943 processes table.
19944 (child_fetch_inferior_registers, child_store_inferior_registers):
19945 Adjust.
19946 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19947 (win32_attach): Pass 1 to do_initial_child_stuff.
19948 (win32_kill): Adjust interface. Remove process from processes
19949 table.
19950 (win32_detach): Ditto.
19951 (win32_join): Adjust interface.
19952 (win32_thread_alive): Take a ptid.
19953 (win32_resume): Adjust to use ptids.
19954 (get_child_debug_event): Ditto.
19955 (win32_wait): Adjust interface. Remove exiting process from
19956 processes table.
19957
bd99dc85
PA
199582009-04-01 Pedro Alves <pedro@codesourcery.com>
19959
19960 Non-stop mode support.
19961
19962 * server.h (non_stop): Declare.
19963 (gdb_client_data, handler_func): Declare.
19964 (delete_file_handler, add_file_handler, start_event_loop):
19965 Declare.
19966 (handle_serial_event, handle_target_event, push_event)
19967 (putpkt_notif): Declare.
19968 * target.h (enum resume_kind): New.
19969 (struct thread_resume): Replace `step' field by `kind' field.
19970 (TARGET_WNOHANG): Define.
19971 (struct target_ops) <wait>: Add `options' argument.
19972 <supports_non_stop, async, start_non_stop>: New fields.
19973 (target_supports_non_stop, target_async): New.
19974 (start_non_stop): Declare.
19975 (mywait): Add `options' argument.
19976 * target.c (mywait): Add `options' argument. Print child exit
19977 notifications here.
19978 (start_non_stop): New.
19979 * server.c (non_stop, own_buf, mem_buf): New globals.
19980 (struct vstop_notif): New.
19981 (notif_queue): New global.
19982 (queue_stop_reply, push_event, discard_queued_stop_replies)
19983 (send_next_stop_reply): New.
19984 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19985 interface changes.
19986 (attach_inferior): In non-stop mode, don't wait for the target
19987 here.
19988 (handle_general_set): Handle QNonStop.
19989 (handle_query): When handling qC, return the current general
19990 thread, instead of the first thread of the list.
19991 (handle_query): If the backend supports non-stop mode, include
19992 QNonStop+ in the qSupported query response.
19993 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19994 and non-stop mode.
19995 (handle_v_attach, handle_v_run): Handle non-stop mode.
19996 (handle_v_stopped): New.
19997 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19998 (myresume): Adjust to use resume_kind. Handle non-stop.
19999 (queue_stop_reply_callback): New.
20000 (handle_status): Handle non-stop mode.
20001 (main): Clear non_stop flag on reconnection. Use the event-loop.
20002 Refactor serial protocol handling from here ...
20003 (process_serial_event): ... to this new function. When GDB
20004 selects any thread, select one here. In non-stop mode, wait until
20005 GDB acks all pending events before exiting.
20006 (handle_serial_event, handle_target_event): New.
20007 * remote-utils.c (remote_open): Install remote_desc in the event
20008 loop.
20009 (remote_close): Remove remote_desc from the event loop.
20010 (putpkt_binary): Rename to...
20011 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
20012 (putpkt_binary): New as wrapper around putpkt_binary_1.
20013 (putpkt_notif): New.
20014 (prepare_resume_reply): In non-stop mode, don't change the
20015 general_thread.
20016 * event-loop.c: New.
20017 * Makefile.in (OBJ): Add event-loop.o.
20018 (event-loop.o): New rule.
20019
20020 * linux-low.h (pid_of): Moved here.
20021 (lwpid_of): New.
20022 (get_lwp_thread): Use lwpid_of.
20023 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
20024 * linux-low.c (pid_of): Delete.
20025 (inferior_pid): Use lwpid_of.
20026 (linux_event_pipe): New.
20027 (target_is_async_p): New.
20028 (delete_lwp): New.
20029 (handle_extended_wait): Use lwpid_of.
20030 (add_lwp): Don't set lwpid field.
20031 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
20032 (linux_kill_one_lwp): If killing a running lwp, stop it first.
20033 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
20034 (linux_detach_one_lwp): If detaching from a running lwp, stop it
20035 first. Adjust to linux_wait_for_event interface changes. Use
20036 lwpid_of.
20037 (linux_detach): Don't delete the main lwp here.
20038 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
20039 (status_pending_p): Don't consider explicitly suspended lwps.
20040 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
20041 pointer. Add OPTIONS argument. Change return type to int. Use
20042 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
20043 (linux_wait_for_event): Take an integer pid instead of a lwp_info
20044 pointer. Add status pointer argument. Return a pid instead of a
20045 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
20046 changes. In non-stop mode, don't switch to a random thread.
20047 (linux_wait): Rename to...
20048 (linux_wait_1): ... this. Add target_options argument, and handle
20049 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
20050 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
20051 clean exit and signal exit code. Don't stop all threads in
20052 non-stop mode. In all-stop mode, only stop all threads when
20053 reporting a stop to GDB. Handle explicit thread stop requests.
20054 (async_file_flush, async_file_mark): New.
20055 (linux_wait): New.
20056 (send_sigstop): Use lwpid_of.
20057 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
20058 interface changes. In non-stop mode, don't switch to a random
20059 thread.
20060 (linux_resume_one_lwp): Use lwpid_of.
20061 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20062 (linux_resume_one_thread): ... this. Handle resume_stop. In
20063 non-stop mode, don't look for pending flag in all threads.
20064 (resume_status_pending_p): Don't consider explicitly suspended
20065 threads.
20066 (my_waitpid): Reimplement. Emulate __WALL.
20067 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20068 Use lwpid_of.
20069 (sigchld_handler, linux_supports_non_stop, linux_async)
20070 (linux_start_non_stop): New.
20071 (linux_target_ops): Register linux_supports_non_stop, linux_async
20072 and linux_start_non_stop.
20073 (initialize_low): Install SIGCHLD handler.
20074 * thread-db.c (thread_db_create_event, find_one_thread)
20075 (thread_db_get_tls_address): Use lwpid_of.
20076 * win32-low.c (win32_detach): Adjust to use resume_kind.
20077 (win32_wait): Add `options' argument.
20078 * spu-low.c (spu_resume): Adjust to use resume_kind.
20079 (spu_wait): Add `options' argument.
20080
5b1c542e
PA
200812009-04-01 Pedro Alves <pedro@codesourcery.com>
20082
20083 Decouple target code from remote protocol.
20084
20085 * target.h (enum target_waitkind): New.
20086 (struct target_waitstatus): New.
20087 (struct target_ops) <wait>: Return an unsigned long. Take a
20088 target_waitstatus pointer instead of a char pointer.
20089 (mywait): Likewise.
20090 * target.c (mywait): Change prototype to return an unsigned long.
20091 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20092 * server.h (thread_from_wait, old_thread_from_wait): Delete
20093 declarations.
20094 (prepare_resume_reply): Change prototype to take a
20095 target_waitstatus.
20096 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20097 (last_status, last_ptid): New.
20098 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20099 pid instead of a signal.
20100 (attach_inferior): Remove "status" and "signal" parameters.
20101 Adjust.
20102 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20103 not as an address.
20104 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20105 (handle_v_requests, myresume): Remove "status" and "signal"
20106 parameters. Adjust.
20107 (handle_status): New.
20108 (main): Delete local `status'. Adjust.
20109 * remote-utils.c: Include target.h.
20110 (prepare_resume_reply): Change prototype to take a
20111 target_waitstatus. Adjust.
20112
20113 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20114 interface.
20115 * spu-low.c (spu_wait): Adjust.
20116 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20117 Delete.
20118 (win32_wait): Adjust.
20119
2bd7c093
PA
201202009-04-01 Pedro Alves <pedro@codesourcery.com>
20121
20122 * target.h (struct thread_resume): Delete leave_stopped member.
20123 (struct target_ops): Add a `n' argument to the `resume' callback.
20124 * server.c (start_inferior): Adjust.
20125 (handle_v_cont, myresume): Adjust.
20126 * linux-low.c (check_removed_breakpoint): Adjust to resume
20127 interface change, and to removed leave_stopped field.
20128 (resume_ptr): Delete.
20129 (struct thread_resume_array): New.
20130 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20131 resume interface change.
20132 (linux_continue_one_thread, linux_queue_one_thread)
20133 (resume_status_pending_p): Check if the resume field is NULL
20134 instead of checking the leave_stopped member.
20135 (linux_resume): Adjust to the target resume interface change.
20136 * spu-low.c (spu_resume): Adjust to the target resume interface
20137 change.
20138 * win32-low.c (win32_detach, win32_resume): Ditto.
20139
c35fafde
PA
201402009-04-01 Pedro Alves <pedro@codesourcery.com>
20141
20142 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20143 flag.
20144 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20145 pending.
20146 (linux_continue_one_thread): Only preserve the stepping flag if
20147 there's a pending breakpoint.
20148
0a59d50b
PA
201492009-03-31 Pedro Alves <pedro@codesourcery.com>
20150
20151 * server.c (main): After the inferior having exited, call
20152 remote_close before exiting gdbserver.
20153
f04c6d38
TJB
201542009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20155
20156 Fix size of FPSCR in Power 7 processors.
20157 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20158 (PPC_FEATURE_HAS_DFP): New #define.
20159 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20160 size of the FPSCR.
20161
78e5cee6
PA
201622009-03-23 Pedro Alves <pedro@codesourcery.com>
20163
20164 * server.c (handle_query) Whitespace and formatting.
20165
1b3f6016
PA
201662009-03-22 Pedro Alves <pedro@codesourcery.com>
20167
20168 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20169 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20170 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20171 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20172 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20173 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20174 Makefile.in, configure.ac: Fix whitespace throughout.
20175 * configure: Regenerate.
20176
a07b2135
PA
201772009-03-22 Pedro Alves <pedro@codesourcery.com>
20178
20179 * inferiors.c (find_inferior): Make it safe for the callback
20180 function to delete the currently iterated inferior.
20181
67cc2626
PA
201822009-03-22 Pedro Alves <pedro@codesourcery.com>
20183
20184 * Makefile.in (linuw_low_h): Move higher.
20185 (thread-db.o): Depend on $(linux_low_h).
20186
54a0b537
PA
201872009-03-17 Pedro Alves <pedro@codesourcery.com>
20188
20189 Rename "process" to "lwp" throughout.
20190
20191 * linux-low.c (all_processes): Rename to...
20192 (all_lwps): ... this.
20193 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20194 (add_process): Rename to ...
20195 (add_lwp): ... this. Adjust.
20196 (linux_create_inferior): Adjust.
20197 (linux_attach_lwp): Adjust.
20198 (linux_attach): Adjust.
20199 (linux_kill_one_process): Rename to ...
20200 (linux_kill_one_lwp): ... this. Adjust.
20201 (linux_kill): Adjust.
20202 (linux_detach_one_process): Rename to ...
20203 (linux_detach_one_lwp): ... this. Adjust.
20204 (linux_detach): Adjust.
20205 (check_removed_breakpoint): Adjust.
20206 (status_pending_p): Adjust.
20207 (linux_wait_for_process): Rename to ...
20208 (linux_wait_for_lwp): ... this. Adjust.
20209 (linux_wait_for_event): Adjust.
20210 (send_sigstop): Adjust.
20211 (wait_for_sigstop): Adjust.
20212 (stop_all_processes): Rename to ...
20213 (stop_all_lwps): ... this.
20214 (linux_resume_one_process): Rename to ...
20215 (linux_resume_one_lwp): ... this. Adjust.
20216 (linux_set_resume_request, linux_continue_one_thread)
20217 (linux_queue_one_thread, resume_status_pending_p)
20218 (usr_store_inferior_registers, regsets_store_inferior_registers)
20219 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20220 Adjust.
20221 * linux-low.h (get_process): Rename to ...
20222 (get_lwp): ... this. Adjust.
20223 (get_thread_process): Rename to ...
20224 (get_thread_lwp): ... this. Adjust.
20225 (get_process_thread): Rename to ...
20226 (get_lwp_thread): ... this. Adjust.
20227 (struct process_info): Rename to ...
20228 (struct lwp_info): ... this.
20229 (all_processes): Rename to ...
20230 (all_lwps): ... this.
20231 * proc-service.c (ps_lgetregs): Adjust.
20232 * thread-db.c (thread_db_create_event, find_one_thread)
20233 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20234
0b16c5cf
PA
202352009-03-14 Pedro Alves <pedro@codesourcery.com>
20236
20237 * server.c (handle_query): Handle "qAttached".
20238
32de4b9d
NS
202392009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20240
20241 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20242 GPLv3, update license URL.
20243
2aecd87f
DE
202442009-03-01 Doug Evans <dje@google.com>
20245
93efd302 20246 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
20247 (server_h): Add gdb_signals.h.
20248 (signals.o): Update.
20249 * server.h (target_signal_from_host,target_signal_to_host_p)
20250 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20251
86b1f9c5
PM
202522009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20253
20254 * remote-utils.c (getpkt): Also generate remote-debug
20255 information if noack_mode is set.
20256
4aa995e1
PA
202572009-02-06 Pedro Alves <pedro@codesourcery.com>
20258
20259 * server.c (handle_query): Report qXfer:siginfo:read and
20260 qXfer:siginfo:write as supported and handle them.
20261 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20262 * linux-low.c (linux_xfer_siginfo): New.
20263 (linux_target_ops): Set it.
20264
62709adf
PA
202652009-01-26 Pedro Alves <pedro@codesourcery.com>
20266
20267 * server.c (gdbserver_usage): Mention --remote-debug.
20268 (main): Accept '--remote-debug' switch.
20269
aef93bd7
DE
202702009-01-18 Doug Evans <dje@google.com>
20271
20272 * regcache.c (new_register_cache): No need to check result of xcalloc.
20273 * server.c (handle_search_memory): Back out calls to xmalloc,
20274 result is checked and error is returned to user upon failure.
20275 (handle_query): Ditto. Add more checks for result of malloc.
20276 (handle_v_cont): Check result of malloc, report error back to
20277 user upon failure.
20278 (handle_v_run): Ditto. Call freeargv.
20279 * server.h (freeargv): Declare.
20280 * utils.c (freeargv): New fn.
20281
54363045
DE
202822009-01-15 Doug Evans <dje@google.com>
20283
f626972c
DE
20284 * gdbreplay.c (perror_with_name): Make arg const char *.
20285 * server.h (target_signal_to_name): Make return type const char *.
0842e787 20286 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 20287 * utils.c (perror_with_name): Make arg const char *.
54363045 20288
18aae699
PA
202892009-01-14 Pedro Alves <pedro@codesourcery.com>
20290
20291 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20292 when handling a EXIT_PROCESS_DEBUG_EVENT.
20293
ff703abe
JB
202942009-01-06 Joel Brobecker <brobecker@adacore.com>
20295
20296 * gdbreplay.c (gdbreplay_version): Update copyright year.
20297 * server.c (gdbserver_version): Likewise.
20298
f21cc1a2 202992009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
20300
20301 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 20302 (handle_extended_wait): Improve comment.
0e21c1ec 20303
bca929d3
DE
203042008-12-13 Doug Evans <dje@google.com>
20305
20306 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20307 * server.h (ATTR_MALLOC): New macro.
20308 (xmalloc,xcalloc,xstrdup): Declare.
20309 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20310 * inferiors.c: Ditto.
20311 * linux-low.c: Ditto.
20312 * mem-break.c: Ditto.
20313 * regcache.c: Ditto.
20314 * remote-utils.c: Ditto.
20315 * server.c: Ditto.
20316 * target.c: Ditto.
20317 * win32-low.c: Ditto.
20318
97438e3f
DE
203192008-12-12 Doug Evans <dje@google.com>
20320
896c7fbb
DE
20321 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20322 in debugging printf.
20323
97438e3f
DE
20324 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20325
e3b886f8
DE
203262008-12-09 Doug Evans <dje@google.com>
20327
20328 * linux-low.h (struct process_info): Delete member tid, unused.
20329 * thread-db.c (find_one_thread): Update.
20330 (maybe_attach_thread): Update.
20331
07e059b5
VP
203322008-12-02 Pedro Alves <pedro@codesourcery.com>
20333
889bf7c5
PA
20334 * target.h (struct target_ops): Add qxfer_osdata member.
20335 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20336 and dirent.h.
20337 (linux_qxfer_osdata): New functions.
20338 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20339 callback.
20340 * server.c (handle_query): Handle "qXfer:osdata:read:".
20341 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20342 (buffer_xml_printf): New functions.
20343 * server.h (struct buffer): New.
20344 (buffer_grow_str, buffer_grow_str0): New macros.
20345 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20346 (buffer_xml_printf): Declare.
07e059b5 20347
4cab47ab
DE
203482008-11-24 Doug Evans <dje@google.com>
20349
20350 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20351
f142445f
DJ
203522008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20353
20354 * server.c (handle_v_run): Always use the supplied argument list.
20355
d0107bb6 203562008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20357
d0107bb6
BW
20358 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20359 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20360
2c4ad781
TJB
203612008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20362
20363 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20364 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20365 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20366 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20367 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20368 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20369 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20370 XML target descriptions.
20371 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20372 when inferior is running on an ISA 2.05 or later processor. Add
20373 special case to return offset for full 64-bit slot of FPSCR when
20374 in 32-bits.
20375
dfb64f85
DJ
203762008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20377
20378 * Makefile.in (SFILES, clean): Added sparc64 files.
20379 (reg-sparc64.o, reg-sparc64.c): New.
20380 * configure.srv (sparc*-*-linux*): New configuration.
20381 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20382 syscall arguments for SPARC.
20383 (regsets_store_inferior_registers): Likewise.
20384 * linux-sparc-low.c: New file.
20385
66b6e1dd
DE
203862008-10-21 Doug Evans <dje@google.com>
20387
20388 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20389 (READLINE_DIR,READLINE_DEP): Delete.
20390 (INTERNAL_CFLAGS): Update.
20391 (LINTFLAGS): Update.
20392
9b710a42
PA
203932008-10-10 Pedro Alves <pedro@codesourcery.com>
20394
20395 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20396 whole argv from the last run, not just argv[0].
20397
5822d809
PA
203982008-09-08 Pedro Alves <pedro@codesourcery.com>
20399
20400 * regcache.c (new_register_cache): Return NULL if the register
20401 cache size isn't known yet.
20402 (free_register_cache): Avoid dereferencing a NULL regcache.
20403
74aac56f
DJ
204042008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20405
20406 * configure.srv: Merge MIPS and MIPS64.
20407
400b20f5
MR
204082008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20409
20410 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20411
677c5bb1
LM
204122008-08-18 Luis Machado <luisgpm@br.ibm.com>
20413
20414 * Makefile.in: Add required vsx dependencies.
20415
20416 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20417 Declare init_registers_powerpc_vsx32l.
20418 Declare init_registers_powerpc_vsx64l.
20419 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20420 (ppc_arch_setup): Check for VSX in hwcap.
20421 (ppc_fill_vsxregset): New function.
20422 (ppc_store_vsxregset): New function.
20423 Add new VSX entry in regset_info target_regsets.
20424
20425 * configure.srv: Add new VSX dependencies.
20426
a6f3e723
SL
204272008-08-12 Pedro Alves <pedro@codesourcery.com>
20428
20429 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20430 (remote_open): Set or clear transport_is_reliable.
20431 (putpkt_binary): Don't expect acks in noack mode.
20432 (getpkt): Don't send ack/nac in noack mode.
20433 * server.c (handle_general_set): Handle QStartNoAckMode.
20434 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20435 qSupported.
20436 (main): Reset noack_mode on every connection.
20437 * server.h (noack_mode): Declare.
20438
a417dc56
RW
204392008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20440
20441 * Makefile.in (GDBREPLAY_OBS): New variable.
20442 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20443
3221518c
UW
204442008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20445 Daniel Jacobowitz <dan@codesourcery.com>
20446
20447 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20448 (usr_store_inferior_registers): Likewise.
20449 (regsets_store_inferior_registers): Likewise.
20450
ec56be1b
PA
204512008-07-31 Rolf Jansen <rj@surtec.com>
20452 Pedro Alves <pedro@codesourcery.com>
20453
20454 * configure.ac: Check for memmem declaration.
20455 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20456 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20457 (disable_packet_qfThreadInfo): Unconditionally compile.
20458 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20459 * configure, config.in: Regenerate.
20460
2fe5e3ff
DE
204612008-07-28 Doug Kwan <dougkwan@google.com>
20462
20463 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20464 (linux_write_memory): Remove declaration of errno.
20465
836acd6d
UW
204662008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20467
20468 * linux-low.c (handle_extended_wait): Do not use "status"
20469 variable uninitialized.
20470
aeba519e
PA
204712008-07-07 Pedro Alves <pedro@codesourcery.com>
20472
20473 * server.c (handle_v_attach): Inhibit reporting dll changes.
20474
db42f210
PA
204752008-06-27 Pedro Alves <pedro@codesourcery.com>
20476
20477 * remote-utils.c (prepare_resume_reply): If requested, don't
20478 output "thread:TID" in the T stop reply.
20479
20480 * server.c (disable_packet_vCont, disable_packet_Tthread)
20481 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20482 (handle_query): If requested, disable support for qC, qfThreadInfo
20483 and qsThreadInfo.
20484 (handle_v_requests): If requested, disable support for vCont.
20485 (gdbserver_show_disableable): New.
20486 (main): Handle --disable-packet and --disable-packet=LIST.
20487
20488 * server.h (disable_packet_vCont, disable_packet_Tthread)
20489 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20490
8e4c5421
CD
204912008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20492
20493 * server.c (gdbserver_usage): Mention --version.
20494
6e23a804
DJ
204952008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20496
20497 * Makefile.in (gdbreplay.o): New rule.
20498
90aa6a40
JM
204992008-06-06 Joseph Myers <joseph@codesourcery.com>
20500
20501 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20502 message, not gdbserver.
20503
c16158bc 205042008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20505 Nathan Sidwell <nathan@codesourcery.com>
20506 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20507
20508 * acinclude.m4: Include ../../config/acx.m4.
20509 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20510 * configure, config.in: Regenerate.
20511 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20512 * server.c (gdbserver_version): Print PKGVERSION.
20513 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20514 (main): Adjust gdbserver_usage calls.
20515 * gdbreplay.c (version, host_name): Add declarations.
20516 (gdbreplay_version, gdbreplay_usage): New.
20517 (main): Accept --version and --help options.
20518
aeb75bf5
DJ
205192008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20520
20521 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20522 (arm_breakpoint_at): Handle Thumb.
20523 (the_low_target): Add comment.
20524
76b233dd
UW
205252008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20526
20527 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20528
08388c79
DE
205292008-05-09 Doug Evans <dje@google.com>
20530
a3c83fae
DE
20531 * server.h (decode_search_memory_packet): Declare.
20532 * remote-utils.c (decode_search_memory_packet): New fn.
20533 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20534 (handle_search_memory): New fn.
20535 (handle_query): Process qSearch:memory packets.
20536
bb9c3d36
UW
205372008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20538
20539 * regcache.c (registers_length): Remove.
20540 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20541 full register packet.
20542 * regcache.h (registers_length): Remove prototype.
20543 * server.h (PBUFSIZ): Define to 16384.
20544
7284e1be
UW
205452008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20546
20547 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20548 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20549 powerpc-64l.o, and powerpc-altivec64l.o.
20550 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20551 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20552 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20553 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20554 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20555 to srv_xmlfiles.
20556
20557 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20558 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20559 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20560 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20561 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20562 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20563 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20564 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20565 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20566 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20567 (clean): Update.
20568
20569 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20570 (init_registers_powerpc_32l): ... this new prototype.
20571 (init_registers_powerpc_32): Remove, replace by ...
20572 (init_registers_powerpc_altivec32l): ... this new prototype.
20573 (init_registers_powerpc_e500): Remove, replace by ...
20574 (init_registers_powerpc_e500l): ... this new prototype.
20575 (init_registers_ppc64): Remove, replace by ...
20576 (init_registers_powerpc_64l): ... this new prototype.
20577 (init_registers_powerpc_64): Remove, replace by ...
20578 (init_registers_powerpc_altivec64l): ... this new prototype.
20579 (ppc_num_regs): Set to 73.
20580 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20581 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20582 (ppc_cannot_store_register): Handle orig_r3 and trap.
20583 (ppc_arch_setup): Update init_registers_... calls.
20584 (ppc_fill_gregset): Handle orig_r3 and trap.
20585
20586 * inferiors.c (clear_inferiors): Reset current_inferior.
20587
fdc59709
PB
205882008-04-23 Paolo Bonzini <bonzini@gnu.org>
20589
889bf7c5
PA
20590 * acinclude.m4: Add override.m4.
20591 * configure: Regenerate.
fdc59709 20592
c9b2f845
UW
205932008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20594
20595 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20596 initial call to init_register_ppc64.
20597
550512b8
UW
205982008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20599
43aaf8b6
PA
20600 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20601 single powerpc*-*-linux* case.
550512b8
UW
20602 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20603
b6430ec3
UW
206042008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20605
20606 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20607 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20608 from reg_xmlfiles.
20609 * linux-ppc-low.c: Include <elf.h>.
20610 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20611 (ppc_hwcap): New global variable.
20612 (ppc_regmap): Remove __SPE__ #ifdef sections.
20613 (ppc_regmap_e500): New global variable.
20614 (ppc_cannot_store_register): Update __SPE__ special case.
20615 (ppc_get_hwcap): New function.
20616 (ppc_arch_setup): Use it to determine whether inferior supports
20617 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20618 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20619 Do not access registers if target does not support AltiVec.
20620 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20621 Do not access registers if target does not support SPE.
20622 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20623
52fa2412
UW
206242008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20625
20626 * linux-low.c (disabled_regsets, num_regsets): New.
20627 (use_regsets_p): Delete.
20628 (linux_wait_for_process): Clear disabled_regsets.
20629 (regsets_fetch_inferior_registers): Check and set it.
20630 (regsets_store_inferior_registers): Likewise.
20631 (linux_fetch_registers, linux_store_registers): Do not use
20632 use_regsets_p.
20633 (initialize_low): Allocate disabled_regsets.
20634
e28b3332
DJ
206352008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20636
20637 * Makefile.in (LIBOBJS): New.
20638 (OBS): Use LIBOBJS.
20639 (memmem.o): New rule.
20640 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20641 * configure: Regenerated.
20642
4536995d
UW
206432008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20644
20645 * server.c (handle_query): Never return "unsupported" for
20646 qXfer:features:read queries.
20647
221c031f
UW
206482008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20649
20650 * server.c (get_features_xml): Fix inverted condition.
20651 (handle_query): Always support qXfer:feature:read.
20652
ccd213ac
DJ
206532008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20654
20655 * server.c (wrapper_argv): New.
20656 (start_inferior): Handle wrapper_argv. If set, expect an extra
20657 trap.
20658 (gdbserver_usage): Document --wrapper.
20659 (main): Parse --wrapper.
20660
6fe305f7
UW
206612008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20662
20663 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20664 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20665 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20666 (ppc_set_pc): Likewise.
20667 (ppc_arch_setup): New function.
20668 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20669 of collect_register.
889bf7c5 20670 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20671
5b0a002e
UW
206722008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20673
20674 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20675 instead of linux-ppc64-low.o.
20676 * linux-ppc64-low.c: Remove file.
20677 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20678 (linux-ppc64-low.o): Remove rule.
20679
20680 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20681 (init_registers_powerpc_64): Likewise.
20682 (ppc_regmap): Conditionally define depending on __powerpc64__.
20683 (ppc_cannot_store_register): Do not special-case "fpscr" when
20684 compiled on __powerpc64__.
20685 (ppc_collect_ptrace_register): New function.
20686 (ppc_supply_ptrace_register): New function.
20687 (ppc_breakpoint): Change type to "unsigned int".
20688 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20689 (the_low_target): Conditionally provide initializers for the
889bf7c5 20690 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20691 collect_ptrace_register and supply_ptrace_register members.
20692
9b4b61c8
UW
206932008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20694
20695 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20696 * server.c (gdbserver_xmltarget): Define.
20697 (get_features_xml): Use it to replace "target.xml" and arch_string.
20698
20699 * configure.srv: Remove srv_xmltarget. Add XML files that were
20700 mentioned there to srv_xmlfiles instead. Remove conditional tests
20701 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20702 srv_xmlfiles and srv_regobj to include all possible choices.
20703 * configure.ac (srv_xmltarget): Remove.
20704 (srv_xmlfiles): Do not add "target.xml".
20705 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20706 checks for supplementary target information.
20707 * configure: Regenerate.
20708 * Makefile.in (XML_TARGET): Remove.
20709 (target.xml): Remove rule.
20710 (clean): Do not clean up target.xml.
20711 (.PRECIOUS): Do not mention target.xml.
20712
20713 * target.h (struct target_ops): Remove arch_string member.
20714 * linux-low.c (linux_arch_string): Remove.
20715 (linux_target_ops): Remove arch_string initializer.
20716 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20717 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20718 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20719 * spu-low.c (spu_arch_string): Remove.
20720 (spu_target_ops): Remove arch_string initializer.
20721 * win32-low.c (win32_arch_string): Remove.
20722 (win32_target_ops): Remove arch_string initializer.
20723 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20724 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20725 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20726
ee1a7ae4
UW
207272008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20728
20729 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20730 by collect_ptrace_register and supply_ptrace_register hooks.
20731 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20732 instead of checking for the_low_target.left_pad_xfer.
20733 (usr_store_inferior_registers): Use collect_ptrace_register callback
20734 instead of checking for the_low_target.left_pad_xfer.
20735
20736 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20737 (s390_supply_ptrace_register): Likewise.
20738 (s390_fill_gregset): Call s390_collect_ptrace_register.
20739 (the_low_target): Update.
20740
20741 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20742 (ppc_supply_ptrace_register): Likewise.
20743 (the_low_target): Update.
20744
20745 * linux-i386-low.c (the_low_target): Update.
20746 * linux-x86-64-low.c (the_low_target): Update.
20747
d61ddec4
UW
207482008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20749
20750 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20751 reg-s390.o and reg-s390x.o.
20752
20753 * linux-low.c (new_inferior): New global variable.
20754 (linux_create_inferior, linux_attach): Set it.
20755 (linux_wait_for_process): Call the_low_target.arch_setup after the
20756 target has stopped for the first time.
20757 (initialize_low): Do not call the_low_target.arch_setup.
20758
20759 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20760 (s390_set_pc): Likewise.
20761 (s390_arch_setup): New function.
20762 (the_low_target): Use s390_arch_setup as arch_setup routine.
20763
20764 * regcache.c (realloc_register_cache): New function.
20765 (set_register_cache): Call it for each existing regcache.
20766
d05b4ac3
UW
207672008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20768
20769 * server.h (init_registers): Remove prototype.
20770
20771 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20772 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20773 instead of init_registers ().
20774 * linux-arm-low.c (init_registers_arm): Add prototype.
20775 (init_registers_arm_with_iwmmxt): Likewise.
20776 (the_low_target): Add initializer for arch_setup field.
20777 * linux-cris-low.c (init_registers_cris): Add prototype.
20778 (the_low_target): Add initializer for arch_setup field.
20779 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20780 (the_low_target): Add initializer for arch_setup field.
20781 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20782 (the_low_target): Add initializer for arch_setup field.
20783 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20784 (the_low_target): Add initializer for arch_setup field.
20785 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20786 (the_low_target): Add initializer for arch_setup field.
20787 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20788 (the_low_target): Add initializer for arch_setup field.
20789 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20790 (init_registers_mips64_linux): Likewise.
20791 (the_low_target): Add initializer for arch_setup field.
20792 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20793 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20794 (the_low_target): Add initializer for arch_setup field.
20795 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20796 (init_registers_powerpc_64): Likewise.
20797 (the_low_target): Add initializer for arch_setup field.
20798 * linux-s390-low.c (init_registers_s390): Add prototype.
20799 (init_registers_s390x): Likewise.
20800 (the_low_target): Add initializer for arch_setup field.
20801 * linux-sh-low.c (init_registers_sh): Add prototype.
20802 (the_low_target): Add initializer for arch_setup field.
20803 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20804 (the_low_target): Add initializer for arch_setup field.
20805 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20806 (the_low_target): Add initializer for arch_setup field.
20807
20808 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20809 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20810 instead of init_registers ().
20811 * win32-arm-low.c (init_registers_arm): Add prototype.
20812 (the_low_target): Add initializer for arch_setup field.
20813 * win32-i386-low.c (init_registers_i386): Add prototype.
20814 (the_low_target): Add initializer for arch_setup field.
20815
20816 * spu-low.c (init_registers_spu): Add prototype.
20817 (initialize_low): Call initialie_registers_spu () instead of
20818 initialize_registers ().
20819
fd96d250
PA
208202008-02-19 Pedro Alves <pedro@codesourcery.com>
20821
20822 * server.c (handle_v_requests): When handling the vRun and vAttach
20823 packets, if already debugging a process, don't kill it. Return an
20824 error instead.
20825
d41b6bb4
DJ
208262008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20827
20828 * server.c (handle_query): Correct length check.
20829
5ac588cf
PA
208302008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20831
20832 * win32-low.c (do_initial_child_stuff): Add process handle
20833 parameter. Set current_process_handle and current_process_id from the
20834 parameters. Clear globals.
20835 (win32_create_inferior): Don't set current_process_handle and
20836 current_process_id here. Instead pass them on the call to
20837 do_initial_child_stuff.
20838 (win32_attach): Likewise.
20839 (win32_clear_inferiors): New.
20840 (win32_kill): Don't close the current process handle or the
20841 current thread handle here. Instead call win32_clear_inferiors.
20842 (win32_detach): Don't open a new handle to the process. Call
20843 win32_clear_inferiors.
20844 (win32_join): Don't rely on current_process_handle; open a new
20845 handle using the process id.
20846 (win32_wait): Call win32_clear_inferiors when the inferior process
20847 has exited.
20848
ecd7ecbc
DJ
208492008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20850
20851 * server.c (monitor_show_help): Add "exit".
20852
1525d545
MG
208532008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20854
ecd7ecbc 20855 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20856 (clean): Add reg-xtensa.c.
20857 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20858 * configure.srv (xtensa*-*-linux*) New target.
20859 * linux-xtensa-low.c: New.
20860 * xtensa-xtregs.c: New.
1525d545 20861
59a016f0
PA
208622008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20863
20864 * hostio.c: Don't include errno.h.
20865 (errno_to_fileio_errno): Move to hostio-errno.
20866 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20867 error number outputting to the target->hostio_last_error callback.
20868 (hostio_packet_error): Use FILEIO_EINVAL directly.
20869 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20870 calls to hostio_error.
20871 * hostio-errno.c: New.
20872 * server.h (hostio_last_error_from_errno): Declare.
20873 * target.h (target_ops): Add hostio_last_error member.
20874 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20875 as hostio_last_error handler.
889bf7c5 20876 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20877 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20878 (wince_hostio_last_error): New functions.
20879 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20880 as hostio_last_error handler.
20881 (win32_target_ops) [!_WIN32_WCE]: Register
20882 hostio_last_error_from_errno as hostio_last_error handler.
20883 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20884 (hostio-errno.o): New rule.
20885 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20886 * configure.srv (srv_hostio_err_objs): New variable. Default to
20887 hostio-errno.o.
20888 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20889 * configure: Regenerate.
20890
2d717e4f
DJ
208912008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20892
20893 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20894 (linux_kill, linux_detach): Clean up the process list.
20895 * remote-utils.c (remote_open): Improve port number parsing.
20896 (putpkt_binary, input_interrupt): Only send interrupts if the target
20897 is running.
20898 * server.c (extended_protocol): Make static.
20899 (attached): Define earlier.
20900 (exit_requested, response_needed, program_argv): New variables.
20901 (target_running): New.
20902 (start_inferior): Clear attached here.
20903 (attach_inferior): Set attached here.
20904 (require_running): Define.
20905 (handle_query): Use require_running and target_running. Implement
20906 "monitor exit".
20907 (handle_v_attach, handle_v_run): New.
20908 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20909 (gdbserver_usage): Update.
20910 (main): Redo argument parsing. Handle --debug and --multi. Handle
20911 --attach along with other options or after the port. Save
20912 program_argv. Support no initial program. Resynchronize
20913 communication with GDB after an error. Handle "monitor exit".
20914 Use require_running and target_running. Always allow the extended
20915 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20916 restart in extended mode.
20917 * README: Refer to the GDB manual. Update --attach usage.
20918
7407e2de
AS
209192007-12-20 Andreas Schwab <schwab@suse.de>
20920
20921 * linux-low.c (STACK_SIZE): Define.
20922 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20923 (linux_test_for_tracefork): Likewise.
20924
b65d95c5
DJ
209252007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20926
20927 * linux-low.c (linux_wait_for_event): Update messages. Do not
20928 reinsert auto-delete breakpoints.
20929 * mem-break.c (struct breakpoint): Change return type of handler to
20930 int.
20931 (set_breakpoint_at): Update handler type.
20932 (reinsert_breakpoint_handler): Return 1 instead of calling
20933 delete_breakpoint.
20934 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20935 setting a new one.
20936 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20937 * mem-break.h (set_breakpoint_at): Update handler type.
20938 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20939 * win32-low.c (auto_delete_breakpoint): New.
20940 (get_child_debug_event): Use it.
20941
4e799345
DJ
209422007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20943
20944 * configure.ac: Check for pread and pwrite.
20945 * hostio.c (handle_pread): Fall back to lseek and read.
20946 (handle_pwrite): Fall back to lseek and write.
20947 * config.in, configure: Regenerated.
20948
27524b67
DJ
209492007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20950
20951 * server.c (myresume): Add own_buf argument.
20952 (main): Update calls.
20953
a20d5e98
DJ
209542007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20955
20956 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20957 * remote-utils.c (remote_open): Do not call disable_async_io.
20958 (block_async_io): Delete.
20959 (unblock_async_io): Make static.
20960 (initialize_async_io): New.
20961 * server.c (handle_v_cont): Handle async I/O here.
20962 (myresume): Likewise. Move other common resume tasks here...
20963 (main): ... from here. Call initialize_async_io. Disable async
20964 I/O before the main loop.
20965 * server.h (initialize_async_io): Declare.
20966 (block_async_io, unblock_async_io): Delete prototypes.
20967 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20968
b79d787e
DJ
209692007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20970
20971 * remote-utils.c (readchar): Allow binary data in received messages.
20972
d97903b2
PA
209732007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20974
20975 * win32-low.c (attaching): New global.
20976 (win32_create_inferior): Clear the `attaching' global.
20977 (win32_attach): Set the `attaching' global.
20978 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20979 attaching. Only set a breakpoint at the entry point if not
20980 attaching.
20981
311de423
PA
209822007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20983
20984 * server.c (main): Don't report dll events on the initial
20985 connection on attaches.
20986
6c2d16d2
PA
209872007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20988
20989 * server.c (main): Relax numerical bases supported for the pid of
20990 the --attach command line argument.
20991
5ca906e6
PA
209922007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20993
20994 * win32-low.c (win32_attach): Call OpenProcess before
20995 DebugActiveProcess, not after. Add last error output to error
20996 call.
20997
9c6c8194
PA
209982007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20999
21000 * win32-low.c (win32_get_thread_context)
21001 (win32_set_thread_context): New functions.
21002 (thread_rec): Use win32_get_thread_context.
21003 (continue_one_thread, win32_resume): Use win32_set_thread_context.
21004 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
21005 field.
21006
4d5d1aaa
PA
210072007-12-03 Leo Zayas
21008 Pedro Alves <pedro_alves@portugalmail.pt>
21009
21010 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
21011 global variables.
21012 (child_add_thread): Minor cleanup.
21013 (child_continue): Resume artificially suspended threads before
21014 calling ContinueDebugEvent.
21015 (suspend_one_thread): New.
21016 (fake_breakpoint_event): New.
21017 (get_child_debug_event): Change return type to int. Check here if
21018 gdb sent an interrupt request. If a soft interrupt was requested,
21019 fake a breakpoint event. Return 0 if there is no event to handle,
21020 and 1 otherwise.
21021 (win32_wait): Don't check here if gdb sent an interrupt request.
21022 Ensure there is a valid event to handle.
21023 (win32_request_interrupt): Add soft interruption method as last
21024 resort.
21025
c436e841
PA
210262007-12-03 Leo Zayas
21027 Pedro Alves <pedro_alves@portugalmail.pt>
21028
21029 * win32-low.h (win32_thread_info): Add descriptions to the
21030 structure members. Replace `suspend_count' counter by a
21031 `suspended' flag.
21032 * win32-low.c (thread_rec): Update condition of when to get the
21033 context from the inferior. Rely on ContextFlags being set if it
21034 has already been retrieved. Only suspend the inferior thread if
21035 we haven't already. Warn if that fails.
21036 (continue_one_thread): s/suspend_count/suspended/. Only call
21037 ResumeThread once. Warn if that fails.
21038
e7b5fa67
PA
210392007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21040
21041 * win32-low.c (win32_wait): Don't read from the inferior when it
21042 has already exited.
21043
a385171d
PA
210442007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21045
21046 * Makefile.in (win32_low_h): New variable.
21047 (win32-low.o): Add dependency on $(win32_low_h).
21048 (win32-arm-low.o, win32-i386-low.o): New rules.
21049
f80c84b3
DJ
210502007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21051
21052 * hostio.c: Correct copyright year.
21053
a6b151f1
DJ
210542007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21055
21056 * Makefile.in (OBS): Add hostio.o.
21057 (hostio.o): New rule.
21058 * server.h (handle_vFile): Declare.
21059 * hostio.c: New file.
21060 * server.c (handle_v_requests): Take packet_len and new_packet_len
21061 for binary packets. Call handle_vFile.
21062 (main): Update call to handle_v_requests.
21063
f9387fc3
DJ
210642007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21065
21066 * linux-low.c: Include <sched.h>.
21067
51c2684e
DJ
210682007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21069
21070 * linux-low.c (linux_tracefork_grandchild): New.
21071 (linux_tracefork_child): Use clone.
21072 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21073
75f83163
JB
210742007-10-31 Joel Brobecker <brobecker@adacore.com>
21075
21076 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21077
da5898ce
DJ
210782007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21079
21080 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21081
24a09b5f
DJ
210822007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21083
21084 * inferiors.c (change_inferior_id): Delete.
21085 (add_pid_to_list, pull_pid_from_list): New.
21086 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21087 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21088 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21089 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21090 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21091 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21092 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21093 (using_threads): Always set to 1.
21094 (handle_extended_wait): New.
21095 (add_process): Do not set TID.
21096 (linux_create_inferior): Set must_set_ptrace_flags.
21097 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21098 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21099 (linux_thread_alive): Rename TID argument to LWPID.
21100 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21101 (linux_wait_for_event): Do not use TID or check using_threads. Update
21102 call to dead_thread_notify. Call handle_extended_wait.
21103 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21104 (send_sigstop): Delete sigstop_sent.
21105 (wait_for_sigstop): Avoid TID.
21106 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21107 (linux_test_for_tracefork): New.
21108 (linux_lookup_signals): Use thread_db_active and
21109 linux_supports_tracefork_flag.
21110 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21111 * linux-low.h (get_process_thread): Avoid TID.
21112 (struct process_ifo): Move thread_known and tid to the end. Remove
21113 sigstop_sent.
21114 (linux_attach_lwp, thread_db_init): Update prototypes.
21115 * server.h (change_inferior_id): Delete prototype.
21116 (add_pid_to_list, pull_pid_from_list): New prototypes.
21117 * thread-db.c (thread_db_use_events): New.
21118 (find_first_thread): Rename to...
21119 (find_one_thread): ...this. Update callers and messages. Do not
21120 call fatal. Check thread_db_use_events. Do not call
21121 change_inferior_id or new_thread_notify.
21122 (maybe_attach_thread): Update. Do not call new_thread_notify.
21123 (thread_db_init): Set thread_db_use_events. Check use_events.
21124 * utils.c (fatal, warning): Correct message prefix.
21125
30ed0a8f
DJ
211262007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21127
21128 * Makefile.in (clean): Remove new files.
21129 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21130 (powerpc-64.o, powerpc-64.c): New rules.
21131 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21132 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21133 with SPE.
21134 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21135 SPE targets.
21136 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21137 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21138 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21139 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21140 (target_regsets): Add AltiVec and SPE register sets.
21141 * configure.ac: Check for AltiVec and SPE.
21142 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21143 (ppc_fill_vrregset, ppc_store_vrregset): New.
21144 (target_regsets): Add AltiVec register set.
21145 * configure: Regenerated.
21146
fd462a61
DJ
211472007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21148
21149 * linux-low.c (O_LARGEFILE): Define.
21150 (linux_read_memory): Use /proc/PID/mem.
21151 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21152 * configure, config.in: Regenerated.
21153
69f223ed
DJ
211542007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21155
21156 * linux-low.c (linux_wait_for_event): Do not pass signals while
21157 single-stepping.
21158
aec18585
PA
211592007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21160
21161 * win32-low.c (create_process): New.
21162 (win32_create_inferior): Use create_process instead of
21163 CreateProcess. If create_process failed retry appending an ".exe"
21164 suffix. Store the GetLastError result immediatelly after
21165 create_process calls and use it on the call to error.
21166
34d86ddd
PA
211672007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21168
21169 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21170
5a0e3bd0
JB
211712007-08-23 Joel Brobecker <brobecker@adacore.com>
21172
21173 * configure.ac: Switch license to GPLv3.
21174
f88c79e6
MS
211752007-08-01 Michael Snyder <msnyder@access-company.com>
21176
21177 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21178
6b3d9b83
PA
211792007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21180
21181 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21182 typedef.
21183 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21184 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21185 CloseToolhelp32Snapshot.
21186 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21187 CloseToolhelp32Snapshot.
21188
c588c53c
MS
211892007-07-27 Michael Snyder <michael.snyder@access-company.com>
21190
21191 * server.c (main): Check for inferior exit before main loop.
21192
aa0403d9
PA
211932007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21194
21195 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21196 instead of on tmp_desc.
21197
255e7678
DJ
211982007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21199 Daniel Jacobowitz <dan@codesourcery.com>
21200
21201 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21202 (add_thread): Minor cleanups.
21203 (clear_inferiors): Move lower in the file. Clear the DLL
21204 list.
21205 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21206 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21207 (xml_escape_text): New.
21208 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21209 for qSupported.
21210 (handle_v_cont): Report errors.
21211 (gdbserver_version): Update.
21212 (main): Correct size of own_buf. Do not report initial DLL events.
21213 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21214 (unloaded_dll, xml_escape_text): New.
21215 * win32-low.c (enum target_waitkind): Update comments.
21216 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21217 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21218 (win32_EnumProcessModules, win32_GetModuleInformation)
21219 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21220 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21221 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21222 (win32_Module32First, win32_Module32Next, load_toolhelp)
21223 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21224 (get_child_debug_event): Handle DLL events.
21225 (win32_wait): Likewise.
21226
0d37add9
DJ
212272007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21228
21229 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21230 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21231
45e2715e
PA
212322007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21233
21234 * win32-low.c (handle_output_debug_string): Ignore event if not
21235 waiting.
21236
c5674cf1
PA
212372007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21238
21239 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21240
2bbe3cc1
DJ
212412007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21242
21243 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21244
ae13219e
DJ
212452007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21246
21247 * inferiors.c (change_inferior_id): Add comment.
21248 * linux-low.c (check_removed_breakpoint): Add an early
21249 prototype. Improve debug output.
21250 (linux_attach): Doc update.
21251 (linux_detach_one_process, linux_detach): Clean up before releasing
21252 each process.
21253 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21254 * linux-low.h (struct process_info): Doc improvement.
21255 * mem-break.c (delete_all_breakpoints): New.
21256 * mem-break.h (delete_all_breakpoints): New prototype.
21257 * thread-db.c (find_first_thread): New.
21258 (thread_db_create_event): Call it instead of
21259 thread_db_find_new_threads. Clean up unused variables.
21260 (maybe_attach_thread): Remove first thread handling.
21261 (thread_db_find_new_threads): Use find_first_thread.
21262 (thread_db_get_tls_address): Likewise.
21263
4105de34
DJ
212642007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21265
21266 * thread-db.c (thread_db_find_new_threads): Add prototype.
21267 (thread_db_create_event): Check for the main thread before adding
21268 a new thread.
21269 (maybe_attach_thread): Only enable event reporting if TID == 0.
21270 (thread_db_get_tls_address): Check for new threads.
21271
2b876972
DJ
212722007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21273
21274 * linux-low.c (linux_create_inferior): Try execv before execvp.
21275 * spu-low.c (spu_create_inferior): Likewise.
21276
7a245884
DJ
212772007-06-13 Mike Frysinger <vapier@gentoo.org>
21278
21279 * linux-low.c (linux_create_inferior): Change execv to execvp.
21280 * spu-low.c (spu_create_inferior): Likewies.
21281
117ce543
DJ
212822007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21283
21284 * Makefile.in (clean): Clean new files instead of deleted ones.
21285 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21286 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21287 rules.
21288 * configure.srv: Specify XML files and new regformats for MIPS and
21289 MIPS64 GNU/Linux.
21290 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21291 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21292 an entry for the restart register.
21293 (mips_cannot_fetch_register, mips_cannot_store_register)
21294 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21295 register names to match the XML descriptions.
21296 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21297 restart register instead of $0.
21298
0e7f50da
UW
212992007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21300 Markus Deuling <deuling@de.ibm.com>
21301
21302 * remote-utils.c (decode_xfer_write): New function.
21303 * server.h (decode_xfer_write): Add prototype.
21304 * server.c (handle_query): Add PACKET_LEN argument. Support
21305 qXfer:spu:read and qXfer:spu:write packets.
21306 (main): Pass packet_len to handle_query.
21307 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21308 * target.h (target_ops): Add qxfer_spu.
21309
374c1d38
UW
213102007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21311
21312 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21313 accessing non-seekable spufs files.
21314
bb63802a
UW
213152007-05-16 Markus Deuling <deuling@de.ibm.com>
21316
889bf7c5 21317 * server.c (handle_query): Add reply for qC packet.
bb63802a 21318
7390519e
PA
213192007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21320 Leo Zayas <lerele@champenstudios@com>
21321
21322 * server.h (check_remote_input_interrupt_request): New function.
21323 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21324 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21325 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21326 (check_remote_input_interrupt_request): New function.
21327 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 21328 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
21329 winapi_GenerateConsoleCtrlEvent): New typedefs.
21330 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21331 to 250 ms.
21332 (win32_wait): Check for remote interrupt request
21333 with check_remote_input_interrupt_request.
21334 (win32_request_interrupt): New function.
21335 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21336
34b34921
PA
213372007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21338
21339 * win32-low.c (debug_registers_changed,
21340 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21341 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21342 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21343 (thread_rec): Get context using the low target.
21344 (child_add_thread): Call thread_added on the low target,
21345 which does the same thing.
21346 (regptr): Delete.
21347 (do_initial_child_stuff): Remove debug registers references.
21348 Set context using the low target. Resume threads after
21349 setting the contexts.
21350 (child_continue): Remove dead variable. Remove debug
21351 registers references.
21352 (child_fetch_inferior_registers): Go through the low target.
21353 (do_child_store_inferior_registers): Remove.
21354 (child_store_inferior_registers): Go through the low target.
21355 (win32_resume): Remove debug registers references.
21356 Set context using the low target.
21357 (handle_exception): Change return type to void. Don't record
21358 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21359 first chance exception.
889bf7c5 21360 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21361 goto loop. Always return after waiting for debug event.
21362 (win32_wait): Convert to switch statement. Handle spurious
21363 events.
21364
21365 * win32-i386-low.c (debug_registers_changed,
21366 debug_registers_used): New.
21367 (initial_stuff): Rename to ...
21368 (i386_initial_stuff): ... this. Clear debug registers
21369 state variables.
21370 (store_debug_registers): Delete.
21371 (i386_get_thread_context): New.
21372 (load_debug_registers): Delete.
21373 (i386_set_thread_context): New.
21374 (i386_thread_added): New.
21375 (single_step): Rename to ...
21376 (i386_single_step): ... this.
21377 (do_fetch_inferior_registers): Rename to ...
21378 (i386_fetch_inferior_register): ... this.
21379 (i386_store_inferior_register): New.
21380 (the_low_target): Adapt to new interface.
21381
21382 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21383 (arm_get_thread_context): New.
21384 (arm_set_thread_context): New.
21385 (regptr): New.
21386 (do_fetch_inferior_registers): Rename to ...
21387 (arm_fetch_inferior_register): ... this.
21388 (arm_store_inferior_register): New.
21389 (arm_wince_breakpoint): Reimplement as unsigned long.
21390 (arm_wince_breakpoint_len): Define.
21391 (the_low_target): Adapt to new interface.
21392
21393 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21394 load_debug_registers. Add get_thread_context, set_thread_context,
21395 thread_added and store_inferior_register. Rename
21396 fetch_inferior_registers to fetch_inferior_register.
21397 (regptr): Remove declaration.
21398
dd6953e1
PA
213992007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21400
21401 * linux-low.c (linux_detach): Change return type to int. Return 0.
21402 * spu-low.c (spu_detach): Likewise.
21403
444d6139
PA
214042007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21405
21406 * target.h (target_ops): Change return type of detach to int.
21407 Add join.
21408 (join_inferior): New.
21409 * server.c (main): Don't skip detach support on mingw32.
21410 If the inferior doesn't support detaching return error.
21411 Call join_inferior instead of using waitpid.
21412 * linux-low.c (linux_join): New.
21413 (linux_target_op): Add linux_join.
21414 * spu-low.c (spu_join): New.
21415 (spu_target_ops): Add spu_join.
21416 * win32-low.c (win32_detach): Adapt to new interface.
21417 Reopen current_process_handle before detaching. Issue a child
21418 resume before detaching.
21419 (win32_join): New.
21420 (win32_target_op): Add win32_join.
21421
1d5315fe
PA
214222007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21423
21424 * win32-low.c (win32-attach): Fix return value.
21425 * target.h (target_ops): Describe ATTACH return values.
21426
bf914831
PA
214272007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21428
21429 * win32-low.c (GETPROCADDRESS): Define.
21430 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21431 (winapi_DebugSetProcessKillOnExit): Likewise.
21432 (win32_create_inferior): Force usage of ansi CreateProcessA.
21433 (win32_attach): Use GETPROCADDRESS.
21434 (win32_detach): Likewise.
21435
f72f3e60
PA
214362007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21437
21438 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21439
ed50f18f
PA
214402007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21441
21442 * win32-low.c: Commit leftover changes from 2007-03-29.
21443
0c2ead7e
DJ
214442007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21445
21446 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21447 fields short instead of int. Add explicit padding.
21448 (i387_cache_to_fsave): Remove unnecessary casts.
21449 (i387_fsave_to_cache): Doc fix.
21450 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21451
73725ff3
DJ
214522007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21453
21454 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21455 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21456
d99f33d8
PA
214572007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21458
21459 * configure.srv (arm*-*-mingw32ce*): Move near the other
21460 arm targets.
21461
68070c10
PA
214622007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21463
2482afc6 21464 * configure.ac: Add errno checking.
68070c10
PA
21465 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21466 sys/file.h and malloc.h.
21467 (AC_CHECK_DECLS): Add perror.
21468 (srv_mingwce): Handle.
2482afc6 21469 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21470 win32-i386-low.o to srv_tgtobj.
21471 (i[34567]86-*-mingw*): Likewise.
21472 (arm*-*-mingw32ce*): Add case.
21473 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21474 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21475 [__MINGW32CE__] (strerror): New function.
21476 [__MINGW32CE__] (errno): Define to GetLastError.
21477 [__MINGW32CE__] (COUNTOF): New macro.
21478 (remote_open): Remove extra close call.
21479 * mem-break.c (delete_breakpoint_at): New function.
21480 * mem-break.h (delete_breakpoint_at): Declare.
21481 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21482 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21483 [USE_WIN32API] (read, write): Add char* casts.
21484 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21485 * server.h: Include wincecompat.h on Windows CE.
21486 [HAVE_ERRNO_H]: Check.
21487 (perror): Declare if not declared.
21488 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21489 (perror_with_name): Remove errno declaration.
21490 * wincecompat.h: New.
21491 * wincecompat.c: New.
21492 * win32-low.h: New.
21493 * win32-arm-low.c: New.
21494 * win32-i386-low.c: New.
21495 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21496 (OUTMSG2): Make it safe.
21497 (_T): New macro.
21498 (COUNTOF): New macro.
21499 (NUM_REGS): Get it from the low target.
21500 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21501 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21502 (thread_rec): Let low target handle debug registers.
21503 (child_add_thread): Likewise.
21504 (child_init_thread_list): Likewise.
21505 (continue_one_thread): Likewise.
21506 (regptr): New.
21507 (do_child_fetch_inferior_registers): Move to ...
21508 * win32-i386-low.c: ... here, and rename to ...
21509 (do_fetch_inferior_registers): ... this.
889bf7c5 21510 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21511 Go through the low target.
21512 (do_child_store_inferior_registers): Use regptr.
21513 (strwinerror): New function.
21514 (win32_create_inferior): Handle Windows CE.
21515 Use strwinerror instead of strerror on Windows error
21516 codes. Add program to the error output.
21517 Don't close the main thread handle on Windows CE.
21518 (win32_attach): Use coredll.dll on Windows CE.
21519 (win32_kill): Close current process and current
21520 thread handles.
21521 (win32_detach): Use coredll.dll on Windows CE.
21522 (win32_resume): Let low target handle debug registers, and
21523 step request.
21524 (handle_exception): Add/Remove initial breakpoint. Avoid
21525 non-existant WSTOPSIG on Windows CE.
21526 (win32_read_inferior_memory): Cast to remove warning.
21527 (win32_arch_string): Go through the low target.
21528 (initialize_low): Call set_breakpoint_data with the low
21529 target's breakpoint.
21530 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21531 FOP_REGNUM, mappings): Move to ...
21532 * win32-i386-low.c: ... here.
21533 * win32-low.c (win32_thread_info): Move to ...
21534 * win32-low.h: ... here.
21535 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21536 win32-arm-low.c and wincecompat.c.
21537 (all:): Add $EXEEXT.
21538 (install-only:): Likewise.
21539 (gdbserver:): Likewise.
21540 (gdbreplay:): Likewise.
21541 * config.in: Regenerate.
21542 * configure: Regenerate.
21543
41093d81
PA
215442007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21545
21546 * win32-low.c: Rename typedef thread_info to
21547 win32_thread_info throughout.
21548
544afa54
PA
215492007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21550
21551 * win32-i386-low.c: Rename to ...
21552 * win32-low.c: ... this.
21553 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21554 * Makefile.in: Likewise.
21555
bce7165d
PA
215562007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21557
21558 * remote-utils.c (monitor_output): Constify msg parameter.
21559 * server.h (monitor_output): Likewise.
21560 * win32-i386-low.c (handle_output_debug_string): New.
21561 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21562 handle_output_debug_string.
21563 (get_child_debug_event): Likewise.
21564
506c7aa0
DJ
215652007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21566
21567 * server.c (main): Correct strtoul check.
21568
42c81e2a
DJ
215692007-03-27 Jon Ringle <jon@ringle.org>
21570
21571 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21572
9453113a
DJ
215732007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21574
21575 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21576
64a69107
DJ
215772007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21578
21579 * terminal.h: Check HAVE_SGTTY_H.
21580
215812007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21582
21583 * remote-utils.c (remote_open): Print out the assigned port number.
21584
c74d0ad8
DJ
215852007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21586
21587 * remote-utils.c (monitor_output): New function.
21588 * server.c (debug_threads): Define here.
21589 (monitor_show_help): New function.
21590 (handle_query): Handle qRcmd.
21591 (main): Do not handle 'd' packet.
21592 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21593 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21594 of debug_threads.
21595
de7c3b4a
PA
215962007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21597
21598 * Makefile.in (EXEEXT): New.
21599 (clean): Use $(EXEEXT).
21600
ef57601b
PA
216012007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21602
21603 * target.h (target_ops): Rename send_signal to request_interrupt,
21604 and remove enum target_signal parameter.
21605 * linux-low.c (linux_request_interrupt): Rename from
21606 linux_send_signal, and always send SIGINT.
21607 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21608 and always send SIGINT.
21609 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21610 of send_signal.
21611 (input_interrupt): Likewise.
21612
820f2bda
PA
216132007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21614
21615 * server.c (get_features_xml): Check if target implemented
21616 arch_string.
21617 * win32-i386-low.c (win32_arch_string): New.
21618 (win32_target_ops): Add win32_arch_string as arch_string member.
21619
ab39bf24
UW
216202007-02-22 Markus Deuling <deuling@de.ibm.com>
21621
21622 * spu-low.c (spu_arch_string): New.
21623 (spu_target_ops): Add spu_arch_string.
21624
61ff6e04
DJ
216252007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21626
21627 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21628 * configure.ac: Do not check for terminal.h.
21629 * configure, config.in: Regenerated.
21630
fb1e4ffc
DJ
216312007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21632
21633 * Makefile.in (OBS): Add $(XML_BUILTIN).
21634 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21635 (clean): Update.
21636 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21637 (arm-with-iwmmxt.c): New.
21638 * config.in, configure: Regenerate.
21639 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21640 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21641 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21642 (arm*-*-linux*): Add iWMMXt and regset support.
21643 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21644 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21645 (arm_store_wmmxregset, target_regsets): New.
21646 * server.c (get_features_xml): Take annex argument. Check builtin
21647 XML documents.
21648 (handle_query): Handle multiple annexes.
21649
0f48aa01
DJ
216502007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21651
21652 * remote-utils.c [USE_WIN32API] (read, write): Define.
21653 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21654 write.
21655
23181151
DJ
216562007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21657
21658 * linux-i386-low.c (the_low_target): Set arch_string.
21659 * linux-x86-64-low.c (the_low_target): Likewise.
21660 * linux-low.c (linux_arch_string): New.
21661 (linux_target_ops): Add it.
21662 * linux-low.h (struct linux_target_ops): Add arch_string.
21663 * server.c (write_qxfer_response): Use const void * for DATA.
21664 (get_features_xml): New.
21665 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21666 * target.h (struct target_ops): Add arch_string method.
21667
9d606399
DJ
216682007-01-03 Denis Pilat <denis.pilat@st.com>
21669 Daniel Jacobowitz <dan@codesourcery.com>
21670
21671 * linux-low.c (linux_kill): Handle being called with no threads.
21672 * win32-i386-low.c (win32_kill): Likewise.
21673 (get_child_debug_event): Clear current_process_handle.
21674
216752006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21676 Daniel Jacobowitz <dan@codesourcery.com>
21677
21678 * remote-utils.c (remote_open): Check the type of specified
21679 serial port devices before opening them.
21680 * server.c (main): Kill the inferior if an error occurs during
21681 the first remote_open.
21682
a5e13d24
DJ
216832006-12-05 Markus Deuling <deuling@de.ibm.com>
21684
21685 * README: Update supported targets.
21686
186947f7
DJ
216872006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21688
21689 * Makefile.in (clean): Remove reg-mips64.c.
21690 (reg-mips64.c, reg-mips64.o): New rules.
21691 * configure.srv: Handle mips64. Include regset support for mips.
21692 * linux-mips-low.c (union mips_register): New.
21693 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21694 (mips_breakpoint, mips_breakpoint_at): Use int.
21695 (mips_collect_register, mips_supply_register)
21696 (mips_collect_register_32bit, mips_supply_register_32bit)
21697 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21698 (mips_store_fpregset, target_regsets): New.
21699 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21700
a13e2c95
UW
217012006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21702
21703 * configure.srv: Add target "spu*-*-*".
21704 * Makefile.in (clean): Remove reg-spu.c.
21705 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21706 * spu-low.c: New file.
21707
cb7283db
DJ
217082006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21709
21710 * configure.ac: Correct td_thr_tls_get_addr test.
21711 * configure: Regenerated.
21712
89be2091
DJ
217132006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21714
21715 * linux-low.c (linux_wait_for_event): Reformat. Use the
21716 pass_signals array.
21717 * remote-utils.c (decode_address_to_semicolon): New.
21718 * server.c (pass_signals, handle_general_set): New.
21719 (handle_query): Mention QPassSignals for qSupported.
21720 (main): Call handle_general_set.
21721 * server.h (pass_signals, decode_address_to_semicolon): New.
21722
000ef4f0
DJ
217232006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21724
21725 * server.c (handle_query): Correct error handling for read_auxv.
21726
b7149293
UW
217272005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21728
21729 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21730 and srv_linux_thread_db to yes.
21731 * linux-s390-low.c (s390_fill_gregset): New function.
21732 (target_regsets): Define data structure.
21733
dae5f5cf
DJ
217342006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21735
21736 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21737 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21738 * config.in, configure: Regenerated.
21739 * inferiors.c (gdb_id_to_thread): New function.
21740 (gdb_id_to_thread_id): Use it.
21741 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21742 * linux-low.h (struct process_info): Add th member.
21743 (thread_db_get_tls_address): New prototype.
21744 * remote-utils.c (decode_address): Make non-static.
21745 * server.c (handle_query): Handle qGetTLSAddr.
21746 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21747 * target.h (struct target_ops): Add get_tls_address.
21748 * thread-db.c (maybe_attach_thread): Save the thread handle.
21749 (thread_db_get_tls_address): New.
21750
32ca6d61
DJ
217512006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21752
21753 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21754 (linux_resume_one_process): Take a siginfo_t *. Update all
21755 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21756 (struct pending_signals): Add a siginfo_t.
21757 (linux_wait_for_process): Always set last_status.
21758 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21759 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21760 * linux-low.h (struct process_info): Add last_status.
21761
5ffff7c1
DJ
217622006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21763
21764 * remote-utils.c (try_rle): New function.
21765 (putpkt_binary): Use it.
21766
8695c747
DJ
217672006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21768
21769 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21770 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21771 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21772 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21773 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21774 point registers.
21775
290fadea
RS
217762006-08-08 Richard Sandiford <richard@codesourcery.com>
21777
21778 * server.c (terminal_fd): New variable.
21779 (old_foreground_pgrp): Likewise.
21780 (restore_old_foreground_pgrp): New function.
21781 (start_inferior): Record the terminal file descriptor in terminal_fd
21782 and its original foreground group in old_foreground_pgrp. Register
21783 restore_old_foreground_pgrp with atexit().
21784
9f2e1e63
DJ
217852006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21786
21787 * server.c (handle_query): Correct qPart to qXfer.
21788
b80864fb
DJ
217892006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21790
21791 * configure.ac: Check for more headers which are missing on
21792 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21793 * configure.srv: Add Cygwin and mingw32.
21794 * remote-utils.c: Don't include headers unconditionally which
21795 are missing on mingw32. Include <winsock.h> for mingw32.
21796 (remote_open): Adjust for mingw32 support. Flush
21797 standard error after writing to it.
21798 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21799 (unblock_async_io, enable_async_io, disable_async_io)
21800 (readchar, getpkt): Update for Winsock support.
21801 (prepare_resume_reply): Expect a protocol signal number.
21802 * server.c: Disable <sys/wait.h> on mingw32.
21803 (start_inferior): Adjust for mingw32 support. Flush
21804 standard error after writing to it.
21805 (attach_inferior): Likewise. Use protocol signal
21806 numbers.
21807 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21808 and names.
21809 * win32-i386-low.c: New file.
21810 * Makefile.in (XM_CLIBS): Set.
21811 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21812 (win32-i386-low.o): New dependency rule.
21813 * linux-low.c (linux_wait): Use target signal numbers.
21814 * target.h (struct target_ops): Doc fix.
21815 * server.h (target_signal_to_name): New prototype.
21816 * gdbreplay.c: Don't include headers unconditionally which
21817 are missing on mingw32. Include <winsock.h> for mingw32.
21818 (remote_close, remote_open): Adjust for Winsock support.
21819 * configure, config.in: Regenerated.
21820
0876f84a
DJ
218212006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21822
21823 * server.c (decode_xfer_read, write_qxfer_response): New.
21824 (handle_query): Take a packet length argument. Handle
21825 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21826 the qSupported response.
21827 (main): Update call to handle_query.
21828
01f9e8fa
DJ
218292006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21830
21831 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21832 (putpkt_binary): Renamed from putpkt and adjusted for binary
21833 data.
21834 (putpkt): New wrapper for putpkt_binary.
21835 (readchar): Don't mask off the high bit.
21836 (decode_X_packet): New function.
21837 * server.c (main): Call putpkt_binary if a handler sets the packet
21838 length. Save the length of the incoming packet. Handle 'X'.
21839 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21840
be2a5f71
DJ
218412006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21842
21843 * server.c (handle_query): Handle qSupported.
21844
ea025f5f
DJ
218452006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21846
21847 * remote-utils.c (all_symbols_looked_up): New variable.
21848 (look_up_one_symbol): Check it.
21849 * server.h (look_up_one_symbol): New declaration.
21850 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21851
9308fc88
DJ
218522006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21853
21854 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21855 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21856 (PTRACE_GET_THREAD_AREA): Define.
21857 (ps_get_thread_area): New function.
21858
52fb6437
NS
218592006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21860
21861 * configure.srv (m68k*-*-uclinux*): New target.
21862 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21863 (linux_resume_one_process): Remove extraneous cast.
21864 (linux_read_offsets): New.
21865 (linux_target_op): Add linux_read_offsets on mmuless systems.
21866 * server.c (handle_query): Add qOffsets logic.
21867 * target.h (struct target_ops): Add read_offsets.
21868
21b0f40c
DJ
218692006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21870
21871 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21872 (PTRACE_GET_THREAD_AREA): Define.
21873 (ps_get_thread_area): New function.
21874 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21875 (linux-x86-64-low.o): Update.
21876
0050a760
DJ
218772006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21878
21879 * configure.ac: Remove checks for prfpregset_t.
21880 * gdb_proc_service.h: New file.
21881 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21882 new "gdb_proc_service.h".
21883 * proc-service.c: Likewise.
21884 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21885 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21886 * Makefile.in (gdb_proc_service_h): Updated.
21887 * configure, config.in: Regenerated.
21888
b92a518e
DJ
218892006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21890
21891 * remote-utils.c (prepare_resume_reply): Move declaration
21892 of gdb_id_from_wait to the top of the block.
21893
545587ee
DJ
218942006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21895
21896 * linux-low.c (regsets_store_inferior_registers): Read the regset
21897 from the target before filling it.
21898
9db87ebd
DJ
218992006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21900
21901 * server.c (attach_inferior): Return SIGTRAP for a successful
21902 attach.
21903
dd24457d
DJ
219042006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21905
21906 * Makefile.in (OBS): Add version.o.
21907 (STAGESTUFF): Delete.
21908 (version.o): Add dependencies.
21909 (version.c): Replace rule.
21910 (clean): Remove version.c.
21911 * server.c (gdbserver_version): New.
21912 (gdbserver_usage): Use printf.
21913 (main): Handle --version and --help.
21914 * server.h (version, host_name): Add declarations.
21915
6f0f660e
EZ
219162005-12-23 Eli Zaretskii <eliz@gnu.org>
21917
889bf7c5
PA
21918 * linux-arm-low.c:
21919 * linux-arm-low.c:
21920 * inferiors.c:
21921 * i387-fp.h:
21922 * i387-fp.c:
21923 * gdbreplay.c:
21924 * regcache.c:
21925 * proc-service.c:
21926 * mem-break.h:
21927 * mem-break.c:
21928 * linux-x86-64-low.c:
21929 * linux-sh-low.c:
21930 * linux-s390-low.c:
21931 * linux-ppc64-low.c:
21932 * linux-ppc-low.c:
21933 * linux-mips-low.c:
21934 * linux-m68k-low.c:
21935 * linux-m32r-low.c:
21936 * linux-low.h:
21937 * linux-low.c:
21938 * linux-ia64-low.c:
21939 * linux-i386-low.c:
21940 * linux-crisv32-low.c:
21941 * thread-db.c:
21942 * terminal.h:
21943 * target.h:
21944 * target.c:
21945 * server.h:
21946 * server.c:
21947 * remote-utils.c:
21948 * regcache.h:
21949 * utils.c:
21950 * Makefile.in:
21951 * configure.ac:
6f0f660e
EZ
21952 * gdbserver.1: Add (C) after Copyright. Update the FSF
21953 address.
21954
9d1fb177
DJ
219552005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21956
21957 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21958 (arm_breakpoint_at): Recognize both breakpoints.
21959 (the_low_target): Use the correct breakpoint instruction.
21960
011a70c2
DJ
219612005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21962
21963 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21964 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21965 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21966 (the_low_target): Update.
21967
7fb85e41
AS
219682005-10-25 Andreas Schwab <schwab@suse.de>
21969
21970 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21971
21972 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21973 (ia64_num_regs): Reduce to 462.
21974
3db0444b
DJ
219752005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21976
21977 * acinclude.m4: Correct quoting.
21978 * aclocal.m4: Regenerated.
21979
21980 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21981 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21982 (thread_db_init): Call thread_db_err_str.
21983 * configure.ac: Check for TD_VERSION.
21984 * config.in, configure: Regenerated.
21985
bee0189a
DJ
219862005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21987
21988 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21989
e9d25b98
DJ
219902005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21991
21992 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21993 is not available. Define HAVE_PTRACE_GETREGS if it is.
21994 * config.in, configure: Regenerated.
21995 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21996 * linux-i386-low.c, linux-m68k-low.c: Update to use
21997 HAVE_PTRACE_GETREGS.
21998 * linux-low.c (regsets_fetch_inferior_registers)
21999 (regsets_store_inferior_registers): Only return 0 if we processed
22000 GENERAL_REGS.
22001 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
22002 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
22003
a06660f7
DJ
220042005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
22005
22006 * inferiors.c (struct thread_info): Add gdb_id.
22007 (add_thread): Add gdb_id argument.
22008 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
22009 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
22010 calls to add_thread.
22011 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
22012 * server.c (handle_query): Use thread_to_gdb_id.
22013 (handle_v_cont, main): Use gdb_id_to_thread_id.
22014 * server.h (add_thread): Update prototype.
22015 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
22016 prototypes.
22017
5a1f5858
DJ
220182005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
22019
22020 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
22021 left-padded registers.
22022 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
22023 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
22024
e122f1f5
SE
220252005-07-01 Steve Ellcey <sje@cup.hp.com>
22026
22027 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
22028 * configure: Regenerate.
22029 * config.in: Regenerate.
22030 * server.h (NEED_DECLARATION_STRERROR):
22031 Replace with !HAVE_DECL_STRERROR.
22032
d592fa2f
DJ
220332005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
22034
22035 * linux-low.c (linux_wait, linux_send_signal): Don't test
22036 an unsigned long variable for > 0 if it could be MAX_ULONG.
22037 * server.c (myresume): Likewise.
22038 * target.c (set_desired_inferior): Likewise.
22039
ccbd4912
MK
220402005-06-13 Mark Kettenis <kettenis@gnu.org>
22041
22042 * configure.ac: Simplify and improve check for socklen_t.
22043 * configure, config.in: Regenerate.
22044
f450004a
DJ
220452005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
22046
22047 * acconfig.h: Remove.
22048 * configure.ac: Add a test for socklen_t. Use three-argument
22049 AC_DEFINE throughout.
22050 * config.in: Regenerated using autoheader 2.59.
22051 * configure: Regenerated.
22052
22053 * gdbreplay.c (socklen_t): Provide a default.
22054 (remote_open): Use socklen_t.
22055 * remote-utils.c (socklen_t): Provide a default.
22056 (remote_open): Use socklen_t.
22057 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
22058 unsigned char.
22059
22060 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22061 char for buffers.
22062 * linux-low.c (linux_read_memory, linux_write_memory)
22063 (linux_read_auxv): Likewise.
22064 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22065 (check_mem_write): Likewise.
22066 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22067 Likewise.
22068 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22069 (registers_from_string, register_data): Likewise.
22070 * server.c (handle_query, main): Likewise.
22071 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22072 (decode_M_packet): Likewise.
22073 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22074 * target.h (struct target_ops): Update read_memory, write_memory,
22075 and read_auxv.
22076 (read_inferior_memory, write_inferior_memory): Update.
22077 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22078 to unsigned char *.
22079 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22080 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22081 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22082 linux-s390-low.c, linux-sh-low.c: Update for changes in
22083 read_inferior_memory and the_low_target->breakpoint.
22084
eee84df1
DJ
220852005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22086
22087 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22088 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22089 * configure.srv: Add powerpc64-*-linux*.
22090 * linux-ppc64-low.c: New file.
22091
45b134e5
OF
220922005-05-23 Orjan Friberg <orjanf@axis.com>
22093
22094 * linux-cris-low.c: New file with support for CRIS.
22095 * linux-crisv32-low.c: Ditto for CRISv32.
22096 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22097 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 22098 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
22099 reg-crisv32.o, and reg-crisv32.c to make rules.
22100 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22101 recognized targets.
22102
48d93c75
UW
221032005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22104
22105 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22106 of sizeof (PTRACE_XFER_TYPE).
22107 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22108
e013ee27
OF
221092005-05-12 Orjan Friberg <orjanf@axis.com>
22110
889bf7c5 22111 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
22112 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22113 pointers for hardware watchpoint support.
22114 * linux-low.h (struct linux_target_ops): Ditto.
22115 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22116 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22117 to linux_target_ops.
22118 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22119 reply packet.
22120 * server.c (main): Recognize 'Z' and 'z' packets.
22121
b0ded00b
UW
221222005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22123
22124 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22125 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22126 (the_low_target): Add new members.
22127
8643e2ad
DJ
221282005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22129
22130 * proc-service.c (ps_lgetregs): Search all_processes instead of
22131 all_threads.
22132
fc620387
DJ
221332005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22134
22135 * server.c (start_inferior): Change return type to int.
22136 (attach_inferior): Change sigptr to int *.
22137 (handle_v_cont, handle_v_requests): Change signal to int *.
22138 (main): Change signal to int.
22139
221402005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
22141
22142 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22143 * configure.srv: Add m32r*-*-linux*.
22144 * linux-m32r-low.c: New file.
22145
e0e76420
DJ
221462005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22147
22148 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22149
a1928bad
DJ
221502005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22151
22152 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22153 Take unsigned long arguments for PIDs.
22154 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22155 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22156 (wait_for_sigstop, linux_resume_one_process)
22157 (regsets_fetch_inferior_registers, linux_send_signal)
22158 (linux_read_auxv): Likewise. Update the types of variables holding
22159 PIDs. Update format string specifiers.
22160 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22161 * remote-utils.c (prepare_resume_reply): Likewise.
22162 * server.c (cont_thread, general_thread, step_thread)
22163 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22164 unsigned long.
22165 (handle_query): Update format specifiers.
22166 (handle_v_cont, main): Use strtoul for thread IDs.
22167 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22168 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22169 (general_thread, step_thread, thread_from_wait)
22170 (old_thread_from_wait): Update.
22171 * target.h (struct thread_resume): Use unsigned long for THREAD.
22172 (struct target_ops): Use unsigned long for arguments to attach and
22173 thread_alive.
22174
dcdb98d2
DJ
221752005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22176
22177 * acinclude.m4: Include bfd/bfd.m4 directly.
22178 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22179 <agriffis@toolchain.org>.
22180 * aclocal.m4, configure: Regenerated.
22181
bec39cab
AC
221822005-01-07 Andrew Cagney <cagney@gnu.org>
22183
22184 * configure.ac: Rename configure.in, require autoconf 2.59.
22185 * configure: Re-generate.
22186
434c4c77
DJ
221872004-12-08 Daniel Jacobowitz <dan@debian.org>
22188
22189 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22190 LIBS when finished.
22191 * aclocal.m4: Regenerated.
22192 * configure: Regenerated.
22193
db1d3e1b
AS
221942004-11-21 Andreas Schwab <schwab@suse.de>
22195
22196 * linux-m68k-low.c (m68k_num_gregs): Define.
22197 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22198 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22199 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22200 (m68k_breakpoint_at): New. Add to the_low_target.
22201
22202 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22203 srv_linux_thread_db to yes.
22204
43360365
JB
222052004-10-20 Joel Brobecker <brobecker@gnat.com>
22206
22207 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22208 (ARCH_SET_FS): Likewise.
22209 (ARCH_GET_FS): Likewise.
22210 (ARCH_GET_GS): Likewise.
22211
fd500816
DJ
222122004-10-16 Daniel Jacobowitz <dan@debian.org>
22213
22214 * linux-i386-low.c (ps_get_thread_area): New.
22215 * linux-x86-64-low.c (ps_get_thread_area): New.
22216 * linux-low.c: Include <sys/syscall.h>.
22217 (linux_kill_one_process): Don't kill the first thread here.
22218 (linux_kill): Kill the first thread here.
22219 (kill_lwp): New function.
22220 (send_sigstop, linux_send_signal): Use it.
22221 * proc-service.c: Clean up #ifdefs.
22222 (fpregset_info): Delete.
22223 (ps_lgetregs): Update and enable implementation.
22224 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22225 implementations.
22226 * remote-utils.c (struct sym_cache, symbol_cache): New.
22227 (input_interrupt): Print a clearer message.
22228 (async_io_enabled): New variable.
22229 (enable_async_io, disable_async_io): Use it. Update comments.
22230 (look_up_one_symbol): Use the symbol cache.
22231 * thread-db.c (thread_db_look_up_symbols): New function.
22232 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22233
f6de3c42
DJ
222342004-10-16 Daniel Jacobowitz <dan@debian.org>
22235
22236 * configure.in: Test for -rdynamic.
22237 * configure: Regenerated.
22238 * Makefile (INTERNAL_LDFLAGS): New.
22239 (gdbserver, gdbreplay): Use it.
22240
2c0fc042
AC
222412004-09-02 Andrew Cagney <cagney@gnu.org>
22242
22243 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22244
075b3282
DJ
222452004-03-23 Daniel Jacobowitz <drow@mvista.com>
22246
22247 * linux-low.c (linux_wait): Clear all_processes list also.
22248
fa6a77dc
DJ
222492004-03-12 Daniel Jacobowitz <drow@mvista.com>
22250
22251 * linux-low.c: Include <errno.h>. Remove extern declaration of
22252 errno.
22253
6d782a97
DJ
222542004-03-12 Daniel Jacobowitz <drow@mvista.com>
22255
22256 * gdbreplay.c, server.h, utils.c: Update copyright years.
22257
3a7fb99b
DJ
222582004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22259
22260 * server.c (main): Print child status or termination signal from
22261 variable 'signal', not 'sig'.
22262
c3e735a6
DJ
222632004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22264
22265 * linux-low.c (linux_read_memory): Change return type to
22266 int. Check for and return error from ptrace().
22267 * target.c (read_inferior_memory): Change return type to int. Pass
22268 back return status from the_target->read_memory().
22269 * target.h (struct target_ops): Adapt *read_memory() prototype.
22270 Update comment.
22271 (read_inferior_memory): Adapt prototype.
22272 * server.c (main): Return an error packet if
22273 read_inferior_memory() returns an error.
22274
a59d1c82
DJ
222752004-03-04 Daniel Jacobowitz <drow@mvista.com>
22276
22277 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22278 Unify with other clean targets.
22279
dc3f8883
DJ
222802004-02-29 Daniel Jacobowitz <drow@mvista.com>
22281
22282 * server.c (handle_v_cont): Call set_desired_inferior.
22283
89a208da
DJ
222842004-02-29 Daniel Jacobowitz <drow@mvista.com>
22285
22286 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22287
62ea82f5
DJ
222882004-02-29 Daniel Jacobowitz <drow@mvista.com>
22289
22290 * linux-low.c (linux_wait): Unblock async I/O.
22291 (linux_resume): Block and enable async I/O.
22292 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22293 * server.h (block_async_io, unblock_async_io): Add prototypes.
22294
6910d122
DJ
222952004-02-29 Daniel Jacobowitz <drow@mvista.com>
22296
22297 * remote-utils.c (remote_open): Print a status notice after
22298 opening a TCP port.
22299 * server.c (attach_inferior): Print a status notice after
22300 attaching.
22301
223022004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
22303
22304 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22305
c89dc5d4
DJ
223062004-02-26 Daniel Jacobowitz <drow@mvista.com>
22307
22308 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22309 error packet.
22310 * server.c, target.h: Update copyright years.
22311
4b8dad4a
RM
223122004-02-25 Roland McGrath <roland@redhat.com>
22313
22314 * target.h (struct target_ops): New member `read_auxv'.
22315 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22316 * linux-low.c (linux_read_auxv): New function.
22317 (linux_target_ops): Initialize `read_auxv' member to that.
22318
d7446758
JB
223192004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22320
22321 Committed by Jim Blandy <jimb@redhat.com>.
22322
22323 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 22324 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
22325 instead of GPR_SIZE to distiguish s390 and s390x targets.
22326
5544ad89
DJ
223272004-01-31 Daniel Jacobowitz <drow@mvista.com>
22328
22329 * linux-low.c: Update copyright year.
22330 (check_removed_breakpoint): Clear pending_is_breakpoint.
22331 (linux_set_resume_request, linux_queue_one_thread)
22332 (resume_status_pending_p): New functions.
22333 (linux_continue_one_thread): Use process->resume.
22334 (linux_resume): Only resume threads if there are no pending events.
22335 * linux-low.h (struct process_info): Add resume request
22336 pointer.
22337
2a68b70e
DJ
223382004-01-30 Daniel Jacobowitz <drow@mvista.com>
22339
22340 * regcache.c (new_register_cache): Clear the allocated register
22341 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22342
64386c31
DJ
223432003-10-13 Daniel Jacobowitz <drow@mvista.com>
22344
22345 * linux-low.c (linux_resume): Take a struct thread_resume *
22346 argument.
22347 (linux_wait): Update call.
22348 (resume_ptr): New static variable.
22349 (linux_continue_one_thread): Renamed from
22350 linux_continue_one_process. Use resume_ptr.
22351 (linux_resume): Use linux_continue_one_thread.
22352 * server.c (handle_v_cont, handle_v_requests): New functions.
22353 (myresume): New function.
22354 (main): Handle 'v' case.
22355 * target.h (struct thread_resume): New type.
22356 (struct target_ops): Change argument of "resume" to struct
22357 thread_resume *.
22358 (myresume): Delete macro.
22359
c938e9b0
L
223602003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22361
22362 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22363 (uninstall): Support DESTDIR.
22364
7f313d07
BC
22365Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22366
22367 * configure.srv: Add xscale*linux copy of arm*linux entry.
22368
3b2fc2ea
DJ
223692003-07-24 Daniel Jacobowitz <drow@mvista.com>
22370
22371 * linux-arm-low.c (arm_reinsert_addr): New function.
22372 (the_low_target): Add arm_reinsert_addr.
22373
1c0a559e
MK
223742003-07-08 Mark Kettenis <kettenis@gnu.org>
22375
22376 * mem-break.c: Remove whitespace at end of file.
22377
43d5792c
DJ
223782003-06-28 Daniel Jacobowitz <drow@mvista.com>
22379
22380 * configure.in: Check whether we need to prototype strerror.
22381 * server.h: Optionally prototype strerror.
22382 * gdbreplay.c (perror_with_name): Use strerror.
22383 * linux-low.c (linux_attach_lwp): Use strerror.
22384 * utils.c (perror_with_name): Use strerror.
22385 * config.in, configure: Regenerated.
22386
c8a86edf
DJ
223872003-06-28 Daniel Jacobowitz <drow@mvista.com>
22388
22389 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22390 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22391
73d37363
DJ
223922003-06-20 Daniel Jacobowitz <drow@mvista.com>
22393
22394 * Makefile.in (SFILES): Update.
22395 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22396 low-sun3.c: Remove files.
22397
6ad8ae5c
DJ
223982003-06-17 Daniel Jacobowitz <drow@mvista.com>
22399
22400 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22401 (linux_detach_one_process, linux_detach): New functions.
22402 (linux_target_ops): Add linux_detach.
22403 * server.c (main): Handle 'D' packet.
22404 * target.h (struct target_ops): Add "detach" member.
22405 (detach_inferior): Define.
22406
1581182a
MK
224072003-06-13 Mark Kettenis <kettenis@gnu.org>
22408
22409 From Kelley Cook <kelleycook@wideopenwest.com>:
22410 * configure.srv: Accept i[34567]86 variants.
22411
e5379b03
DJ
224122003-06-05 Daniel Jacobowitz <drow@mvista.com>
22413
22414 * linux-low.c (linux_wait_for_event): Correct comment typos.
22415 (linux_resume_one_process): Call check_removed_breakpoint.
22416 (linux_send_signal): New function.
22417 (linux_target_ops): Add linux_send_signal.
22418 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22419 of kill.
22420 * target.h (struct target_ops): Add send_signal.
22421
2ff29de4
JB
224222003-05-29 Jim Blandy <jimb@redhat.com>
22423
22424 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22425 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22426 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22427 away part of the register's value.
22428
254787d4
DJ
224292003-03-26 Daniel Jacobowitz <drow@mvista.com>
22430
22431 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22432 (linux_wait_for_event, linux_init_signals): Likewise.
22433
94e10508
DJ
224342003-03-17 Daniel Jacobowitz <drow@mvista.com>
22435
22436 * configure.in: Check for stdlib.h.
22437 * configure: Regenerated.
22438 * config.in: Regenerated.
22439
4c0711e0
DJ
224402003-01-04 Andreas Schwab <schwab@suse.de>
22441
22442 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22443
ef66e766
AC
224442003-01-02 Andrew Cagney <ac131313@redhat.com>
22445
22446 * Makefile.in: Remove obsolete code.
22447
a1358604
DJ
224482002-11-20 Daniel Jacobowitz <drow@mvista.com>
22449
22450 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22451 defined(PT_FPR0_HI).
22452
23ce3b1c
DJ
224532002-11-17 Stuart Hughes <seh@zee2.com>
22454
22455 * linux-arm-low.c (arm_num_regs): Increase.
22456 (arm_regmap): Include status register.
22457
224582002-11-17 Daniel Jacobowitz <drow@mvista.com>
22459
22460 * linux-low.c (register_addr): Remove incorrect -1 check.
22461
a9fa9f7d
DJ
224622002-08-29 Daniel Jacobowitz <drow@mvista.com>
22463
22464 * linux-low.c (linux_create_inferior): Call setpgid. Return
22465 the new PID.
22466 (unstopped_p, linux_signal_pid): Remove.
22467 (linux_target_ops): Remove linux_signal_pid.
22468 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22469 global instead of target method.
22470 * target.h (struct target_ops): Remove signal_pid. Update comment
22471 for create_inferior.
22472 * server.c (signal_pid): New variable.
22473 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22474 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22475 (attach_inferior): Set signal_pid.
22476
17574093
DJ
224772002-08-23 Daniel Jacobowitz <drow@mvista.com>
22478
22479 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22480
224812002-08-20 Jim Blandy <jimb@redhat.com>
22482
22483 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22484 default for this.
22485
224862002-08-01 Andrew Cagney <cagney@redhat.com>
22487
22488 * Makefile.in: Make chill references obsolete.
22489
224902002-07-24 Kevin Buettner <kevinb@redhat.com>
22491
22492 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22493 * configure: Regenerate.
22494 * config.in: Regenerate.
22495
224962002-07-09 David O'Brien <obrien@FreeBSD.org>
22497
22498 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22499 (perror_with_name, remote_close, remote_open, expect, play): Static.
22500
225012002-07-04 Michal Ludvig <mludvig@suse.cz>
22502
4b8dad4a 22503 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22504 byte offsets instead of an array of indexes.
22505 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22506
225072002-06-13 Daniel Jacobowitz <drow@mvista.com>
22508
22509 * regcache.c: Add comment.
22510
225112002-06-11 Daniel Jacobowitz <drow@mvista.com>
22512
22513 * thread-db.c: New file.
22514 * proc-service.c: New file.
22515 * acinclude.m4: New file.
22516 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22517 proc-service.o, and thread-db.o.
22518 (linux-low.o): Add USE_THREAD_DB.
22519 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22520 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22521 * aclocal.m4: Regenerated.
22522 * config.in: Regenerated.
22523 * configure: Regenerated.
22524 * configure.in: Check for proc_service.h, sys/procfs.h,
22525 thread_db.h, and linux/elf.h headrs.
22526 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22527 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22528 Check for -lthread_db and thread support.
22529 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22530 PowerPC, and SuperH.
22531 * i387-fp.c: Constify arguments.
22532 * i387-fp.h: Likewise.
22533 * inferiors.c: (struct thread_info): Renamed from
22534 `struct inferior_info'. Remove PID member. Use generic inferior
22535 list header. All uses updated.
22536 (inferiors, signal_pid): Removed.
22537 (all_threads): New variable.
22538 (get_thread): Define.
22539 (add_inferior_to_list): New function.
22540 (for_each_inferior): New function.
22541 (change_inferior_id): New function.
22542 (add_inferior): Removed.
22543 (remove_inferior): New function.
22544 (add_thread): New function.
22545 (free_one_thread): New function.
22546 (remove_thread): New function.
22547 (clear_inferiors): Use for_each_inferior and free_one_thread.
22548 (find_inferior): New function.
22549 (find_inferior_id): New function.
22550 (inferior_target_data): Update argument type.
22551 (set_inferior_target_data): Likewise.
22552 (inferior_regcache_data): Likewise.
22553 (set_inferior_regcache_data): Likewise.
22554 * linux-low.c (linux_bp_reinsert): Remove.
22555 (all_processes, stopping_threads, using_thrads)
22556 (struct pending_signals, debug_threads, pid_of): New.
22557 (inferior_pid): Replace with macro.
22558 (struct inferior_linux_data): Remove.
22559 (get_stop_pc, add_process): New functions.
22560 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22561 Use add_process and add_thread.
22562 (linux_attach_lwp): New function, based on old linux_attach. Use
22563 add_process and add_thread. Set stop_expected for new threads.
22564 (linux_attach): New function.
22565 (linux_kill_one_process): New function.
22566 (linux_kill): Kill all LWPs.
22567 (linux_thread_alive): Use find_inferior_id.
22568 (check_removed_breakpoints, status_pending_p): New functions.
22569 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22570 Update. Use WNOHANG. Wait for cloned processes also. Update process
22571 struct for the found process.
22572 (linux_wait_for_event): New function.
22573 (linux_wait): Use it. Support LWPs.
22574 (send_sigstop, wait_for_sigstop, stop_all_processes)
22575 (linux_resume_one_process, linux_continue_one_process): New functions.
22576 (linux_resume): Support LWPs.
22577 (REGISTER_RAW_SIZE): Remove.
22578 (fetch_register): Use register_size instead. Call supply_register.
22579 (usr_store_inferior_registers): Likewise. Call collect_register.
22580 Fix recursive case.
22581 (regsets_fetch_inferior_registers): Improve error message.
22582 (regsets_store_inferior_registers): Add debugging.
22583 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22584 (unstopped_p, linux_signal_pid): New functions.
22585 (linux_target_ops): Add linux_signal_pid.
22586 (linux_init_signals): New function.
22587 (initialize_low): Call it. Initialize using_threads.
22588 * regcache.c (inferior_regcache_data): Add valid
22589 flag.
22590 (get_regcache): Fetch registers lazily. Add fetch argument
22591 and update all callers.
22592 (regcache_invalidate_one, regcache_invalidate): New
22593 functions.
22594 (new_register_cache): Renamed from create_register_cache.
22595 Return the new regcache.
22596 (free_register_cache): Change argument to a void *.
22597 (registers_to_string, registers_from_string): Call get_regcache
22598 with fetch flag set.
22599 (register_data): Make static. Pass fetch flag to get_regcache.
22600 (supply_register): Call get_regcache with fetch flag clear.
22601 (collect_register): Call get_regcache with fetch flag set.
22602 (collect_register_as_string): New function.
22603 * regcache.h: Update.
22604 * remote-utils.c (putpkt): Flush after debug output and use
22605 stderr.
22606 Handle input interrupts while waiting for an ACK.
22607 (input_interrupt): Use signal_pid method.
22608 (getpkt): Flush after debug output and use stderr.
22609 (outreg): Use collect_register_as_string.
22610 (new_thread_notify, dead_thread_notify): New functions.
22611 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22612 and general_thread.
22613 (look_up_one_symbol): Flush after debug output.
22614 * server.c (step_thread, server_waiting): New variables.
22615 (start_inferior): Don't use signal_pid. Update call to mywait.
22616 (attach_inferior): Update call to mywait.
22617 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22618 (main): Don't fetch/store registers explicitly. Use
22619 set_desired_inferior. Support proposed ``Hs'' packet. Update
22620 calls to mywait.
22621 * server.h: Update.
22622 (struct inferior_list, struct_inferior_list_entry): New.
22623 * target.c (set_desired_inferior): New.
22624 (write_inferior_memory): Constify.
22625 (mywait): New function.
22626 * target.h: Update.
22627 (struct target_ops): New signal_pid method.
22628 (mywait): Removed macro, added prototype.
22629
22630 * linux-low.h (regset_func): Removed.
22631 (regset_fill_func, regset_store_func): New.
22632 (enum regset_type): New.
22633 (struct regset_info): Add type field. Use new operation types.
22634 (struct linux_target_ops): stop_pc renamed to get_pc.
22635 Add decr_pc_after_break and breakpoint_at.
22636 (get_process, get_thread_proess, get_process_thread)
22637 (strut process_info, all_processes, linux_attach_lwp)
22638 (thread_db_init): New.
22639
22640 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22641 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22642 (the_low_target): Add new members.
22643 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22644 (i386_store_fpxregset): Constify.
22645 (target_regsets): Add new kind identifier.
22646 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22647 (i386_set_pc): Add debugging.
22648 (i386_breakpoint_at): New function.
22649 (the_low_target): Add new members.
22650 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22651 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22652 (mips_breakpoint_at): New.
22653 (the_low_target): Add new members.
22654 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22655 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22656 (the_low_target): Add new members.
22657 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22658 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22659 (the_low_target): Add new members.
22660 * linux-x86-64-low.c (target_regsets): Add new kind
22661 identifier.
22662
226632002-05-15 Daniel Jacobowitz <drow@mvista.com>
22664
22665 From Martin Pool <mbp@samba.org>:
22666 * server.c (gdbserver_usage): New function.
22667 (main): Call it.
22668
226692002-05-14 Daniel Jacobowitz <drow@mvista.com>
22670
22671 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22672 stop_at -> stop_pc.
22673
226742002-05-04 Andrew Cagney <ac131313@redhat.com>
22675
22676 * Makefile.in: Remove obsolete code.
22677
226782002-04-24 Michal Ludvig <mludvig@suse.cz>
22679
22680 * linux-low.c (regsets_fetch_inferior_registers),
22681 (regsets_store_inferior_registers): Removed cast to int from
22682 ptrace() calls.
22683 * regcache.h: Added declaration of struct inferior_info.
22684
226852002-04-20 Daniel Jacobowitz <drow@mvista.com>
22686
22687 * inferiors.c (struct inferior_info): Add regcache_data.
22688 (add_inferior): Call create_register_cache.
22689 (clear_inferiors): Call free_register_cache.
22690 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22691 * regcache.c (struct inferior_regcache_data): New.
22692 (registers): Remove.
22693 (get_regcache): New function.
22694 (create_register_cache, free_register_cache): New functions.
22695 (set_register_cache): Don't initialize the register cache here.
22696 (registers_to_string, registers_from_string, register_data): Call
22697 get_regcache.
22698 * regcache.h: Add prototypes.
22699 * server.h: Likewise.
22700
227012002-04-20 Daniel Jacobowitz <drow@mvista.com>
22702
22703 * mem-break.c: New file.
22704 * mem-break.h: New file.
22705 * Makefile.in: Add mem-break.o rule; update server.h
22706 dependencies.
22707 * inferiors.c (struct inferior_info): Add target_data
22708 member.
22709 (clear_inferiors): Free target_data member if set.
22710 (inferior_target_data, set_inferior_target_data): New functions.
22711 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22712 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22713 * linux-low.c (linux_bp_reinsert): New variable.
22714 (struct inferior_linux_data): New.
22715 (linux_create_inferior): Use set_inferior_target_data.
22716 (linux_attach): Likewise. Call add_inferior.
22717 (linux_wait_for_one_inferior): New function.
22718 (linux_wait): Call it.
22719 (linux_write_memory): Add const.
22720 (initialize_low): Call set_breakpoint_data.
22721 * linux-low.h (struct linux_target_ops): Add breakpoint
22722 handling members.
22723 * server.c (attach_inferior): Remove extra add_inferior
22724 call.
22725 * server.h: Include mem-break.h. Update inferior.c
22726 prototypes.
22727 * target.c (read_inferior_memory)
22728 (write_inferior_memory): New functions.
22729 * target.h (read_inferior_memory)
22730 (write_inferior_memory): Change macros to prototypes.
22731 (struct target_ops): Update comments. Add const to write_memory
22732 definition.
22733
227342002-04-11 Daniel Jacobowitz <drow@mvista.com>
22735
22736 * linux-low.c (usr_store_inferior_registers): Support
22737 registers which are allowed to fail to store.
22738 * linux-low.h (linux_target_ops): Likewise.
22739 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22740 (ppc_cannot_store_register): FPSCR may not be storable.
22741
227422002-04-09 Daniel Jacobowitz <drow@mvista.com>
22743
22744 * server.h: Include <string.h> if HAVE_STRING_H.
22745 * ChangeLog: Correct paths in last ChangeLog entry.
22746
227472002-04-09 Daniel Jacobowitz <drow@mvista.com>
22748
22749 * linux-low.h: Remove obsolete prototypes.
22750 (struct linux_target_ops): New.
22751 (extern the_low_target): New.
22752 * linux-low.c (num_regs, regmap): Remove declarations.
22753 (register_addr): Use the_low_target explicitly.
22754 (fetch_register): Likewise.
22755 (usr_fetch_inferior_registers): Likewise.
22756 (usr_store_inferior_registers): Likewise.
22757 * linux-arm-low.c (num_regs): Remove.
22758 (arm_num_regs): Define.
22759 (arm_regmap): Renamed from regmap, made static.
22760 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22761 made static.
22762 (arm_cannot_store_register): Renamed from cannot_store_register,
22763 made static.
22764 (the_low_target): New.
22765 * linux-i386-low.c (num_regs): Remove.
22766 (i386_num_regs): Define.
22767 (i386_regmap): Renamed from regmap, made static.
22768 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22769 made static.
22770 (i386_cannot_store_register): Renamed from cannot_store_register,
22771 made static.
22772 (the_low_target): New.
22773 * linux-ia64-low.c (num_regs): Remove.
22774 (ia64_num_regs): Define.
22775 (ia64_regmap): Renamed from regmap, made static.
22776 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22777 made static.
22778 (ia64_cannot_store_register): Renamed from cannot_store_register,
22779 made static.
22780 (the_low_target): New.
22781 * linux-m68k-low.c (num_regs): Remove.
22782 (m68k_num_regs): Define.
22783 (m68k_regmap): Renamed from regmap, made static.
22784 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22785 made static.
22786 (m68k_cannot_store_register): Renamed from cannot_store_register,
22787 made static.
22788 (the_low_target): New.
22789 * linux-mips-low.c (num_regs): Remove.
22790 (mips_num_regs): Define.
22791 (mips_regmap): Renamed from regmap, made static.
22792 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22793 made static.
22794 (mips_cannot_store_register): Renamed from cannot_store_register,
22795 made static.
22796 (the_low_target): New.
22797 * linux-ppc-low.c (num_regs): Remove.
22798 (ppc_num_regs): Define.
22799 (ppc_regmap): Renamed from regmap, made static.
22800 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22801 made static.
22802 (ppc_cannot_store_register): Renamed from cannot_store_register,
22803 made static.
22804 (the_low_target): New.
22805 * linux-s390-low.c (num_regs): Remove.
22806 (s390_num_regs): Define.
22807 (s390_regmap): Renamed from regmap, made static.
22808 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22809 made static.
22810 (s390_cannot_store_register): Renamed from cannot_store_register,
22811 made static.
22812 (the_low_target): New.
22813 * linux-sh-low.c (num_regs): Remove.
22814 (sh_num_regs): Define.
22815 (sh_regmap): Renamed from regmap, made static.
22816 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22817 made static.
22818 (sh_cannot_store_register): Renamed from cannot_store_register,
22819 made static.
22820 (the_low_target): New.
22821 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22822 (the_low_target): New.
22823
228242002-04-09 Daniel Jacobowitz <drow@mvista.com>
22825
22826 * Makefile.in: Add stamp-h target.
22827 * configure.in: Create stamp-h.
22828 * configure: Regenerated.
22829
228302002-04-09 Daniel Jacobowitz <drow@mvista.com>
22831
22832 * inferiors.c: New file.
22833 * target.c: New file.
22834 * target.h: New file.
22835 * Makefile.in: Add target.o and inferiors.o. Update
22836 dependencies.
22837 * linux-low.c (inferior_pid): New static variable,
22838 moved from server.c.
22839 (linux_create_inferior): Renamed from create_inferior.
22840 Call add_inferior. Return 0 on success instead of a PID.
22841 (linux_attach): Renamed from myattach.
22842 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22843 (linux_thread_alive): Renamed from mythread_alive.
22844 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22845 child dies.
22846 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22847 (regsets_store_inferior_registers): Correct error message.
22848 Add missing ``return 0''.
22849 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22850 (linux_store_registers): Renamed from store_inferior_registers.
22851 (linux_read_memory): Renamed from read_inferior_memory.
22852 (linux_write_memory): Renamed from write_inferior_memory.
22853 (linux_target_ops): New structure.
22854 (initialize_low): Call set_target_ops ().
22855 * remote-utils.c (unhexify): New function.
22856 (hexify): New function.
22857 (input_interrupt): Send signals to ``signal_pid''.
22858 * server.c (inferior_pid): Remove.
22859 (start_inferior): Update create_inferior call.
22860 (attach_inferior): Call add_inferior.
22861 (handle_query): New function.
22862 (main): Call handle_query for `q' packets.
22863 * server.h: Include "target.h". Remove obsolete prototypes.
22864 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22865
228662002-04-09 Daniel Jacobowitz <drow@mvista.com>
22867
22868 * Makefile.in: Add WARN_CFLAGS. Update configury
22869 dependencies.
22870 * configure.in: Check for <string.h>
22871 * configure: Regenerate.
22872 * config.in: Regenerate.
22873 * gdbreplay.c: Include needed system headers.
22874 (remote_open): Remove strchr prototype.
22875 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22876 * regcache.c (supply_register): Change buf argument to const void *.
22877 (supply_register_by_name): Likewise.
22878 (collect_register): Change buf argument to void *.
22879 (collect_register_by_name): Likewise.
22880 * regcache.h: Add missing prototypes.
22881 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22882 * server.c (handle_query): New function.
22883 (attached): New static variable, moved out of main.
22884 (main): Quiet longjmp clobber warnings.
22885 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22886 * utils.c (error): Remove NORETURN.
22887 (fatal): Likewise.
This page took 2.793959 seconds and 4 git commands to generate.