Update copyright year in version output for gdb, gdbserver and gdbreplay
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
b5c91ebd
JB
12022-01-16 Joel Brobecker <brobecker@adacore.com>
2
3 * gdbreplay.cc: Update year range in copyright notice.
4 (gdbreplay_version): Update copyright year to 2022.
5 * server.cc: Update year range in copyright notice.
6 (gdbserver_version): Update copyright year to 2022.
7
eb79b231
LM
82021-11-03 Luis Machado <luis.machado@linaro.org>
9
10 PR gdb/28355
11
12 * linux-aarch64-low.cc (is_sve_tdesc): Remove.
13 (aarch64_target::low_arch_setup): Rework to adjust the register sets.
14 (aarch64_regsets): Update to list all register sets.
15 (aarch64_regsets_info, regs_info_aarch64): Replace NULL with nullptr.
16 (aarch64_sve_regsets, aarch64_sve_regsets_info)
17 (regs_info_aarch64_sve): Remove.
18 (aarch64_adjust_register_sets): New.
19 (aarch64_target::get_regs_info): Remove references to removed structs.
20 (initialize_low_arch): Likewise.
21
9b4d030e
TV
222021-10-04 Tom de Vries <tdevries@suse.de>
23
24 PR build/28318
25 * configure: Regenerate.
26
507af45f
SM
272021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * config.in, configure: Re-generate.
30
7e3941ac
MF
312021-06-19 Mike Frysinger <vapier@gentoo.org>
32
33 * acinclude.m4: Delete most m4_include's of ../config files.
34 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
35 * aclocal.m4: Regenerate.
36 * configure: Regenerate.
37
483ab96a
MF
382021-06-14 Mike Frysinger <vapier@gentoo.org>
39
40 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
41 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
42
01add95b
SM
432021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
44
45 * Fix some indentation mistakes throughout.
46
c1c0a7e1
AB
472021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 * .dir-locals.el: Set sentence-end-double-space for all modes, and
50 set brace-list-open to 0 for C and C++ modes.
51
8d06918f
SM
522021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * linux-low.cc (linux_process_target::wait_for_event_filtered):
55 Adjust to status_to_str returning std::string.
56
4655f850
PA
572021-05-08 Pedro Alves <pedro@palves.net>
58
59 * linux-low.cc:
60 (linux_process_target::supports_disable_randomization): Remove
61 reference to HAVE_PERSONALITY.
62 * config.in, configure: Regenerate.
63
e2ea3a38
PA
642021-05-08 Pedro Alves <pedro@palves.net>
65
66 * linux-low.cc: Don't include sys/personality.h or define
67 ADDR_NO_RANDOMIZE.
68
482155e6
TBA
692021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
70
71 * server.cc (handle_v_attach)
72 (handle_v_run)
73 (handle_v_kill): Make void.
74
82288339
TT
752021-05-03 Tom Tromey <tromey@adacore.com>
76
77 PR build/27807:
78 * win32-i386-low.cc (i386_get_thread_context): Call
79 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
80
e228ef97
TT
812021-04-30 Tom Tromey <tromey@adacore.com>
82
83 * win32-low.cc (do_initial_child_stuff): Update.
84 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
85 Change parameter type.
86 (win32_add_dll, win32_add_all_dlls)
87 (windows_nat::handle_load_dll): Remove.
88 (get_child_debug_event): Call dll_loaded_event.
89
de071872
TT
902021-04-30 Tom Tromey <tromey@adacore.com>
91
92 * win32-low.cc (GETPROCADDRESS): Remove.
93 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
94 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
95 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
96 (win32_Wow64SetThreadContext): Remove.
97 (win32_set_thread_context, do_initial_child_stuff)
98 (win32_process_target::attach, win32_process_target::detach):
99 Update.
100 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
101 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
102 Remove.
103 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
104 (win32_GetModuleInformation, win32_GetModuleInformationA):
105 Remove.
106 (load_psapi): Remove.
107 (win32_add_dll, win32_process_target::request_interrupt): Update.
108 (initialize_low): Call initialize_loadable.
109
38ae2915
TT
1102021-04-14 Tom Tromey <tromey@adacore.com>
111
112 * win32-low.cc (windows_nat::handle_load_dll): Don't check
113 _WIN32_WCE.
114
6cacd449
PA
1152021-04-13 Pedro Alves <pedro@palves.net>
116
117 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
118
1228cb90
TT
1192021-04-13 Tom Tromey <tromey@adacore.com>
120
121 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
122 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
123
0256da25
PA
1242021-04-13 Pedro Alves <pedro@palves.net>
125
126 * Makefile.in (SFILES): Remove hostio-errno.cc.
127 * configure: Regenerate.
128 * configure.ac (GDBSERVER_DEPFILES): No longer add
129 $srv_hostio_err_objs.
130 * configure.srv (srv_hostio_err_objs): Delete.
131 * hostio-errno.cc: Delete.
132 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
133 here.
134 * hostio.h (hostio_last_error_from_errno): Delete.
135 * target.cc (process_stratum_target::hostio_last_error): Delete.
136 * target.h (class process_stratum_target) <hostio_last_error>:
137 Delete.
138
d4717483
SM
1392021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
140
141 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
142 * win32-low.h: Likewise.
143
04977957
TBA
1442021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
145
146 * target.h (class process_stratum_target) <pid_to_exec_file>:
147 Constify the return type. Update the definition/references below.
148 * target.cc (process_stratum_target::pid_to_exec_file)
149 * linux-low.h (class linux_process_target) <pid_to_exec_file>
150 * linux-low.cc (linux_process_target::pid_to_exec_file)
151 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
152 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
153 * server.cc (handle_qxfer_exec_file)
154
114ee2a4
EZ
1552021-04-11 Eli Zaretskii <eliz@gnu.org>
156
157 * win32-low.cc (win32_add_dll): New function, with body almost
158 identical to what win32_add_all_dlls did. Accepts one argument;
159 if that is non-NULL, returns the file name of the DLL that is
160 loaded at the base address equal to that argument, or NULL if not
161 found. If the argument is NULL, add all the DLLs loaded by the
162 inferior to the list of solibs and return NULL.
163 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
164 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
165 failed to glean the file name of the DLL, call win32_add_dll to
166 try harder using the lpBaseOfDll member of the load-DLL event.
167
782c1ab8
LM
1682021-03-30 Luis Machado <luis.machado@linaro.org>
169
170 * server.cc (handle_general_set, handle_query): Update variable
171 to bool and fix verification logic.
172
41919a58
LM
1732021-03-24 Luis Machado <luis.machado@linaro.org>
174
175 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
176 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
177 nat/aarch64-mte-linux-ptrace.o.
178 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
179 (class aarch64_target) <supports_memory_tagging>
180 <fetch_memtags, store_memtags>: New method overrides.
181 (aarch64_target::supports_memory_tagging)
182 (aarch64_target::fetch_memtags)
183 (aarch64_target::store_memtags): New methods.
184
5e984dbf
LM
1852021-03-24 Luis Machado <luis.machado@linaro.org>
186
187 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
188 (aarch64_store_mteregset): New function.
189 (aarch64_regsets): Add MTE register set entry.
190 (aarch64_sve_regsets): Add MTE register set entry.
191
c1bd443b
LM
1922021-03-24 Luis Machado <luis.machado@linaro.org>
193
194 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
195 aarch64_linux_read_description.
196 (initialize_low_tracepoint): Likewise.
197 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
198 into account.
199 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
200 for MTE.
201 (aarch64_linux_read_description): Add mte_p parameter and update to
202 use it.
203 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
204 parameter.
205
04245125
LM
2062021-03-24 Luis Machado <luis.machado@linaro.org>
207
208 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
209
c2cfa654
LM
2102021-03-24 Luis Machado <luis.machado@linaro.org>
211
212 * server.cc (test_memory_tagging_functions): New function.
213 (captured_main): Register test_memory_tagging_functions.
214
546b77fe
LM
2152021-03-24 Luis Machado <luis.machado@linaro.org>
216
217 * remote-utils.cc (decode_m_packet_params): Renamed from ...
218 (decode_m_packet): ... this, which now calls decode_m_packet_params.
219 Make char * param/return const char *.
220 (decode_M_packet): Use decode_m_packet_params and make char * param
221 const char *.
222 * remote-utils.h (decode_m_packet_params): New prototype.
223 (decode_m_packet): Constify char pointers.
224 (decode_M_packet): Likewise.
225 * server.cc (create_fetch_memtags_reply)
226 (parse_store_memtags_request): New
227 functions.
228 (handle_general_set): Handle the QMemTags packet.
229 (parse_fetch_memtags_request): New function.
230 (handle_query): Handle the qMemTags packet and advertise memory
231 tagging support.
232 (captured_main): Initialize memory tagging flag.
233 * server.h (struct client_state): Initialize memory tagging flag.
234 * target.cc (process_stratum_target::supports_memory_tagging)
235 (process_stratum_target::fetch_memtags)
236 (process_stratum_target::store_memtags): New methods.
237 * target.h: Include gdbsupport/byte-vector.h.
238 (class process_stratum_target) <supports_memory_tagging>
239 <fetch_memtags, store_memtags>: New class virtual methods.
240 (target_supports_memory_tagging): Define.
241
d171632f
TBA
2422021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
243
244 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
245 fields.
246 * dll.h (loaded_dll)
247 (unloaded_dll): Declare an overloaded version that takes a proc
248 parameter.
249 * dll.cc (loaded_dll)
250 (unloaded_dll): Implement the overloaded versions.
251 (clear_dlls): Clear all process' dll lists.
252 (all_dlls, dlls_changed): Remove the global variables.
253 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
254 list per proc.
255 * server.cc (handle_qxfer_libraries): Ditto.
256 (handle_v_attach): Ditto.
257 (captured_main): Ditto.
258
1a48f002
SM
2592021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
260
261 * linux-low.cc (linux_process_target::filter_event): Return
262 void.
263 * linux-low.h (class linux_process_target) <filter_event>:
264 Return void.
265
77fba254
TT
2662021-02-12 Tom Tromey <tromey@adacore.com>
267
268 * gdbreplay.cc (remote_desc): Remove.
269 (remote_desc_in, remote_desc_out): New globals.
270 (remote_close): Update.
271 (remote_open): Handle "-".
272 (remote_open): Update.
273 (logchar): Log to stderr.
274 (expect, play): Update.
275
c054dcd5
TT
2762021-02-12 Tom Tromey <tromey@adacore.com>
277
278 * gdbreplay.cc (remote_open): Constify.
279
9c9d63b1
PM
2802021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
281
282 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
283 gnulib free replacement too.
284 * common-defs.h [USE_WIN32API](read, write): Undefine
285 gnulib versions before defining these macros.
286
7e9cf1fe
PA
2872021-02-03 Pedro Alves <pedro@palves.net>
288
289 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
290 Discard step SIGTRAP, unless GDB wanted the thread to step.
291
b0083dd7
PA
2922021-02-03 Pedro Alves <pedro@palves.net>
293
294 * server.cc (discard_queued_stop_replies): Don't ever discard the
295 notification at the head of the list.
296
6bd434d6
SM
2972021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
298
299 * ax.cc (bytecode_address_table): Make static.
300 * debug.cc (debug_file): Make static.
301 * linux-low.cc (stopping_threads): Make static.
302 (step_over_bkpt): Make static.
303 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
304 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
305 alloced_trace_state_variables, trace_buffer_ctrl,
306 tracing_start_time, tracing_stop_time, tracing_user_name,
307 tracing_notes, tracing_stop_note): Make static.
308
037e8112
TV
3092021-01-20 Tom de Vries <tdevries@suse.de>
310
311 * linux-x86-low.cc (collect_register_i386): New function.
312 (x86_fill_gregset): Remove memset. Use collect_register_i386.
313
78e49486
TV
3142021-01-07 Tom de Vries <tdevries@suse.de>
315
316 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
317 (LIBIBERTY_FOR_SHLIB): New var.
318 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
319 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
320
3ec3145c
SM
3212021-01-04 Simon Marchi <simon.marchi@efficios.com>
322
323 * debug.cc (debug_print_depth): New.
324
2b47c078
JB
3252021-01-01 Joel Brobecker <brobecker@adacore.com>
326
327 * server.cc (gdbserver_version): Update copyright year.
328 * gdbreplay.cc (gdbreplay_version): Likewise.
329
19007d95
LM
3302020-12-16 Luis Machado <luis.machado@linaro.org>
331
332 * linux-aarch64-low.cc (address_significant): New function.
333 (aarch64_target::low_stopped_data_address): Handle the TBI.
334
96648494
AB
3352020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
336
337 * Makefile.in (IPA_LIB): Include libiberty library.
338
81fdd7ac
AB
3392020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
340
341 * server.cc (gdbserver_usage): Add missing option to usage text.
342 (gdbserver_show_disableable): Likewise.
343
dda83cd7
SM
3442020-11-02 Simon Marchi <simon.marchi@efficios.com>
345
346 * ax.cc: Fix indentation.
347 * dll.cc: Fix indentation.
348 * inferiors.h: Fix indentation.
349 * linux-low.cc: Fix indentation.
350 * linux-nios2-low.cc: Fix indentation.
351 * linux-ppc-ipa.cc: Fix indentation.
352 * linux-ppc-low.cc: Fix indentation.
353 * linux-x86-low.cc: Fix indentation.
354 * linux-xtensa-low.cc: Fix indentation.
355 * regcache.cc: Fix indentation.
356 * server.cc: Fix indentation.
357 * tracepoint.cc: Fix indentation.
358
19dd0ae5
SM
3592020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
360
361 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
362 AC_LANG_PROGRAM.
363 * configure: Re-generate.
364
b6fb30ed
SM
3652020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
366
367 * configure: Re-generate.
864ca435
SM
368
3692020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * configure: Re-generate.
b9442ec1
SM
372
3732020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
374
375 * configure: Re-generate.
b6fb30ed 376
5164c117
SM
3772020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
378
379 * configure: Re-generate.
380
7e8c7130
SM
3812020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
382
383 * configure.ac: Modernize.
384 * configure: Re-generate.
385
91e1a0ed
SM
3862020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
387
388 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
389 AC_CANONICAL_SYSTEM.
390 * configure: Re-generate.
391
d744f0f9
PA
3922020-10-26 Pedro Alves <pedro@palves.net>
393
394 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
395 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
396 explicit type.
397
006811bc
SM
3982020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
399
400 * acinclude.m4: Update ptrace.m4 path.
401
92a048fd
SM
4022020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
403
404 * config.in: Re-generate.
405 * configure: Re-generate.
406
4dbe16c8
SM
4072020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
408
409 * server.cc (handle_general_set): Don't use sprintf with
410 argument overlapping buffer.
411
a9b45cb7
TT
4122020-10-20 Tom Tromey <tromey@adacore.com>
413
414 PR gdb/26742:
415 * inferiors.cc (remove_thread): Clear current_thread before
416 freeing the thread.
417
b07993f6
KR
4182020-10-13 Kamil Rytarowski <n54@gmx.com>x
419
420 * netbsd-low.cc (netbsd_tdesc): Remove.
421 (netbsd_add_process): Likewise.
422 (netbsd_process_target::create_inferior): Update.
423
bbb826f5
AB
4242020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * linux-arc-low.cc (arc_linux_read_description): Release the
427 unique_ptr returned from arc_create_target_description.
428
361cb219
AB
4292020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
432 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
433
51a948fd
AB
4342020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
435
436 * linux-low.cc (linux_process_target::handle_extended_wait):
437 Release the unique_ptr returned from allocate_target_description.
438 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
439 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
440 (tdesc_i386_linux_no_xml): Change type.
441 (x86_linux_read_description): Borrow pointer from unique_ptr
442 object.
443 (x86_target::get_ipa_tdesc_idx): Likewise.
444 (initialize_low_arch): Likewise.
445 * tdesc.cc (allocate_target_description): Update return type.
446
60b74662
TT
4472020-10-07 Tom Tromey <tromey@adacore.com>
448
449 * server.cc (handle_search_memory): Remove dead code.
450
55b10d89
TT
4512020-10-07 Tom Tromey <tromey@adacore.com>
452
453 * server.cc (handle_search_memory_1): Remove.
454 (handle_search_memory): Use simple_search_memory.
455
a038ffd8
SM
4562020-10-07 Simon Marchi <simon.marchi@efficios.com>
457
458 * Makefile.in (COMPILE): Add CXXFLAGS.
459 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
460 (gdbserver$(EXEEXT)): Add CXXFLAGS.
461 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
462 ($(IPA_LIB)): Add CXXFLAGS.
463 (IPAGENT_COMPILE): Add CXXFLAGS.
464
bbe90b5d 4652020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
466
467 * configure.srv: Support ARC architecture.
468 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
469 * linux-arc-low.cc: New file.
470
48491055
KR
4712020-10-07 Kamil Rytarowski <n54@gmx.com>
472
473 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
474 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
475 (netbsd_process_target::qxfer_libraries_svr4): Update.
476
2be01f63
KR
4772020-10-07 Kamil Rytarowski <n54@gmx.com>
478
479 * netbsd-low.cc: Fix whitespace formatting.
480 * netbsd-amd64-low.cc: Likewise.
481
91e5e8db
KR
4822020-10-07 Kamil Rytarowski <n54@gmx.com>
483
484 * netbsd-low.cc (netbsd_process_target::read_memory)
485 (netbsd_process_target::write_memory): Update.
486
9529c852
KR
4872020-10-07 Kamil Rytarowski <n54@gmx.com>
488
489 * netbsd-aarch64-low.cc: Add.
490 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
491 * configure.srv: Add aarch64*-*-netbsd*.
492
981b570a
SV
4932020-10-06 Shahab Vahedi <shahab@synopsys.com>
494
495 * regcache.cc (register_data): Remove unused "fetch" argument.
496
6b01403b
SM
4972020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
498
499 * server.cc (handle_monitor_command): Handle "set
500 debug-event-loop".
501 (captured_main): Handle "--debug-event-loop".
502 (monitor_show_help): Mention new setting.
503 (gdbserver_usage): Mention new flag.
504
2554f6f5
SM
5052020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
506
507 * linux-low.cc (linux_process_target::async): Pass name to
508 add_file_handler.
509 * remote-utils.cc (handle_accept_event): Likewise.
510 (remote_open): Likewise.
511
8b667fae
KR
5122020-10-01 Kamil Rytarowski <n54@gmx.com>
513
514 * netbsd-i386-low.cc: Add.
515 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
516 * configure.srv: Add i[34567]86-*-netbsd*.
517
15397b0e
KR
5182020-10-01 Kamil Rytarowski <n54@gmx.com>
519
520 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
521 (netbsd_target_regsets): Now const.
522 (the_low_target): Remove.
523 (class netbsd_amd64_target, the_netbsd_amd64_target)
524 (the_netbsd_target): Add.
525 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
526 low_arch_setup ().
527 (netbsd_process_target::fetch_registers)
528 (netbsd_process_target::store_registers, initialize_low): Update.
529 (the_netbsd_target): Remove.
530 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
531 (the_low_target, netbsd_tdesc): Remove.
532 (netbsd_process_target::get_regs_info)
533 (netbsd_process_target::low_arch_setup): Add.
534
99bb393f
HD
5352020-09-23 Hannes Domani <ssbssa@yahoo.de>
536
537 * win32-low.cc: Remove local wow64_process variable.
538 * win32-low.h: Remove local wow64_process variable.
539
b60cea74
TT
5402020-09-18 Tom Tromey <tromey@adacore.com>
541
542 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
543 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
544 (netbsd_process_target::wait): Change type of target_options.
545 * win32-low.h (class win32_process_target) <wait>: Update.
546 * win32-low.cc (win32_process_target::wait): Update.
547 * target.h (class process_stratum_target) <wait>: Update.
548 (mywait): Update.
549 * target.cc (mywait, target_wait): Change type of "options".
550 * linux-low.h (class linux_process_target) <wait, wait_1>:
551 Update.
552 * linux-low.cc (linux_process_target::wait)
553 (linux_process_target::wait_1): Update.
554
db92ac45
TT
5552020-09-15 Tom Tromey <tromey@adacore.com>
556
557 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
558 (xmltarget_amd64_linux_no_xml): Now arrays.
559
27087b7f
TT
5602020-09-14 Tom Tromey <tromey@adacore.com>
561
562 * tracepoint.cc (eval_result_names): Now const.
563 * ax.cc (gdb_agent_op_names): Now const.
564
62ba5048
KR
5652020-09-10 Kamil Rytarowski <n54@gmx.com>
566
567 * netbsd-low.cc: Add.
568 * netbsd-low.h: Likewise.
569 * netbsd-amd64-low.cc: Likewise.
570 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
571 "netbsd-amd64-low.cc".
572 * configure.srv: Add x86_64-*-netbsd*.
573
ece5bc8a
SM
5742020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
575
576 * server.cc (captured_main): Accept multiple `--selftest=`
577 options. Pass all `--selftest=` arguments to run_tests.
578
c8693053
RO
5792020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
580
581 * configure, config.in: Regenerate.
582
05a6b8c2
EZ
5832020-07-26 Eli Zaretskii <eliz@gnu.org>
584
585 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
586 When checking whether socklen_t type is defined, use ws2tcpip.h if
587 it is available and sys/socket.h isn't.
588 * configure: Regenerate.
589 * config.in: Regenerate.
590
028a4603
PA
5912020-07-22 Pedro Alves <pedro@palves.net>
592
593 * inferiors.cc (switch_to_process): New, moved here from
594 thread-db.cc, and made extern.
595 * inferiors.h (switch_to_process): Declare.
596 * server.cc: Include "gdbsupport/scoped_restore.h".
597 (handle_qxfer_threads_proper): Now returns bool. Prepare to
598 access memory around target calls.
599 (handle_qxfer_threads): Handle errors.
600 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
601
05c309a8
SM
6022020-07-21 Simon Marchi <simon.marchi@efficios.com>
603
604 * linux-low.cc (stopped_pids): Make static.
605
0e267416
AB
6062020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * tdesc.cc (allocate_target_description): Add header comment.
609 (target_desc_deleter::operator()): New function.
610 * tdesc.h (struct target_desc): Declare as final.
611
b315b67d
SM
6122020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
613
614 * server.cc (handle_query): Use std::vector of
615 std::string for `qsupported` vector. Use separate
616 vector for unknowns.
617 * target.h (class process_stratum_target) <process_qsupported>:
618 Change parameters to array_view of const char *.
619 (target_process_qsupported): Remove `count` parameter.
620 * target.cc (process_stratum_target::process_qsupported): Change
621 parameters to array_view of const char *.
622 * linux-x86-low.cc (class x86_target) <process_qsupported>:
623 Likewise.
624
f638ed73
TV
6252020-06-29 Tom de Vries <tdevries@suse.de>
626
627 * ax.h: Include gdbsupport/debug_agent.h.
628
fbf42f4e
AB
6292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
630
631 * tdesc.cc (struct tdesc_compatible_info): New struct.
632 (tdesc_compatible_info_list): New function.
633 (tdesc_compatible_info_arch_name): New function.
634
013e3554
TBA
6352020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
636
637 Use std::list to stop pending signal instead of manually-created
638 linked list.
639 * linux-low.h: Include <list>.
640 (struct pending_signal): Move here from linux-low.cc.
641 (struct lwp_info) <pending_signals>
642 <pending_signals_to_report>: Update the type.
643 * linux-low.cc (struct pending_signals): Remove.
644 (linux_process_target::delete_lwp)
645 (linux_process_target::add_lwp)
646 (enqueue_one_deferred_signal)
647 (dequeue_one_deferred_signal)
648 (enqueue_pending_signal)
649 (linux_process_target::resume_one_lwp_throw)
650 (linux_process_target::thread_needs_step_over)
651 (linux_process_target::resume_one_thread)
652 (linux_process_target::proceed_one_lwp): Update the use of pending
653 signal list.
654
7d458ea5
SM
6552020-06-17 Simon Marchi <simon.marchi@efficios.com>
656
657 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
658 Remove.
659
84b300de
SM
6602020-06-12 Simon Marchi <simon.marchi@efficios.com>
661
662 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
663 * configure.srv: Remove mingw32ce cases.
664 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
665 * win32-low.h (to_back_slashes): Remove.
666 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
667
96c16e2b
SM
6682020-06-12 Simon Marchi <simon.marchi@efficios.com>
669
670 * Makefile.in (SFILES): linux-tile-low.cc.
671 * configure.srv: Remove tilegx case.
672 * linux-tile-low.cc: Remove.
673
bd1467ae
SM
6742020-06-12 Simon Marchi <simon.marchi@efficios.com>
675
676 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
677 * configure.srv: Remove m32r case.
678 * linux-m32r-low.cc: Remove.
679
7b46bf6f
SM
6802020-06-12 Simon Marchi <simon.marchi@efficios.com>
681
682 * Makefile.in (SFILES): Remove linux-cris-low.c.
683 * configure.srv: Remove cris cases.
684 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
685
1fa29f56
SM
6862020-06-12 Simon Marchi <simon.marchi@efficios.com>
687
688 * Makefile.in (SFILES): Remove linux-bfin-low.c.
689 * configure.srv: Remove bfin case.
690 * linux-bfin-low.cc: Remove.
691 * linux-low.cc: Remove BFIN-conditional code.
692
613f149a
SM
6932020-06-12 Simon Marchi <simon.marchi@efficios.com>
694
695 * configure: Re-generate.
696 * configure.ac: Remove srv_qnx test.
697 * configure.srv: Remove nto case.
698 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
699 * remote-utils.c: Remove __QNX__-guarded code.
700
fdb95bf5
SM
7012020-06-12 Simon Marchi <simon.marchi@efficios.com>
702
703 * configure: Re-generate.
704 * configure.ac: Remove srv_lynxos test.
705 * configure.srv: Remove lynxos cases.
706 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
707 Remove.
708
c00094dc
SM
7092020-06-12 Simon Marchi <simon.marchi@efficios.com>
710
711 * README: Fix a few outdated or incoherent things.
712
6479bf85
HD
7132020-05-27 Hannes Domani <ssbssa@yahoo.de>
714
715 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
716 (win32_clear_inferiors): Use open_process_used.
717 (get_child_debug_event): Likewise.
718
bea571eb
MW
7192020-05-25 Michael Weghorn <m.weghorn@posteo.de>
720
721 PR gdbserver/25893
722 * linux-low.cc (linux_process_target::create_inferior),
723 lynx-low.cc (lynx_process_target::create_inferior),
724 win32-low.cc (win32_process_target::create_inferior): Use
725 construct_inferior_arguments instead of stringify_argv
726 to get string representation which properly escapes
727 special characters.
728 * server.cc (handle_v_run): Just pass empty program arg
729 as such, since any further processing is now handled via
730 construct_inferior_arguments.
731
ace6b919
MW
7322020-05-25 Michael Weghorn <m.weghorn@posteo.de>
733
734 * nto-low.cc (nto_process_target::create_inferior): Pass
735 argv to spawnp function as char **.
736
b69ca137
MW
7372020-05-25 Michael Weghorn <m.weghorn@posteo.de>
738
739 * server.cc (captured_main), (handle_v_run): No longer
740 insert extra NULL element to args vector.
741
51e2cfa2
PA
7422020-05-23 Pedro Alves <palves@redhat.com>
743
744 * gdb-safe-ctype.h: New.
745
8bbf0394
TBA
7462020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
747
748 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
749 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
750 (ia64_target::low_breakpoint_at): Ditto.
751
01370779
HD
7522020-05-15 Hannes Domani <ssbssa@yahoo.de>
753
754 * win32-i386-low.cc (i386_supports_z_point_type): Handle
755 Z_PACKET_HW_BP z_type.
756 (i386_insert_point): Handle raw_bkpt_type type.
757 (i386_remove_point): Likewise.
758
7d186bc0
HD
7592020-04-30 Hannes Domani <ssbssa@yahoo.de>
760
761 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
762 Add arch/i386.o.
763 * win32-arm-low.cc (arm_num_regs): New function.
764 (struct win32_target_ops): Use arm_num_regs.
765 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
766 processes.
767 (i386_get_thread_context): Likewise.
768 (i386_prepare_to_resume): Likewise.
769 (i386_thread_added): Likewise.
770 (i386_single_step): Likewise.
771 (i386_fetch_inferior_register): Likewise.
772 (i386_store_inferior_register): Likewise.
773 (i386_arch_setup): Likewise.
774 (i386_win32_num_regs): New function.
775 (struct win32_target_ops): Use i386_win32_num_regs.
776 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
777 processes.
778 (win32_require_context): Likewise.
779 (child_add_thread): Likewise.
780 (do_initial_child_stuff): Likewise.
781 (continue_one_thread): Likewise.
782 (win32_process_target::resume): Likewise.
783 (load_psapi): Likewise.
784 (win32_add_all_dlls): Likewise.
785 (maybe_adjust_pc): Likewise.
786 (win32_process_target::qxfer_siginfo): Likewise.
787 (initialize_low): Likewise.
788 * win32-low.h (struct win32_target_ops): Change num_regs to
789 callback function.
790
1eb39914
SM
7912020-04-27 Simon Marchi <simon.marchi@efficios.com>
792
793 * configure.ac: Remove check for fs_base/gs_base in
794 user_regs_struct.
795 * configure: Re-generate.
796 * config.in: Re-generate.
797 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
798 x86_store_gregset): Adjust.
799
51ac8e22
HD
8002020-04-22 Hannes Domani <ssbssa@yahoo.de>
801
802 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
803 comparison.
804
a010605f
TT
8052020-04-16 Tom Tromey <tromey@adacore.com>
806
807 * win32-low.cc (windows_nat::handle_access_violation): New
808 function.
809
e2275c6e
SM
8102020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
811
812 * win32-low.cc (get_child_debug_event): Fix format string warning.
813
73944e9f
TT
8142020-04-13 Tom Tromey <tom@tromey.com>
815
816 * server.h (gdb_fildes_t): Remove typedef.
817 * remote-utils.c (remote_desc, list_desc): Now int.
818 (INVALID_DESCRIPTOR): Remove.
819 (gdb_connected, remote_close)
820 (check_remote_input_interrupt_request): Update.
821 * utils.h (pfildes): Don't declare.
822 * utils.c (pfildes): Remove.
823
55d7aec8
TT
8242020-04-13 Tom Tromey <tom@tromey.com>
825
826 * server.h (handle_serial_event, handle_target_event): Update.
827 * server.c: Don't call initialize_event_loop.
828 (keep_processing_events): New global.
829 (handle_serial_event): Return void. Set keep_processing_events.
830 (handle_target_event): Return void.
831 (start_event_loop): Move from event-loop.c. Rewrite.
832 * remote-utils.c (handle_accept_event): Return void.
833 (reset_readchar): Use delete_timer.
834 (process_remaining): Return void.
835 (reschedule): Use create_timer.
836 * event-loop.h: Remove.
837 * event-loop.cc: Remove.
838 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
839
e487f994
TT
8402020-04-13 Tom Tromey <tom@tromey.com>
841
842 * server.c (invoke_async_signal_handlers)
843 (check_async_event_handlers, flush_streams, gdb_select): New
844 functions.
845
8ae8e197
TT
8462020-04-13 Tom Tromey <tom@tromey.com>
847
848 * configure: Rebuild.
849 * config.in: Rebuild.
850
360ad8b3
TT
8512020-04-08 Tom Tromey <tromey@adacore.com>
852
853 PR gdb/22992
854 * win32-low.c (child_continue): Call matching_pending_stop.
855 (get_child_debug_event): Call fetch_pending_stop. Push pending
856 stop when needed.
857
523d4f80
TT
8582020-04-08 Tom Tromey <tromey@adacore.com>
859
860 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
861 (win32_process_target::supports_stopped_by_sw_breakpoint):
862 Declare.
863 * win32-low.c (win32_supports_z_point_type): Always handle
864 Z_PACKET_SW_BP.
865 (win32_insert_point): Call insert_memory_breakpoint when needed.
866 (win32_remove_point): Call remove_memory_breakpoint when needed.
867 (win32_process_target::stopped_by_sw_breakpoint)
868 (win32_process_target::supports_stopped_by_sw_breakpoint): New
869 methods.
870 (win32_target_ops): Update.
871 (maybe_adjust_pc): New function.
872 (win32_wait): Call maybe_adjust_pc.
873
e54e5929
TT
8742020-04-08 Tom Tromey <tromey@adacore.com>
875
876 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
877 field.
878 * win32-i386-low.c (the_low_target): Update.
879 * win32-arm-low.c (the_low_target): Update.
880
d6225aff
TT
8812020-04-08 Tom Tromey <tromey@adacore.com>
882
883 * win32-low.h (win32_process_target::read_pc)
884 (win32_process_target::write_pc): Declare.
885 * win32-low.c (win32_process_target::read_pc)
886 (win32_process_target::write_pc): New methods.
887 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
888 functions.
889 (the_low_target): Update.
890 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
891 functions.
892 (the_low_target): Update.
893
2c1d95e8
TT
8942020-04-08 Tom Tromey <tromey@adacore.com>
895
896 * win32-low.c (win32_kill, get_child_debug_event): Use
897 wait_for_debug_event.
898
e758e19c
TT
8992020-04-08 Tom Tromey <tromey@adacore.com>
900
901 * win32-low.c (child_continue): Call continue_last_debug_event.
902
8d30e395
TT
9032020-04-08 Tom Tromey <tromey@adacore.com>
904
905 * win32-low.c (handle_exception): Remove.
906 (windows_nat::handle_ms_vc_exception): New function.
907 (get_child_debug_event): Add "continue_status" parameter.
908 Update.
909 (win32_wait): Update.
910
a816ba18
TT
9112020-04-08 Tom Tromey <tromey@adacore.com>
912
913 * win32-low.c (windows_nat::handle_load_dll): Rename from
914 handle_load_dll. No longer static.
915 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
916 No longer static.
917
d41b524f
TT
9182020-04-08 Tom Tromey <tromey@adacore.com>
919
920 * win32-low.c (handle_output_debug_string): Add parameter. Change
921 return type.
922 (win32_kill, get_child_debug_event): Update.
923
3c76026d
TT
9242020-04-08 Tom Tromey <tromey@adacore.com>
925
926 * win32-low.c (current_process_handle, current_process_id)
927 (main_thread_id, last_sig, current_event, siginfo_er): Move to
928 nat/windows-nat.c.
929
9d8679cc
TT
9302020-04-08 Tom Tromey <tromey@adacore.com>
931
932 * win32-low.c (get_image_name): Remove.
933 (handle_load_dll): Update.
934
28688adf
TT
9352020-04-08 Tom Tromey <tromey@adacore.com>
936
937 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
938 No longer static. Change parameters.
939 (child_add_thread, child_fetch_inferior_registers)
940 (child_store_inferior_registers, win32_resume)
941 (win32_get_tib_address): Update.
942
4834dad0
TT
9432020-04-08 Tom Tromey <tromey@adacore.com>
944
945 * win32-low.h (struct win32_target_ops): Use qualified names where
946 needed.
947 * win32-i386-low.c: Add "using namespace".
948 * win32-low.c: Add "using namespace".
949 * win32-arm-low.c: Add "using namespace".
950
65bafd5b
TT
9512020-04-08 Tom Tromey <tromey@adacore.com>
952
953 * win32-low.c (delete_thread_info): Don't call CloseHandle.
954
98a03287
TT
9552020-04-08 Tom Tromey <tromey@adacore.com>
956
957 * win32-low.c (win32_require_context, suspend_one_thread): Use
958 windows_thread_info::suspend.
959 (continue_one_thread): Use windows_thread_info::resume.
960 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
961
62fe396b
TT
9622020-04-08 Tom Tromey <tromey@adacore.com>
963
964 * win32-i386-low.c (update_debug_registers)
965 (i386_prepare_to_resume, i386_thread_added): Update.
966
e9534bd2
TT
9672020-04-08 Tom Tromey <tromey@adacore.com>
968
969 * win32-low.c (child_add_thread): Use new.
970 (delete_thread_info): Use delete.
971
ae1f8880
TT
9722020-04-08 Tom Tromey <tromey@adacore.com>
973
974 * win32-low.h (struct windows_thread_info): Remove.
975
e56f8ccb
TT
9762020-04-08 Tom Tromey <tromey@adacore.com>
977
978 * win32-low.h (struct windows_thread_info): Rename from
979 win32_thread_info. Remove typedef.
980 (struct win32_target_ops, win32_require_context): Update.
981 * win32-low.c (win32_get_thread_context)
982 (win32_set_thread_context, win32_prepare_to_resume)
983 (win32_require_context, thread_rec, child_add_thread)
984 (delete_thread_info, continue_one_thread)
985 (child_fetch_inferior_registers, child_store_inferior_registers)
986 (win32_resume, suspend_one_thread, win32_get_tib_address):
987 Update.
988 * win32-i386-low.c (update_debug_registers)
989 (win32_get_current_dr, i386_get_thread_context)
990 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
991 (i386_fetch_inferior_register, i386_store_inferior_register):
992 Update.
993 * win32-arm-low.c (arm_get_thread_context)
994 (arm_fetch_inferior_register, arm_store_inferior_register):
995 Update.
996
0dd7b52e
TBA
9972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
998
999 * linux-low.h (struct linux_target_ops): Remove.
1000 (the_low_target): Remove.
1001 * linux-x86-low.cc (the_low_target): Remove.
1002 * linux-aarch64-low.cc (the_low_target): Ditto.
1003 * linux-arm-low.cc (the_low_target): Ditto.
1004 * linux-bfin-low.cc (the_low_target): Ditto.
1005 * linux-cris-low.cc (the_low_target): Ditto.
1006 * linux-crisv32-low.cc (the_low_target): Ditto.
1007 * linux-ia64-low.cc (the_low_target): Ditto.
1008 * linux-m32r-low.cc (the_low_target): Ditto.
1009 * linux-m68k-low.cc (the_low_target): Ditto.
1010 * linux-mips-low.cc (the_low_target): Ditto.
1011 * linux-nios2-low.cc (the_low_target): Ditto.
1012 * linux-ppc-low.cc (the_low_target): Ditto.
1013 * linux-riscv-low.cc (the_low_target): Ditto.
1014 * linux-s390-low.cc (the_low_target): Ditto.
1015 * linux-sh-low.cc (the_low_target): Ditto.
1016 * linux-sparc-low.cc (the_low_target): Ditto.
1017 * linux-tic6x-low.cc (the_low_target): Ditto.
1018 * linux-tile-low.cc (the_low_target): Ditto.
1019 * linux-xtensa-low.cc (the_low_target): Ditto.
1020
fc5ecdb6
TBA
10212020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1022
1023 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
1024 linux target define the op by overriding the declaration in
1025 process_stratum_target.
1026
1027 * linux-low.h (struct linux_target_ops): Remove the op.
1028 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
1029 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
1030 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
1031 (x86_get_ipa_tdesc_idx): Turn into...
1032 (x86_target::get_ipa_tdesc_idx): ...this.
1033 (the_low_target): Remove the op field.
1034 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
1035 (ppc_get_ipa_tdesc_idx): Turn into...
1036 (ppc_target::get_ipa_tdesc_idx): ...this.
1037 (the_low_target): Remove the op field.
1038 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
1039 (s390_get_ipa_tdesc_idx): Turn into...
1040 (s390_target::get_ipa_tdesc_idx): ...this.
1041 (the_low_target): Remove the op field.
1042
9eedd27d
TBA
10432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1044
1045 Turn the 'get_syscall_trapinfo' linux target op into a method
1046 of process_stratum_target.
1047
1048 * linux-low.h (struct linux_target_ops): Remove the op.
1049 (class linux_process_target) <get_syscall_trapinfo>
1050 <gdb_catch_this_syscall>
1051 <low_supports_catch_syscall>
1052 <low_get_syscall_trapinfo>: Declare.
1053 * linux-low.cc (get_syscall_trapinfo): Turn into...
1054 (linux_process_target::get_syscall_trapinfo): ...this.
1055 (linux_process_target::low_get_syscall_trapinfo): Define.
1056 (gdb_catch_this_syscall_p): Turn into...
1057 (linux_process_target::gdb_catch_this_syscall): ...this.
1058 (linux_process_target::low_supports_catch_syscall): Define.
1059
1060 Update the callers below.
1061
1062 (linux_process_target::wait_1)
1063 (linux_process_target::supports_catch_syscall)
1064
1065 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
1066 <low_get_syscall_trapinfo>: Declare.
1067 (x86_target::low_supports_catch_syscall): Define.
1068 (x86_get_syscall_trapinfo): Turn into...
1069 (x86_target::low_get_syscall_trapinfo): ...this.
1070 (the_low_target): Remove the op field.
1071 * linux-aarch64-low.cc (class aarch64_target)
1072 <low_supports_catch_syscall>
1073 <low_get_syscall_trapinfo>: Declare.
1074 (aarch64_target::low_supports_catch_syscall): Define.
1075 (aarch64_get_syscall_trapinfo): Turn into...
1076 (aarch64_target::low_get_syscall_trapinfo): ...this.
1077 (the_low_target): Remove the op field.
1078 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1079 <low_get_syscall_trapinfo>: Declare.
1080 (arm_target::low_supports_catch_syscall): Define.
1081 (arm_get_syscall_trapinfo): Turn into...
1082 (arm_target::low_get_syscall_trapinfo): ...this.
1083 (the_low_target): Remove the op field.
1084 * linux-ppc-low.cc (the_low_target): Remove the op field.
1085 * linux-s390-low.cc (the_low_target): Remove the op field.
1086
b31cdfa6
TBA
10872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1088
1089 Remove the 'supports_hardware_single_step' linux target op and
1090 override the process_stratum_target's op definition in
1091 linux_process_target to return true.
1092
1093 * linux-low.h (struct linux_target_ops): Remove the op.
1094 (class linux_process_target) <finish_step_over>
1095 <maybe_hw_step>: Declare.
1096 * linux-low.cc (can_hardware_single_step): Remove.
1097 (maybe_hw_step): Turn into...
1098 (linux_process_target::maybe_hw_step): ...this.
1099 (finish_step_over): Turn into...
1100 (linux_process_target::finish_step_over): ...this.
1101 (linux_process_target::supports_hardware_single_step): Update
1102 to return true.
1103
1104 Update the callers below.
1105
1106 (linux_process_target::single_step)
1107 (linux_process_target::resume_one_lwp_throw)
1108
1109 * linux-arm-low.cc (class arm_target)
1110 <supports_hardware_single_step>: Declare.
1111 (arm_supports_hardware_single_step): Turn into...
1112 (arm_target::supports_hardware_single_step): ...this.
1113 (the_low_target): Remove the op field.
1114 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1115 (the_low_target): Remove the op field.
1116 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1117 Remove.
1118 (the_low_target): Remove the op field.
1119 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1120 (the_low_target): Remove the op field.
1121 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1122 (the_low_target): Remove the op field.
1123 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1124 (the_low_target): Remove the op field.
1125 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1126 (the_low_target): Remove the op field.
1127 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1128 (the_low_target): Remove the op field.
1129 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1130 (the_low_target): Remove the op field.
1131 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1132 (the_low_target): Remove the op field.
1133 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1134 (the_low_target): Remove the op field.
1135 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1136 (the_low_target): Remove the op field.
1137 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1138 Remove.
1139 (the_low_target): Remove the op field.
1140
9cfd8715
TBA
11412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1142
1143 Turn the 'supports_range_stepping' linux target op into a method
1144 of linux_process_target.
1145
1146 * linux-low.h (struct linux_target_ops): Remove the op.
1147 (class linux_process_target) <low_supports_range_stepping>: Declare.
1148 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1149 Define.
1150 (linux_process_target::supports_range_stepping): Update the call
1151 site.
1152 * linux-x86-low.cc (class x86_target)
1153 <low_supports_range_stepping>: Declare.
1154 (x86_supports_range_stepping): Turn into...
1155 (x86_target::low_supports_range_stepping): ...this.
1156 (the_low_target): Remove the op field.
1157 * linux-aarch64-low.cc (class aarch64_target)
1158 <low_supports_range_stepping>: Declare.
1159 (aarch64_supports_range_stepping): Turn into...
1160 (aarch64_target::low_supports_range_stepping): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-arm-low.cc (the_low_target): Remove the op field.
1163 * linux-bfin-low.cc (the_low_target): Ditto.
1164 * linux-crisv32-low.cc (the_low_target): Ditto.
1165 * linux-m32r-low.cc (the_low_target): Ditto.
1166 * linux-m68k-low.cc (the_low_target): Ditto.
1167 * linux-ppc-low.cc (the_low_target): Ditto.
1168 * linux-s390-low.cc (the_low_target): Ditto.
1169 * linux-sh-low.cc (the_low_target): Ditto.
1170 * linux-tic6x-low.cc (the_low_target): Ditto.
1171 * linux-tile-low.cc (the_low_target): Ditto.
1172 * linux-xtensa-low.cc (the_low_target): Ditto.
1173
ab64c999
TBA
11742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1175
1176 Remove the 'emit_ops' linux target ops and let the concrete
1177 linux target define the op by overriding the declaration of
1178 process_stratum_target.
1179
1180 * linux-low.h (struct linux_target_ops): Remove the op.
1181 (class linux_process_target) <emit_ops>: Remove.
1182 * linux-low.cc (linux_process_target::emit_ops): Remove.
1183 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1184 (x86_emit_ops): Turn into...
1185 (x86_target::emit_ops): ...this.
1186 (the_low_target): Remove the op field.
1187 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1188 (aarch64_emit_ops): Turn into...
1189 (aarch64_target::emit_ops): ...this.
1190 (the_low_target): Remove the op field.
1191 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1192 (ppc_emit_ops): Turn into...
1193 (ppc_target::emit_ops): ...this.
1194 (the_low_target): Remove the op field.
1195 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1196 (s390_emit_ops): Turn into...
1197 (s390_target::emit_ops): ...this.
1198 (the_low_target): Remove the op field.
1199 * linux-arm-low.cc (the_low_target): Remove the op field.
1200 * linux-bfin-low.cc (the_low_target): Ditto.
1201 * linux-crisv32-low.cc (the_low_target): Ditto.
1202 * linux-m32r-low.cc (the_low_target): Ditto.
1203 * linux-m68k-low.cc (the_low_target): Ditto.
1204 * linux-sh-low.cc (the_low_target): Ditto.
1205 * linux-tic6x-low.cc (the_low_target): Ditto.
1206 * linux-tile-low.cc (the_low_target): Ditto.
1207 * linux-xtensa-low.cc (the_low_target): Ditto.
1208
809a0c35
TBA
12092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1210
1211 Remove the 'install_fast_tracepoint_jump_pad' and
1212 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1213 concrete linux target define the ops by overriding the declarations
1214 of process_stratum_target.
1215
1216 * linux-low.h (struct linux_target_ops): Remove the ops.
1217 (class linux_process_target) <supports_fast_tracepoints>
1218 <install_fast_tracepoint_jump_pad>
1219 <get_min_fast_tracepoint_insn_len>: Remove.
1220 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1221 (linux_process_target::install_fast_tracepoint_jump_pad)
1222 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1223 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1224 <install_fast_tracepoint_jump_pad>
1225 <get_min_fast_tracepoint_insn_len>: Declare.
1226 (x86_target::supports_fast_tracepoints): Define.
1227 (x86_install_fast_tracepoint_jump_pad): Turn into...
1228 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1229 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1230 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1231 (the_low_target): Remove the op fields.
1232 * linux-aarch64-low.cc (class aarch64_target)
1233 <supports_fast_tracepoints>
1234 <install_fast_tracepoint_jump_pad>
1235 <get_min_fast_tracepoint_insn_len>: Declare.
1236 (aarch64_target::supports_fast_tracepoints): Define.
1237 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1238 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1239 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1240 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1241 (the_low_target): Remove the op fields.
1242 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1243 <install_fast_tracepoint_jump_pad>
1244 <get_min_fast_tracepoint_insn_len>: Declare.
1245 (ppc_target::supports_fast_tracepoints): Define.
1246 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1247 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1248 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1249 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1250 (the_low_target): Remove the op fields.
1251 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1252 <install_fast_tracepoint_jump_pad>
1253 <get_min_fast_tracepoint_insn_len>: Declare.
1254 (s390_target::supports_fast_tracepoints): Define.
1255 (s390_install_fast_tracepoint_jump_pad): Turn into...
1256 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1257 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1258 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1259 (the_low_target): Remove the op fields.
1260 * linux-arm-low.cc (the_low_target): Remove the op fields.
1261 * linux-bfin-low.cc (the_low_target): Ditto.
1262 * linux-crisv32-low.cc (the_low_target): Ditto.
1263 * linux-m32r-low.cc (the_low_target): Ditto.
1264 * linux-m68k-low.cc (the_low_target): Ditto.
1265 * linux-sh-low.cc (the_low_target): Ditto.
1266 * linux-tic6x-low.cc (the_low_target): Ditto.
1267 * linux-tile-low.cc (the_low_target): Ditto.
1268 * linux-xtensa-low.cc (the_low_target): Ditto.
1269
13e567af
TBA
12702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1271
1272 Turn the 'get_thread_area' linux target op into a method of
1273 process_stratum_target.
1274
1275 * linux-low.h (struct linux_target_ops): Remove the op.
1276 (class linux_process_target) <stuck_in_jump_pad>
1277 <linux_fast_tracepoint_collecting>
1278 <low_get_thread_area>: Declare.
1279 * linux-low.cc (supports_fast_tracepoints): Remove.
1280 (linux_fast_tracepoint_collecting): Turn into...
1281 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1282 (linux_process_target::low_get_thread_area): Define.
1283 (stuck_in_jump_pad_callback): Turn into...
1284 (linux_process_target::stuck_in_jump_pad): ...this.
1285
1286 Update the caller below.
1287
1288 (linux_process_target::stabilize_threads)
1289
1290 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1291 Declare.
1292 (x86_get_thread_area): Turn into...
1293 (x86_target::low_get_thread_area): ...this.
1294 (the_low_target): Remove the op field.
1295 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1296 Declare.
1297 (aarch64_get_thread_area): Turn into...
1298 (aarch64_target::low_get_thread_area): ...this.
1299 (the_low_target): Remove the op field.
1300 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1301 Declare.
1302 (ppc_get_thread_area): Turn into...
1303 (ppc_target::low_get_thread_area): ...this.
1304 (the_low_target): Remove the op field.
1305 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1306 Declare.
1307 (s390_get_thread_area): Turn into...
1308 (s390_target::low_get_thread_area): ...this.
1309 (the_low_target): Remove the op field.
1310 * linux-arm-low.cc (the_low_target): Remove the op field.
1311 * linux-bfin-low.cc (the_low_target): Ditto.
1312 * linux-crisv32-low.cc (the_low_target): Ditto.
1313 * linux-m32r-low.cc (the_low_target): Ditto.
1314 * linux-m68k-low.cc (the_low_target): Ditto.
1315 * linux-sh-low.cc (the_low_target): Ditto.
1316 * linux-tic6x-low.cc (the_low_target): Ditto.
1317 * linux-tile-low.cc (the_low_target): Ditto.
1318 * linux-xtensa-low.cc (the_low_target): Ditto.
1319
47f70aa7
TBA
13202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1321
1322 Remote the 'supports_tracepoints' linux target op and let the
1323 concrete linux target define it by overriding the op declared in
1324 process_stratum_target.
1325
1326 * linux-low.h (struct linux_target_ops): Remove the op.
1327 (class linux_process_target) <supports_tracepoints>: Remove.
1328 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1329 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1330 Declare.
1331 (x86_supports_tracepoints): Turn into...
1332 (x86_target::supports_tracepoints): ...this.
1333 (the_low_target): Remove the op field.
1334 * linux-aarch64-low.cc (class aarch64_target)
1335 <supports_tracepoints>: Declare.
1336 (aarch64_supports_tracepoints): Turn into...
1337 (aarch64_target::supports_tracepoints): ...this.
1338 (the_low_target): Remove the op field.
1339 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1340 Declare.
1341 (ppc_supports_tracepoints): Turn into...
1342 (ppc_target::supports_tracepoints): ...this.
1343 (the_low_target): Remove the op field.
1344 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1345 Declare.
1346 (s390_supports_tracepoints): Turn into...
1347 (s390_target::supports_tracepoints): ...this.
1348 (the_low_target): Remove the op field.
1349 * linux-arm-low.cc (the_low_target): Remove the op field.
1350 * linux-bfin-low.cc (the_low_target): Ditto.
1351 * linux-crisv32-low.cc (the_low_target): Ditto.
1352 * linux-m32r-low.cc (the_low_target): Ditto.
1353 * linux-m68k-low.cc (the_low_target): Ditto.
1354 * linux-sh-low.cc (the_low_target): Ditto.
1355 * linux-tic6x-low.cc (the_low_target): Ditto.
1356 * linux-tile-low.cc (the_low_target): Ditto.
1357 * linux-xtensa-low.cc (the_low_target): Ditto.
1358
a5b5da92
TBA
13592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1360
1361 Remove the 'process_qsupported' linux target op and let a concrete
1362 linux target define the op by overriding the op declaration in
1363 process_stratum_target.
1364
1365 * linux-low.h (struct linux_target_ops): Remove the op.
1366 (class linux_process_target) <process_qsupported>: Remove.
1367 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1368 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1369 (x86_linux_process_qsupported): Turn into...
1370 (x86_target::process_qsupported): ...this.
1371 (the_low_target): Remove the op field.
1372 * linux-aarch64-low.cc (the_low_target): Remove the op
1373 field.
1374 * linux-arm-low.cc (the_low_target): Ditto.
1375 * linux-bfin-low.cc (the_low_target): Ditto.
1376 * linux-crisv32-low.cc (the_low_target): Ditto.
1377 * linux-m32r-low.cc (the_low_target): Ditto.
1378 * linux-m68k-low.cc (the_low_target): Ditto.
1379 * linux-ppc-low.cc (the_low_target): Ditto.
1380 * linux-s390-low.cc (the_low_target): Ditto.
1381 * linux-sh-low.cc (the_low_target): Ditto.
1382 * linux-tic6x-low.cc (the_low_target): Ditto.
1383 * linux-tile-low.cc (the_low_target): Ditto.
1384 * linux-xtensa-low.cc (the_low_target): Ditto.
1385
d7599cc0
TBA
13862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1387
1388 Turn the 'prepare_to_resume' linux target op into a method of
1389 linux_process_target.
1390
1391 * linux-low.h (struct linux_target_ops): Remove the op.
1392 (class linux_process_target) <low_prepare_to_resume>: Declare.
1393 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1394 Define.
1395
1396 Update the callers below:
1397
1398 (linux_process_target::resume_one_lwp_throw)
1399 (linux_process_target::low_prepare_to_resume)
1400
1401 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1402 Declare.
1403 (x86_target::low_prepare_to_resume): Define.
1404 (the_low_target): Remove the op field.
1405 * linux-aarch64-low.cc (class aarch64_target)
1406 <low_prepare_to_resume>: Declare.
1407 (aarch64_target::low_prepare_to_resume): Define.
1408 (the_low_target): Remove the op field.
1409 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1410 Declare.
1411 (arm_prepare_to_resume): Turn into...
1412 (arm_target::low_prepare_to_resume): ...this.
1413 (the_low_target): Remove the op field.
1414 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1415 Declare.
1416 (mips_linux_prepare_to_resume): Turn into...
1417 (mips_target::low_prepare_to_resume): ...this.
1418 (the_low_target): Remove the op field.
1419 * linux-bfin-low.cc (the_low_target): Remove the op field.
1420 * linux-crisv32-low.cc (the_low_target): Ditto.
1421 * linux-m32r-low.cc (the_low_target): Ditto.
1422 * linux-m68k-low.cc (the_low_target): Ditto.
1423 * linux-ppc-low.cc (the_low_target): Ditto.
1424 * linux-s390-low.cc (the_low_target): Ditto.
1425 * linux-sh-low.cc (the_low_target): Ditto.
1426 * linux-tic6x-low.cc (the_low_target): Ditto.
1427 * linux-tile-low.cc (the_low_target): Ditto.
1428 * linux-xtensa-low.cc (the_low_target): Ditto.
1429
fd000fb3
TBA
14302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1431
1432 Turn the 'new_process', 'delete_process', 'new_thread',
1433 'delete_thread', and 'new_fork' linux target ops into methods
1434 of linux_process_target.
1435
1436 * linux-low.h (struct linux_target_ops): Remove the ops.
1437 (class linux_process_target) <add_linux_process>
1438 <add_lwp>
1439 <delete_lwp>
1440 <attach_lwp>
1441 <detach_one_lwp>
1442 <check_zombie_leaders>
1443 <filter_exit_event>
1444 <low_new_process>
1445 <low_delete_process>
1446 <low_new_thread>
1447 <low_delete_thread>
1448 <low_new_fork>: Declare.
1449 * linux-low.cc (delete_lwp): Turn into...
1450 (linux_process_target::delete_lwp): ...this.
1451 (linux_process_target::low_delete_thread): Define.
1452 (linux_add_process): Turn into...
1453 (linux_process_target::add_linux_process): ...this.
1454 (linux_process_target::low_new_process): Define.
1455 (linux_process_target::low_delete_process): Define.
1456 (linux_process_target::low_new_fork): Define.
1457 (add_lwp): Turn into...
1458 (linux_process_target::add_lwp): ...this.
1459 (linux_process_target::low_new_thread): Define.
1460 (linux_attach_lwp): Turn into...
1461 (linux_process_target::attach_lwp): ...this.
1462 (linux_detach_one_lwp): Turn into...
1463 (linux_process_target::detach_one_lwp): ...this.
1464 (linux_detach_lwp_callback): Remove and inline...
1465 (linux_process_target::detach): ...here.
1466 (check_zombie_leaders): Turn into...
1467 (linux_process_target::check_zombie_leaders): ...this.
1468 (filter_exit_event): Turn into...
1469 (linux_process_target::filter_exit_event): ...this.
1470
1471 Update the callers below.
1472
1473 (linux_process_target::handle_extended_wait)
1474 (linux_process_target::create_inferior)
1475 (attach_proc_task_lwp_callback)
1476 (linux_process_target::attach)
1477 (linux_process_target::detach)
1478 (linux_process_target::mourn)
1479 * thread-db.cc (attach_thread)
1480
1481 * linux-x86-low.cc (class x86_target) <low_new_process>
1482 <low_delete_process>
1483 <low_new_thread>
1484 <low_delete_thread>
1485 <low_new_fork>: Declare.
1486 (x86_linux_new_process): Turn into...
1487 (x86_target::low_new_process): ...this.
1488 (x86_linux_delete_process): Turn into...
1489 (x86_target::low_delete_process): ...this.
1490 (x86_target::low_new_thread): Define.
1491 (x86_target::low_delete_thread): Define.
1492 (x86_linux_new_fork): Turn into...
1493 (x86_target::low_new_fork): ...this.
1494 (the_low_target): Remove the op fields.
1495 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1496 <low_delete_process>
1497 <low_new_thread>
1498 <low_delete_thread>
1499 <low_new_fork>: Declare.
1500 (aarch64_linux_new_process): Turn into...
1501 (aarch64_target::low_new_process): ...this.
1502 (aarch64_linux_delete_process): Turn into...
1503 (aarch64_target::low_delete_process): ...this.
1504 (aarch64_target::low_new_thread): Define.
1505 (aarch64_target::low_delete_thread): Define.
1506 (aarch64_linux_new_fork): Turn into...
1507 (aarch64_target::low_new_fork): ...this.
1508 (the_low_target): Remove the op fields.
1509 * linux-arm-low.cc (class arm_target) <low_new_process>
1510 <low_delete_process>
1511 <low_new_thread>
1512 <low_delete_thread>
1513 <low_new_fork>: Declare.
1514 (arm_new_process): Turn into...
1515 (arm_target::low_new_process): ...this.
1516 (arm_delete_process): Turn into...
1517 (arm_target::low_delete_process): ...this.
1518 (arm_new_thread): Turn into...
1519 (arm_target::low_new_thread): ...this.
1520 (arm_delete_thread): Turn into...
1521 (arm_target::low_delete_thread): ...this.
1522 (arm_new_fork): Turn into...
1523 (arm_target::low_new_fork): ...this.
1524 (the_low_target): Remove the op fields.
1525 * linux-mips-low.cc (class mips_target) <low_new_process>
1526 <low_delete_process>
1527 <low_new_thread>
1528 <low_delete_thread>
1529 <low_new_fork>: Declare.
1530 (mips_linux_new_process): Turn into...
1531 (mips_target::low_new_process): ...this.
1532 (mips_linux_delete_process): Turn into...
1533 (mips_target::low_delete_process): ...this.
1534 (mips_linux_new_thread): Turn into...
1535 (mips_target::low_new_thread): ...this.
1536 (mips_linux_delete_thread): Turn into...
1537 (mips_target::low_delete_thread): ...this.
1538 (mips_linux_new_fork): Turn into...
1539 (mips_target::low_new_fork): ...this.
1540 (the_low_target): Remove the op fields.
1541 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1542 * linux-crisv32-low.cc (the_low_target): Ditto.
1543 * linux-m32r-low.cc (the_low_target): Ditto.
1544 * linux-m68k-low.cc (the_low_target): Ditto.
1545 * linux-ppc-low.cc (the_low_target): Ditto.
1546 * linux-s390-low.cc (the_low_target): Ditto.
1547 * linux-sh-low.cc (the_low_target): Ditto.
1548 * linux-tic6x-low.cc (the_low_target): Ditto.
1549 * linux-tile-low.cc (the_low_target): Ditto.
1550 * linux-xtensa-low.cc (the_low_target): Ditto.
1551
cb63de7c
TBA
15522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1553
1554 Turn the 'siginfo_fixup' linux target op into a method of
1555 linux_process_target.
1556
1557 * linux-low.h (struct linux_target_ops): Remove the op.
1558 (class linux_process_target) <siginfo_fixup>
1559 <low_siginfo_fixup>: Declare.
1560 * linux-low.cc (siginfo_fixup): Turn into...
1561 (linux_process_target::siginfo_fixup): ...this.
1562 (linux_process_target::low_siginfo_fixup): Define.
1563 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1564 (x86_siginfo_fixup): Turn into...
1565 (x86_target::low_siginfo_fixup): ...this.
1566 (the_low_target): Remove the op field.
1567 * linux-aarch64-low.cc (class aarch64_target):
1568 <low_siginfo_fixup>: Declare.
1569 (aarch64_linux_siginfo_fixup): Turn into...
1570 (aarch64_target::low_siginfo_fixup): ...this.
1571 (the_low_target): Remove the op field.
1572 * linux-arm-low.cc (the_low_target): Remove the op field.
1573 * linux-bfin-low.cc (the_low_target): Ditto.
1574 * linux-crisv32-low.cc (the_low_target): Ditto.
1575 * linux-m32r-low.cc (the_low_target): Ditto.
1576 * linux-m68k-low.cc (the_low_target): Ditto.
1577 * linux-mips-low.cc (the_low_target): Ditto.
1578 * linux-ppc-low.cc (the_low_target): Ditto.
1579 * linux-s390-low.cc (the_low_target): Ditto.
1580 * linux-sh-low.cc (the_low_target): Ditto.
1581 * linux-tic6x-low.cc (the_low_target): Ditto.
1582 * linux-tile-low.cc (the_low_target): Ditto.
1583 * linux-xtensa-low.cc (the_low_target): Ditto.
1584
b35db733
TBA
15852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1586
1587 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1588 linux target ops into methods of linux_process_target.
1589
1590 * linux-low.h (struct linux_target_ops): Remove the ops.
1591 (class linux_process_target) <low_collect_ptrace_register>
1592 <low_store_ptrace_register>: Declare.
1593 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1594 (linux_process_target::low_supply_ptrace_register): Define.
1595
1596 Update the callers below.
1597
1598 (linux_process_target::fetch_register)
1599 (linux_process_target::store_register)
1600
1601 * linux-x86-low.cc (the_low_target): Remove the op fields.
1602 * linux-aarch64-low.cc (the_low_target): Ditto.
1603 * linux-arm-low.cc (the_low_target): Ditto.
1604 * linux-bfin-low.cc (the_low_target): Ditto.
1605 * linux-crisv32-low.cc (the_low_target): Ditto.
1606 * linux-m32r-low.cc (the_low_target): Ditto.
1607 * linux-m68k-low.cc (the_low_target): Ditto.
1608 * linux-sh-low.cc (the_low_target): Ditto.
1609 * linux-sparc-low.cc (the_low_target): Ditto.
1610 * linux-tic6x-low.cc (the_low_target): Ditto.
1611 * linux-tile-low.cc (the_low_target): Ditto.
1612 * linux-xtensa-low.cc (the_low_target): Ditto.
1613 * linux-mips-low.cc (class mips_target)
1614 <low_collect_ptrace_register>
1615 <low_supply_ptrace_register>: Declare.
1616 (mips_collect_ptrace_register): Turn into ...
1617 (mips_target::low_collect_ptrace_register): ...this.
1618 (mips_supply_ptrace_register): Turn into...
1619 (mips_target::low_supply_ptrace_register): ...this.
1620 (the_low_target): Remove the op fields.
1621 * linux-ppc-low.cc (class ppc_target)
1622 <low_collect_ptrace_register>
1623 <low_supply_ptrace_register>: Declare.
1624 (ppc_collect_ptrace_register): Turn into ...
1625 (ppc_target::low_collect_ptrace_register): ...this.
1626 (ppc_supply_ptrace_register): Turn into ...
1627 (ppc_target::low_supply_ptrace_register): ...this.
1628 (ppc_fill_gregset): Update for the calls to
1629 low_collect_ptrace_register.
1630 (the_low_target): Remove the op fields.
1631 * linux-s390-low.cc (class s390_target)
1632 <low_collect_ptrace_register>
1633 <low_supply_ptrace_register>: Declare.
1634 (s390_collect_ptrace_register): Turn into ...
1635 (s390_target::low_collect_ptrace_register): ...this.
1636 (s390_supply_ptrace_register): Turn into ...
1637 (s390_target::low_supply_ptrace_register): ...this.
1638 (s390_fill_gregset): Update for the calls to
1639 low_collect_ptrace_register.
1640 (the_low_target): Remove the op fields.
1641
ac1bbaca
TBA
16422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1643
1644 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1645 target ops into methods of linux_process_target.
1646
1647 * linux-low.h (struct linux_target_ops): Remove the ops.
1648 (class linux_process_target) <check_stopped_by_watchpoint>
1649 <low_stopped_by_watchpoint>
1650 <low_stopped_data_address>: Declare.
1651 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1652 (linux_process_target::check_stopped_by_watchpoint): ...this.
1653 (linux_process_target::low_stopped_by_watchpoint): Define.
1654 (linux_process_target::low_stopped_data_address): Define.
1655 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1656 <low_stopped_data_address>: Declare.
1657 (x86_stopped_by_watchpoint): Turn into...
1658 (x86_target::low_stopped_by_watchpoint): ...this.
1659 (x86_stopped_data_address): Turn into...
1660 (x86_target::low_stopped_data_address): ...this.
1661 (the_low_target): Remove the op fields.
1662 * linux-aarch64-low.cc (class aarch64_target)
1663 <low_stopped_by_watchpoint>
1664 <low_stopped_data_address>: Declare.
1665 (aarch64_stopped_by_watchpoint): Turn into...
1666 (aarch64_target::low_stopped_by_watchpoint): ...this.
1667 (aarch64_stopped_data_address): Turn into...
1668 (aarch64_target::low_stopped_data_address): ...this.
1669 (the_low_target): Remove the op fields.
1670 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1671 <low_stopped_data_address>: Declare.
1672 (arm_stopped_by_watchpoint): Turn into...
1673 (arm_target::low_stopped_by_watchpoint): ...this.
1674 (arm_stopped_data_address): Turn into...
1675 (arm_target::low_stopped_data_address): ...this.
1676 (the_low_target): Remove the op fields.
1677 * linux-crisv32-low.cc (class crisv32_target)
1678 <low_stopped_by_watchpoint>
1679 <low_stopped_data_address>: Declare.
1680 (cris_stopped_by_watchpoint): Turn into...
1681 (crisv32_target::low_stopped_by_watchpoint): ...this.
1682 (cris_stopped_data_address): Turn into...
1683 (crisv32_target::low_stopped_data_address): ...this.
1684 (the_low_target): Remove the op fields.
1685 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1686 <low_stopped_data_address>: Declare.
1687 (mips_stopped_by_watchpoint): Turn into...
1688 (mips_target::low_stopped_by_watchpoint): ...this.
1689 (mips_stopped_data_address): Turn into...
1690 (mips_target::low_stopped_data_address): ...this.
1691 (the_low_target): Remove the op fields.
1692 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1693 * linux-m32r-low.cc (the_low_target): Ditto.
1694 * linux-m68k-low.cc (the_low_target): Ditto.
1695 * linux-ppc-low.cc (the_low_target): Ditto.
1696 * linux-s390-low.cc (the_low_target): Ditto.
1697 * linux-sh-low.cc (the_low_target): Ditto.
1698 * linux-sparc-low.cc (the_low_target): Ditto.
1699 * linux-tic6x-low.cc (the_low_target): Ditto.
1700 * linux-tile-low.cc (the_low_target): Ditto.
1701 * linux-xtensa-low.cc (the_low_target): Ditto.
1702
9db9aa23
TBA
17032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1704
1705 Turn the 'insert_point' and 'remove_point' linux target ops into
1706 methods of linux_process_target.
1707
1708 * linux-low.h (struct linux_target_ops): Remove the ops.
1709 (class linux_process_target) <low_insert_point>
1710 <low_remove_point>: Declare.
1711 * linux-low.cc (linux_process_target::low_insert_point)
1712 (linux_process_target::low_remove_point): Define.
1713 (linux_process_target::insert_point)
1714 (linux_process_target::remove_point): Update for calls to
1715 low_insert_point and low_remove_point.
1716 * linux-x86-low.cc (class x86_target) <low_insert_point>
1717 <low_remove_point>: Declare.
1718 (x86_insert_point): Turn into...
1719 (x86_target::low_insert_point): ...this.
1720 (x86_remove_point): Turn into...
1721 (x86_target::low_remove_point): ...this.
1722 (the_low_target): Remove the op fields.
1723 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1724 <low_remove_point>: Declare.
1725 (aarch64_insert_point): Turn into...
1726 (aarch64_target::low_insert_point): ...this.
1727 (aarch64_remove_point): Turn into...
1728 (aarch64_target::low_remove_point): ...this.
1729 (the_low_target): Remove the op fields.
1730 * linux-arm-low.cc (class arm_target) <low_insert_point>
1731 <low_remove_point>: Declare.
1732 (arm_insert_point): Turn into...
1733 (arm_target::low_insert_point): ...this.
1734 (arm_remove_point): Turn into...
1735 (arm_target::low_remove_point): ...this.
1736 (the_low_target): Remove the op fields.
1737 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1738 <low_remove_point>: Declare.
1739 (crisv32_insert_point): Turn into...
1740 (crisv32_target::low_insert_point): ...this.
1741 (crisv32_remove_point): Turn into...
1742 (crisv32_target::low_remove_point): ...this.
1743 (the_low_target): Remove the op fields.
1744 * linux-mips-low.cc (class mips_target) <low_insert_point>
1745 <low_remove_point>: Declare.
1746 (mips_insert_point): Turn into...
1747 (mips_target::low_insert_point): ...this.
1748 (mips_remove_point): Turn into...
1749 (mips_target::low_remove_point): ...this.
1750 (the_low_target): Remove the op fields.
1751 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1752 <low_remove_point>: Declare.
1753 (ppc_insert_point): Turn into...
1754 (ppc_target::low_insert_point): ...this.
1755 (ppc_remove_point): Turn into...
1756 (ppc_target::low_remove_point): ...this.
1757 (the_low_target): Remove the op fields.
1758 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1759 * linux-m32r-low.cc (the_low_target): Ditto.
1760 * linux-m68k-low.cc (the_low_target): Ditto.
1761 * linux-s390-low.cc (the_low_target): Ditto.
1762 * linux-sh-low.cc (the_low_target): Ditto.
1763 * linux-sparc-low.cc (the_low_target): Ditto.
1764 * linux-tic6x-low.cc (the_low_target): Ditto.
1765 * linux-tile-low.cc (the_low_target): Ditto.
1766 * linux-xtensa-low.cc (the_low_target): Ditto.
1767
007c9b97
TBA
17682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1769
1770 Remove the 'supports_z_point_type' linux target op and let the
1771 concrete linux target define it by overriding the op declared in
1772 process_stratum_target.
1773
1774 * linux-low.cc (linux_process_target::supports_z_point_type):
1775 Remove.
1776 * linux-low.h (struct linux_target_ops): Remove the op.
1777 (class linux_process_target) <supports_z_point_type>: Remove.
1778 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1779 Declare.
1780 (x86_supports_z_point_type): Turn into...
1781 (x86_target::supports_z_point_type): ...this.
1782 (the_low_target): Remove the op field.
1783 * linux-aarch64-low.cc (class aarch64_target)
1784 <supports_z_point_type>: Declare.
1785 (aarch64_supports_z_point_type): Turn into...
1786 (aarch64_target::supports_z_point_type): ...this.
1787 (the_low_target): Remove the op field.
1788 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1789 Declare.
1790 (arm_supports_z_point_type): Turn into...
1791 (arm_target::supports_z_point_type): ...this.
1792 (the_low_target): Remove the op field.
1793 * linux-crisv32-low.cc (class crisv32_target)
1794 <supports_z_point_type>: Declare.
1795 (cris_supports_z_point_type): Turn into...
1796 (crisv32_target::supports_z_point_type): ...this.
1797 (the_low_target): Remove the op field.
1798 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1799 Declare.
1800 (mips_supports_z_point_type): Turn into...
1801 (mips_target::supports_z_point_type): ...this.
1802 (the_low_target): Remove the op field.
1803 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1804 Declare.
1805 (ppc_supports_z_point_type): Turn into...
1806 (ppc_target::supports_z_point_type): ...this.
1807 (the_low_target): Remove the op field.
1808 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1809 Declare.
1810 (s390_supports_z_point_type): Turn into...
1811 (s390_target::supports_z_point_type): ...this.
1812 (the_low_target): Remove the op field.
1813 * linux-bfin-low.cc (the_low_target): Remove the op field.
1814 * linux-m32r-low.cc (the_low_target): Ditto.
1815 * linux-m68k-low.cc (the_low_target): Ditto.
1816 * linux-sh-low.cc (the_low_target): Ditto.
1817 * linux-sparc-low.cc (the_low_target): Ditto.
1818 * linux-tic6x-low.cc (the_low_target): Ditto.
1819 * linux-tile-low.cc (the_low_target): Ditto.
1820 * linux-xtensa-low.cc (the_low_target): Ditto.
1821
d7146cda
TBA
18222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1823
1824 Turn the 'breakpoint_at' linux target op into a method of
1825 linux_process_target.
1826
1827 * linux-low.h (struct linux_target_ops): Remove the op.
1828 (class linux_process_target) <low_breakpoint_at>: Declare.
1829
1830 Update the callers below:
1831
1832 * linux-low.cc (linux_process_target::save_stop_reason)
1833 (linux_process_target::thread_still_has_status_pending)
1834 (linux_process_target::wait_1)
1835
1836 * linux-x86-low.cc (class x86_target)
1837 <low_breakpoint_at>: Declare.
1838 (x86_breakpoint_at): Turn into...
1839 (x86_target::low_breakpoint_at): ...this.
1840 (the_low_target): Remove the op field.
1841 * linux-aarch64-low.cc (class aarch64_target)
1842 <low_breakpoint_at>: Declare.
1843 (aarch64_breakpoint_at): Turn into...
1844 (aarch64_target::low_breakpoint_at): ...this.
1845 (the_low_target): Remove the op field.
1846 * linux-arm-low.cc (class arm_target)
1847 <low_breakpoint_at>: Declare.
1848 (arm_target::low_breakpoint_at): Define.
1849 (the_low_target): Remove the op field.
1850 * linux-bfin-low.cc (class bfin_target)
1851 <low_breakpoint_at>: Declare.
1852 (bfin_breakpoint_at): Turn into...
1853 (bfin_target::low_breakpoint_at): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-cris-low.cc (class cris_target)
1856 <low_breakpoint_at>: Declare.
1857 (cris_breakpoint_at): Turn into...
1858 (cris_target::low_breakpoint_at): ...this.
1859 (the_low_target): Remove the op field.
1860 * linux-crisv32-low.cc (class crisv32_target)
1861 <low_breakpoint_at>: Declare.
1862 (crisv32_breakpoint_at): Turn into...
1863 (crisv32_target::low_breakpoint_at): ...this.
1864 (the_low_target): Remove the op field.
1865 * linux-ia64-low.cc (class ia64_target)
1866 <low_breakpoint_at>: Declare.
1867 (ia64_target::low_breakpoint_at): Define.
1868 * linux-m32r-low.cc (class m32r_target)
1869 <low_breakpoint_at>: Declare.
1870 (m32r_breakpoint_at): Turn into...
1871 (m32r_target::low_breakpoint_at): ...this.
1872 (the_low_target): Remove the op field.
1873 * linux-m68k-low.cc (class m68k_target)
1874 <low_breakpoint_at>: Declare.
1875 (m68k_breakpoint_at): Turn into...
1876 (m68k_target::low_breakpoint_at): ...this.
1877 (the_low_target): Remove the op field.
1878 * linux-mips-low.cc (class mips_target)
1879 <low_breakpoint_at>: Declare.
1880 (mips_breakpoint_at): Turn into...
1881 (mips_target::low_breakpoint_at): ...this.
1882 (the_low_target): Remove the op field.
1883 * linux-nios2-low.cc (class nios2_target)
1884 <low_breakpoint_at>: Declare.
1885 (nios2_breakpoint_at): Turn into...
1886 (nios2_target::low_breakpoint_at): ...this.
1887 (the_low_target): Remove the op field.
1888 * linux-ppc-low.cc (class ppc_target)
1889 <low_breakpoint_at>: Declare.
1890 (ppc_breakpoint_at): Turn into...
1891 (ppc_target::low_breakpoint_at): ...this.
1892 (the_low_target): Remove the op field.
1893 * linux-riscv-low.cc (class riscv_target)
1894 <low_breakpoint_at>: Declare.
1895 (riscv_breakpoint_at): Turn into...
1896 (riscv_target::low_breakpoint_at): ...this.
1897 (the_low_target): Remove the op field.
1898 * linux-s390-low.cc (class s390_target)
1899 <low_breakpoint_at>: Declare.
1900 (s390_breakpoint_at): Turn into...
1901 (s390_target::low_breakpoint_at): ...this.
1902 (the_low_target): Remove the op field.
1903 * linux-sh-low.cc (class sh_target)
1904 <low_breakpoint_at>: Declare.
1905 (sh_breakpoint_at): Turn into...
1906 (sh_target::low_breakpoint_at): ...this.
1907 (the_low_target): Remove the op field.
1908 * linux-sparc-low.cc (class sparc_target)
1909 <low_breakpoint_at>: Declare.
1910 (sparc_breakpoint_at): Turn into...
1911 (sparc_target::low_breakpoint_at): ...this.
1912 (the_low_target): Remove the op field.
1913 * linux-tic6x-low.cc (class tic6x_target)
1914 <low_breakpoint_at>: Declare.
1915 (tic6x_breakpoint_at): Turn into...
1916 (tic6x_target::low_breakpoint_at): ...this.
1917 (the_low_target): Remove the op field.
1918 * linux-tile-low.cc (class tile_target)
1919 <low_breakpoint_at>: Declare.
1920 (tile_breakpoint_at): Turn into...
1921 (tile_target::low_breakpoint_at): ...this.
1922 (the_low_target): Remove the op field.
1923 * linux-xtensa-low.cc (class xtensa_target)
1924 <low_breakpoint_at>: Declare.
1925 (xtensa_breakpoint_at): Turn into...
1926 (xtensa_target::low_breakpoint_at): ...this.
1927 (the_low_target): Remove the op field.
1928
d4807ea2
TBA
19292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1930
1931 Turn the 'decr_pc_after_break' linux_target_ops field into
1932 a method of linux_process_target.
1933
1934 * linux-low.h (struct linux_target_ops)
1935 <decr_pc_after_break>: Remove.
1936 (class linux_process_target) <low_decr_pc_after_break>: New method
1937 declaration.
1938 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1939 New method implementation.
1940
1941 Update the users below.
1942
1943 (linux_process_target::save_stop_reason)
1944 (linux_process_target::wait_1)
1945 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1946 New declaration.
1947 (x86_target::low_decr_pc_after_break): New method implementation.
1948 (the_low_target): Remove the field.
1949 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1950 New declaration.
1951 (bfin_target::low_decr_pc_after_break): New method implementation.
1952 (the_low_target): Remove the field.
1953 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1954 New declaration.
1955 (m68k_target::low_decr_pc_after_break): New method implementation.
1956 (the_low_target): Remove the field.
1957 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1958 New declaration.
1959 (s390_target::low_decr_pc_after_break): New method implementation.
1960 (the_low_target): Remove the field.
1961 * linux-aarch64-low.cc (the_low_target): Remove the field.
1962 * linux-arm-low.cc (the_low_target): Remove the field.
1963 * linux-cris-low.cc (the_low_target): Remove the field.
1964 * linux-crisv32-low.cc (the_low_target): Remove the field.
1965 * linux-m32r-low.cc (the_low_target): Remove the field.
1966 * linux-mips-low.cc (the_low_target): Remove the field.
1967 * linux-nios2-low.cc (the_low_target): Remove the field.
1968 * linux-ppc-low.cc (the_low_target): Remove the field.
1969 * linux-riscv-low.cc (the_low_target): Remove the field.
1970 * linux-sh-low.cc (the_low_target): Remove the field.
1971 * linux-sparc-low.cc (the_low_target): Remove the field.
1972 * linux-tic6x-low.cc (the_low_target): Remove the field.
1973 * linux-tile-low.cc (the_low_target): Remove the field.
1974 * linux-xtensa-low.cc (the_low_target): Remove the field.
1975
7582c77c
TBA
19762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1977
1978 Remove the 'supports_software_single_step' linux target op and let
1979 the concrete linux target define it by overriding the op in
1980 process_stratum_target.
1981 Turn the 'get_next_pcs' linux target op into a method of
1982 linux_process_target.
1983
1984 * linux-low.h (struct linux_target_ops): Remove the ops.
1985 (class linux_process_target) <supports_software_single_step>:
1986 Remove.
1987 <low_get_next_pcs>: Declare.
1988 * linux-low.cc (can_software_single_step): Remove.
1989 (linux_process_target::low_get_next_pcs): Define.
1990 (linux_process_target::supports_software_single_step): Remove.
1991
1992 Update the callers below.
1993
1994 (linux_process_target::handle_extended_wait)
1995 (linux_process_target::wait_1)
1996 (linux_process_target::install_software_single_step_breakpoints)
1997 (linux_process_target::single_step)
1998 (linux_process_target::thread_needs_step_over)
1999 (linux_process_target::proceed_one_lwp)
2000 (linux_process_target::supports_range_stepping)
2001
2002 * linux-x86-low.cc (the_low_target): Remove the op field.
2003 * linux-aarch64-low.cc (the_low_target): Ditto.
2004 * linux-bfin-low.cc (the_low_target): Ditto.
2005 * linux-cris-low.cc (the_low_target): Ditto.
2006 * linux-crisv32-low.cc (the_low_target): Ditto.
2007 * linux-m32r-low.cc (the_low_target): Ditto.
2008 * linux-m68k-low.cc (the_low_target): Ditto.
2009 * linux-mips-low.cc (the_low_target): Ditto.
2010 * linux-nios2-low.cc (the_low_target): Ditto.
2011 * linux-ppc-low.cc (the_low_target): Ditto.
2012 * linux-riscv-low.cc (the_low_target): Ditto.
2013 * linux-s390-low.cc (the_low_target): Ditto.
2014 * linux-sh-low.cc (the_low_target): Ditto.
2015 * linux-sparc-low.cc (the_low_target): Ditto.
2016 * linux-tic6x-low.cc (the_low_target): Ditto.
2017 * linux-tile-low.cc (the_low_target): Ditto.
2018 * linux-xtensa-low.cc (the_low_target): Ditto.
2019 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
2020 <supports_software_single_step>: Declare.
2021 (arm_target::supports_software_single_step): Define.
2022 (arm_gdbserver_get_next_pcs): Turn into...
2023 (arm_target::low_get_next_pcs): ...this.
2024 (the_low_target): Remove the op field.
2025
3ca4edb6
TBA
20262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2027
2028 Remove the 'sw_breakpoint_from_kind' linux target op, and let
2029 the concrete linux target define it by overriding the op
2030 in process_stratum_target.
2031
2032 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
2033 Remove.
2034 * linux-low.h (struct linux_target_ops): Remove the op.
2035 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
2036 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
2037 Declare.
2038 (x86_sw_breakpoint_from_kind): Turn into...
2039 (x86_target::sw_breakpoint_from_kind): ...this.
2040 (the_low_target): Remove the op field.
2041 * linux-aarch64-low.cc (class aarch64_target)
2042 <sw_breakpoint_from_kind>: Declare.
2043 (aarch64_sw_breakpoint_from_kind): Turn into...
2044 (aarch64_target::sw_breakpoint_from_kind): ...this.
2045 (the_low_target): Remove the op field.
2046 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
2047 Declare.
2048 (arm_target::sw_breakpoint_from_kind): Define.
2049 (the_low_target): Remove the op field.
2050 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
2051 Declare.
2052 (bfin_sw_breakpoint_from_kind): Turn into...
2053 (bfin_target::sw_breakpoint_from_kind): ...this.
2054 (the_low_target): Remove the op field.
2055 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
2056 Declare.
2057 (cris_sw_breakpoint_from_kind): Turn into...
2058 (cris_target::sw_breakpoint_from_kind): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-crisv32-low.cc (class crisv32_target)
2061 <sw_breakpoint_from_kind>: Declare.
2062 (cris_sw_breakpoint_from_kind): Turn into...
2063 (crisv32_target::sw_breakpoint_from_kind): ...this.
2064 (the_low_target): Remove the op field.
2065 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
2066 Declare.
2067 (ia64_target::sw_breakpoint_from_kind): Define.
2068 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2069 Declare.
2070 (m32r_sw_breakpoint_from_kind): Turn into...
2071 (m32r_target::sw_breakpoint_from_kind): ...this.
2072 (the_low_target): Remove the op field.
2073 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2074 Declare.
2075 (m68k_sw_breakpoint_from_kind): Turn into...
2076 (m68k_target::sw_breakpoint_from_kind): ...this.
2077 (the_low_target): Remove the op field.
2078 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2079 Declare.
2080 (mips_sw_breakpoint_from_kind): Turn into...
2081 (mips_target::sw_breakpoint_from_kind): ...this.
2082 (the_low_target): Remove the op field.
2083 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2084 Declare.
2085 (nios2_sw_breakpoint_from_kind): Turn into...
2086 (nios2_target::sw_breakpoint_from_kind): ...this.
2087 (the_low_target): Remove the op field.
2088 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2089 Declare.
2090 (ppc_sw_breakpoint_from_kind): Turn into...
2091 (ppc_target::sw_breakpoint_from_kind): ...this.
2092 (the_low_target): Remove the op field.
2093 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2094 Declare.
2095 (riscv_sw_breakpoint_from_kind): Turn into...
2096 (riscv_target::sw_breakpoint_from_kind): ...this.
2097 (the_low_target): Remove the op field.
2098 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2099 Declare.
2100 (s390_sw_breakpoint_from_kind): Turn into...
2101 (s390_target::sw_breakpoint_from_kind): ...this.
2102 (the_low_target): Remove the op field.
2103 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2104 Declare.
2105 (sh_sw_breakpoint_from_kind): Turn into...
2106 (sh_target::sw_breakpoint_from_kind): ...this.
2107 (the_low_target): Remove the op field.
2108 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2109 Declare.
2110 (sparc_sw_breakpoint_from_kind): Turn into...
2111 (sparc_target::sw_breakpoint_from_kind): ...this.
2112 (the_low_target): Remove the op field.
2113 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2114 Declare.
2115 (tic6x_sw_breakpoint_from_kind): Turn into...
2116 (tic6x_target::sw_breakpoint_from_kind): ...this.
2117 (the_low_target): Remove the op field.
2118 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2119 Declare.
2120 (tile_sw_breakpoint_from_kind): Turn into...
2121 (tile_target::sw_breakpoint_from_kind): ...this.
2122 (the_low_target): Remove the op field.
2123 * linux-xtensa-low.cc (class xtensa_target)
2124 <sw_breakpoint_from_kind>: Declare.
2125 (xtensa_sw_breakpoint_from_kind): Turn into...
2126 (xtensa_target::sw_breakpoint_from_kind): ...this.
2127 (the_low_target): Remove the op field.
2128
06250e4e
TBA
21292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2130
2131 Remove the 'breakpoint_kind_from_pc' and
2132 'breakpoint_kind_from_current_state' linux target ops, and let the
2133 concrete linux target define them by overriding the ops of
2134 process_stratum_target.
2135
2136 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2137 Remove.
2138 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2139 * linux-low.h (struct linux_target_ops): Remove ops.
2140 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2141 <breakpoint_kind_from_current_state>: Remove.
2142 * linux-x86-low.cc (the_low_target): Remove the op fields.
2143 * linux-bfin-low.cc (the_low_target): Ditto.
2144 * linux-cris-low.cc (the_low_target): Ditto.
2145 * linux-crisv32-low.cc (the_low_target): Ditto.
2146 * linux-m32r-low.cc (the_low_target): Ditto.
2147 * linux-m68k-low.cc (the_low_target): Ditto.
2148 * linux-mips-low.cc (the_low_target): Ditto.
2149 * linux-nios2-low.cc (the_low_target): Ditto.
2150 * linux-ppc-low.cc (the_low_target): Ditto.
2151 * linux-s390-low.cc (the_low_target): Ditto.
2152 * linux-sh-low.cc (the_low_target): Ditto.
2153 * linux-sparc-low.cc (the_low_target): Ditto.
2154 * linux-tic6x-low.cc (the_low_target): Ditto.
2155 * linux-tile-low.cc (the_low_target): Ditto.
2156 * linux-xtensa-low.cc (the_low_target): Ditto.
2157 * linux-aarch64-low.cc (class aarch64_target)
2158 <breakpoint_kind_from_pc>
2159 <breakpoint_kind_from_current_state>: Declare.
2160 (aarch64_breakpoint_kind_from_pc): Turn into...
2161 (aarch64_target::breakpoint_kind_from_pc): ...this.
2162 (aarch64_breakpoint_kind_from_current_state): Turn into...
2163 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2164 (the_low_target): Remove the op fields.
2165 * linux-arm-low.cc (class arm_target):
2166 <breakpoint_kind_from_pc>
2167 <breakpoint_kind_from_current_state>: Declare.
2168 (arm_target::breakpoint_kind_from_pc): Define.
2169 (arm_target::breakpoint_kind_from_current_state): Define.
2170 (the_low_target): Remove the op fields.
2171 * linux-riscv-low.cc (class riscv_target):
2172 <breakpoint_kind_from_pc>: Declare.
2173 (riscv_breakpoint_kind_from_pc): Turn into...
2174 (riscv_target::breakpoint_kind_from_pc): ...this.
2175 (the_low_target): Remove the op fields.
2176
bf9ae9d8
TBA
21772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2178
2179 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2180 of linux_process_target.
2181
2182 * linux-low.h (struct linux_target_ops): Remove the ops.
2183 (class linux_process_target) <low_supports_breakpoints>
2184 <low_get_pc>
2185 <low_set_pc>: Declare.
2186 * linux-low.cc (supports_breakpoints): Turn into...
2187 (linux_process_target::low_supports_breakpoints): ...this.
2188 (linux_process_target::low_get_pc): Define.
2189 (linux_process_target::low_set_pc): Define.
2190
2191 Update the callers below.
2192
2193 (linux_process_target::get_pc)
2194 (linux_process_target::save_stop_reason)
2195 (linux_process_target::maybe_move_out_of_jump_pad)
2196 (linux_process_target::wait_1)
2197 (linux_process_target::resume_one_lwp_throw)
2198 (linux_process_target::resume)
2199 (linux_process_target::proceed_all_lwps)
2200 (linux_process_target::read_pc)
2201 (linux_process_target::write_pc)
2202
2203 * linux-x86-low.cc (class linux_process_target)
2204 <low_supports_breakpoints>
2205 <low_get_pc>
2206 <low_set_pc>: Declare.
2207 (x86_target::low_supports_breakpoints): Define.
2208 (x86_get_pc): Turn into...
2209 (x86_target::low_get_pc): ...this.
2210 (x86_set_pc): Turn into...
2211 (x86_target::low_set_pc): ...this.
2212 (the_low_target): Remove the op fields.
2213 * linux-arm-low.cc (class arm_target)
2214 <low_supports_breakpoints>
2215 <low_get_pc>
2216 <low_set_pc>: Declare.
2217 (arm_target::low_supports_breakpoints)
2218 (arm_target::low_get_pc)
2219 (arm_target::low_set_pc): Define.
2220 (the_low_target): Remove the op fields.
2221 * linux-bfin-low.cc (class bfin_target)
2222 <low_supports_breakpoints>
2223 <low_get_pc>
2224 <low_set_pc>: Declare.
2225 (bfin_target::low_supports_breakpoints)
2226 (bfin_target::low_get_pc)
2227 (bfin_target::low_set_pc): Define.
2228 (the_low_target): Remove the op fields.
2229 * linux-cris-low.cc (class cris_target)
2230 <low_supports_breakpoints>
2231 <low_get_pc>
2232 <low_set_pc>: Declare.
2233 (cris_target::low_supports_breakpoints)
2234 (cris_target::low_get_pc)
2235 (cris_target::low_set_pc): Define.
2236 (the_low_target): Remove the op fields.
2237 * linux-crisv32-low.cc (class crisv32_target)
2238 <low_supports_breakpoints>
2239 <low_get_pc>
2240 <low_set_pc>: Declare.
2241 (crisv32_target::low_supports_breakpoints)
2242 (crisv32_target::low_get_pc)
2243 (crisv32_target::low_set_pc): Define.
2244 (the_low_target): Remove the op fields.
2245 * linux-m32r-low.cc (class m32r_target)
2246 <low_supports_breakpoints>
2247 <low_get_pc>
2248 <low_set_pc>: Declare.
2249 (m32r_target::low_supports_breakpoints)
2250 (m32r_target::low_get_pc)
2251 (m32r_target::low_set_pc): Define.
2252 (the_low_target): Remove the op fields.
2253 * linux-m68k-low.cc (class m68k_target)
2254 <low_supports_breakpoints>
2255 <low_get_pc>
2256 <low_set_pc>: Declare.
2257 (m68k_target::low_supports_breakpoints)
2258 (m68k_target::low_get_pc)
2259 (m68k_target::low_set_pc): Define.
2260 (the_low_target): Remove the op fields.
2261 * linux-nios2-low.cc (class nios2_target)
2262 <low_supports_breakpoints>
2263 <low_get_pc>
2264 <low_set_pc>: Declare.
2265 (nios2_target::low_supports_breakpoints)
2266 (nios2_target::low_get_pc)
2267 (nios2_target::low_set_pc): Define.
2268 (the_low_target): Remove the op fields.
2269 * linux-sh-low.cc (class sh_target)
2270 <low_supports_breakpoints>
2271 <low_get_pc>
2272 <low_set_pc>: Declare.
2273 (sh_target::low_supports_breakpoints)
2274 (sh_target::low_get_pc)
2275 (sh_target::low_set_pc): Define.
2276 (the_low_target): Remove the op fields.
2277 * linux-xtensa-low.cc (class xtensa_target)
2278 <low_supports_breakpoints>
2279 <low_get_pc>
2280 <low_set_pc>: Declare.
2281 (xtensa_target::low_supports_breakpoints)
2282 (xtensa_target::low_get_pc)
2283 (xtensa_target::low_set_pc): Define.
2284 (the_low_target): Remove the op fields.
2285 * linux-sparc-low.cc (class sparc_target)
2286 <low_supports_breakpoints>
2287 <low_get_pc>: Declare.
2288 (sparc_target::low_supports_breakpoints)
2289 (sparc_target::low_get_pc): Define.
2290 (the_low_target): Remove the op fields.
2291 * linux-tile-low.cc (class tile_target)
2292 <low_supports_breakpoints>
2293 <low_get_pc>
2294 <low_set_pc>: Declare.
2295 (tile_target::low_supports_breakpoints)
2296 (tile_target::low_get_pc)
2297 (tile_target::low_set_pc): Define.
2298 (the_low_target): Remove the op fields.
2299 * linux-aarch64-low.cc (class aarch64_target)
2300 <low_supports_breakpoints>
2301 <low_get_pc>
2302 <low_set_pc>: Declare.
2303 (aarch64_target::low_supports_breakpoints): Define.
2304 (aarch64_get_pc): Turn into...
2305 (aarch64_target::low_get_pc): ...this.
2306 (aarch64_set_pc): Turn into...
2307 (aarch64_target::low_set_pc): ...this.
2308 (the_low_target): Remove the op fields.
2309 * linux-mips-low.cc (class mips_target)
2310 <low_supports_breakpoints>
2311 <low_get_pc>
2312 <low_set_pc>: Declare.
2313 (mips_target::low_supports_breakpoints): Define.
2314 (mips_get_pc): Turn into...
2315 (mips_target::low_get_pc): ...this.
2316 (mips_set_pc): Turn into...
2317 (mips_target::low_set_pc): ...this.
2318 (the_low_target): Remove the op fields.
2319 * linux-ppc-low.cc (class ppc_target)
2320 <low_supports_breakpoints>
2321 <low_get_pc>
2322 <low_set_pc>: Declare.
2323 (ppc_target::low_supports_breakpoints): Define.
2324 (ppc_get_pc): Turn into...
2325 (ppc_target::low_get_pc): ...this.
2326 (ppc_set_pc): Turn into...
2327 (ppc_target::low_set_pc): ...this.
2328 (the_low_target): Remove the op fields.
2329 * linux-riscv-low.cc (class riscv_target)
2330 <low_supports_breakpoints>
2331 <low_get_pc>
2332 <low_set_pc>: Declare.
2333 (riscv_target::low_supports_breakpoints): Define.
2334 (riscv_get_pc): Turn into...
2335 (riscv_target::low_get_pc): ...this.
2336 (riscv_set_pc): Turn into...
2337 (riscv_target::low_set_pc): ...this.
2338 (the_low_target): Remove the op fields.
2339 * linux-s390-low.cc (class s390_target)
2340 <low_supports_breakpoints>
2341 <low_get_pc>
2342 <low_set_pc>: Declare.
2343 (s390_target::low_supports_breakpoints): Define.
2344 (s390_get_pc): Turn into...
2345 (s390_target::low_get_pc): ...this.
2346 (s390_set_pc): Turn into...
2347 (s390_target::low_set_pc): ...this.
2348 (the_low_target): Remove the op fields.
2349 * linux-tic6x-low.cc (class tic6x_target)
2350 <low_supports_breakpoints>
2351 <low_get_pc>
2352 <low_set_pc>: Declare.
2353 (tic6x_target::low_supports_breakpoints): Define.
2354 (tic6x_get_pc): Turn into...
2355 (tic6x_target::low_get_pc): ...this.
2356 (tic6x_set_pc): Turn into...
2357 (tic6x_target::low_set_pc): ...this.
2358 (the_low_target): Remove the op fields.
2359
df95181f
TBA
23602020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2361
2362 Turn some more static methods in linux-low into private methods
2363 of linux_process_target.
2364
2365 * linux-low.cc (get_pc): Turn into...
2366 (linux_process_target::get_pc): ...this.
2367 (save_stop_reason): Turn into...
2368 (linux_process_target::save_stop_reason): ...this.
2369 (thread_still_has_status_pending_p): Turn into...
2370 (linux_process_target::thread_still_has_status_pending): ...this.
2371 (status_pending_p_callback): Turn into...
2372 (linux_process_target::status_pending_p_callback): ...this.
2373 (resume_stopped_resumed_lwps): Turn into...
2374 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2375 (install_software_single_step_breakpoints): Turn into...
2376 (linux_process_target::install_software_single_step_breakpoints):
2377 ...this.
2378 (single_step): Turn into...
2379 (linux_process_target::single_step): ...this.
2380 (linux_resume_one_lwp_throw): Turn into...
2381 (linux_process_target::resume_one_lwp_throw): ...this.
2382 (linux_resume_one_lwp): Turn into...
2383 (linux_process_target::resume_one_lwp): ...this.
2384 (resume_status_pending_p): Turn into...
2385 (linux_process_target::resume_status_pending): ...this.
2386 (need_step_over_p): Turn into...
2387 (linux_process_target::thread_needs_step_over): ...this.
2388 (linux_resume_one_thread): Turn into...
2389 (linux_process_target::resume_one_thread): ...this.
2390 (proceed_one_lwp): Turn into...
2391 (linux_process_target::proceed_one_lwp): ...this.
2392 (unsuspend_and_proceed_one_lwp): Turn into...
2393 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2394
2395 Update the calls/references to the above functions below.
2396
2397 (linux_process_target::handle_extended_wait)
2398 (linux_process_target::filter_event)
2399 (linux_process_target::wait_for_event_filtered)
2400 (linux_process_target::wait_1)
2401 (linux_process_target::move_out_of_jump_pad)
2402 (linux_process_target::start_step_over)
2403 (linux_process_target::resume)
2404 (linux_process_target::proceed_all_lwps)
2405 (regsets_store_inferior_registers)
2406 (linux_process_target::store_register)
2407
2408 * linux-low.h (class linux_process_target)
2409 <get_pc>
2410 <save_stop_reason>
2411 <thread_still_has_status_pending>
2412 <status_pending_p_callback>
2413 <resume_stopped_resumed_lwps>
2414 <install_software_single_step_breakpoints>
2415 <single_step>
2416 <resume_one_lwp_throw>
2417 <resume_one_lwp>
2418 <resume_status_pending>
2419 <thread_needs_step_over>
2420 <resume_one_thread>
2421 <proceed_one_lwp>
2422 <unsuspend_and_proceed_one_lwp>: Declare.
2423
bd70b1f2
TBA
24242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2425
2426 Turn the 'fetch_register' linux target op into a method of
2427 linux_process_target.
2428
2429 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2430 (class linux_process_target) <low_fetch_register>: Declare.
2431 * linux-x86-low.cc (the_low_target)
2432 * linux-aarch64-low.cc (the_low_target)
2433 * linux-arm-low.cc (the_low_target)
2434 * linux-bfin-low.cc (the_low_target)
2435 * linux-cris-low.cc (the_low_target)
2436 * linux-crisv32-low.cc (the_low_target)
2437 * linux-m32r-low.cc (the_low_target)
2438 * linux-m68k-low.cc (the_low_target)
2439 * linux-nios2-low.cc (the_low_target)
2440 * linux-ppc-low.cc (the_low_target)
2441 * linux-s390-low.cc (the_low_target)
2442 * linux-sh-low.cc (the_low_target)
2443 * linux-sparc-low.cc (the_low_target)
2444 * linux-tic6x-low.cc (the_low_target)
2445 * linux-tile-low.cc (the_low_target)
2446 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2447 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2448 Declare.
2449 (ia64_fetch_register): Turn into...
2450 (ia64_target::low_fetch_register): ...this.
2451 (the_low_target): Remove the op field.
2452 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2453 Declare.
2454 (mips_fetch_register): Turn into...
2455 (mips_target::low_fetch_register): ...this.
2456 (the_low_target): Remove the op field.
2457 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2458 Declare.
2459 (riscv_fetch_register): Turn into...
2460 (riscv_target::low_fetch_register): ...this.
2461 (the_low_target): Remove the op field.
2462
2463 Update the callers below.
2464
2465 * linux-low.cc (linux_process_target::fetch_registers)
2466 (linux_process_target::low_fetch_register)
2467
daca57a7
TBA
24682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2469
2470 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2471 linux target ops into methods of linux_process_target.
2472
2473 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2474 (class linux_process_target) <fetch_register>
2475 <store_register>
2476 <usr_fetch_inferior_registers>
2477 <usr_store_inferior_registers>
2478 <low_cannot_fetch_register>
2479 <low_cannot_fetch_register> Declare.
2480 * linux-low.cc (fetch_register): Turn into...
2481 (linux_process_target::fetch_register): ...this.
2482 (store_register): Turn into ...
2483 (linux_process_target::store_register): ...this.
2484 (usr_fetch_inferior_registers): Turn into...
2485 (linux_process_target::usr_fetch_inferior_registers): ...this.
2486 (usr_store_inferior_registers): Turn into...
2487 (linux_process_target::usr_store_inferior_registers): ...this.
2488 * linux-x86-low.cc (class x86_target)
2489 <low_cannot_fetch_register>
2490 <low_cannot_store_register>: Declare.
2491 (x86_cannot_store_register): Turn into...
2492 (x86_target::low_cannot_store_register): ...this.
2493 (x86_cannot_fetch_register): Turn into...
2494 (x86_target::low_cannot_fetch_register): ...this.
2495 (the_low_target): Remove the target op fields.
2496 * linux-aarch64-low.cc (class aarch64_target)
2497 <low_cannot_fetch_register>
2498 <low_cannot_store_register>: Declare.
2499 (aarch64_target::low_cannot_fetch_register)
2500 (aarch64_target::low_cannot_store_register): Define.
2501 (the_low_target): Remove the op fields.
2502 * linux-arm-low.cc (class arm_target)
2503 <low_cannot_fetch_register>
2504 <low_cannot_store_register>: Declare.
2505 (arm_cannot_fetch_register): Turn into...
2506 (arm_target::low_cannot_fetch_register): ...this.
2507 (arm_cannot_store_register): Turn into...
2508 (arm_target::low_cannot_store_register): ...this.
2509 (the_low_target): Remove the op fields.
2510 * linux-bfin-low.cc (class bfin_target)
2511 <low_cannot_fetch_register>
2512 <low_cannot_store_register>: Declare.
2513 (bfin_cannot_fetch_register): Turn into...
2514 (bfin_target::low_cannot_fetch_register): ...this.
2515 (bfin_cannot_store_register): Turn into...
2516 (bfin_target::low_cannot_store_register): ...this.
2517 (the_low_target): Remove the op fields.
2518 * linux-cris-low.cc (class cris_target)
2519 <low_cannot_fetch_register>
2520 <low_cannot_store_register>: Declare.
2521 (cris_cannot_fetch_register): Turn into...
2522 (cris_target::low_cannot_fetch_register): ...this.
2523 (cris_cannot_store_register): Turn into...
2524 (cris_target::low_cannot_store_register): ...this.
2525 (the_low_target): Remove the op fields.
2526 * linux-crisv32-low.cc (class crisv32_target)
2527 <low_cannot_fetch_register>
2528 <low_cannot_store_register>: Declare.
2529 (crisv32_target::low_cannot_fetch_register)
2530 (crisv32_target::low_cannot_store_register): Define.
2531 (the_low_target): Remove the op fields.
2532 * linux-ia64-low.cc (class ia64_target)
2533 <low_cannot_fetch_register>
2534 <low_cannot_store_register>: Declare.
2535 (ia64_cannot_fetch_register): Turn into...
2536 (ia64_target::low_cannot_fetch_register): ...this.
2537 (ia64_cannot_store_register): Turn into...
2538 (ia64_target::low_cannot_store_register): ...this.
2539 (the_low_target): Remove the op fields.
2540 * linux-m32r-low.cc (class m32r_target)
2541 <low_cannot_fetch_register>
2542 <low_cannot_store_register>: Declare.
2543 (m32r_cannot_fetch_register): Turn into...
2544 (m32r_target::low_cannot_fetch_register): ...this.
2545 (m32r_cannot_store_register): Turn into...
2546 (m32r_target::low_cannot_store_register): ...this.
2547 (the_low_target): Remove the op fields.
2548 * linux-m68k-low.cc (class m68k_target)
2549 <low_cannot_fetch_register>
2550 <low_cannot_store_register>: Declare.
2551 (m68k_cannot_fetch_register): Turn into...
2552 (m68k_target::low_cannot_fetch_register): ...this.
2553 (m68k_cannot_store_register): Turn into...
2554 (m68k_target::low_cannot_store_register): ...this.
2555 (the_low_target): Remove the op fields.
2556 * linux-mips-low.cc (class mips_target)
2557 <low_cannot_fetch_register>
2558 <low_cannot_store_register>: Declare.
2559 (mips_cannot_fetch_register): Turn into...
2560 (mips_target::low_cannot_fetch_register): ...this.
2561 (mips_cannot_store_register): Turn into...
2562 (mips_target::low_cannot_store_register): ...this.
2563 (get_usrregs_info): Inline at the call sites in
2564 low_cannot_fetch_register and low_cannot_store_register,
2565 and remove.
2566 (the_low_target): Remove the op fields.
2567 * linux-nios2-low.cc (class nios2_target)
2568 <low_cannot_fetch_register>
2569 <low_cannot_store_register>: Declare.
2570 (nios2_cannot_fetch_register): Turn into...
2571 (nios2_target::low_cannot_fetch_register): ...this.
2572 (nios2_cannot_store_register): Turn into...
2573 (nios2_target::low_cannot_store_register): ...this.
2574 (the_low_target): Remove the op fields.
2575 * linux-ppc-low.cc (class ppc_target)
2576 <low_cannot_fetch_register>
2577 <low_cannot_store_register>: Declare.
2578 (ppc_cannot_fetch_register): Turn into...
2579 (ppc_target::low_cannot_fetch_register): ...this.
2580 (ppc_cannot_store_register): Turn into...
2581 (ppc_target::low_cannot_store_register): ...this.
2582 (the_low_target): Remove the op fields.
2583 * linux-riscv-low.cc (class riscv_target)
2584 <low_cannot_fetch_register>
2585 <low_cannot_store_register>: Declare.
2586 (riscv_target::low_cannot_fetch_register)
2587 (riscv_target::low_cannot_store_register): Define.
2588 (the_low_target): Remove the op fields.
2589 * linux-s390-low.cc (class s390_target)
2590 <low_cannot_fetch_register>
2591 <low_cannot_store_register>: Declare.
2592 (s390_cannot_fetch_register): Turn into...
2593 (s390_target::low_cannot_fetch_register): ...this.
2594 (s390_cannot_store_register): Turn into...
2595 (s390_target::low_cannot_store_register): ...this.
2596 (the_low_target): Remove the op fields.
2597 * linux-sh-low.cc (class sh_target)
2598 <low_cannot_fetch_register>
2599 <low_cannot_store_register>: Declare.
2600 (sh_cannot_fetch_register): Turn into...
2601 (sh_target::low_cannot_fetch_register): ...this.
2602 (sh_cannot_store_register): Turn into...
2603 (sh_target::low_cannot_store_register): ...this.
2604 (the_low_target): Remove the op fields.
2605 * linux-sparc-low.cc (class sparc_target)
2606 <low_cannot_fetch_register>
2607 <low_cannot_store_register>: Declare.
2608 (sparc_cannot_fetch_register): Turn into...
2609 (sparc_target::low_cannot_fetch_register): ...this.
2610 (sparc_cannot_store_register): Turn into...
2611 (sparc_target::low_cannot_store_register): ...this.
2612 (the_low_target): Remove the op fields.
2613 * linux-tic6x-low.cc (class tic6x_target)
2614 <low_cannot_fetch_register>
2615 <low_cannot_store_register>: Declare.
2616 (tic6x_cannot_fetch_register): Turn into...
2617 (tic6x_target::low_cannot_fetch_register): ...this.
2618 (tic6x_cannot_store_register): Turn into...
2619 (tic6x_target::low_cannot_store_register): ...this.
2620 (the_low_target): Remove the op fields.
2621 * linux-tile-low.cc (class tile_target)
2622 <low_cannot_fetch_register>
2623 <low_cannot_store_register>: Declare.
2624 (tile_cannot_fetch_register): Turn into...
2625 (tile_target::low_cannot_fetch_register): ...this.
2626 (tile_cannot_store_register): Turn into...
2627 (tile_target::low_cannot_store_register): ...this.
2628 (the_low_target): Remove the op fields.
2629 * linux-xtensa-low.cc (class xtensa_target)
2630 <low_cannot_fetch_register>
2631 <low_cannot_store_register>: Declare.
2632 (xtensa_target::low_cannot_fetch_register)
2633 (xtensa_target::low_cannot_store_register): Define.
2634 (the_low_target): Remove the op fields.
2635
aa8d21c9
TBA
26362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2637
2638 Turn the 'regs_info' linux target op into a method of
2639 linux_process_target.
2640
2641 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2642 (class linux_process_target) <get_regs_info>: Define.
2643
2644 Update the callers below.
2645
2646 * linux-low.cc (linux_process_target::fetch_registers)
2647 (linux_process_target::store_registers)
2648 * proc-service.cc (gregset_info)
2649
2650 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2651 (x86_linux_regs_info): Turn into ...
2652 (x86_target::get_regs_info): ...this.
2653 (the_low_target): Remove the op field.
2654 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2655 Declare.
2656 (aarch64_regs_info): Turn into ...
2657 (aarch64_target::get_regs_info): ...this.
2658 (the_low_target): Remove the op field.
2659 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2660 (arm_regs_info): Turn into ...
2661 (arm_target::get_regs_info): ...this.
2662 (the_low_target): Remove the op field.
2663 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2664 (bfin_regs_info): Turn into ...
2665 (bfin_target::get_regs_info): ...this.
2666 (the_low_target): Remove the op field.
2667 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2668 (cris_regs_info): Turn into ...
2669 (cris_target::get_regs_info): ...this.
2670 (the_low_target): Remove the op field.
2671 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2672 Declare.
2673 (crisv32_regs_info): Turn into ...
2674 (crisv32_target::get_regs_info): ...this.
2675 (the_low_target): Remove the op field.
2676 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2677 (ia64_regs_info): Turn into ...
2678 (ia64_target::get_regs_info): ...this.
2679 (the_low_target): Remove the op field.
2680 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2681 (m32r_regs_info): Turn into ...
2682 (m32r_target::get_regs_info): ...this.
2683 (the_low_target): Remove the op field.
2684 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2685 (m68k_regs_info): Turn into ...
2686 (m68k_target::get_regs_info): ...this.
2687 (the_low_target): Remove the op field.
2688 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2689 (mips_regs_info): Turn into ...
2690 (mips_target::get_regs_info): ...this.
2691 (the_low_target): Remove the op field.
2692 (get_usrregs_info): Update the call to the op.
2693 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2694 (nios2_regs_info): Turn into ...
2695 (nios2_target::get_regs_info): ...this.
2696 (the_low_target): Remove the op field.
2697 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2698 (ppc_regs_info): Turn into ...
2699 (ppc_target::get_regs_info): ...this.
2700 (the_low_target): Remove the op field.
2701 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2702 (riscv_regs_info): Turn into ...
2703 (riscv_target::get_regs_info): ...this.
2704 (the_low_target): Remove the op field.
2705 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2706 (s390_regs_info): Turn into ...
2707 (s390_target::get_regs_info): ...this.
2708 (the_low_target): Remove the op field.
2709 (s390_collect_ptrace_register)
2710 (s390_supply_ptrace_register)
2711 (s390_fill_gregset): Update the call to the op.
2712 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2713 (sh_regs_info): Turn into ...
2714 (sh_target::get_regs_info): ...this.
2715 (the_low_target): Remove the op field.
2716 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2717 (sparc_regs_info): Turn into ...
2718 (sparc_target::get_regs_info): ...this.
2719 (the_low_target): Remove the op field.
2720 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2721 (tic6x_regs_info): Turn into ...
2722 (tic6x_target::get_regs_info): ...this.
2723 (the_low_target): Remove the op field.
2724 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2725 (tile_regs_info): Turn into ...
2726 (tile_target::get_regs_info): ...this.
2727 (the_low_target): Remove the op field.
2728 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2729 Declare.
2730 (xtensa_regs_info): Turn into ...
2731 (xtensa_target::get_regs_info): ...this.
2732 (the_low_target): Remove the op field.
2733
797bcff5
TBA
27342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2735
2736 Turn the 'arch_setup' linux target op into a method of
2737 linux_process_target.
2738
2739 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2740 (class linux_process_target) <arch_setup_thread>
2741 <low_arch_setup>: New declarations.
2742 * linux-low.cc (linux_arch_setup): Delete.
2743 (linux_arch_setup_thread): Turn into...
2744 (linux_process_target::arch_setup_thread): ... this.
2745
2746 Update the callers below.
2747
2748 (linux_process_target::handle_extended_wait)
2749 (linux_process_target::post_create_inferior)
2750 (linux_process_target::filter_event)
2751
2752 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2753 declaration.
2754 (x86_linux_update_xmltarget): Turn into...
2755 (x86_target::update_xmltarget): ...this.
2756 (x86_linux_process_qsupported): Update the call to
2757 x86_linux_update_xmltarget.
2758 (x86_arch_setup): Turn into ...
2759 (x86_target::low_arch_setup): ...this.
2760 (the_low_target): Remove the op field.
2761 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2762 declaration.
2763 (aarch64_arch_setup): Turn into ...
2764 (aarch64_target::low_arch_setup): ...this.
2765 (the_low_target): Remove the op field.
2766 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2767 declaration.
2768 (arm_arch_setup): Turn into ...
2769 (arm_target::low_arch_setup): ...this.
2770 (the_low_target): Remove the op field.
2771 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2772 declaration.
2773 (bfin_arch_setup): Turn into ...
2774 (bfin_target::low_arch_setup): ...this.
2775 (the_low_target): Remove the op field.
2776 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2777 declaration.
2778 (cris_arch_setup): Turn into ...
2779 (cris_target::low_arch_setup): ...this.
2780 (the_low_target): Remove the op field.
2781 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2782 declaration.
2783 (crisv32_arch_setup): Turn into ...
2784 (crisv32_target::low_arch_setup): ...this.
2785 (the_low_target): Remove the op field.
2786 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2787 declaration.
2788 (ia64_arch_setup): Turn into ...
2789 (ia64_target::low_arch_setup): ...this.
2790 (the_low_target): Remove the op field.
2791 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2792 declaration.
2793 (m32r_arch_setup): Turn into ...
2794 (m32r_target::low_arch_setup): ...this.
2795 (the_low_target): Remove the op field.
2796 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2797 declaration.
2798 (m68k_arch_setup): Turn into ...
2799 (m68k_target::low_arch_setup): ...this.
2800 (the_low_target): Remove the op field.
2801 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2802 declaration.
2803 (mips_arch_setup): Turn into ...
2804 (mips_target::low_arch_setup): ...this.
2805 (the_low_target): Remove the op field.
2806 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2807 declaration.
2808 (nios2_arch_setup): Turn into ...
2809 (nios2_target::low_arch_setup): ...this.
2810 (the_low_target): Remove the op field.
2811 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2812 declaration.
2813 (ppc_arch_setup): Turn into ...
2814 (ppc_target::low_arch_setup): ...this.
2815 (the_low_target): Remove the op field.
2816 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2817 declaration.
2818 (riscv_arch_setup): Turn into ...
2819 (riscv_target::low_arch_setup): ...this.
2820 (the_low_target): Remove the op field.
2821 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2822 declaration.
2823 (s390_arch_setup): Turn into ...
2824 (s390_target::low_arch_setup): ...this.
2825 (the_low_target): Remove the op field.
2826 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2827 declaration.
2828 (sh_arch_setup): Turn into ...
2829 (sh_target::low_arch_setup): ...this.
2830 (the_low_target): Remove the op field.
2831 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2832 declaration.
2833 (sparc_arch_setup): Turn into ...
2834 (sparc_target::low_arch_setup): ...this.
2835 (the_low_target): Remove the op field.
2836 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2837 declaration.
2838 (tic6x_arch_setup): Turn into ...
2839 (tic6x_target::low_arch_setup): ...this.
2840 (the_low_target): Remove the op field.
2841 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2842 declaration.
2843 (tile_arch_setup): Turn into ...
2844 (tile_target::low_arch_setup): ...this.
2845 (the_low_target): Remove the op field.
2846 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2847 declaration.
2848 (xtensa_arch_setup): Turn into ...
2849 (xtensa_target::low_arch_setup): ...this.
2850 (the_low_target): Remove the op field.
2851
ef0478f6
TBA
28522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2853
2854 * linux-low.h (the_linux_target): New extern declaration.
2855 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2856 'the_target'.
2857 (the_linux_target): Remove.
2858 * linux-x86-low.cc (class x86_target): New class.
2859 (the_x86_target): New static object.
2860 (the_linux_target): Define as pointer to the_x86_target.
2861 * linux-aarch64-low.cc (class aarch64_target): New class.
2862 (the_aarch64_target): New static object.
2863 (the_linux_target): Define as pointer to the_aarch64_target.
2864 * linux-arm-low.cc (class arm_target): New class.
2865 (the_arm_target): New static object.
2866 (the_linux_target): Define as pointer to the_arm_target.
2867 * linux-bfin-low.cc (class bfin_target): New class.
2868 (the_bfin_target): New static object.
2869 (the_linux_target): Define as pointer to the_bfin_target.
2870 * linux-cris-low.cc (class cris_target): New class.
2871 (the_cris_target): New static object.
2872 (the_linux_target): Define as pointer to the_cris_target.
2873 * linux-crisv32-low.cc (class crisv32_target): New class.
2874 (the_crisv32_target): New static object.
2875 (the_linux_target): Define as pointer to the_crisv32_target.
2876 * linux-ia64-low.cc (class ia64_target): New class.
2877 (the_ia64_target): New static object.
2878 (the_linux_target): Define as pointer to the_ia64_target.
2879 * linux-m32r-low.cc (class m32r_target): New class.
2880 (the_m32r_target): New static object.
2881 (the_linux_target): Define as pointer to the_m32r_target.
2882 * linux-m68k-low.cc (class m68k_target): New class.
2883 (the_m68k_target): New static object.
2884 (the_linux_target): Define as pointer to the_m68k_target.
2885 * linux-mips-low.cc (class mips_target): New class.
2886 (the_mips_target): New static object.
2887 (the_linux_target): Define as pointer to the_mips_target.
2888 * linux-nios2-low.cc (class nios2_target): New class.
2889 (the_nios2_target): New static object.
2890 (the_linux_target): Define as pointer to the_nios2_target.
2891 * linux-ppc-low.cc (class ppc_target): New class.
2892 (the_ppc_target): New static object.
2893 (the_linux_target): Define as pointer to the_ppc_target.
2894 * linux-riscv-low.cc (class riscv_target): New class.
2895 (the_riscv_target): New static object.
2896 (the_linux_target): Define as pointer to the_riscv_target.
2897 * linux-s390-low.cc (class s390_target): New class.
2898 (the_s390_target): New static object.
2899 (the_linux_target): Define as pointer to the_s390_target.
2900 * linux-sh-low.cc (class sh_target): New class.
2901 (the_sh_target): New static object.
2902 (the_linux_target): Define as pointer to the_sh_target.
2903 * linux-sparc-low.cc (class sparc_target): New class.
2904 (the_sparc_target): New static object.
2905 (the_linux_target): Define as pointer to the_sparc_target.
2906 * linux-tic6x-low.cc (class tic6x_target): New class.
2907 (the_tic6x_target): New static object.
2908 (the_linux_target): Define as pointer to the_tic6x_target.
2909 * linux-tile-low.cc (class tile_target): New class.
2910 (the_tile_target): New static object.
2911 (the_linux_target): Define as pointer to the_tile_target.
2912 * linux-xtensa-low.cc (class xtensa_target): New class.
2913 (the_xtensa_target): New static object.
2914 (the_linux_target): Define as pointer to the_xtensa_target.
2915
d16f3f6c
TBA
29162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2917
2918 Turn some static functions in linux-low.cc into private methods of
2919 linux_process_target.
2920
2921 * linux-low.cc (handle_extended_wait): Turn into ...
2922 (linux_process_target::handle_extended_wait): ...this. Call
2923 'mourn' on 'this' object instead of 'the_target'.
2924 (maybe_move_out_of_jump_pad): Turn into...
2925 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2926 (linux_low_filter_event): Turn into...
2927 (linux_process_target::filter_event): ...this.
2928 (linux_wait_for_event_filtered): Turn into...
2929 (linux_process_target::wait_for_event_filtered): ...this.
2930 (linux_wait_for_event): Turn into...
2931 (linux_process_target::wait_for_event): ...this.
2932 (linux_wait_1): Turn into...
2933 (linux_process_target::wait_1): ...this.
2934 (wait_for_sigstop): Turn into...
2935 (linux_process_target::wait_for_sigstop): ...this.
2936 (move_out_of_jump_pad_callback): Turn into...
2937 (linux_process_target::move_out_of_jump_pad): ...this.
2938 (stop_all_lwps): Turn into...
2939 (linux_process_target::stop_all_lwps): ...this.
2940 (start_step_over): Turn into...
2941 (linux_process_target::start_step_over): ...this.
2942 (complete_ongoing_step_over): Turn into...
2943 (linux_process_target::complete_ongoing_step_over): ...this.
2944 (proceed_all_lwps): Turn into...
2945 (linux_process_target::proceed_all_lwps): ...this.
2946 (unstop_all_lwps): Turn into...
2947 (linux_process_target::unstop_all_lwps): ...this.
2948
2949 * linux-low.h (class linux_process_target)
2950 <handle_extended_wait>
2951 <maybe_move_out_of_jump_pad>
2952 filter_event>
2953 <wait_for_event_filtered>
2954 <wait_for_event>
2955 <wait_1>
2956 <wait_for_sigstop>
2957 <move_out_of_jump_pad>
2958 <stop_all_lwps>
2959 <start_step_over>
2960 <complete_ongoing_step_over>
2961 <proceed_all_lwps>
2962 <unstop_all_lwps>: Declare.
2963
2964 Update the callers below.
2965
2966 * linux-low.cc (linux_process_target::attach): Update.
2967 (linux_process_target::stabilize_threads): Ditto.
2968 (linux_process_target::wait): Ditto.
2969
a5863204
TBA
29702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2971
2972 * linux-low.h (struct linux_target_ops): Update the comment for
2973 'cannot_store_register' to return 0 or 1.
2974 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2975 of 2.
2976
c884cc46
SM
29772020-03-20 Simon Marchi <simon.marchi@efficios.com>
2978
2979 * config.in: Re-generate.
2980 * configure: Re-generate.
2981
5a82b8a1
KR
29822020-03-17 Kamil Rytarowski <n54@gmx.com>
2983
2984 * regcache.cc (find_register_by_number): Update.
2985 * tdesc.cc (init_target_desc): Likewise.
2986 * tdesc.h (target_desc::reg_defs): Likewise.
2987
4635ff97
TT
29882020-03-12 Tom Tromey <tom@tromey.com>
2989
2990 * configure: Rebuild.
2991 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2992 (WIN32APILIBS): New subst.
2993 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2994 gdbsupport files.
2995 (gdbsupport/%.o): Remove target.
2996 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2997 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2998 (WIN32APILIBS): New variable.
2999 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
3000 (gdbreplay$(EXEEXT)): Likewise.
3001
9a665d62
TT
30022020-03-12 Tom Tromey <tom@tromey.com>
3003
3004 * config.in, configure: Rebuild.
3005 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
3006 * acinclude.m4: Include gettext-sister.m4.
3007 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
3008 variables.
3009 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
3010 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
3011
272cd5a3
SM
30122020-03-12 Simon Marchi <simon.marchi@efficios.com>
3013
3014 * acinclude.m4: Update path to selftest.m4.
3015
db6878ac
SM
30162020-03-12 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * configure.ac: Don't source bfd/development.sh, move
3019 GDB_AC_COMMON higher.
3020 * configure: Re-generate.
3021
4d696a5c
SM
30222020-03-12 Simon Marchi <simon.marchi@efficios.com>
3023
3024 * configure: Re-generate.
3025
a0761e34
SM
30262020-03-11 Simon Marchi <simon.marchi@efficios.com>
3027
3028 * configure: Re-generate.
3029
20ea4a60
AB
30302020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3031
3032 * .dir-locals.el: New file.
3033
842806cb
TBA
30342020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3035
3036 * .gitattributes: New file.
3037
442131c1
AB
30382020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3039
3040 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
3041 reply into an S reply.
3042 * server.cc (disable_packet_T): New global.
3043 (captured_main): Set new global when appropriate.
3044 * server.h (disable_packet_T): Declare.
3045
dda42c0b
TT
30462020-02-21 Tom Tromey <tom@tromey.com>
3047
3048 * Makefile.in (mostlyclean): New target.
3049
52405d85
TBA
30502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3051
3052 * target.h (struct process_stratum_target): Remove.
3053 (class process_target): Rename to ...
3054 (class process_stratum_target): ... this.
3055 * linux-low.h (class linux_process_target): Derive from
3056 'process_stratum_target'.
3057 * linux-low.cc (linux_target_ops): Remove.
3058 (initialize_low): Set the_target to the singleton instance of
3059 linux_process_target.
3060 * lynx-low.h (class lynx_process_target): Derive from
3061 'process_stratum_target'.
3062 * lynx-low.cc (lynx_target_ops): Remove.
3063 (initialize_low): Set the_target to the singleton instance of
3064 lynx_process_target.
3065 * nto-low.h (class nto_process_target): Derive from
3066 'process_stratum_target'.
3067 * nto-low.cc (nto_target_ops): Remove.
3068 (initialize_low): Set the_target to the singleton instance of
3069 nto_process_target.
3070 * win32-low.h (class win32_process_target): Derive from
3071 'process_stratum_target'.
3072 * win32-low.cc (win32_target_ops): Remove.
3073 (initialize_low): Set the_target to the singleton instance of
3074 win32_process_target.
3075
3076 Replace 'the_target->pt' with 'the_target' in the uses below.
3077
3078 * hostio.cc (hostio_error)
3079 (handle_setfs)
3080 (handle_open)
3081 (handle_unlink)
3082 (handle_readlink)
3083 * linux-aarch32-low.cc (arm_breakpoint_at)
3084 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3085 * linux-arm-low.cc (arm_sigreturn_next_pc)
3086 (arm_get_hwcap)
3087 (arm_get_syscall_trapinfo)
3088 * linux-cris-low.cc (cris_breakpoint_at)
3089 * linux-crisv32-low.cc (cris_breakpoint_at)
3090 * linux-low.cc (handle_extended_wait)
3091 (linux_wait_1)
3092 (linux_read_memory)
3093 (linux_process_target::breakpoint_kind_from_pc)
3094 (linux_get_auxv)
3095 * linux-m32r-low.cc (m32r_breakpoint_at)
3096 * linux-mips-low.cc (mips_breakpoint_at)
3097 * linux-nios2-low.cc (nios2_breakpoint_at)
3098 * linux-ppc-low.cc (ppc_breakpoint_at)
3099 * linux-s390-low.cc (s390_get_hwcap)
3100 * linux-sh-low.cc (sh_breakpoint_at)
3101 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3102 (sparc_store_gregset_from_stack)
3103 (sparc_breakpoint_at)
3104 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3105 * linux-tile-low.cc (tile_breakpoint_at)
3106 * linux-x86-low.cc (x86_breakpoint_at)
3107 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3108 * mem-break.cc (bp_size)
3109 (bp_opcode)
3110 (insert_memory_breakpoint)
3111 (set_raw_breakpoint_at)
3112 (delete_raw_breakpoint)
3113 (z_type_supported)
3114 (uninsert_raw_breakpoint)
3115 (reinsert_raw_breakpoint)
3116 (validate_inserted_breakpoint)
3117 * regcache.cc (regcache_read_pc)
3118 (regcache_write_pc)
3119 * remote-utils.cc (putpkt_binary_1)
3120 (input_interrupt)
3121 (getpkt)
3122 (prepare_resume_reply)
3123 * server.cc (handle_general_set)
3124 (handle_detach)
3125 (handle_qxfer_auxv)
3126 (handle_qxfer_exec_file)
3127 (handle_qxfer_libraries_svr4)
3128 (handle_qxfer_osdata)
3129 (handle_qxfer_siginfo)
3130 (handle_qxfer_fdpic)
3131 (handle_query)
3132 (resume)
3133 (handle_v_requests)
3134 (queue_stop_reply_callback)
3135 (captured_main)
3136 * target.cc (prepare_to_access_memory)
3137 (done_accessing_memory)
3138 (read_inferior_memory)
3139 (target_write_memory)
3140 (target_stop_and_wait)
3141 (target_wait)
3142 (target_mourn_inferior)
3143 (target_continue_no_signal)
3144 (target_continue)
3145 (target_supports_multi_process)
3146 (kill_inferior)
3147 * target.h
3148 (target_create_inferior)
3149 (target_post_create_inferior)
3150 (myattach)
3151 (target_supports_fork_events)
3152 (target_supports_vfork_events)
3153 (target_supports_exec_events)
3154 (target_handle_new_gdb_connection)
3155 (detach_inferior)
3156 (mythread_alive)
3157 (fetch_inferior_registers)
3158 (store_inferior_registers)
3159 (join_inferior)
3160 (target_supports_non_stop)
3161 (target_async)
3162 (target_process_qsupported)
3163 (target_supports_catch_syscall)
3164 (target_get_ipa_tdesc_idx)
3165 (target_supports_tracepoints)
3166 (target_supports_fast_tracepoints)
3167 (target_get_min_fast_tracepoint_insn_len)
3168 (target_thread_stopped)
3169 (target_pause_all)
3170 (target_unpause_all)
3171 (target_stabilize_threads)
3172 (target_install_fast_tracepoint_jump_pad)
3173 (target_emit_ops)
3174 (target_supports_disable_randomization)
3175 (target_supports_agent)
3176 (target_enable_btrace)
3177 (target_disable_btrace)
3178 (target_read_btrace)
3179 (target_read_btrace_conf)
3180 (target_supports_range_stepping)
3181 (target_supports_stopped_by_sw_breakpoint)
3182 (target_stopped_by_sw_breakpoint)
3183 (target_supports_stopped_by_hw_breakpoint)
3184 (target_supports_hardware_single_step)
3185 (target_stopped_by_hw_breakpoint)
3186 (target_breakpoint_kind_from_pc)
3187 (target_breakpoint_kind_from_current_state)
3188 (target_supports_software_single_step)
3189 (target_core_of_thread)
3190 (target_thread_name)
3191 (target_thread_handle)
3192 * win32-low.cc (do_initial_child_stuff)
3193
3194 Rename target op default definitions listed below.
3195
3196 * target.cc (process_target::post_create_inferior): Rename as ...
3197 (process_stratum_target::post_create_inferior): ... this.
3198 (process_target::prepare_to_access_memory): Rename as ...
3199 (process_stratum_target::prepare_to_access_memory): ... this.
3200 (process_target::done_accessing_memory): Rename as ...
3201 (process_stratum_target::done_accessing_memory): ... this.
3202 (process_target::look_up_symbols): Rename as ...
3203 (process_stratum_target::look_up_symbols): ... this.
3204 (process_target::supports_read_auxv): Rename as ...
3205 (process_stratum_target::supports_read_auxv): ... this.
3206 (process_target::read_auxv): Rename as ...
3207 (process_stratum_target::read_auxv): ... this.
3208 (process_target::supports_z_point_type): Rename as ...
3209 (process_stratum_target::supports_z_point_type): ... this.
3210 (process_target::insert_point): Rename as ...
3211 (process_stratum_target::insert_point): ... this.
3212 (process_target::remove_point): Rename as ...
3213 (process_stratum_target::remove_point): ... this.
3214 (process_target::stopped_by_sw_breakpoint): Rename as ...
3215 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3216 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3217 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3218 (process_target::stopped_by_hw_breakpoint): Rename as ...
3219 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3220 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3221 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3222 (process_target::supports_hardware_single_step): Rename as ...
3223 (process_stratum_target::supports_hardware_single_step): ... this.
3224 (process_target::stopped_by_watchpoint): Rename as ...
3225 (process_stratum_target::stopped_by_watchpoint): ... this.
3226 (process_target::stopped_data_address): Rename as ...
3227 (process_stratum_target::stopped_data_address): ... this.
3228 (process_target::supports_read_offsets): Rename as ...
3229 (process_stratum_target::supports_read_offsets): ... this.
3230 (process_target::read_offsets): Rename as ...
3231 (process_stratum_target::read_offsets): ... this.
3232 (process_target::supports_get_tls_address): Rename as ...
3233 (process_stratum_target::supports_get_tls_address): ... this.
3234 (process_target::get_tls_address): Rename as ...
3235 (process_stratum_target::get_tls_address): ... this.
3236 (process_target::hostio_last_error): Rename as ...
3237 (process_stratum_target::hostio_last_error): ... this.
3238 (process_target::supports_qxfer_osdata): Rename as ...
3239 (process_stratum_target::supports_qxfer_osdata): ... this.
3240 (process_target::qxfer_osdata): Rename as ...
3241 (process_stratum_target::qxfer_osdata): ... this.
3242 (process_target::supports_qxfer_siginfo): Rename as ...
3243 (process_stratum_target::supports_qxfer_siginfo): ... this.
3244 (process_target::qxfer_siginfo): Rename as ...
3245 (process_stratum_target::qxfer_siginfo): ... this.
3246 (process_target::supports_non_stop): Rename as ...
3247 (process_stratum_target::supports_non_stop): ... this.
3248 (process_target::async): Rename as ...
3249 (process_stratum_target::async): ... this.
3250 (process_target::start_non_stop): Rename as ...
3251 (process_stratum_target::start_non_stop): ... this.
3252 (process_target::supports_multi_process): Rename as ...
3253 (process_stratum_target::supports_multi_process): ... this.
3254 (process_target::supports_fork_events): Rename as ...
3255 (process_stratum_target::supports_fork_events): ... this.
3256 (process_target::supports_vfork_events): Rename as ...
3257 (process_stratum_target::supports_vfork_events): ... this.
3258 (process_target::supports_exec_events): Rename as ...
3259 (process_stratum_target::supports_exec_events): ... this.
3260 (process_target::handle_new_gdb_connection): Rename as ...
3261 (process_stratum_target::handle_new_gdb_connection): ... this.
3262 (process_target::handle_monitor_command): Rename as ...
3263 (process_stratum_target::handle_monitor_command): ... this.
3264 (process_target::core_of_thread): Rename as ...
3265 (process_stratum_target::core_of_thread): ... this.
3266 (process_target::supports_read_loadmap): Rename as ...
3267 (process_stratum_target::supports_read_loadmap): ... this.
3268 (process_target::read_loadmap): Rename as ...
3269 (process_stratum_target::read_loadmap): ... this.
3270 (process_target::process_qsupported): Rename as ...
3271 (process_stratum_target::process_qsupported): ... this.
3272 (process_target::supports_tracepoints): Rename as ...
3273 (process_stratum_target::supports_tracepoints): ... this.
3274 (process_target::read_pc): Rename as ...
3275 (process_stratum_target::read_pc): ... this.
3276 (process_target::write_pc): Rename as ...
3277 (process_stratum_target::write_pc): ... this.
3278 (process_target::supports_thread_stopped): Rename as ...
3279 (process_stratum_target::supports_thread_stopped): ... this.
3280 (process_target::thread_stopped): Rename as ...
3281 (process_stratum_target::thread_stopped): ... this.
3282 (process_target::supports_get_tib_address): Rename as ...
3283 (process_stratum_target::supports_get_tib_address): ... this.
3284 (process_target::get_tib_address): Rename as ...
3285 (process_stratum_target::get_tib_address): ... this.
3286 (process_target::pause_all): Rename as ...
3287 (process_stratum_target::pause_all): ... this.
3288 (process_target::unpause_all): Rename as ...
3289 (process_stratum_target::unpause_all): ... this.
3290 (process_target::stabilize_threads): Rename as ...
3291 (process_stratum_target::stabilize_threads): ... this.
3292 (process_target::supports_fast_tracepoints): Rename as ...
3293 (process_stratum_target::supports_fast_tracepoints): ... this.
3294 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3295 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3296 (process_target::emit_ops): Rename as ...
3297 (process_stratum_target::emit_ops): ... this.
3298 (process_target::supports_disable_randomization): Rename as ...
3299 (process_stratum_target::supports_disable_randomization): ... this.
3300 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3301 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3302 (process_target::qxfer_libraries_svr4): Rename as ...
3303 (process_stratum_target::qxfer_libraries_svr4): ... this.
3304 (process_target::supports_agent): Rename as ...
3305 (process_stratum_target::supports_agent): ... this.
3306 (process_target::enable_btrace): Rename as ...
3307 (process_stratum_target::enable_btrace): ... this.
3308 (process_target::disable_btrace): Rename as ...
3309 (process_stratum_target::disable_btrace): ... this.
3310 (process_target::read_btrace): Rename as ...
3311 (process_stratum_target::read_btrace): ... this.
3312 (process_target::read_btrace_conf): Rename as ...
3313 (process_stratum_target::read_btrace_conf): ... this.
3314 (process_target::supports_range_stepping): Rename as ...
3315 (process_stratum_target::supports_range_stepping): ... this.
3316 (process_target::supports_pid_to_exec_file): Rename as ...
3317 (process_stratum_target::supports_pid_to_exec_file): ... this.
3318 (process_target::pid_to_exec_file): Rename as ...
3319 (process_stratum_target::pid_to_exec_file): ... this.
3320 (process_target::supports_multifs): Rename as ...
3321 (process_stratum_target::supports_multifs): ... this.
3322 (process_target::multifs_open): Rename as ...
3323 (process_stratum_target::multifs_open): ... this.
3324 (process_target::multifs_unlink): Rename as ...
3325 (process_stratum_target::multifs_unlink): ... this.
3326 (process_target::multifs_readlink): Rename as ...
3327 (process_stratum_target::multifs_readlink): ... this.
3328 (process_target::breakpoint_kind_from_pc): Rename as ...
3329 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3330 (process_target::breakpoint_kind_from_current_state): Rename as ...
3331 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3332 (process_target::thread_name): Rename as ...
3333 (process_stratum_target::thread_name): ... this.
3334 (process_target::thread_handle): Rename as ...
3335 (process_stratum_target::thread_handle): ... this.
3336 (process_target::supports_software_single_step): Rename as ...
3337 (process_stratum_target::supports_software_single_step): ... this.
3338 (process_target::supports_catch_syscall): Rename as ...
3339 (process_stratum_target::supports_catch_syscall): ... this.
3340 (process_target::get_ipa_tdesc_idx): Rename as ...
3341 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3342
478f9adf
PA
33432020-02-20 Pedro Alves <palves@redhat.com>
3344
3345 * target.cc (set_target_ops): Simply copy the given target pointer
3346 instead of creating a copy of the pointed object.
3347
d633e831
TBA
33482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3349
3350 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3351 of process_target.
3352
3353 * target.h (struct process_stratum_target): Remove the target op.
3354 (class process_target): Add the target op.
3355 (target_get_ipa_tdesc_idx): Update the macro.
3356 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3357
3358 Update the derived classes and callers below.
3359
3360 * linux-low.cc (linux_target_ops): Update.
3361 (linux_get_ipa_tdesc_idx): Turn into ...
3362 (linux_process_target::get_ipa_tdesc_idx): ... this.
3363 * linux-low.h (class linux_process_target): Update.
3364 * lynx-low.cc (lynx_target_ops): Update.
3365 * nto-low.cc (nto_target_ops): Update.
3366 * win32-low.cc (win32_target_ops): Update.
3367
bc8d3ae4
TBA
33682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3369
3370 Turn process_stratum_target's supports_catch_syscall op into a
3371 method of process_target.
3372
3373 * target.h (struct process_stratum_target): Remove the target op.
3374 (class process_target): Add the target op.
3375 (target_supports_catch_syscall): Update the macro.
3376 * target.cc (process_target::supports_catch_syscall): Define.
3377
3378 Update the derived classes and callers below.
3379
3380 * linux-low.cc (linux_target_ops): Update.
3381 (linux_supports_catch_syscall): Turn into ...
3382 (linux_process_target::supports_catch_syscall): ... this.
3383 * linux-low.h (class linux_process_target): Update.
3384 * lynx-low.cc (lynx_target_ops): Update.
3385 * nto-low.cc (nto_target_ops): Update.
3386 * win32-low.cc (win32_target_ops): Update.
3387
5303a34f
TBA
33882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3389
3390 Turn process_stratum_target's supports_software_single_step op
3391 into a method of process_target.
3392
3393 * target.h (struct process_stratum_target): Remove the target op.
3394 (class process_target): Add the target op.
3395 (target_supports_software_single_step): Update the macro.
3396 * target.cc (process_target::supports_software_single_step): Define.
3397
3398 Update the derived classes and callers below.
3399
3400 * linux-low.cc (linux_target_ops): Update.
3401 (linux_supports_software_single_step): Turn into ...
3402 (linux_process_target::supports_software_single_step): ... this.
3403 * linux-low.h (class linux_process_target): Update.
3404 * lynx-low.cc (lynx_target_ops): Update.
3405 * nto-low.cc (nto_target_ops): Update.
3406 * win32-low.cc (win32_target_ops): Update.
3407
7f63b89b
TBA
34082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3409
3410 Turn process_stratum_target's thread_name and thread_handle ops
3411 into methods of process_target.
3412
3413 * target.h (struct process_stratum_target): Remove the target ops.
3414 (class process_target): Add the target ops.
3415 (target_thread_name): Update the macro.
3416 (target_thread_handle): Update the macro.
3417 * target.cc (process_target::thread_name): Define.
3418 (process_target::thread_handle): Define.
3419
3420 Update the derived classes and callers below.
3421
3422 * linux-low.cc (linux_target_ops): Update.
3423 (linux_process_target::thread_name): Define.
3424 (linux_process_target::thread_handle): Define.
3425 * linux-low.h (class linux_process_target): Update.
3426 * lynx-low.cc (lynx_target_ops): Update.
3427 * nto-low.cc (nto_target_ops): Update.
3428 * win32-low.cc (win32_target_ops): Update.
3429
d367006f
TBA
34302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3431
3432 Turn process_stratum_target's breakpoint_kind_from_pc,
3433 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3434 ops into methods of process_target.
3435
3436 * target.h (struct process_stratum_target): Remove the target op.
3437 (class process_target): Add the target op.
3438 (target_breakpoint_kind_from_pc): Update the macro.
3439 (target_breakpoint_kind_from_current_state): Update the macro.
3440 (default_breakpoint_kind_from_pc): Remove declaration.
3441 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3442 (process_target::breakpoint_kind_from_pc): ... this.
3443 (process_target::breakpoint_kind_from_current_state): Define.
3444
3445 Update the derived classes and callers below.
3446
3447 * mem-break.cc (bp_size): Update.
3448 (bp_opcode): Update.
3449 * linux-low.cc (linux_target_ops): Update.
3450 (linux_wait_1): Update.
3451 (linux_breakpoint_kind_from_pc): Turn into ...
3452 (linux_process_target::breakpoint_kind_from_pc): ... this.
3453 (linux_sw_breakpoint_from_kind): Turn into ...
3454 (linux_process_target::sw_breakpoint_from_kind): ... this.
3455 (linux_breakpoint_kind_from_current_state): Turn into ...
3456 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3457 * linux-low.h (class linux_process_target): Update.
3458 * lynx-low.cc (lynx_target_ops): Update.
3459 (lynx_process_target::sw_breakpoint_from_kind): Define.
3460 * lynx-low.h (class lynx_process_target): Update.
3461 * nto-low.cc (nto_target_ops): Update.
3462 (nto_sw_breakpoint_from_kind): Turn into ...
3463 (nto_process_target::sw_breakpoint_from_kind): ... this.
3464 * nto-low.h (class nto_process_target): Update.
3465 * win32-low.cc (win32_target_ops): Update.
3466 (win32_sw_breakpoint_from_kind): Turn into ...
3467 (win32_process_target::sw_breakpoint_from_kind): ... this.
3468 * win32-low.h (class win32_process_target): Update.
3469
c9b7b804
TBA
34702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3471
3472 Turn process_stratum_target's multifs_open, multifs_readlink,
3473 multifs_unlink ops into methods of process_target.
3474
3475 * target.h (struct process_stratum_target): Remove the target ops.
3476 (class process_target): Add the target ops. Also add
3477 'supports_multifs'.
3478 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3479 "sys/stat.h".
3480 (process_target::supports_multifs): Define.
3481 (process_target::multifs_open): Define.
3482 (process_target::multifs_readlink): Define.
3483 (process_target::multifs_unlink): Define.
3484
3485 Update the derived classes and callers below.
3486
3487 * hostio.cc (handle_setfs): Update.
3488 (handle_open): Update.
3489 (handle_unlink): Update.
3490 (handle_readlink): Update.
3491 * linux-low.cc (linux_target_ops): Update.
3492 (linux_process_target::supports_multifs): Define.
3493 (linux_process_target::multifs_open): Define.
3494 (linux_process_target::multifs_readlink): Define.
3495 (linux_process_target::multifs_unlink): Define.
3496 * linux-low.h (class linux_process_target): Update.
3497 * lynx-low.cc (lynx_target_ops): Update.
3498 * nto-low.cc (nto_target_ops): Update.
3499 * win32-low.cc (win32_target_ops): Update.
3500
8247b823
TBA
35012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3502
3503 Turn process_stratum_target's pid_to_exec_file op into a method
3504 of process_target.
3505
3506 * target.h (struct process_stratum_target): Remove the target op.
3507 (class process_target): Add the target op. Also add
3508 'supports_pid_to_exec_file'.
3509 * target.cc (process_target::pid_to_exec_file): Define.
3510 (process_target::supports_pid_to_exec_file): Define.
3511
3512 Update the derived classes and callers below.
3513
3514 * server.cc (handle_qxfer_exec_file): Update.
3515 (handle_query): Update.
3516 * linux-low.cc (linux_target_ops): Update.
3517 (linux_process_target::supports_pid_to_exec_file): Define.
3518 (linux_process_target::pid_to_exec_file): Define.
3519 * linux-low.h (class linux_process_target): Update.
3520 * lynx-low.cc (lynx_target_ops): Update.
3521 * nto-low.cc (nto_target_ops): Update.
3522 * win32-low.cc (win32_target_ops): Update.
3523
2526e0cd
TBA
35242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3525
3526 Turn process_stratum_target's supports_range_stepping op into a
3527 method of process_target.
3528
3529 * target.h (struct process_stratum_target): Remove the target op.
3530 (class process_target): Add the target op.
3531 (target_supports_range_stepping): Update the macro.
3532 * target.cc (process_target::supports_range_stepping): Define.
3533
3534 Update the derived classes and callers below.
3535
3536 * linux-low.cc (linux_target_ops): Update.
3537 (linux_supports_range_stepping): Turn into ...
3538 (linux_process_target::supports_range_stepping): ... this.
3539 * linux-low.h (class linux_process_target): Update.
3540 * lynx-low.cc (lynx_target_ops): Update.
3541 * nto-low.cc (nto_target_ops): Update.
3542 * win32-low.cc (win32_target_ops): Update.
3543
79597bdd
TBA
35442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3545
3546 Turn process_stratum_target's btrace-related ops (enable_btrace,
3547 disable_btrace, read_btrace, read_btrace_conf) into methods of
3548 process_target.
3549
3550 * target.h (struct process_stratum_target): Remove the target ops.
3551 (class process_target): Add the target ops.
3552 (target_enable_btrace): Update.
3553 (target_disable_btrace): Update.
3554 (target_read_btrace): Update.
3555 (target_read_btrace_conf): Update.
3556 * target.cc (process_target::enable_btrace): Define.
3557 (process_target::disable_btrace): Define.
3558 (process_target::read_btrace): Define.
3559 (process_target::read_btrace_conf): Define.
3560
3561 Update the derived classes and callers below.
3562
3563 * linux-low.cc (linux_target_ops): Update.
3564 (linux_process_target:enable_btrace): Define as a wrapper around
3565 linux_enable_btrace.
3566 (linux_low_disable_btrace): Turn into ...
3567 (linux_process_target::disable_btrace): ... this.
3568 (linux_low_read_btrace): Turn into ...
3569 (linux_process_target::read_btrace): ... this.
3570 (linux_low_btrace_conf): Turn into ...
3571 (linux_process_target::read_btrace_conf): ... this.
3572 * linux-low.h (class linux_process_target): Update.
3573 * lynx-low.cc (lynx_target_ops): Update.
3574 * nto-low.cc (nto_target_ops): Update.
3575 * win32-low.cc (win32_target_ops): Update.
3576
c0245cb9
TBA
35772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3578
3579 Turn process_stratum_target's supports_agent op into a method of
3580 process_target.
3581
3582 * target.h (struct process_stratum_target): Remove the target op.
3583 (class process_target): Add the target op.
3584 (target_supports_agent): Update the macro.
3585 * target.cc (process_target::supports_agent): Define.
3586
3587 Update the derived classes and callers below.
3588
3589 * linux-low.cc (linux_target_ops): Update.
3590 (linux_supports_agent): Turn into ...
3591 (linux_process_target::supports_agent): ... this.
3592 * linux-low.h (class linux_process_target): Update.
3593 * lynx-low.cc (lynx_target_ops): Update.
3594 * nto-low.cc (nto_target_ops): Update.
3595 * win32-low.cc (win32_target_ops): Update.
3596
974387bb
TBA
35972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3598
3599 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3600 method of process_target.
3601
3602 * target.h (struct process_stratum_target): Remove the target op.
3603 (class process_target): Add the target op. Also add
3604 'supports_qxfer_libraries_svr4'.
3605 * target.cc (process_target::qxfer_libraries_svr4): Define.
3606 (process_target::supports_qxfer_libraries_svr4): Define.
3607
3608 Update the derived classes and callers below.
3609
3610 * server.cc (handle_qxfer_libraries_svr4): Update.
3611 (handle_query): Update.
3612 * linux-low.cc (linux_target_ops): Update.
3613 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3614 (linux_qxfer_libraries_svr4): Turn into ...
3615 (linux_process_target::qxfer_libraries_svr4): ... this.
3616 * linux-low.h (class linux_process_target): Update.
3617 * lynx-low.cc (lynx_target_ops): Update.
3618 * nto-low.cc (nto_target_ops): Update.
3619 * win32-low.cc (win32_target_ops): Update.
3620
c756403b
TBA
36212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3622
3623 Turn process_stratum_target's supports_disable_randomization op
3624 into a method of process_target.
3625
3626 * target.h (struct process_stratum_target): Remove the target op.
3627 (class process_target): Add the target op.
3628 (target_supports_disable_randomization): Update the macro.
3629 * target.cc (process_target::supports_disable_randomization): Define.
3630
3631 Update the derived classes and callers below.
3632
3633 * linux-low.cc (linux_target_ops): Update.
3634 (linux_supports_disable_randomization): Turn into ...
3635 (linux_process_target::supports_disable_randomization): ... this.
3636 * linux-low.h (class linux_process_target): Update.
3637 * lynx-low.cc (lynx_target_ops): Update.
3638 * nto-low.cc (nto_target_ops): Update.
3639 * win32-low.cc (win32_target_ops): Update.
3640
345dafad
TBA
36412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3642
3643 Turn process_stratum_target's emit_ops op into a method of
3644 process_target.
3645
3646 * target.h (struct process_stratum_target): Remove the target op.
3647 (class process_target): Add the target op.
3648 (target_emit_ops): Update the macro.
3649 * target.cc (process_target::emit_ops): Define.
3650
3651 Update the derived classes and callers below.
3652
3653 * linux-low.cc (linux_target_ops): Update.
3654 (linux_emit_ops): Turn into ...
3655 (linux_process_target::emit_ops): ... this.
3656 * linux-low.h (class linux_process_target): Update.
3657 * lynx-low.cc (lynx_target_ops): Update.
3658 * nto-low.cc (nto_target_ops): Update.
3659 * win32-low.cc (win32_target_ops): Update.
3660
c23c9391
TBA
36612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3662
3663 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3664 and get_min_fast_tracepoint_insn_len ops into methods of
3665 process_target.
3666
3667 * target.h (struct process_stratum_target): Remove the target ops.
3668 (class process_target): Add the target ops. Also add
3669 'supports_fast_tracepoints'.
3670 (target_supports_fast_tracepoints): Update the macro.
3671 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3672 (install_fast_tracepoint_jump_pad): Update and rename the macro
3673 to ...
3674 (target_install_fast_tracepoint_jump_pad): ... this.
3675 * target.cc (process_target::supports_fast_tracepoints): Define.
3676 (process_target::install_fast_tracepoint_jump_pad): Define.
3677 (process_target::get_min_fast_tracepoint_insn_len): Define.
3678
3679 Update the derived classes and callers below.
3680
3681 * tracepoint.cc (install_fast_tracepoint): Update.
3682 * linux-low.cc (linux_target_ops): Update.
3683 (linux_process_target::supports_fast_tracepoints): Define.
3684 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3685 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3686 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3687 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3688 * linux-low.h (class linux_process_target): Update.
3689 * lynx-low.cc (lynx_target_ops): Update.
3690 * nto-low.cc (nto_target_ops): Update.
3691 * win32-low.cc (win32_target_ops): Update.
3692
5c9eb2f2
TBA
36932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3694
3695 Turn process_stratum_target's stabilize_threads op into a
3696 method of process_target.
3697
3698 * target.h (struct process_stratum_target): Remove the target op.
3699 (class process_target): Add the target op.
3700 (target_stabilize_threads): Update the macro.
3701 * target.cc (process_target::stabilize_threads): Define.
3702
3703 Update the derived classes and callers below.
3704
3705 * server.cc (handle_status): Update.
3706 * tracepoint.cc (cmd_qtdp): Update.
3707 (cmd_qtstart): Update.
3708 * linux-low.cc (linux_target_ops): Update.
3709 (linux_stabilize_threads): Turn into ...
3710 (linux_process_target::stabilize_threads): ... this.
3711 (linux_wait_1): Update.
3712 * linux-low.h (class linux_process_target): Update.
3713 * lynx-low.cc (lynx_target_ops): Update.
3714 * nto-low.cc (nto_target_ops): Update.
3715 * win32-low.cc (win32_target_ops): Update.
3716
29e8dc09
TBA
37172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3718
3719 Turn process_stratum_target's pause_all and unpause_all ops
3720 into methods of process_target.
3721
3722 * target.h (struct process_stratum_target): Remove the target ops.
3723 (class process_target): Add the target ops.
3724 (pause_all): Update the macro and rename to...
3725 (target_pause_all): ... this.
3726 (unpause_all): Update the macro and rename to...
3727 (target_unpause_all): ... this.
3728 * target.cc (process_target::pause_all): Define.
3729 (process_target::unpause_all): Define.
3730
3731 Update the derived classes and callers below.
3732
3733 * server.cc (handle_status): Update.
3734 * tracepoint.cc (clear_installed_tracepoints): Update.
3735 (cmd_qtdp): Update.
3736 (cmd_qtstart): Update.
3737 (stop_tracing): Update.
3738 (cmd_qtstatus): Update.
3739 (upload_fast_traceframes): Update.
3740 (run_inferior_command): Update.
3741 * linux-low.cc (linux_target_ops): Update.
3742 (linux_pause_all): Turn into ...
3743 (linux_process_target::pause_all): ... this.
3744 (linux_unpause_all): Turn into ...
3745 (linux_process_target::unpause_all): ... this.
3746 (linux_process_target::prepare_to_access_memory): Update.
3747 (linux_process_target::done_accessing_memory): Update.
3748 * linux-low.h (class linux_process_target): Update.
3749 * lynx-low.cc (lynx_target_ops): Update.
3750 * nto-low.cc (nto_target_ops): Update.
3751 * win32-low.cc (win32_target_ops): Update.
3752
4e2e869c
TBA
37532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3754
3755 Turn process_stratum_target's get_tib_address op into a method of
3756 process_target.
3757
3758 * target.h (struct process_stratum_target): Remove the target op.
3759 (class process_target): Add the target op. Also add
3760 'supports_get_tib_address'.
3761 * target.cc (process_target::get_tib_address): Define.
3762 (process_target::supports_get_tib_address): Define.
3763
3764 Update the derived classes and callers below.
3765
3766 * server.cc (handle_query): Update.
3767 * linux-low.cc (win32_target_ops): Update.
3768 * lynx-low.cc (lynx_target_ops): Update.
3769 * nto-low.cc (nto_target_ops): Update.
3770 * win32-low.cc (win32_target_ops): Update.
3771 (win32_process_target::supports_get_tib_address): Define.
3772 (win32_get_tib_address): Turn into ...
3773 (win32_process_target::get_tib_address): ... this.
3774 * win32-low.h (class win32_process_target): Update.
3775
68119632
TBA
37762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3777
3778 Turn process_stratum_target's thread_stopped op into a method of
3779 process_target.
3780
3781 * target.h (struct process_stratum_target): Remove the target op.
3782 (class process_target): Add the target op. Also add
3783 'supports_thread_stopped'.
3784 (target_thread_stopped): Update the macro.
3785 * target.cc (process_target::thread_stopped): Define.
3786 (process_target::supports_thread_stopped): Define.
3787 (prepare_to_access_memory): Update.
3788
3789 Update the derived classes and callers below.
3790
3791 * server.cc (queue_stop_reply_callback): Update.
3792 * linux-low.cc (linux_target_ops): Update.
3793 (linux_process_target::supports_thread_stopped): Define.
3794 (linux_thread_stopped): Turn into ...
3795 (linux_process_target::thread_stopped): ... this.
3796 * linux-low.h (class linux_process_target): Update.
3797 * lynx-low.cc (lynx_target_ops): Update.
3798 * nto-low.cc (nto_target_ops): Update.
3799 * win32-low.cc (win32_target_ops): Update.
3800
770d8f6a
TBA
38012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3802
3803 Turn process_stratum_target's read_pc and write_pc ops into
3804 methods of process_target.
3805
3806 * target.h (struct process_stratum_target): Remove the target ops.
3807 (class process_target): Add the target ops.
3808 * target.cc (process_target::read_pc): Define.
3809 (process_target::write_pc): Define.
3810
3811 Update the derived classes and callers below.
3812
3813 * regcache.cc (regcache_read_pc): Update.
3814 (regcache_write_pc): Update.
3815 * linux-low.cc (linux_target_ops): Update.
3816 (linux_read_pc): Turn into ...
3817 (linux_process_target::read_pc): ... this.
3818 (linux_write_pc): Turn into ...
3819 (linux_process_target::write_pc): ... this.
3820 * linux-low.h (class linux_process_target): Update.
3821 * lynx-low.cc (lynx_target_ops): Update.
3822 * nto-low.cc (nto_target_ops): Update.
3823 * win32-low.cc (win32_target_ops): Update.
3824
290732bf
TBA
38252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3826
3827 Turn process_stratum_target's supports_tracepoints op into a
3828 method of process_target.
3829
3830 * target.h (struct process_stratum_target): Remove the target op.
3831 (class process_target): Add the target op.
3832 (target_supports_tracepoints): Update the macro.
3833 * target.cc (process_target::supports_tracepoints): Define.
3834
3835 Update the derived classes and callers below.
3836
3837 * linux-low.cc (linux_target_ops): Update.
3838 (linux_supports_tracepoints): Turn into ...
3839 (linux_process_target::supports_tracepoints): ... this.
3840 * linux-low.h (class linux_process_target): Update.
3841 * lynx-low.cc (lynx_target_ops): Update.
3842 * nto-low.cc (nto_target_ops): Update.
3843 * win32-low.cc (win32_target_ops): Update.
3844
0df28b1b
TBA
38452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3846
3847 Turn process_stratum_target's process_qsupported op into a method
3848 of process_target.
3849
3850 * target.h (struct process_stratum_target): Remove the target op.
3851 (class process_target): Add the target op.
3852 (target_process_qsupported): Update the macro.
3853 * target.cc (process_target::process_qsupported): Define.
3854
3855 Update the derived classes and callers below.
3856
3857 * linux-low.cc (linux_target_ops): Update.
3858 (linux_process_qsupported): Turn into ...
3859 (linux_process_target::process_qsupported): ... this.
3860 * linux-low.h (class linux_process_target): Update.
3861 * lynx-low.cc (lynx_target_ops): Update.
3862 * nto-low.cc (nto_target_ops): Update.
3863 * win32-low.cc (win32_target_ops): Update.
3864
9da41fda
TBA
38652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3866
3867 Turn process_stratum_target's read_loadmap op into a method of
3868 process_target.
3869
3870 * target.h (struct process_stratum_target): Remove the target op.
3871 (class process_target): Add the target op. Also add
3872 'supports_read_loadmap'.
3873 * target.cc (process_target::read_loadmap): Define.
3874 (process_target::supports_read_loadmap): Define.
3875
3876 Update the derived classes and callers below.
3877
3878 * server.cc (handle_qxfer_fdpic): Update.
3879 (handle_query): Update.
3880 * linux-low.cc (linux_target_ops): Update.
3881 (linux_process_target::supports_read_loadmap): Define.
3882 (linux_read_loadmap): Turn into ...
3883 (linux_process_target::read_loadmap): ... this.
3884 * linux-low.h (class linux_process_target): Update.
3885 * lynx-low.cc (lynx_target_ops): Update.
3886 * nto-low.cc (nto_target_ops): Update.
3887 * win32-low.cc (win32_target_ops): Update.
3888
95a45fc1
TBA
38892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3890
3891 Turn process_stratum_target's core_of_thread op into a method of
3892 process_target.
3893
3894 * target.h (struct process_stratum_target): Remove the target op.
3895 (class process_target): Add the target op.
3896 (target_core_of_thread): Update the macro.
3897 * target.cc (process_target::core_of_thread): Define.
3898
3899 Update the derived classes and callers below.
3900
3901 * linux-low.cc (linux_target_ops): Update.
3902 (linux_process_target::core_of_thread): Define.
3903 * linux-low.h (class linux_process_target): Update.
3904 * lynx-low.cc (lynx_target_ops): Update.
3905 * nto-low.cc (nto_target_ops): Update.
3906 * win32-low.cc (win32_target_ops): Update.
3907
55cf3021
TBA
39082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3909
3910 Turn process_stratum_target's handle_monitor_command op into a
3911 method of process_target.
3912
3913 * target.h (struct process_stratum_target): Remove the target op.
3914 (class process_target): Add the target op.
3915 (target_handle_monitor_command): Update the macro.
3916 * target.cc (process_target::handle_monitor_command): Define.
3917
3918 Update the derived classes and callers below.
3919
3920 * server.cc (handle_query): Update.
3921 * linux-low.cc (linux_target_ops): Update.
3922 (linux_process_target::handle_monitor_command): Define.
3923 * linux-low.h (class linux_process_target): Update.
3924 * lynx-low.cc (lynx_target_ops): Update.
3925 * nto-low.cc (nto_target_ops): Update.
3926 * win32-low.cc (win32_target_ops): Update.
3927
fb00dfce
TBA
39282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3929
3930 Turn process_stratum_target's handle_new_gdb_connection op into a
3931 method of process_target.
3932
3933 * target.h (struct process_stratum_target): Remove the target op.
3934 (class process_target): Add the target op.
3935 (target_handle_new_gdb_connection): Update the macro.
3936 * target.cc (process_target::handle_new_gdb_connection): Define.
3937
3938 Update the derived classes and callers below.
3939
3940 * linux-low.cc (linux_target_ops): Update.
3941 (linux_handle_new_gdb_connection): Turn into ...
3942 (linux_process_target::handle_new_gdb_connection): ... this.
3943 * linux-low.h (class linux_process_target): Update.
3944 * lynx-low.cc (lynx_target_ops): Update.
3945 * nto-low.cc (nto_target_ops): Update.
3946 * win32-low.cc (win32_target_ops): Update.
3947
9690a72a
TBA
39482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3949
3950 Turn process_stratum_target's supports_fork_events,
3951 supports_vfork_events, and supports_exec_events ops into methods
3952 of process_target.
3953
3954 * target.h (struct process_stratum_target): Remove the target ops.
3955 (class process_target): Add the target ops.
3956 (target_supports_fork_events): Update the macro.
3957 (target_supports_vfork_events): Update the macro.
3958 (target_supports_exec_events): Update the macro.
3959 * target.cc (process_target::supports_fork_events): Define.
3960 (process_target::supports_vfork_events): Define.
3961 (process_target::supports_exec_events): Define.
3962
3963 Update the derived classes and callers below.
3964
3965 * linux-low.cc (linux_target_ops): Update.
3966 (linux_supports_fork_events): Turn into ...
3967 (linux_process_target::supports_fork_events): ... this.
3968 (linux_supports_vfork_events): Turn into ...
3969 (linux_process_target::supports_vfork_events): ... this.
3970 (linux_supports_exec_events): Turn into ...
3971 (linux_process_target::supports_exec_events): ... this.
3972 * linux-low.h (class linux_process_target): Update.
3973 * lynx-low.cc (lynx_target_ops): Update.
3974 * nto-low.cc (nto_target_ops): Update.
3975 * win32-low.cc (win32_target_ops): Update.
3976
652aef77
TBA
39772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3978
3979 Turn process_stratum_target's supports_multi_process op into a
3980 method of process_target.
3981
3982 * target.h (struct process_stratum_target): Remove the target op.
3983 (class process_target): Add the target op.
3984 * target.cc (process_target::supports_multi_process): Define.
3985 (target_supports_multi_process): Update.
3986
3987 Update the derived classes and callers below.
3988
3989 * linux-low.cc (linux_target_ops): Update.
3990 (linux_supports_multi_process): Turn into ...
3991 (linux_process_target::supports_multi_process): ... this.
3992 * linux-low.h (class linux_process_target): Update.
3993 * lynx-low.cc (lynx_target_ops): Update.
3994 * nto-low.cc (nto_target_ops): Update.
3995 * win32-low.cc (win32_target_ops): Update.
3996
0dc587d4
TBA
39972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3998
3999 Turn process_stratum_target's supports_non_stop, async, and
4000 start_non_stop ops into methods of process_target.
4001
4002 * target.h (struct process_stratum_target): Remove the target ops.
4003 (class process_target): Add the target ops.
4004 (target_supports_non_stop): Update the macro.
4005 (target_async): Update the macro.
4006 (start_non_stop): Remove declaration.
4007 * target.cc (process_target::supports_non_stop): Define.
4008 (process_target::async): Define.
4009 (process_target::start_non_stop): Define.
4010 (start_non_stop): Remove.
4011
4012 Update the derived classes and callers below.
4013
4014 * server.cc (handle_qxfer_siginfo): Update.
4015 (handle_query): Update.
4016 * linux-low.cc (linux_target_ops): Update.
4017 (linux_supports_non_stop): Turn into ...
4018 (linux_process_target::supports_non_stop): ... this.
4019 (linux_async): Turn into ...
4020 (linux_process_target::async): ... this.
4021 (linux_start_non_stop): Turn into ...
4022 (linux_process_target::start_non_stop): ... this.
4023 * linux-low.h (class linux_process_target): Update.
4024 * lynx-low.cc (lynx_target_ops): Update.
4025 * nto-low.cc (nto_target_ops): Update.
4026 (nto_supports_non_stop): Remove; rely on the default behavior
4027 instead.
4028 * win32-low.cc (win32_target_ops): Update.
4029
d7abedf7
TBA
40302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4031
4032 Turn process_stratum_target's qxfer_siginfo op into a method of
4033 process_target.
4034
4035 * target.h (struct process_stratum_target): Remove the target op.
4036 (class process_target): Add the target op. Also add
4037 'supports_qxfer_siginfo'.
4038 * target.cc (process_target::qxfer_siginfo): Define.
4039 (process_target::supports_qxfer_siginfo): Define.
4040
4041 Update the derived classes and callers below.
4042
4043 * server.cc (handle_qxfer_siginfo): Update.
4044 (handle_query): Update.
4045 * linux-low.cc (linux_target_ops): Update.
4046 (linux_process_target::supports_qxfer_siginfo): Define.
4047 (linux_xfer_siginfo): Turn into ...
4048 (linux_process_target::qxfer_siginfo): ... this.
4049 * linux-low.h (class linux_process_target): Update.
4050 * lynx-low.cc (lynx_target_ops): Update.
4051 * nto-low.cc (nto_target_ops): Update.
4052 * win32-low.cc (win32_target_ops): Update.
4053
2d0795ee
TBA
40542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4055
4056 Turn process_stratum_target's qxfer_osdata op into a method of
4057 process_target.
4058
4059 * target.h (struct process_stratum_target): Remove the target op.
4060 (class process_target): Add the target op. Also add
4061 'supports_qxfer_osdata'.
4062 * target.cc (process_target::qxfer_osdata): Define.
4063 (process_target::supports_qxfer_osdata): Define.
4064
4065 Update the derived classes and callers below.
4066
4067 * server.cc (handle_qxfer_osdata): Update.
4068 (handle_query): Update.
4069 * linux-low.cc (linux_target_ops): Update.
4070 (linux_process_target::supports_qxfer_osdata): Define.
4071 (linux_qxfer_osdata): Turn into ...
4072 (linux_process_target::qxfer_osdata): ... this.
4073 * linux-low.h (class linux_process_target): Update.
4074 * lynx-low.cc (lynx_target_ops): Update.
4075 * nto-low.cc (nto_target_ops): Update.
4076 * win32-low.cc (win32_target_ops): Update.
4077
ea06bbaa
TBA
40782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4079
4080 Turn process_stratum_target's hostio_last_error op into a
4081 method of process_target.
4082
4083 * target.h (struct process_stratum_target): Remove the target op.
4084 (class process_target): Add the target op.
4085 * target.cc: Add "hostio.h" to includes.
4086 (process_target::hostio_last_error): Define.
4087
4088 Update the derived classes and callers below.
4089
4090 * hostio.cc (hostio_error): Update.
4091 * linux-low.cc: Remove "hostio.h" from includes.
4092 (linux_target_ops): Update.
4093 * lynx-low.cc (lynx_target_ops): Update.
4094 * nto-low.cc (nto_target_ops): Update.
4095 * win32-low.h (class win32_process_target): Update.
4096 * win32-low.cc (win32_target_ops): Update.
4097 (wince_hostio_last_error): Turn into ...
4098 (win32_process_target::hostio_last_error): ... this.
4099
6e3fd7e9
TBA
41002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4101
4102 Turn process_stratum_target's get_tls_address op into a method of
4103 process_target.
4104
4105 * target.h (struct process_stratum_target): Remove the target op.
4106 (class process_target): Add the target op. Also add
4107 'supports_get_tls_address'.
4108 * target.cc (process_target::get_tls_address): Define.
4109 (process_target::supports_get_tls_address): Define.
4110
4111 Update the derived classes and callers below.
4112
4113 * server.cc (handle_query): Update.
4114 * linux-low.cc (linux_target_ops): Update.
4115 (linux_process_target::supports_get_tls_address): Define.
4116 (linux_process_target::get_tls_address): Define.
4117 * linux-low.h (class linux_process_target): Update.
4118 * lynx-low.cc (lynx_target_ops): Update.
4119 * nto-low.cc (nto_target_ops): Update.
4120 * win32-low.cc (win32_target_ops): Update.
4121
5203ae1e
TBA
41222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4123
4124 Turn process_stratum_target's read_offsets op into a method of
4125 process_target.
4126
4127 * target.h (struct process_stratum_target): Remove the target op.
4128 (class process_target): Add the target op. Also add
4129 'supports_read_offsets'.
4130 * target.cc (process_target::read_offsets): Define.
4131 (process_target::supports_read_offsets): Define.
4132
4133 Update the derived classes and callers below.
4134
4135 * server.cc (handle_query): Update.
4136 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4137 (linux_target_ops): Update.
4138 (linux_process_target::supports_read_offsets): Define.
4139 (linux_read_offsets): Turn into ...
4140 (linux_process_target::read_offsets): ... this.
4141 * linux-low.h (class linux_process_target): Update.
4142 * lynx-low.cc (lynx_target_ops): Update.
4143 * nto-low.cc (nto_target_ops): Update.
4144 * win32-low.cc (win32_target_ops): Update.
4145
6eeb5c55
TBA
41462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4147
4148 Turn process_stratum_target's stopped_by_watchpoint and
4149 stopped_data_address ops into methods of process_target.
4150
4151 * target.h (struct process_stratum_target): Remove the target ops.
4152 (class process_target): Add the target ops.
4153 * target.cc (process_target::stopped_by_watchpoint): Define.
4154 (process_target::stopped_data_address): Define.
4155
4156 Update the derived classes and callers below.
4157
4158 * remote-utils.cc (prepare_resume_reply): Update.
4159 * linux-low.cc (linux_target_ops): Update.
4160 (linux_stopped_by_watchpoint): Turn into ...
4161 (linux_process_target::stopped_by_watchpoint): ... this.
4162 (linux_stopped_data_address): Turn into ...
4163 (linux_process_target::stopped_data_address): ... this.
4164 * linux-low.h (class linux_process_target): Update.
4165 * lynx-low.cc (lynx_target_ops): Update.
4166 * nto-low.cc (nto_target_ops): Update.
4167 (nto_stopped_by_watchpoint): Turn into ...
4168 (nto_process_target::stopped_by_watchpoint): ... this.
4169 (nto_stopped_data_address): Turn into ...
4170 (nto_process_target::stopped_data_address): ... this.
4171 * nto-low.h (class nto_process_target): Update.
4172 * win32-low.cc (win32_target_ops): Update.
4173 (win32_stopped_by_watchpoint): Turn into ...
4174 (win32_process_target::stopped_by_watchpoint): ... this.
4175 (win32_stopped_data_address): Turn into ...
4176 (win32_process_target::stopped_data_address): ... this.
4177 * win32-low.h (class win32_process_target): Update.
4178
22aa6223
TBA
41792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4180
4181 Turn process_stratum_target's supports_hardware_single_step op into
4182 a method of process_target.
4183
4184 * target.h (struct process_stratum_target): Remove the target op.
4185 (class process_target): Add the target op.
4186 (target_supports_hardware_single_step): Update the macro.
4187 (target_can_do_hardware_single_step): Remove declaration.
4188 * target.cc (process_target::supports_hardware_single_step): Define.
4189 (target_can_do_hardware_single_step): Remove.
4190
4191 Update the derived classes and callers below.
4192
4193 * linux-low.h (class linux_process_target): Update.
4194 * linux-low.cc (linux_target_ops): Update.
4195 (linux_supports_hardware_single_step): Turn into ...
4196 (linux_process_target::supports_hardware_single_step): ... this.
4197 * lynx-low.h (class lynx_process_target): Update.
4198 * lynx-low.cc (lynx_target_ops): Update.
4199 (lynx_process_target::supports_hardware_single_step): Define.
4200 * nto-low.h (class nto_process_target): Update.
4201 * nto-low.cc (nto_target_ops): Update.
4202 (nto_process_target::supports_hardware_single_step): Define.
4203 * win32-low.h (class win32_process_target): Update.
4204 * win32-low.cc (win32_target_ops): Update.
4205 (win32_process_target::supports_hardware_single_step): Define.
4206
93fe88b2
TBA
42072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4208
4209 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4210 ops into methods of process_target.
4211
4212 * target.h (struct process_stratum_target): Remove the target ops.
4213 (class process_target): Add the target ops.
4214 (target_stopped_by_hw_breakpoint): Update the macro.
4215 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4216 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4217 (process_target::supports_stopped_by_hw_breakpoint): Define.
4218
4219 Update the derived classes and callers below.
4220
4221 * linux-low.cc (linux_target_ops): Update.
4222 (linux_stopped_by_hw_breakpoint): Turn into ...
4223 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4224 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4225 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4226 * linux-low.h (class linux_process_target): Update.
4227 * lynx-low.cc (lynx_target_ops): Update.
4228 * nto-low.cc (nto_target_ops): Update.
4229 * win32-low.cc (win32_target_ops): Update.
4230
84320c4e
TBA
42312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4232
4233 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4234 ops into methods of process_target.
4235
4236 * target.h (struct process_stratum_target): Remove the target ops.
4237 (class process_target): Add the target ops.
4238 (target_stopped_by_sw_breakpoint): Update the macro.
4239 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4240 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4241 (process_target::supports_stopped_by_sw_breakpoint): Define.
4242
4243 Update the derived classes and callers below.
4244
4245 * linux-low.cc (linux_target_ops): Update.
4246 (linux_stopped_by_sw_breakpoint): Turn into ...
4247 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4248 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4249 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4250 * linux-low.h (class linux_process_target): Update.
4251 * lynx-low.cc (lynx_target_ops): Update.
4252 * nto-low.cc (nto_target_ops): Update.
4253 * win32-low.cc (win32_target_ops): Update.
4254
7e0bde70
TBA
42552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4256
4257 Turn process_stratum_target's insert_point and remove_point ops
4258 into methods of process_target.
4259
4260 * target.h (struct process_stratum_target): Remove the target ops.
4261 (class process_target): Add the target ops.
4262 * target.cc (process_target::insert_point): Define.
4263 (process_target::remove_point): Define.
4264
4265 Update the derived classes and callers below.
4266
4267 * mem-break.cc (set_raw_breakpoint_at): Update.
4268 (delete_raw_breakpoint): Update.
4269 (uninsert_raw_breakpoint): Update.
4270 (reinsert_raw_breakpoint): Update.
4271 * linux-low.cc (linux_target_ops): Update.
4272 (linux_insert_point): Turn into ...
4273 (linux_process_target::insert_point): ... this.
4274 (linux_remove_point): Turn into ...
4275 (linux_process_target::remove_point): ... this.
4276 * linux-low.h (class linux_process_target): Update.
4277 * lynx-low.cc (lynx_target_ops): Update.
4278 * nto-low.cc (nto_target_ops): Update.
4279 (nto_insert_point): Turn into ...
4280 (nto_process_target::insert_point): ... this.
4281 (nto_remove_point): Turn into ...
4282 (nto_process_target::remove_point): ... this.
4283 * nto-low.h (class nto_process_target): Update.
4284 * win32-low.cc (win32_target_ops): Update.
4285 (win32_insert_point): Turn into ...
4286 (win32_process_target::insert_point): ... this.
4287 (win32_remove_point): Turn into ...
4288 (win32_process_target::remove_point): ... this.
4289 * win32-low.h (class win32_process_target): Update.
4290
a2b2297a
TBA
42912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4292
4293 Turn process_stratum_target's supports_z_point_type op into a
4294 method of process_target.
4295
4296 * target.h (struct process_stratum_target): Remove the target op.
4297 (class process_target): Add the target op.
4298 * target.cc (process_target::supports_z_point_type): Define.
4299
4300 Update the derived classes and callers below.
4301
4302 * mem-break.cc (z_type_supported): Update.
4303 * linux-low.cc (linux_target_ops): Update.
4304 (linux_supports_z_point_type): Turn into ...
4305 (linux_process_target::supports_z_point_type): ... this.
4306 * linux-low.h (class linux_process_target): Update.
4307 * lynx-low.cc (lynx_target_ops): Update.
4308 * nto-low.cc (nto_target_ops): Update.
4309 (nto_supports_z_point_type): Turn into ...
4310 (nto_process_target::supports_z_point_type): ... this.
4311 * nto-low.h (class nto_process_target): Update.
4312 * win32-low.cc (win32_target_ops): Update.
4313 (win32_supports_z_point_type): Turn into ...
4314 (win32_process_target::supports_z_point_type): ... this.
4315 * win32-low.h (class win32_process_target): Update.
4316
eac215cc
TBA
43172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4318
4319 Turn process_stratum_target's read_auxv op into a method of
4320 process_target.
4321
4322 * target.h (class process_stratum_target): Remove the target op.
4323 (struct process_target): Add the target op. Also add
4324 'supports_read_auxv'.
4325 * target.cc (process_target::read_auxv): Define.
4326 (process_target::supports_read_auxv): Define.
4327
4328 Update the derived classes and callers below.
4329
4330 * server.cc (handle_qxfer_auxv): Update.
4331 (handle_query): Update.
4332 * linux-low.cc (linux_target_ops): Update.
4333 (linux_process_target::supports_read_auxv): Define.
4334 (linux_read_auxv): Turn into ...
4335 (linux_process_target::read_auxv): ... this.
4336 * linux-low.h (class linux_process_target): Update.
4337 * lynx-low.cc (lynx_target_ops): Update.
4338 * nto-low.cc (nto_target_ops): Update.
4339 (nto_process_target::supports_read_auxv): Define.
4340 (nto_read_auxv): Turn into ...
4341 (nto_process_target::read_auxv): ... this.
4342 * nto-low.h (class nto_process_target): Update.
4343 * win32-low.cc (win32_target_ops): Update.
4344
eb497a2a
TBA
43452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4346
4347 Turn process_stratum_target's request_interrupt op into a method of
4348 process_target.
4349
4350 * target.h (struct process_stratum_target): Remove the target op.
4351 (class process_target): Add the target op.
4352
4353 Update the derived classes and callers below.
4354
4355 * remote-utils.cc (putpkt_binary_1): Update.
4356 (input_interrupt): Update.
4357 (getpkt): Update.
4358 * server.cc (handle_v_requests): Update.
4359 * linux-low.cc (linux_target_ops): Update.
4360 (linux_request_interrupt): Turn into ...
4361 (linux_process_target::request_interrupt): ... this.
4362 * linux-low.h (class linux_process_target): Update.
4363 * lynx-low.cc (lynx_target_ops): Update.
4364 (lynx_request_interrupt): Turn into ...
4365 (lynx_process_target::request_interrupt): ... this.
4366 * lynx-low.h (class lynx_process_target): Update.
4367 * nto-low.cc (nto_target_ops): Update.
4368 (nto_request_interrupt): Turn into ...
4369 (nto_process_target::request_interrupt): ... this.
4370 * nto-low.h (class nto_process_target): Update.
4371 * win32-low.cc (win32_target_ops): Update.
4372 (win32_request_interrupt): Turn into ...
4373 (win32_process_target::request_interrupt): ... this.
4374 * win32-low.h (class win32_process_target): Update.
4375
2a31c7aa
TBA
43762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4377
4378 Turn process_stratum_target's look_up_symbols op into a method of
4379 process_target.
4380
4381 * target.h (struct process_stratum_target): Remove the target op.
4382 (class process_target): Add the target op.
4383 * target.cc (process_target::look_up_symbols): Define.
4384
4385 Update the derived classes and callers below.
4386
4387 * server.cc (handle_query): Update.
4388 * linux-low.cc (linux_target_ops): Update.
4389 (linux_look_up_symbols): Turn into ...
4390 (linux_process_target::look_up_symbols): ... this.
4391 * linux-low.h (class linux_process_target): Update.
4392 * lynx-low.cc (lynx_target_ops): Update.
4393 * nto-low.cc (nto_target_ops): Update.
4394 * win32-low.cc (win32_target_ops): Update.
4395
e2558df3
TBA
43962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4397
4398 Turn process_stratum_target's read_memory and write_memory
4399 ops into methods of process_target.
4400
4401 * target.h (struct process_stratum_target): Remove the target ops.
4402 (class process_target): Add the target ops.
4403
4404 Update the derived classes and callers below.
4405
4406 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4407 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4408 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4409 (arm_get_syscall_trapinfo): Update.
4410 * linux-cris-low.cc (cris_breakpoint_at): Update.
4411 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4412 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4413 * linux-mips-low.cc (mips_breakpoint_at): Update.
4414 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4415 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4416 * linux-sh-low.cc (sh_breakpoint_at): Update.
4417 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4418 (sparc_store_gregset_from_stack): Update.
4419 (sparc_breakpoint_at): Update.
4420 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4421 * linux-tile-low.cc (tile_breakpoint_at): Update.
4422 * linux-x86-low.cc (x86_breakpoint_at): Update.
4423 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4424 * mem-brea.cc (insert_memory_breakpoint): Update.
4425 (validate_inserted_breakpoint): Update.
4426 * target.cc (read_inferior_memory): Update.
4427 (target_write_memory): Update.
4428 * linux-low.cc (linux_target_ops): Update.
4429 (linux_read_memory): Make a wrapper around the read_memory target
4430 op call.
4431 (linux_process_target::read_memory): Rename from linux_read_memory.
4432 (linux_write_memory): Turn into ...
4433 (linux_process_target::write_memory): ... this.
4434 * linux-low.h (class linux_process_target): Update.
4435 * lynx-low.cc (lynx_target_ops): Update.
4436 (lynx_read_memory): Turn into ...
4437 (lynx_process_target::read_memory): ... this.
4438 (lynx_write_memory): Turn into ...
4439 (lynx_process_target::write_memory): ... this.
4440 * lynx-low.h (class lynx_process_target): Update.
4441 * nto-low.cc (nto_target_ops): Update.
4442 (nto_read_memory): Turn into ...
4443 (nto_process_target::read_memory): ... this.
4444 (nto_write_memory): Turn into ...
4445 (nto_process_target::write_memory): ... this.
4446 * nto-low.h (class nto_process_target): Update.
4447 * win32-low.cc (win32_target_ops): Update.
4448 (win32_read_inferior_memory): Turn into ...
4449 (win32_process_target::read_memory): ... this.
4450 (win32_write_inferior_memory): Turn into ...
4451 (win32_process_target::write_memory): ... this.
4452 * win32-low.h (class win32_process_target): Update.
4453
79b44087
TBA
44542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4455
4456 Turn process_stratum_target's prepare_to_access_memory and
4457 done_accessing_memory ops into methods of process_target.
4458
4459 * target.h (struct process_stratum_target): Remove the target ops.
4460 (class process_target): Add the target ops.
4461 * target.cc (process_target::prepare_to_access_memory): Define.
4462 (process_target::done_accessing_memory): Define.
4463 (prepare_to_access_memory): Update.
4464 (done_accessing_memory): Update.
4465
4466 Update the derived classes and callers below.
4467
4468 * linux-low.cc (linux_target_ops): Update.
4469 (linux_prepare_to_access_memory): Turn into ...
4470 (linux_process_target::prepare_to_access_memory): ... this.
4471 (linux_done_accessing_memory): Turn into ...
4472 (linux_process_target::done_accessing_memory): ... this.
4473 * linux-low.h (class linux_process_target): Update.
4474 * lynx-low.cc (lynx_target_ops): Update.
4475 * nto-low.cc (nto_target_ops): Update.
4476 * win32-low.cc (win32_target_ops): Update.
4477
a5a4d4cd
TBA
44782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4479
4480 Turn process_stratum_target's fetch_registers and store_registers
4481 ops into methods of process_target.
4482
4483 * target.h (struct process_stratum_target): Remove the target ops.
4484 (class process_target): Add the target ops.
4485 (fetch_inferior_registers): Update the macro.
4486 (store_inferior_registers): Update the macro.
4487
4488 Update the derived classes and callers below.
4489
4490 * linux-low.cc (linux_target_ops): Update.
4491 (linux_fetch_registers): Turn into ...
4492 (linux_process_target::fetch_registers): ... this.
4493 (linux_store_registers): Turn into ...
4494 (linux_process_target::store_registers): ... this.
4495 * linux-low.h (class linux_process_target): Update.
4496 * lynx-low.cc (lynx_target_ops): Update.
4497 (lynx_fetch_registers): Turn into ...
4498 (lynx_process_target::fetch_registers): ... this.
4499 (lynx_store_registers): Turn into ...
4500 (lynx_process_target::store_registers): ... this.
4501 * lynx-low.h (class lynx_process_target): Update.
4502 * nto-low.cc (nto_target_ops): Update.
4503 (nto_fetch_registers): Turn into ...
4504 (nto_process_target::fetch_registers): ... this.
4505 (nto_store_registers): Turn into ...
4506 (nto_process_target::store_registers): ... this.
4507 * nto-low.h (class nto_process_target): Update.
4508 * win32-low.cc (win32_target_ops): Update.
4509 (win32_fetch_inferior_registers): Turn into ...
4510 (win32_process_target::fetch_registers): ... this.
4511 (win32_store_inferior_registers): Turn into ...
4512 (win32_process_target::store_registers): ... this.
4513 * win32-low.h (class win32_process_target): Update.
4514
6532e7e3
TBA
45152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4516
4517 Turn process_stratum_target's wait op into a method of
4518 process_target.
4519
4520 * target.h (struct process_stratum_target): Remove the target op.
4521 (class process_target): Add the target op.
4522
4523 Update the derived classes and callers below.
4524
4525 * target.cc (target_wait): Update.
4526 * linux-low.cc (linux_target_ops): Update.
4527 (linux_wait): Turn into ...
4528 (linux_process_target::wait): ... this.
4529 * linux-low.h (class linux_process_target): Update.
4530 * lynx-low.cc (lynx_target_ops): Update.
4531 (lynx_wait): Turn into ...
4532 (lynx_process_target::wait): ... this.
4533 * lynx-low.h (class lynx_process_target): Update.
4534 * nto-low.cc (nto_target_ops): Update.
4535 (nto_wait): Turn into ...
4536 (nto_process_target::wait): ... this.
4537 * nto-low.h (class nto_process_target): Update.
4538 * win32-low.cc (win32_target_ops): Update.
4539 (win32_wait): Turn into ...
4540 (win32_process_target::wait): ... this.
4541 (do_initial_child_stuff): Update.
4542 * win32-low.h (class win32_process_target): Update.
4543
0e4d7e35
TBA
45442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4545
4546 Turn process_stratum_target's resume op into a method of
4547 process_target.
4548
4549 * target.h (struct process_stratum_target): Remove the target op.
4550 (class process_target): Add the target op.
4551
4552 Update the derived classes and callers below.
4553
4554 * server.cc (resume): Update.
4555 * target.cc (target_stop_and_wait): Update.
4556 (target_continue_no_signal): Update.
4557 (target_continue): Update.
4558 * linux-low.cc (linux_target_ops): Update.
4559 (linux_resume): Turn into ...
4560 (linux_process_target::resume): ... this.
4561 * linux-low.h (class linux_process_target): Update.
4562 * lynx-low.cc (lynx_target_ops): Update.
4563 (lynx_resume): Turn into ...
4564 (lynx_process_target::resume): ... this.
4565 * lynx-low.h (class lynx_process_target): Update.
4566 * nto-low.cc (nto_target_ops): Update.
4567 (nto_resume): Turn into ...
4568 (nto_process_target::resume): ... this.
4569 * nto-low.h (class nto_process_target): Update.
4570 * win32-low.cc (win32_target_ops): Update.
4571 (win32_resume): Turn into ...
4572 (win32_process_target::resume): ... this.
4573 (win32_process_target::detach): Update.
4574 (do_initial_child_stuff): Update.
4575 * win32-low.h (class win32_process_target): Update.
4576
13d3d99b
TBA
45772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4578
4579 Turn process_stratum_target's thread_alive op into a method of
4580 process_target.
4581
4582 * target.h (struct process_stratum_target): Remove the target op.
4583 (class process_target): Add the target op.
4584 (mythread_alive): Update the macro.
4585
4586 Update the derived classes and callers below.
4587
4588 * linux-low.cc (linux_target_ops): Update.
4589 (linux_thread_alive): Turn into ...
4590 (linux_process_target::thread_alive): ... this.
4591 (wait_for_sigstop): Update.
4592 * linux-low.h (class linux_process_target): Update.
4593 * lynx-low.cc (lynx_target_ops): Update.
4594 (lynx_thread_alive): Turn into ...
4595 (lynx_process_target::thread_alive): ... this.
4596 * lynx-low.h (class lynx_process_target): Update.
4597 * nto-low.cc (nto_target_ops): Update.
4598 (nto_thread_alive): Turn into ...
4599 (nto_process_target::thread_alive): ... this.
4600 * nto-low.h (class nto_process_target): Update.
4601 * win32-low.cc (win32_target_ops): Update.
4602 (win32_thread_alive): Turn into ...
4603 (win32_process_target::thread_alive): ... this.
4604 * win32-low.h (class win32_process_target): Update.
4605
95a49a39
TBA
46062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4607
4608 Turn process_stratum_target's join op into a method of
4609 process_target.
4610
4611 * target.h (struct process_stratum_target): Remove the target op.
4612 (class process_target): Add the target op.
4613 (join_inferior): Update the macro.
4614
4615 Update the derived classes and callers below.
4616
4617 * linux-low.cc (linux_target_ops): Update.
4618 (linux_join): Turn into ...
4619 (linux_process_target::join): ... this.
4620 * linux-low.h (class linux_process_target): Update.
4621 * lynx-low.cc (lynx_target_ops): Update.
4622 (lynx_join): Turn into ...
4623 (lynx_process_target::join): ... this.
4624 * lynx-low.h (class lynx_process_target): Update.
4625 * nto-low.cc (nto_target_ops): Update.
4626 (nto_process_target::join): Define.
4627 * nto-low.h (class nto_process_target): Update.
4628 * win32-low.cc (win32_target_ops): Update.
4629 (win32_join): Turn into ...
4630 (win32_process_target::join): ... this.
4631 * win32-low.h (class win32_process_target): Update.
4632
8adb37b9
TBA
46332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4634
4635 Turn process_stratum_target's mourn op into a method of
4636 process_target.
4637
4638 * target.h (struct process_stratum_target): Remove the target op.
4639 (class process_target): Add the target op.
4640
4641 Update the derived classes and callers below.
4642
4643 * target.cc (target_mourn_inferior): Update.
4644 * linux-low.cc (linux_target_ops): Update.
4645 (linux_mourn): Turn into ...
4646 (linux_process_target::mourn): ... this.
4647 (handle_extended_wait): Update.
4648 (linux_process_target::kill): Update.
4649 (linux_process_target::detach): Update.
4650 * linux-low.h (class linux_process_target): Update.
4651 * lynx-low.cc (lynx_target_ops): Update.
4652 (lynx_mourn): Turn into ...
4653 (lynx_process_target::mourn): ... this.
4654 * lynx-low.h (class lynx_process_target): Update.
4655 * nto-low.cc (nto_target_ops): Update.
4656 (nto_mourn): Turn into ...
4657 (nto_process_target::mourn): ... this.
4658 * nto-low.h (class nto_process_target): Update.
4659 * win32-low.cc (win32_target_ops): Update.
4660 (win32_mourn): Turn into ...
4661 (win32_process_target::mourn): ... this.
4662 * win32-low.h (class win32_process_target): Update.
4663
9061c9cf
TBA
46642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4665
4666 Turn process_stratum_target's detach op into a method of
4667 process_target.
4668
4669 * target.h (struct process_stratum_target): Remove the target op.
4670 (class process_target): Add the target op.
4671 (detach_inferior): Update the macro.
4672
4673 Update the derived classes and callers below.
4674
4675 * linux-low.cc (linux_target_ops): Update.
4676 (linux_detach): Turn into ...
4677 (linux_process_target::detach): ... this.
4678 * linux-low.h (class linux_process_target): Update.
4679 * lynx-low.cc (lynx_target_ops): Update.
4680 (lynx_detach): Turn into ...
4681 (lynx_process_target::detach): ... this.
4682 * lynx-low.h (class lynx_process_target): Update.
4683 * nto-low.cc (nto_target_ops): Update.
4684 (nto_detach): Turn into ...
4685 (nto_process_target::detach): ... this.
4686 * nto-low.h (class nto_process_target): Update.
4687 * win32-low.cc (win32_target_ops): Update.
4688 (win32_detach): Turn into ...
4689 (win32_process_target::detach): ... this.
4690 * win32-low.h (class win32_process_target): Update.
4691
c6885a57
TBA
46922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4693
4694 Turn process_stratum_target's kill op into a method of
4695 process_target.
4696
4697 * target.h (struct process_stratum_target): Remove the target op.
4698 (class process_target): Add the target op.
4699
4700 Update the derived classes and callers below.
4701
4702 * target.cc (kill_inferior): Update.
4703 * linux-low.cc (linux_target_ops): Update.
4704 (linux_kill): Turn into ...
4705 (linux_process_target::kill): ... this.
4706 * linux-low.h (class linux_process_target): Update.
4707 * lynx-low.cc (lynx_target_ops): Update.
4708 (lynx_kill): Turn into ...
4709 (lynx_process_target::kill): ... this.
4710 * lynx-low.h (class lynx_process_target): Update.
4711 * nto-low.cc (nto_target_ops): Update.
4712 (nto_kill): Turn into ...
4713 (nto_process_target::kill): ... this.
4714 * nto-low.h (class nto_process_target): Update.
4715 * win32-low.cc (win32_target_ops): Update.
4716 (win32_kill): Turn into ...
4717 (win32_process_target::kill): ... this.
4718 * win32-low.h (class win32_process_target): Update.
4719
ef03dad8
TBA
47202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4721
4722 Turn process_stratum_target's attach op into a method of
4723 process_target.
4724
4725 * target.h (struct process_stratum_target): Remove the target op.
4726 (class process_target): Add the target op.
4727 (myattach): Update the macro.
4728
4729 Update the derived classes and callers below.
4730
4731 * linux-low.cc (linux_target_ops): Update.
4732 (linux_attach): Turn into ...
4733 (linux_process_target::attach): ... this.
4734 * linux-low.h (class linux_process_target): Update.
4735 * lynx-low.cc (lynx_target_ops): Update.
4736 (lynx_attach): Turn into ...
4737 (lynx_process_target::attach): ... this.
4738 * lynx-low.h (class lynx_process_target): Update.
4739 * nto-low.cc (nto_target_ops): Update.
4740 (nto_attach): Turn into ...
4741 (nto_process_target::attach): ... this.
4742 * nto-low.h (class nto_process_target): Update.
4743 * win32-low.cc (win32_target_ops): Update.
4744 (win32_attach): Turn into ...
4745 (win32_process_target::attach): ... this.
4746 * win32-low.h (class win32_process_target): Update.
4747
6dee9afb
TBA
47482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4749
4750 Turn process_stratum_target's post_create_inferior op into a method
4751 of process_target.
4752
4753 * target.h (struct process_stratum_target): Remove the target op.
4754 (class process_target): Add the target op.
4755 (target_post_create_inferior): Update the macro.
4756 * target.cc (process_target::post_create_inferior): Define.
4757
4758 Update the derived classes and callers below.
4759
4760 * linux-low.cc (linux_target_ops): Update.
4761 (linux_post_create_inferior): Turn into ...
4762 (linux_process_target::post_create_inferior): ... this.
4763 * linux-low.h (class linux_process_target): Update.
4764 * lynx-low.cc (lynx_target_ops): Update.
4765 * nto-low.cc (nto_target_ops): Update.
4766 * win32-low.cc (win32_target_ops): Update.
4767
15295543
TBA
47682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4769
4770 Turn process_stratum_target's create_inferior op into a method of
4771 process_target.
4772
4773 * target.h (struct process_stratum_target): Remove the target op.
4774 (class process_target): Add the target op.
4775 (create_inferior): Rename the macro to ...
4776 (target_create_inferior): ... this.
4777
4778 Update the derived classes and callers below.
4779
4780 * server.cc (handle_v_run): Update.
4781 (captured_main): Update.
4782 (process_serial_event): Update.
4783 * linux-low.cc (linux_target_ops): Update.
4784 (linux_create_inferior): Turn into ...
4785 (linux_process_target::create_inferior): ... this.
4786 * linux-low.h (class linux_process_target): Update.
4787 * lynx-low.cc (lynx_target_ops): Update.
4788 (lynx_create_inferior): Turn into ...
4789 (lynx_process_target::create_inferior): ... this.
4790 * lynx-low.h (class lynx_process_target): Update.
4791 * nto-low.cc (nto_target_ops): Update.
4792 (nto_create_inferior): Turn into ...
4793 (nto_process_target::create_inferior): ... this.
4794 * nto-low.h (class nto_process_target): Update.
4795 * win32-low.cc (win32_target_ops): Update.
4796 (win32_create_inferior): Turn into ...
4797 (win32_process_target::create_inferior): ... this.
4798 * win32-low.h (class win32_process_target): Update.
4799
5ef9273d
TBA
48002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4801
4802 * target.h (class process_target): New class definition.
4803 (struct process_stratum_target) <pt>: New field with type
4804 'process_target*'.
4805 * linux-low.h (class linux_process_target): Define as a derived
4806 class of 'process_target'.
4807 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4808 as the 'pt' field.
4809 * lynx-low.h (class lynx_process_target): Define as a derived
4810 class of 'process_target'.
4811 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4812 as the 'pt' field.
4813 * nto-low.h (class nto_process_target): Define as a derived
4814 class of 'process_target'.
4815 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4816 as the 'pt' field.
4817 * win32-low.h (class win32_process_target): Define as a derived
4818 class of 'process_target'.
4819 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4820 as the 'pt' field.
4821
9f1528a1
AB
48222020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4823
4824 * configure: Regenerate.
4825
bf84f706
MR
48262020-02-19 Maciej W. Rozycki <macro@wdc.com>
4827 Andrew Burgess <andrew.burgess@embecosm.com>
4828
4829 * linux-riscv-low.cc: New file.
4830 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4831 and nat/riscv-linux-tdesc.c.
4832 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4833 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4834 Define.
4835
1a627e7e
TT
48362020-02-14 Tom Tromey <tom@tromey.com>
4837
4838 * acinclude.m4: Don't include acx_configure_dir.m4.
4839 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4840 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4841 (all, install-only, uninstall, clean-info, clean)
4842 (maintainer-clean): Don't recurse.
4843 (subdir_do, all-lib): Remove.
4844 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4845 (GNULIB_H): Remove.
4846 (generated_files): Update.
4847 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4848 * configure: Rebuild.
4849 * configure.ac: Don't configure gnulib or libiberty.
4850 (GNULIB): Update.
4851
a9b34532
EZ
48522020-02-14 Eli Zaretskii <eliz@gnu.org>
4853
4854 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4855 preparing the command line for CreateProcess.
4856 (win32_create_inferior): Reflect the program name in debugging
4857 output that shows the process and its command line.
4858
feacfcac
SM
48592020-02-13 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * Makefile.in: Rename source files from .c to .cc.
4862 * %.c: Rename to %.cc.
4863 * configure.ac: Rename server.c to server.cc.
4864 * configure: Re-generate.
4865
06b3c5bd
SM
48662020-02-13 Simon Marchi <simon.marchi@efficios.com>
4867
4868 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4869
052793ad
HD
48702020-02-12 Hannes Domani <ssbssa@yahoo.de>
4871
4872 * win32-low.c (win32_create_inferior): Set signal_pid.
4873
f20e3e82
MR
48742020-02-12 Maciej W. Rozycki <macro@wdc.com>
4875 Pedro Alves <palves@redhat.com>
4876
4877 Skip building gdbserver in a cross-configuration.
4878 * configure.srv: Set $gdbserver_host depending on whether $target
4879 is $host. Use $gdbserver_host instead of $host.
4880
8ddd8e0e
SM
48812020-02-11 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * configure: Re-generate.
4884
898e7f60
SM
48852020-02-11 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * configure: Re-generate.
4888
58df732b
SM
48892020-02-11 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * acinclude.m4: Update warning.m4 path.
4892
7928d571
HD
48932020-02-09 Hannes Domani <ssbssa@yahoo.de>
4894
4895 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4896 (handle_exception): Set siginfo_er.
4897 (win32_xfer_siginfo): New function.
4898
919adfe8
TT
48992020-02-07 Tom Tromey <tom@tromey.com>
4900 Pedro Alves <palves@redhat.com>
4901
4902 * README: Update build documentation.
4903 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4904 host, not target.
4905 * configure.ac: Update paths.
4906 * configure: Rebuild.
4907 * acinclude.m4: Update paths.
4908 * Makefile.in: Update include paths.
4909 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4910 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4911 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4912 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4913 (%-generated.c): Update paths.
4914 * Move entire directory from ../gdb/gdbserver.
4915
287c844a
MR
49162020-01-29 Maciej W. Rozycki <macro@wdc.com>
4917
4918 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4919
548a204f
PFC
49202020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4921
4922 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4923 assignment instead of srv_linux_obj.
4924
a2236a08
HD
49252020-01-28 Hannes Domani <ssbssa@yahoo.de>
4926
4927 * server.c (handle_qxfer_libraries): Write segment-address with
4928 paddress.
4929
bdaed379
HD
49302020-01-24 Hannes Domani <ssbssa@yahoo.de>
4931
4932 * Makefile.in (install-strip): New target.
4933 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4934 * aclocal.m4: Regenerate.
4935 * configure: Regenerate.
4936 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4937
42cd72aa
MR
49382020-01-24 Maciej W. Rozycki <macro@wdc.com>
4939
4940 * Makefile.in (SFILES): Adjust paths to point to real files.
4941 (OBS): Move waitstatus.o to target/waitstatus.o.
4942 (TAGS): Transform paths appropriately.
4943 (%.o): Rename to...
4944 (nat/%.o): ... this pattern rule.
4945 (%.o): Rename to...
4946 (target/%.o): ... this pattern rule.
4947 * configure.srv: Adjust paths throughout to include nat/ prefix
4948 with the revant files.
4949 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4950 * configure: Regenerate.
4951
42ba50ec
MR
49522020-01-24 Maciej W. Rozycki <macro@wdc.com>
4953
4954 * Makefile.in (TAGS): Remove config files from the recipe.
4955
05ea2a05
TT
49562020-01-14 Tom Tromey <tom@tromey.com>
4957
4958 * configure: Rebuild.
4959 * configure.ac: Remove any checks that were added to common.m4.
4960 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4961 lib-link.m4.
4962
01027315
TT
49632020-01-14 Tom Tromey <tom@tromey.com>
4964
4965 * server.h: Include config.h.
4966 * gdbreplay.c: Include config.h.
4967 * configure: Rebuild.
4968 * configure.ac: Don't source common.host.
4969 * acinclude.m4: Update path.
4970 * Makefile.in (INCSUPPORT): New variable.
4971 (INCLUDE_CFLAGS): Add INCSUPPORT.
4972 (SFILES): Update paths.
4973 (version-generated.c): Update path to create-version.sh.
4974 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4975
b2ceabe8
TT
49762020-01-14 Tom Tromey <tom@tromey.com>
4977
4978 * configure.ac (LIBS): Use WIN32APILIBS.
4979 (USE_WIN32API): Don't define.
4980 * configure: Rebuild.
4981
25c51f71
TT
49822020-01-14 Tom Tromey <tom@tromey.com>
4983
4984 * configure: Rebuild.
4985
c0bd321d
SM
49862020-01-13 Simon Marchi <simon.marchi@efficios.com>
4987
4988 * Makefile.in (%-generated.c): Remove rule for files from
4989 regformats/i386.
4990
bb564c58
SM
49912020-01-13 Simon Marchi <simon.marchi@efficios.com>
4992
4993 * configure: Re-generate.
4994
6e37c371
SM
49952020-01-13 Simon Marchi <simon.marchi@efficios.com>
4996
4997 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4998 Define to static.
4999 * tracepoint.c (stop_tracing, flush_trace_buffer,
5000 about_to_request_buffer_space, get_trace_state_variable_value,
5001 set_trace_state_variable_value, gdb_collect): Add declaration.
5002
df4a0200
SM
50032020-01-13 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
5006 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
5007 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
5008 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
5009 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
5010 static.
5011
89e94ec9
SM
50122020-01-13 Simon Marchi <simon.marchi@efficios.com>
5013
5014 * inferiors.c: Include gdbsupport/common-inferior.h.
5015
2552728a
SM
50162020-01-13 Simon Marchi <simon.marchi@efficios.com>
5017
5018 * hostio-errno.c: Include hostio.h.
5019
4025fa09
SM
50202020-01-13 Simon Marchi <simon.marchi@efficios.com>
5021
5022 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
5023 prerequisite.
5024
c0b0a142
SM
50252020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5026
5027 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
5028 * linux-arm-tdesc.h: Include arch/arm.h.
5029
bb1183e2
SM
50302020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5031
5032 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
5033
f5df0b5f
SM
50342020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5035
5036 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
5037 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
5038
5b6d1e4f
PA
50392020-01-10 Pedro Alves <palves@redhat.com>
5040
5041 * fork-child.c (post_fork_inferior): Pass target down to
5042 startup_inferior.
5043 * inferiors.c (switch_to_thread): Add process_stratum_target
5044 parameter.
5045 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
5046 * nto-low.c (nto_target_ops): Now a process_stratum_target.
5047 * linux-low.c (linux_target_ops): Now a process_stratum_target.
5048 * remote-utils.c (prepare_resume_reply): Pass the target to
5049 switch_to_thread.
5050 * target.c (the_target): Now a process_stratum_target.
5051 (done_accessing_memory): Pass the target to switch_to_thread.
5052 (set_target_ops): Ajust to use process_stratum_target.
5053 * target.h (struct target_ops): Rename to ...
5054 (struct process_stratum_target): ... this.
5055 (the_target, set_target_ops): Adjust.
5056 (prepare_to_access_memory): Adjust comment.
5057 * win32-low.c (child_xfer_memory): Adjust to use
5058 process_stratum_target.
5059 (win32_target_ops): Now a process_stratum_target.
5060
559e7e50
EZ
50612020-01-06 Eli Zaretskii <eliz@gnu.org>
5062 Pedro Alves <palves@redhat.com>
5063
5064 * win32-low.c (get_child_debug_event): Extract the fatal exception
5065 from the exit status and convert to the equivalent Posix signal
5066 number.
5067 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5068 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5069
48189bec
HD
50702020-01-01 Hannes Domani <ssbssa@yahoo.de>
5071
5072 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5073
5dd8bf88
JB
50742020-01-01 Joel Brobecker <brobecker@adacore.com>
5075
5076 * server.c (gdbserver_version): Change copyright year to 2020.
5077 * gdbreplay.c (gdbreplay_version): Likewise.
5078
0ad6b8ee
CB
50792019-12-19 Christian Biesinger <cbiesinger@google.com>
5080
5081 * configure: Regenerate.
5082 * configure.ac: Quote variable arguments of test.
5083
1ee7b812
BE
50842019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5085
5086 * Makefile.in: Fix build with GNU Make 3.81
5087
d9fa87f4
TT
50882019-12-16 Tom Tromey <tromey@adacore.com>
5089
5090 * server.c (get_exec_file): Constify result.
5091
ab7d13f0
CB
50922019-12-10 Christian Biesinger <cbiesinger@google.com>
5093
5094 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5095 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5096 * config.in: Regenerate.
5097 * configure: Regenerate.
5098 * configure.ac: Don't check for strerror.
5099 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5100 Call safe_strerror instead of strerror.
5101 * server.h (strerror): Remove this now-unnecessary declaration.
5102 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5103 strerror.
5104 (gdb_agent_helper_thread): Likewise.
5105 * utils.c (perror_with_name): Likewise.
5106
4da8c3a8
TT
51072019-11-26 Tom Tromey <tom@tromey.com>
5108
5109 * configure, config.in: Rebuild.
5110
21987b9c
TT
51112019-11-26 Tom Tromey <tom@tromey.com>
5112
5113 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5114 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5115 gdb_sigmask.
5116 * configure, config.in: Rebuild.
5117
5e030278
TT
51182019-11-26 Tom Tromey <tom@tromey.com>
5119
5120 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5121 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5122 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5123 * acinclude.m4: Include ax_pthread.m4.
5124 * config.in, configure: Rebuild.
5125
6d91ce9a
CB
51262019-11-26 Christian Biesinger <cbiesinger@google.com>
5127
5128 * debug.c (debug_set_output): Call safe_strerror instead of
5129 strerror.
5130 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5131 (linux_kill_one_lwp): Likewise.
5132 (linux_detach_one_lwp): Likewise.
5133 (linux_wait_for_event_filtered): Likewise.
5134 (store_register): Likewise.
5135 * lynx-low.c (lynx_attach): Likewise.
5136 * mem-break.c (insert_memory_breakpoint): Likewise.
5137 (remove_memory_breakpoint): Likewise.
5138 (delete_fast_tracepoint_jump): Likewise.
5139 (set_fast_tracepoint_jump): Likewise.
5140 (uninsert_fast_tracepoint_jumps_at): Likewise.
5141 (reinsert_fast_tracepoint_jumps_at): Likewise.
5142 * nto-low.c (nto_xfer_memory): Likewise.
5143 (nto_resume): Likewise.
5144
6cdd651f
LM
51452019-11-20 Luis Machado <luis.machado@linaro.org>
5146
5147 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5148 instead of register count.
5149 * tdesc.c (tdesc_contains_feature): New function.
5150 * tdesc.h (tdesc_contains_feature): New prototype.
5151
cd850b40
CB
51522019-11-15 Christian Biesinger <cbiesinger@google.com>
5153
5154 * Makefile.in: Add safe-strerror.c.
5155 * configure: Regenerate.
5156 * configure.ac: Don't source common.host.
5157
5abebf3c
CB
51582019-11-15 Christian Biesinger <cbiesinger@google.com>
5159
5160 * config.in: Regenerate.
5161 * configure: Regenerate.
5162
e06f3d6e
AB
51632019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5164
5165 * ax.c (ax_printf): Handle size_t_arg.
5166
ca3a04f6
CB
51672019-11-06 Christian Biesinger <cbiesinger@google.com>
5168
5169 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5170 * mi/mi-main.c (output_cores): Likewise.
5171 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5172 (linux_xfer_osdata_modules): Likewise.
5173 * remote.c (register_remote_support_xml): Likewise.
5174 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5175 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5176
e48f6033
CB
51772019-11-01 Christian Biesinger <cbiesinger@google.com>
5178
5179 * configure: Regenerate.
5180 * configure.ac: Remove check for strerror_r.
5181
e7e97a2e
CB
51822019-10-31 Christian Biesinger <cbiesinger@google.com>
5183
5184 * config.in: Regenerate.
5185 * configure: Regenerate.
5186 * configure.ac: Also check for strerror_r.
5187
75cafaa6
CB
51882019-10-31 Christian Biesinger <cbiesinger@google.com>
5189
5190 * ax.h (debug_agent): Remove duplicate declaration.
5191
30baf67b
TV
51922019-10-26 Tom de Vries <tdevries@suse.de>
5193
5194 * linux-aarch64-low.c: Fix typos in comments.
5195 * linux-arm-low.c: Same.
5196 * linux-low.c: Same.
5197 * linux-ppc-low.c: Same.
5198 * proc-service.c: Same.
5199 * regcache.h: Same.
5200 * server.c: Same.
5201 * tracepoint.c: Same.
5202 * win32-low.c: Same.
5203
52c64cf7
TT
52042019-10-25 Tom Tromey <tromey@adacore.com>
5205
5206 * utils.c (xstrdup): Remove.
5207
c12d372d
TT
52082019-10-23 Tom Tromey <tom@tromey.com>
5209
5210 * configure, config.in: Rebuild.
5211
4d0b984b
TT
52122019-10-23 Tom Tromey <tom@tromey.com>
5213
5214 * configure: Rebuild.
5215 * acinclude.m4: Use m4_include, not sinclude.
5216
c5adaa19
TT
52172019-10-17 Tom Tromey <tromey@adacore.com>
5218
5219 * configure: Rebuild.
5220 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5221 in AC_CONFIG_FILES invocation.
5222 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5223 invocation.
5224
fec4e896
CB
52252019-10-16 Christian Biesinger <cbiesinger@google.com>
5226
5227 * server.c: Include xml-builtin.h.
5228 (get_xml_features): Don't declare xml_builtins here.
5229
00975ff6
AB
52302019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5231
5232 * Makefile.in: Remove references to vec-ipa.o.
5233
0dc32745
AB
52342019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5235
5236 * Makefile.in: Remove references to vec.c.
5237
3e6ec53a
CB
52382019-10-02 Christian Biesinger <cbiesinger@google.com>
5239
5240 * server.c (server_waiting): Change to bool.
5241 (extended_protocol): Likewise.
5242 (response_needed): Likewise.
5243 (exit_requested): Likewise.
5244 (run_once): Likewise.
5245 (report_no_resumed): Likewise.
5246 (non_stop): Likewise.
5247 (disable_packet_vCont): Likewise.
5248 (disable_packet_Tthread): Likewise.
5249 (disable_packet_qC): Likewise.
5250 (disable_packet_qfThreadInfo): Likewise.
5251 (handle_general_set): Update.
5252 (handle_detach): Update.
5253 (handle_monitor_command): Update.
5254 (handle_query): Update.
5255 (captured_main): Update.
5256 (process_serial_event): Update.
5257 * server.h (server_waiting): Change to bool.
5258 (disable_packet_vCont): Likewise.
5259 (disable_packet_Tthread): Likewise.
5260 (disable_packet_qC): Likewise.
5261 (disable_packet_qfThreadInfo): Likewise.
5262 (run_once): Likewise.
5263 (non_stop): Likewise.
5264 * target.c (target_stop_and_wait): Update.
5265
80fd2826
TT
52662019-10-02 Tom Tromey <tromey@adacore.com>
5267
5268 * Makefile.in (SFILES): Add common-inferior.c.
5269 (OBS): Add common-inferior.o.
5270 * server.c (startup_with_shell): Don't define.
5271
46f29a9a
AB
52722019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5273
5274 * linux-low.c (linux_low_read_btrace): Update for change to
5275 std::vector.
5276
f9d949fb
CB
52772019-09-20 Christian Biesinger <cbiesinger@google.com>
5278
5279 * debug.c (debug_threads): Remove comment in favor of the header.
5280 * debug.h (using_threads): Add declaration.
5281 (debug_threads): Add comment.
5282 * linux-aarch64-low.c: Include debug.h and remove declaration of
5283 debug_threads.
5284 * nto-low.c: Likewise.
5285 * remote-utils.c: Likewise.
5286 * thread-db.c: Likewise.
5287
abf516c6
UW
52882019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5289
5290 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5291 and powerpc-cell64l-ipa.o.
5292 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5293 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5294 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5295 (spu*-*-*): Remove.
5296
5297 * spu-low.c: Remove file.
5298
5299 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5300 (parse_spufs_run): Remove.
5301 (ppc_get_pc): Remove Cell/B.E. support.
5302 (ppc_set_pc): Likewise.
5303 (ppc_breakpoint_at): Likewise.
5304 (ppc_arch_setup): Likewise.
5305 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5306 tdesc_powerpc_cell32l.
5307 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5308 or init_registers_powerpc_cell32l.
5309 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5310 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5311 or init_registers_powerpc_cell32l.
5312 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5313 (init_registers_powerpc_cell32l): Remove prototype.
5314 (init_registers_powerpc_cell64l): Likewise.
5315
5316 * target.h (struct target_ops): Remove qxfer_spu member.
5317 * server.c (handle_qxfer_spu): Remove.
5318 (qxfer_packets): Remove entry for "spu".
5319 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5320 * linux-low.c (SPUFS_MAGIC): Remove.
5321 (spu_enumerate_spu_ids): Remove.
5322 (linux_qxfer_spu): Remove.
5323 (linux_target_ops): Remove qxfer_spu member.
5324 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5325 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5326 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5327
2d41fa11
SDJ
53282019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5329
5330 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5331 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5332 * config.in: Regenerate.
5333 * configure: Regenerate.
5334
d59b55f0
TT
53352019-08-15 Tom Tromey <tromey@adacore.com>
5336
5337 * target.c (target_write_memory): Use gdb::byte_vector.
5338
4196ab2a
TT
53392019-08-15 Tom Tromey <tromey@adacore.com>
5340
5341 * tracepoint.c (write_inferior_data_pointer)
5342 (write_inferior_integer, write_inferior_int8)
5343 (write_inferior_uinteger, m_tracepoint_action_download)
5344 (r_tracepoint_action_download, x_tracepoint_action_download)
5345 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5346 (download_agent_expr, download_tracepoint_1)
5347 (download_trace_state_variables, upload_fast_traceframes): Update.
5348 * server.c (gdb_write_memory): Update.
5349 * remote-utils.c (relocate_instruction): Update.
5350 * proc-service.c (ps_pdwrite): Update.
5351 * mem-break.c (remove_memory_breakpoint)
5352 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5353 (uninsert_fast_tracepoint_jumps_at)
5354 (reinsert_fast_tracepoint_jumps_at): Update.
5355 * linux-x86-low.c (append_insns)
5356 (i386_install_fast_tracepoint_jump_pad)
5357 (amd64_write_goto_address, i386_write_goto_address): Update.
5358 * linux-s390-low.c (append_insns, s390_write_goto_address):
5359 Update.
5360 * linux-ppc-low.c (ppc_relocate_instruction)
5361 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5362 (ppc_write_goto_address): Update.
5363 * linux-aarch64-low.c (append_insns): Update.
5364 * target.h (struct target_ops): Update.
5365 (write_inferior_memory): Don't declare.
5366 * target.c (target_write_memory): Rename from
5367 write_inferior_memory. Remove old target_write_memory.
5368
c6778d00
TT
53692019-08-15 Tom Tromey <tromey@adacore.com>
5370
5371 * target.c (write_inferior_memory): Use std::vector.
5372
404f2902
FCE
53732019-08-06 Frank Ch. Eigler <fche@redhat.com>
5374
5375 PR build/24886
5376 * configure.ac: Drop enable-libmcheck support.
5377 * configure, config.in: Rebuild.
5378 * acinclude.m4: Don't include it.
5379
4c5aa8e0
AH
53802019-07-19 Alan Hayward <alan.hayward@arm.com>
5381
5382 * configure.srv: Remove Arm xml files.
5383
7cc17433
AH
53842019-07-19 Alan Hayward <alan.hayward@arm.com>
5385
5386 * configure.srv: Add new files. Remove xml generated files.
5387 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5388 registers.
5389 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5390 * linux-aarch32-tdesc.c: New file.
5391 * linux-aarch32-tdesc.h: New file.
5392 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5393 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5394 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5395 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5396 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5397 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5398 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5399 (arm_read_description): Call arm_linux_read_description.
5400 (initialize_low_arch): Don't init registers.
5401 * linux-arm-tdesc.c: New file.
5402 * linux-arm-tdesc.h: New file.
5403
166a82be
AH
54042019-07-10 Alan Hayward <alan.hayward@arm.com>
5405
5406 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5407 Move counter inside for.
5408 (arm_read_description): Check ptrace earlier.
5409 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5410
268a13a5
TT
54112019-07-09 Tom Tromey <tom@tromey.com>
5412
5413 * configure: Rebuild.
5414 * configure.ac: Change common to gdbsupport.
5415 * acinclude.m4: Change common to gdbsupport.
5416 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5417 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5418 common to gdbsupport.
5419 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5420 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5421 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5422 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5423 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5424 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5425 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5426 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5427 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5428 common to gdbsupport.
5429
350fab54
AH
54302019-07-04 Alan Hayward <alan.hayward@arm.com>
5431
5432 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5433 defines.
5434 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5435
2b40fda7
AH
54362019-07-04 Alan Hayward <alan.hayward@arm.com>
5437
5438 * configure.srv: Remove legacy xml.
5439 * linux-aarch64-low.c (initialize_low_arch): Remove
5440 initialize_low_tdesc call.
5441 * linux-aarch64-tdesc-selftest.c: Remove file.
5442 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5443 * linux-x86-low.c (initialize_low_arch): Remove
5444 initialize_low_tdesc call.
5445 * linux-x86-tdesc-selftest.c: Remove file.
5446 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5447
7d10623d
TV
54482019-06-20 Tom de Vries <tdevries@suse.de>
5449
5450 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5451 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5452
8d6a48df
TV
54532019-06-19 Tom de Vries <tdevries@suse.de>
5454
5455 * debug.h (debug_write): Change return type to ssize_t.
5456 * debug.c (debug_write): Same.
5457
73cc7272
TT
54582019-06-14 Tom Tromey <tom@tromey.com>
5459
5460 * configure.ac: Use new path to gnulib.
5461 * configure: Rebuild.
5462 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5463 to gnulib.
5464
08f10e02
TT
54652019-06-11 Tom Tromey <tom@tromey.com>
5466
5467 * Makefile.in (SFILES): Add alloc.c.
5468 (OBS): Add alloc.o.
5469 (IPA_OBJS): Add alloc-ipa.o.
5470 (alloc-ipa.o): New target.
5471 (%.o: ../%.c): New pattern rule.
5472
422186a9
TT
54732019-06-10 Tom Tromey <tromey@adacore.com>
5474
5475 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5476 end warning with a newline.
5477 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5478 newline.
5479 * thread-db.c (attach_thread): Don't end warning with a newline.
5480 (thread_db_notice_clone): Likewise.
5481 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5482 newline.
5483 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5484 end warning with a newline.
5485
b02f78f9
PA
54862019-06-04 Pedro Alves <palves@redhat.com>
5487
5488 * server.c (captured_main): Use make_unique_xstrdup.
5489
88ed7edb
TT
54902019-06-02 Tom Tromey <tom@tromey.com>
5491
5492 * gdbreplay.c (fromhex): Remove.
5493 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5494
33a6bc35
TT
54952019-05-29 Tom Tromey <tromey@adacore.com>
5496
5497 * configure: Rebuild.
5498
e90a813d
KB
54992019-05-06 Kevin Buettner <kevinb@redhat.com>
5500
5501 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5502 sign extension code on 32-bit builds.
5503
353ea2d1
EZ
55042019-05-03 Eli Zaretskii <eliz@gnu.org>
5505
5506 * remote-utils.c:
5507 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5508
b494cdff
TT
55092019-04-19 Tom Tromey <tom@tromey.com>
5510
5511 * server.c (struct vstop_notif): Derive from notif_event.
5512 <base>: Remove.
5513 (queue_stop_reply): Update.
5514 (remove_all_on_match_ptid): Change type. Rewrite.
5515 (discard_queued_stop_replies): Rewrite.
5516 (in_queued_stop_replies_ptid): Change type.
5517 (in_queued_stop_replies): Rewrite.
5518 (notif_stop): Update.
5519 (queue_stop_reply_callback): Update.
5520 (captured_main): Don't call initialize_notif.
5521 (push_stop_notification): Update.
5522 * notif.c (notif_write_event, handle_notif_ack)
5523 (notif_event_enque, notif_push): Update.
5524 (notif_event_xfree, initialize_notif): Remove.
5525 * notif.h (struct notif_event): Include <list>, not
5526 "common/queue.h".
5527 (struct notif_server) <queue>: Now a std::list.
5528 (notif_event_p): Remove typedef.
5529 (initialize_notif): Don't declare.
5530 (struct notif_event): Add virtual destructor.
5531
a7e559cc
AH
55322019-04-17 Alan Hayward <alan.hayward@arm.com>
5533
5534 * ax.c (ax_vdebug): Call debug_printf.
5535 * debug.c (debug_write): New function.
5536 * debug.h (debug_write): New declaration.
5537 * linux-low.c (sigchld_handler): Call debug_write.
5538
aeb2e706
AH
55392019-04-17 Alan Hayward <alan.hayward@arm.com>
5540
5541 * debug.c (debug_set_output): New function.
5542 (debug_vprintf): Send output to debug_file.
5543 (debug_flush): Likewise.
5544 * debug.h (debug_set_output): New declaration.
5545 * server.c (handle_monitor_command): Add debug-file option.
5546 (captured_main): Likewise.
5547
c1bc0935
AH
55482019-04-17 Alan Hayward <alan.hayward@arm.com>
5549
5550 * debug.c (remote_debug): Add definition.
5551 * debug.h (remote_debug): Add declaration.
5552 * hostio.c (remote_debug): Remove declaration.
5553 * remote-utils.c (struct ui_file): Likewise.
5554 (remote_debug): Likewise.
5555 * remote-utils.h (remote_debug): Likewise,
5556 * server.c (remote_debug): Remove definition.
5557
3f52fdbc
KB
55582019-04-10 Kevin Buettner <kevinb@redhat.com>
5559
5560 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5561 when using a 64-bit gdbserver.
5562
b0319eaa
TT
55632019-04-09 Tom Tromey <tromey@adacore.com>
5564
5565 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5566
eedc3f4f
TT
55672019-04-08 Tom Tromey <tom@tromey.com>
5568
5569 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5570 throw.
5571 (linux_resume_one_lwp): Likewise.
5572
230d2906
TT
55732019-04-08 Tom Tromey <tom@tromey.com>
5574
5575 * gdbreplay.c: Update.
5576 * linux-low.c: Update.
5577 * server.c: Update.
5578
a70b8144
TT
55792019-04-08 Tom Tromey <tom@tromey.com>
5580
5581 * server.c: Use C++ exception handling.
5582 * linux-low.c: Use C++ exception handling.
5583 * gdbreplay.c: Use C++ exception handling.
5584
3d6e9d23
TT
55852019-04-08 Tom Tromey <tom@tromey.com>
5586
5587 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5588 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5589 (captured_main, main): Update.
5590 * gdbreplay.c (main): Update.
5591
0570503d
PFC
55922019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5593
5594 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5595 value in argument pointer, return 1 if the entry is found and 0
5596 otherwise. Move comment.
5597 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5598 * linux-low.h (linux_get_auxv): Declare.
5599 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5600
227a9e65
TT
56012019-04-05 Tom Tromey <tromey@adacore.com>
5602
5603 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5604 variables.
5605
69f4c9cc
AH
56062019-03-28 Alan Hayward <alan.hayward@arm.com>
5607
5608 * linux-low.c (AT_HWCAP2): Add define if not already included.
5609
974c89e0
AH
56102019-03-26 Alan Hayward <alan.hayward@arm.com>
5611
5612 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5613 (aarch64_arch_setup): Call linux_get_hwcap.
5614 * linux-arm-low.c (arm_get_hwcap): Remove function.
5615 (arm_read_description): Call linux_get_hwcap.
5616 * linux-low.c (linux_get_auxv): New function.
5617 (linux_get_hwcap): Likewise.
5618 (linux_get_hwcap2): Likewise.
5619 * linux-low.h (linux_get_hwcap): New declaration.
5620 (linux_get_hwcap2): Likewise.
5621 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5622 (ppc_arch_setup): Call linux_get_hwcap.
5623 * linux-s390-low.c (s390_get_hwcap): Remove function.
5624 (s390_arch_setup): Call linux_get_hwcap.
5625
1ef53e6b
AH
56262019-03-22 Alan Hayward <alan.hayward@arm.com>
5627 Jiong Wang <jiong.wang@arm.com>
5628
5629 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5630 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5631 to fail.
5632 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5633
ee4fbcfa
AH
56342019-03-22 Alan Hayward <alan.hayward@arm.com>
5635 Jiong Wang <jiong.wang@arm.com>
5636
5637 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5638 (aarch64_get_hwcap): New function.
5639 (aarch64_arch_setup): Read APIA hwcap.
5640
6dc0ebde
AH
56412019-03-22 Alan Hayward <alan.hayward@arm.com>
5642 Jiong Wang <jiong.wang@arm.com>
5643
5644 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5645 (initialize_low_tracepoint): Likewise.
5646 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5647 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5648 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5649 (aarch64_linux_read_description): Likewise.
5650 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5651
1163a4b7
JB
56522019-03-12 John Baldwin <jhb@FreeBSD.org>
5653
5654 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5655 i386_create_target_description for 'segments' parameter.
5656 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5657 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5658 * win32-i386-low.c (i386_arch_setup): Likewise.
5659
d3a70e03
TT
56602019-03-12 Tom Tromey <tromey@adacore.com>
5661
5662 * linux-low.c (iterate_over_lwps): Update.
5663
37991b4f
TT
56642019-03-06 Tom Tromey <tom@tromey.com>
5665
5666 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5667 (captured_main): Use SCOPE_EXIT.
5668
45950eb6
SDJ
56692019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5670
5671 * configure.srv: Use '$enable_unittest' instead of '$development'
5672 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5673 case.
5674
43ac54fc
TT
56752019-02-27 Tom Tromey <tromey@adacore.com>
5676
5677 * gdbreplay.c (logchar): Handle \r\n.
5678
df0da8a2
AH
56792019-02-07 Alan Hayward <alan.hayward@arm.com>
5680
5681 * linux-low.c (linux_attach): Add process before lwp.
5682 * server.c (attach_inferior): Check if already attached.
5683
1a5c2598
TT
56842019-02-07 Tom Tromey <tom@tromey.com>
5685
5686 * x86-tdesc.h: Rename include guard.
5687 * x86-low.h: Add include guard.
5688 * wincecompat.h: Rename include guard.
5689 * win32-low.h: Add include guard.
5690 * utils.h: Rename include guard.
5691 * tracepoint.h: Rename include guard.
5692 * tdesc.h: Rename include guard.
5693 * target.h: Rename include guard.
5694 * server.h: Rename include guard.
5695 * remote-utils.h: Rename include guard.
5696 * regcache.h: Rename include guard.
5697 * nto-low.h: Rename include guard.
5698 * notif.h: Add include guard.
5699 * mem-break.h: Rename include guard.
5700 * lynx-low.h: Add include guard.
5701 * linux-x86-tdesc.h: Add include guard.
5702 * linux-s390-tdesc.h: Add include guard.
5703 * linux-ppc-tdesc-init.h: Add include guard.
5704 * linux-low.h: Add include guard.
5705 * linux-aarch64-tdesc.h: Add include guard.
5706 * linux-aarch32-low.h: Add include guard.
5707 * inferiors.h: Rename include guard.
5708 * i387-fp.h: Rename include guard.
5709 * hostio.h: Rename include guard.
5710 * gdbthread.h: Rename include guard.
5711 * gdb_proc_service.h: Rename include guard.
5712 * event-loop.h: Rename include guard.
5713 * dll.h: Rename include guard.
5714 * debug.h: Rename include guard.
5715 * ax.h: Rename include guard.
5716
956cc47c
SN
57172018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5718
5719 PR gdb/23985
5720 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5721 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5722
a0707f3c
TT
57232019-01-25 Tom Tromey <tom@tromey.com>
5724
5725 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5726
0747795c
TT
57272019-01-25 Tom Tromey <tom@tromey.com>
5728
5729 * win32-low.c: Fix common/ includes.
5730 * win32-i386-low.c: Fix common/ includes.
5731 * tracepoint.c: Fix common/ includes.
5732 * thread-db.c: Fix common/ includes.
5733 * target.h: Fix common/ includes.
5734 * symbol.c: Fix common/ includes.
5735 * spu-low.c: Fix common/ includes.
5736 * server.h: Fix common/ includes.
5737 * server.c: Fix common/ includes.
5738 * remote-utils.c: Fix common/ includes.
5739 * regcache.h: Fix common/ includes.
5740 * regcache.c: Fix common/ includes.
5741 * nto-x86-low.c: Fix common/ includes.
5742 * notif.h: Fix common/ includes.
5743 * mem-break.h: Fix common/ includes.
5744 * lynx-low.c: Fix common/ includes.
5745 * lynx-i386-low.c: Fix common/ includes.
5746 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5747 * linux-x86-low.c: Fix common/ includes.
5748 * linux-low.c: Fix common/ includes.
5749 * inferiors.h: Fix common/ includes.
5750 * i387-fp.c: Fix common/ includes.
5751 * hostio.c: Fix common/ includes.
5752 * hostio-errno.c: Fix common/ includes.
5753 * gdbthread.h: Fix common/ includes.
5754 * gdbreplay.c: Fix common/ includes.
5755 * fork-child.c: Fix common/ includes.
5756 * event-loop.c: Fix common/ includes.
483ab96a 5757 * ax.c (enum gdb_agent_op): Fix common/ includes.
0747795c 5758
be6d4f74
TT
57592019-01-21 Tom Tromey <tom@tromey.com>
5760
5761 * tracepoint.c: Fix includes.
5762 * remote-utils.c: Fix includes.
5763 * linux-x86-low.c: Fix includes.
5764
66d91b39
JB
57652019-01-01 Joel Brobecker <brobecker@adacore.com>
5766
5767 * gdbreplay.c (gdbreplay_version): Update copyright year in
5768 version message.
5769 * server.c (gdbserver_version): Likewise.
5770
754e3168
AH
57712018-12-05 Alan Hayward <alan.hayward@arm.com>
5772
5773 * linux-low.c (add_lwp): Switch ordering.
5774
d105de22
TT
57752018-11-29 Tom Tromey <tom@tromey.com>
5776
5777 * win32-low.c (win32_join): Take pid, not process.
5778 * target.h (struct target_ops) <join>: Change argument type.
5779 (join_inferior): Change argument name.
5780 * spu-low.c (spu_join): Take pid, not process.
5781 * server.c (handle_detach): Preserve pid before destroying
5782 process.
5783 * lynx-low.c (lynx_join): Take pid, not process.
5784 * linux-low.c (linux_join): Take pid, not process.
5785
50138245
AH
57862018-11-23 Alan Hayward <alan.hayward@arm.com>
5787
5788 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5789 (aarch64_cannot_fetch_register): Likewise.
5790 (struct linux_target_ops): Update references.
5791
64f57f3d
PFC
57922018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5793
5794 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5795
8d619c01
EBM
57962018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5797
5798 * configure.srv (ipa_ppc_linux_regobj): Add
5799 powerpc-isa207-htm-vsx32l-ipa.o and
5800 powerpc-isa207-htm-vsx64l-ipa.o.
5801 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5802 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5803 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5804 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5805 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5806 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5807 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5808 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5809 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5810 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5811 (init_registers_powerpc_isa207_htm_vsx32l)
5812 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5813 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5814 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5815 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5816 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5817 (ppc_store_tm_ctarregset): New functions.
5818 (ppc_regsets): Add entries for HTM regsets.
5819 (ppc_arch_setup): Set htm in features struct when needed. Set
5820 sizes for the HTM regsets.
5821 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5822 (initialize_low_arch): Call
5823 init_registers_powerpc_isa207_htm_vsx32l and
5824 init_registers_powerpc_isa207_htm_vsx64l.
5825 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5826 PPC_TDESC_ISA207_HTM_VSX.
5827 (initialize_low_tracepoint): Call
5828 init_registers_powerpc_isa207_htm_vsx32l and
5829 init_registers_powerpc_isa207_htm_vsx64l.
5830
232bfb86
EBM
58312018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5832
5833 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5834 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5835 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5836 (ppc_store_pmuregset): New functions.
5837 (ppc_regsets): Add entries for ebb and pmu regsets.
5838 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5839 pmu regsets are available. Set sizes for these regsets.
5840
f2cf6173
EBM
58412018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5842
5843 * configure.srv (ipa_ppc_linux_regobj): Add
5844 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5845 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5846 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5847 rs6000/powerpc-isa207-vsx32l.xml, and
5848 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5849 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5850 <PPC_TDESC_ISA207_VSX>: New enum value.
5851 (init_registers_powerpc_isa207_vsx32l): Declare.
5852 (init_registers_powerpc_isa207_vsx64l): Declare.
5853 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5854 (ppc_store_tarregset): New function.
5855 (ppc_regsets): Add entry for the TAR regset.
5856 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5857 size for the TAR regsets.
5858 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5859 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5860 and init_registers_powerpc_isa207_vsx64l.
5861 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5862 (initialize_low_tracepoint): Call
5863 init_registers_powerpc_isa207_vsx32l and
5864 init_registers_powerpc_isa207_vsx64l.
5865
7ca18ed6
EBM
58662018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5867 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5868
5869 * configure.srv (ipa_ppc_linux_regobj): Add
5870 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5871 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5872 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5873 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5874 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5875 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5876 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5877 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5878 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5879 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5880 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5881 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5882 (ppc_hwcap): Add comment.
5883 (ppc_hwcap2): New global.
5884 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5885 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5886 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5887 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5888 when needed. Set sizes for the the DSCR and PPR regsets.
5889 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5890 (initialize_low_arch): Call
5891 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5892 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5893 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5894 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5895 (initialize_low_tracepoint): Call
5896 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5897 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5898
5c849b22
PFC
58992018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5900
5901 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5902
8ecfd7bd
SDJ
59032018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5904 Simon Marchi <simark@simark.ca>
5905
5906 * acinclude.m4: Include "../selftest.m4".
5907 * configure: Regenerate.
5908 * configure.ac: Use "GDB_AC_SELFTEST".
5909 * configure.srv: Use "$enable_unittests" instead of
5910 "$development" when checking whether unit tests have been
5911 enabled.
5912 * server.c (captured_main): Update message informing that
5913 selftests have been disabled.
5914
96643e35
TT
59152018-10-04 Tom Tromey <tom@tromey.com>
5916
5917 * configure: Rebuild.
5918
da4ae14a
TT
59192018-10-04 Tom Tromey <tom@tromey.com>
5920
5921 * server.c (handle_status): Rename inner "thread".
5922 (process_serial_event): Declare "res" in 'm' case.
5923 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5924 (iterate_over_lwps): Rename inner "thread".
5925 (linux_qxfer_libraries_svr4): Rename inner "len".
5926 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5927
7c619dbd
GB
59282018-10-01 Gary Benson <gbenson@redhat.com>
5929
5930 * gdb_proc_service.h: Moved common code to
5931 common/gdb_proc_service.h.
5932
3795e814
GB
59332018-10-01 Gary Benson <gbenson@redhat.com>
5934
5935 * gdb_proc_service.h: Synchronize comments and whitespace with
5936 GDB's version of this file.
5937
49b036f1
TT
59382018-09-25 Tom Tromey <tom@tromey.com>
5939
5940 * configure: Rebuild.
5941 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5942
8ff03f0b
SM
59432018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5944
5945 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5946 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5947 ($(IPA_LIB)): Sort IPA_OBJS.
5948
a1cd91dc
SM
59492018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5950
5951 * Makefile.in: Remove references to $(ADD_DEPS).
5952
752312ba
TT
59532018-09-16 Tom Tromey <tom@tromey.com>
5954
5955 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5956 variables.
5957 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5958 variables.
5959
f1628857
TT
59602018-09-05 Tom Tromey <tom@tromey.com>
5961
5962 * configure: Rebuild.
5963
ad202fcc
SM
59642018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5965
5966 PR build/23399
5967 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5968
d3d8724a
TT
59692018-08-27 Tom Tromey <tom@tromey.com>
5970
5971 PR build/23087:
5972 * configure: Rebuild.
5973
b4f183d2
TT
59742018-08-27 Tom Tromey <tom@tromey.com>
5975
5976 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5977 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5978 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5979 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5980 (s390x_emit_stack_adjust): Add casts to unsigned char.
5981
4e2aa472
SM
59822018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5983
5984 PR gdb/23374
5985 PR gdb/23375
5986 * server.h (struct client_state) <disable_randomization>:
5987 Initialize to 1.
5988
cf4088a9
SM
59892018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5990
5991 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5992 variable.
5993 (mips_supply_ptrace_register): Likewise.
5994
a0de763e
TT
59952018-07-22 Tom Tromey <tom@tromey.com>
5996
5997 * configure: Rebuild.
5998
b0a7723d
TT
59992018-07-22 Tom Tromey <tom@tromey.com>
6000
6001 * win32-low.c (win32_create_inferior): Remove unused variables.
6002 * gdbreplay.c (remote_open): Remove unused variable.
6003 * remote-utils.c (remote_prepare): Remove unused variable.
6004 * x86-tdesc.h (X86_TDESC_H): Define.
6005 (amd64_expedite_regs): Define conditionally.
6006 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
6007 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
6008 * remote-utils.c (readchar): Remove unused variable.
6009
a780ef4f
PA
60102018-07-13 Pedro Alves <palves@redhat.com>
6011
6012 * linux-low.c (linux_kill): Change parameter to process_info
6013 pointer instead of pid. Adjust.
6014 * lynx-low.c (lynx_kill): Likewise.
6015 * nto-low.c (nto_kill): Likewise.
6016 * spu-low.c (spu_kill): Likewise.
6017 * win32-low.c (win32_kill): Likewise.
6018 * server.c (handle_v_kill, kill_inferior_callback)
6019 (detach_or_kill_for_exit): Adjust.
6020 * target.c (kill_inferior): Change parameter to process_info
6021 pointer instead of pid. Adjust.
6022 * target.h (struct target_ops) <kill>: Change parameter to
6023 process_info pointer instead of pid. Adjust all implementations
6024 and callers.
6025 (kill_inferior): Likewise.
6026
ef2ddb33
PA
60272018-07-13 Pedro Alves <palves@redhat.com>
6028
6029 * linux-low.c (linux_detach, linux_join): Change parameter to
6030 process_info pointer instead of pid. Adjust.
6031 * lynx-low.c (lynx_detach, lynx_join): Likewise.
6032 * nto-low.c (nto_detach): Likewise.
6033 * spu-low.c (spu_detach, spu_join): Likewise.
6034 * win32-low.c (win32_detach, win32_join): Likewise.
6035 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
6036 * target.h (struct target_ops) <detach, join>: Change parameter to
6037 process_info pointer instead of pid. Adjust all implementations
6038 and callers.
6039 (detach_inferior, join_inferior): Rename 'pid' parameter to
6040 'proc'.
6041
c7ab0aef
SDJ
60422018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6043 Jan Kratochvil <jan.kratochvil@redhat.com>
6044 Paul Fertser <fercerpav@gmail.com>
6045 Tsutomu Seki <sekiriki@gmail.com>
6046
6047 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
6048 (OBS): Add 'common/netstuff.o'.
6049 (GDBREPLAY_OBS): Likewise.
6050 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
6051 (remote_open): Implement support for IPv6
6052 connections.
6053 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
6054 and 'wspiapi.h'.
6055 (handle_accept_event): Accept connections from IPv6 sources.
6056 (remote_prepare): Handle IPv6-style hostnames; implement
6057 support for IPv6 connections.
6058 (remote_open): Implement support for printing connections from
6059 IPv6 sources.
6060
31445d10
PA
60612018-07-11 Pedro Alves <palves@redhat.com>
6062
6063 PR gdb/23377
6064 * mem-break.c (any_persistent_commands): Add process_info
6065 parameter and use it instead of relying on the current process.
6066 Change return type to bool.
6067 * mem-break.h (any_persistent_commands): Add process_info
6068 parameter and change return type to bool.
6069 * server.c (handle_detach): Remove require_running_or_return call.
6070 Look up the process_info for the process we're about to detach.
6071 If not found, return back error to GDB. Adjust
6072 any_persistent_commands call to pass down a process pointer.
6073
cb197132
PA
60742018-07-11 Pedro Alves <palves@redhat.com>
6075
6076 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6077 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6078 instead of collect_register_by_name.
6079 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6080 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6081
1b919490
VB
60822018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6083 Pedro Alves <palves@redhat.com>
6084
6085 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6086
d7e15655
TT
60872018-07-03 Tom Tromey <tom@tromey.com>
6088
6089 * linux-low.c: Update.
6090 * lynx-low.c: Update.
6091 * mem-break.c: Update.
6092 * nto-low.c: Update.
6093 * remote-utils.c: Update.
6094 * server.c: Update.
6095 * spu-low.c: Update.
6096 * target.c: Update.
6097 * win32-low.c: Update.
6098
26a57c92
TT
60992018-07-03 Tom Tromey <tom@tromey.com>
6100
6101 * server.c: Update.
6102
0e998d96
TT
61032018-07-03 Tom Tromey <tom@tromey.com>
6104
6105 * linux-low.c: Update.
6106
cc6bcb54
TT
61072018-07-03 Tom Tromey <tom@tromey.com>
6108
6109 * target.c: Update.
6110
e38504b3
TT
61112018-07-03 Tom Tromey <tom@tromey.com>
6112
6113 * linux-low.c: Update.
6114 * linux-mips-low.c: Update.
6115 * lynx-low.c: Update.
6116 * nto-low.c: Update.
6117 * remote-utils.c: Update.
6118 * server.c: Update.
6119 * spu-low.c: Update.
6120 * target.c: Update.
6121 * thread-db.c: Update.
6122
e99b03dc
TT
61232018-07-03 Tom Tromey <tom@tromey.com>
6124
6125 * linux-low.c: Update.
6126 * linux-mips-low.c: Update.
6127 * lynx-low.c: Update.
6128 * mem-break.c: Update.
6129 * nto-low.c: Update.
6130 * remote-utils.c: Update.
6131 * server.c: Update.
6132 * spu-low.c: Update.
6133 * target.c: Update.
6134 * tracepoint.c: Update.
6135
f2907e49
TT
61362018-07-03 Tom Tromey <tom@tromey.com>
6137
6138 * linux-low.c: Update.
6139 * linux-ppc-low.c: Update.
6140 * linux-x86-low.c: Update.
6141 * proc-service.c: Update.
6142 * server.c: Update.
6143 * spu-low.c: Update.
6144 * thread-db.c: Update.
6145 * win32-low.c: Update.
6146
fd79271b
TT
61472018-07-03 Tom Tromey <tom@tromey.com>
6148
6149 * linux-low.c: Update.
6150 * lynx-low.c: Update.
6151 * nto-low.c: Update.
6152 * remote-utils.c: Update.
6153 * spu-low.c: Update.
6154 * thread-db.c: Update.
6155 * win32-low.c: Update.
6156
c0867626
SDJ
61572018-06-29 Joel Brobecker <brobecker@adacore.com>
6158
6159 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6160 parameter in call to 'amd64_create_target_description'.
6161
2512d7ef
JK
61622018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6163
6164 * x86-tdesc.h: Remove executable permission flag.
6165
d0ac1c44
SM
61662018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6167
6168 * configure.ac: Remove AC_PREREQ, add missing quoting.
6169 * configure: Re-generate.
6170 * config.in: Re-generate.
6171 * aclocal.m4: Re-generate.
6172
c4eb05ff
SM
61732018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6174
6175 * tracepoint.h (current_traceframe): Remove declaration.
6176
02895270
AH
61772018-06-18 Alan Hayward <alan.hayward@arm.com>
6178
6179 * linux-aarch64-low.c (is_sve_tdesc): New function.
6180 (aarch64_sve_regs_copy_to_regcache): Likewise.
6181 (aarch64_sve_regs_copy_from_regcache): Likewise.
6182 (aarch64_regs_info): Add SVE checks.
6183 (initialize_low_arch): Initialize SVE.
6184
e9902bfc
AH
61852018-06-18 Alan Hayward <alan.hayward@arm.com>
6186
6187 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6188
fefa175e
AH
61892018-06-11 Alan Hayward <alan.hayward@arm.com>
6190
6191 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6192 (initialize_low_tracepoint): Likewise
6193 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6194 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6195 param.
6196 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6197 checks.
6198 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6199
b91ad3ff
AH
62002018-06-11 Alan Hayward <alan.hayward@arm.com>
6201
6202 * server.h (PBUFSIZ): Increase size
6203
f868386e
AH
62042018-06-11 Alan Hayward <alan.hayward@arm.com>
6205
6206 * regcache.c (regcache::raw_compare): New function.
6207 * regcache.h (regcache::raw_compare): New declaration.
6208
9c861883
AH
62092018-06-11 Alan Hayward <alan.hayward@arm.com>
6210
6211 * regcache.c (new_register_cache): Use new.
6212 (free_register_cache): Use delete.
6213 (register_data): Use const.
6214 (supply_register): Move body inside regcache.
6215 (regcache::raw_supply): New override function.
6216 (collect_register): Move body inside regcache.
6217 (regcache::raw_collect): New override function.
6218 (regcache::get_register_status): New override function.
6219 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6220
40591844
TT
62212018-06-09 Tom Tromey <tom@tromey.com>
6222
6223 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6224 declare queue.
6225 (event_queue): Use std::queue.
6226 (gdb_event_xfree): Remove.
6227 (initialize_event_loop, process_event, wait_for_event): Update.
6228
6341380d
SC
62292018-06-08 Stan Cox <scox@redhat.com>
6230
6231 * win32-low.c (win32_create_inferior): last_ptid and last_status
6232 moved to client_state.
6233
03349c93
PA
62342018-06-08 Pedro Alves <palves@redhat.com>
6235
6236 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6237 common/common-exceptions.o, common/common-utils.o,
6238 common/errors.o, common/print-utils.o and utils.o.
6239 * gdbreplay.c: Include "common-defs.h" instead of the two
6240 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6241 string.h or alloca.h.
6242 (perror_with_name): Delete.
6243 (remote_open): Use xstrdup instead of strdup.
6244 (main): Rename to ...
6245 (captured_main): ... this.
6246 (main): New.
6247
8dcc53b3
TT
62482018-06-08 Tom Tromey <tom@tromey.com>
6249
6250 * linux-low.c (linux_low_read_btrace): Update.
6251
c12a5089
SC
62522018-06-04 Stan Cox <scox@redhat.com>
6253
6254 * server.h (struct client_state): New.
6255 * server.c (cont_thread, general_thread, multi_process)
6256 (report_fork_events, report_vfork_events, report_exec_events)
6257 (report_thread_events, swbreak_feature, hwbreak_feature)
6258 (vCont_supported, disable_randomization, pass_signals)
6259 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6260 Moved to client_state.
6261 * remote-utils.c (remote_debug, noack_mode)
6262 (transport_is_reliable): Moved to client_state.
6263 * tracepoint.c (current_traceframe): Moved to client_state.
6264
6265 Update all callers.
6266 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6267 linux-low.c, remote-utils.h, target.c: Use client_state.
6268
122394f1
AH
62692018-05-31 Alan Hayward <alan.hayward@arm.com>
6270
6271 * configure.srv: Add new c/h file.
6272
95228a0d
AH
62732018-05-31 Alan Hayward <alan.hayward@arm.com>
6274
6275 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6276 null VQ.
6277
d8dab6c3
MR
62782018-05-25 Maciej W. Rozycki <macro@mips.com>
6279
6280 * gdb.arch/mips-fpregset-core.exp: New test.
6281 * gdb.arch/mips-fpregset-core.c: New test source.
6282
81e25b7c
EK
62832018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6284
6285 PR server/23198
6286 * hostio.c (require_int): Do not report overflow for integers
6287 between 0xfffffff and 0x7fffffff.
6288
7e947ad3
MR
62892018-05-22 Maciej W. Rozycki <macro@mips.com>
6290
6291 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6292 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6293 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6294 functions.
6295 (the_low_target): Wire them.
6296
1d75a658
PFC
62972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6298
6299 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6300 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6301 mode. Call collect_register_by_name with vscr using
6302 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6303 (ppc_store_vrregset): Add and set vscr_offset variable as in
6304 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6305 vscr_offset.
6306
d078308a
PFC
63072018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6308
6309 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6310 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6311 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6312
7273b5fc
PFC
63132018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6314
6315 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6316 (ppc_store_vsxregset): Likewise.
6317 (ppc_fill_vrregset): Likewise.
6318 (ppc_store_vrregset): Likewise.
6319 (ppc_fill_evrregset): Likewise.
6320 (ppc_store_evrregset): Likewise.
6321 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6322 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6323 needed.
6324
2e077f5e
PFC
63252018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6326
6327 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6328 wordsize of the inferior. Call ppc_linux_target_wordsize.
6329
bd64614e
PFC
63302018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6331
6332 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6333 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6334 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6335 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6336 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6337 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6338 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6339 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6340 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6341 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6342 (tdesc_powerpc_e500l): Remove.
6343 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6344 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6345 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6346 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6347 linux-ppc-tdesc.h.
6348 (ppc_arch_setup): Remove target description matching code. Fill a
6349 ppc_linux_features struct and call ppc_linux_match_description
6350 with it.
6351
75d74cca
MR
63522018-05-22 Maciej W. Rozycki <macro@mips.com>
6353
6354 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6355 width of the requested register exceeds the width of the
6356 `ptrace' data type.
6357 (mips_cannot_store_register): Likewise.
6358
e4439e43
MR
63592018-05-21 Maciej W. Rozycki <macro@mips.com>
6360
6361 * linux-mips-low.c (mips_fetch_register): New function. Update
6362 preceding comment.
6363 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6364 (the_low_target): Wire `mips_fetch_register'.
6365
55271bf9
JB
63662018-05-10 Joel Brobecker <brobecker@adacore.com>
6367
6368 * lynx-i386-low.c (LYNXOS_178): New macro.
6369 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6370 the layout on LynxOS-178.
6371 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6372 handle floating point registers that are not supported by
6373 LynxOS-178.
6374
1a34f210
TT
63752018-05-10 Tom Tromey <tom@tromey.com>
6376
6377 * configure: Rebuild.
6378
190852c8
JB
63792018-05-10 Joel Brobecker <brobecker@adacore.com>
6380
6381 PR server/23158:
6382 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6383 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6384 Use it to set the expedite_regs field in the given tdesc.
6385 * x86-tdesc.h: New file.
6386 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6387 Adjust following the addition of the new expedite_regs parameter
6388 to init_target_desc.
6389 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6390 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6391 (i386_linux_read_description, amd64_linux_read_description):
6392 Adjust following the addition of the new expedite_regs parameter
6393 to init_target_desc.
6394 * lynx-i386-low.c: #include "x86-tdesc.h".
6395 (lynx_i386_arch_setup): Adjust following the addition of the new
6396 expedite_regs parameter to init_target_desc.
6397 * nto-x86-low.c: #include "x86-tdesc.h".
6398 (nto_x86_arch_setup): Adjust following the addition of the new
6399 expedite_regs parameter to init_target_desc.
6400 * win32-i386-low.c: #include "x86-tdesc.h".
6401 (i386_arch_setup): Adjust following the addition of the new
6402 expedite_regs parameter to init_target_desc.
6403
7dbac825
JB
64042018-05-10 Joel Brobecker <brobecker@adacore.com>
6405
6406 PR server/23158:
6407 * win32-low.c (win32_create_inferior): Add call to my_wait
6408 setting last_status global.
6409
906994d9
JB
64102018-05-10 Joel Brobecker <brobecker@adacore.com>
6411
6412 PR server/23158:
6413 * win32-low.c (create_process): Only call gdb_tilde_expand if
6414 inferior_cwd is not NULL.
6415
8ee22052
AB
64162018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6417
6418 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6419 registers to the cache if their values have changed.
6420 (i387_xsave_to_cache): Provide default values for x87 control
6421 registers when these features are available, but disabled.
6422 * regcache.c (supply_register_by_name_zeroed): New function.
6423 * regcache.h (supply_register_by_name_zeroed): Declare new
6424 function.
6425
aff689d3
TT
64262018-05-07 Tom Tromey <tom@tromey.com>
6427
6428 * configure: Rebuild.
6429
85e26832
TT
64302018-05-04 Tom Tromey <tom@tromey.com>
6431
6432 * configure: Rebuild.
6433
a3b60e45
JK
64342018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6435 Pedro Alves <palves@redhat.com>
6436
6437 * linux-aarch64-low.c (aarch64_stopped_data_address):
6438 Likewise.
6439
632e107b
TT
64402018-04-27 Tom Tromey <tom@tromey.com>
6441
6442 * configure: Rebuild.
6443
458412c3
TT
64442018-04-23 Tom Tromey <tom@tromey.com>
6445
6446 * configure: Rebuild.
6447
f31c089e
SM
64482018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6449
6450 * Makefile.in (depcomp): Add "..".
6451 (all_deps_files): New and use it.
6452
b319b098
AH
64532018-04-18 Alan Hayward <alan.hayward@arm.com>
6454
6455 * configure.srv (aarch64*-*-linux*): Don't include xml.
6456 (i[34567]86-*-cygwin*): Likewise.
6457 (i[34567]86-*-linux*): Likewise.
6458 (i[34567]86-*-lynxos*): Likewise.
6459 (i[34567]86-*-mingw32ce*): Likewise.
6460 (i[34567]86-*-mingw*): Likewise.
6461 (i[34567]86-*-nto*): Likewise.
6462 (tic6x-*-uclinux): Likewise.
6463 (x86_64-*-linux*): Likewise.
6464 (x86_64-*-mingw*): Likewise.
6465 (x86_64-*-cygwin*): Likewise.
6466
3b74854b
AH
64672018-04-18 Alan Hayward <alan.hayward@arm.com>
6468
6469 * tdesc.c: Remove xml parameter.
6470
e98577a9
AH
64712018-04-18 Alan Hayward <alan.hayward@arm.com>
6472
6473 * server.c (get_features_xml): Remove cast.
6474 * tdesc.c (void target_desc::accept): Fill in function.
6475 (tdesc_get_features_xml): Remove old xml creation.
6476 (print_xml_feature::visit_pre): Add xml vistor.
6477 * tdesc.h (struct target_desc): Make xmltarget mutable.
6478 (tdesc_get_features_xml): Remove declaration.
6479
d278f585
AH
64802018-04-18 Alan Hayward <alan.hayward@arm.com>
6481
6482 * tdesc.c (tdesc_architecture_name): Add new function.
6483 (tdesc_osabi_name): Likewise.
6484 (tdesc_get_features_xml): Use new functions.
6485
eee8a18d
AH
64862018-04-18 Alan Hayward <alan.hayward@arm.com>
6487
6488 * tdesc.c (tdesc_create_flags): Remove.
6489 (tdesc_add_flag): Likewise.
6490 (tdesc_named_type): Likewise.
6491 (tdesc_create_union): Likewise.
6492 (tdesc_create_struct): Likewise.
6493 (tdesc_create_vector): Likewise.
6494 (tdesc_add_bitfield): Likewise.
6495 (tdesc_add_field): Likewise.
6496 (tdesc_set_struct_size): Likewise.
6497
82ec9bc7
AH
64982018-04-18 Alan Hayward <alan.hayward@arm.com>
6499
6500 * tdesc.c (~target_desc): Remove implictly deleted items.
6501 (init_target_desc): Iterate all features.
6502 (tdesc_get_features_xml): Use vector.
6503 (tdesc_create_feature): Create feature.
6504 * tdesc.h (tdesc_feature) Remove
6505 (target_desc): Add features.
6506
ea3e7d71
AH
65072018-04-18 Alan Hayward <alan.hayward@arm.com>
6508
6509 * Makefile.in: Add common/tdesc.c
6510 * tdesc.c (init_target_desc): init all reg_defs from register
6511 vector.
6512 (tdesc_create_reg): Create tdesc_reg.
6513 * tdesc.h (tdesc_feature): Add register vector.
6514
17d08cd4
SM
65152018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6516
6517 * tdesc.h (struct target_desc) <features>: Change type to
6518 std::vector<std::string>.
6519 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6520 changes.
6521 (tdesc_get_features_xml): Likewise.
6522 (tdesc_create_feature): Likewise.
6523
5cd3e386
AH
65242018-03-26 Alan Hayward <alan.hayward@arm.com>
6525
6526 * regcache.c (find_register_by_number): Return a ref.
6527 (find_regno): Use references.
6528 (register_size): Likewise.
6529 (register_data): Likewise.
6530 * tdesc.c (target_desc::~target_desc): Remove free calls.
6531 (target_desc::operator==): Use std::vector compare.
6532 (init_target_desc): Use reference.
6533 (tdesc_create_reg): Use reg constructors.
6534 * tdesc.h (struct target_desc): Replace pointer with object.
6535
dff7492c
AH
65362018-03-23 Alan Hayward <alan.hayward@arm.com>
6537
6538 * regcache.c (find_register_by_number): Make static.
6539 (find_regno): Use find_register_by_number
6540 * regcache.h (struct reg): Remove declaration.
6541
d80e5242
AH
65422018-03-23 Alan Hayward <alan.hayward@arm.com>
6543
6544 * tdesc.c (target_desc::~target_desc): Move to here.
6545 (target_desc::operator==): Likewise.
6546 * tdesc.h (target_desc::~target_desc): Move from here.
6547 (target_desc::operator==): Likewise.
6548
f69c5afb
AA
65492018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6550
6551 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6552
ce29f843
AA
65532018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6554
6555 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6556 S390_TDESC_GS.
6557 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6558 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6559 and init_registers_s390_gs_linux64.
6560
c49bd90b
AA
65612018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6562
6563 * linux-s390-low.c (s390_fill_gs): Remove function.
6564 (s390_fill_gsbc): Remove function.
6565 (s390_regsets): Set fill functions for the guarded storage regsets
6566 to NULL.
6567
7edb9bd3
AA
65682018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6569
6570 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6571 the word size. Add comment.
6572 (s390_get_wordsize): New function.
6573 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6574 pswm with it. Instead, use s390_get_wordsize to determine the
6575 word size first and derive the correct tdesc from that directly.
6576
39be3c7e
SM
65772018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6578
6579 * Makefile.in: Include silent-rules.mk.
6580 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6581 (COMPILE): Add ECHO_CXX.
6582 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6583 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6584 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6585 (version-generated.c): Add ECHO_GEN.
6586 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6587 (IPAGENT_COMPILE): Add ECHO_CXX.
6588 (%-generated.c): Add ECHO_REGDAT.
6589
3ae9ce5d
TT
65902018-03-14 Tom Tromey <tom@tromey.com>
6591
6592 PR cli/14977:
6593 * ax.c (ax_printf): Special case for NULL.
6594
e6a58aa8
SM
65952018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6596
6597 * linux-low.c (linux_qxfer_libraries_svr4): Use
6598 xml_escape_text_append.
6599
f6e8a41e
SM
66002018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6603
b9671caf
SM
66042018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6605
6606 * server.c (handle_general_set): Remove unnecessary xstrdup.
6607
e80aaf61
SM
66082018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6609
6610 * server.c (parse_debug_format_options): Adjust to
6611 delim_string_to_char_ptr_vec changes.
6612 * thread-db.c (thread_db_load_search): Adjust to
6613 dirnames_to_char_ptr_vec changes.
6614
b1223e78
MM
66152018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6616
6617 * target.h (target_enable_btrace, target_disable_btrace)
6618 (target_read_btrace, target_read_btrace_conf): Turn macro into
6619 inline function. Throw error if target method is not defined.
6620 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6621 check for btrace target method. Be prepared to handle exceptions
6622 from btrace target methods.
6623
81561546
SDJ
66242018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6625
6626 * server.c (captured_main): Change order of error message printed
6627 when the current working directory cannot be found.
6628
25e3c82c
SDJ
66292018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6630
6631 * server.c: Include "filenames.h" and "pathstuff.h".
6632 (program_name): Delete variable.
6633 (program_path): New anonymous class.
6634 (get_exec_wrapper): Use "program_path" instead of
6635 "program_name".
6636 (handle_v_run): Likewise.
6637 (captured_main): Likewise.
6638 (process_serial_event): Likewise.
6639
b4987c95
SDJ
66402018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6641
6642 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6643 (OBJS): Add "pathstuff.o".
6644 * server.c (current_directory): New global variable.
6645 (captured_main): Initialize "current_directory".
6646
f46cd62a
AH
66472018-02-26 Alan Hayward <alan.hayward@arm.com>
6648
6649 * tdesc.c: Use common/tdesc.h.
6650 * tdesc.h: Likewise.
6651
a543c5ca
AH
66522018-02-20 Alan Hayward <alan.hayward@arm.com>
6653 Simon Marchi <simon.marchi@ericsson.com>
6654
6655 * Makefile.in: Switch order of make rules.
6656
b5884fa7
AH
66572018-02-19 Alan Hayward <alan.hayward@arm.com>
6658
6659 * Makefile.in: Add common directory in build.
6660 * configure.ac: Add common reference.
6661 * configure: Regenerate.
6662
de6242d3
MM
66632018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6664
6665 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6666 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6667 * spu-low.c (spu_target_ops): Likewise.
6668 * win32-low.c (win32_target_ops): Likewise.
6669 * server.c (supported_btrace_packets): Report packets unconditionally.
6670 * target.h (target_ops) <supports_btrace>: Remove.
6671 (target_supports_btrace): Remove.
6672
9ee23a85
MM
66732018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6674
6675 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6676 (handle_btrace_disable): Change return type to void. Use exceptions
6677 to report errors.
6678 (handle_btrace_general_set): Catch exception and copy message to
6679 return message.
6680
8ce47547
TT
66812018-02-08 Tom Tromey <tom@tromey.com>
6682
6683 * linux-low.c (install_software_single_step_breakpoints): Use
6684 make_scoped_restore.
6685 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6686 (do_restore_current_thread_cleanup): Remove.
6687 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6688 declare.
6689
45dd3607
TT
66902018-02-08 Tom Tromey <tom@tromey.com>
6691
6692 * mem-break.c (set_raw_breakpoint_at): Use
6693 gdb::unique_xmalloc_ptr.
6694
e671cd59
PA
66952018-01-30 Pedro Alves <palves@redhat.com>
6696
6697 PR gdb/13211
6698 * target.c (target_terminal::terminal_state): Rename to ...
6699 (target_terminal::m_terminal_state): ... this.
6700
a0aad537
JC
67012018-01-19 James Clarke <jrtc27@jrtc27.com>
6702
6703 * linux-low.c (handle_extended_wait): Surround call to
6704 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6705
4d9b86e1
SM
67062018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6707
6708 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6709 linux_ptrace_attach_fail_reason_string now returning an
6710 std::string.
6711 (linux_attach): Likewise.
6712 * thread-db.c (attach_thread): Likewise.
6713
f517c180
EA
67142018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6715
6716 PR gdb/21559
6717 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6718 checking for fs_base/gs_base fields in struct user_regs_struct.
6719 * configure: Regenerate.
6720
9a70f35c
YQ
67212018-01-16 Yao Qi <yao.qi@linaro.org>
6722
6723 PR gdb/18749
6724 * linux-low.c (fetch_register): Call supply_register instead of
6725 error.
6726
605fd3c6
YQ
67272018-01-08 Yao Qi <yao.qi@linaro.org>
6728 Simon Marchi <simon.marchi@ericsson.com>
6729
6730 * Makefile.in (OBS): Remove selftest.o.
6731 * configure.ac: Set srv_selftest_objs if $development is true.
6732 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6733 * configure: Re-generated.
6734 * server.c (captured_main): Wrap variable selftest_filter with
6735 GDB_SELF_TEST.
6736
2cc05030
SM
67372018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6738
6739 * server.c (parse_debug_format_options): Return std::string.
6740 (handle_monitor_command, captured_main): Adjust.
6741
e379cee6
PA
67422018-01-05 Pedro Alves <palves@redhat.com>
6743
6744 PR gdb/18653
6745 * server.c (captured_main): Pass quiet=false to
6746 save_original_signals_state.
6747
82e1e79a
JB
67482018-01-01 Joel Brobecker <brobecker@adacore.com>
6749
6750 * gdbreplay.c (gdbreplay_version): Update copyright year in
6751 version message.
6752 * server.c (gdbserver_version): Likewise.
6753
8e481c3b
TT
67542017-12-08 Tom Tromey <tom@tromey.com>
6755
6756 * ax.c (ax_printf): Update.
6757
a8806230
YQ
67582017-12-07 Yao Qi <yao.qi@linaro.org>
6759
6760 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6761 aarch64_linux_read_description.
6762 * linux-amd64-ipa.c (idx2mask): New array.
6763 (get_ipa_tdesc): Move idx2mask out.
6764 (initialize_low_tracepoint): Initialize target descriptions.
6765 * linux-i386-ipa.c (idx2mask): New array.
6766 (get_ipa_tdesc): Move idx2mask out.
6767 (initialize_low_tracepoint): Initialize target descriptions.
6768
d4a0e8b5
SM
67692017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6770
6771 * tdesc.c (struct tdesc_type): Change return type.
6772 (tdesc_add_flag): Change parameter type.
6773 (tdesc_add_bitfield): Likewise.
6774 (tdesc_add_field): Likewise.
6775 (tdesc_set_struct_size): Likewise.
6776
798a7429
SM
67772017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6778
6779 * regcache.c (registers_to_string): Remove unused variable.
6780
c0e15c9b
SM
67812017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6782
6783 * inferiors.c (for_each_inferior_with_data): Remove.
6784 * inferiors.h (for_each_inferior_with_data): Remove.
6785 * server.c (handle_qxfer_threads_worker): Change parameter type.
6786 (handle_qxfer_threads_proper): Use for_each_thread.
6787
f0045347
SM
67882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6789
6790 * inferiors.c (for_each_inferior): Remove.
6791 (clear_inferiors): Use for_each_thread.
6792 * inferiors.h (for_each_inferior): Remove.
6793 * linux-low.c (linux_wait_for_event_filtered): Use
6794 for_each_thread.
6795 (linux_stabilize_threads): Likewise.
6796 * regcache.c (regcache_release): Likewise.
6797 * server.c (gdb_wants_all_threads_stopped): Likewise.
6798 (clear_pending_status_callback): Remove.
6799 (handle_status): Use for_each_thread.
6800 (captured_main): Likewise.
6801 * win32-low.c (child_init_thread_list): Likewise.
6802 (win32_clear_inferiors): Likewise.
6803 (fake_breakpoint_event): Likewise.
6804
9521758b
SM
68052017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6806
6807 * inferiors.h (find_inferior): Remove.
6808 * inferiors.c (find_inferior): Remove.
6809
8f86d7aa
SM
68102017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6811
6812 * linux-low.c (resume_status_pending_p): Update comment.
6813 (need_step_over_p): Update comment.
6814
e2b44075
SM
68152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6816
6817 * linux-low.c (proceed_one_lwp): Return void, change parameter
6818 type.
6819 (unsuspend_and_proceed_one_lwp): Likewise.
6820 (proceed_all_lwps): Use for_each_thread.
6821 (unstop_all_lwps): Likewise.
6822
c80825ff
SM
68232017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6824
6825 * linux-low.c (linux_resume_one_thread): Return void, take
6826 parameter directly.
6827 (linux_resume): Use for_each_thread.
6828
df3e4dbe
SM
68292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6830
6831 * linux-low.c (send_sigstop_callback): Return void, change
6832 parameter type. Rename to...
6833 (send_sigstop): ... this.
6834 (suspend_and_send_sigstop_callback): Return void, change parameter
6835 type. Rename to...
6836 (suspend_and_send_sigstop): ... this.
6837 (stop_all_lwps): Use for_each_thread.
6838
5a6b0a41
SM
68392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6840
6841 * linux-low.c (lwp_running): Return bool, remove unused
6842 argument.
6843 (linux_stabilize_threads): Use find_thread.
6844
39a64da5
SM
68452017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6846
6847 * linux-low.c (select_singlestep_lwp_callback): Remove.
6848 (count_events_callback): Remove.
6849 (select_event_lwp_callback): Remove.
6850 (select_event_lwp): Use find_thread/for_each_thread.
6851
a1385b7b
SM
68522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6853
6854 * linux-low.c (not_stopped_callback): Return bool, take filter
6855 argument directly.
6856 (linux_wait_for_event_filtered): Use find_thread.
6857 (linux_wait_1): Likewise.
6858
454296a2
SM
68592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6860
6861 * linux-low.c (same_lwp): Remove.
6862 (find_lwp_pid): Use find_thread.
6863
6b2a85da
SM
68642017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6865
6866 * linux-low.c (delete_lwp_callback): Remove.
6867 (linux_mourn): Use for_each_thread.
6868
798a38e8
SM
68692017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6870
6871 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6872 args parameter, don't check for pid.
6873 (linux_detach): Use for_each_thread.
6874
e4eb0dec
SM
68752017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6876
6877 * linux-low.c (struct counter): Remove.
6878 (second_thread_of_pid_p): Remove.
6879 (last_thread_of_process_p): Use find_thread.
6880
83e1b6c1
SM
68812017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6882
6883 * inferiors.c (find_inferior_in_random): Remove.
6884 * inferiors.h (find_inferior_in_random): Remove.
6885 * linux-low.c (status_pending_p_callback): Return bool, accept
6886 parameter ptid directly.
6887 (linux_wait_for_event_filtered): Use find_thread_in_random.
6888 (linux_wait_1): Likewise.
6889
8dc7b443
SM
68902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6891
6892 * inferiors.c (find_inferior_id): Remove.
6893 (find_thread_ptid): Move implemention from find_inferior_id to
6894 here.
6895 * inferiors.h (find_inferior_id): Remove.
6896 * server.c (handle_status): Use find_thread_ptid.
6897 (process_serial_event): Likewise.
6898 * thread-db.c (find_one_thread): Likewise.
6899 (thread_db_thread_handle): Likewise.
6900 * win32-low.c (thread_rec): Likewise.
6901 (child_delete_thread): Likewise.
6902 (win32_thread_alive): Likewise.
6903 (get_child_debug_event): Likewise.
6904
da25033c
SM
69052017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6906
6907 * linux-mips-low.c (update_watch_registers_callback): Return
6908 void, remove pid_p parameter, don't check for pid.
6909 (mips_insert_point, mips_remove_point): Use for_each_thread.
6910
c91bb56b
SM
69112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6912
6913 * lynx.low (lynx_delete_thread_callback): Remove.
6914 (lynx_mourn): Use for_each_thread.
6915
634a3254
SM
69162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6917
6918 * regcache.c (regcache_invalidate_one): Remove.
6919 (regcache_invalidate_pid): use for_each_thread.
6920
41272101
TT
69212017-11-26 Tom Tromey <tom@tromey.com>
6922
6923 * linux-low.c (linux_create_inferior): Update.
6924
f5291a6f
UW
69252017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6926
6927 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6928
6654d750
AH
69292017-11-24 Alan Hayward <alan.hayward@arm.com>
6930
6931 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
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
69362017-11-24 Alan Hayward <alan.hayward@arm.com>
6937
6938 * configure.srv: Add new file.
6939 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6940 * linux-aarch64-tdesc-selftest.c: New file.
6941 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6942
49bdb7ee
AH
69432017-11-24 Alan Hayward <alan.hayward@arm.com>
6944
6945 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6946 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6947 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6948
d6d7ce56
AH
69492017-11-24 Alan Hayward <alan.hayward@arm.com>
6950
6951 * configure.srv: Add new files.
6952 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6953 aarch64_linux_read_description.
6954 * linux-aarch64-low.c (aarch64_linux_read_description):
6955 Merge with aarch64_arch_setup.
6956 (aarch64_arch_setup): Call aarch64_linux_read_description.
6957 * linux-aarch64-tdesc.c: New file.
6958 * linux-aarch64-tdesc.h: New file.
6959
506fe5f4
YQ
69602017-11-24 Yao Qi <yao.qi@linaro.org>
6961
6962 * configure.srv: Set $srv_regobj for tic6x-linux.
6963 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6964 (tic6x_read_description): Move some code to tic6x_arch_setup.
6965 (tic6x_tdesc_test): New function.
6966 (initialize_low_arch): Call selftests::register_test.
6967
29f9a567
YQ
69682017-11-22 Yao Qi <yao.qi@linaro.org>
6969
6970 * remote-utils.c (prepare_resume_reply): Use memcpy.
6971
578290ec
SM
69722017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6973
6974 * linux-low.c (kill_one_lwp_callback): Return void, take
6975 argument directly, don't filter on pid.
6976 (linux_kill): Use for_each_thread.
6977
eca55aec
SM
69782017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6979
6980 * linux-low.c (need_step_over_p): Return bool, remove dummy
6981 argument.
6982 (linux_resume, proceed_all_lwps): Use find_thread.
6983
25c28b4d
SM
69842017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6985
6986 * linux-low.c (resume_status_pending_p): Return bool, remove
6987 flag_p argument.
6988 (linux_resume): Use find_thread.
6989
5fdda392
SM
69902017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6991
6992 * linux-low.c (struct thread_resume_array): Remove.
6993 (linux_set_resume_request): Return void, take arguments
6994 directly.
6995 (linux_resume): Use for_each_thread.
6996
fcb056a5
SM
69972017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6998
6999 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
7000 return bool, remove data argument.
7001 (linux_stabilize_threads): Use find_thread.
7002
139720c5
SM
70032017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7004
7005 * linux-low.c (unsuspend_one_lwp): Remove.
7006 (unsuspend_all_lwps): Use for_each_thread, inline code from
7007 unsuspend_one_lwp.
7008
6d1e5673
SM
70092017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7010
7011 * gdbthread.h (find_thread): Add overload with ptid_t filter.
7012 * linux-low.c (struct iterate_over_lwps_args): Remove.
7013 (iterate_over_lwps_filter): Remove.
7014 (iterate_over_lwps): Use find_thread.
7015
bbf550d5
SM
70162017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7017
7018 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
7019 (linux_handle_new_gdb_connection): Use for_each_thread, inline
7020 code from reset_lwp_ptrace_options_callback.
7021
00192f77
SM
70222017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7023
7024 * linux-arm-low.c (struct update_registers_data): Remove.
7025 (update_registers_callback): Return void, take arguments
7026 directly, don't check thread's pid.
7027 (arm_insert_point, arm_remove_point): Use for_each_thread.
7028
2bee2b6c
SM
70292017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7030
7031 * win32-low.c (continue_one_thread): Return void, take argument
7032 directly.
7033 (child_continue): Use for_each_thread.
7034
0b360f19
SM
70352017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7036
7037 * win32-i386-low.c (update_debug_registers_callback): Rename
7038 to ...
7039 (update_debug_registers): ... this, return void, remove pid_p arg.
7040 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
7041
f27866ba
SM
70422017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7043
7044 * inferiors.h (struct process_info): Add constructor, initialize
7045 fields..
7046 <syscalls_to_catch>: Change type to std::vector<int>.
7047 * inferiors.c (add_process): Allocate process_info with new.
7048 (remove_process): Free process_info with delete.
7049 * linux-low.c (handle_extended_wait): Adjust.
7050 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
7051 * server.c (handle_general_set): Adjust.
7052
e849ea89
PA
70532017-11-16 Pedro Alves <palves@redhat.com>
7054
7055 * remote-utils.c (remote_close): Block SIGIO signals instead of
7056 uninstalling the SIGIO handler.
7057
1d0aa65c
AH
70582017-11-16 Alan Hayward <alan.hayward@arm.com>
7059
7060 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
7061
3491a34c
YQ
70622017-11-16 Yao Qi <yao.qi@linaro.org>
7063
7064 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
7065 (tic6x_store_gregset): Likewise.
7066 (tic6x_usrregs_info): Move it up.
7067
a602f924
AH
70682017-11-15 Alan Hayward <alan.hayward@arm.com>
7069
7070 * Makefile.in: Update arch rules.
7071 * configure.srv: Explicitly mark arch/ files.
7072
5616b6c3
AS
70732017-11-13 Andreas Schwab <schwab@suse.de>
7074
7075 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7076 function.
7077 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7078
d1928160
PA
70792017-11-06 Pedro Alves <palves@redhat.com>
7080
7081 * config.in, configure: Regenerate.
7082
bac608e7
SM
70832017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7084
7085 * target.c (struct thread_search): Remove.
7086 (thread_search_callback): Remove.
7087 (prepare_to_access_memory): Use for_each_thread instead of
7088 find_inferior. Inline code from thread_search_callback.
7089
eaddb425
SM
70902017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7091
7092 * server.c (struct visit_actioned_threads_data): Remove.
7093 (visit_actioned_threads): Change prototype to take arguments
7094 directly.
7095 (resume): Use find_thread instead of find_inferior.
7096
99078d34
SM
70972017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7098
7099 * server.c (queue_stop_reply_callback): Change prototype, return
7100 void.
7101 (find_status_pending_thread_callback): Remove.
7102 (handle_status): Replace find_inferior with find_thread and
7103 for_each_thread.
7104
cc628f3d
AH
71052017-10-25 Alan Hayward <alan.hayward@arm.com>
7106
7107 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7108 with REGNO.
7109 (aarch64_store_gregset): Likewise.
7110 (aarch64_fill_fpregset): Likewise.
7111 (aarch64_store_fpregset): Likewise.
7112
4d3bb80e
SM
71132017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7114
7115 * gdbthread.h (find_thread, for_each_thread): New functions.
7116 * inferiors.c (thread_of_pid): Remove.
7117 (find_any_thread_of_pid): Use find_thread.
7118 * linux-low.c (num_lwps): Use for_each_thread.
7119
7a7cdfa0
YQ
71202017-10-17 Yao Qi <yao.qi@linaro.org>
7121
7122 * Makefile.in: Remove one rule.
7123 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7124
e675d170
YQ
71252017-10-17 Yao Qi <yao.qi@linaro.org>
7126
7127 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7128 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7129
7eb4e0f9
YQ
71302017-10-17 Yao Qi <yao.qi@linaro.org>
7131
7132 * configure.srv: Rename arm.o with arch/arm.o.
7133
60d6cfc9
YQ
71342017-10-17 Yao Qi <yao.qi@linaro.org>
7135
7136 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7137 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7138 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7139 (arch-i386.o, arch-amd64.o): Remove rules.
7140 (arch/%.o): New rule.
7141 Update POSTCOMPILE and COMPILE.pre.
7142 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7143 * configure: Re-generated.
7144 * configure.srv: Replace arch-i386.o with arch/i386.o.
7145 Replace arch-amd64.o with arch/amd64.o.
7146
5bfda255
YQ
71472017-10-16 Yao Qi <yao.qi@linaro.org>
7148
7149 * configure: Regenerated.
7150
9c80ecd6
SM
71512017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7152
7153 * inferiors.h: (struct inferior_list): Remove.
7154 (struct inferior_list_entry); Remove.
7155 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7156 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7157 get_first_inferior): Remove.
7158 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7159 find_inferior_id, find_inferior_in_random): Change signature.
7160 * inferiors.c (all_threads): Change type to
7161 std::list<thread_info *>.
7162 (get_thread): Remove macro.
7163 (find_inferior, find_inferior_id): Change signature, implement
7164 using find_thread.
7165 (find_inferior_in_random): Change signature, implement using
7166 find_thread_in_random.
7167 (for_each_inferior, for_each_inferior_with_data): Change
7168 signature, implement using for_each_thread.
7169 (add_inferior_to_list, remove_inferior): Remove.
7170 (add_thread, get_first_thread, thread_of_pid,
7171 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7172 (get_first_inferior, one_inferior_p, clear_inferior_list):
7173 Remove.
7174 (clear_inferiors, get_thread_process): Update.
7175 * gdbthread.h: Include <list>.
7176 (struct thread_info) <entry>: Remove field.
7177 <id>: New field.
7178 (all_threads): Change type to std::list<thread_info *>.
7179 (get_first_inferior): Add doc.
7180 (find_thread, for_each_thread, find_thread_in_random): New
7181 functions.
7182 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7183 * linux-arm-low.c (update_registers_callback): Update.
7184 * linux-low.c (second_thread_of_pid_p): Update.
7185 (kill_one_lwp_callback, linux_detach_lwp_callback,
7186 delete_lwp_callback, status_pending_p_callback, same_lwp,
7187 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7188 iterate_over_lwps, not_stopped_callback,
7189 resume_stopped_resumed_lwps, count_events_callback,
7190 select_singlestep_lwp_callback, select_event_lwp_callback,
7191 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7192 suspend_and_send_sigstop_callback, wait_for_sigstop,
7193 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7194 lwp_running, linux_set_resume_request, resume_status_pending_p,
7195 need_step_over_p, start_step_over, linux_resume_one_thread,
7196 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7197 reset_lwp_ptrace_options_callback): Update.
7198 * linux-mips-low.c (update_watch_registers_callback): Update.
7199 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7200 Update.
7201 (free_register_cache_thread_one): Remove.
7202 (regcache_release): Update.
7203 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7204 handle_qxfer_threads_worker): Update.
7205 (handle_query): Update, use list iterator.
7206 (visit_actioned_threads, handle_pending_status,
7207 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7208 clear_pending_status_callback, set_pending_status_callback,
7209 find_status_pending_thread_callback, handle_status,
7210 process_serial_event): Update.
7211 * target.c (thread_search_callback): Update.
7212 * thread-db.c (thread_db_get_tls_address): Update.
7213 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7214 Update.
7215 * win32-i386-low.c (update_debug_registers_callback): Update.
7216 * win32-low.c (delete_thread_info, child_delete_thread,
7217 continue_one_thread, suspend_one_thread,
7218 get_child_debug_event): Adjust.
7219
9179355e
SM
72202017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7221
7222 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7223 * inferiors.h: Include <list>.
7224 (struct process_info) <entry>: Remove field.
7225 <pid>: New field.
7226 (pid_of): Change macro to function.
7227 (ptid_of, lwpid_of): Remove macro.
7228 (all_processes): Change type to std::list<process_info *>.
7229 (ALL_PROCESSES): Remove macro.
7230 (for_each_process, find_process): New function.
7231 * inferiors.c (all_processes): Change type to
7232 std::list<process_info *>.
7233 (find_thread_process): Adjust.
7234 (add_process): Likewise.
7235 (remove_process): Likewise.
7236 (find_process_pid): Likewise.
7237 (get_first_process): Likewise.
7238 (started_inferior_callback): Remove.
7239 (have_started_inferiors_p): Adjust.
7240 (attached_inferior_callback): Remove.
7241 (have_attached_inferiors_p): Adjust.
7242 * linux-low.c (check_zombie_leaders): Likewise.
7243 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7244 (x86_linux_update_xmltarget): Adjust.
7245 * server.c (handle_query): Likewise.
7246 (gdb_reattached_process): Remove.
7247 (handle_status): Adjust.
7248 (kill_inferior_callback): Likewise.
7249 (detach_or_kill_inferior): Remove.
7250 (print_started_pid): Likewise.
7251 (print_attached_pid): Likewise.
7252 (detach_or_kill_for_exit): Update.
7253 (process_serial_event): Likewise.
7254 * linux-arm-low.c (arm_new_fork): Likewise.
7255
c9cb8905
SM
72562017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7257
7258 * dll.h: Include <list>.
7259 (struct dll_info): Add constructor.
7260 <entry>: Remove field.
7261 (all_dlls): Change type to std::list<dll_info>.
7262 * dll.c: Include <algorithm>.
7263 (get_dll): Remove macro.
7264 (all_dlls): Change type to std::list<dll_info *>.
7265 (free_one_dll): Remove.
7266 (match_dll): Likewise.
7267 (loaded_dll): Adjust.
7268 (unloaded_dll): Adjust to all_dlls type change, use
7269 std::find_if. Inline code from match_dll.
7270 (clear_dlls): Adjust to all_dlls type change.
7271 * server.c (emit_dll_description): Remove.
7272 (handle_qxfer_libraries): Adjust to all_dlls type change,
7273 integrate emit_dll_description's functionality.
7274
04ec7890
SM
72752017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7276
7277 * linux-low.h (struct linux_target_ops) <delete_process>: New
7278 field.
7279 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7280 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7281 (struct linux_target_ops): Add delete_process callback.
7282 * linux-arm-low.c (arm_delete_process): New.
7283 (struct linux_target_ops): Add delete_process callback.
7284 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7285 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7286 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7287 * linux-mips-low.c (mips_linux_delete_process): New.
7288 (struct linux_target_ops): Add delete_process callback.
7289 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7290 * linux-s390-low.c (struct linux_target_ops): Likewise.
7291 * linux-sh-low.c (struct linux_target_ops): Likewise.
7292 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7293 * linux-tile-low.c (struct linux_target_ops): Likewise.
7294 * linux-x86-low.c (x86_linux_delete_process): New.
7295 (struct linux_target_ops): Add delete_process callback.
7296 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7297
466eecee
SM
72982017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7299
7300 * linux-aarch64-low.c (the_low_target): Add thread delete
7301 callback.
7302 * linux-arm-low.c (arm_delete_thread): New function.
7303 (the_low_target): Add thread delete callback.
7304 * linux-bfin-low.c (the_low_target): Likewise.
7305 * linux-crisv32-low.c (the_low_target): Likewise.
7306 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7307 set.
7308 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7309 field.
7310 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7311 * linux-mips-low.c (mips_linux_delete_thread): New function.
7312 (the_low_target): Add thread delete callback.
7313 * linux-ppc-low.c (the_low_target): Likewise.
7314 * linux-s390-low.c (the_low_target): Likewise.
7315 * linux-sh-low.c (the_low_target): Likewise.
7316 * linux-tic6x-low.c (the_low_target): Likewise.
7317 * linux-tile-low.c (the_low_target): Likewise.
7318 * linux-x86-low.c (the_low_target): Likewise.
7319 * linux-xtensa-low.c (the_low_target): Likewise.
7320
b79f7801
YZ
73212017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7322
7323 * win32-low.c: Include "common-inferior.h".
7324
bc3b087d
SDJ
73252017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7326
7327 * inferiors.c (set_inferior_cwd): New function.
7328 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7329 (handle_query): Inform that QSetWorkingDir is supported.
7330 * win32-low.c (create_process): Pass the inferior's cwd to
7331 CreateProcess.
7332
d092c5a2
SDJ
73332017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7334
7335 * inferiors.c (current_inferior_cwd): New global variable.
7336 (get_inferior_cwd): New function.
7337 * inferiors.h (struct process_info) <cwd>: New field.
7338
7da0a886
SDJ
73392017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7340
7341 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7342 (OBS): Add gdb_tilde_expand.o.
7343
289a6840
SM
73442017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7345
7346 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7347 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7348
256642e8
PA
73492017-09-29 Pedro Alves <palves@redhat.com>
7350
7351 * ax.c (gdb_parse_agent_expr): Constify.
7352 * ax.h (gdb_parse_agent_expr): Constify.
7353 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7354 Constify.
7355 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7356 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7357 * remote-utils.h (read_ptid): Constify.
7358 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7359 (process_point_options, process_serial_event): Constify.
7360 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7361 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7362 (cmd_qtbuffer): Constify.
7363
5b9ca4d4
PA
73642017-09-29 Pedro Alves <palves@redhat.com>
7365
7366 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7367 fails.
7368
94c207e0
PA
73692017-09-29 Pedro Alves <palves@redhat.com>
7370
7371 * linux-low.c (handle_extended_wait): Pass parent thread instead
7372 of process to thread_db_notice_clone.
7373 * linux-low.h (thread_db_notice_clone): Replace parent process
7374 parameter with parent thread parameter.
7375 * thread-db.c (find_one_thread): Add comment.
7376 (thread_db_notice_clone): Replace parent process parameter with
7377 parent thread parameter. Temporarily switch to the parent thread.
7378
75352e28
SDJ
73792017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7380
7381 * gdbthread.h: Include "common-gdbthread.h".
7382 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7383 "if" when validating the ptid.
7384 * remote-utils.c: Include "gdbthread.h".
7385 (prepare_resume_reply): Use "switch_to_thread".
7386 * target.c (done_accessing_memory): Likewise.
7387
ad339634
AA
73882017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7389
7390 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7391 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7392 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7393 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7394 s390x-gs-linux64-ipa.o to ipa_obj.
7395 * linux-s390-low.c (HWCAP_S390_GS): New define.
7396 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7397 New functions.
7398 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7399 (s390_arch_setup): Check for guarded-storage support and choose
7400 appropriate tdesc.
7401 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7402 init_registers_s390x_gs_linux64.
7403 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7404 enum value.
7405 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7406 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7407
cc4d742f
SM
74082017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7409
7410 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7411
f6327dcb
KB
74122017-09-21 Kevin Buettner <kevinb@redhat.com>
7413
7414 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7415 (thread_db_thread_handle): Declare.
7416 * linux-low.c (linux_target_ops): Initialize thread_handle.
7417 * server.c (handle_qxfer_threads_worker): Add support for
7418 "handle" attribute.
7419 * target.h (struct target_ops): Add new function pointer,
7420 thread_handle.
7421 (target_thread_handle): Define.
7422 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7423 field in lwp.
7424 (thread_db_thread_handle): New function.
7425
86299109
KB
74262017-09-21 Kevin Buettner <kevinb@redhat.com>
7427
7428 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7429 * linux-low.h (thread_db_notice_clone): Declare.
7430 * thread-db.c (thread_db_notice_clone): New function.
7431
f557a88a
PA
74322017-09-21 Pedro Alves <palves@redhat.com>
7433
7434 * server.c (gdb_read_memory, handle_status, process_serial_event)
7435 (handle_serial_event, handle_target_event): Adjust to
7436 set_desired_thread prototype change.
7437 * target.c (set_desired_thread): Remove 'use_general' parameter
7438 and adjust.
7439 * target.h (set_desired_thread): Remove 'use_general' parameter.
7440
223ffa71
TT
74412017-09-20 Tom Tromey <tom@tromey.com>
7442
7443 * target.c (target_terminal::terminal_state): Define.
7444 (target_terminal::init): Rename from target_terminal_init.
7445 (target_terminal::inferior): Rename from
7446 target_terminal_inferior.
7447 (target_terminal::ours): Rename from target_terminal_ours.
7448 (target_terminal::ours_for_output, target_terminal::info): New.
7449
04fd3ba9
SM
74502017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7451
7452 * server.c (accumulate_file_name_length): Remove.
7453 (emit_dll_description): Adjust to std::string change.
7454 (handle_qxfer_libraries): Use std::string to hold document.
7455
5e187554
SM
74562017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7457
7458 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7459 return type of xml_escape_text.
7460 * server.c (emit_dll_description): Likewise.
7461
1526853e
SM
74622017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7463
7464 * server.c (captured_main): Accept argument for --selftest.
7465 Update run_tests call.
7466 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7467 when registering selftests.
7468
c4dfafab
SDJ
74692017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7470
7471 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7472 instead of "VEC" for "target_desc.reg_defs".
7473 (regcache_cpy): Likewise.
7474 (registers_to_string): Likewise.
7475 (registers_from_string): Likewise.
7476 (find_regno): Likewise.
7477 (supply_regblock): Likewise.
7478 (regcache_raw_read_unsigned): Likewise.
7479 * tdesc.c (init_target_desc): Likewise.
7480 (tdesc_create_reg): Likewise.
7481 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7482 (struct target_desc) <reg_defs>: Convert to "std::vector".
7483 (target_desc): Do not initialize "reg_defs".
7484 (~target_desc): Update code to use "std::vector" instead of "VEC"
7485 for "target_desc.reg_defs".
7486 (operator==): Likewise.
7487
124aceb4
SM
74882017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7489
7490 * inferiors.h (thread_to_gdb_id): Remove.
7491 * inferiors.c (thread_to_gdb_id): Remove.
7492 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7493 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7494 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7495 Likewise.
7496 * nto-low.c (nto_fetch_registers, nto_store_registers,
7497 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7498
96cde54f
SM
74992017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7500
7501 * inferiors.h (gdb_id_to_thread_id): Remove.
7502 * inferiors.c (gdb_id_to_thread_id): Remove.
7503 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7504 removal. Move pid declaration closer to where it's used.
7505
e8ca139e
SM
75062017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7507
7508 * server.c (handle_detach): New function.
7509 (process_serial_event): Move code out, call handle_detach.
7510
f8a4e119
SM
75112017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7512
7513 * server.c (require_running): Rename to ...
7514 (require_running_or_return): ... this ...
7515 (require_running_or_break): ... and this.
7516 (handle_query, process_serial_event): Adjust.
7517
0eb0a407
SM
75182017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7519
7520 * linux-low.c (linux_set_resume_request): Remove unused
7521 variables.
7522
785922a5
SM
75232017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7524
7525 * server.c (first_thread_of): Remove.
7526 (process_serial_event): Replace usage of first_thread_of with
7527 find_any_thread_of_pid.
7528 * tracepoint.c (same_process_p): Remove.
7529 (gdb_agent_about_to_close): Replace usage of same_process_p with
7530 find_any_thread_of_pid.
7531 * linux-x86-low.c (same_process_callback): Remove.
7532 (x86_arch_setup_process_callback): Replace usage of
7533 same_process_callback with find_any_thread_of_pid.
7534 * thread-db.c (any_thread_of): Remove.
7535 (switch_to_process): Replace usage of any_thread_of with
7536 find_any_thread_of_pid.
7537 * inferiors.c (thread_pid_matches_callback): Remove.
7538 (find_thread_process): Adjust to use find_any_thread_of_pid.
7539
a059f00c
SDJ
75402017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7541
7542 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7543 with "!VEC_empty".
a059f00c 7544
cc397f3a
SDJ
75452017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7546
7547 * linux-low.c (handle_extended_wait): Use
7548 "allocate_target_description" instead of "XNEW".
7549 * linux-x86-low.c (initialize_low_arch): Likewise.
7550
22916b07
YQ
75512017-09-05 Yao Qi <yao.qi@linaro.org>
7552
7553 * configure.srv (srv_i386_regobj): Remove.
7554 (srv_amd64_regobj): Remove.
7555 (srv_regobj): Set it to "" for x86 non-linux targets.
7556 * linux-x86-tdesc.c (i386_linux_read_description):
7557 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7558 (init_registers_i386): Remove the declaration.
7559 (tdesc_i386): Remove the declaration.
7560 (lynx_i386_arch_setup): Call i386_create_target_description.
7561 * nto-x86-low.c: Likewise.
7562 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7563 [!__x86_64__]: include arch/i386.h.
7564 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7565
38602d55
YQ
75662017-09-05 Yao Qi <yao.qi@linaro.org>
7567
7568 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7569 i386/amd64-XXX-linux from it.
7570
44b886ff
YQ
75712017-09-05 Yao Qi <yao.qi@linaro.org>
7572
7573 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7574 false.
7575 (ipa_amd64_linux_regobj): Remove.
7576 (ipa_x32_linux_regobj): Remove.
7577
b4570e4b
YQ
75782017-09-05 Yao Qi <yao.qi@linaro.org>
7579
7580 * Makefile.in (arch-amd64.o): New rule.
7581 * configure.srv: Append arch-amd64.o.
7582 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7583 (get_ipa_tdesc): Call amd64_linux_read_description.
7584 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7585 and init_registers_amd64_XXX.
7586 * linux-x86-low.c (x86_linux_read_description): Call
7587 amd64_linux_read_description.
7588 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7589 (initialize_low_arch): Don't call init_registers_x32_XXX and
7590 init_registers_amd64_XXX.
7591 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7592 and tdesc_amd64_XXX.
7593 [__x86_64__] (amd64_tdesc_test): New function.
7594 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7595 and init_registers_amd64_XXX.
7596 * linux-x86-tdesc.c: Include arch/amd64.h.
7597 (xcr0_to_tdesc_idx): New function.
7598 (i386_linux_read_description): New function.
7599 (amd64_get_ipa_tdesc_idx): New function.
7600 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7601 (amd64_get_ipa_tdesc): Declare.
7602
d1f28ea2
YQ
76032017-09-05 Yao Qi <yao.qi@linaro.org>
7604
7605 * configure.srv (srv_i386_linux_xmlfiles): Remove
7606 i386/i386-XXX-linux.xml from it.
7607
25a93583
YQ
76082017-09-05 Yao Qi <yao.qi@linaro.org>
7609
7610 * configure.srv: Set srv_i386_linux_regobj empty if $development
7611 is false.
7612 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7613 initialize_low_tdesc.
7614 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7615 with #if initialize_low_tdesc.
7616 * linux-x86-tdesc-selftest.c: New file.
7617 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7618
5f035c07
YQ
76192017-09-05 Yao Qi <yao.qi@linaro.org>
7620
7621 * Makefile.in (arch-i386.o): New rule.
7622 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7623 (x86_64-*-linux*): Likewise.
7624 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7625 include arch/i386.h.
7626 (i386_linux_read_description): Remove code and call
7627 i386_create_target_description.
7628 * tdesc.c (allocate_target_description): New function.
7629 * tdesc.h (set_tdesc_architecture): Remove declaration.
7630 (set_tdesc_osabi): Likewise.
7631
0abe8a89
YQ
76322017-09-05 Yao Qi <yao.qi@linaro.org>
7633
7634 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7635 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7636 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7637 .xmltarget.
7638 * server.c (get_features_xml): Call tdesc_get_features_xml.
7639 * tdesc.c (set_tdesc_architecture): New function.
7640 (set_tdesc_osabi): New function.
7641 (tdesc_get_features_xml): New function.
7642 (tdesc_create_feature): Add an argument.
7643 * tdesc.h (struct target_desc) <features>: New field.
7644 <arch, osabi>: New field.
7645 (~target_desc): xfree features, arch, and osabi.
7646 (target_desc::oerator==): Don't compare .xmltarget.
7647 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7648 (set_tdesc_osabi): Likewise.
7649 (tdesc_get_features_xml): Likewise.
7650
0a188386
YQ
76512017-09-05 Yao Qi <yao.qi@linaro.org>
7652
7653 * linux-x86-tdesc.c: Include selftest.h.
7654 (i386_tdesc_test): New function.
7655 (initialize_low_tdesc): Call selftests::register_test.
7656 * tdesc.h: Include regdef.h.
7657 (target_desc): Override operator == and !=.
7658
f49ff000
YQ
76592017-09-05 Yao Qi <yao.qi@linaro.org>
7660
7661 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7662 (ipa_obj): Likewise.
7663 * linux-i386-ipa.c: Include common/x86-xstate.h
7664 (get_ipa_tdesc): Call i386_linux_read_description.
7665 (initialize_low_tracepoint): Don't call init_registers_XXX
7666 functions, call initialize_low_tdesc instead.
7667 * linux-x86-low.c (x86_linux_read_description): Call
7668 i386_linux_read_description.
7669 (initialize_low_arch): Don't call init_registers_i386_XXX
7670 functions, call initialize_low_tdesc.
7671 * linux-x86-tdesc.c: New file.
7672 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7673 (i386_get_ipa_tdesc_idx): Declare.
7674 (i386_get_ipa_tdesc): Declare.
7675 (initialize_low_tdesc): Declare.
7676
2b68ef2f
YQ
76772017-09-05 Yao Qi <yao.qi@linaro.org>
7678
7679 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7680 instead of 0.
7681
f7000548
YQ
76822017-09-05 Yao Qi <yao.qi@linaro.org>
7683
7684 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7685 * regcache.c (get_thread_regcache): Use VEC_length.
7686 (init_register_cache): Likewise.
7687 (regcache_cpy): Likewise.
7688 (registers_to_string): Iterate reg_defs via VEC_iterate.
7689 (find_regno): Likewise.
7690 (find_register_by_number): Use VEC_index.
7691 (register_size): Call find_register_by_number.
7692 (register_data): Call find_register_by_number.
7693 (supply_regblock): Use VEC_length.
7694 (regcache_raw_read_unsigned): Likewise.
7695 * tdesc.c (init_target_desc): Iterate reg_defs via
7696 VEC_iterate.
7697 (default_description): Update initializer.
7698 (copy_target_description): Don't update field num_registers.
7699 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7700 <num_registers>: Remove.
7701
50a421ac
SM
77022017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7703
7704 * Makefile.in (.SECONDARY): Define target.
7705
23fdd69e
SM
77062017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7707
7708 * linux-low.c (linux_wait_1): Adjust.
7709 * server.c (queue_stop_reply_callback): Adjust.
7710
0a2dde4a
SDJ
77112017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7712
7713 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7714 QEnvironmentUnset and QEnvironmentReset packets.
7715 (handle_query): Inform remote that QEnvironmentHexEncoded,
7716 QEnvironmentUnset and QEnvironmentReset are supported.
7717
6afd337d
SM
77182017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7719
7720 * inferiors.h (inferior_target_data): Rename to ...
7721 (thread_target_data): ... this.
7722 (inferior_regcache_data): Rename to ...
7723 (thread_regcache_data): ... this.
7724 (set_inferior_regcache_data): Rename to ...
7725 (set_thread_regcache_data): ... this.
7726 * inferiors.c (inferior_target_data): Rename to ...
7727 (thread_target_data): ... this.
7728 (inferior_regcache_data): Rename to ...
7729 (thread_regcache_data): ... this.
7730 (set_inferior_regcache_data): Rename to ...
7731 (set_thread_regcache_data): ... this.
7732 (free_one_thread): Update.
7733 * linux-low.h (get_thread_lwp): Update.
7734 * regcache.c (get_thread_regcache): Update.
7735 (regcache_invalidate_thread): Update.
7736 (free_register_cache_thread): Update.
7737 * win32-i386-low.c (update_debug_registers_callback): Update.
7738 (win32_get_current_dr): Update.
7739 * win32-low.c (thread_rec): Update.
7740 (delete_thread_info): Update.
7741 (continue_one_thread): Update.
7742 (suspend_one_thread): Update.
7743
a160cc46
SM
77442017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7745
7746 * inferiors.c (set_inferior_target_data): Remove.
7747 * inferiors.h (set_inferior_target_data): Remove.
7748
6d580b63
YQ
77492017-08-18 Yao Qi <yao.qi@linaro.org>
7750
7751 * Makefile.in (OBS): Add selftest.o.
7752 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7753 * configure, config.in: Re-generated.
7754 * server.c: Include common/sefltest.h.
7755 (captured_main): Handle option --selftest.
7756
f5a29eb0
YQ
77572017-08-09 Yao Qi <yao.qi@linaro.org>
7758
7759 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7760 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7761 i386-avx-mpx.o and i386-mmx.o.
7762 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7763 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7764 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7765 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7766 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7767 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7768 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7769 i386/amd64-avx-mpx.xml.
7770
57757c2f
YQ
77712017-08-09 Yao Qi <yao.qi@linaro.org>
7772
7773 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7774 and x32-avx-avx512.o.
7775 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7776 i386/x32-avx-avx512.xml.
7777
229d26fc
SM
77782017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7779
7780 * tracepoint.h (enum class fast_tpoint_collect_result): New
7781 enumeration.
7782 (fast_tracepoint_collecting): Change return type to
7783 fast_tpoint_collect_result.
7784 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7785 * linux-low.h: Include tracepoint.h.
7786 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7787 fast_tpoint_collect_result.
7788 * linux-low.c (handle_tracepoints): Adjust.
7789 (linux_fast_tracepoint_collecting): Change return type to
7790 fast_tpoint_collect_result.
7791 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7792 linux_wait_1, stuck_in_jump_pad_callback,
7793 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7794 proceed_one_lwp): Adjust to type change.
7795
2e1e43e1
YQ
77962017-07-10 Yao Qi <yao.qi@linaro.org>
7797
7798 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7799
adc764e7
YQ
78002017-06-29 Yao Qi <yao.qi@linaro.org>
7801
7802 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7803 Remove.
7804 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7805
a206891a
SM
78062017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7807
7808 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7809
9a6c7d9c
SDJ
78102017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7811
7812 * linux-low.c (linux_create_inferior): Adjust code to access the
7813 environment information via 'gdb_environ' class.
7814 * lynx-low.c (lynx_create_inferior): Likewise.
7815 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7816 (get_environ): Return a pointer to 'our_environ'.
7817 (captured_main): Initialize 'our_environ'.
7818 * server.h (get_environ): Adjust prototype.
7819 * spu-low.c (spu_create_inferior): Adjust code to access the
7820 environment information via 'gdb_environ' class.
7821
ae3e2ccf
SM
78222017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7823
7824 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7825 usage of "register" keyword.
7826
3e019bdc
SM
78272017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7828
7829 * configure: Re-generate.
7830
8465943a
SM
78312017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7832
7833 * configure: Re-generate.
7834
cf0dd6f0
SM
78352017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7836
7837 * Makefile.in (COMPILE.pre): Add "-x c++".
7838
9845682b
SDJ
78392017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7840
7841 * fork-child.c: Conditionally include <signal.h>.
7842
aefd8b33
SDJ
78432017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7844
7845 * server.c (handle_general_set): Handle new packet
7846 "QStartupWithShell".
7847 (handle_query): Add "QStartupWithShell" to the list of supported
7848 packets.
7849 (gdbserver_usage): Add help text explaining the
7850 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7851 options.
7852 (captured_main): Recognize and act upon the presence of the new
7853 CLI options.
7854
2090129c
SDJ
78552017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7856 Pedro Alves <palves@redhat.com>
7857
7858 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7859 * configure: Regenerate.
7860 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7861 "fork-inferior.o".
7862 (i[34567]86-*-lynxos*): Likewise.
7863 (spu*-*-*): Likewise.
7864 * fork-child.c: New file.
7865 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7866 and "environ.h".
7867 (linux_ptrace_fun): New function.
7868 (linux_create_inferior): Adjust function prototype to reflect
7869 change on "target.h". Adjust function code to use
7870 "fork_inferior".
7871 (linux_request_interrupt): Delete "signal_pid".
7872 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7873 (lynx_ptrace_fun): New function.
7874 (lynx_create_inferior): Adjust function prototype to reflect
7875 change on "target.h". Adjust function code to use
7876 "fork_inferior".
7877 * nto-low.c (nto_create_inferior): Adjust function prototype and
7878 code to reflect change on "target.h". Update comments.
7879 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7880 "common-terminal.h" and "environ.h".
7881 (terminal_fd): Moved to fork-child.c.
7882 (old_foreground_pgrp): Likewise.
7883 (restore_old_foreground_pgrp): Likewise.
7884 (last_status): Make it global.
7885 (last_ptid): Likewise.
7886 (our_environ): New variable.
7887 (startup_with_shell): Likewise.
7888 (program_name): Likewise.
7889 (program_argv): Rename to...
7890 (program_args): ...this.
7891 (wrapper_argv): New variable.
7892 (start_inferior): Delete function.
7893 (get_exec_wrapper): New function.
7894 (get_exec_file): Likewise.
7895 (get_environ): Likewise.
7896 (prefork_hook): Likewise.
7897 (post_fork_inferior): Likewise.
7898 (postfork_hook): Likewise.
7899 (postfork_child_hook): Likewise.
7900 (handle_v_run): Update code to deal with arguments coming from the
7901 remote host. Update calls from "start_inferior" to
7902 "create_inferior".
7903 (captured_main): Likewise. Initialize environment variable. Call
7904 "have_job_control".
7905 * server.h (post_fork_inferior): New prototype.
7906 (get_environ): Likewise.
7907 (last_status): Declare.
7908 (last_ptid): Likewise.
7909 (signal_pid): Likewise.
7910 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7911 (spu_ptrace_fun): New function.
7912 (spu_create_inferior): Adjust function prototype to reflect change
7913 on "target.h". Adjust function code to use "fork_inferior".
7914 * target.c (target_terminal_init): New function.
7915 (target_terminal_inferior): Likewise.
7916 (target_terminal_ours): Likewise.
7917 * target.h: Include <vector>.
7918 (struct target_ops) <create_inferior>: Update prototype.
7919 (create_inferior): Update macro.
7920 * utils.c (gdb_flush_out_err): New function.
7921 * win32-low.c (win32_create_inferior): Adjust function prototype
7922 and code to reflect change on "target.h".
7923
043a4934
SDJ
79242017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7925
7926 * inferiors.c (switch_to_thread): New function.
7927
15652511
SDJ
79282017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7929
7930 * Makefile.in (SFILE): Add "common/job-control.c".
7931 (OBS): Add "job-control.o".
7932
21ea5acd
SDJ
79332017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7934
7935 * Makefile: Remove "@host_makefile_frag@".
7936
e13cb306
PA
79372017-05-05 Pedro Alves <palves@redhat.com>
7938
7939 * configure: Regenerate.
7940
c94fee56
SDJ
79412017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7942
7943 * configure: Regenerate.
7944
a0ff9e1a
SM
79452017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7946
7947 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7948 software_single_step change of return type to
7949 std::vector<CORE_ADDR>.
7950 * linux-low.c (install_software_single_step_breakpoints):
7951 Likewise.
7952 * linux-low.h (install_software_single_step_breakpoints):
7953 Likewise.
7954
be628ab8
SDJ
79552017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7956
7957 * remote-utils.c: Include "gdb_termios.h" instead of
7958 "terminal.h".
7959 * terminal.h: Delete file.
7960
7c5ded6a
SDJ
79612017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7962
7963 * server.c: Include <vector>.
7964 <program_argv, wrapper_argv>: Convert to std::vector.
7965 (start_inferior): Rewrite function to use C++.
7966 (handle_v_run): Likewise. Update code that calculates the argv
7967 based on the vRun packet; use C++.
7968 (captured_main): Likewise.
7969
436252de
SM
79702017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7971
7972 * server.c (handle_v_cont): Initialize thread_resume::thread
7973 with null_ptid.
7974
9bf2a700
PA
79752017-04-05 Pedro Alves <palves@redhat.com>
7976
7977 * configure: Regenerate.
7978
a121b7c1
PA
79792017-04-05 Pedro Alves <palves@redhat.com>
7980
7981 * gdbreplay.c (sync_error): Constify.
7982 * linux-x86-low.c (push_opcode): Constify.
7983
21c8a587
PA
79842017-04-05 Pedro Alves <palves@redhat.com>
7985
7986 * win32-low.c (get_child_debug_event)
7987 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7988 Report TARGET_WAITKIND_SPURIOUS instead.
7989
fb32b4f7
PA
79902017-04-05 Pedro Alves <palves@redhat.com>
7991
e79be6e5
SM
7992 * remote-utils.c (remote_prepare, remote_open): Constify.
7993 * remote-utils.h (remote_prepare, remote_open): Constify.
7994 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7995
65dd1e59
SM
79962017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7997
7998 * Makefile.in (clean): Clear .deps.
7999
8fa5b777
SM
80002017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
8001
8002 * .gitignore: Remove generated files, replace with wildcard.
8003 * (clean): Replace removal of generated files with wildcard.
8004 (version.c): Replace with...
8005 (version-generated.c): ...this.
8006 (xml-builtin.c): Replace with...
8007 (xml-builtin-generated.c): ...this.
8008 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
8009 (%.c: *regformats*): Replace with...
8010 (%-generated.c: *regformats*): ...this.
8011
a12e714b
MF
80122017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8013
8014 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
8015 (xtensa_fill_gregset): Call collect_register_by_name for
8016 threadptr register.
8017 (xtensa_store_gregset): Call supply_register_by_name for
8018 threadptr register.
8019
1a09b50a
MF
80202017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8021
8022 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
8023 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
8024 (xtensa_store_gregset): Call supply_register for all registers in
8025 a0_regnum..a0_regnum + C0_NREGS range.
8026
1a01e7c6
SM
80272017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8028
8029 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
8030 (ax-ipa.o: ax.c): Remove.
8031 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
8032 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
8033 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
8034 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
8035 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
8036
36bc18a8
SM
80372017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8038
8039 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
8040 (print-utils-ipa.o: ../common/print-utils.c): Remove.
8041 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
8042 (errors-ipa.o: ../common/errors.c): Remove.
8043 (format-ipa.o: ../common/format.c): Remove.
8044 (common-utils-ipa.o: ../common/common-utils.c): Remove.
8045
a8ebe3d5
SM
80462017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8047
8048 * Makefile.in (%-ipa.o: %.c): New rule.
8049 (tracepoint-ipa.o: tracepoint.c): Remove.
8050 (utils-ipa.o: utils.c): Remove.
8051 (remote-utils-ipa.o: remote-utils.c): Remove.
8052 (regcache-ipa.o: regcache.c): Remove.
8053 (i386-linux-ipa.o: i386-linux.c): Remove.
8054 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
8055 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
8056 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
8057 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
8058 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
8059 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
8060 (amd64-linux-ipa.o: amd64-linux.c): Remove.
8061 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
8062 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
8063 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
8064 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
8065 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
8066 (aarch64-ipa.o: aarch64.c): Remove.
8067 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8068 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8069 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8070 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8071 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8072 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8073 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8074 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8075 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8076 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8077 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8078 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8079 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8080 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8081 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8082 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8083 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8084 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8085 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8086 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8087 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8088 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8089 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8090 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8091 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8092 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8093 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8094 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8095 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8096 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8097 (tdesc-ipa.o: tdesc.c): Remove.
8098 (x32-linux-ipa.o: x32-linux.c): Remove.
8099 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8100 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8101
50cfacb7
SM
81022017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8103
8104 * Makefile.in (%.o: ../arch/%.c): New rule.
8105 (arm.o: ../arch/arm.c): Remove.
8106 (arm-linux.o: ../arch/arm-linux.c): Remove.
8107 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8108 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8109
c5a22423
SM
81102017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8111
8112 * Makefile.in (%.o: ../nat/%.c): New rule.
8113 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8114 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8115 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8116 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8117 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8118 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8119 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8120 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8121 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8122 (linux-personality.o: ../nat/linux-personality.c): Remove.
8123 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8124 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8125 (x86-linux.o: ../nat/x86-linux.c): Remove.
8126 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8127 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8128
6bda016b
SM
81292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8130
8131 * Makefile.in (%.o: ../common/%.c): New rule.
8132 (signals.o: ../common/signals.c): Remove.
8133 (print-utils.o: ../common/print-utils.c): Remove.
8134 (rsp-low.o: ../common/rsp-low.c): Remove.
8135 (common-utils.o: ../common/common-utils.c): Remove.
8136 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8137 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8138 (vec.o: ../common/vec.c): Remove.
8139 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8140 (xml-utils.o: ../common/xml-utils.c): Remove.
8141 (ptid.o: ../common/ptid.c): Remove.
8142 (buffer.o: ../common/buffer.c): Remove.
8143 (format.o: ../common/format.c): Remove.
8144 (filestuff.o: ../common/filestuff.c): Remove.
8145 (agent.o: ../common/agent.c): Remove.
8146 (errors.o: ../common/errors.c): Remove.
8147 (environ.o: ../common/environ.c): Remove.
8148 (common-debug.o: ../common/common-debug.c): Remove.
8149 (cleanups.o: ../common/cleanups.c): Remove.
8150 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8151 (fileio.o: ../common/fileio.c): Remove.
8152 (common-regcache.o: ../common/common-regcache.c): Remove.
8153 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8154 (new-op.o: ../common/new-op.c): Remove.
8155 (btrace-common.o: ../common/btrace-common.c): Remove.
8156
21122961
SM
81572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8158
8159 * Makefile.in (%.o: ../target/%.c): New rule.
8160 (waitstatus.o: ../target/waitstatus.c): Remove.
8161
c362e621
SM
81622017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8163
8164 * Makefile.in
8165 (%.c: ../regformats/%.dat,
8166 (%.c: ../regformats/arm/%.dat,
8167 (%.c: ../regformats/i386/%.dat,
8168 (%.c: ../regformats/rs6000/%.dat): New rules.
8169 (aarch64.c): Remove.
8170 (reg-arm.c): Remove.
8171 (arm-with-iwmmxt.c): Remove.
8172 (arm-with-vfpv2.c): Remove.
8173 (arm-with-vfpv3.c): Remove.
8174 (arm-with-neon.c): Remove.
8175 (reg-bfin.c): Remove.
8176 (reg-cris.c): Remove.
8177 (reg-crisv32.c): Remove.
8178 (i386.c): Remove.
8179 (i386-linux.c): Remove.
8180 (i386-avx.c): Remove.
8181 (i386-avx-linux.c): Remove.
8182 (i386-avx-avx512.c): Remove.
8183 (i386-avx-avx512-linux.c): Remove.
8184 (i386-mpx.c): Remove.
8185 (i386-mpx-linux.c): Remove.
8186 (i386-avx-mpx-avx512-pku.c): Remove.
8187 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8188 (i386-avx-mpx.c): Remove.
8189 (i386-avx-mpx-linux.c): Remove.
8190 (i386-mmx.c): Remove.
8191 (i386-mmx-linux.c): Remove.
8192 (reg-ia64.c): Remove.
8193 (reg-m32r.c): Remove.
8194 (reg-m68k.c): Remove.
8195 (reg-cf.c): Remove.
8196 (mips-linux.c): Remove.
8197 (mips-dsp-linux.c): Remove.
8198 (mips64-linux.c): Remove.
8199 (mips64-dsp-linux.c): Remove.
8200 (nios2-linux.c): Remove.
8201 (powerpc-32.c): Remove.
8202 (powerpc-32l.c): Remove.
8203 (powerpc-altivec32l.c): Remove.
8204 (powerpc-cell32l.c): Remove.
8205 (powerpc-vsx32l.c): Remove.
8206 (powerpc-isa205-32l.c): Remove.
8207 (powerpc-isa205-altivec32l.c): Remove.
8208 (powerpc-isa205-vsx32l.c): Remove.
8209 (powerpc-e500l.c): Remove.
8210 (powerpc-64l.c): Remove.
8211 (powerpc-altivec64l.c): Remove.
8212 (powerpc-cell64l.c): Remove.
8213 (powerpc-vsx64l.c): Remove.
8214 (powerpc-isa205-64l.c): Remove.
8215 (powerpc-isa205-altivec64l.c): Remove.
8216 (powerpc-isa205-vsx64l.c): Remove.
8217 (s390-linux32.c): Remove.
8218 (s390-linux32v1.c): Remove.
8219 (s390-linux32v2.c): Remove.
8220 (s390-linux64.c): Remove.
8221 (s390-linux64v1.c): Remove.
8222 (s390-linux64v2.c): Remove.
8223 (s390-te-linux64.c): Remove.
8224 (s390-vx-linux64.c): Remove.
8225 (s390-tevx-linux64.c): Remove.
8226 (s390x-linux64.c): Remove.
8227 (s390x-linux64v1.c): Remove.
8228 (s390x-linux64v2.c): Remove.
8229 (s390x-te-linux64.c): Remove.
8230 (s390x-vx-linux64.c): Remove.
8231 (s390x-tevx-linux64.c): Remove.
8232 (tic6x-c64xp-linux.c): Remove.
8233 (tic6x-c64x-linux.c): Remove.
8234 (tic6x-c62x-linux.c): Remove.
8235 (reg-sh.c): Remove.
8236 (reg-sparc64.c): Remove.
8237 (reg-spu.c): Remove.
8238 (amd64.c): Remove.
8239 (amd64-linux.c): Remove.
8240 (amd64-avx.c): Remove.
8241 (amd64-avx-linux.c): Remove.
8242 (amd64-avx-avx512.c): Remove.
8243 (amd64-avx-avx512-linux.c): Remove.
8244 (amd64-mpx.c): Remove.
8245 (amd64-mpx-linux.c): Remove.
8246 (amd64-avx-mpx-avx512-pku.c): Remove.
8247 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8248 (amd64-avx-mpx.c): Remove.
8249 (amd64-avx-mpx-linux.c): Remove.
8250 (x32.c): Remove.
8251 (x32-linux.c): Remove.
8252 (x32-avx.c): Remove.
8253 (x32-avx-linux.c): Remove.
8254 (x32-avx-avx512.c): Remove.
8255 (x32-avx-avx512-linux.c): Remove.
8256 (reg-xtensa.c): Remove.
8257 (reg-tilegx.c): Remove.
8258 (reg-tilegx32.c): Remove.
8259
1672e0d9
SDJ
82602017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8261
8262 * Makefile.in (SFILES): Add "common/environ.c".
8263 (OBJS): Add "common/environ.h".
8264
239b6d10
WT
82652017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8266
8267 * configure.ac: Check if the fs_base and gs_base members of
8268 `struct user_regs_struct' exist.
8269 * config.in: Regenerated.
8270 * configure: Likewise.
8271
694b382c
AT
82722017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8273
8274 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8275 target_read_memory.
8276 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8277 (get_next_pcs_syscall_next_pc): Likewise.
8278
7dc53023
LM
82792016-12-23 Luis Machado <lgustavo@codesourcery.com>
8280
8281 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8282 * nto-x86-low.c: Likewise.
8283
ad02e4fe
SM
82842016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8285
8286 * Makefile.in: Include disable-implicit-rules.mk.
8287
dcb07cfa
PA
82882016-11-23 Pedro Alves <palves@redhat.com>
8289
8290 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8291 (debug_vprintf): Use std::chrono::steady_clock instead of
8292 gettimeofday. Use '.' instead of ':'.
8293 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8294 (get_timestamp): Use std::chrono::steady_clock instead of
8295 gettimeofday.
8296
8629c02c
SM
82972016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8298
8299 * Makefile.in: Fix whitespace formatting.
8300
b593ecca
SM
83012016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8302
8303 * Makefile.in (SFILES, OBS): Flatten list and order
8304 alphabetically.
8305
9986ba08
PA
83062016-11-23 Pedro Alves <palves@redhat.com>
8307
8308 * event-loop.c (handle_file_event): Use warning.
8309 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8310 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8311 Use warning.
8312
4eefa7bc
PA
83132016-11-23 Pedro Alves <palves@redhat.com>
8314
8315 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8316 output.
8317 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8318 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8319 debug_printf and debug_flush for debug output.
8320 * server.c (handle_general_set): Likewise.
8321 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8322 output.
8323
5443506e
SM
83242016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8325
8326 * Makefile.in (.c.o): Replace rule with ...
8327 (%.o: %.c): ... this one.
8328
3b165252
SM
83292016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8330
8331 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8332 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8333 make.
8334 * configure.ac: Remove checks for the make program.
8335 * configure: Re-generate.
8336
0bcda685
PA
83372016-10-28 Pedro Alves <palves@redhat.com>
8338
8339 * Makefile.in (CXX_DIALECT): Get from configure.
8340 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8341 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8342 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8343 * config.in: Regenerate.
8344 * configure: Regenerate.
8345
c3805894
YQ
83462016-10-27 Yao Qi <yao.qi@linaro.org>
8347
8348 * linux-low.c (linux_supports_range_stepping): Return true if
8349 can_software_single_step return true.
8350
89342618
YQ
83512016-10-27 Yao Qi <yao.qi@linaro.org>
8352
8353 * inferiors.c (find_inferior_in_random): New function.
8354 * inferiors.h (find_inferior_in_random): Declare.
8355 * linux-low.c (linux_wait_for_event_filtered): Call
8356 find_inferior_in_random instead of find_inferior.
8357
e3652c84
YQ
83582016-10-27 Yao Qi <yao.qi@linaro.org>
8359
8360 * linux-low.c (linux_wait_1): If single-step breakpoints are
8361 inserted, remove them.
8362
5a04c4cf
PA
83632016-10-26 Pedro Alves <palves@redhat.com>
8364
8365 * linux-low.c (handle_extended_wait): Link parent/child fork
8366 threads.
8367 (linux_wait_1): Unlink them.
8368 (linux_set_resume_request): Ignore resume requests for
8369 already-resumed and unhandled fork child threads.
8370 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8371 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8372 New functions.
8373 (handle_v_requests) <vCont>: Don't call require_running.
8374 * server.h (in_queued_stop_replies): New declaration.
8375
cb93dc7f
YQ
83762016-10-24 Yao Qi <yao.qi@linaro.org>
8377
8378 PR server/20733
8379 * linux-aarch64-low.c (append_insns): Cast the return value to
8380 'uint32_t *'.
8381
a1078bea
YQ
83822016-10-10 Yao Qi <yao.qi@linaro.org>
8383
8384 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8385
1fb77080
SDJ
83862016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8387
8388 * target.c (target_supports_multi_process): New function, moved
8389 from...
8390 * target.h (target_supports_multi_process): ... here. Remove
8391 macro.
8392
39b5a3b9
TT
83932016-10-05 Tom Tromey <tom@tromey.com>
8394
8395 PR remote/20655:
8396 * tracepoint.c (handle_tracepoint_bkpts): Check
8397 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8398
c1d0b70a
YQ
83992016-10-05 Yao Qi <yao.qi@linaro.org>
8400
8401 * configure.srv: Update the path of arm-*.xml files.
8402
0a69eedb
YQ
84032016-10-05 Terry Guo <terry.guo@arm.com>
8404 Yao Qi <yao.qi@linaro.org>
8405
8406 * Makefile.in: Adjust the path of rules.
8407 * configure.srv: Update the path of xml files.
8408 * regformats/arm-with-iwmmxt.dat: Regenerated.
8409 * regformats/arm-with-neon.dat: Likewise.
8410 * regformats/arm-with-vfpv2.dat: Likewise.
8411 * regformats/arm-with-vfpv3.dat Likewise.
8412
17e16485
YQ
84132016-09-30 Yao Qi <yao.qi@linaro.org>
8414
8415 PR gdbserver/20627
8416 * target.c (target_stop_and_wait): Don't call
8417 target_continue_no_signal, use resume_stop instead.
8418
edeeb602
YQ
84192016-09-26 Yao Qi <yao.qi@linaro.org>
8420
8421 * linux-low.c (linux_wait_1): Call debug_exit.
8422
503b1c39
PA
84232016-09-23 Pedro Alves <palves@redhat.com>
8424
8425 * Makefile.in (SFILES): Add common/new-op.c.
8426 (OBS): Add common/new-op.o.
8427 (new-op.o): New rule.
8428
74172ecf
SM
84292016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8430
8431 * .gitinore: Ignore more files.
8432
fc6cda2e
YQ
84332016-09-21 Yao Qi <yao.qi@linaro.org>
8434
8435 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8436 23.
8437
bc1e6c81
SDJ
84382016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8439
8440 * server.c (start_inferior): Call target_mourn_inferior instead of
8441 mourn_inferior; pass ptid_t argument to it.
8442 (resume): Likewise.
8443 (handle_target_event): Likewise.
8444 * target.c (target_mourn_inferior): New function.
8445 * target.h (mourn_inferior): Delete macro.
8446
0e00e962
AA
84472016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8448
8449 * linux-low.c (lwp_is_stepping): New function.
8450
1d8cb77d
CL
84512016-09-06 Carl Love <cel@us.ibm.com>
8452
8453 * server.c (start_inferior): Fixed comment, requested comment change
8454 didn't get updated correctly. Removed reference to ptrace () call as
8455 it is only true on Linux systems.
8456
7313bced
CL
84572016-09-06 Carl Love <cel@us.ibm.com>
8458
8459 * server.c (start_inferior): Do not call
8460 function target_post_create_inferior () if the
8461 inferior process has already exited.
8462
cf6de44d
PA
84632016-09-05 Pedro Alves <palves@redhat.com>
8464
8465 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8466 (COMPILE.pre, CC_LD): Use CXX directly.
8467 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8468 * acinclude.m4: Don't include build-with-cxx.m4.
8469 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8470 * configure: Regenerate.
8471
c1da6748
AT
84722016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8473
8474 PR gdb/19495
8475 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8476 call writing data to own_buf.
8477
f2b9e3df
SDJ
84782016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8479
8480 * target.c (mywait): Call target_wait instead of
8481 the_target->wait.
8482 (target_wait): New function.
8483
049a8570
SDJ
84842016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8485
8486 * server.c (start_inferior): New variable 'ptid'. Replace calls
8487 to the_target->resume by target_continue{,_no_signal}, depending
8488 on the case.
8489 * target.c (target_stop_and_wait): Call target_continue_no_signal
8490 instead of the_target->resume.
8491 (target_continue): New function.
8492
3aa5cfa0
AT
84932016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8494
8495 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8496
754653a7
AZ
84972016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8498
8499 PR server/20491
8500 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8501 ps_prochandle.
8502 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8503 * linux-arm-low.c (ps_get_thread_area): Likewise.
8504 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8505 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8506 * linux-mips-low.c (ps_get_thread_area): Likewise.
8507 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8508 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8509 * linux-x86-low.c (ps_get_thread_area): Likewise.
8510 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8511
ed036b40
PA
85122016-08-19 Pedro Alves <palves@redhat.com>
8513
8514 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8515
c8ef42ee
PA
85162016-08-19 Pedro Alves <palves@redhat.com>
8517
8518 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8519 comment. Use memcpy instead of casting through unsigned long.
8520
9c235a72
PA
85212016-08-19 Pedro Alves <palves@redhat.com>
8522
8523 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8524 allocating around 0x80000000.
8525
201506da
PA
85262016-08-19 Pedro Alves <palves@redhat.com>
8527
8528 PR gdb/20415
8529 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8530 (x32-avx512-linux-ipa.o): New rules.
8531 * configure.ac (x86_64-*-linux*): New x32 check.
8532 * configure.srv (ipa_x32_linux_regobj): New.
8533 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8534 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8535 descriptions.
8536 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8537 descriptions.
8538 * configure: Regenerate.
8539
f348d89a
PA
85402016-08-09 Pedro Alves <palves@redhat.com>
8541
8542 PR gdb/18653
8543 * Makefile.in (OBS): Add signals-state-save-restore.o.
8544 (signals-state-save-restore.o): New rule.
8545 * config.in: Regenerate.
8546 * configure: Regenerate.
8547 * linux-low.c: Include "signals-state-save-restore.h".
8548 (linux_create_inferior): Call
8549 restore_original_signals_state.
8550 * server.c: Include "dispositions-save-restore.h".
8551 (captured_main): Call save_original_signals_state.
8552
1baf5149
PA
85532016-08-05 Pedro Alves <palves@redhat.com>
8554
8555 * configure: Regenerate.
8556
fcd4a73d
YQ
85572016-08-04 Yao Qi <yao.qi@linaro.org>
8558
8559 * linux-low.c (regsets_fetch_inferior_registers): Check
8560 errno is ESRCH or not.
8561
979659d0
YQ
85622016-08-02 Yao Qi <yao.qi@linaro.org>
8563
8564 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8565 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8566 (thread_db_load_search): Update.
8567 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8568 td_ta_set_event and td_ta_event_getmsg.
8569
6598661d
PA
85702016-07-26 Pedro Alves <palves@redhat.com>
8571
8572 PR server/20414
8573 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8574 of unsigned long for 64-bit registers and use uint32_t instead of
8575 unsigned int for 32-bit registers.
8576
9cf12d57
PA
85772016-07-26 Pedro Alves <palves@redhat.com>
8578
8579 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8580 to 'ptrace'.
8581
305450ed
TT
85822016-07-21 Tom Tromey <tom@tromey.com>
8583
8584 * configure: Rebuild.
8585
2583da7c
YQ
85862016-07-21 Yao Qi <yao.qi@linaro.org>
8587
8588 * mem-break.c (find_gdb_breakpoint): Cast bp to
8589 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8590
21536b36
YQ
85912016-07-21 Yao Qi <yao.qi@linaro.org>
8592
8593 * server.c (handle_v_requests): Support s and S actions
8594 if target_supports_software_single_step return true.
8595
8901d193
YQ
85962016-07-21 Yao Qi <yao.qi@linaro.org>
8597
8598 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8599 is resume_step, call maybe_hw_step.
8600 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8601 and unstop them.
8602 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8603 breakpoints or not.
8604 (proceed_one_lwp): If resume request is resume_step, install
8605 reinsert breakpoints and call maybe_hw_step.
8606
0e9a339e
YQ
86072016-07-21 Yao Qi <yao.qi@linaro.org>
8608
8609 * linux-low.c (proceed_one_lwp): Declare.
8610 (linux_resume_one_thread): Remove local variable 'step'.
8611 Lift code enqueue signal. Call proceed_one_lwp instead of
8612 linux_resume_one_lwp.
8613
4281b351
YQ
86142016-07-21 Yao Qi <yao.qi@linaro.org>
8615
8616 * linux-low.c (linux_resume_one_thread): Call
8617 enqueue_pending_signal.
8618
984a2c04
YQ
86192016-07-21 Yao Qi <yao.qi@linaro.org>
8620
8621 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8622 * inferiors.c (do_restore_current_thread_cleanup): New function.
8623 (make_cleanup_restore_current_thread): Likewise.
8624 * linux-low.c (install_software_single_step_breakpoints): Call
8625 make_cleanup_restore_current_thread. Switch current_thread to
8626 thread.
8627
bec903c9
YQ
86282016-07-21 Yao Qi <yao.qi@linaro.org>
8629
8630 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8631 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8632 (clone_one_breakpoint): Likewise.
8633 (delete_reinsert_breakpoints): Change parameter to thread.
8634 Callers updated.
8635 (has_reinsert_breakpoints): Likewise.
8636 (uninsert_reinsert_breakpoints): Likewise.
8637 (reinsert_reinsert_breakpoints): Likewise.
8638 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8639 (delete_reinsert_breakpoints): Likewise.
8640 (reinsert_reinsert_breakpoints): Likewise.
8641 (uninsert_reinsert_breakpoints): Likewise.
8642 (has_reinsert_breakpoints): Likewise.
8643
63c40ec7
YQ
86442016-07-21 Yao Qi <yao.qi@linaro.org>
8645
8646 * inferiors.c (get_thread_process): Make parameter const.
8647 * inferiors.h (get_thread_process): Update declaration.
8648 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8649 Add new parameters child_thread and parent_thread. Callers
8650 updated.
8651 * mem-break.h (clone_all_breakpoints): Update declaration.
8652
9aa76cd0
YQ
86532016-07-21 Yao Qi <yao.qi@linaro.org>
8654
8655 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8656 <command_list, handler>: Remove.
8657 (struct gdb_breakpoint): New.
8658 (struct other_breakpoint): New.
8659 (struct reinsert_breakpoint): New.
8660 (is_gdb_breakpoint): New function.
8661 (any_persistent_commands): Update command_list if
8662 is_gdb_breakpoint returns true.
8663 (set_breakpoint): Create breakpoints according to their types.
8664 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8665 (set_gdb_breakpoint_1): Likewise.
8666 (set_gdb_breakpoint): Likewise.
8667 (clear_breakpoint_conditions): Change parameter type to
8668 'struct gdb_breakpoint *'.
8669 (clear_breakpoint_commands): Likewise.
8670 (clear_breakpoint_conditions_and_commands): Likewise.
8671 (add_condition_to_breakpoint): Likewise.
8672 (add_breakpoint_condition): Likewise.
8673 (add_commands_to_breakpoint): Likewise.
8674 (check_breakpoints): Check other_breakpoint.
8675 (clone_one_breakpoint): Clone breakpopint according to its type.
8676 * mem-break.h (struct gdb_breakpoint): Declare.
8677 (set_gdb_breakpoint): Update declaration.
8678 (clear_breakpoint_conditions_and_commands): Likewise.
8679 (add_breakpoint_condition): Likewise.
8680 (add_breakpoint_commands): Likewise.
8681 * server.c (process_point_options): Change parameter type to
8682 'struct gdb_breakpoint *'.
8683
811f8301
YQ
86842016-07-21 Yao Qi <yao.qi@linaro.org>
8685
8686 * mem-break.c (set_breakpoint_at): Rename it to ...
8687 (set_breakpoint_type_at): ... it.
8688 (set_breakpoint_at): Call set_breakpoint_type_at.
8689 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8690 * mem-break.h (set_breakpoint_at): Update comments.
8691
b1c51e36
CLT
86922016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8693
8694 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8695 to buf parameter.
8696 (nios2_store_gregset): Likewise.
8697
ced2dffb
PA
86982016-07-01 Pedro Alves <palves@redhat.com>
8699 Antoine Tremblay <antoine.tremblay@ericsson.com>
8700
8701 * linux-low.c: Change interface to take the target lwp_info
8702 pointer directly and return void. Handle detaching from a zombie
8703 thread.
8704 (linux_detach_lwp_callback): New function.
8705 (linux_detach): Detach from the leader thread after detaching from
8706 the clone threads.
8707
2ac09a5b
YQ
87082016-06-28 Yao Qi <yao.qi@linaro.org>
8709
8710 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8711 for variable new_offset.
8712 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8713 (aarch64_ftrace_insn_reloc_cb): Likewise.
8714 (aarch64_ftrace_insn_reloc_tb): Likewise.
8715 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8716 PRIx64 instead of PRIx32.
8717
79e7fd4f
YQ
87182016-06-28 Yao Qi <yao.qi@linaro.org>
8719
8720 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8721 (the_low_target): Install arm_get_syscall_trapinfo.
8722
061fc021
YQ
87232016-06-28 Yao Qi <yao.qi@linaro.org>
8724
8725 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8726 function.
8727 (the_low_target): Install aarch64_get_syscall_trapinfo.
8728
4cc32bec
YQ
87292016-06-28 Yao Qi <yao.qi@linaro.org>
8730
8731 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8732 Callers updated.
8733 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8734 Remove parameter sysno.
8735 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8736 sysret.
8737
782c1122
AA
87382016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8739
8740 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8741 (s390_emit_ne_goto): Likewise.
8742 (s390_emit_lt_goto): Likewise.
8743 (s390_emit_le_goto): Likewise.
8744 (s390_emit_gt_goto): Likewise.
8745 (s390_emit_ge_goto): Likewise.
8746 (s390x_emit_eq_goto): Likewise.
8747 (s390x_emit_ne_goto): Likewise.
8748 (s390x_emit_lt_goto): Likewise.
8749 (s390x_emit_le_goto): Likewise.
8750 (s390x_emit_gt_goto): Likewise.
8751 (s390x_emit_ge_goto): Likewise.
8752 (s390_emit_ops_impl): Mark variable static.
8753 (s390x_emit_ops): Likewise.
8754
2e7b624b
YQ
87552016-06-17 Yao Qi <yao.qi@linaro.org>
8756
8757 * linux-low.c (handle_extended_wait): Call
8758 uninsert_reinsert_breakpoints for the parent process. Remove
8759 reinsert breakpoints from the child process. Reinsert them to
8760 the parent process when vfork is done.
8761 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8762 (reinsert_reinsert_breakpoints): New function.
8763 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8764 (reinsert_reinsert_breakpoints): Declare.
8765
8a81c5d7
YQ
87662016-06-17 Yao Qi <yao.qi@linaro.org>
8767
8768 * linux-low.c (handle_extended_wait): If the parent is doing
8769 step-over, remove the reinsert breakpoints from the forked child.
8770
f50bf8e5
YQ
87712016-06-17 Yao Qi <yao.qi@linaro.org>
8772
8773 * linux-low.c (unsuspend_all_lwps): Declare.
8774 (linux_low_filter_event): If thread exited, call finish_step_over.
8775 If step-over is finished, unsuspend other threads.
8776
8376a3cb
YQ
87772016-06-17 Yao Qi <yao.qi@linaro.org>
8778
8779 * linux-low.c (linux_resume_one_lwp_throw): Assert
8780 has_reinsert_breakpoints returns false.
8781 * mem-break.c (delete_disabled_breakpoints): Assert
8782 bp type isn't reinsert_breakpoint.
8783
f79b145d
YQ
87842016-06-17 Yao Qi <yao.qi@linaro.org>
8785
8786 * linux-low.c (maybe_hw_step): New function.
8787 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8788 (finish_step_over): Switch current_thread to lwp temporarily,
8789 and assert has_reinsert_breakpoints returns true.
8790 (proceed_one_lwp): Call maybe_hw_step.
8791 * mem-break.c (has_reinsert_breakpoints): New function.
8792 * mem-break.h (has_reinsert_breakpoints): Declare.
8793
0ae534d2
JT
87942016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8795
8796 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8797
fcdad592
YQ
87982016-05-17 Yao Qi <yao.qi@linaro.org>
8799
8800 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8801 instead of find_inferior.
8802
9e784964
YQ
88032016-05-05 Yao Qi <yao.qi@linaro.org>
8804
8805 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8806 Initialize res to zero.
8807
cf2ebb6e
YQ
88082016-05-05 Yao Qi <yao.qi@linaro.org>
8809
8810 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8811 to uint32_t.
8812
c1aebf87
UW
88132016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8814
8815 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8816 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8817 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8818
35fd2deb 88192016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8820 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8821
8822 * tracepoint.c (write_inferior_int8): New function.
8823 (cmd_qtenable_disable): Write enable flag using
8824 write_inferior_int8.
8825
484b3c32
YQ
88262016-04-25 Yao Qi <yao.qi@linaro.org>
8827
8828 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8829 (need_step_over_p): Return zero if the LWP has pending signals
8830 can be delivered on software single step target.
8831
85ba7d86
YQ
88322016-04-25 Yao Qi <yao.qi@linaro.org>
8833
8834 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8835 return instead of error.
8836
3539aa13
YQ
88372016-04-22 Yao Qi <yao.qi@linaro.org>
8838
8839 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8840 to 23.
8841
5b061e98
YQ
88422016-04-22 Yao Qi <yao.qi@linaro.org>
8843
8844 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8845 signal when stepping over breakpoint with software single
8846 step.
8847
3451269c
PA
88482016-04-21 Pedro Alves <palves@redhat.com>
8849
8850 * linux-s390-low.c (s390_collect_ptrace_register)
8851 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8852 add casts.
8853 (s390_check_regset): Use void * instead of gdb_byte *.
8854
a2358508
PA
88552016-04-20 Pedro Alves <palves@redhat.com>
8856
8857 * configure: Renegerate.
8858
6885166d
YQ
88592016-04-20 Yao Qi <yao.qi@linaro.org>
8860
8861 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8862 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8863 number 16.
8864 (arm_store_gregset): Likewise.
8865
2b863f51
WT
88662016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8867
8868 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8869 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8870 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8871 (amd64-avx-mpx-linux.c): New rules.
8872 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8873 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8874 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8875 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8876 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8877 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8878 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8879 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8880 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8881 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8882 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8883 * linux-x86-low.c (x86_linux_read_description): Add case for
8884 X86_XSTATE_AVX_MPX_MASK.
8885 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8886 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8887 init_registers_i386_avx_mpx_linux.
8888 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8889 (initialize_low_tracepoint): Call
8890 init_registers_i386_avx_mpx_linux.
8891 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8892 (initialize_low_tracepoint): Call
8893 init_registers_amd64_avx_mpx_linux.
8894 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8895 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8896 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8897 declarations.
8898
9b30624b
PA
88992016-04-18 Pedro Alves <palves@redhat.com>
8900
8901 * configure: Regenerate.
8902
45e3745e
AT
89032016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8904
8905 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8906 (aarch64_emit_sub): Likewise.
8907
2afc13ff
PA
89082016-04-12 Pedro Alves <palves@redhat.com>
8909
8910 * utils.c (prepare_to_throw_exception): Delete.
8911
6e774b13
SM
89122016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8913
8914 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8915
4dca19f8
MK
89162016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8917
8918 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8919
d0a9981f
MK
89202016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8921
8922 * linux-aarch64-ipa.c: Add <elf.h> include.
8923 * linux-ppc-ipa.c: Add <elf.h> include.
8924 * linux-s390-ipa.c: Add <elf.h> include.
8925
252db07e
MK
89262016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8927
8928 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8929 (get_raw_reg_ptr): Likewise.
8930 (get_trace_state_variable_value_ptr): Likewise.
8931 (set_trace_state_variable_value_ptr): Likewise.
8932 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8933 char *.
8934
14e2b6d9
MK
89352016-03-31 Wei-cheng Wang <cole945@gmail.com>
8936 Marcin Kościelnicki <koriakin@0x04.net>
8937
8938 PR/17221
8939 * linux-ppc-low.c (emit_insns): New function.
8940 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8941 (ppc_emit_prologue): New function.
8942 (ppc_emit_epilogue): New function.
8943 (ppc_emit_add): New function.
8944 (ppc_emit_sub): New function.
8945 (ppc_emit_mul): New function.
8946 (ppc_emit_lsh): New function.
8947 (ppc_emit_rsh_signed): New function.
8948 (ppc_emit_rsh_unsigned): New function.
8949 (ppc_emit_ext): New function.
8950 (ppc_emit_zero_ext): New function.
8951 (ppc_emit_log_not): New function.
8952 (ppc_emit_bit_and): New function.
8953 (ppc_emit_bit_or): New function.
8954 (ppc_emit_bit_xor): New function.
8955 (ppc_emit_bit_not): New function.
8956 (ppc_emit_equal): New function.
8957 (ppc_emit_less_signed): New function.
8958 (ppc_emit_less_unsigned): New function.
8959 (ppc_emit_ref): New function.
8960 (ppc_emit_const): New function.
8961 (ppc_emit_reg): New function.
8962 (ppc_emit_pop): New function.
8963 (ppc_emit_stack_flush): New function.
8964 (ppc_emit_swap): New function.
8965 (ppc_emit_stack_adjust): New function.
8966 (ppc_emit_call): New function.
8967 (ppc_emit_int_call_1): New function.
8968 (ppc_emit_void_call_2): New function.
8969 (ppc_emit_if_goto): New function.
8970 (ppc_emit_goto): New function.
8971 (ppc_emit_eq_goto): New function.
8972 (ppc_emit_ne_goto): New function.
8973 (ppc_emit_lt_goto): New function.
8974 (ppc_emit_le_goto): New function.
8975 (ppc_emit_gt_goto): New function.
8976 (ppc_emit_ge_goto): New function.
8977 (ppc_write_goto_address): New function.
8978 (ppc_emit_ops_impl): New static variable.
8979 (ppc64v1_emit_prologue): New function.
8980 (ppc64v2_emit_prologue): New function.
8981 (ppc64_emit_epilogue): New function.
8982 (ppc64_emit_add): New function.
8983 (ppc64_emit_sub): New function.
8984 (ppc64_emit_mul): New function.
8985 (ppc64_emit_lsh): New function.
8986 (ppc64_emit_rsh_signed): New function.
8987 (ppc64_emit_rsh_unsigned): New function.
8988 (ppc64_emit_ext): New function.
8989 (ppc64_emit_zero_ext): New function.
8990 (ppc64_emit_log_not): New function.
8991 (ppc64_emit_bit_and): New function.
8992 (ppc64_emit_bit_or): New function.
8993 (ppc64_emit_bit_xor): New function.
8994 (ppc64_emit_bit_not): New function.
8995 (ppc64_emit_equal): New function.
8996 (ppc64_emit_less_signed): New function.
8997 (ppc64_emit_less_unsigned): New function.
8998 (ppc64_emit_ref): New function.
8999 (ppc64_emit_const): New function.
9000 (ppc64v1_emit_reg): New function.
9001 (ppc64v2_emit_reg): New function.
9002 (ppc64_emit_pop): New function.
9003 (ppc64_emit_stack_flush): New function.
9004 (ppc64_emit_swap): New function.
9005 (ppc64v1_emit_call): New function.
9006 (ppc64v2_emit_call): New function.
9007 (ppc64v1_emit_int_call_1): New function.
9008 (ppc64v2_emit_int_call_1): New function.
9009 (ppc64v1_emit_void_call_2): New function.
9010 (ppc64v2_emit_void_call_2): New function.
9011 (ppc64_emit_if_goto): New function.
9012 (ppc64_emit_eq_goto): New function.
9013 (ppc64_emit_ne_goto): New function.
9014 (ppc64_emit_lt_goto): New function.
9015 (ppc64_emit_le_goto): New function.
9016 (ppc64_emit_gt_goto): New function.
9017 (ppc64_emit_ge_goto): New function.
9018 (ppc64v1_emit_ops_impl): New static variable.
9019 (ppc64v2_emit_ops_impl): New static variable.
9020 (ppc_emit_ops): New function.
9021 (linux_low_target): Wire in ppc_emit_ops.
9022
a2174ba4
MK
90232016-03-31 Wei-cheng Wang <cole945@gmail.com>
9024 Marcin Kościelnicki <koriakin@0x04.net>
9025
9026 PR/17221
9027 * Makefile.in: Add powerpc-*-ipa.o
9028 * configure.srv: Add ipa_obj for powerpc*-linux.
9029 * linux-ppc-ipa.c: New file.
9030 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
9031 includes.
9032 (PPC_FIELD): New macro.
9033 (PPC_SEXT): New macro.
9034 (PPC_OP6): New macro.
9035 (PPC_BO): New macro.
9036 (PPC_LI): New macro.
9037 (PPC_BD): New macro.
9038 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
9039 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
9040 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
9041 (ppc_get_thread_area): New function.
9042 (is_elfv2_inferior): New function.
9043 (gen_ds_form): New function.
9044 (GEN_STD): New macro.
9045 (GEN_STDU): New macro.
9046 (GEN_LD): New macro.
9047 (GEN_LDU): New macro.
9048 (gen_d_form): New function.
9049 (GEN_ADDI): New macro.
9050 (GEN_ADDIS): New macro.
9051 (GEN_LI): New macro.
9052 (GEN_LIS): New macro.
9053 (GEN_ORI): New macro.
9054 (GEN_ORIS): New macro.
9055 (GEN_LWZ): New macro.
9056 (GEN_STW): New macro.
9057 (GEN_STWU): New macro.
9058 (gen_xfx_form): New function.
9059 (GEN_MFSPR): New macro.
9060 (GEN_MTSPR): New macro.
9061 (GEN_MFCR): New macro.
9062 (GEN_MTCR): New macro.
9063 (GEN_SYNC): New macro.
9064 (GEN_LWSYNC): New macro.
9065 (gen_x_form): New function.
9066 (GEN_OR): New macro.
9067 (GEN_MR): New macro.
9068 (GEN_LWARX): New macro.
9069 (GEN_STWCX): New macro.
9070 (GEN_CMPW): New macro.
9071 (gen_md_form): New function.
9072 (GEN_RLDICL): New macro.
9073 (GEN_RLDICR): New macro.
9074 (gen_i_form): New function.
9075 (GEN_B): New macro.
9076 (GEN_BL): New macro.
9077 (gen_b_form): New function.
9078 (GEN_BNE): New macro.
9079 (GEN_LOAD): New macro.
9080 (GEN_STORE): New macro.
9081 (gen_limm): New function.
9082 (gen_atomic_xchg): New function.
9083 (gen_call): New function.
9084 (ppc_relocate_instruction): New function.
9085 (ppc_install_fast_tracepoint_jump_pad): New function.
9086 (ppc_get_min_fast_tracepoint_insn_len): New function.
9087 (ppc_get_ipa_tdesc_idx): New function.
9088 (the_low_target): Wire in the new functions.
9089 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9090 tdescs.
9091 * linux-ppc-tdesc.h: New file.
9092
a13c4696
MK
90932016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9094
9095 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9096 (alloc_jump_pad_buffer): New function.
9097 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9098 (alloc_jump_pad_buffer): New function.
9099 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9100 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9101 (alloc_jump_pad_buffer): New function.
9102 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9103 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9104 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9105 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9106
1cda1512
MK
91072016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9108
9109 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9110 * linux-amd64-ipa.c: Likewise.
9111 * linux-i386-ipa.c: Likewise.
9112 * linux-s390-ipa.c: Likewise.
9113 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9114 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9115 set_trace_state_variable_value_ptr.
9116 (struct ipa_sym_addresses): Likewise.
9117 (symbol_list): Likewise.
9118 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9119 accessing gdb_collect directly.
9120 (gdb_collect_ptr_type): New typedef.
9121 (get_raw_reg_ptr_type): New typedef.
9122 (get_trace_state_variable_value_ptr_type): New typedef.
9123 (set_trace_state_variable_value_ptr_type): New typedef.
9124 (gdb_collect_ptr): New global.
9125 (get_raw_reg_ptr): New global.
9126 (get_trace_state_variable_value_ptr): New global.
9127 (set_trace_state_variable_value_ptr): New global.
9128 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9129 accessing get_raw_reg directly.
9130 (get_get_tsv_func_addr): Likewise for
9131 get_trace_state_variable_value_ptr.
9132 (get_set_tsv_func_addr): Likewise for
9133 set_trace_state_variable_value_ptr.
9134 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9135
72fb5488
SM
91362016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9137
9138 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9139
28170b88
MK
91402016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9141
9142 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9143 packets.
9144 (relocate_instruction): Remove own_buf.
9145 * server.c (own_buf): Make global.
9146 (handle_v_requests): Make global.
9147 * server.h (own_buf): New declaration.
9148 (handle_v_requests): New prototype.
9149
f39e8743
MK
91502016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9151
9152 PR 18377
9153 * linux-s390-low.c (add_insns): New function.
9154 (s390_emit_prologue): New function.
9155 (s390_emit_epilogue): New function.
9156 (s390_emit_add): New function.
9157 (s390_emit_sub): New function.
9158 (s390_emit_mul): New function.
9159 (s390_emit_lsh): New function.
9160 (s390_emit_rsh_signed): New function.
9161 (s390_emit_rsh_unsigned): New function.
9162 (s390_emit_ext): New function.
9163 (s390_emit_log_not): New function.
9164 (s390_emit_bit_and): New function.
9165 (s390_emit_bit_or): New function.
9166 (s390_emit_bit_xor): New function.
9167 (s390_emit_bit_not): New function.
9168 (s390_emit_equal): New function.
9169 (s390_emit_less_signed): New function.
9170 (s390_emit_less_unsigned): New function.
9171 (s390_emit_ref): New function.
9172 (s390_emit_if_goto): New function.
9173 (s390_emit_goto): New function.
9174 (s390_write_goto_address): New function.
9175 (s390_emit_litpool): New function.
9176 (s390_emit_const): New function.
9177 (s390_emit_call): New function.
9178 (s390_emit_reg): New function.
9179 (s390_emit_pop): New function.
9180 (s390_emit_stack_flush): New function.
9181 (s390_emit_zero_ext): New function.
9182 (s390_emit_swap): New function.
9183 (s390_emit_stack_adjust): New function.
9184 (s390_emit_set_r2): New function.
9185 (s390_emit_int_call_1): New function.
9186 (s390_emit_void_call_2): New function.
9187 (s390_emit_eq_goto): New function.
9188 (s390_emit_ne_goto): New function.
9189 (s390_emit_lt_goto): New function.
9190 (s390_emit_le_goto): New function.
9191 (s390_emit_gt_goto): New function.
9192 (s390_emit_ge_goto): New function.
9193 (s390x_emit_prologue): New function.
9194 (s390x_emit_epilogue): New function.
9195 (s390x_emit_add): New function.
9196 (s390x_emit_sub): New function.
9197 (s390x_emit_mul): New function.
9198 (s390x_emit_lsh): New function.
9199 (s390x_emit_rsh_signed): New function.
9200 (s390x_emit_rsh_unsigned): New function.
9201 (s390x_emit_ext): New function.
9202 (s390x_emit_log_not): New function.
9203 (s390x_emit_bit_and): New function.
9204 (s390x_emit_bit_or): New function.
9205 (s390x_emit_bit_xor): New function.
9206 (s390x_emit_bit_not): New function.
9207 (s390x_emit_equal): New function.
9208 (s390x_emit_less_signed): New function.
9209 (s390x_emit_less_unsigned): New function.
9210 (s390x_emit_ref): New function.
9211 (s390x_emit_if_goto): New function.
9212 (s390x_emit_const): New function.
9213 (s390x_emit_call): New function.
9214 (s390x_emit_reg): New function.
9215 (s390x_emit_pop): New function.
9216 (s390x_emit_stack_flush): New function.
9217 (s390x_emit_zero_ext): New function.
9218 (s390x_emit_swap): New function.
9219 (s390x_emit_stack_adjust): New function.
9220 (s390x_emit_int_call_1): New function.
9221 (s390x_emit_void_call_2): New function.
9222 (s390x_emit_eq_goto): New function.
9223 (s390x_emit_ne_goto): New function.
9224 (s390x_emit_lt_goto): New function.
9225 (s390x_emit_le_goto): New function.
9226 (s390x_emit_gt_goto): New function.
9227 (s390x_emit_ge_goto): New function.
9228 (s390_emit_ops): New function.
9229 (struct linux_target_ops): Fill in emit_ops hook.
9230
abd9baf9
MK
92312016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9232
9233 PR 18377
9234 * Makefile.in: Add s390 IPA files.
9235 * configure.srv: Build IPA for s390.
9236 * linux-s390-ipa.c: New file.
9237 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9238 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9239 (tdesc_s390_linux32): Likewise.
9240 (init_registers_s390_linux32v1): Likewise.
9241 (tdesc_s390_linux32v1): Likewise.
9242 (init_registers_s390_linux32v2): Likewise.
9243 (tdesc_s390_linux32v2): Likewise.
9244 (init_registers_s390_linux64): Likewise.
9245 (tdesc_s390_linux64): Likewise.
9246 (init_registers_s390_linux64v1): Likewise.
9247 (tdesc_s390_linux64v1): Likewise.
9248 (init_registers_s390_linux64v2): Likewise.
9249 (tdesc_s390_linux64v2): Likewise.
9250 (init_registers_s390_te_linux64): Likewise.
9251 (tdesc_s390_te_linux64): Likewise.
9252 (init_registers_s390_vx_linux64): Likewise.
9253 (tdesc_s390_vx_linux64): Likewise.
9254 (init_registers_s390_tevx_linux64): Likewise.
9255 (tdesc_s390_tevx_linux64): Likewise.
9256 (init_registers_s390x_linux64): Likewise.
9257 (tdesc_s390x_linux64): Likewise.
9258 (init_registers_s390x_linux64v1): Likewise.
9259 (tdesc_s390x_linux64v1): Likewise.
9260 (init_registers_s390x_linux64v2): Likewise.
9261 (tdesc_s390x_linux64v2): Likewise.
9262 (init_registers_s390x_te_linux64): Likewise.
9263 (tdesc_s390x_te_linux64): Likewise.
9264 (init_registers_s390x_vx_linux64): Likewise.
9265 (tdesc_s390x_vx_linux64): Likewise.
9266 (init_registers_s390x_tevx_linux64): Likewise.
9267 (tdesc_s390x_tevx_linux64): Likewise.
9268 (have_hwcap_s390_vx): New static variable.
9269 (s390_arch_setup): Fill have_hwcap_s390_vx.
9270 (s390_get_thread_area): New function.
9271 (s390_ft_entry_gpr_esa): New const.
9272 (s390_ft_entry_gpr_zarch): New const.
9273 (s390_ft_entry_misc): New const.
9274 (s390_ft_entry_fr): New const.
9275 (s390_ft_entry_vr): New const.
9276 (s390_ft_main_31): New const.
9277 (s390_ft_main_64): New const.
9278 (s390_ft_exit_fr): New const.
9279 (s390_ft_exit_vr): New const.
9280 (s390_ft_exit_misc): New const.
9281 (s390_ft_exit_gpr_esa): New const.
9282 (s390_ft_exit_gpr_zarch): New const.
9283 (append_insns): New function.
9284 (s390_relocate_instruction): New function.
9285 (s390_install_fast_tracepoint_jump_pad): New function.
9286 (s390_get_min_fast_tracepoint_insn_len): New function.
9287 (s390_get_ipa_tdesc_idx): New function.
9288 (struct linux_target_ops): Wire in the above functions.
9289 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9290 * linux-s390-tdesc.h: New file.
9291
a4105d04
MK
92922016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9293
9294 * linux-s390-low.c (s390_supports_tracepoints): New function.
9295 (struct linux_target_ops): Fill supports_tracepoints hook.
9296
35ac8b3e
YQ
92972016-03-18 Yao Qi <yao.qi@linaro.org>
9298
9299 * linux-low.c (lwp_signal_can_be_delivered): New function.
9300 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9301
94610ec4
YQ
93022016-03-18 Yao Qi <yao.qi@linaro.org>
9303
9304 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9305 0 if signal is enqueued. Remove 'signal' from one debugging
9306 message. Move one debugging message to some lines below.
9307 Remove code setting 'signal' to 0.
9308
80aea927
YQ
93092016-03-18 Yao Qi <yao.qi@linaro.org>
9310
9311 * linux-low.c (linux_low_filter_event): Remove redundant
9312 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9313
b04fd3be
MK
93142016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9315
9316 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9317 (struct linux_target_ops): Wire in the above.
9318
c40c8d4b
YQ
93192016-03-03 Yao Qi <yao.qi@linaro.org>
9320
9321 * linux-low.c: Update comments to start_step_over.
9322
0f8288ae
YQ
93232016-03-03 Yao Qi <yao.qi@linaro.org>
9324
9325 PR server/19736
9326 * linux-low.c (handle_extended_wait): Set child suspended
9327 if event_lwp->bp_reinsert isn't zero.
9328
fdbd04a8
YQ
93292016-03-02 Yao Qi <yao.qi@linaro.org>
9330
9331 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9332 enqueue_pending_signal.
9333
6896a8fa
MK
93342016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9335
9336 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9337 is actually loaded.
9338
ab503087
MK
93392016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9340
9341 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9342 (s390_regmap_3264) [!__s390x__]: New global.
9343 (s390_collect_ptrace_register): Skip map entries containing -1.
9344 (s390_supply_ptrace_register): Ditto.
9345 (s390_fill_gprs_high): New function.
9346 (s390_store_gprs_high): New function.
9347 (s390_regsets): Add NT_S390_HIGH_GPRS.
9348 (s390_get_hwcap): Enable on 31-bit.
9349 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9350 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9351 Detect NT_S390_HIGH_GPRS.
9352 (s390_usrregs_info_3264): Enable on 31-bit.
9353 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9354 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9355
ae91f625
MK
93562016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9357
9358 PR gdb/13808
9359 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9360 * configure.srv: Ditto.
9361 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9362 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9363 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9364 (init_registers_amd64_linux): Remove prototype.
9365 (tdesc_amd64_linux): Remove declaration.
9366 (get_ipa_tdesc): New function.
9367 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9368 initialize remaining tdescs.
9369 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9370 (init_registers_i386_linux): Remove prototype.
9371 (tdesc_i386_linux): Remove declaration.
9372 (get_ipa_tdesc): New function.
9373 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9374 initialize remaining tdescs.
9375 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9376 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9377 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9378 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9379 (x86_get_ipa_tdesc_idx): New function.
9380 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9381 * linux-x86-tdesc.h: New file.
9382 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9383 (target_get_ipa_tdesc_idx): New macro.
9384 * tracepoint.c (ipa_tdesc_idx): New macro.
9385 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9386 (symbol_list): Add ipa_tdesc_idx.
9387 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9388 (ipa_tdesc): Remove.
9389 (ipa_tdesc_idx): New variable.
9390 (get_context_regcache): Use get_ipa_tdesc.
9391 (gdb_collect): Ditto.
9392 (gdb_probe): Ditto.
9393 * tracepoint.h (get_ipa_tdesc): New prototype.
9394 (ipa_tdesc): Remove.
9395
e7ad2f14
PA
93962016-02-24 Pedro Alves <palves@redhat.com>
9397
9398 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9399 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9400 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9401 Factor out common code between the USE_SIGTRAP_SIGINFO and
9402 !USE_SIGTRAP_SIGINFO blocks.
9403 (linux_low_filter_event): Call save_stop_reason instead of
9404 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9405 Update comments.
9406 (linux_wait_1): Update comments.
9407
657f9cde
WW
94082016-02-24 Wei-cheng Wang <cole945@gmail.com>
9409
9410 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9411 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9412 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9413 ppc_insert_point, ppc_remove_point.
9414
b00b61e1
MK
94152016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9416
9417 * linux-s390-low.c (s390_supports_z_point_type): New function.
9418 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9419
553cb527
YQ
94202016-02-16 Yao Qi <yao.qi@linaro.org>
9421
9422 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9423 PC. Get pc from regcache_read_pc.
9424
a5652c21
YQ
94252016-02-12 Yao Qi <yao.qi@linaro.org>
9426
9427 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9428 or linux_get_pc_32bit.
9429 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9430
ed443b61
YQ
94312016-02-12 Yao Qi <yao.qi@linaro.org>
9432
9433 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9434 arm_linux_get_next_pcs_fixup.
9435
020ecd38
MK
94362016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9437
9438 * tracepoint.c (x_tracepoint_action_download): Change
9439 write_inferior_data_ptr to write_inferior_data_pointer.
9440 (cmd_qtstart): Likewise.
9441 (write_inferior_data_ptr): Remove.
9442 (download_agent_expr): Change write_inferior_data_ptr to
9443 write_inferior_data_pointer.
9444 (download_tracepoint_1): Likewise.
9445 (download_tracepoint): Likewise.
9446 (download_trace_state_variables): Likewise.
9447
7cae9051
WW
94482016-02-11 Wei-cheng Wang <cole945@gmail.com>
9449 Marcin Kościelnicki <koriakin@0x04.net>
9450
9451 * tracepoint.c (struct tracepoint_action_ops): Remove.
9452 (struct tracepoint_action): Remove ops.
9453 (m_tracepoint_action_download, r_tracepoint_action_download)
9454 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9455 size and offset accordingly.
9456 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9457 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9458 (tracepoint_action_send, tracepoint_action_download): New functions.
9459 Helpers for trace action handlers.
9460 (add_tracepoint_action): Remove setup actions ops.
9461 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9462
9f6a71b4
YQ
94632016-02-10 Yao Qi <yao.qi@linaro.org>
9464
9465 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9466
1e94266c
SM
94672016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9468
9469 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9470 to AC_OUTPUT.
9471 * configure: Regenerate.
9472
8adce034
SM
94732016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9474
9475 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9476 void * to gdb_byte *.
9477 * linux-low.c (siginfo_fixup): Likewise.
9478 (linux_xfer_siginfo): Likewise.
9479 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9480 Likewise.
9481 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9482
93813b37
WT
94832016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9484
9485 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9486 to srv_tgtobj.
9487 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9488 to srv_tgtobj.
9489 * linux-x86-low.c [__x86_64__]: Include
9490 "nat/amd64-linux-siginfo.h".
9491 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9492 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9493 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9494 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9495 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9496 (cpt_si_fd, si_timerid, si_overrun): Move from
9497 nat/amd64-linux-siginfo.c.
9498 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9499
8424cc97
SM
95002016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9501
9502 * server.c (skip_to_semicolon): Remove.
9503 (process_point_options): Use strchrnul instead of
9504 skip_to_semicolon.
9505
4d18591b
YQ
95062016-01-26 Yao Qi <yao.qi@linaro.org>
9507
9508 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9509 * linux-low.c (install_software_single_step_breakpoints): Don't
9510 call regcache_read_pc.
9511 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9512 argument pc.
9513
d8020970
YQ
95142016-01-26 Yao Qi <yao.qi@linaro.org>
9515
9516 * linux-low.c (install_software_single_step_breakpoints): Call
9517 regcache_read_pc instead of get_pc.
9518
8b207339
YQ
95192016-01-26 Yao Qi <yao.qi@linaro.org>
9520
9521 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9522 (unblock_async_io): Rename to ...
9523 (block_unblock_async_io): ... it. New function.
9524 (enable_async_io): Don't install SIGIO handler. Unblock it
9525 instead.
9526 (disable_async_io): Don't ignore SIGIO. Block it instead.
9527 (initialize_async_io): Install SIGIO handler. Don't call
9528 unblock_async_io.
9529
18879fef
YQ
95302016-01-26 Yao Qi <yao.qi@linaro.org>
9531
9532 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9533 first character is '\003', call *the_target->request_interrupt.
9534
a0f8e08a
YQ
95352016-01-25 Yao Qi <yao.qi@linaro.org>
9536
9537 * remote-utils.c (new_thread_notify): Remove.
9538 (dead_thread_notify): Likewise.
9539 * remote-utils.h (new_thread_notify): Remove declaration.
9540 (dead_thread_notify): Likewise.
9541
cc5fd9ab
MK
95422016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9543
9544 * gdb.trace/pending.exp: Fix expected message on continue.
9545
99e8eb11
MK
95462016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9547
9548 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9549 it works properly on big-endian machines where sizeof (CORE_ADDR)
9550 != sizeof (void *).
9551
a994041d
PA
95522016-01-21 Pedro Alves <palves@redhat.com>
9553
9554 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9555 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9556 * configure: Regenerate.
9557
f7a6a40d
YQ
95582016-01-21 Yao Qi <yao.qi@linaro.org>
9559
9560 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9561 is_thumb and set it according to CPSR saved on the stack.
9562 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9563 arm_sigreturn_next_pc.
9564
6f69e520
YQ
95652016-01-18 Yao Qi <yao.qi@linaro.org>
9566
9567 * linux-low.c (linux_set_pc_64bit): New function.
9568 (linux_get_pc_64bit): New function.
9569 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9570 Declare.
9571 * linux-sparc-low.c (debug_threads): Remove declaration.
9572 (sparc_get_pc): Remove.
9573 (the_low_target): Use linux_get_pc_64bit instead of
9574 sparc_get_pc.
9575 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9576 (the_low_target): Use linux_get_pc_64bit and
9577 linux_set_pc_64bit.
9578
276d4552
YQ
95792016-01-18 Yao Qi <yao.qi@linaro.org>
9580
9581 * linux-arm-low.c (debug_threads): Remove declaration.
9582 (arm_get_pc, arm_set_pc): Remove.
9583 (the_low_target): Use linux_get_pc_32bit and
9584 linux_set_pc_32bit.
9585 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9586 (the_low_target): Use linux_get_pc_32bit and
9587 linux_set_pc_32bit.
9588 * linux-cris-low.c (debug_threads): Remove declaration.
9589 (cris_get_pc, cris_set_pc,): Remove.
9590 (the_low_target): Use linux_get_pc_32bit and
9591 linux_set_pc_32bit.
9592 * linux-crisv32-low.c (debug_threads): Remove declaration.
9593 (cris_get_pc, cris_set_pc): Remove.
9594 (the_low_target): Use linux_get_pc_32bit and
9595 linux_set_pc_32bit.
9596 * linux-low.c: Include inttypes.h.
9597 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9598 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9599 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9600 (the_low_target): Use linux_get_pc_32bit and
9601 linux_set_pc_32bit.
9602 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9603 (the_low_target): Use linux_get_pc_32bit and
9604 linux_set_pc_32bit.
9605 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9606 (the_low_target): Use linux_get_pc_32bit and
9607 linux_set_pc_32bit.
9608 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9609 (the_low_target): Use linux_get_pc_32bit and
9610 linux_set_pc_32bit.
9611 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9612 (the_low_target): Use linux_get_pc_32bit and
9613 linux_set_pc_32bit.
9614
eb0edac8
GB
96152016-01-18 Gary Benson <gbenson@redhat.com>
9616
9617 * configure.ac (AC_FUNC_FORK): New check.
9618 * config.in: Regenerate.
9619 * configure: Likewise.
9620
1b451dda
YQ
96212016-01-14 Yao Qi <yao.qi@linaro.org>
9622
9623 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9624 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9625 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9626 arm_get_next_pcs_ctor.
9627
82075af2
JS
96282016-01-12 Josh Stone <jistone@redhat.com>
9629 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9630
9631 * inferiors.h: Include "gdb_vecs.h".
9632 (struct process_info): Add syscalls_to_catch.
9633 * inferiors.c (remove_process): Free syscalls_to_catch.
9634 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9635 syscall_return stops.
9636 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9637 * server.c (handle_general_set): Handle QCatchSyscalls.
9638 (handle_query): Report support for QCatchSyscalls.
9639 * target.h (struct target_ops): Add supports_catch_syscall.
9640 (target_supports_catch_syscall): New macro.
9641 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9642 (struct lwp_info): Add syscall_state.
9643 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9644 Maintain syscall_state and syscalls_to_catch across exec.
9645 (get_syscall_trapinfo): New function, proxy to the_low_target.
9646 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9647 (linux_low_filter_event): Toggle syscall_state entry/return for
9648 syscall traps, and set it ignored for all others.
9649 (gdb_catching_syscalls_p): New function.
9650 (gdb_catch_this_syscall_p): New function.
9651 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9652 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9653 (linux_supports_catch_syscall): New function.
9654 (linux_target_ops): Install it.
9655 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9656 (the_low_target): Install it.
9657
8f13a3ce
MF
96582016-01-12 Mike Frysinger <vapier@gentoo.org>
9659
9660 * acinclude.m4: Include new ../warning.m4 file.
9661 * configure: Regenerated.
9662 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9663
5b3da067
MF
96642016-01-12 Mike Frysinger <vapier@gentoo.org>
9665
9666 * ax.c (is_goto_target): Mark static.
9667 * linux-low.c (register_addr): Likewise.
9668 (linux_fetch_registers, linux_store_registers): Likewise.
9669 * mem-break.c (any_persistent_commands): Fix old prototype.
9670 (add_commands_to_breakpoint): Mark static.
9671 * regcache.c (find_register_by_name): Delete unused func.
9672 * remote-utils.c (hex_or_minus_one): Mark static.
9673 * server.c (monitor_show_help): Mark static.
9674 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9675 handle_v_requests): Likewise.
9676
bc504a31
PA
96772016-01-12 Pedro Alves <palves@redhat.com>
9678
9679 Remove use of the registered trademark symbol throughout.
9680
5a0dd67a
YQ
96812016-01-08 Yao Qi <yao.qi@linaro.org>
9682
9683 * remote-utils.c (getpkt): If c is '\003', call target hook
9684 request_interrupt.
9685
b2ca446f
YQ
96862016-01-06 Yao Qi <yao.qi@linaro.org>
9687
9688 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9689 linux-aarch32-low.c.
9690 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9691 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9692 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9693 (thumb2_breakpoint): Declare.
9694 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9695 linux-aarch32-low.h.
9696 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9697 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9698 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9699
edd88788
JB
97002016-01-01 Joel Brobecker <brobecker@adacore.com>
9701
9702 * gdbreplay.c (gdbreplay_version): Change copyright year in
9703 version message.
9704 * server.c (gdbserver_version): Likewise.
9705
65da7f14
PP
97062015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9707
9708 * server.c (crc32_table): Delete.
9709 (crc32): Use libiberty's xcrc32 function.
9710
4abd5ed2
JB
97112015-12-22 Joel Brobecker <brobecker@adacore.com>
9712
9713 * lynx-low.c (lynx_delete_thread_callback): New function.
9714 (lynx_mourn): Properly delete our process and all of its
9715 threads. Remove call to clear_inferiors.
9716
0e50fe5c
JB
97172015-12-22 Joel Brobecker <brobecker@adacore.com>
9718
9719 * target.c (thread_search_callback): Add check that
9720 the thread_stopped target callback is not NULL before
9721 calling it.
9722
35adc03f
YQ
97232015-12-21 Yao Qi <yao.qi@linaro.org>
9724
9725 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9726 arm breakpoint.
9727
bd2b2909
AT
97282015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9729
9730 * server.c (handle_query): Call target_supports_software_single_step.
9731
7fe5e27e
AT
97322015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9733
9734 * linux-low.c (single_step): New function.
9735 (linux_resume_one_lwp_throw): Call single_step.
9736 (start_step_over): Likewise.
9737
d9311bfa
AT
97382015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9739
9740 * Makefile.in (SFILES): Append arch/arm-linux.c,
9741 arch/arm-get-next-pcs.c.
9742 (arm-linux.o): New rule.
9743 (arm-get-next-pcs.o): New rule.
9744 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9745 arm-linux.o.
9746 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9747 to 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): Make non-static.
9753 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9754 from linux-aarch32-low.c.
9755 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9756 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9757 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9758 (thumb2_breakpoint_len): Likewise.
9759 (arm_is_thumb_mode): New declaration.
9760 * linux-arm-low.c: Include arch/arm-linux.h
9761 aarch/arm-get-next-pcs.h, sys/syscall.h.
9762 (get_next_pcs_ops): New struct.
9763 (get_next_pcs_addr_bits_remove): New function.
9764 (get_next_pcs_is_thumb): New function.
9765 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9766 (arm_sigreturn_next_pc): Likewise.
9767 (get_next_pcs_syscall_next_pc): Likewise.
9768 (arm_gdbserver_get_next_pcs): Likewise.
9769 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9770 Initialize.
9771 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9772 * server.h: Include gdb_vecs.h.
9773
68ce2059
AT
97742015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9775
9776 * Makefile.in (SFILES): Append common/common-regcache.c.
9777 (OBS): Append common-regcache.o.
9778 (common-regcache.o): New rule.
9779 * regcache.c (init_register_cache): Initialize cache to
9780 REG_UNAVAILABLE.
9781 (regcache_raw_read_unsigned): New function.
9782 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9783 register_status enum.
9784
fa5308bd
AT
97852015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9786
9787 * linux-aarch64-low.c (the_low_targets): Rename
9788 breakpoint_reinsert_addr to get_next_pcs.
9789 * linux-arm-low.c (the_low_targets): Likewise.
9790 * linux-bfin-low.c (the_low_targets): Likewise.
9791 * linux-cris-low.c (the_low_targets): Likewise.
9792 * linux-crisv32-low.c (the_low_targets): Likewise.
9793 * linux-low.c (can_software_single_step): Likewise.
9794 (install_software_single_step_breakpoints): New function.
9795 (start_step_over): Use install_software_single_step_breakpoints.
9796 * linux-low.h: New CORE_ADDR vector.
9797 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9798 get_next_pcs.
9799 * linux-mips-low.c (the_low_targets): Likewise.
9800 * linux-nios2-low.c (the_low_targets): Likewise.
9801 * linux-sparc-low.c (the_low_targets): Likewise.
9802
4a6ed09b
PA
98032015-12-17 Pedro Alves <palves@redhat.com>
9804
9805 * linux-low.c (linux_kill_one_lwp): Remove references to
9806 LinuxThreads.
9807 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9808 to 'kill'.
9809 (linux_init_signals): Delete.
9810 (initialize_low): Adjust.
9811 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9812
7544db95
PA
98132015-12-16 Pedro Alves <palves@redhat.com>
9814
9815 * configure.ac (compiler warning flags): When testing a
9816 -Wno-foo option, check whether -Wfoo works instead.
9817 * configure: Regenerate.
9818
8020350c
DB
98192015-12-11 Don Breazeal <donb@codesourcery.com>
9820
9821 * server.c (process_serial_event): Don't exit from gdbserver
9822 in remote mode if there are still active inferiors.
9823
db91f502
YQ
98242015-12-11 Yao Qi <yao.qi@linaro.org>
9825
9826 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9827 arm_breakpoint_at if the process is 32-bit.
9828
b37a6290
YQ
98292015-12-11 Yao Qi <yao.qi@linaro.org>
9830
9831 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9832 arm breakpoint.
9833
17b1509a
YQ
98342015-12-07 Yao Qi <yao.qi@linaro.org>
9835
9836 * configure.srv: Append arm.o to srv_tgtobj for
9837 aarch64*-*-linux* target.
9838 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9839 from linux-arm-low.c.
9840 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9841 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9842 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9843 (thumb2_breakpoint_len): Likewise.
9844 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9845 (arm_breakpoint_kinds): Likewise.
9846 (arm_breakpoint_kind_from_pc): Likewise.
9847 (arm_sw_breakpoint_from_kind): Likewise.
9848 (arm_breakpoint_kind_from_current_state): Likewise.
9849 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9850 (arm_sw_breakpoint_from_kind): Declare.
9851 (arm_breakpoint_kind_from_current_state): Declare.
9852 (arm_breakpoint_at): Declare.
9853 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9854 arm_sw_breakpoint_from_kind if process is 32-bit.
9855 (aarch64_breakpoint_kind_from_pc): New function.
9856 (aarch64_breakpoint_kind_from_current_state): New function.
9857 (the_low_target): Initialize fields breakpoint_kind_from_pc
9858 and breakpoint_kind_from_current_state.
9859 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9860 linux-aarch32-low.c.
9861 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9862 (arm_breakpoint, arm_breakpoint_len): Likewise.
9863 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9864 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9865 (arm_is_thumb_mode): Likewise.
9866 (arm_breakpoint_at): Likewise.
9867 (arm_breakpoint_kind_from_pc): Likewise.
9868 (arm_sw_breakpoint_from_kind): Likewise.
9869 (arm_breakpoint_kind_from_current_state): Likewise.
9870
9871 Revert:
9872 2015-08-04 Yao Qi <yao.qi@linaro.org>
9873
9874 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9875 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9876 * server.c (extended_protocol): Remove "static".
9877 * server.h (extended_protocol): Declare it.
9878
ece66d65
JS
98792015-12-04 Josh Stone <jistone@redhat.com>
9880
9881 * target.h (struct target_ops) <arch_setup>: Rename to ...
9882 (struct target_ops) <post_create_inferior>: ... this.
9883 (target_arch_setup): Rename to ...
9884 (target_post_create_inferior): ... this, calling post_create_inferior.
9885 * server.c (start_inferior): Update target_arch_setup calls to
9886 target_post_create_inferior.
9887 * linux-low.c (linux_low_ptrace_options): Forward declare.
9888 (linux_arch_setup): Update its comment for general use.
9889 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9890 (struct linux_target_ops): Use linux_post_create_inferior.
9891 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9892 to post_create_inferior.
9893 * nto-low.c (struct nto_target_ops): Likewise.
9894 * spu-low.c (struct spu_target_ops): Likewise.
9895 * win32-low.c (struct win32_target_ops): Likewise.
9896
e58c48b4
AT
98972015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9898
9899 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9900
fbec8956
AT
99012015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9902
9903 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9904 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9905 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9906 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9907 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9908 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9909 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9910 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9911 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9912 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9913 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9914 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9915
9b4c5f87
AT
99162015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9917
9918 * linux-low.c (linux_look_up_symbols): Don't call
9919 linux_supports_traceclone.
9920 * linux-low.h (thread_db_init): Remove use_events argument.
9921 * thread-db.c (thread_db_use_event): Remove global variable.
9922 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9923 (struct thread_db) <td_create_bp>: Remove field.
9924 (thread_db_create_event): Remove function.
9925 (thread_db_enable_reporting): Likewise.
9926 (find_one_thread): Don't check for thread_db_use_events.
9927 (attach_thread): Likewise.
9928 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9929 (try_thread_db_load_1): Don't check for thread_db_use_events.
9930 (thread_db_init): Remove use_events argument and thread events
9931 handling.
9932 (remove_thread_event_breakpoints): Remove function.
9933 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9934
7d00775e
AT
99352015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9936
9937 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9938 New function.
9939 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9940 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9941 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9942 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9943 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9944 Initialize.
9945 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9946 New function.
9947 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9948 * linux-low.c (can_hardware_single_step): Use
9949 supports_hardware_single_step.
9950 (can_software_single_step): New function.
9951 (start_step_over): Call can_software_single_step.
9952 (linux_supports_hardware_single_step): New function.
9953 (struct target_ops) <supports_software_single_step>: Initialize.
9954 * linux-low.h (struct linux_target_ops)
9955 <supports_hardware_single_step>: Initialize.
9956 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9957 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9958 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9959 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9960 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9961 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9962 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9963 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9964 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9965 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9966 Initialize.
9967 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9968 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9969 Initialize.
9970 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9971 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9972 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9973 New function.
9974 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9975 * target.h (struct target_ops): <supports_software_single_step>:
9976 New field.
9977 (target_supports_software_single_step): New macro.
9978
2d97cd35
AT
99792015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9980
9981 * linux-low.c (linux_wait_1): Fix pc advance condition.
9982 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9983 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9984
769ef81f
AT
99852015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9986
9987 * linux-arm-low.c (arm_is_thumb_mode): New function.
9988 (arm_breakpoint_at): Use arm_is_thumb_mode.
9989 (arm_breakpoint_kind_from_current_state): New function.
9990 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9991 Initialize.
9992 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9993 (linux_breakpoint_kind_from_current_state): New function.
9994 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9995 * linux-low.h (struct linux_target_ops)
9996 <breakpoint_kind_from_current_state>: New field.
9997 * target.h (struct target_ops): Likewise.
9998 (target_breakpoint_kind_from_current_state): New macro.
9999
1bebeeca
PA
100002015-11-30 Pedro Alves <palves@redhat.com>
10001
10002 * linux-low.c (linux_resume): Wake up the event loop before
10003 returning.
10004
a67a9fae
PA
100052015-11-30 Pedro Alves <palves@redhat.com>
10006
10007 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
10008 check.
10009 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
10010 to -1.
10011 * target.c (struct thread_search): New structure.
10012 (thread_search_callback): New function.
10013 (prev_general_thread): New global.
10014 (prepare_to_access_memory, done_accessing_memory): New functions.
10015 * target.h (prepare_to_access_memory, done_accessing_memory):
10016 Replace macros with function declarations.
10017
f2faf941
PA
100182015-11-30 Pedro Alves <palves@redhat.com>
10019
10020 PR 14618
10021 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
10022 report TARGET_WAITKIND_NO_RESUMED.
10023 * remote-utils.c (prepare_resume_reply): Handle
10024 TARGET_WAITKIND_NO_RESUMED.
10025 * server.c (report_no_resumed): New global.
10026 (handle_query) <qSupported>: Handle "no-resumed+". Report
10027 "no-resumed+" support.
10028 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
10029 return error if the client doesn't support no-resumed events.
10030 (push_stop_notification): New function.
10031 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
10032 events if the client supports them.
10033
a681f9c9
PA
100342015-11-30 Pedro Alves <palves@redhat.com>
10035
10036 * linux-low.c (thread_still_has_status_pending_p): Don't check
10037 vCont;t here.
10038 (lwp_resumed): New function.
10039 (status_pending_p_callback): Return early if the LWP is not
10040 supposed to be resumed.
10041
65706a29
PA
100422015-11-30 Pedro Alves <palves@redhat.com>
10043
10044 * linux-low.c (handle_extended_wait): Assert that the LWP's
10045 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
10046 thread create events, leave the new child's status pending.
10047 (linux_low_filter_event): If GDB wants to hear about thread exit
10048 events, leave the LWP marked dead and don't delete it.
10049 (linux_wait_for_event_filtered): Don't check for thread exit.
10050 (filter_exit_event): New function.
10051 (linux_wait_1): Use it, when returning an exit event.
10052 (linux_resume_one_lwp_throw): Assert that the LWP's
10053 waitstatus is TARGET_WAITKIND_IGNORE.
10054 * remote-utils.c (prepare_resume_reply): Handle
10055 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
10056 * server.c (report_thread_events): New global.
10057 (handle_general_set): Handle QThreadEvents.
10058 (handle_query) <qSupported>: Handle and report QThreadEvents+;
10059 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
10060 TARGET_WAITKIND_THREAD_EXITED.
10061 * server.h (report_thread_events): Declare.
10062
56cf4bed
PA
100632015-11-30 Pedro Alves <palves@redhat.com>
10064
10065 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
10066 the thread's last_resume_kind was resume_stop.
10067
500c1d85
PA
100682015-11-30 Pedro Alves <palves@redhat.com>
10069
10070 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10071 before returning.
10072
de979965
PA
100732015-11-30 Pedro Alves <palves@redhat.com>
10074
10075 * server.c (handle_v_requests): Handle vCtrlC.
10076
34c65914
PA
100772015-11-30 Pedro Alves <palves@redhat.com>
10078
10079 * gdbthread.h (find_any_thread_of_pid): Declare.
10080 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10081 functions.
10082 * server.c (handle_query): If current_thread is NULL, look for
10083 another thread of the selected process.
10084
79efa585 100852015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 10086 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
10087
10088 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10089 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10090 name in reply.
10091 * target.h (struct target_ops) <thread_name>: New field.
10092 (target_thread_name): New macro.
10093
80d82c19
JB
100942015-11-23 Joel Brobecker <brobecker@adacore.com>
10095
10096 * regcache.h (regcache_invalidate_pid): Add declaration.
10097 * regcache.c (regcache_invalidate_pid): New function, extracted
10098 from regcache_invalidate.
10099 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10100 Add trivial documentation comment.
10101 * lynx-low.c: Use regcache_invalidate_pid instead of
10102 regcache_invalidate.
10103
64da5dd5
JB
101042015-11-23 Joel Brobecker <brobecker@adacore.com>
10105
10106 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10107 and Elf64_auxv_t if the target is Android.
10108
37ce4055
DE
101092015-11-22 Doug Evans <xdje42@gmail.com>
10110
10111 * target.h: #include <sys/types.h>.
10112
06e03fff
PA
101132015-11-19 Pedro Alves <palves@redhat.com>
10114
10115 * linux-low.c (linux_process_qsupported): Change prototype.
10116 Adjust.
10117 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10118 Change prototype.
10119 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10120 and adjust to loop over all features.
10121 * server.c (handle_query) <qSupported>: Adjust to call
10122 target_process_qsupported once, passing it a vector of unprocessed
10123 features.
10124 * target.h (struct target_ops) <process_qsupported>: Change
10125 prototype.
10126 (target_process_qsupported): Adjust.
10127
9a084706
PA
101282015-11-19 Pedro Alves <palves@redhat.com>
10129
10130 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10131 mode.
10132 * configure: Regenerate.
10133
dad44a1f
PA
101342015-11-19 Pedro Alves <palves@redhat.com>
10135
10136 * configure: Regenerate.
10137
231c0592
YQ
101382015-11-19 Yao Qi <yao.qi@linaro.org>
10139
10140 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10141 type to uint32_t.
10142
6c1c9a8b
YQ
101432015-11-19 Yao Qi <yao.qi@linaro.org>
10144
10145 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10146 (struct aarch64_operand): Move enum out.
10147
9caa3311
YQ
101482015-11-19 Yao Qi <yao.qi@linaro.org>
10149
10150 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10151 struct user_fpsimd_state *.
10152 (aarch64_store_fpregset): Likewise.
10153
6a69a054
YQ
101542015-11-19 Yao Qi <yao.qi@linaro.org>
10155
10156 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10157 struct user_pt_regs *.
10158 (aarch64_store_gregset): Likewise.
10159
1798301e
PA
101602015-11-18 Pedro Alves <palves@redhat.com>
10161
10162 * Makefile.in (all_object_files): Add $IPA_OBJS.
10163
ce7715e2
PA
101642015-11-17 Pedro Alves <palves@redhat.com>
10165
10166 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10167 GDB_SIGNAL_0 and gdb_signal_to_string.
10168
c0879059
PA
101692015-11-17 Pedro Alves <palves@redhat.com>
10170
10171 * win32-low.c (handle_output_debug_string): Remove parameter.
10172 (win32_kill): Remove our_status local and adjust call to
10173 handle_output_debug_string.
10174 (get_child_debug_event): Adjust call to
10175 handle_output_debug_string.
10176
1996e237
SM
101772015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10178
10179 * linux-mips-low.c (mips_fill_gregset): Add cast.
10180 (mips_store_gregset): Likewise.
10181 (mips_fill_fpregset): Likewise.
10182 (mips_store_fpregset): Likewise.
10183
cbec665b
SM
101842015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10185
10186 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10187 priv.
10188
eb3e3c67
SM
101892015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10190
10191 * linux-mips-low.c (mips_linux_new_thread): Change type of
10192 watch_type to enum target_hw_bp_type.
10193
171de4b8
SM
101942015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10195
10196 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10197 Change return type to arm_hwbp_type.
10198
04248ead
SM
101992015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10200
10201 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10202 (arm_store_gregset): Likewise.
10203 * linux-arm-low.c (arm_get_hwcap): Likewise.
10204 (arm_read_description): Likewise.
10205
04b3479c
SM
102062015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10207
10208 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10209
2bc84e8a
SM
102102015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10211
10212 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10213 (ppc_fill_vsxregset): Likewise.
10214 (ppc_store_vsxregset): Likewise.
10215 (ppc_fill_vrregset): Likewise.
10216 (ppc_store_vrregset): Likewise.
10217 (ppc_fill_evrregset): Likewise.
10218 (ppc_store_evrregset): Likewise.
10219
e6c5bb05
SM
102202015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10221
10222 * linux-ppc-low.c (ppc_usrregs_info): Remove
10223 forward-declaration.
10224 (ppc_arch_setup): Move lower in file.
10225
7ea45d72
SM
102262015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10227
10228 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10229 (ps_pdwrite): Likewise.
10230
69291610
HW
102312015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10232
10233 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10234 to after assert checks.
10235
b42945fd
SM
102362015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10237
10238 * proc-service.c (ps_pdread): Add/adjust casts.
10239 (ps_pdwrite): Add/adjust casts.
10240
d6f85c84
SM
102412015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10242
10243 * server.c (handle_search_memory_1): Cast return value of
10244 memmem.
10245
f98cd059
SM
102462015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10247
10248 * server.c (write_qxfer_response): Change type of data to
10249 gdb_byte *.
10250
d2412fa5
PA
102512015-10-29 Pedro Alves <palves@redhat.com>
10252
10253 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10254
c17414a2
PA
102552015-10-29 Pedro Alves <palves@redhat.com>
10256
10257 * tracepoint.c (clear_installed_tracepoints): Add casts.
10258
e053fbc4
PA
102592015-10-29 Pedro Alves <palves@redhat.com>
10260
10261 * server.c (handle_v_cont, process_serial_event): Add enum
10262 gdb_signal casts to signal parsing code.
10263
add67df8
PA
102642015-10-29 Pedro Alves <palves@redhat.com>
10265
10266 * linux-low.h (NULL_REGSET): Define.
10267 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10268 * linux-arm-low.c (arm_regsets): Likewise.
10269 * linux-crisv32-low.c (cris_regsets): Likewise.
10270 * linux-m68k-low.c (m68k_regsets): Likewise.
10271 * linux-mips-low.c (mips_regsets): Likewise.
10272 * linux-nios2-low.c (nios2_regsets): Likewise.
10273 * linux-ppc-low.c (ppc_regsets): Likewise.
10274 * linux-s390-low.c (s390_regsets): Likewise.
10275 * linux-sh-low.c (sh_regsets): Likewise.
10276 * linux-sparc-low.c (sparc_regsets): Likewise.
10277 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10278 * linux-tile-low.c (tile_regsets): Likewise.
10279 * linux-x86-low.c (x86_regsets): Likewise.
10280 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10281
50bc912a
PA
102822015-10-29 Pedro Alves <palves@redhat.com>
10283
10284 * linux-low.h (NULL_REGSET): Define.
10285 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10286 * linux-arm-low.c (arm_regsets): Likewise.
10287 * linux-crisv32-low.c (cris_regsets): Likewise.
10288 * linux-m68k-low.c (m68k_regsets): Likewise.
10289 * linux-mips-low.c (mips_regsets): Likewise.
10290 * linux-nios2-low.c (nios2_regsets): Likewise.
10291 * linux-ppc-low.c (ppc_regsets): Likewise.
10292 * linux-s390-low.c (s390_regsets): Likewise.
10293 * linux-sh-low.c (sh_regsets): Likewise.
10294 * linux-sparc-low.c (sparc_regsets): Likewise.
10295 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10296 * linux-tile-low.c (tile_regsets): Likewise.
10297 * linux-x86-low.c (x86_regsets): Likewise.
10298 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10299
682b2546
DE
103002015-10-26 Doug Evans <dje@google.com>
10301
10302 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10303
963843d4
DE
103042015-10-26 Doug Evans <dje@google.com>
10305
10306 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10307
d41401ac
DE
103082015-10-26 Doug Evans <dje@google.com>
10309
10310 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10311 for debug_printf.
10312 (attach_thread, find_new_threads_callback): Ditto.
10313
3db28855
AT
103142015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10315
10316 * mem-break.h (set_breakpoint_data): Remove.
10317
fb78e89c
AT
103182015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10319
10320 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10321 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10322 (initialize_low): Remove set_breakpoint_data call.
10323 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10324 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10325 (initialize_low): Remove set_breakpoint_data call.
10326 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10327 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10328 (initialize_low): Remove set_breakpoint_data call.
10329
2e6ee069
AT
103302015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10331
10332 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10333 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10334 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10335 * target.h (target_breakpoint_kind_from_pc): New macro.
10336
1652a986
AT
103372015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10338
10339 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10340 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10341 the default breakpoint kind.
10342
abeead09
AT
103432015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10344
10345 * linux-arm-low.c (arm_supports_z_point_type): Add software
10346 breakpoint support.
10347
b0b4b501
AT
103482015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10349
10350 * linux-arm-low.c: Refactor breakpoint definitions.
10351 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10352 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10353
8689682c
AT
103542015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10355
10356 * Makefile.in: Add arm.c/o.
10357 * configure.srv: Likewise.
10358 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10359 (arm_breakpoint_kind_from_pc): New function.
10360 (arm_sw_breakpoint_from_kind): Return proper kind.
10361 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10362
27165294
AT
103632015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10364
10365 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10366 removal.
10367 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10368 (struct raw_breakpoint) <size>: Remove.
10369 (struct raw_breakpoint) <kind>: Add.
10370 (bp_size): New function.
10371 (bp_opcode): Likewise.
10372 (find_raw_breakpoint_at): Adjust for kind.
10373 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10374 (remove_memory_breakpoint): Adjust for kind call bp_size.
10375 (set_raw_breakpoint_at): Adjust for kind.
10376 (set_breakpoint): Likewise.
10377 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10378 (delete_raw_breakpoint): Adjust for kind.
10379 (delete_breakpoint): Likewise.
10380 (find_gdb_breakpoint): Likewise.
10381 (set_gdb_breakpoint_1): Likewise.
10382 (set_gdb_breakpoint): Likewise.
10383 (delete_gdb_breakpoint_1): Likewise.
10384 (delete_gdb_breakpoint): Likewise.
10385 (uninsert_raw_breakpoint): Likewise.
10386 (reinsert_raw_breakpoint): Likewise.
10387 (set_breakpoint_data): Remove.
10388 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10389 (check_mem_read): Adjust for kind call bp_size.
10390 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10391 (clone_one_breakpoint): Adjust for kind.
10392 * mem-break.h (set_gdb_breakpoint): Likewise.
10393 (delete_gdb_breakpoint): Likewise.
10394 * server.c (process_serial_event): Likewise.
10395
dd373349
AT
103962015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10397
10398 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10404 (arm_sw_breakpoint_from_kind): New function.
10405 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10406 (struct linux_target_ops) <breakpoint>: Remove.
10407 (struct linux_target_ops) <breakpoint_len>: Remove.
10408 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10409 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10410 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10411 (struct linux_target_ops) <breakpoint>: Remove.
10412 (struct linux_target_ops) <breakpoint_len>: Remove.
10413 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10414 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10415 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10416 (struct linux_target_ops) <breakpoint>: Remove.
10417 (struct linux_target_ops) <breakpoint_len>: Remove.
10418 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10419 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10420 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10421 and sw_breakpoint_from_kind to increment the pc.
10422 (linux_breakpoint_kind_from_pc): New function.
10423 (linux_sw_breakpoint_from_kind): New function.
10424 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10425 (initialize_low): Call breakpoint_kind_from_pc and
10426 sw_breakpoint_from_kind to replace breakpoint_data/len.
10427 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10428 New field.
10429 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10430 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10431 (struct linux_target_ops) <breakpoint>: Remove.
10432 (struct linux_target_ops) <breakpoint_len>: Remove.
10433 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10434 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10435 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10436 (struct linux_target_ops) <breakpoint>: Remove.
10437 (struct linux_target_ops) <breakpoint_len>: Remove.
10438 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10439 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10440 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10441 (struct linux_target_ops) <breakpoint>: Remove.
10442 (struct linux_target_ops) <breakpoint_len>: Remove.
10443 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10444 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10445 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10446 (struct linux_target_ops) <breakpoint>: Remove.
10447 (struct linux_target_ops) <breakpoint_len>: Remove.
10448 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10449 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10450 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10451 (struct linux_target_ops) <breakpoint>: Remove.
10452 (struct linux_target_ops) <breakpoint_len>: Remove.
10453 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10454 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10455 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10456 (struct linux_target_ops) <breakpoint>: Remove.
10457 (struct linux_target_ops) <breakpoint_len>: Remove.
10458 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10459 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10460 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10461 (struct linux_target_ops) <breakpoint>: Remove.
10462 (struct linux_target_ops) <breakpoint_len>: Remove.
10463 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10464 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10465 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10466 (struct linux_target_ops) <breakpoint>: Remove.
10467 (struct linux_target_ops) <breakpoint_len>: Remove.
10468 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10469 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10470 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10471 (struct linux_target_ops) <breakpoint>: Remove.
10472 (struct linux_target_ops) <breakpoint_len>: Remove.
10473 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10474 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10475 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10476 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10477 (struct linux_target_ops) <breakpoint>: Remove.
10478 (struct linux_target_ops) <breakpoint_len>: Remove.
10479 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10480 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10481 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10482 (struct linux_target_ops) <breakpoint>: Remove.
10483 (struct linux_target_ops) <breakpoint_len>: Remove.
10484 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10485 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10486
4cd98a19
AT
104872015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10488
10489 * linux-cris-low.c (cris_get_pc): Remove void arg.
10490
774ee6d2
AR
104912015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10492
10493 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10494 variable name.
10495
833dcd29
AR
104962015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10497
10498 * inferiors.c (thread_pid_matches_callback): New function.
10499 (find_thread_process): New function.
10500 (remove_thread): Reset current_thread.
10501 (remove_process): Assert threads have been removed first.
10502
8d689ee5
YQ
105032015-10-15 Yao Qi <yao.qi@linaro.org>
10504
10505 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10506 if it is 3.
10507 (aarch64_remove_point): Likewise.
10508 * regcache.c (regcache_register_size): New function.
10509
1c2e1515
YQ
105102015-10-12 Yao Qi <yao.qi@linaro.org>
10511
10512 * linux-aarch64-low.c: Update all callers as emit_load_store
10513 is renamed to aarch64_emit_load_store.
10514
e1c587c3
YQ
105152015-10-12 Yao Qi <yao.qi@linaro.org>
10516
10517 * linux-aarch64-low.c: Update all callers of function renaming
10518 from emit_insn to aarch64_emit_insn.
10519
b6542f81
YQ
105202015-10-12 Yao Qi <yao.qi@linaro.org>
10521
10522 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10523 arch/aarch64-insn.h.
10524 (struct aarch64_memory_operand): Likewise.
10525 (ENCODE): Likewise.
10526 (emit_insn): Move to arch/aarch64-insn.c.
10527 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10528 (emit_load_store): Move to arch/aarch64-insn.c.
10529 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10530 (can_encode_int32): Remove.
10531
246994ce
YQ
105322015-10-12 Yao Qi <yao.qi@linaro.org>
10533
10534 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10535 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10536 (aarch64_relocate_instruction): Likewise.
10537 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10538 (struct aarch64_insn_visitor): Likewise.
10539
0badd99f
YQ
105402015-10-12 Yao Qi <yao.qi@linaro.org>
10541
10542 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10543 (struct aarch64_insn_visitor): New.
10544 (struct aarch64_insn_relocation_data): New.
10545 (aarch64_ftrace_insn_reloc_b): New function.
10546 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10547 (aarch64_ftrace_insn_reloc_cb): Likewise.
10548 (aarch64_ftrace_insn_reloc_tb): Likewise.
10549 (aarch64_ftrace_insn_reloc_adr): Likewise.
10550 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10551 (aarch64_ftrace_insn_reloc_others): Likewise.
10552 (visitor): New.
10553 (aarch64_relocate_instruction): Use visitor.
10554
dfaffe9d
YQ
105552015-10-12 Yao Qi <yao.qi@linaro.org>
10556
10557 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10558 int. Add argument buf.
10559 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10560 aarch64_relocate_instruction.
10561
70b439f0
YQ
105622015-10-12 Yao Qi <yao.qi@linaro.org>
10563
10564 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10565 argument insn. Remove local variable insn. Don't call
10566 target_read_uint32.
10567 (aarch64_install_fast_tracepoint_jump_pad): Call
10568 target_read_uint32.
10569
7781c06f
YQ
105702015-09-30 Yao Qi <yao.qi@linaro.org>
10571
10572 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10573 (emit_load_store_pair): Likewise.
10574
9a3c8263
SM
105752015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10576
10577 * dll.c (match_dll): Add cast(s).
10578 (unloaded_dll): Likewise.
10579 * linux-low.c (second_thread_of_pid_p): Likewise.
10580 (delete_lwp_callback): Likewise.
10581 (count_events_callback): Likewise.
10582 (select_event_lwp_callback): Likewise.
10583 (linux_set_resume_request): Likewise.
10584 * server.c (accumulate_file_name_length): Likewise.
10585 (emit_dll_description): Likewise.
10586 (handle_qxfer_threads_worker): Likewise.
10587 (visit_actioned_threads): Likewise.
10588 * thread-db.c (any_thread_of): Likewise.
10589 * tracepoint.c (same_process_p): Likewise.
10590 (match_blocktype): Likewise.
10591 (build_traceframe_info_xml): Likewise.
10592
224c3ddb
SM
105932015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10594
10595 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10596 assignment.
10597 (gdb_unparse_agent_expr): Likewise.
10598 * hostio.c (require_data): Likewise.
10599 (handle_pread): Likewise.
10600 * linux-low.c (disable_regset): Likewise.
10601 (fetch_register): Likewise.
10602 (store_register): Likewise.
10603 (get_dynamic): Likewise.
10604 (linux_qxfer_libraries_svr4): Likewise.
10605 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10606 (set_fast_tracepoint_jump): Likewise.
10607 (uninsert_fast_tracepoint_jumps_at): Likewise.
10608 (reinsert_fast_tracepoint_jumps_at): Likewise.
10609 (validate_inserted_breakpoint): Likewise.
10610 (clone_agent_expr): Likewise.
10611 * regcache.c (init_register_cache): Likewise.
10612 * remote-utils.c (putpkt_binary_1): Likewise.
10613 (decode_M_packet): Likewise.
10614 (decode_X_packet): Likewise.
10615 (look_up_one_symbol): Likewise.
10616 (relocate_instruction): Likewise.
10617 (monitor_output): Likewise.
10618 * server.c (handle_search_memory): Likewise.
10619 (handle_qxfer_exec_file): Likewise.
10620 (handle_qxfer_libraries): Likewise.
10621 (handle_qxfer): Likewise.
10622 (handle_query): Likewise.
10623 (handle_v_cont): Likewise.
10624 (handle_v_run): Likewise.
10625 (captured_main): Likewise.
10626 * target.c (write_inferior_memory): Likewise.
10627 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10628 * tracepoint.c (init_trace_buffer): Likewise.
10629 (add_tracepoint_action): Likewise.
10630 (add_traceframe): Likewise.
10631 (add_traceframe_block): Likewise.
10632 (cmd_qtdpsrc): Likewise.
10633 (cmd_qtdv): Likewise.
10634 (cmd_qtstatus): Likewise.
10635 (response_source): Likewise.
10636 (response_tsv): Likewise.
10637 (cmd_qtnotes): Likewise.
10638 (gdb_collect): Likewise.
10639 (initialize_tracepoint): Likewise.
10640
afbe19f8
PL
106412015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10642
10643 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10644 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10645 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10646 <NOP>: New.
10647 (enum aarch64_condition_codes): New enum.
10648 (w0): New static global.
10649 (fp): Likewise.
10650 (lr): Likewise.
10651 (struct aarch64_memory_operand) <type>: New
10652 MEMORY_OPERAND_POSTINDEX type.
10653 (postindex_memory_operand): New helper function.
10654 (emit_ret): New function.
10655 (emit_load_store_pair): New function, factored out of emit_stp
10656 with support for MEMORY_OPERAND_POSTINDEX.
10657 (emit_stp): Rewrite using emit_load_store_pair.
10658 (emit_ldp): New function.
10659 (emit_load_store): Likewise.
10660 (emit_ldr): Mention post-index instruction in comment.
10661 (emit_ldrh): New function.
10662 (emit_ldrb): New function.
10663 (emit_ldrsw): Mention post-index instruction in comment.
10664 (emit_str): Likewise.
10665 (emit_subs): New function.
10666 (emit_cmp): Likewise.
10667 (emit_and): Likewise.
10668 (emit_orr): Likewise.
10669 (emit_orn): Likewise.
10670 (emit_eor): Likewise.
10671 (emit_mvn): Likewise.
10672 (emit_lslv): Likewise.
10673 (emit_lsrv): Likewise.
10674 (emit_asrv): Likewise.
10675 (emit_mul): Likewise.
10676 (emit_sbfm): Likewise.
10677 (emit_sbfx): Likewise.
10678 (emit_ubfm): Likewise.
10679 (emit_ubfx): Likewise.
10680 (emit_csinc): Likewise.
10681 (emit_cset): Likewise.
10682 (emit_nop): Likewise.
10683 (emit_ops_insns): New helper function.
10684 (emit_pop): Likewise.
10685 (emit_push): Likewise.
10686 (aarch64_emit_prologue): New function.
10687 (aarch64_emit_epilogue): Likewise.
10688 (aarch64_emit_add): Likewise.
10689 (aarch64_emit_sub): Likewise.
10690 (aarch64_emit_mul): Likewise.
10691 (aarch64_emit_lsh): Likewise.
10692 (aarch64_emit_rsh_signed): Likewise.
10693 (aarch64_emit_rsh_unsigned): Likewise.
10694 (aarch64_emit_ext): Likewise.
10695 (aarch64_emit_log_not): Likewise.
10696 (aarch64_emit_bit_and): Likewise.
10697 (aarch64_emit_bit_or): Likewise.
10698 (aarch64_emit_bit_xor): Likewise.
10699 (aarch64_emit_bit_not): Likewise.
10700 (aarch64_emit_equal): Likewise.
10701 (aarch64_emit_less_signed): Likewise.
10702 (aarch64_emit_less_unsigned): Likewise.
10703 (aarch64_emit_ref): Likewise.
10704 (aarch64_emit_if_goto): Likewise.
10705 (aarch64_emit_goto): Likewise.
10706 (aarch64_write_goto_address): Likewise.
10707 (aarch64_emit_const): Likewise.
10708 (aarch64_emit_call): Likewise.
10709 (aarch64_emit_reg): Likewise.
10710 (aarch64_emit_pop): Likewise.
10711 (aarch64_emit_stack_flush): Likewise.
10712 (aarch64_emit_zero_ext): Likewise.
10713 (aarch64_emit_swap): Likewise.
10714 (aarch64_emit_stack_adjust): Likewise.
10715 (aarch64_emit_int_call_1): Likewise.
10716 (aarch64_emit_void_call_2): Likewise.
10717 (aarch64_emit_eq_goto): Likewise.
10718 (aarch64_emit_ne_goto): Likewise.
10719 (aarch64_emit_lt_goto): Likewise.
10720 (aarch64_emit_le_goto): Likewise.
10721 (aarch64_emit_gt_goto): Likewise.
10722 (aarch64_emit_ge_got): Likewise.
10723 (aarch64_emit_ops_impl): New static global variable.
10724 (aarch64_emit_ops): New target function, return
10725 &aarch64_emit_ops_impl.
10726 (struct linux_target_ops): Install it.
10727
bb903df0
PL
107282015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10729
10730 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10731 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10732 aarch64-ipa.o.
10733 * linux-aarch64-ipa.c: New file.
10734 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10735 and endian.h.
10736 (aarch64_get_thread_area): New target method.
10737 (extract_signed_bitfield): New helper function.
10738 (aarch64_decode_ldr_literal): New function.
10739 (enum aarch64_opcodes): New enum.
10740 (struct aarch64_register): New struct.
10741 (struct aarch64_operand): New struct.
10742 (x0): New static global.
10743 (x1): Likewise.
10744 (x2): Likewise.
10745 (x3): Likewise.
10746 (x4): Likewise.
10747 (w2): Likewise.
10748 (ip0): Likewise.
10749 (sp): Likewise.
10750 (xzr): Likewise.
10751 (aarch64_register): New helper function.
10752 (register_operand): Likewise.
10753 (immediate_operand): Likewise.
10754 (struct aarch64_memory_operand): New struct.
10755 (offset_memory_operand): New helper function.
10756 (preindex_memory_operand): Likewise.
10757 (enum aarch64_system_control_registers): New enum.
10758 (ENCODE): New macro.
10759 (emit_insn): New helper function.
10760 (emit_b): New function.
10761 (emit_bcond): Likewise.
10762 (emit_cb): Likewise.
10763 (emit_tb): Likewise.
10764 (emit_blr): Likewise.
10765 (emit_stp): Likewise.
10766 (emit_ldp_q_offset): Likewise.
10767 (emit_stp_q_offset): Likewise.
10768 (emit_load_store): Likewise.
10769 (emit_ldr): Likewise.
10770 (emit_ldrsw): Likewise.
10771 (emit_str): Likewise.
10772 (emit_ldaxr): Likewise.
10773 (emit_stxr): Likewise.
10774 (emit_stlr): Likewise.
10775 (emit_data_processing_reg): Likewise.
10776 (emit_data_processing): Likewise.
10777 (emit_add): Likewise.
10778 (emit_sub): Likewise.
10779 (emit_mov): Likewise.
10780 (emit_movk): Likewise.
10781 (emit_mov_addr): Likewise.
10782 (emit_mrs): Likewise.
10783 (emit_msr): Likewise.
10784 (emit_sevl): Likewise.
10785 (emit_wfe): Likewise.
10786 (append_insns): Likewise.
10787 (can_encode_int32_in): New helper function.
10788 (aarch64_relocate_instruction): New function.
10789 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10790 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10791 (struct linux_target_ops): Install aarch64_get_thread_area,
10792 aarch64_install_fast_tracepoint_jump_pad and
10793 aarch64_get_min_fast_tracepoint_insn_len.
10794
787749ea
PL
107952015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10796
10797 * Makefile.in (aarch64-insn.o): New rule.
10798 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10799
9812b2e6
YQ
108002015-09-21 Yao Qi <yao.qi@linaro.org>
10801
10802 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10803
18fe412b
YQ
108042015-09-21 Yao Qi <yao.qi@linaro.org>
10805
10806 * tracepoint.c (max_jump_pad_size): Remove.
10807
a0cc84cd
YQ
108082015-09-18 Yao Qi <yao.qi@linaro.org>
10809
10810 * linux-aarch64-low.c: Don't include sys/uio.h.
10811 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10812
d78908cf
WW
108132015-09-16 Wei-cheng Wang <cole945@gmail.com>
10814
10815 * tracepoint.c (eval_result_type): Change prototype.
10816 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10817
d57e0d50
PA
108182015-09-15 Pedro Alves <palves@redhat.com>
10819
10820 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10821 Check whether to report exec events instead of checking whether
10822 multiprocess is enabled.
10823
5a676acc
PA
108242015-09-15 Pedro Alves <palves@redhat.com>
10825
10826 PR remote/18965
10827 * remote-utils.c (prepare_resume_reply): Merge
10828 TARGET_WAITKIND_VFORK_DONE switch case with the
10829 TARGET_WAITKIND_FORKED case.
10830
7c5d0fad
YQ
108312015-09-15 Yao Qi <yao.qi@linaro.org>
10832
10833 * server.c (handle_query): Check string comparison using
10834 "else if" instead of "if".
10835
750ce8d1
YQ
108362015-09-15 Yao Qi <yao.qi@linaro.org>
10837
10838 * server.c (vCont_supported): New global variable.
10839 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10840 matches. Append ";vContSupported+" to own_buf.
10841 (handle_v_requests): Append ";s;S" to own_buf if target supports
10842 hardware single step or vCont_supported is false.
10843 (capture_main): Set vCont_supported to zero.
10844
70b90b91
YQ
108452015-09-15 Yao Qi <yao.qi@linaro.org>
10846
10847 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10848 it to ...
10849 (linux_supports_hardware_single_step): ... New function.
10850 (linux_target_ops): Update.
10851 * lynx-low.c (lynx_target_ops): Set field
10852 supports_hardware_single_step to target_can_do_hardware_single_step.
10853 * nto-low.c (nto_target_ops): Likewise.
10854 * spu-low.c (spu_target_ops): Likewise.
10855 * win32-low.c (win32_target_ops): Likewise.
10856 * target.c (target_can_do_hardware_single_step): New function.
10857 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10858 Remove. <supports_hardware_single_step>: New field.
10859 (target_supports_conditional_breakpoints): Remove.
10860 (target_supports_hardware_single_step): New macro.
10861 (target_can_do_hardware_single_step): Declare.
10862 * server.c (handle_query): Use target_supports_hardware_single_step
10863 instead of target_supports_conditional_breakpoints.
10864
ade90bde
YQ
108652015-09-15 Yao Qi <yao.qi@linaro.org>
10866
10867 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10868 function.
10869 (struct linux_target_ops the_low_target): Install
10870 aarch64_linux_siginfo_fixup.
10871
94585166
DB
108722015-09-11 Don Breazeal <donb@codesourcery.com>
10873 Luis Machado <lgustavo@codesourcery.com>
10874
10875 * linux-low.c (linux_mourn): Static declaration.
10876 (linux_arch_setup): Move in front of
10877 handle_extended_wait.
10878 (linux_arch_setup_thread): New function.
10879 (handle_extended_wait): Handle exec events. Call
10880 linux_arch_setup_thread. Make event_lwp argument a
10881 pointer-to-a-pointer.
10882 (check_zombie_leaders): Do not check stopped threads.
10883 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10884 (linux_low_filter_event): Add lwp and thread for exec'ing
10885 non-leader thread if leader thread has been deleted.
10886 Refactor code into linux_arch_setup_thread and call it.
10887 Pass child lwp pointer by reference to handle_extended_wait.
10888 (linux_wait_for_event_filtered): Update comment.
10889 (linux_wait_1): Prevent clobbering exec event status.
10890 (linux_supports_exec_events): New function.
10891 (linux_target_ops) <supports_exec_events>: Initialize new member.
10892 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10893 new member.
10894 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10895 * server.c (report_exec_events): New global variable.
10896 (handle_query): Handle qSupported query for exec-events feature.
10897 (captured_main): Initialize report_exec_events.
10898 * server.h (report_exec_events): Declare new global variable.
10899 * target.h (struct target_ops) <supports_exec_events>: New
10900 member.
10901 (target_supports_exec_events): New macro.
10902 * win32-low.c (win32_target_ops) <supports_exec_events>:
10903 Initialize new member.
10904
0568462b
MM
109052015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10906
10907 * linux-low.c (linux_low_enable_btrace): Remove.
10908 (linux_target_ops): Replace linux_low_enable_btrace with
10909 linux_enable_btrace.
10910
39edd165
YQ
109112015-09-03 Yao Qi <yao.qi@linaro.org>
10912
10913 * linux-aarch64-low.c (aarch64_insert_point): Call
10914 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10915 returns true.
10916
1db33b5a
UW
109172015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10918
10919 * linux-low.c (check_stopped_by_breakpoint): Use
10920 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10921
ab290430
PA
109222015-08-27 Pedro Alves <palves@redhat.com>
10923
10924 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10925
8d749320
SM
109262015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10927
6711b7f8
SM
10928 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10929 the XNEW-family equivalent.
8d749320
SM
10930 (compile_bytecodes): Likewise.
10931 * dll.c (loaded_dll): Likewise.
10932 * event-loop.c (append_callback_event): Likewise.
10933 (create_file_handler): Likewise.
10934 (create_file_event): Likewise.
10935 * hostio.c (handle_open): Likewise.
10936 * inferiors.c (add_thread): Likewise.
10937 (add_process): Likewise.
10938 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10939 * linux-arm-low.c (arm_new_process): Likewise.
10940 (arm_new_thread): Likewise.
10941 * linux-low.c (add_to_pid_list): Likewise.
10942 (linux_add_process): Likewise.
10943 (handle_extended_wait): Likewise.
10944 (add_lwp): Likewise.
10945 (enqueue_one_deferred_signal): Likewise.
10946 (enqueue_pending_signal): Likewise.
10947 (linux_resume_one_lwp_throw): Likewise.
10948 (linux_resume_one_thread): Likewise.
10949 (linux_read_memory): Likewise.
10950 (linux_write_memory): Likewise.
10951 * linux-mips-low.c (mips_linux_new_process): Likewise.
10952 (mips_linux_new_thread): Likewise.
10953 (mips_add_watchpoint): Likewise.
10954 * linux-x86-low.c (initialize_low_arch): Likewise.
10955 * lynx-low.c (lynx_add_process): Likewise.
10956 * mem-break.c (set_raw_breakpoint_at): Likewise.
10957 (set_breakpoint): Likewise.
10958 (add_condition_to_breakpoint): Likewise.
10959 (add_commands_to_breakpoint): Likewise.
10960 (clone_agent_expr): Likewise.
10961 (clone_one_breakpoint): Likewise.
10962 * regcache.c (new_register_cache): Likewise.
10963 * remote-utils.c (look_up_one_symbol): Likewise.
10964 * server.c (queue_stop_reply): Likewise.
10965 (start_inferior): Likewise.
10966 (queue_stop_reply_callback): Likewise.
10967 (handle_target_event): Likewise.
10968 * spu-low.c (fetch_ppc_memory): Likewise.
10969 (store_ppc_memory): Likewise.
10970 * target.c (set_target_ops): Likewise.
10971 * thread-db.c (thread_db_load_search): Likewise.
10972 (try_thread_db_load_1): Likewise.
10973 * tracepoint.c (add_tracepoint): Likewise.
10974 (add_tracepoint_action): Likewise.
10975 (create_trace_state_variable): Likewise.
10976 (cmd_qtdpsrc): Likewise.
10977 (cmd_qtro): Likewise.
10978 (add_while_stepping_state): Likewise.
10979 * win32-low.c (child_add_thread): Likewise.
10980 (get_image_name): Likewise.
10981
ed8b7b42
YQ
109822015-08-25 Yao Qi <yao.qi@linaro.org>
10983
10984 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10985
db3cb7cb
YQ
109862015-08-25 Yao Qi <yao.qi@linaro.org>
10987
10988 * Makefile.in (aarch64-linux.o): New rule.
10989 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10990 srv_tgtobj.
10991 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10992 (aarch64_init_debug_reg_state): Make it extern.
10993 (aarch64_linux_prepare_to_resume): Remove.
10994
f6011a1c
YQ
109952015-08-25 Yao Qi <yao.qi@linaro.org>
10996
10997 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10998 lwp_arch_private_info and ptid_of_lwp.
10999
88e2cf7e
YQ
110002015-08-25 Yao Qi <yao.qi@linaro.org>
11001
11002 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
11003 Find proc_info by find_process_pid. All callers updated.
11004
5e35436e
YQ
110052015-08-25 Yao Qi <yao.qi@linaro.org>
11006
11007 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
11008 Remove.
11009 (debug_reg_change_callback): Remove.
11010 (aarch64_notify_debug_reg_change): Remove.
11011
4a8a7965
YQ
110122015-08-25 Yao Qi <yao.qi@linaro.org>
11013
11014 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
11015 Call current_lwp_ptid.
11016
32a271ee
YQ
110172015-08-25 Yao Qi <yao.qi@linaro.org>
11018
11019 * linux-aarch64-low.c (debug_reg_change_callback): Use
11020 debug_printf.
11021
0d51c8d7
YQ
110222015-08-25 Yao Qi <yao.qi@linaro.org>
11023
11024 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
11025
31a43dd5
YQ
110262015-08-25 Yao Qi <yao.qi@linaro.org>
11027
11028 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
11029
8ee52567
YQ
110302015-08-25 Yao Qi <yao.qi@linaro.org>
11031
11032 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
11033 the code.
11034
ff3f0f45
YQ
110352015-08-25 Yao Qi <yao.qi@linaro.org>
11036
11037 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
11038 Remove.
11039 (debug_reg_change_callback): Remove argument entry and add argument
11040 lwp. Remove local variable thread. Don't print thread id in the
11041 debugging output. Don't check whether pid of thread equals to pid.
11042 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
11043 iterate_over_lwps instead find_inferior.
11044
3d40fbb5
PA
110452015-08-24 Pedro Alves <palves@redhat.com>
11046
11047 * inferiors.c (get_first_process): New function.
11048 * inferiors.h (get_first_process): New declaration.
11049 * remote-utils.c (read_ptid): Default to the first process in the
11050 list, instead of to the current thread's process.
11051
438e1e42
PA
110522015-08-24 Pedro Alves <palves@redhat.com>
11053
11054 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
11055 * event-loop.c: Likewise.
11056 * remote-utils.c: Likewise.
11057 * tracepoint.c: Likewise.
11058
a8c6d4fc
PA
110592015-08-24 Pedro Alves <palves@redhat.com>
11060
11061 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
11062 ptid_get_lwp.
11063
99b0bb12
PA
110642015-08-21 Pedro Alves <palves@redhat.com>
11065
11066 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11067 instead of literal 1.
11068
f8904751
PA
110692015-08-21 Pedro Alves <palves@redhat.com>
11070
11071 * tdesc.c (default_description): Explicitly zero-initialize.
11072
465a859e
PA
110732015-08-21 Pedro Alves <palves@redhat.com>
11074
11075 PR gdb/18749
11076 * inferiors.c (remove_thread): Discard any pending stop reply for
11077 this thread.
11078 * server.c (remove_all_on_match_pid): Rename to ...
11079 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11080 instead of a pid.
11081 (discard_queued_stop_replies): Change parameter to a ptid. Now
11082 extern.
11083 (handle_v_kill, kill_inferior_callback, captured_main)
11084 (process_serial_event): Adjust.
11085 * server.h (discard_queued_stop_replies): Declare.
11086
f0db101d
PA
110872015-08-21 Pedro Alves <palves@redhat.com>
11088
11089 * linux-low.c (wait_for_sigstop): Always switch to no thread
11090 selected if the previously current thread dies.
11091 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11092 process instead of the current thread's.
11093 * remote-utils.c (input_interrupt): Don't check if there's no
11094 current thread.
11095 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11096 current thread to the general thread fails, error out.
11097 (handle_qxfer_auxv, handle_qxfer_libraries)
11098 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11099 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11100 (handle_query): Check if there's a thread selected instead of
11101 checking whether there's any thread in the thread list.
11102 (handle_qxfer_threads, handle_qxfer_btrace)
11103 (handle_qxfer_btrace_conf): Don't error out early if there's no
11104 thread in the thread list.
11105 (handle_v_cont, myresume): Don't set the current thread to the
11106 continue thread.
11107 (process_serial_event) <Hg handling>: Also set thread_id if the
11108 previous general thread is still alive.
11109 (process_serial_event) <g/G handling>: If setting the current
11110 thread to the general thread fails, error out.
11111 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11112 thread's lwp instead of the current thread's.
11113 * target.c (set_desired_thread): If the desired thread was not
11114 found, leave the current thread pointing to NULL. Return an int
11115 (boolean) indicating success.
11116 * target.h (set_desired_thread): Change return type to int.
11117
40045d91
MF
111182015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11119
11120 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11121 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11122 #includes.
11123 (ps_get_thread_area): New function.
11124
45face3b
GB
111252015-08-19 Gary Benson <gbenson@redhat.com>
11126
11127 * hostio.c (handle_pread): Do not attempt to read more data
11128 than hostio_reply_with_data can fit in a packet.
11129
16d5f642
JB
111302015-08-18 Joel Brobecker <brobecker@adacore.com>
11131
11132 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11133
a738da3a
MF
111342015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11135
11136 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11137
33ebda9d
PA
111382015-08-06 Pedro Alves <palves@redhat.com>
11139
11140 * tracepoint.c (expr_eval_result): Now an int.
11141
a44892be
PA
111422015-08-06 Pedro Alves <palves@redhat.com>
11143
11144 * gdbthread.h (struct regcache): Forward declare.
11145 (struct thread_info) <regcache_data>: Now a struct regcache
11146 pointer.
11147 * inferiors.c (inferior_regcache_data)
11148 (set_inferior_regcache_data): Now work with struct regcache
11149 pointers.
11150 * inferiors.h (struct regcache): Forward declare.
11151 (inferior_regcache_data, set_inferior_regcache_data): Now work
11152 with struct regcache pointers.
11153 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11154 (free_register_cache_thread): Remove struct regcache pointer
11155 casts.
11156
608a1e46
PA
111572015-08-06 Pedro Alves <palves@redhat.com>
11158
11159 * server.c (captured_main): On error, print the exception message
11160 to stderr, and if run_once is set, throw a quit.
11161
f0ce0d3a
PA
111622015-08-06 Pedro Alves <palves@redhat.com>
11163
11164 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11165 the current thread.
11166
bf47e248
PA
111672015-08-06 Pedro Alves <palves@redhat.com>
11168
11169 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11170 reading beyond the passed in buffer length.
11171
b6b9ffcc
PL
111722015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11173
11174 * tracepoint.c (symbol_list) <required>: Remove.
11175
863d01bd
PA
111762015-08-06 Pedro Alves <palves@redhat.com>
11177
11178 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11179 count if stopping and suspending threads.
11180 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11181 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11182 (linux_detach): Complete an ongoing step-over.
11183 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11184 throughout.
11185 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11186 (linux_wait_1): If passing a signal to the inferior after
11187 finishing a step-over, unsuspend and re-resume all lwps. If we
11188 see a single-step event but the thread should be continuing, don't
11189 pass the trap to gdb.
11190 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11191 internal_error instead of gdb_assert.
11192 (enqueue_pending_signal): New function.
11193 (check_ptrace_stopped_lwp_gone): Add debug output.
11194 (start_step_over): Use internal_error instead of gdb_assert.
11195 (complete_ongoing_step_over): New function.
11196 (linux_resume_one_thread): Don't resume a suspended thread.
11197 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11198 it stepping.
11199
00db26fa
PA
112002015-08-06 Pedro Alves <palves@redhat.com>
11201
11202 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11203 (linux_thread_alive): Use lwp_is_marked_dead.
11204 (extended_event_reported): Delete.
11205 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11206 instead of extended_event_reported.
11207 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11208 as well.
11209 (lwp_is_marked_dead): New function.
11210 (lwp_running): Use lwp_is_marked_dead.
11211 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11212 comment.
11213
ad071a30
PA
112142015-08-06 Pedro Alves <palves@redhat.com>
11215
11216 * linux-low.c (linux_wait_1): Move fork event output out of the
11217 !report_to_gdb check. Pass event_child->waitstatus to
11218 target_waitstatus_to_string instead of ourstatus.
11219
524b57e6
YQ
112202015-08-04 Yao Qi <yao.qi@linaro.org>
11221
11222 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11223 if current_thread is 32 bit.
11224
6085d6f6
YQ
112252015-08-04 Yao Qi <yao.qi@linaro.org>
11226
11227 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11228 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11229 * server.c (extended_protocol): Remove "static".
11230 * server.h (extended_protocol): Declare it.
11231
8a7e4587
YQ
112322015-08-04 Yao Qi <yao.qi@linaro.org>
11233
11234 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11235 both aarch64 and aarch32.
11236 (aarch64_set_pc): Likewise.
11237
3b53ae99
YQ
112382015-08-04 Yao Qi <yao.qi@linaro.org>
11239
11240 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11241 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11242 arm-with-neon.xml to srv_xmlfiles.
11243 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11244 (is_64bit_tdesc): New function.
11245 (aarch64_linux_read_description): New function.
11246 (aarch64_arch_setup): Call aarch64_linux_read_description.
11247 (regs_info): Rename to regs_info_aarch64.
11248 (aarch64_regs_info): Return right regs_info.
11249 (initialize_low_arch): Call initialize_low_arch_aarch32.
11250
bd9e6534
YQ
112512015-08-04 Yao Qi <yao.qi@linaro.org>
11252
11253 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11254 * linux-aarch32-low.c: New file.
11255 * linux-aarch32-low.h: New file.
11256 * linux-arm-low.c (arm_fill_gregset): Move it to
11257 linux-aarch32-low.c.
11258 (arm_store_gregset): Likewise.
11259 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11260 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11261 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11262 (regs_info): Rename to regs_info_arm.
11263 (arm_regs_info): Return regs_info_aarch32 if
11264 have_ptrace_getregset is 1 and target description is
11265 arm_with_neon or arm_with_vfpv3.
11266 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11267 Call initialize_low_arch_aarch32 instead.
11268
ded48a5e
YQ
112692015-08-04 Yao Qi <yao.qi@linaro.org>
11270
11271 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11272 * linux-low.c: ... here.
11273 * linux-low.h (have_ptrace_getregset): Declare it.
11274
96e9210f
PA
112752015-08-04 Pedro Alves <palves@redhat.com>
11276
11277 * thread-db.c (struct thread_db): Use new typedefs.
11278 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11279 CHK calls.
11280 (disable_thread_event_reporting): Cast result of dlsym to
11281 destination function pointer type.
11282 (thread_db_mourn): Use td_ta_delete_ftype.
11283
af60a1ef
SL
112842015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11285
11286 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11287 arch variant.
11288 (CDX_BREAKPOINT): Define for R2.
11289 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11290 (the_low_target): Add comments.
11291
e8b41681
YQ
112922015-07-30 Yao Qi <yao.qi@linaro.org>
11293
11294 * linux-arm-low.c (arm_hwcap): Remove it.
11295 (arm_read_description): New local variable arm_hwcap. Don't
11296 set arm_hwcap to zero.
11297
89abb039
YQ
112982015-07-30 Yao Qi <yao.qi@linaro.org>
11299
11300 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11301 Use regcache->tdesc instead.
11302 (arm_store_wmmxregset): Likewise.
11303 (arm_fill_vfpregset): Likewise.
11304 (arm_store_vfpregset): Likewise.
11305
deca266c
YQ
113062015-07-30 Yao Qi <yao.qi@linaro.org>
11307
11308 * linux-arm-low.c: Include arch/arm.h.
11309 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11310 (arm_store_gregset): Likewise.
11311
aa58a496
SM
113122015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11313
11314 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11315 ptrace's 4th parameter.
11316
50904b25
YQ
113172015-07-27 Yao Qi <yao.qi@linaro.org>
11318
11319 * configure.srv (case aarch64*-*-linux*): Don't set
11320 srv_linux_usrregs.
11321
5826e159
PA
113222015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11323
11324 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11325 sys/ptrace.h.
11326 * linux-arm-low.c: Likewise.
11327 * linux-cris-low.c: Likewise.
11328 * linux-crisv32-low.c: Likewise.
11329 * linux-low.c: Likewise.
11330 * linux-m68k-low.c: Likewise.
11331 * linux-mips-low.c: Likewise.
11332 * linux-nios2-low.c: Likewise.
11333 * linux-s390-low.c: Likewise.
11334 * linux-sparc-low.c: Likewise.
11335 * linux-tic6x-low.c: Likewise.
11336 * linux-tile-low.c: Likewise.
11337 * linux-x86-low.c: Likewise.
11338
54019719
PA
113392015-07-24 Pedro Alves <palves@redhat.com>
11340
11341 * config.in: Regenerate.
11342 * configure: Regenerate.
11343
eb7aa561
PA
113442015-07-24 Pedro Alves <palves@redhat.com>
11345
11346 * acinclude.m4: Include ../ptrace.m4.
11347 * configure.ac: Call GDB_AC_PTRACE.
11348 * config.in, configure: Regenerate.
11349
55d7b841
YQ
113502015-07-24 Yao Qi <yao.qi@linaro.org>
11351
11352 * linux-low.c (linux_create_inferior): Remove setting to
11353 proc->priv->new_inferior.
11354 (linux_attach): Likewise.
11355 (linux_low_filter_event): Likewise.
11356 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11357
c06cbd92
YQ
113582015-07-24 Yao Qi <yao.qi@linaro.org>
11359
11360 * linux-low.c (linux_arch_setup): New function.
11361 (linux_low_filter_event): If proc->tdesc is NULL and
11362 proc->attached is true, call the_low_target.arch_setup.
11363 Otherwise, keep status pending, and return.
11364 (linux_resume_one_lwp_throw): Don't call get_pc if
11365 thread->while_stepping isn't NULL. Don't call
11366 get_thread_regcache if proc->tdesc is NULL.
11367 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11368 (linux_target_ops): Install arch_setup.
11369 * server.c (start_inferior): Call the_target->arch_setup.
11370 * target.h (struct target_ops) <arch_setup>: New field.
11371 (target_arch_setup): New marco.
11372 * lynx-low.c (lynx_target_ops): Update.
11373 * nto-low.c (nto_target_ops): Update.
11374 * spu-low.c (spu_target_ops): Update.
11375 * win32-low.c (win32_target_ops): Update.
11376
5ae3ebba
YQ
113772015-07-24 Yao Qi <yao.qi@linaro.org>
11378
11379 * linux-low.c (linux_add_process): Don't set
11380 proc->priv->new_inferior.
11381 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11382 (linux_attach): Likewise.
11383
eb97750b
YQ
113842015-07-24 Yao Qi <yao.qi@linaro.org>
11385
11386 * server.c (start_inferior): Code refactor.
11387
51aee833
YQ
113882015-07-24 Yao Qi <yao.qi@linaro.org>
11389
11390 * server.c (process_serial_event): Set general_thread.
11391
af1b22f3
YQ
113922015-07-21 Yao Qi <yao.qi@linaro.org>
11393
11394 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11395 aarch64_linux_get_debug_reg_capacity.
11396
554717a3
YQ
113972015-07-17 Yao Qi <yao.qi@linaro.org>
11398
11399 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11400 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11401 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11402 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11403 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11404 (AARCH64_HWP_ALIGNMENT): Likewise.
11405 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11406 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11407 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11408 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11409 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11410 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11411 (struct aarch64_debug_reg_state): Likewise.
11412 (struct arch_lwp_info): Likewise.
11413 (aarch64_align_watchpoint): Likewise.
11414 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11415 (aarch64_watchpoint_length): Likewise.
11416 (aarch64_point_encode_ctrl_reg): Likewise
11417 (aarch64_point_is_aligned): Likewise.
11418 (aarch64_align_watchpoint): Likewise.
11419 (aarch64_linux_set_debug_regs):
11420 (aarch64_dr_state_insert_one_point): Likewise.
11421 (aarch64_dr_state_remove_one_point): Likewise.
11422 (aarch64_handle_breakpoint): Likewise.
11423 (aarch64_handle_aligned_watchpoint): Likewise.
11424 (aarch64_handle_unaligned_watchpoint): Likewise.
11425 (aarch64_handle_watchpoint): Likewise.
11426
c67ca4de
YQ
114272015-07-17 Yao Qi <yao.qi@linaro.org>
11428
11429 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11430 and don't aarch64_get_debug_reg_state. All callers update.
11431 (aarch64_handle_aligned_watchpoint): Likewise.
11432 (aarch64_handle_unaligned_watchpoint): Likewise.
11433 (aarch64_handle_watchpoint): Likewise.
11434 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11435 (aarch64_remove_point): Likewise.
11436
25abf979
YQ
114372015-07-17 Yao Qi <yao.qi@linaro.org>
11438
11439 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11440 debug_printf.
11441 (aarch64_handle_unaligned_watchpoint): Likewise.
11442
db1ff28b
JK
114432015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11444
11445 Revert the previous 3 commits:
11446 Move gdb_regex* to common/
11447 Move linux_find_memory_regions_full & co.
11448 gdbserver build-id attribute generator
11449
700ca40f
JK
114502015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11451 Jan Kratochvil <jan.kratochvil@redhat.com>
11452
11453 gdbserver build-id attribute generator.
11454 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11455 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11456 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11457 (find_phdr): New.
11458 (get_dynamic): Use find_pdhr to traverse program headers.
11459 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11460 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11461 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11462 (get_hex_build_id): New.
11463 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11464 to reply XML document.
11465
9904185c
JK
114662015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11467 Jan Kratochvil <jan.kratochvil@redhat.com>
11468
11469 * target.c: Include target/target-utils.h and fcntl.h.
11470 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11471 (target_fileio_read_stralloc): New functions.
11472
6e5b4429
JK
114732015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11474
11475 * Makefile.in (OBS): Add gdb_regex.o.
11476 (gdb_regex.o): New.
11477 * config.in: Rebuilt.
11478 * configure: Rebuilt.
11479
ddc98fbf
JK
114802015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11481 Jan Kratochvil <jan.kratochvil@redhat.com>
11482
11483 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11484 * Makefile.in (OBS): Add target-utils.o.
11485 (linux-maps.o, target-utils.o): New.
11486 * configure.srv (srv_linux_obj): Add linux-maps.o.
11487
e57bb7a0
PL
114882015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11489
11490 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11491 function, return 1.
11492 (the_low_target): Install it.
11493
586b02a9
PA
114942015-07-14 Pedro Alves <palves@redhat.com>
11495
11496 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11497 Instead, ignore ECHILD, and throw an error for other errnos.
11498
58c1b36c
PA
114992015-07-10 Pedro Alves <palves@redhat.com>
11500
11501 * event-loop.c (struct callback_event) <data>: Change type to
11502 gdb_client_data instance instead of gdb_client_data pointer.
11503 (append_callback_event): Adjust.
11504
421530db
PL
115052015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11506
11507 * linux-aarch64-low.c: Add comments for each linux_target_ops
11508 method. Remove comments already covered in target_ops and
11509 linux_target_ops definitions.
11510 (the_low_target): Add comments for each unimplemented method.
11511
c2d65f38
YQ
115122015-07-09 Yao Qi <yao.qi@linaro.org>
11513
11514 * linux-aarch64-low.c (aarch64_regmap): Remove.
11515 (aarch64_usrregs_info): Remove.
11516 (regs_info): Set field usrregs to NULL.
11517
b20a6524
MM
115182015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11519
11520 * linux-low.c: Include "rsp-low.h"
11521 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11522 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11523 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11524 (handle_btrace_enable_pt): New.
11525 (handle_btrace_general_set): Support "pt".
11526 (handle_btrace_conf_general_set): Support "pt:size".
11527
96c97461
PL
115282015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11529
11530 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11531 Z_PACKET_SW_BP.
11532
37d66942
PL
115332015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11534
11535 * linux-aarch64-low.c: Remove comment about endianness.
11536 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11537 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11538 memcmp.
11539
dc06243f
GB
115402015-06-24 Gary Benson <gbenson@redhat.com>
11541
11542 * linux-i386-ipa.c (stdint.h): Do not include.
11543 * lynx-i386-low.c (stdint.h): Likewise.
11544 * lynx-ppc-low.c (stdint.h): Likewise.
11545 * mem-break.c (stdint.h): Likewise.
11546 * thread-db.c (stdint.h): Likewise.
11547 * tracepoint.c (stdint.h): Likewise.
11548 * win32-low.c (stdint.h): Likewise.
11549
124e13d9
SM
115502015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11551
11552 * server.c (write_qxfer_response): Update call to
11553 remote_escape_output.
11554
909c2cda
JK
115552015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11556 Jan Kratochvil <jan.kratochvil@redhat.com>
11557
11558 Merge multiple hex conversions.
11559 * gdbreplay.c (tohex): Rename to 'fromhex'.
11560 (logchar): Use fromhex.
11561
24c05f46
JK
115622015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11563
11564 * server.c (handle_qxfer_libraries): Set `version' attribute for
11565 <library-list>.
11566
14d2069a
GB
115672015-06-10 Gary Benson <gbenson@redhat.com>
11568
11569 * target.h (struct target_ops) <multifs_open>: New field.
11570 <multifs_unlink>: Likewise.
11571 <multifs_readlink>: Likewise.
11572 * linux-low.c (nat/linux-namespaces.h): New include.
11573 (linux_target_ops): Initialize the_target->multifs_open,
11574 the_target->multifs_unlink and the_target->multifs_readlink.
11575 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11576 * hostio.c (hostio_fs_pid): New static variable.
11577 (hostio_handle_new_gdb_connection): New function.
11578 (handle_setfs): Likewise.
11579 (handle_open): Use the_target->multifs_open as appropriate.
11580 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11581 (handle_readlink): Use the_target->multifs_readlink as
11582 appropriate.
11583 (handle_vFile): Handle vFile:setfs packets.
11584 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11585 after target_handle_new_gdb_connection.
11586
4b8b5e72
GB
115872015-06-10 Gary Benson <gbenson@redhat.com>
11588
11589 * configure.ac (AC_CHECK_FUNCS): Add setns.
11590 * config.in: Regenerate.
11591 * configure: Likewise.
11592 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11593 (linux-namespaces.o): New rule.
11594 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11595
3ac2e371
GB
115962015-06-09 Gary Benson <gbenson@redhat.com>
11597
11598 * hostio.c (handle_open): Process mode argument with
11599 fileio_to_host_mode.
11600
ca9b78ce
YQ
116012015-06-01 Yao Qi <yao.qi@linaro.org>
11602
11603 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11604 * linux-x86-low.c: Likewise.
11605
bfacd19d
DB
116062015-05-28 Don Breazeal <donb@codesourcery.com>
11607
11608 * linux-low.c (handle_extended_wait): Initialize
11609 thread_info.last_resume_kind for new fork children.
11610
452003ef
PA
116112015-05-15 Pedro Alves <palves@redhat.com>
11612
11613 * target.h (target_handle_new_gdb_connection): Rewrite using if
11614 wrapped in do/while.
11615
1041a03c
JB
116162015-05-14 Joel Brobecker <brobecker@adacore.com>
11617
11618 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11619 * configure, config.in: Regenerate.
11620 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11621 Declare typedef.
11622
c269dbdb
DB
116232015-05-12 Don Breazeal <donb@codesourcery.com>
11624
11625 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11626 PTRACE_EVENT_VFORK_DONE.
11627 (linux_low_ptrace_options, extended_event_reported): Add vfork
11628 events.
11629 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11630 and "vforkdone" for RSP 'T' Stop Reply Packet.
11631 * server.h (report_vfork_events): Declare
11632 global variable.
11633
3a8a0396
DB
116342015-05-12 Don Breazeal <donb@codesourcery.com>
11635
11636 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11637 (the_low_target) <new_fork>: Initialize new member.
11638 * linux-arm-low.c (arm_new_fork): New function.
11639 (the_low_target) <new_fork>: Initialize new member.
11640 * linux-low.c (handle_extended_wait): Call new target function
11641 new_fork.
11642 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11643 * linux-mips-low.c (mips_add_watchpoint): New function
11644 extracted from mips_insert_point.
11645 (the_low_target) <new_fork>: Initialize new member.
11646 (mips_linux_new_fork): New function.
11647 (mips_insert_point): Call mips_add_watchpoint.
11648 * linux-x86-low.c (x86_linux_new_fork): New function.
11649 (the_low_target) <new_fork>: Initialize new member.
11650
de0d863e
DB
116512015-05-12 Don Breazeal <donb@codesourcery.com>
11652
11653 * linux-low.c (handle_extended_wait): Implement return value,
11654 rename argument 'event_child' to 'event_lwp', handle
11655 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11656 (linux_low_ptrace_options): New function.
11657 (linux_low_filter_event): Call linux_low_ptrace_options,
11658 use different argument fo linux_enable_event_reporting,
11659 use return value from handle_extended_wait.
11660 (extended_event_reported): New function.
11661 (linux_wait_1): Call extended_event_reported and set
11662 status to report fork events.
11663 (linux_write_memory): Add pid to debug message.
11664 (reset_lwp_ptrace_options_callback): New function.
11665 (linux_handle_new_gdb_connection): New function.
11666 (linux_target_ops): Initialize new structure member.
11667 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11668 * lynx-low.c: Initialize new structure member.
11669 * remote-utils.c (prepare_resume_reply): Implement stop reason
11670 "fork" for "T" stop message.
11671 * server.c (handle_query): Call handle_new_gdb_connection.
11672 * server.h (report_fork_events): Declare global flag.
11673 * target.h (struct target_ops) <handle_new_gdb_connection>:
11674 New member.
11675 (target_handle_new_gdb_connection): New macro.
11676 * win32-low.c: Initialize new structure member.
11677
ddcbc397
DB
116782015-05-12 Don Breazeal <donb@codesourcery.com>
11679
11680 * mem-break.c (APPEND_TO_LIST): Define macro.
11681 (clone_agent_expr): New function.
11682 (clone_one_breakpoint): New function.
11683 (clone_all_breakpoints): New function.
11684 * mem-break.h: Declare new functions.
11685
89245bc0
DB
116862015-05-12 Don Breazeal <donb@codesourcery.com>
11687
11688 * linux-low.c (linux_supports_fork_events): New function.
11689 (linux_supports_vfork_events): New function.
11690 (linux_target_ops): Initialize new structure members.
11691 (initialize_low): Call linux_check_ptrace_features.
11692 * lynx-low.c (lynx_target_ops): Initialize new structure
11693 members.
11694 * server.c (report_fork_events, report_vfork_events):
11695 New global flags.
11696 (handle_query): Add new features to qSupported packet and
11697 response.
11698 (captured_main): Initialize new global variables.
11699 * target.h (struct target_ops) <supports_fork_events>:
11700 New member.
11701 <supports_vfork_events>: New member.
11702 (target_supports_fork_events): New macro.
11703 (target_supports_vfork_events): New macro.
11704 * win32-low.c (win32_target_ops): Initialize new structure
11705 members.
11706
835205d0
GB
117072015-05-12 Gary Benson <gbenson@redhat.com>
11708
11709 * server.c (handle_qxfer_exec_file): Use current process
11710 if annex is empty.
11711
21e94bd9
SL
117122015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11713
11714 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11715 Remove HAVE_PTRACE_GETREGS conditionals.
11716 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11717 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11718
45614f15
YQ
117192015-05-08 Yao Qi <yao.qi@linaro.org>
11720
11721 * linux-low.c (linux_supports_conditional_breakpoints): New
11722 function.
11723 (linux_target_ops): Install new target method.
11724 * lynx-low.c (lynx_target_ops): Install NULL hook for
11725 supports_conditional_breakpoints.
11726 * nto-low.c (nto_target_ops): Likewise.
11727 * spu-low.c (spu_target_ops): Likewise.
11728 * win32-low.c (win32_target_ops): Likewise.
11729 * server.c (handle_query): Check
11730 target_supports_conditional_breakpoints.
11731 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11732 New field.
11733 (target_supports_conditional_breakpoints): New macro.
11734
80ad801e
PA
117352015-05-06 Pedro Alves <palves@redhat.com>
11736
11737 PR server/18081
11738 * server.c (start_inferior): If the process exits, mourn it.
11739
819843c7
GB
117402015-04-21 Gary Benson <gbenson@redhat.com>
11741
11742 * hostio.c (fileio_open_flags_to_host): Factored out to
11743 fileio_to_host_openflags in common/fileio.c. Single use
11744 updated.
11745
a2d5a9d7
MF
117462015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11747
11748 * linux-xtensa-low.c (xtensa_fill_gregset)
11749 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11750 XCHAL_HAVE_LOOP.
11751
deb44829
MF
117522015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11753
11754 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11755 (regs_info): Replace usrregs pointer with NULL.
11756
e57f1de3
GB
117572015-04-17 Gary Benson <gbenson@redhat.com>
11758
11759 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11760 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11761 * server.c (handle_qxfer_exec_file): New function.
11762 (qxfer_packets): Add exec-file entry.
11763 (handle_query): Report qXfer:exec-file:read as supported packet.
11764
62828379
RN
117652015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11766
11767 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11768
b88bb450
GB
117692015-04-09 Gary Benson <gbenson@redhat.com>
11770
11771 * hostio-errno.c (errno_to_fileio_error): Remove function.
11772 Update caller to use remote_fileio_to_fio_error.
11773
c8f4bfdd
YQ
117742015-04-09 Yao Qi <yao.qi@linaro.org>
11775
11776 * linux-low.c (linux_insert_point): Call
11777 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11778 (linux_remove_point): Call remove_memory_breakpoint if type is
11779 raw_bkpt_type_sw.
11780 * linux-x86-low.c (x86_insert_point): Don't call
11781 insert_memory_breakpoint.
11782 (x86_remove_point): Don't call remove_memory_breakpoint.
11783
41f98f02
PA
117842015-04-01 Pedro Alves <palves@redhat.com>
11785 Cleber Rosa <crosa@redhat.com>
11786
11787 * server.c (gdbserver_usage): Reorganize and extend the usage
11788 message.
11789
2bf6fb9d
PA
117902015-03-24 Pedro Alves <palves@redhat.com>
11791
11792 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11793 output. Also dump TRAP_TRACE.
11794 (linux_low_filter_event): In debug output, distinguish a
11795 resume_stop SIGSTOP from a delayed SIGSTOP.
11796
369f6daa
GB
117972015-03-24 Gary Benson <gbenson@redhat.com>
11798
11799 * linux-x86-low.c (x86_linux_new_thread): Moved to
11800 nat/x86-linux.c.
11801 (x86_linux_prepare_to_resume): Likewise.
11802
8e5d4070
GB
118032015-03-24 Gary Benson <gbenson@redhat.com>
11804
11805 * Makefile.in (x86-linux-dregs.o): New rule.
11806 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11807 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11808 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11809 (x86_linux_dr_get): Likewise.
11810 (x86_linux_dr_set): Likewise.
11811 (update_debug_registers_callback): Likewise.
11812 (x86_linux_dr_set_addr): Likewise.
11813 (x86_linux_dr_get_addr): Likewise.
11814 (x86_linux_dr_set_control): Likewise.
11815 (x86_linux_dr_get_control): Likewise.
11816 (x86_linux_dr_get_status): Likewise.
11817 (x86_linux_update_debug_registers): Likewise.
11818
2b95d440
GB
118192015-03-24 Gary Benson <gbenson@redhat.com>
11820
11821 * linux-x86-low.c (x86_linux_update_debug_registers):
11822 New function, factored out from...
11823 (x86_linux_prepare_to_resume): ...this.
11824
14b0bc68
GB
118252015-03-24 Gary Benson <gbenson@redhat.com>
11826
11827 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11828 (x86_linux_dr_set): Likewise.
11829 (update_debug_registers_callback): Likewise.
11830 (x86_linux_dr_set_addr): Likewise.
11831 (x86_linux_dr_get_addr): Likewise.
11832 (x86_linux_dr_set_control): Likewise.
11833 (x86_linux_dr_get_control): Likewise.
11834 (x86_linux_dr_get_status): Likewise.
11835 (x86_linux_prepare_to_resume): Likewise.
11836
5dfe6ca8
GB
118372015-03-24 Gary Benson <gbenson@redhat.com>
11838
11839 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11840 Use perror_with_name. Pass string through gettext.
11841 (x86_linux_dr_set): Likewise.
11842
d33472ad
GB
118432015-03-24 Gary Benson <gbenson@redhat.com>
11844
11845 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11846 (x86_linux_dr_set_addr): ...this.
11847 (x86_dr_low_get_addr): Rename to...
11848 (x86_linux_dr_get_addr): ...this.
11849 (x86_dr_low_set_control): Rename to...
11850 (x86_linux_dr_set_control): ...this.
11851 (x86_dr_low_get_control): Rename to...
11852 (x86_linux_dr_get_control): ...this.
11853 (x86_dr_low_get_status): Rename to...
11854 (x86_linux_dr_get_status): ...this.
11855 (x86_dr_low): Update with new function names.
11856
4b134ca1
GB
118572015-03-24 Gary Benson <gbenson@redhat.com>
11858
11859 * Makefile.in (x86-linux.o): New rule.
11860 * configure.srv: Add x86-linux.o to relevant targets.
11861 * linux-low.c (lwp_set_arch_private_info): New function.
11862 (lwp_arch_private_info): Likewise.
11863 * linux-x86-low.c: Include nat/x86-linux.h.
11864 (arch_lwp_info): Removed structure.
11865 (update_debug_registers_callback):
11866 Use lwp_set_debug_registers_changed.
11867 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11868 and lwp_set_debug_registers_changed.
11869 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11870
34c703da
GB
118712015-03-24 Gary Benson <gbenson@redhat.com>
11872
11873 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11874 * linux-arm-low.c (arm_new_thread): Likewise.
11875 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11876 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11877 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11878 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11879
cff068da
GB
118802015-03-24 Gary Benson <gbenson@redhat.com>
11881
11882 * linux-low.c (ptid_of_lwp): New function.
11883 (lwp_is_stopped): Likewise.
11884 (lwp_stop_reason): Likewise.
11885 * linux-x86-low.c (update_debug_registers_callback):
11886 Use lwp_is_stopped.
11887 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11888 lwp_stop_reason.
11889
b2f7c7e8
GB
118902015-03-24 Gary Benson <gbenson@redhat.com>
11891
11892 * linux-low.h (linux_stop_lwp): Remove declaration.
11893
6d4ee8c6
GB
118942015-03-24 Gary Benson <gbenson@redhat.com>
11895
11896 * linux-low.h: Include nat/linux-nat.h.
11897 * linux-low.c (iterate_over_lwps_args): New structure.
11898 (iterate_over_lwps_filter): New function.
11899 (iterate_over_lwps): Likewise.
11900 * linux-x86-low.c (update_debug_registers_callback):
11901 Update signature to what iterate_over_lwps expects.
11902 Remove PID check that iterate_over_lwps now performs.
11903 (x86_dr_low_set_addr): Use iterate_over_lwps.
11904 (x86_dr_low_set_control): Likewise.
11905
70a0bb6b
GB
119062015-03-24 Gary Benson <gbenson@redhat.com>
11907
11908 * linux-x86-low.c (x86_debug_reg_state): New function.
11909 (x86_linux_prepare_to_resume): Use the above.
11910
7b669087
GB
119112015-03-24 Gary Benson <gbenson@redhat.com>
11912
11913 * linux-low.c (current_lwp_ptid): New function.
11914 * linux-x86-low.c: Include nat/linux-nat.h.
11915 (x86_dr_low_get_addr): Use current_lwp_ptid.
11916 (x86_dr_low_get_control): Likewise.
11917 (x86_dr_low_get_status): Likewise.
11918
eef49a3d
PA
119192015-03-20 Pedro Alves <palves@redhat.com>
11920
11921 * tracepoint.c (cmd_qtstatus): Make "str" const.
11922
b2333d22
PA
119232015-03-20 Pedro Alves <palves@redhat.com>
11924
11925 * server.c (handle_general_set): Make "req_str" const.
11926
23f238d3
PA
119272015-03-19 Pedro Alves <palves@redhat.com>
11928
11929 * linux-low.c (linux_resume_one_lwp): Rename to ...
11930 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11931 instead call perror_with_name.
11932 (check_ptrace_stopped_lwp_gone): New function.
11933 (linux_resume_one_lwp): Reimplement as wrapper around
11934 linux_resume_one_lwp_throw that swallows errors if the LWP is
11935 gone.
11936
91baf43f
PA
119372015-03-19 Pedro Alves <palves@redhat.com>
11938
11939 * linux-low.c (count_events_callback, select_event_lwp_callback):
11940 No longer check whether the thread has resume_stop as last resume
11941 kind.
11942
8bf3b159
PA
119432015-03-19 Pedro Alves <palves@redhat.com>
11944
11945 * linux-low.c (count_events_callback, select_event_lwp_callback):
11946 Use the lwp's status_pending_p field, not the thread's.
11947
b90fc188
PA
119482015-03-19 Pedro Alves <palves@redhat.com>
11949
11950 * linux-low.c (select_event_lwp_callback): Update comments to
11951 no longer mention SIGTRAP.
11952
464b0089
GB
119532015-03-18 Gary Benson <gbenson@redhat.com>
11954
11955 * server.c (handle_query): Do not report vFile:fstat as supported.
11956
aa9e327f
GB
119572015-03-11 Gary Benson <gbenson@redhat.com>
11958
11959 * hostio.c (sys/types.h): New include.
11960 (sys/stat.h): Likewise.
11961 (common-remote-fileio.h): Likewise.
11962 (handle_fstat): New function.
11963 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11964
791c0056
GB
119652015-03-11 Gary Benson <gbenson@redhat.com>
11966
11967 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11968 struct stat.st_blocks and struct stat.st_blksize.
11969 * configure: Regenerate.
11970 * config.in: Likewise.
11971 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11972 (OBS): Add common-remote-fileio.o.
11973 (common-remote-fileio.o): New rule.
11974
9a9df970
PA
119752015-03-09 Pedro Alves <palves@redhat.com>
11976
11977 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11978 'struct sockaddr' pointer in 'accept' call.
11979
9eb1356e
PA
119802015-03-09 Pedro Alves <palves@redhat.com>
11981
11982 Revert:
11983 2015-03-07 Pedro Alves <palves@redhat.com>
11984 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11985 or <winsock2.h> here. Instead include "gdb_socket.h".
11986 (remote_open): Use union gdb_sockaddr_u.
11987 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11988 or <winsock2.h> here. Instead include "gdb_socket.h".
11989 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11990 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11991 or <sys/un.h>.
11992 (init_named_socket, gdb_agent_helper_thread): Use union
11993 gdb_sockaddr_u.
11994
aac331e4
PA
119952015-03-07 Pedro Alves <palves@redhat.com>
11996
11997 * configure.ac (build_warnings): Move
11998 -Wdeclaration-after-statement to the C-specific set.
11999 * configure: Regenerate.
12000
366c75fc
PA
120012015-03-07 Pedro Alves <palves@redhat.com>
12002
12003 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
12004 or <winsock2.h> here. Instead include "gdb_socket.h".
12005 (remote_open): Use union gdb_sockaddr_u.
12006 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
12007 or <winsock2.h> here. Instead include "gdb_socket.h".
12008 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
12009 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
12010 or <sys/un.h>.
12011 (init_named_socket, gdb_agent_helper_thread): Use union
12012 gdb_sockaddr_u.
12013
492d29ea
PA
120142015-03-07 Pedro Alves <palves@redhat.com>
12015
12016 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
12017 instead.
12018
60a191ed
YQ
120192015-03-06 Yao Qi <yao.qi@linaro.org>
12020
12021 * linux-aarch64-low.c (aarch64_insert_point): Use
12022 show_debug_regs as a boolean.
12023 (aarch64_remove_point): Likewise.
12024
f5771b1d
PA
120252015-03-05 Pedro Alves <palves@redhat.com>
12026
12027 * lynx-low.c (lynx_target_ops): Install NULL hooks for
12028 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
12029 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
12030 * nto-low.c (nto_target_ops): Likewise.
12031 * spu-low.c (spu_target_ops): Likewise.
12032 * win32-low.c (win32_target_ops): Likewise.
12033
3e572f71
PA
120342015-03-04 Pedro Alves <palves@redhat.com>
12035
72f4393d 12036 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
12037 Decide whether a breakpoint triggered based on the SIGTRAP's
12038 siginfo.si_code.
72f4393d
L
12039 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
12040 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
12041 (linux_low_filter_event): Check for breakpoints before checking
12042 watchpoints.
12043 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
12044 siginfo.si_code.
72f4393d
L
12045 (linux_stopped_by_sw_breakpoint)
12046 (linux_supports_stopped_by_sw_breakpoint)
12047 (linux_stopped_by_hw_breakpoint)
12048 (linux_supports_stopped_by_hw_breakpoint): New functions.
12049 (linux_target_ops): Install new target methods.
3e572f71 12050
1ec68e26
PA
120512015-03-04 Pedro Alves <palves@redhat.com>
12052
12053 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
12054 * server.c (swbreak_feature, hwbreak_feature): New globals.
12055 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
12056 (captured_main): Clear swbreak_feature and hwbreak_feature.
12057 * server.h (swbreak_feature, hwbreak_feature): Declare.
12058 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
12059 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
12060 supports_stopped_by_hw_breakpoint>: New fields.
12061 (target_supports_stopped_by_sw_breakpoint)
12062 (target_stopped_by_sw_breakpoint)
12063 (target_supports_stopped_by_hw_breakpoint)
12064 (target_stopped_by_hw_breakpoint): Declare.
12065
15c66dd6
PA
120662015-03-04 Pedro Alves <palves@redhat.com>
12067
12068 enum lwp_stop_reason -> enum target_stop_reason
12069 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12070 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12071 (linux_wait_1, stuck_in_jump_pad_callback)
12072 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12073 (linux_stopped_by_watchpoint):
12074 * linux-low.h (enum lwp_stop_reason): Delete.
12075 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12076 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12077
98fc70d6
YQ
120782015-03-04 Yao Qi <yao.qi@linaro.org>
12079
12080 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12081
dd2ac174
GB
120822015-03-03 Gary Benson <gbenson@redhat.com>
12083
12084 * hostio.c (handle_vFile): Fix prefix lengths.
12085
d68e53f4
MM
120862015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12087
12088 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12089 ptr_bits.
12090
bf2d68ab
AA
120912015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12092
12093 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12094 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12095 (clean): Add "rm -f" for above C files.
12096 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12097 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12098 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12099 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12100 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12101 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12102 (init_registers_s390x_vx_linux64)
12103 (init_registers_s390x_tevx_linux64)
12104 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12105 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12106 declarations.
12107 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12108 (s390_store_vxrs_high): New functions.
12109 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12110 NT_S390_VXRS_HIGH.
12111 (s390_arch_setup): Add logic for selecting one of the new target
12112 descriptions. Activate the new vector regsets if applicable.
12113 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12114 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12115 and init_registers_s390x_tevx_linux64.
12116
c966a859
PA
121172015-03-01 Pedro Alves <palves@redhat.com>
12118
12119 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12120 parameter.
12121
4180215b
PA
121222015-02-27 Pedro Alves <palves@redhat.com>
12123
12124 * linux-x86-low.c (u_debugreg_offset): New function.
12125 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12126
749bab01
PA
121272015-02-27 Pedro Alves <palves@redhat.com>
12128
12129 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12130 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12131 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12132 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12133 (ps_lsetfpregs, ps_getpid)
12134 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12135 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12136 (ps_lsetxregs, ps_plog): Declare.
12137
3c14e5a3
PA
121382015-02-27 Pedro Alves <palves@redhat.com>
12139
12140 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12141 IP_AGENT_EXPORT_FUNC.
12142 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12143 IP_AGENT_EXPORT_FUNC.
12144 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12145 (IP_AGENT_EXPORT): Delete.
12146 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12147 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12148 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12149 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12150 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12151 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12152 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12153 (traceframe_read_count, traceframe_write_count)
12154 (traceframes_created, trace_state_variables, get_raw_reg)
12155 (get_trace_state_variable_value, set_trace_state_variable_value)
12156 (ust_loaded, helper_thread_id, cmd_buf): Use
12157 IPA_SYM_EXPORTED_NAME.
12158 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12159 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12160 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12161 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12162 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12163 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12164 EXTERN_C_PUSH/EXTERN_C_POP.
12165 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12166 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12167 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12168 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12169 (traceframe_write_count, traceframe_read_count)
12170 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12171 (about_to_request_buffer_space, get_trace_state_variable_value)
12172 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12173 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12174 EXTERN_C_PUSH/EXTERN_C_POP.
12175 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12176 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12177 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12178 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12179 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12180 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12181 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12182 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12183 Define.
12184 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12185 (IP_AGENT_EXPORT_VAR_DECL): Define.
12186 (tracing): Declare.
12187 (gdb_agent_get_raw_reg): Declare.
12188
fe978cb0
PA
121892015-02-27 Tom Tromey <tromey@redhat.com>
12190 Pedro Alves <palves@redhat.com>
12191
12192 Rename symbols whose names are reserved C++ keywords throughout.
12193
3bc3d82a
PA
121942015-02-27 Pedro Alves <palves@redhat.com>
12195
12196 * Makefile.in (COMPILER): New, get it from autoconf.
12197 (CXX): Get from autoconf instead.
12198 (COMPILE.pre): Use COMPILER.
12199 (CC-LD): Rename to ...
12200 (CC_LD): ... this. Use COMPILER.
12201 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12202 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12203 * acinclude.m4: Include build-with-cxx.m4.
12204 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12205 Disable -Werror by default if building in C++ mode.
12206 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12207 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12208 the C++ compiler. Save/restore CXXFLAGS too.
12209 * configure: Regenerate.
12210
07697489
PA
122112015-02-27 Pedro Alves <palves@redhat.com>
12212
12213 * acinclude.m4: Include libiberty.m4.
12214 * configure.ac: Call libiberty_INIT.
12215 * config.in, configure: Regenerate.
12216
9beb7c4e
PA
122172015-02-26 Pedro Alves <palves@redhat.com>
12218
12219 * linux-low.c (linux_wait_1): When incrementing the PC past a
12220 program breakpoint always use the_low_target.breakpoint_len as
12221 increment, rather than the maximum between that and
12222 the_low_target.decr_pc_after_break.
12223
8090aef2
PA
122242015-02-23 Pedro Alves <palves@redhat.com>
12225
12226 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12227 thread was doing a step-over; always adjust the PC if
12228 we stepped over a permanent breakpoint.
12229 (linux_wait_1): If we stepped over breakpoint that was on top of a
12230 permanent breakpoint, manually advance the PC past it.
12231
bc9540e8
PA
122322015-02-23 Pedro Alves <palves@redhat.com>
12233
12234 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12235 modes.
12236 (x86_fill_gregset, x86_store_gregset): Use it when handling
12237 $orig_eax.
12238
2db9a427
PA
122392015-02-20 Pedro Alves <palves@redhat.com>
12240
12241 * thread-db.c: Include "nat/linux-procfs.h".
12242 (thread_db_init): Skip listing new threads if the kernel supports
12243 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12244
afa8d396
PA
122452015-02-20 Pedro Alves <palves@redhat.com>
12246
12247 * linux-low.c (status_pending_p_callback): Use ptid_match.
12248
c9587f88
AT
122492015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12250
12251 PR breakpoints/16812
12252 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12253 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12254 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12255
b05ec7a5
AT
122562015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12257
12258 PR breakpoints/15956
12259 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12260
d33501a5
MM
122612015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12262
12263 * linux-low.c (linux_low_btrace_conf): Print size.
12264 * server.c (handle_btrace_conf_general_set): New.
12265 (hanle_general_set): Call handle_btrace_conf_general_set.
12266 (handle_query): Report Qbtrace-conf:bts:size as supported.
12267
f4abbc16
MM
122682015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12269
12270 * linux-low.c (linux_low_enable_btrace): Update parameters.
12271 (linux_low_btrace_conf): New.
12272 (linux_target_ops)<to_btrace_conf>: Initialize.
12273 * server.c (current_btrace_conf): New.
12274 (handle_btrace_enable): Rename to ...
12275 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12276 to target_enable_btrace. Update comment. Update users.
12277 (handle_qxfer_btrace_conf): New.
12278 (qxfer_packets): Add btrace-conf entry.
12279 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12280 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12281 (target_ops)<read_btrace_conf>: New.
12282 (target_enable_btrace): Update parameters.
12283 (target_read_btrace_conf): New.
12284
043c3577
MM
122852015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12286
12287 * server.c (handle_btrace_general_set): Remove call to
12288 target_supports_btrace.
12289 (supported_btrace_packets): New.
12290 (handle_query): Call supported_btrace_packets.
12291 * target.h: include btrace-common.h.
12292 (btrace_target_info): Removed.
12293 (supports_btrace, target_supports_btrace): Update parameters.
12294
734b0e4b
MM
122952015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12296
12297 * Makefile.in (SFILES): Add common/btrace-common.c.
12298 (OBS): Add common/btrace-common.o.
12299 (btrace-common.o): Add build rules.
12300 * linux-low: Include btrace-common.h.
12301 (linux_low_read_btrace): Use struct btrace_data. Call
12302 btrace_data_init and btrace_data_fini.
12303
d6c146e9
PA
123042015-02-06 Pedro Alves <palves@redhat.com>
12305
12306 * thread-db.c (find_new_threads_callback): Add debug output.
12307
20ba1ce6
PA
123082015-02-04 Pedro Alves <palves@redhat.com>
12309
12310 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12311 (resume_stopped_resumed_lwps): New function.
12312 (linux_wait_for_event_filtered): Use it.
12313
8cc73a39
SDJ
123142015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12315
12316 * Makefile.in (SFILES): Add linux-personality.c.
12317 (linux-personality.o): New rule.
12318 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12319 list of objects to be built.
12320 * linux-low.c: Include nat/linux-personality.h.
12321 (linux_create_inferior): Remove code to disable address space
12322 randomization (moved to ../nat/linux-personality.c). Create
12323 cleanup to disable address space randomization.
12324
fb23d554
SDJ
123252015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12326
12327 * Makefile.in (posix-strerror.o): New rule.
12328 (mingw-strerror.o): Likewise.
12329 * configure: Regenerated.
12330 * configure.ac: Source file ../common/common.host. Initialize new
12331 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12332
cdf43629
YQ
123332015-01-14 Yao Qi <yao@codesourcery.com>
12334
12335 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12336 (ppc-linux.o): New rule.
12337 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12338 * configure.ac: AC_CHECK_FUNCS(getauxval).
12339 * config.in: Re-generated.
12340 * configure: Re-generated.
12341 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12342 ppc64_64bit_inferior_p
12343
514c5338
YQ
123442015-01-14 Yao Qi <yao@codesourcery.com>
12345
12346 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12347 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12348 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12349 (PT_ORIG_R3, PT_TRAP): Likewise.
12350 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12351 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12352 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12353
3368c1e5
JB
123542015-01-10 Joel Brobecker <brobecker@adacore.com>
12355
12356 * i387-fp.c (i387_cache_to_xsave): In look over
12357 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12358 zmmh_low_space field by use of zmmh_high_space.
12359
582511be
PA
123602015-01-09 Pedro Alves <palves@redhat.com>
12361
12362 * linux-low.c (step_over_bkpt): Move higher up in the file.
12363 (handle_extended_wait): Don't store the stop_pc here.
12364 (get_stop_pc): Adjust comments and rename to ...
12365 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12366 stopped for a software breakpoint or hardware breakpoint.
12367 (thread_still_has_status_pending_p): New function.
12368 (status_pending_p_callback): Use
12369 thread_still_has_status_pending_p. If the event is no longer
12370 interesting, resume the LWP.
12371 (handle_tracepoints): Add assert.
12372 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12373 (wstatus_maybe_breakpoint): New function.
12374 (cancel_breakpoint): Delete function.
12375 (check_stopped_by_watchpoint): New function, factored out from
12376 linux_low_filter_event.
12377 (lp_status_maybe_breakpoint): Delete function.
12378 (linux_low_filter_event): Remove filter_ptid argument.
12379 Leave thread group exits pending here. Store the LWP's stop PC.
12380 Always leave events pending.
12381 (linux_wait_for_event_filtered): Pull all events out of the
12382 kernel, and leave them all pending.
12383 (count_events_callback, select_event_lwp_callback): Consider all
12384 events.
12385 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12386 (select_event_lwp): Only give preference to the stepping LWP in
12387 all-stop mode. Adjust comments.
12388 (ignore_event): New function.
12389 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12390 references to cancel_breakpoints. Adjust to renames. Also give
12391 equal priority to all LWPs that have had events in non-stop mode.
12392 If reporting a software breakpoint event, unadjust the LWP's PC.
12393 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12394 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12395 Adjust.
12396 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12397 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12398 (linux_stopped_by_watchpoint): Adjust.
12399 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12400 * linux-low.h (enum lwp_stop_reason): New.
12401 (struct lwp_info) <stop_pc>: Adjust comment.
12402 <stopped_by_watchpoint>: Delete field.
12403 <stop_reason>: New field.
12404 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12405 * mem-break.c (software_breakpoint_inserted_here)
12406 (hardware_breakpoint_inserted_here): New function.
12407 * mem-break.h (software_breakpoint_inserted_here)
12408 (hardware_breakpoint_inserted_here): Declare.
12409 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12410 (cancel_breakpoints): Delete.
12411 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12412 (upload_fast_traceframes): Remove references to
12413 cancel_breakpoints.
12414
a33e3959
PA
124152015-01-09 Pedro Alves <palves@redhat.com>
12416
12417 * thread-db.c (find_new_threads_callback): Ignore thread if the
12418 kernel thread ID is -1.
12419
8784d563
PA
124202015-01-09 Pedro Alves <palves@redhat.com>
12421
12422 * linux-low.c (linux_attach_fail_reason_string): Move to
12423 nat/linux-ptrace.c, and rename.
12424 (linux_attach_lwp): Update comment.
12425 (attach_proc_task_lwp_callback): New function.
12426 (linux_attach): Adjust to rename and use
12427 linux_proc_attach_tgid_threads.
12428 (linux_attach_fail_reason_string): Delete declaration.
12429
76f2b779
JB
124302015-01-01 Joel Brobecker <brobecker@adacore.com>
12431
12432 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12433 * server.c (gdbserver_version): Likewise.
12434
fafcc06a
SDJ
124352014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12436
12437 * remote-utils.c: Include ctype.h.
12438 (input_interrupt): Explicitly handle the case when the char
12439 received is the NUL byte. Improve the printing of non-ASCII
12440 characters.
12441
beed38b8
JB
124422014-12-16 Joel Brobecker <brobecker@adacore.com>
12443
12444 * linux-low.c (linux_low_filter_event): Update call to
12445 linux_enable_event_reporting following the addition of
12446 a new parameter to that function.
12447
bf330350
CU
124482014-12-16 Catalin Udma <catalin.udma@freescale.com>
12449
12450 PR server/17457
12451 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12452 (AARCH64_FPCR_REGNO): Likewise.
12453 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12454 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12455 (aarch64_store_fpregset): Likewise.
12456
5227d625
JB
124572014-12-15 Joel Brobecker <brobecker@adacore.com>
12458
12459 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12460 Remove FIXME comment about assumption about N.
12461
f93b65a0
JB
124622014-12-13 Joel Brobecker <brobecker@adacore.com>
12463
12464 * configure.ac: If large-file support is disabled in GDBserver,
12465 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12466 * configure: Regenerate.
12467
e5a9158d
AA
124682014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12469
12470 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12471 warning upon ENODATA from ptrace.
12472 * linux-s390-low.c (s390_store_tdb): New.
12473 (s390_regsets): Add regset for NT_S390_TDB.
12474
feea5f36
AA
124752014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12476
12477 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12478 without a fill_function.
12479 * linux-s390-low.c (s390_fill_last_break): Remove.
12480 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12481 (s390_arch_setup): Use regset's size instead of fill_function for
12482 loop end condition.
12483
098dbe61
AA
124842014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12485
12486 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12487 the regset's store function when ptrace returned an error.
12488 * regcache.c (get_thread_regcache): Invalidate register cache
12489 before fetching inferior's registers.
12490
28eef672
AA
124912014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12492
12493 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12494 while-loop as for-loop.
12495 (regsets_store_inferior_registers): Likewise.
12496
bdca27a2
YQ
124972014-11-28 Yao Qi <yao@codesourcery.com>
12498
12499 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12500 * config.in, configure: Re-generate.
12501 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12502 is defined.
12503
9c232dda
YQ
125042014-11-21 Yao Qi <yao@codesourcery.com>
12505
12506 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12507 (AC_CHECK_HEADERS): Remove malloc.h.
12508 * configure: Re-generated.
12509 * config.in: Re-generated.
12510 * server.h: Don't include alloca.h and malloc.h.
12511 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12512 Don't include malloc.h.
12513
43968415
JB
125142014-11-17 Joel Brobecker <brobecker@adacore.com>
12515
12516 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12517 corresponding ERRNO check in same block.
12518
40e91bc7
PA
125192014-11-12 Pedro Alves <palves@redhat.com>
12520
12521 * server.c (cont_thread): Update comment.
12522 (start_inferior, attach_inferior): No longer clear cont_thread.
12523 (handle_v_cont): No longer set cont_thread.
12524 (captured_main): Clear cont_thread each time a GDB connects.
12525
c2c118cf
PA
125262014-11-12 Pedro Alves <palves@redhat.com>
12527
12528 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12529 thread, and don't resume all threads if the Hc thread has exited.
12530
78708b7c
PA
125312014-11-12 Pedro Alves <palves@redhat.com>
12532
12533 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12534 the process group instead of to a specific LWP.
12535
a2abc7de
PA
125362014-10-15 Pedro Alves <palves@redhat.com>
12537
12538 PR server/17487
12539 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12540 parameter.
12541 (arm_set_thread_context): Delete.
12542 (the_low_target): Adjust.
12543 * win32-i386-low.c (debug_registers_changed)
12544 (debug_registers_used): Delete.
12545 (update_debug_registers_callback): New function.
12546 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12547 needing to update their debug registers.
12548 (win32_get_current_dr): New function.
12549 (x86_dr_low_get_addr, x86_dr_low_get_control)
12550 (x86_dr_low_get_status): Fetch the debug register from the thread
12551 record's context.
12552 (i386_initial_stuff): Adjust.
12553 (i386_get_thread_context): Remove current_event parameter. Don't
12554 clear debug_registers_changed nor copy DR values to
12555 debug_reg_state.
12556 (i386_set_thread_context): Delete.
12557 (i386_prepare_to_resume): New function.
12558 (i386_thread_added): Mark the thread as needing to update irs
12559 debug registers.
12560 (the_low_target): Remove i386_set_thread_context and install
12561 i386_prepare_to_resume.
12562 * win32-low.c (win32_get_thread_context): Adjust.
12563 (win32_set_thread_context): Use SetThreadContext
12564 directly.
12565 (win32_prepare_to_resume): New function.
12566 (win32_require_context): New function, factored out from ...
12567 (thread_rec): ... this.
12568 (continue_one_thread): Call win32_prepare_to_resume on each thread
12569 we're about to continue.
12570 (win32_resume): Call win32_prepare_to_resume on the event thread.
12571 * win32-low.h (struct win32_thread_info)
12572 <debug_registers_changed>: New field.
12573 (struct win32_target_ops): Change prototype of set_thread_context,
12574 delete set_thread_context and add prepare_to_resume.
12575 (win32_require_context): New declaration.
12576
a442d071
GB
125772014-10-08 Gary Benson <gbenson@redhat.com>
12578
12579 * server.h: Do not include common-exceptions.h.
12580
6f1947e8
GB
125812014-10-08 Gary Benson <gbenson@redhat.com>
12582
12583 * server.h: Do not include cleanups.h.
12584
63b434a4
JH
125852014-09-30 James Hogan <james.hogan@imgtec.com>
12586
12587 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12588 mips64-dsp-linux.c.
12589
c4d9ceb6
YQ
125902014-09-23 Yao Qi <yao@codesourcery.com>
12591
12592 * linux-low.c (lp_status_maybe_breakpoint): New function.
12593 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12594 (count_events_callback): Likewise.
12595 (select_event_lwp_callback): Likewise.
12596 (cancel_breakpoints_callback): Likewise.
12597
89a5711c
DB
125982014-09-19 Don Breazeal <donb@codesourcery.com>
12599
12600 * linux-low.c (handle_extended_wait): Call
12601 linux_ptrace_get_extended_event.
12602 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12603 linux_is_extended_waitstatus.
12604
bffc0964
JB
126052014-09-16 Joel Brobecker <brobecker@adacore.com>
12606
12607 * Makefile.in (CPPFLAGS): Define.
12608 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12609 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12610
0bfdf32f
GB
126112014-09-16 Gary Benson <gbenson@redhat.com>
12612
12613 * inferiors.h (current_inferior): Renamed as...
12614 (current_thread): New variable. All uses updated.
12615 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12616 (maybe_move_out_of_jump_pad): Likewise.
12617 (cancel_breakpoint): Likewise.
12618 (linux_low_filter_event): Likewise.
12619 (wait_for_sigstop): Likewise.
12620 (linux_resume_one_lwp): Likewise.
12621 (need_step_over_p): Likewise.
12622 (start_step_over): Likewise.
12623 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12624 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12625 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12626 and save_inferior as saved_thread.
12627 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12628 saved_thread.
12629 (regcache_invalidate_thread): Likewise.
12630 * remote-utils.c (prepare_resume_reply): Likewise.
12631 * thread-db.c (thread_db_get_tls_address): Likewise.
12632 (disable_thread_event_reporting): Likewise.
12633 (remove_thread_event_breakpoints): Likewise.
12634 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12635 as saved_thread.
12636 * target.h (set_desired_inferior): Renamed as...
12637 (set_desired_thread): New declaration. All uses updated.
12638 * server.c (myresume): Updated comment to reference thread instead
12639 of inferior.
12640 (handle_serial_event): Likewise.
12641 (handle_target_event): Likewise.
12642
361c8ade
GB
126432014-09-12 Tom Tromey <tromey@redhat.com>
12644 Gary Benson <gbenson@redhat.com>
12645
12646 * regcache.h: Include common-regcache.h.
12647 (regcache_read_pc): Don't declare.
12648 * regcache.c (get_thread_regcache_for_ptid): New function.
12649
bd9269f7
GB
126502014-09-11 Tom Tromey <tromey@redhat.com>
12651 Gary Benson <gbenson@redhat.com>
12652
12653 * symbol.c: New file.
12654 * Makefile.in (SFILES): Add symbol.c.
12655 (OBS): Add symbol.o.
12656
f8c1d06b
GB
126572014-09-11 Gary Benson <gbenson@redhat.com>
12658
12659 * target.c (target_stop_ptid, target_continue_ptid): New
12660 functions.
12661
721ec300
GB
126622014-09-11 Tom Tromey <tromey@redhat.com>
12663 Gary Benson <gbenson@redhat.com>
12664
12665 * target.h: Include target/target.h.
12666 * target.c (target_read_memory, target_read_uint32)
12667 (target_write_memory): New functions.
12668
c5e92cca
GB
126692014-09-11 Gary Benson <gbenson@redhat.com>
12670
12671 * server.h (debug_hw_points): Don't declare.
12672 * server.c (debug_hw_points): Don't define. Replace all uses
12673 with show_debug_regs.
12674 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12675 all uses with show_debug_regs.
12676
2e4bb98a
EBM
126772014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12678
12679 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12680 endianness into account.
12681 (ppc_supply_ptrace_register): Likewise.
12682
ac740bc7
JH
126832014-09-03 James Hogan <james.hogan@imgtec.com>
12684
12685 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12686 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12687
97ea6506
GB
126882014-09-03 Gary Benson <gbenson@redhat.com>
12689
12690 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12691 ALL_DEBUG_ADDRESS_REGISTERS.
12692
df7e5265
GB
126932014-09-02 Gary Benson <gbenson@redhat.com>
12694
12695 * i386-low.h: Renamed as...
12696 * x86-low.h: New file. All type, function and variable name
12697 prefixes changed from "i386_" to "x86_". All references updated.
12698 * i386-low.c: Renamed as...
12699 * x86-low.c: New file. All type, function and variable name
12700 prefixes changed from "i386_" to "x86_". All references updated.
12701
ed859da7
GB
127022014-09-02 Gary Benson <gbenson@redhat.com>
12703
12704 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12705 (x86_linux_new_thread): Likewise.
12706
860789c7
GB
127072014-08-29 Gary Benson <gbenson@redhat.com>
12708
12709 * server.h (setjmp.h): Do not include.
12710 (toplevel): Do not declare.
12711 (common-exceptions.h): Include.
12712 (cleanups.h): Likewise.
12713 * server.c (toplevel): Do not define.
12714 (exit_code): New static global.
12715 (detach_or_kill_for_exit_cleanup): New function.
12716 (main): New function. Original main renamed to...
12717 (captured_main): New function.
12718 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12719
ff55e1b5
GB
127202014-08-29 Gary Benson <gbenson@redhat.com>
12721
12722 * Makefile.in (SFILES): Add common/common-exceptions.c.
12723 (OBS): Add common-exceptions.o.
12724 (common-exceptions.o): New rule.
12725 * utils.c (prepare_to_throw_exception): New function.
12726
e9bcb658
GB
127272014-08-29 Gary Benson <gbenson@redhat.com>
12728
12729 * config.in: Regenerate.
12730 * configure: Likewise.
12731
e3180625
GB
127322014-08-29 Gary Benson <gbenson@redhat.com>
12733
12734 * Makefile.in (SFILES): Add common/cleanups.c.
12735 (OBS): cleanups.o.
12736 (cleanups.o): New rule.
12737
e3d6ba5d
GB
127382014-08-29 Gary Benson <gbenson@redhat.com>
12739
12740 * utils.c (internal_vwarning): New function.
12741
7096e886
GB
127422014-08-28 Gary Benson <gbenson@redhat.com>
12743
12744 * utils.h (fatal): Remove declaration.
12745 * utils.c (fatal): Remove function.
12746
14ce3192
GB
127472014-08-28 Gary Benson <gbenson@redhat.com>
12748
12749 * tracepoint.c (gdb_agent_init): Replace fatal with
12750 perror_with_name.
12751 (initialize_tracepoint): Likewise.
12752
50278d59
GB
127532014-08-28 Gary Benson <gbenson@redhat.com>
12754
12755 * remote-utils.c (remote_prepare): Replace fatal with error.
12756
aa96c426
GB
127572014-08-28 Gary Benson <gbenson@redhat.com>
12758
12759 * linux-low.c (linux_async): Replace fatal with warning.
12760 Tidy up and return.
12761 (linux_start_non_stop): Return -1 if linux_async failed.
12762
f7160e97
GB
127632014-08-28 Gary Benson <gbenson@redhat.com>
12764
12765 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12766 gdb_assert.
12767 (i386_dr_low_get_addr): Remove vague comment.
12768 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12769 gdb_assert.
12770
38e08fca
GB
127712014-08-28 Gary Benson <gbenson@redhat.com>
12772
12773 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12774 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12775 internal_error.
12776 (linux_resume_one_lwp): Likewise.
12777 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12778 gdb_assert.
12779 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12780 with internal_error.
12781 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12782 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12783 (find_register_by_name): Replace fatal with internal_error.
12784 (find_regno): Likewise.
12785 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12786 * thread-db.c (thread_db_create_event): Likewise.
12787 (thread_db_load_search): Likewise.
12788 (try_thread_db_load_1): Likewise.
12789 * tracepoint.c (get_jump_space_head): Replace fatal with
12790 internal_error.
12791 (claim_trampoline_space): Likewise.
12792 (have_fast_tracepoint_trampoline_buffer): Likewise.
12793 (cmd_qtstart): Likewise.
12794 (stop_tracing): Likewise.
12795 (fast_tracepoint_collecting): Likewise.
12796 (target_malloc): Likewise.
12797 (download_tracepoint): Likewise.
12798 (download_trace_state_variables): Replace check with gdb_assert.
12799 (upload_fast_traceframes): Replace fatal with internal_error.
12800
34abf635
GB
128012014-08-19 Tom Tromey <tromey@redhat.com>
12802 Gary Benson <gbenson@redhat.com>
12803
12804 * Makefile.in (SFILES): Add common/common-debug.c.
12805 (OBS): Add common-debug.o.
12806 (common-debug.o): New rule.
12807 * debug.h (debug_printf): Don't declare.
12808 * debug.c (debug_printf): Renamed and rewritten as...
12809 (debug_vprintf): New function.
12810
f6e94d78
GB
128112014-08-19 Gary Benson <gbenson@redhat.com>
12812
12813 * utils.h: Do not include print-utils.h.
12814
9239eeab
GB
128152014-08-19 Tom Tromey <tromey@redhat.com>
12816 Gary Benson <gbenson@redhat.com>
12817
12818 * server.h: Add static assertion.
12819 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12820
ef87c8bb
GB
128212014-08-19 Tom Tromey <tromey@redhat.com>
12822 Gary Benson <gbenson@redhat.com>
12823
12824 * Makefile.in (SFILES): Add common/errors.c.
12825 (OBS): Add errors.o.
12826 (IPA_OBS): Add errors-ipa.o.
12827 (errors.o): New rule.
12828 (errors-ipa.o): Likewise.
12829 * utils.h (perror_with_name, error, warning): Don't declare.
12830 * utils.c (warning): Renamed and rewritten as...
12831 (vwarning): New function.
12832 (error): Renamed and rewritten as...
12833 (verror): New function.
12834 (internal_error): Renamed and rewritten as...
12835 (internal_verror): New function.
12836
bb974a24
GB
128372014-08-07 Gary Benson <gbenson@redhat.com>
12838
12839 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12840 * configure: Regenerate.
12841 * config.in: Likewise.
12842 * server.h: Do not include errno.h.
12843 * event-loop.c: Likewise.
12844 * hostio-errno.c: Likewise.
12845 * linux-low.c: Likewise.
12846 * remote-utils.c: Likewise.
12847 * spu-low.c: Likewise.
12848 * utils.c: Likewise.
12849 * gdbreplay.c: Unconditionally include errno.h.
12850
6d3d12eb
GB
128512014-08-07 Gary Benson <gbenson@redhat.com>
12852
12853 * server.h: Do not include string.h.
12854 * event-loop.c: Likewise.
12855 * linux-low.c: Likewise.
12856 * regcache.c: Likewise.
12857 * remote-utils.c: Likewise.
12858 * spu-low.c: Likewise.
12859 * utils.c: Likewise.
12860
dccbb609
GB
128612014-08-07 Gary Benson <gbenson@redhat.com>
12862
12863 * server.h: Do not include gdb_assert.h.
12864
e76df0d0
GB
128652014-08-07 Gary Benson <gbenson@redhat.com>
12866
12867 * server.h: Do not include common-utils.h.
12868
4cb9c816
GB
128692014-08-07 Gary Benson <gbenson@redhat.com>
12870
12871 * server.h: Do not include ptid.h.
12872 * notif.h: Likewise.
12873
3995eeee
GB
128742014-08-07 Gary Benson <gbenson@redhat.com>
12875
12876 * server.h: Do not include gdb_locale.h.
12877
cb9f1a9b
GB
128782014-08-07 Gary Benson <gbenson@redhat.com>
12879
12880 * server.h: Do not include gdb/signals.h.
12881 * win32-low.c: Likewise.
12882
a5fceff8
GB
128832014-08-07 Gary Benson <gbenson@redhat.com>
12884
12885 * server.h: Do not include pathmax.h.
12886
b9391142
GB
128872014-08-07 Gary Benson <gbenson@redhat.com>
12888
12889 * server.h: Do not include libiberty.h.
12890 * linux-bfin-low.c: Likewise.
12891
0e443c87
GB
128922014-08-07 Gary Benson <gbenson@redhat.com>
12893
12894 * server.h: Do not include ansidecl.h.
12895
8ebb3f56
GB
128962014-08-07 Gary Benson <gbenson@redhat.com>
12897
12898 * linux-x86-low.c: Do not include stddef.h.
12899 * lynx-ppc-low.c: Likewise.
12900 * tracepoint.c: Likewise.
12901
8980bdf6
GB
129022014-08-07 Gary Benson <gbenson@redhat.com>
12903
12904 * server.h: Do not include stdarg.h.
12905 * nto-low.c: Likewise.
12906
d7096f71
GB
129072014-08-07 Gary Benson <gbenson@redhat.com>
12908
12909 * server.h: Do not include stdlib.h.
12910 * inferiors.c: Likewise.
12911 * linux-low.c: Likewise.
12912 * regcache.c: Likewise.
12913 * spu-low.c: Likewise.
12914 * tracepoint.c: Likewise.
12915 * utils.c: Likewise.
12916
d02f550d
GB
129172014-08-07 Gary Benson <gbenson@redhat.com>
12918
12919 * server.h: Do not include stdio.h.
12920 * linux-low.c: Likewise.
12921 * remote-utils.c: Likewise.
12922 * spu-low.c: Likewise.
12923 * utils.c: Likewise.
12924 * wincecompat.c: Likewise.
12925
87f6c4e3
GB
129262014-08-06 Gary Benson <gbenson@redhat.com>
12927
12928 * regcache.c (init_register_cache): Move conditionals inside if.
12929
7089dca4
GB
129302014-08-06 Gary Benson <gbenson@redhat.com>
12931
12932 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12933
462f517e
GB
129342014-07-31 Gary Benson <gbenson@redhat.com>
12935
12936 * ax.h: Do not include server.h.
12937 * gdbthread.h: Likewise.
12938 * lynx-low.h: Likewise.
12939 * notif.h: Likewise.
12940
976411d6
GB
129412014-07-30 Gary Benson <gbenson@redhat.com>
12942
12943 * server.h: Include common-defs.h.
12944 Do not include config.h or build-gnulib-gdbserver/config.h.
12945
d41f6d8e
GB
129462014-07-30 Gary Benson <gbenson@redhat.com>
12947
12948 * hostio-errno.c: Move server.h to top of includes list.
12949 * inferiors.c: Likewise.
12950 * linux-x86-low.c: Likewise.
12951 * notif.c: Include server.h.
12952
314c6a35
TT
129532014-07-24 Tom Tromey <tromey@redhat.com>
12954 Gary Benson <gbenson@redhat.com>
12955
12956 * server.h (CORE_ADDR): Now unsigned.
12957
69ff6be5
PA
129582014-07-16 Pedro Alves <palves@redhat.com>
12959
12960 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12961
ce9e3fe7
PA
129622014-07-15 Pedro Alves <palves@redhat.com>
12963
12964 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12965 copy.
12966
e76126e8
PA
129672014-07-11 Pedro Alves <palves@redhat.com>
12968
12969 * linux-low.c (kill_wait_lwp): New function, based on
12970 kill_one_lwp_callback, but use my_waitpid directly.
12971 (kill_one_lwp_callback, linux_kill): Use it.
12972
8e9db26e
PA
129732014-06-23 Pedro Alves <palves@redhat.com>
12974
12975 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12976 before setting DR0..DR3.
12977
698b3e08
GB
129782014-06-20 Gary Benson <gbenson@redhat.com>
12979
12980 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12981 * configure: Regenerated.
12982 * config.in: Likewise.
12983
125f8a3d
GB
129842014-06-20 Gary Benson <gbenson@redhat.com>
12985
12986 * Makefile.in (SFILES): Update locations for files moved
12987 from common to nat.
12988 (object file files): Reordered.
12989
42995dbd
GB
129902014-06-20 Gary Benson <gbenson@redhat.com>
12991
12992 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12993 (i386_dr_low_set_addr): Likewise.
12994 (i386_dr_low_get_addr): Likewise.
12995 (i386_dr_low_can_set_control): Likewise.
12996 (i386_dr_low_set_control): Likewise.
12997 (i386_dr_low_get_control): Likewise.
12998 (i386_dr_low_get_status): Likewise.
12999 (i386_get_debug_register_length): Likewise.
13000 * linux-x86-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 * win32-i386-low.c (i386_dr_low_set_addr):
13008 Changed signature. Made static.
13009 (i386_dr_low_get_addr): Likewise.
13010 (i386_dr_low_set_control): Likewise.
13011 (i386_dr_low_get_control): Likewise.
13012 (i386_dr_low_get_status): Likewise.
13013 (i386_dr_low): New global variable.
13014
e1d2394b
MS
130152014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
13016
13017 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
13018 * Makefile.in (AR, AR_FLAGS): Define.
13019 * configure: Regenerate.
13020
3a8ee006
GB
130212014-06-19 Gary Benson <gbenson@redhat.com>
13022
13023 * Makefile.in (i386-dregs.o): New rule.
13024 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
13025 * i386-low.c (target.h): Remove include.
13026 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
13027 (DR_CONTROL_SHIFT): Likewise.
13028 (DR_CONTROL_SIZE): Likewise.
13029 (DR_RW_EXECUTE): Likewise.
13030 (DR_RW_WRITE): Likewise.
13031 (DR_RW_READ): Likewise.
13032 (DR_RW_IORW): Likewise.
13033 (DR_LEN_1): Likewise.
13034 (DR_LEN_2): Likewise.
13035 (DR_LEN_4): Likewise.
13036 (DR_LEN_8): Likewise.
13037 (DR_LOCAL_ENABLE_SHIFT): Likewise.
13038 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
13039 (DR_ENABLE_SIZE): Likewise.
13040 (DR_LOCAL_SLOWDOWN): Likewise.
13041 (DR_GLOBAL_SLOWDOWN): Likewise.
13042 (DR_CONTROL_RESERVED): Likewise.
13043 (I386_DR_CONTROL_MASK): Likewise.
13044 (I386_DR_VACANT): Likewise.
13045 (I386_DR_LOCAL_ENABLE): Likewise.
13046 (I386_DR_GLOBAL_ENABLE): Likewise.
13047 (I386_DR_DISABLE): Likewise.
13048 (I386_DR_SET_RW_LEN): Likewise.
13049 (I386_DR_GET_RW_LEN): Likewise.
13050 (I386_DR_WATCH_HIT): Likewise.
13051 (i386_wp_op_t): Likewise.
13052 (i386_show_dr): Likewise.
13053 (i386_length_and_rw_bits): Likewise.
13054 (i386_insert_aligned_watchpoint): Likewise.
13055 (i386_remove_aligned_watchpoint): Likewise.
13056 (i386_handle_nonaligned_watchpoint): Likewise.
13057 i386_update_inferior_debug_regs(): Likewise.
13058 (i386_dr_insert_watchpoint): Likewise.
13059 (i386_dr_remove_watchpoint): Likewise.
13060 (i386_dr_region_ok_for_watchpoint): Likewise.
13061 (i386_dr_stopped_data_address): Likewise.
13062 (i386_dr_stopped_by_watchpoint): Likewise.
13063
8f26655c
GB
130642014-06-19 Gary Benson <gbenson@redhat.com>
13065
13066 * i386-low.c (i386_dr_show): Renamed to
13067 i386_show_dr and made static. All uses updated.
13068 (i386_dr_length_and_rw_bits): Renamed to
13069 i386_length_and_rw_bits and made static.
13070 All uses updated.
13071 (i386_dr_insert_aligned_watchpoint): Renamed to
13072 i386_insert_aligned_watchpoint and made static.
13073 All uses updated.
13074 (i386_dr_remove_aligned_watchpoint): Renamed to
13075 i386_remove_aligned_watchpoint and made static.
13076 All uses updated.
13077 (i386_dr_update_inferior_debug_regs): Renamed to
13078 i386_update_inferior_debug_regs and made static.
13079 All uses updated.
13080
b9228891
GB
130812014-06-18 Gary Benson <gbenson@redhat.com>
13082
5171def3
GB
13083 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13084 (i386_dr_low_can_set_control): Likewise.
13085 (i386_get_debug_register_length): Likewise.
13086 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13087 (i386_dr_low_can_set_control): Likewise.
13088 (i386_get_debug_register_length): Likewise.
13089
130902014-06-17 Gary Benson <gbenson@redhat.com>
13091
b9228891
GB
13092 * i386-low.h (i386-dregs.h): New include.
13093 (DR_FIRSTADDR): Now in i386-dregs.h.
13094 (DR_LASTADDR): Likewise.
13095 (DR_NADDR): Likewise.
13096 (DR_STATUS): Likewise.
13097 (DR_CONTROL): Likewise.
13098 (i386_debug_reg_state): Likewise.
13099 (i386_dr_insert_watchpoint): Likewise.
13100 (i386_dr_remove_watchpoint): Likewise.
13101 (i386_dr_region_ok_for_watchpoint): Likewise.
13102 (i386_dr_stopped_data_address): Likewise.
13103 (i386_dr_stopped_by_watchpoint): Likewise.
13104 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13105
4be83cc2
GB
131062014-06-18 Gary Benson <gbenson@redhat.com>
13107
13108 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13109 i386_dr_insert_watchpoint.
13110 (i386_low_remove_watchpoint): Renamed to
13111 i386_dr_remove_watchpoint.
13112 (i386_low_region_ok_for_watchpoint): Renamed to
13113 i386_dr_region_ok_for_watchpoint.
13114 (i386_low_stopped_data_address): Renamed to
13115 i386_dr_stopped_data_address.
13116 (i386_low_stopped_by_watchpoint): Renamed to
13117 i386_dr_stopped_by_watchpoint.
13118 * i386-low.c (i386_show_dr): Renamed to
13119 i386_dr_show and made nonstatic. All uses updated.
13120 (i386_length_and_rw_bits): Renamed to
13121 i386_dr_length_and_rw_bits and made nonstatic.
13122 All uses updated.
13123 (i386_insert_aligned_watchpoint): Renamed to
13124 i386_dr_insert_aligned_watchpoint and made nonstatic.
13125 All uses updated.
13126 (i386_remove_aligned_watchpoint): Renamed to
13127 i386_dr_remove_aligned_watchpoint and made nonstatic.
13128 All uses updated.
13129 (i386_update_inferior_debug_regs): Renamed to
13130 i386_dr_update_inferior_debug_regs and made nonstatic.
13131 All uses updated.
13132 (i386_low_insert_watchpoint): Renamed to
13133 i386_dr_insert_watchpoint. All uses updated.
13134 (i386_low_remove_watchpoint): Renamed to
13135 i386_dr_remove_watchpoint. All uses updated.
13136 (i386_low_region_ok_for_watchpoint): Renamed to
13137 i386_dr_region_ok_for_watchpoint. All uses updated.
13138 (i386_low_stopped_data_address): Renamed to
13139 i386_dr_stopped_data_address. All uses updated.
13140 (i386_low_stopped_by_watchpoint): Renamed to
13141 i386_dr_stopped_by_watchpoint. All uses updated.
13142
131aa0d4
GB
131432014-06-18 Gary Benson <gbenson@redhat.com>
13144
13145 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13146 (i386_dr_low_can_set_control): Likewise.
13147 (i386_insert_aligned_watchpoint): New check.
13148
d9305f7f
GB
131492014-06-18 Gary Benson <gbenson@redhat.com>
13150
13151 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13152 Renamed to state.
13153
e927c9fc
GB
131542014-06-18 Gary Benson <gbenson@redhat.com>
13155
13156 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13157 instead of fatal and error.
13158 (i386_handle_nonaligned_watchpoint): Likewise.
13159
1b6d4134
GB
131602014-06-18 Gary Benson <gbenson@redhat.com>
13161
13162 * i386-low.c (i386_get_debug_register_length): New macro.
13163 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13164 (i386_show_dr): Use debug_printf instead of fprintf. Use
13165 phex to format values.
13166
6e62758f
GB
131672014-06-18 Gary Benson <gbenson@redhat.com>
13168
13169 * i386-low.h: Comment changes.
13170 * i386-low.c: Likewise.
13171
fc6e2f03
GB
131722014-06-18 Gary Benson <gbenson@redhat.com>
13173
13174 * i386-low.c: Whitespace changes.
13175
f9d1eeed
TT
131762014-06-12 Tom Tromey <tromey@redhat.com>
13177
13178 * utils.c (freeargv): Remove.
13179
0b04e523
TT
131802014-06-12 Tom Tromey <tromey@redhat.com>
13181
13182 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13183 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13184 (parse_debug_format_options): Likewise.
13185 (gdbserver_usage): Likewise.
13186 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13187 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13188 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13189 against libiberty.
13190 ($(LIBGNU)): Depend on libiberty.
13191 (all-lib): Recurse into all subdirs.
13192 (install-only): Invoke "install" target in subdirs.
13193 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13194 targets.
13195 * configure: Rebuild.
13196 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13197 for vasprintf, vsnprintf, or gettimeofday.
13198 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13199 srv_tgtobj.
13200
270c9937
JB
132012014-06-05 Joel Brobecker <brobecker@adacore.com>
13202
13203 * development.sh: Delete.
13204 * Makefile.in (config.status): Adjust dependency on development.sh.
13205 * configure.ac: Adjust development.sh source call.
13206 * configure: Regenerate.
13207
0a261ed8
PA
132082014-06-02 Pedro Alves <palves@redhat.com>
13209
13210 * ax.c (gdb_free_agent_expr): New function.
13211 * ax.h (gdb_free_agent_expr): New declaration.
13212 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13213 list.
13214 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13215 static.
13216 (clear_breakpoint_conditions_and_commands): New function.
13217 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13218 (clear_breakpoint_conditions_and_commands): New declaration.
13219
e9dae05e
RR
132202014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13221
13222 * linux-aarch64-low.c (asm/ptrace.h): Include.
13223
5876f503
JK
132242014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13225
13226 Fix TLS access for -static -pthread.
13227 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13228 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13229 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13230
802e8e6d
PA
132312014-05-20 Pedro Alves <palves@redhat.com>
13232
13233 * linux-aarch64-low.c (aarch64_insert_point)
13234 (aarch64_remove_point): No longer check whether the type is
13235 supported here. Adjust to new interface.
13236 (the_low_target): Install aarch64_supports_z_point_type as
13237 supports_z_point_type method.
13238 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13239 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13240 instead of a Z packet char. Adjust.
13241 (arm_supports_z_point_type): New function.
13242 (arm_insert_point, arm_remove_point): Adjust to new interface.
13243 (the_low_target): Install arm_supports_z_point_type.
13244 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13245 (cris_insert_point, cris_remove_point): Adjust to new interface.
13246 Don't check whether the type is supported here.
13247 (the_low_target): Install cris_supports_z_point_type.
13248 * linux-low.c (linux_supports_z_point_type): New function.
13249 (linux_insert_point, linux_remove_point): Adjust to new interface.
13250 * linux-low.h (struct linux_target_ops) <insert_point,
13251 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13252 raw_breakpoint pointer parameter.
13253 <supports_z_point_type>: New method.
13254 * linux-mips-low.c (mips_supports_z_point_type): New function.
13255 (mips_insert_point, mips_remove_point): Adjust to new interface.
13256 Use mips_supports_z_point_type.
13257 (the_low_target): Install mips_supports_z_point_type.
13258 * linux-ppc-low.c (the_low_target): Install NULL as
13259 supports_z_point_type method.
13260 * linux-s390-low.c (the_low_target): Install NULL as
13261 supports_z_point_type method.
13262 * linux-sparc-low.c (the_low_target): Install NULL as
13263 supports_z_point_type method.
13264 * linux-x86-low.c (x86_supports_z_point_type): New function.
13265 (x86_insert_point): Adjust to new insert_point interface. Use
13266 insert_memory_breakpoint. Adjust to new
13267 i386_low_insert_watchpoint interface.
13268 (x86_remove_point): Adjust to remove_point interface. Use
13269 remove_memory_breakpoint. Adjust to new
13270 i386_low_remove_watchpoint interface.
13271 (the_low_target): Install x86_supports_z_point_type.
13272 * lynx-low.c (lynx_target_ops): Install NULL as
13273 supports_z_point_type callback.
13274 * nto-low.c (nto_supports_z_point_type): New.
13275 (nto_insert_point, nto_remove_point): Adjust to new interface.
13276 (nto_target_ops): Install nto_supports_z_point_type.
13277 * mem-break.c: Adjust intro comment.
13278 (struct raw_breakpoint) <raw_type, size>: New fields.
13279 <inserted>: Update comment.
13280 <shlib_disabled>: Delete field.
13281 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13282 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13283 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13284 (raw_bkpt_type_to_target_hw_bp_type): New function.
13285 (find_enabled_raw_code_breakpoint_at): New function.
13286 (find_raw_breakpoint_at): New type and size parameters. Use them.
13287 (insert_memory_breakpoint): New function, based off
13288 set_raw_breakpoint_at.
13289 (remove_memory_breakpoint): New function.
13290 (set_raw_breakpoint_at): Reimplement.
13291 (set_breakpoint): New, based on set_breakpoint_at.
13292 (set_breakpoint_at): Reimplement.
13293 (delete_raw_breakpoint): Go through the_target->remove_point
13294 instead of assuming memory breakpoints.
13295 (find_gdb_breakpoint_at): Delete.
13296 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13297 (find_gdb_breakpoint): New function.
13298 (set_gdb_breakpoint_at): Delete.
13299 (z_type_supported): New function.
13300 (set_gdb_breakpoint_1): New function, loosely based off
13301 set_gdb_breakpoint_at.
13302 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13303 (delete_gdb_breakpoint_at): Delete.
13304 (delete_gdb_breakpoint_1): New function, loosely based off
13305 delete_gdb_breakpoint_at.
13306 (delete_gdb_breakpoint): New function.
13307 (clear_gdb_breakpoint_conditions): Rename to ...
13308 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13309 breakpoint.
13310 (add_condition_to_breakpoint): Make static.
13311 (add_breakpoint_condition): Take a struct breakpoint pointer
13312 instead of an address. Adjust.
13313 (gdb_condition_true_at_breakpoint): Rename to ...
13314 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13315 z_type parameter.
13316 (gdb_condition_true_at_breakpoint): Reimplement.
13317 (add_breakpoint_commands): Take a struct breakpoint pointer
13318 instead of an address. Adjust.
13319 (gdb_no_commands_at_breakpoint): Rename to ...
13320 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13321 parameter. Return true if no breakpoint was found. Change debug
13322 output.
13323 (gdb_no_commands_at_breakpoint): Reimplement.
13324 (run_breakpoint_commands): Rename to ...
13325 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13326 and change return type to boolean.
13327 (run_breakpoint_commands): New function.
13328 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13329 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13330 breakpoint. Go through the_target->remove_point instead of
13331 assuming memory breakpoint.
13332 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13333 software and hardware breakpoints.
13334 (reinsert_raw_breakpoint): Go through the_target->insert_point
13335 instead of assuming memory breakpoint.
13336 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13337 software and hardware breakpoints.
13338 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13339 Check both software and hardware breakpoints.
13340 (validate_inserted_breakpoint): Assert the breakpoint is a
13341 software breakpoint. Set the inserted flag to -1 instead of
13342 setting shlib_disabled.
13343 (delete_disabled_breakpoints): Adjust.
13344 (validate_breakpoints): Only validate software breakpoints.
13345 Adjust to inserted flag change.
13346 (check_mem_read, check_mem_write): Skip breakpoint types other
13347 than software breakpoints. Adjust to inserted flag change.
13348 * mem-break.h (enum raw_bkpt_type): New enum.
13349 (raw_breakpoint, struct process_info): Forward declare.
13350 (Z_packet_to_target_hw_bp_type): Delete declaration.
13351 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13352 (set_gdb_breakpoint, delete_gdb_breakpoint)
13353 (clear_breakpoint_conditions): New declarations.
13354 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13355 (breakpoint_inserted_here): Update comment.
13356 (add_breakpoint_condition, add_breakpoint_commands): Replace
13357 address parameter with a breakpoint pointer parameter.
13358 (gdb_breakpoint_here): Update comment.
13359 (delete_gdb_breakpoint_at): Delete.
13360 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13361 * server.c (process_point_options): Take a struct breakpoint
13362 pointer instead of an address. Adjust.
13363 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13364 delete_gdb_breakpoint.
13365 * spu-low.c (spu_target_ops): Install NULL as
13366 supports_z_point_type method.
13367 * target.h: Include mem-break.h.
13368 (struct target_ops) <prepare_to_access_memory>: Update comment.
13369 <supports_z_point_type>: New field.
13370 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13371 instead of a char. Also take a raw breakpoint pointer.
13372 * win32-arm-low.c (the_low_target): Install NULL as
13373 supports_z_point_type.
13374 * win32-i386-low.c (i386_supports_z_point_type): New function.
13375 (i386_insert_point, i386_remove_point): Adjust to new interface.
13376 (the_low_target): Install i386_supports_z_point_type.
13377 * win32-low.c (win32_supports_z_point_type): New function.
13378 (win32_insert_point, win32_remove_point): Adjust to new interface.
13379 (win32_target_ops): Install win32_supports_z_point_type.
13380 * win32-low.h (struct win32_target_ops):
13381 <supports_z_point_type>: New method.
13382 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13383 instead of a char. Also take a raw breakpoint pointer.
13384
932539e3
PA
133852014-05-20 Pedro Alves <palves@redhat.com>
13386
13387 * mem-break.h: Include break-common.h.
13388 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13389 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13390 (Z_packet_to_target_hw_bp_type): New declaration.
13391 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13392 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13393 (Z_PACKET_ACCESS_WP): Delete macros.
13394 (Z_packet_to_hw_type): Delete function.
13395 * i386-low.h: Don't include break-common.h here.
13396 (Z_packet_to_hw_type): Delete declaration.
13397 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13398 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13399 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13400 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13401 * linux-aarch64-low.c: Don't include break-common.h here.
13402 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13403 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13404 (Z_packet_to_target_hw_bp_type): Delete function.
13405 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13406 function.
13407 (mips_insert_point, mips_remove_point): Use
13408 Z_packet_to_target_hw_bp_type.
13409
4ff0d3d8
PA
134102014-05-20 Pedro Alves <palves@redhat.com>
13411
13412 * linux-aarch64-low.c: Include break-common.h.
13413 (enum target_point_type): Delete.
13414 (Z_packet_to_point_type): Rename to ...
13415 (Z_packet_to_target_hw_bp_type): ... this, and return a
13416 target_hw_bp_type instead.
13417 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13418 instead of an enum target_point_type.
13419 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13420 breakpoint type.
13421 (aarch64_dr_state_insert_one_point)
13422 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13423 (aarch64_handle_aligned_watchpoint)
13424 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13425 Take an enum target_hw_bp_type instead of an enum
13426 target_point_type.
13427 (aarch64_supports_z_point_type): New function.
13428 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13429 use Z_packet_to_target_hw_bp_type.
13430
786dc519
JB
134312014-05-20 Joel Brobecker <brobecker@adacore.com>
13432
13433 * configure.ac: Only use -Werror by default when DEVELOPMENT
13434 is true.
13435 * configure: Regenerate.
13436
9e0aa64f
JK
134372014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13438
13439 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13440 * linux-x86-low.c (X86_64_USER_REGS): New.
13441 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13442
2b577b92
YQ
134432014-04-28 Yao Qi <yao@codesourcery.com>
13444
13445 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13446 name.
13447
94611da2
PA
134482014-04-25 Pedro Alves <palves@redhat.com>
13449
13450 PR server/16255
13451 * linux-low.c (linux_attach_fail_reason_string): New function.
13452 (linux_attach_lwp): Delete.
13453 (linux_attach_lwp_1): Rename to ...
13454 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13455 argument. Remove "initial" parameter. Return int instead of
13456 void. Don't error or warn here.
13457 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13458 failure to attach to the tgid. Call warning when failing to
13459 attach to an lwp.
13460 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13461 argument. Remove "initial" parameter. Return int instead of
13462 void. Don't error or warn here.
13463 (linux_attach_fail_reason_string): New declaration.
13464 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13465 interface change. Use linux_attach_fail_reason_string.
13466
01f9f808
MS
134672014-04-24 Michael Sturm <michael.sturm@mintel.com>
13468 Walfred Tedeschi <walfred.tedeschi@intel.com>
13469
13470 * Makefile.in: Added rules to handle new files
13471 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13472 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13473 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13474 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13475 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13476 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13477 x32-avx512-linux.o.
13478 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13479 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13480 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13481 i386/x32-avx512.xml.
13482 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13483 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13484 i386/x32-avx512-linux.xml.
13485 * i387-fp.c (num_avx512_k_registers): New constant for number
13486 of K registers.
13487 (num_avx512_zmmh_low_registers): New constant for number of
13488 lower ZMM registers (0-15).
13489 (num_avx512_zmmh_high_registers): New constant for number of
13490 higher ZMM registers (16-31).
13491 (num_avx512_ymmh_registers): New contant for number of higher
13492 YMM registers (ymm16-31 added by avx521 on x86_64).
13493 (num_avx512_xmm_registers): New constant for number of higher
13494 XMM registers (xmm16-31 added by AVX512 on x86_64).
13495 (struct i387_xsave): Add space for AVX512 registers.
13496 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13497 Add code to handle AVX512 registers.
13498 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13499 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13500 prototypei from generated file.
13501 (tdesc_amd64_avx512_linux): Likewise.
13502 (init_registers_x32_avx512_linux): Likewise.
13503 (tdesc_x32_avx512_linux): Likewise.
13504 (init_registers_i386_avx512_linux): Likewise.
13505 (tdesc_i386_avx512_linux): Likewise.
13506 (x86_64_regmap): Add AVX512 registers.
13507 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13508 mask.
13509 (initialize_low_arch): Add code to initialize AVX512 registers.
13510
51aa91f9
PA
135112014-04-23 Pedro Alves <palves@redhat.com>
13512
13513 * mem-break.c (find_gdb_breakpoint_at): Make static.
13514 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13515
a4165e94
PA
135162014-04-23 Pedro Alves <palves@redhat.com>
13517
13518 * i386-low.c: Don't include break-common.h here.
13519 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13520 prototype to take target_hw_bp_type as argument instead of a Z
13521 packet char.
13522 * i386-low.h: Include break-common.h here.
13523 (Z_packet_to_hw_type): Declare.
13524 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13525 prototypes.
13526 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13527 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13528 (x86_remove_point): Convert the packet number to a
13529 target_hw_bp_type before calling i386_low_remove_watchpoint.
13530 * win32-i386-low.c (i386_insert_point): Convert the packet number
13531 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13532 (i386_remove_point): Convert the packet number to a
13533 target_hw_bp_type before calling i386_low_remove_watchpoint.
13534
b8acf843
PA
135352014-04-23 Pedro Alves <palves@redhat.com>
13536
13537 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13538
d708bcd1
PA
135392014-04-10 Pedro Alves <palves@redhat.com>
13540
13541 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13542 Check if the condition or command is NULL before checking if the
13543 breakpoint is known. On success, return true.
13544 * mem-break.h (add_breakpoint_condition): Document return.
13545 (add_breakpoint_commands): Add describing comment.
13546 * server.c (skip_to_semicolon): New function.
13547 (process_point_options): Use it.
13548
2eec7d5b
PA
135492014-04-09 Pedro Alves <palves@redhat.com>
13550
13551 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13552 to lwpid_of.
13553
fa96cb38
PA
135542014-02-27 Pedro Alves <palves@redhat.com>
13555
13556 PR 12702
13557 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13558 macros.
13559 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13560 output.
13561 (last_thread_of_process_p): Take a PID argument instead of a
13562 thread pointer.
13563 (linux_wait_for_lwp): Delete.
13564 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13565 functions.
13566 (linux_low_filter_event): New function, party factored out from
13567 linux_wait_for_event.
13568 (linux_wait_for_event): Rename to ...
13569 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13570 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13571 sigsuspend. Check for zombie leaders.
13572 (linux_wait_for_event): Reimplement as wrapper around
13573 linux_wait_for_event_filtered.
13574 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13575 a normal or signal exit is seen, it's the whole process exiting.
13576 (wait_for_sigstop): No longer a for_each_inferior callback.
13577 Rewrite on top of linux_wait_for_event_filtered.
13578 (stop_all_lwps): Call wait_for_sigstop directly.
13579 * server.c (resume, handle_target_event): Handle
13580 TARGET_WAITKIND_NO_RESUMED.
13581
d763de10
JB
135822014-02-26 Joel Brobecker <brobecker@adacore.com>
13583
13584 * win32-low.c (psapi_get_dll_name,
13585 * win32_CreateToolhelp32Snapshot): Delete.
13586 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13587 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13588 Delete.
13589 (handle_load_dll): Add function description.
13590 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13591
850a0f76
JB
135922014-02-26 Joel Brobecker <brobecker@adacore.com>
13593
13594 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13595 Add comment.
13596 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13597 base address when calling win32_add_one_solib.
13598 (handle_load_dll): Delete local variable load_addr.
13599 Remove 0x1000 offset applied to DLL base address when calling
13600 win32_add_one_solib.
13601 (handle_unload_dll): Add comment.
13602
f25b3fc3
JB
136032014-02-26 Joel Brobecker <brobecker@adacore.com>
13604
13605 * win32-low.c (win32_add_all_dlls): Renames
13606 win32_ensure_ntdll_loaded. Rewrite function documentation.
13607 Adjust implementation to always load all DLLs.
13608 Add 0x1000 offset to DLL base address when calling
13609 win32_add_one_solib.
13610 (child_initialization_done): New static global.
13611 (do_initial_child_stuff): Set child_initialization_done to
13612 zero during child initialization, and 1 after. Replace call
13613 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13614 Add comment.
13615 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13616 (handle_unload_dll): Add function documentation.
13617 (get_child_debug_event): Ignore load and unload DLL events
13618 during child initialization.
13619
d86d4aaf
DE
136202014-02-20 Doug Evans <dje@google.com>
13621
3bc32da3 13622 Remove global all_lwps.
d86d4aaf
DE
13623 * inferiors.h (ptid_of): Move here from linux-low.h.
13624 (pid_of, lwpid_of): Ditto.
13625 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13626 parameter is a struct thread_info * now.
13627 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13628 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13629 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13630 directly.
13631 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13632 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13633 * linux-arm-low.c (update_registers_callback): Update, "entry"
13634 parameter is a struct thread_info * now.
13635 Fetch lwpid from current_inferior directly.
13636 (arm_insert_point): Pass &all_threads to find_inferior instead of
13637 &all_lwps.
13638 (arm_remove_point): Ditto.
13639 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13640 (arm_prepare_to_resume): Fetch pid from thread.
13641 (arm_read_description): Fetch lwpid from current_inferior directly.
13642 * linux-low.c (all_lwps): Delete.
13643 (delete_lwp): Delete call to remove_inferior.
13644 (handle_extended_wait): Fetch lwpid from thread.
13645 (add_lwp): Don't set lwp->entry.id. Remove call to
13646 add_inferior_to_list.
13647 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13648 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13649 (kill_one_lwp_callback): Ditto.
13650 (linux_kill): Don't dereference NULL pointer.
13651 Fetch ptid,lwpid from thread.
13652 (get_detach_signal): Fetch ptid from thread.
13653 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13654 Simplify call to regcache_invalidate_thread.
13655 (delete_lwp_callback): Update, "entry" parameter is a
13656 struct thread_info * now. Fetch pid from thread.
13657 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13658 (status_pending_p_callback): Update, "entry" parameter is a
13659 struct thread_info * now. Fetch ptid from thread.
13660 (find_lwp_pid): Update, "entry" parameter is a
13661 struct thread_info * now.
13662 (linux_wait_for_lwp): Fetch pid from thread.
13663 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13664 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13665 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13666 (dequeue_one_deferred_signal): Ditto.
13667 (cancel_breakpoint): Fetch ptid from current_inferior.
13668 (linux_wait_for_event): Pass &all_threads to find_inferior,
13669 not &all_lwps. Fetch ptid, lwpid from thread.
13670 (count_events_callback): Update, "entry" parameter is a
13671 struct thread_info * now.
13672 (select_singlestep_lwp_callback): Ditto.
13673 (select_event_lwp_callback): Ditto.
13674 (cancel_breakpoints_callback): Ditto.
13675 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13676 not &all_lwps.
13677 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13678 (unsuspend_one_lwp): Update, "entry" parameter is a
13679 struct thread_info * now.
13680 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13681 not &all_lwps.
13682 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13683 Fetch lwpid from thread, not lwp.
13684 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13685 Pass &all_threads to find_inferior, not &all_lwps.
13686 (send_sigstop): Fetch lwpid from thread, not lwp.
13687 (send_sigstop_callback): Update, "entry" parameter is a
13688 struct thread_info * now.
13689 (suspend_and_send_sigstop_callback): Ditto.
13690 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13691 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13692 struct thread_info * now.
13693 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13694 from thread, lwp.
13695 (lwp_running): Update, "entry" parameter is a
13696 struct thread_info * now.
13697 (stop_all_lwps): Fetch ptid from thread.
13698 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13699 (linux_resume_one_lwp): Fetch lwpid from thread.
13700 (linux_set_resume_request): Update, "entry" parameter is a
13701 struct thread_info * now. Fetch pid, lwpid from thread.
13702 (resume_status_pending_p): Update, "entry" parameter is a
13703 struct thread_info * now.
13704 (need_step_over_p): Ditto. Fetch lwpid from thread.
13705 (start_step_over): Fetch lwpid from thread.
13706 (linux_resume_one_thread): Update, "entry" parameter is a
13707 struct thread_info * now. Fetch lwpid from thread.
13708 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13709 (proceed_one_lwp): Update, "entry" parameter is a
13710 struct thread_info * now. Fetch lwpid from thread.
13711 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13712 struct thread_info * now.
13713 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13714 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13715 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13716 directly.
13717 (regsets_store_inferior_registers): Ditto.
13718 (fetch_register, store_register): Ditto.
13719 (linux_read_memory, linux_write_memory): Ditto.
13720 (linux_request_interrupt): Ditto.
13721 (linux_read_auxv): Ditto.
13722 (linux_xfer_siginfo): Ditto.
13723 (linux_qxfer_spu): Ditto.
13724 (linux_qxfer_libraries_svr4): Ditto.
13725 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13726 moved to inferiors.h.
13727 (get_lwp): Delete.
13728 (get_thread_lwp): Update.
13729 (struct lwp_info): Delete member "entry". Simplify comment for
13730 member "thread".
13731 (all_lwps): Delete.
13732 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13733 current_inferior directly.
13734 (update_watch_registers_callback): Update, "entry" parameter is a
13735 struct thread_info * now. Fetch pid from thread.
13736 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13737 (mips_insert_point): Fetch lwpid from current_inferior.
13738 Pass &all_threads to find_inferior, not &all_lwps.
13739 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13740 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13741 directly.
13742 (mips_stopped_data_address): Ditto.
13743 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13744 directly.
13745 * linux-tile-low.c (tile_arch_setup): Ditto.
13746 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13747 (update_debug_registers_callback): Update, "entry" parameter is a
13748 struct thread_info * now. Fetch pid from thread.
13749 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13750 Pass &all_threads to find_inferior, not &all_lwps.
13751 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13752 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13753 Pass &all_threads to find_inferior, not &all_lwps.
13754 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13755 (i386_dr_low_get_status): Ditto.
13756 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13757 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13758 (x86_linux_read_description): Ditto.
13759 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13760
3b8361aa
DE
137612014-02-20 Doug Evans <dje@google.com>
13762
13763 * inferiors.c (get_first_inferior): Fix buglet.
13764
f7667f0d
DE
137652014-02-19 Doug Evans <dje@google.com>
13766
13767 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13768 * inferiors.c (add_thread): Change result type to struct thread_info *.
13769 All callers updated.
13770 (add_lwp): Call add_thread here instead of in callers.
13771 All callers updated.
13772 * linux-low.h (get_lwp_thread): Rewrite.
13773 (struct lwp_info): New member "thread".
13774
b3312d80
DE
137752014-02-19 Doug Evans <dje@google.com>
13776
13777 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13778 All callers updated.
13779
ecc6f45c
DE
137802014-02-19 Doug Evans <dje@google.com>
13781
13782 * inferiors.c (add_thread): Fix whitespace.
13783
649ebbca
DE
137842014-02-19 Doug Evans <dje@google.com>
13785
13786 * dll.c (clear_dlls): Replace accessing list implemention details
13787 with API function.
13788 * gdbthread.h (get_first_thread): Declare.
13789 * inferiors.c (for_each_inferior_with_data): New function.
13790 (get_first_thread): New function.
13791 (find_thread_ptid): Simplify.
13792 (get_first_inferior): New function.
13793 (clear_list): Delete.
13794 (one_inferior_p): New function.
13795 (clear_inferior_list): New function.
13796 (clear_inferiors): Update.
13797 * inferiors.h (for_each_inferior_with_data): Declare.
13798 (clear_inferior_list): Declare.
13799 (one_inferior_p): Declare.
13800 (get_first_inferior): Declare.
13801 * linux-low.c (linux_wait_for_event): Replace accessing list
13802 implemention details with API function.
13803 * server.c (target_running): Ditto.
13804 (accumulate_file_name_length): New function.
13805 (emit_dll_description): New function.
13806 (handle_qxfer_libraries): Replace accessing list implemention
13807 details with API function.
13808 (handle_qxfer_threads_worker): New function.
13809 (handle_qxfer_threads_proper): Replace accessing list implemention
13810 details with API function.
13811 (handle_query): Ditto.
13812 (visit_actioned_threads_callback_ftype): New typedef.
13813 (visit_actioned_threads_data): New struct.
13814 (visit_actioned_threads): Rewrite to be find_inferior callback.
13815 (resume): Call find_inferior.
13816 (handle_status): Replace accessing list implemention
13817 details with API function.
13818 (process_serial_event): Replace accessing list implemention details
13819 with API function.
13820 * target.c (set_desired_inferior): Replace accessing list implemention
13821 details with API function.
13822 * tracepoint.c (same_process_p): New function.
13823 (gdb_agent_about_to_close): Replace accessing list implemention
13824 details with API function.
13825 * win32-low.c (child_delete_thread): Replace accessing list
13826 implemention details with API function.
13827 (match_dll_by_basename): New function.
13828 (dll_is_loaded_by_basename): New function.
13829 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13830 details call to dll_is_loaded_by_basename.
13831
80894984
DE
138322014-02-19 Doug Evans <dje@google.com>
13833
13834 * dll.h (struct dll_info): Add comment.
13835 * gdbthread.h (struct thread_info): Add comment.
13836 (current_ptid): Simplify.
13837 * inferiors.c (add_process): Update.
13838 (remove_process): Update.
13839 * inferiors.h (struct process_info): Rename member "head" to "entry".
13840 * linux-low.c (delete_lwp): Update.
13841 (add_lwp): Update.
13842 (last_thread_of_process_p): Update.
13843 (kill_one_lwp_callback, linux_kill): Update.
13844 (status_pending_p_callback): Update.
13845 (wait_for_sigstop): Update. Simplify read of ptid.
13846 (start_step_over): Update.
13847 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13848 (get_lwp_thread): Update.
13849 (struct lwp_info): Rename member "head" to "entry".
13850 * regcache.h (inferior_list_entry): Delete.
13851 * server.c (kill_inferior_callback): Update.
13852 (detach_or_kill_inferior_callback): Update.
13853 (print_started_pid): Update.
13854 (print_attached_pid): Update.
13855 (process_serial_event): Simplify read of ptid.
13856 * thread-db.c (thread_db_create_event): Update.
13857 (thread_db_get_tls_address): Update.
13858 * win32-low.c (current_inferior_ptid): Simplify.
13859
46917d26
TT
138602014-02-19 Tom Tromey <tromey@redhat.com>
13861
13862 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13863 argument.
13864 (target_supports_btrace): Update.
13865
0759a81e
YQ
138662014-02-14 Yao Qi <yao@codesourcery.com>
13867
13868 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13869 (rsp-low-ipa.o): New target.
13870
a7191e8b
TT
138712014-02-12 Tom Tromey <tromey@redhat.com>
13872
13873 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13874 convert_ascii_to_int.
13875 * regcache.c (registers_to_string): Likewise.
13876 * remote-utils.c (decode_M_packet): Likewise.
13877 * server.c (process_serial_event): Likewise.
13878
ff0e980e
TT
138792014-02-12 Tom Tromey <tromey@redhat.com>
13880
13881 * server.c (handle_query, handle_v_run): Use hex2bin, not
13882 unhexify.
13883 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13884
e9371aff
TT
138852014-02-12 Tom Tromey <tromey@redhat.com>
13886
13887 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13888 convert_int_to_ascii.
13889 * regcache.c (registers_to_string, collect_register_as_string):
13890 Likewise.
13891 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13892 Likewise.
13893 * server.c (process_serial_event): Likewise.
13894 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13895 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13896
971dc0b8
TT
138972014-02-12 Tom Tromey <tromey@redhat.com>
13898
13899 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13900 bin2hex, not hexify.
13901 * tracepoint.c (cmd_qtstatus): Likewise.
13902
0a822afb
TT
139032014-02-12 Tom Tromey <tromey@redhat.com>
13904
13905 * remote-utils.c (monitor_output): Pass explicit length to
13906 hexify.
13907
9c3d6531
TT
139082014-02-12 Tom Tromey <tromey@redhat.com>
13909
13910 * tracepoint.c: Include rsp-low.h.
13911 * server.c: Include rsp-low.h.
13912 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13913 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13914 declare.
13915 * remote-utils.c: Include rsp-low.h.
13916 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13917 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13918 (convert_int_to_ascii, convert_ascii_to_int): Move to
13919 common/rsp-low.c.
13920 * regcache.c: Include rsp-low.h.
13921 * ax.c: Include rsp-low.h.
13922 * Makefile.in (SFILES): Add common/rsp-low.c.
13923 (OBS): Add rsp-low.o.
13924 (rsp-low.o): New target.
13925
01fd3ea5
TT
139262014-02-12 Tom Tromey <tromey@redhat.com>
13927
13928 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13929 Include print-utils.h.
13930 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13931 (plongest, thirty_two, phex_nz): Remove.
13932 * Makefile.in (SFILES): Add common/print-utils.c.
13933 (OBS): Add print-utils.o.
13934 (print-utils-ipa.o): New target.
13935 (print-utils.o): New target.
13936 (IPA_OBJS): Add print-utils-ipa.o.
13937
e99dc820
TT
139382014-02-06 Tom Tromey <tromey@redhat.com>
13939
13940 * Makefile.in (SFILES): Fix indentation.
13941
ee1e2d4f
DE
139422014-02-05 Doug Evans <dje@google.com>
13943
13944 * linux-low.c (linux_wait_for_event): Improve comment.
13945 (linux_wait_1): Keep current_inferior in sync with event_child.
13946
f5a02773
DE
139472014-01-22 Doug Evans <dje@google.com>
13948
13949 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13950
87ce2a04
DE
139512014-01-22 Doug Evans <dje@google.com>
13952
13953 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13954 * configure: Regenerate.
13955 * config.in: Regenerate.
13956 * Makefile.in (SFILES): Add debug.c.
13957 (OBS): Add debug.o.
13958 * debug.c: New file.
13959 * debug.h: New file.
13960 * linux-aarch64-low.c (*): Update all debugging printfs to use
13961 debug_printf instead of fprintf.
13962 * linux-arm-low.c (*): Ditto.
13963 * linux-cris-low.c (*): Ditto.
13964 * linux-crisv32-low.c (*): Ditto.
13965 * linux-m32r-low.c (*): Ditto.
13966 * linux-sparc-low.c (*): Ditto.
13967 * linux-x86.c (*): Ditto.
13968 * linux-low.c (*): Ditto.
13969 (linux_wait_1): Add calls to debug_enter, debug_exit.
13970 (linux_wait): Remove redundant debugging printf.
13971 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13972 (linux_resume, unstop_all_lwps): Ditto.
13973 * mem-break.c (*): Update all debugging printfs to use
13974 debug_printf instead of fprintf.
13975 * remote-utils.c (*): Ditto.
13976 * thread-db.c (*): Ditto.
13977 * server.c #include <ctype.h>, "gdb_vecs.h".
13978 (debug_threads): Moved to debug.c.
13979 (*): Update all debugging printfs to use debug_printf instead of
13980 fprintf.
13981 (start_inferior): Replace call to fflush with call to debug_flush.
13982 (monitor_show_help): Mention set debug-format.
13983 (parse_debug_format_options): New function.
13984 (handle_monitor_command): Handle "monitor set debug-format".
13985 (gdbserver_usage): Mention --debug-format.
13986 (main): Parse --debug-format.
13987 * server.h (debug_threads): Declaration moved to debug.h.
13988 #include "debug.h".
13989 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13990 trace_debug_1 that uses debug_printf.
13991 (tracepoint_look_up_symbols): Update all debugging printfs to use
13992 debug_printf instead of fprintf.
13993
e671835b
BS
139942014-01-20 Baruch Siach <baruch@tkos.co.il>
13995
13996 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13997 sys/ptrace.h.
13998
b5737fa9
PA
139992014-01-17 Pedro Alves <palves@redhat.com>
14000
ea38d2a9 14001 PR build/16445
c7faa97a
PA
14002 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
14003 defined after including gdb_proc_service.h.
b5737fa9 14004
40ed484e
DE
140052014-01-16 Doug Evans <dje@google.com>
14006
14007 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
14008 (match_dll): Use it.
14009
969c39fb
MM
140102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14011
14012 * target.h (target_ops) <read_btrace>: Change parameters and
14013 return type to allow error reporting.
14014 * server.c (handle_qxfer_btrace): Support delta reads. Pass
14015 trace reading errors on.
14016 * linux-low.c (linux_low_read_btrace): Pass trace reading
14017 errors on.
14018 (linux_low_disable_btrace): New.
14019
ab7f45ba
DE
140202014-01-15 Doug Evans <dje@google.com>
14021
14022 * inferiors.c (thread_id_to_gdb_id): Delete.
14023 * inferiors.h (thread_id_to_gdb_id): Delete.
14024
66af0f44
EZ
140252014-01-13 Eli Zaretskii <eliz@gnu.org>
14026
14027 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
14028 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
14029 versions.
14030
9939e131
PA
140312014-01-08 Pedro Alves <palves@redhat.com>
14032
14033 * server.c (handle_status): Don't discard previous queued stop
14034 replies or thread's pending status here.
14035 (main) <disconnection>: Do it here instead.
14036
b7ea362b
PA
140372014-01-08 Pedro Alves <palves@redhat.com>
14038
14039 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
14040 * server.c (visit_actioned_threads, handle_pending_status): New
14041 function.
14042 (handle_v_cont): Factor out parts to ...
14043 (resume): ... this new function. If in all-stop, and a thread
14044 being resumed has a pending status, report it without actually
14045 resuming.
14046 (myresume): Adjust to use the new 'resume' function.
14047 (clear_pending_status_callback, set_pending_status_callback)
14048 (find_status_pending_thread_callback): New functions.
14049 (handle_status): Handle the case of multiple threads having
14050 interesting statuses to report. Report threads' real last signal
14051 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
14052 with an interesting thread to report the status for, instead of
14053 always reporting the status of the first thread.
14054
28498c42
JB
140552014-01-01 Joel Brobecker <brobecker@adacore.com>
14056
14057 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
14058 * gdbreplay.c (gdbreplay_version): Likewise.
14059
f45c82da
YZ
140602013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
14061
14062 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
14063 iov.iov_len with the real length in use.
14064
379a5e2d
JB
140652013-12-13 Joel Brobecker <brobecker@adacore.com>
14066
14067 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14068 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14069 for all targets that use win32-low.c.
14070 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14071 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14072
4210d83e
PA
140732013-12-13 Pedro Alves <palves@redhat.com>
14074
14075 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14076 if equal to TARGET_WAITKIND_LOADED.
14077 * win32-low.c (cached_status): New static global.
14078 (win32_wait): Add declaration.
14079 (do_initial_child_stuff): Flush all initial pending debug events
14080 up to the initial breakpoint.
14081 (win32_wait): If CACHED_STATUS was set, return that instead
14082 of doing a real wait. Remove the code resuming the execution
14083 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14084 during the initial phase. Also remove the code changing
14085 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14086 TARGET_WAITKIND_STOPPED.
14087
e7f0d979
YQ
140882013-12-11 Yao Qi <yao@codesourcery.com>
14089
14090 * notif.c (handle_notif_ack): Return 0 if no notification
14091 matches.
14092
ebcf782c
DE
140932013-11-20 Doug Evans <dje@google.com>
14094
14095 * linux-low.c (linux_set_resume_request): Fix comment.
14096
20ad9378
DE
140972013-11-20 Doug Evans <dje@google.com>
14098
14099 * linux-low.c (resume_status_pending_p): Tweak comment.
14100
a196ebeb
WT
141012013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14102
14103 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14104 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14105 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14106 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14107 (srv_amd64_regobj): Add amd64-mpx.o.
14108 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14109 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14110 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14111 * i387-fp.c (num_pl_bnd_register) Added constant.
14112 (num_pl_bnd_cfg_registers) Added constant.
14113 (struct i387_xsave) Added reserved area and MPX fields.
14114 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14115 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14116 function.
14117 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14118 (init_registers_amd64_mpx_linux): Declare new function.
14119 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14120 (x86_64_regmap): Add MPX registers.
14121 (x86_linux_read_description): Add MPX case.
14122 (initialize_low_arch): Initialize MPX targets.
14123
0080a2f6
TT
141242013-11-18 Tom Tromey <tromey@redhat.com>
14125
14126 * configure: Rebuild.
14127 * configure.ac: Don't check for stdlib.h.
14128 * gdbreplay.c: Unconditionally include stdlib.h.
14129
2978b111
TT
141302013-11-18 Tom Tromey <tromey@redhat.com>
14131
14132 * config.in: Rebuild.
14133 * configure: Rebuild.
14134 * configure.ac: Don't use AC_HEADER_DIRENT.
14135
a3d08894
TT
141362013-11-18 Tom Tromey <tromey@redhat.com>
14137
14138 * server.h: Don't check HAVE_STRING_H.
14139 * gdbreplay.c: Don't check HAVE_STRING_H.
14140 * configure: Rebuild.
14141
0a5dd17d
TT
141422013-11-18 Tom Tromey <tromey@redhat.com>
14143
14144 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14145 LIBGNU.
14146
1bd2f0ba
TT
141472013-11-08 Tom Tromey <tromey@redhat.com>
14148
14149 * configure, config.in: Rebuild.
14150 * configure.ac: Remove unused configury.
14151
3266f10b
TT
141522013-11-08 Tom Tromey <tromey@redhat.com>
14153
14154 * acinclude.m4: Include common.m4, codeset.m4.
14155 * configure, config.in: Rebuild.
14156 * configure.ac: Use GDB_AC_COMMON.
14157
6682d959
AA
141582013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14159
14160 * linux-s390-low.c (HWCAP_S390_TE): New define.
14161 (s390_arch_setup): Consider the TE field in the HWCAP for
14162 determining 'have_regset_tdb'.
14163
fd0a4d76
SDJ
141642013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14165
14166 PR gdb/16014
14167 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14168 call to sizeof.
14169
1a3d890b
PA
141702013-10-02 Pedro Alves <palves@redhat.com>
14171
14172 * server.c (process_serial_event): Don't output "GDBserver
14173 exiting" if GDB is connected through stdio.
14174 * target.c (mywait): Likewise, be silent if GDB is connected
14175 through stdio.
14176
97ad4581
JB
141772013-10-01 Joel Brobecker <brobecker@adacore.com>
14178
14179 * lynx-low.c (lynx_add_threads_after_attach): New function.
14180 (lynx_attach): Remove call to add_thread. Add call to
14181 lynx_add_threads_after_attach instead.
14182
5b4e221c
MF
141832013-09-28 Mike Frysinger <vapier@gentoo.org>
14184
14185 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14186 * config.in, configure: Regenerated.
14187
ee47b2f8
YQ
141882013-09-18 Yao Qi <yao@codesourcery.com>
14189
14190 PR server/15959
14191 * server.c (start_inferior): Clear 'resume_info'.
14192
d6707650 141932013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14194
d6707650
JW
14195 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14196 for each register.
14197
9243dd0e 141982013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14199
9243dd0e
JW
14200 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14201 linux-tile-low.o to srv_tgtobj.
14202
c623a6ef
WN
142032013-09-16 Will Newton <will.newton@linaro.org>
14204
14205 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14206 out regs.
14207
fb71d39e
PA
142082013-09-06 Pedro Alves <palves@redhat.com>
14209
14210 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14211 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14212 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14213 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14214 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14215 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14216
8e7e9910
PA
142172013-09-06 Pedro Alves <palves@redhat.com>
14218
14219 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14220 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14221
7c3a12ca
PA
142222013-09-06 Pedro Alves <palves@redhat.com>
14223
14224 * linux-amd64-ipa.c: Include tracepoint.h.
14225 * linux-i386-ipa.c: Include tracepoint.h.
14226
8eb3d7b6
RW
142272013-09-06 Ricard Wanderlof <ricardw@axis.com>
14228
14229 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14230 (ps_get_thread_area): New function.
14231
eddddb9d
RW
142322013-09-06 Ricard Wanderlof <ricardw@axis.com>
14233
14234 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14235 (initialize_low_arch): Call init_registers_crisv32 rather than
14236 init_register_crisv32.
14237
533b0600
PA
142382013-09-05 Pedro Alves <palves@redhat.com>
14239
14240 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14241 to ...
14242 * hostio.h: ... this new file.
14243 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14244 win32-low.c: Include hostio.h.
14245
0ce3d3b5
PA
142462013-09-05 Pedro Alves <palves@redhat.com>
14247
14248 * server.h (gdb_client_data, handler_func, callback_handler_func)
14249 (delete_file_handler, add_file_handler, append_callback_event)
14250 (delete_callback_event, start_event_loop, initialize_event_loop):
14251 Move to event-loop.h and include it.
14252 * event-loop.h: New file.
14253
799cdc37
PA
142542013-09-05 Pedro Alves <palves@redhat.com>
14255
14256 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14257 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14258 (loaded_dll, unloaded_dll): Move to ...
14259 * dll.h: ... this new file.
14260 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14261
6a6bbd9d
PA
142622013-09-05 Pedro Alves <palves@redhat.com>
14263
14264 * server.h (current_process, get_thread_process, all_processes)
14265 (add_inferior_to_list, for_each_inferior, current_inferior)
14266 (remove_inferior, add_process, remove_process, find_process_pid)
14267 (have_started_inferiors_p, have_attached_inferiors_p)
14268 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14269 (clear_inferiors, find_inferior, find_inferior_id)
14270 (inferior_target_data, set_inferior_target_data)
14271 (inferior_regcache_data, set_inferior_regcache_data): Move to
14272 inferiors.h, and include it.
14273 * inferiors.h: New file.
14274
f699aaba
PA
142752013-09-05 Pedro Alves <palves@redhat.com>
14276
14277 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14278 Move ...
72f4393d 14279 * ax.h: ... here.
f699aaba 14280
c144c7a0
PA
142812013-09-05 Pedro Alves <palves@redhat.com>
14282
14283 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14284 tracepoint.h.
14285 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14286 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14287 (handle_tracepoint_general_set, handle_tracepoint_query)
14288 (tracepoint_finished_step, tracepoint_was_hit)
14289 (release_while_stepping_state_list, current_traceframe)
14290 (in_readonly_region, traceframe_read_mem)
14291 (fetch_traceframe_registers, traceframe_read_sdata)
14292 (traceframe_read_info, struct fast_tpoint_collect_status)
14293 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14294 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14295 (supply_fast_tracepoint_registers)
14296 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14297 (ipa_tdesc, claim_trampoline_space)
14298 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14299 (agent_mem_read, agent_get_trace_state_variable_value)
14300 (agent_set_trace_state_variable_value, agent_tsv_read)
14301 (agent_mem_read_string, get_raw_reg_func_addr)
14302 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14303 * tracepoint.h: ... this new file.
14304
ff42e6ab
PA
143052013-09-05 Pedro Alves <palves@redhat.com>
14306
14307 * server.h (perror_with_name, error, fatal, warning, paddress)
14308 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14309 include it.
14310 * utils.h: New file.
14311
541af0f4
PA
143122013-09-05 Pedro Alves <palves@redhat.com>
14313
14314 * server.h (remote_debug, noack_mode, transport_is_reliable)
14315 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14316 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14317 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14318 (write_enn, initialize_async_io, enable_async_io)
14319 (disable_async_io, check_remote_input_interrupt_request)
14320 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14321 (dead_thread_notify, prepare_resume_reply)
14322 (decode_address_to_semicolon, decode_address, decode_m_packet)
14323 (decode_M_packet, decode_X_packet, decode_xfer_write)
14324 (decode_search_memory_packet, unhexify, hexify)
14325 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14326 (look_up_one_symbol, relocate_instruction)
14327 (monitor_output): Move to remote-utils.h, and include it.
14328 * remote-utils.h: New file.
14329
eebdf26b
PA
143302013-09-05 Pedro Alves <palves@redhat.com>
14331
14332 * server.h (_): Delete.
14333
3aafd2ff
PA
143342013-09-02 Pedro Alves <palves@redhat.com>
14335
14336 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14337 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14338 allocated.
14339 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14340
cee83bcb
PM
143412013-09-02 Pierre Muller <muller@sourceware.org>
14342
14343 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14344 or WriteProcessMemory complete successfully and handle
14345 ERROR_PARTIAL_COPY error.
14346
9a13b2fa
PA
143472013-09-02 Pedro Alves <palves@redhat.com>
14348
14349 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14350 error instead of EIO.
14351
602e3198
JK
143522013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14353
14354 PR server/15604
14355 * linux-low.c: Include filestuff.h.
14356 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14357 * lynx-low.c: Include filestuff.h.
14358 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14359 * server.c: Include filestuff.h.
14360 (main): Call notice_open_fds.
14361 * spu-low.c: Include filestuff.h.
14362 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14363
96d7229d
LM
143642013-08-22 Luis Machado <lgustavo@codesourcery.com>
14365
14366 * Makefile.in: Explain why ../target and ../nat are not
14367 listed as include file search paths.
14368 (linux-waitpid.o): New object file rule.
14369 * configure.srv (srv_native_linux_obj): New variable.
14370 Replace all occurrences of linux native object files with
14371 $srv_native_linux_obj.
14372 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14373 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14374 (linux_enable_event_reporting): Remove declaration.
14375 (my_waitpid): Moved to common/linux-waitpid.c.
14376 (linux_wait_for_event): Pass ptid when calling
14377 linux_enable_event_reporting.
14378 (linux_supports_tracefork_flag): Remove.
14379 (linux_enable_event_reporting): Likewise.
14380 (linux_tracefork_grandchild): Remove.
14381 (STACK_SIZE): Moved to common/linux-ptrace.c.
14382 (linux_tracefork_child): Remove.
14383 (linux_test_for_tracefork): Remove.
14384 (linux_look_up_symbols): Call linux_supports_traceclone.
14385 (initialize_low): Remove call to linux_test_for_tracefork.
14386 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14387 common/linux-ptrace.h.
14388 (PTRACE_TYPE_ARG4): Likewise.
14389 Include linux-ptrace.h.
14390
32940073
PA
143912013-08-21 Pedro Alves <palves@redhat.com>
14392
14393 * config.in: Renegerate.
14394
33b60d58 143952013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14396
33b60d58
LM
14397 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14398 (SFILES): Remove $(srcdir)/common/target-common.c and
14399 add $(srcdir)/target/waitstatus.c.
14400 (OBS): Remove target-common.o and add waitstatus.o.
14401 (server_h): Remove $(srcdir)/../common/target-common.h and
14402 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14403 and $(srcdir)/../target/waitstatus.h.
14404 (target-common.o): Remove.
14405 (waitstatus.o): New target object file.
14406 * target.h: Do not include target-common.h and
14407 include target/resume.h, target/wait.h and
14408 target/waitstatus.h.
14409
b8e1b30e
LM
144102013-08-13 Luis Machado <lgustavo@codesourcery.com>
14411
14412 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14413 to PTRACE_TYPE_ARG3.
14414 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14415 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14416 PTRACE_TYPE_ARG4.
14417 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14418 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14419
7a60ad40
YQ
144202013-07-27 Jie Zhang <jie@codesourcery.com>
14421 Daniel Jacobowitz <dan@codesourcery.com>
14422 Yao Qi <yao@codesourcery.com>
14423
14424 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14425 (mips-linux-watch.o): New rule.
14426 (mips_linux_watch_h): New variable.
14427 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14428 srv_tgtobj.
14429 * linux-mips-low.c: Include mips-linux-watch.h.
14430 (struct arch_process_info, struct arch_lwp_info): New.
14431 (update_watch_registers_callback): New function.
14432 (mips_linux_new_process, mips_linux_new_thread) New functions.
14433 (mips_linux_prepare_to_resume, mips_insert_point): New
14434 functions.
14435 (mips_remove_point, mips_stopped_by_watchpoint): New
14436 functions.
14437 (rsp_bp_type_to_target_hw_bp_type): New function.
14438 (mips_stopped_data_address): New function.
14439 (the_low_target): Add watchpoint support functions.
14440
de6f69ad
YQ
144412013-07-27 Yao Qi <yao@codesourcery.com>
14442
14443 * i386-low.c: Include break-common.h.
14444 (enum target_hw_bp_type): Remove.
14445
3360c0bf
LM
144462013-07-24 Luis Machado <lgustavo@codesourcery.com>
14447
14448 * Makefile.in (SFILES): /common/target-common.c.
14449 (OBS): Add target-common.o.
14450 (server_h): Add $(srcdir)/../common/target-common.h.
14451 (target-common.o): New target.
14452 * server.c (queue_stop_reply_callback): Free
14453 status string after use.
14454 * target.c (target_waitstatus_to_string): Remove.
14455 * target.h: Include target-common.h.
14456 (resume_kind): Likewise.
14457 (target_waitkind): Likewise.
14458 (target_waitstatus): Likewise.
14459 (TARGET_WNOHANG): Likewise.
14460
bd885420
YQ
144612013-07-04 Yao Qi <yao@codesourcery.com>
14462
14463 * Makefile.in (host_alias): Use @host_noncanonical@.
14464 (target_alias): Use @target_noncanonical@.
14465 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14466 ACX_NONCANONICAL_HOST.
14467 * configure: Regenerated.
14468
14469 Revert:
14470 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14471
14472 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14473 * configure: Rebuild.
14474 * Makefile.in (version_host, version_target): Get from configure.
14475 (version.c): Use $(version_host) and $(version_target).
14476
17ef446e
PA
144772013-07-03 Pedro Alves <palves@redhat.com>
14478
14479 * Makefile.in (config.status): Depend on development.sh.
14480 * acinclude.m4: Include libmcheck.m4.
14481 * configure: Regenerate.
14482
7a9a7487
MG
144832013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14484
14485 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14486 attribute inside the parentheses.
14487 (winapi_DebugSetProcessKillOnExit): Ditto.
14488 (winapi_DebugBreakProcess): Ditto.
14489 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14490
49b64de6
MG
144912013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14492
14493 * notif.h (notif_event): Add a dummy member to avoid compiler
14494 errors.
14495
d5749ee7
PA
144962013-07-01 Pedro Alves <palves@redhat.com>
14497
14498 * hostio.c (HOSTIO_PATH_MAX): Define.
14499 (require_filename, handle_open, handle_unlink, handle_readlink):
14500 Use it.
14501
d8d2a3ee
PA
145022013-07-01 Pedro Alves <palves@redhat.com>
14503
14504 * server.h: Include "pathmax.h".
14505 * linux-low.c: Don't include sys/param.h.
14506 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14507 MAXPATHLEN.
14508 * win32-low.c: Don't include sys/param.h.
14509 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14510
bc7dea8d
PA
145112013-07-01 Pedro Alves <palves@redhat.com>
14512
14513 * event-loop.c: Don't check HAVE_UNISTD_H before including
14514 <unistd.h>.
14515 * gdbreplay.c: Likewise.
14516 * remote-utils.c: Likewise.
14517 * server.c: Likewise.
14518 * configure.ac: Don't check for unistd.h.
14519 * configure: Regenerate.
14520
d6c2da54
TT
145212013-06-28 Tom Tromey <tromey@redhat.com>
14522
14523 * Makefile.in (version.c): Use version.in, not
14524 common/version.in.
14525
257b6bec
MG
145262013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14527
14528 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14529 * configure: Rebuild.
14530 * Makefile.in (version_host, version_target): Get from configure.
14531 (version.c): Use $(version_host) and $(version_target).
14532
86ebe149
DK
145332013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14534
14535 Fix trace-status to output user name without trailing colon.
14536 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14537
f30aa5af
DK
145382013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14539
14540 Fix trace-status to output proper start-time and stop-time.
14541 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14542 output start time and stop time in hex as gdb expects.
14543
28a93511
YQ
145442013-06-26 Pedro Alves <pedro@codesourcery.com>
14545
14546 * tracepoint.c (build_traceframe_info_xml): Output trace state
14547 variables present in the trace buffer.
14548
01208463
TT
145492013-06-24 Tom Tromey <tromey@redhat.com>
14550
14551 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14552 create-version.sh.
14553 (version.o): Remove.
14554 * gdbreplay.c: Include version.h.
14555 (version, host_name): Don't declare.
14556 * server.h: Include version.h.
14557 (version, host_name): Don't declare.
14558
760256f9
PA
145592013-06-12 Pedro Alves <palves@redhat.com>
14560
14561 * linux-x86-low.c (linux_is_elf64): Delete global.
14562 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14563 with local linux_pid_exe_is_elf_64_file use.
14564
030031ee
PA
145652013-06-11 Pedro Alves <palves@redhat.com>
14566
14567 * linux-low.c (regset_disabled, disable_regset): New functions.
14568 (regsets_fetch_inferior_registers)
14569 (regsets_store_inferior_registers): Use them.
14570 (initialize_regsets_info); Don't allocate the disabled_regsets
14571 array here.
14572 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14573 comment.
14574
5da6eb0a
PA
145752013-06-11 Pedro Alves <palves@redhat.com>
14576
14577 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14578 xmalloc.
14579
7e5aaa09
PA
145802013-06-11 Pedro Alves <palves@redhat.com>
14581
14582 * linux-x86-low.c (initialize_low_arch): Call
14583 init_registers_x32_avx_linux.
14584
d878444c
JK
145852013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14586
14587 Fix compatibility with Android Bionic.
14588 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14589 it is not empty.
14590
3aee8918
PA
145912013-06-07 Pedro Alves <palves@redhat.com>
14592
5f2b57b5 14593 PR server/14823
3aee8918
PA
14594 * Makefile.in (OBS): Add tdesc.o.
14595 (IPA_OBJS): Add tdesc-ipa.o.
14596 (tdesc-ipa.o): New rule.
14597 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14598 interface.
14599 * linux-low.c (new_inferior): Delete.
14600 (disabled_regsets, num_regsets): Delete.
14601 (linux_add_process): Adjust to set the new per-process
14602 new_inferior flag.
14603 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14604 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14605 was a stop. When calling arch_setup, switch the current inferior
14606 to the thread that got an event.
14607 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14608 (regsets_fetch_inferior_registers)
14609 (regsets_store_inferior_registers): New regsets_info parameter.
14610 Adjust to use it.
14611 (linux_register_in_regsets): New regs_info parameter. Adjust to
14612 use it.
14613 (register_addr, fetch_register, store_register): New usrregs_info
14614 parameter. Adjust to use it.
14615 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14616 parameter regs_info. Adjust to use it.
14617 (linux_fetch_registers): Get the current inferior's regs_info, and
14618 adjust to use it.
14619 (linux_store_registers): Ditto.
14620 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14621 (initialize_low): Don't initialize the target_regsets here. Call
14622 initialize_low_arch.
14623 * linux-low.h (target_regsets): Delete declaration.
14624 (struct regsets_info): New.
14625 (struct usrregs_info): New.
14626 (struct regs_info): New.
14627 (struct process_info_private) <new_inferior>: New field.
14628 (struct linux_target_ops): Delete the num_regs, regmap, and
14629 regset_bitmap fields. New field regs_info.
14630 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14631 * i387-fp.c (num_xmm_registers): Delete.
14632 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14633 calls to new interface.
14634 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14635 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14636 Infer the number of xmm registers from the regcache's target
14637 description.
14638 * i387-fp.h (num_xmm_registers): Delete.
14639 * inferiors.c (add_thread): Don't install the thread's regcache
14640 here.
14641 * proc-service.c (gregset_info): Fetch the current inferior's
14642 regs_info. Adjust to use it.
14643 * regcache.c: Include tdesc.h.
14644 (register_bytes, reg_defs, num_registers)
14645 (gdbserver_expedite_regs): Delete.
14646 (get_thread_regcache): If the thread doesn't have a regcache yet,
14647 create one, instead of aborting gdbserver.
14648 (regcache_invalidate_one): Rename to ...
14649 (regcache_invalidate_thread): ... this.
14650 (regcache_invalidate_one): New.
14651 (regcache_invalidate): Only invalidate registers of the current
14652 process.
14653 (init_register_cache): Add target_desc parameter, and use it.
14654 (new_register_cache): Ditto. Assert the target description has a
14655 non zero registers_size.
14656 (regcache_cpy): Add assertions. Adjust.
14657 (realloc_register_cache, set_register_cache): Delete.
14658 (registers_to_string, registers_from_string): Adjust.
14659 (find_register_by_name, find_regno, find_register_by_number)
14660 (register_cache_size): Add target_desc parameter, and use it.
14661 (free_register_cache_thread, free_register_cache_thread_one)
14662 (regcache_release, register_cache_size): New.
14663 (register_size): Add target_desc parameter, and use it.
14664 (register_data, supply_register, supply_register_zeroed)
14665 (supply_regblock, supply_register_by_name, collect_register)
14666 (collect_register_as_string, collect_register_by_name): Adjust.
14667 * regcache.h (struct target_desc): Forward declare.
14668 (struct regcache) <tdesc>: New field.
14669 (init_register_cache, new_register_cache): Add target_desc
14670 parameter.
14671 (regcache_invalidate_thread): Declare.
14672 (regcache_invalidate_one): Delete declaration.
14673 (regcache_release): Declare.
14674 (find_register_by_number, register_cache_size, register_size)
14675 (find_regno): Add target_desc parameter.
14676 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14677 declarations.
14678 * remote-utils.c: Include tdesc.h.
14679 (outreg, prepare_resume_reply): Adjust.
14680 * server.c: Include tdesc.h.
14681 (gdbserver_xmltarget): Delete declaration.
14682 (get_features_xml, process_serial_event): Adjust.
14683 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14684 declare.
14685 (struct process_info) <tdesc>: New field.
14686 (ipa_tdesc): Declare.
14687 * tdesc.c: New file.
14688 * tdesc.h: New file.
14689 * tracepoint.c: Include tdesc.h.
14690 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14691 (get_context_regcache): Adjust to pass ipa_tdesc down.
14692 (do_action_at_tracepoint): Adjust to get the register cache size
14693 from the context regcache's description.
14694 (traceframe_walk_blocks): Adjust to get the register cache size
14695 from the current trace frame's description.
14696 (traceframe_get_pc): Adjust to get current trace frame's
14697 description and pass it down.
14698 (gdb_collect): Adjust to get the register cache size from the
14699 IPA's description.
14700 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14701 (gdbserver_xmltarget): Delete.
14702 (initialize_low_tracepoint): Set the ipa's target description.
14703 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14704 (initialize_low_tracepoint): Set the ipa's target description.
14705 * linux-x86-low.c: Include tdesc.h.
14706 [__x86_64__] (is_64bit_tdesc): New.
14707 (ps_get_thread_area, x86_get_thread_area): Use it.
14708 (i386_cannot_store_register): Rename to ...
14709 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14710 (i386_cannot_fetch_register): Rename to ...
14711 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14712 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14713 to new interface.
14714 (target_regsets): Rename to ...
14715 (x86_regsets): ... this.
14716 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14717 interface.
14718 (x86_siginfo_fixup): Use is_64bit_tdesc.
14719 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14720 (tdesc_x32_avx_linux, tdesc_x32_linux)
14721 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14722 Declare.
14723 (x86_linux_update_xmltarget): Delete.
14724 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14725 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14726 (AMD64_LINUX_USER64_CS): New.
14727 (x86_linux_read_description): New, based on
14728 x86_linux_update_xmltarget.
14729 (same_process_callback): New.
14730 (x86_arch_setup_process_callback): New.
14731 (x86_linux_update_xmltarget): New.
14732 (x86_regsets_info): New.
14733 (amd64_linux_regs_info): New.
14734 (i386_linux_usrregs_info): New.
14735 (i386_linux_regs_info): New.
14736 (x86_linux_regs_info): New.
14737 (x86_arch_setup): Reimplement.
14738 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14739 (x86_emit_ops): Ditto.
14740 (the_low_target): Adjust. Install x86_linux_regs_info,
14741 x86_cannot_fetch_register, and x86_cannot_store_register.
14742 (initialize_low_arch): New.
14743 * linux-ia64-low.c (tdesc_ia64): Declare.
14744 (ia64_fetch_register): Adjust.
14745 (ia64_usrregs_info, regs_info): New globals.
14746 (ia64_regs_info): New function.
14747 (the_low_target): Adjust.
14748 (initialize_low_arch): New function.
14749 * linux-sparc-low.c (tdesc_sparc64): Declare.
14750 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14751 Adjust.
14752 (sparc_arch_setup): New function.
14753 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14754 (the_low_target): Adjust.
14755 (initialize_low_arch): New function.
14756 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14757 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14758 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14759 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14760 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14761 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14762 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14763 (tdesc_powerpc_isa205_vsx64l): Declare.
14764 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14765 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14766 (ppc_set_pc, ppc_get_hwcap): Adjust.
14767 (ppc_usrregs_info): Forward declare.
14768 (!__powerpc64__) ppc_regmap_adjusted: New global.
14769 (ppc_arch_setup): Adjust to the current process'es target
14770 description.
14771 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14772 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14773 (ppc_store_evrregset): Adjust.
14774 (target_regsets): Rename to ...
14775 (ppc_regsets): ... this, and make static.
14776 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14777 (ppc_regs_info): New function.
14778 (the_low_target): Adjust.
14779 (initialize_low_arch): New function.
14780 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14781 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14782 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14783 (tdesc_s390x_linux64v2): Declare.
14784 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14785 (s390_fill_gregset, s390_store_last_break): Adjust.
14786 (target_regsets): Rename to ...
14787 (s390_regsets): ... this, and make static.
14788 (s390_get_pc, s390_set_pc): Adjust.
14789 (s390_get_hwcap): New target_desc parameter, and use it.
14790 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14791 (s390_arch_setup): Adjust to set the current process'es target
14792 description. Don't adjust the regmap.
14793 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14794 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14795 (regs_info_3264): New globals.
14796 (s390_regs_info): New function.
14797 (the_low_target): Adjust.
14798 (initialize_low_arch): New function.
14799 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14800 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14801 [__mips64] (init_registers_mips_linux)
14802 (init_registers_mips_dsp_linux): Delete defines.
14803 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14804 (have_dsp): New global.
14805 (mips_read_description): New, based on mips_arch_setup.
14806 (mips_arch_setup): Reimplement.
14807 (get_usrregs_info): New function.
14808 (mips_cannot_fetch_register, mips_cannot_store_register)
14809 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14810 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14811 (target_regsets): Rename to ...
14812 (mips_regsets): ... this, and make static.
14813 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14814 (dsp_regs_info, regs_info): New globals.
14815 (mips_regs_info): New function.
14816 (the_low_target): Adjust.
14817 (initialize_low_arch): New function.
14818 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14819 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14820 Declare.
14821 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14822 (arm_read_description): New, with bits factored from
14823 arm_arch_setup.
14824 (arm_arch_setup): Reimplement.
14825 (target_regsets): Rename to ...
14826 (arm_regsets): ... this, and make static.
14827 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14828 (arm_regs_info): New function.
14829 (the_low_target): Adjust.
14830 (initialize_low_arch): New function.
14831 * linux-m68k-low.c (tdesc_m68k): Declare.
14832 (target_regsets): Rename to ...
14833 (m68k_regsets): ... this, and make static.
14834 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14835 (m68k_regs_info): New function.
14836 (m68k_arch_setup): New function.
14837 (the_low_target): Adjust.
14838 (initialize_low_arch): New function.
14839 * linux-sh-low.c (tdesc_sharch): Declare.
14840 (target_regsets): Rename to ...
14841 (sh_regsets): ... this, and make static.
14842 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14843 (sh_regs_info, sh_arch_setup): New functions.
14844 (the_low_target): Adjust.
14845 (initialize_low_arch): New function.
14846 * linux-bfin-low.c (tdesc_bfin): Declare.
14847 (bfin_arch_setup): New function.
14848 (bfin_usrregs_info, regs_info): New globals.
14849 (bfin_regs_info): New function.
14850 (the_low_target): Adjust.
14851 (initialize_low_arch): New function.
14852 * linux-cris-low.c (tdesc_cris): Declare.
14853 (cris_arch_setup): New function.
14854 (cris_usrregs_info, regs_info): New globals.
14855 (cris_regs_info): New function.
14856 (the_low_target): Adjust.
14857 (initialize_low_arch): New function.
14858 * linux-cris-low.c (tdesc_crisv32): Declare.
14859 (cris_arch_setup): New function.
14860 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14861 (cris_regs_info): New function.
14862 (the_low_target): Adjust.
14863 (initialize_low_arch): New function.
14864 * linux-m32r-low.c (tdesc_m32r): Declare.
14865 (m32r_arch_setup): New function.
14866 (m32r_usrregs_info, regs_info): New globals.
14867 (m32r_regs_info): Adjust.
14868 (initialize_low_arch): New function.
14869 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14870 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14871 (tic6x_usrregs_info): Forward declare.
14872 (tic6x_read_description): New function, based on ...
14873 (tic6x_arch_setup): ... this. Reimplement.
14874 (target_regsets): Rename to ...
14875 (tic6x_regsets): ... this, and make static.
14876 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14877 (tic6x_regs_info): New function.
14878 (the_low_target): Adjust.
14879 (initialize_low_arch): New function.
14880 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14881 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14882 (target_regsets): Rename to ...
14883 (xtensa_regsets): ... this, and make static.
14884 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14885 globals.
14886 (xtensa_arch_setup, xtensa_regs_info): New functions.
14887 (the_low_target): Adjust.
14888 (initialize_low_arch): New function.
14889 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14890 (nios2_arch_setup): Set the current process'es tdesc.
14891 (target_regsets): Rename to ...
14892 (nios2_regsets): ... this.
14893 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14894 (nios2_regs_info): New function.
14895 (the_low_target): Adjust.
14896 (initialize_low_arch): New function.
a261b8f5
PA
14897 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14898 (aarch64_arch_setup): Set the current process'es tdesc.
14899 (target_regsets): Rename to ...
14900 (aarch64_regsets): ... this.
14901 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14902 (aarch64_regs_info): New function.
14903 (the_low_target): Adjust.
14904 (initialize_low_arch): New function.
3aee8918
PA
14905 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14906 globals.
14907 (target_regsets): Rename to ...
14908 (tile_regsets): ... this.
14909 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14910 (tile_regs_info): New function.
14911 (tile_arch_setup): Set the current process'es tdesc.
14912 (the_low_target): Adjust.
14913 (initialize_low_arch): New function.
14914 * spu-low.c (tdesc_spu): Declare.
14915 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14916 * win32-arm-low.c (tdesc_arm): Declare.
14917 (arm_arch_setup): New function.
14918 (the_low_target): Install arm_arch_setup instead of
14919 init_registers_arm.
14920 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14921 (init_windows_x86): Rename to ...
14922 (i386_arch_setup): ... this. Set `win32_tdesc'.
14923 (the_low_target): Adjust.
14924 * win32-low.c (win32_tdesc): New global.
14925 (child_add_thread): Don't create the thread cache here.
14926 (do_initial_child_stuff): Set the new process'es tdesc.
14927 * win32-low.h (struct target_desc): Forward declare.
14928 (win32_tdesc): Declare.
14929 * lynx-i386-low.c (tdesc_i386): Declare global.
14930 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14931 * lynx-low.c (lynx_tdesc): New global.
14932 (lynx_add_process): Set the new process'es tdesc.
14933 * lynx-low.h (struct target_desc): Forward declare.
14934 (lynx_tdesc): Declare global.
14935 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14936 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14937 * nto-low.c (nto_tdesc): New global.
14938 (do_attach): Set the new process'es tdesc.
14939 * nto-low.h (struct target_desc): Forward declare.
14940 (nto_tdesc): Declare.
14941 * nto-x86-low.c (tdesc_i386): Declare.
14942 (nto_x86_arch_setup): Set `nto_tdesc'.
14943
b1fbec62
GB
149442013-06-04 Gary Benson <gbenson@redhat.com>
14945
14946 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14947 to qSupported response when appropriate.
14948 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14949 with nonzero-length annex.
14950 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14951 arguments supplied in annex.
14952
d1ec4ce7
DE
149532013-05-31 Doug Evans <dje@google.com>
14954
ac44adcb 14955 PR server/15594
d1ec4ce7
DE
14956 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14957 64 bits in 64-cross-32 environment.
14958
9b25f2d3
PA
149592013-05-28 Pedro Alves <palves@redhat.com>
14960
14961 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14962 (aarch64-without-fpu.c): Delete rule.
14963 * configure.srv (aarch64*-*-linux*): Remove references to
14964 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14965 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14966 declaration.
14967
6740dc9c
PA
149682013-05-24 Pedro Alves <palves@redhat.com>
14969
14970 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14971 instead of strchr/decode_address. Error if the range isn't split
14972 with a ','. Don't assume there's be a ':' in the action.
14973
c2d6af84
PA
149742013-05-23 Yao Qi <yao@codesourcery.com>
14975 Pedro Alves <palves@redhat.com>
14976
14977 * linux-low.c (lwp_in_step_range): New function.
14978 (linux_wait_1): If the thread was range stepping and stopped
14979 outside the stepping range, report the stop to GDB. Otherwise,
14980 continue stepping. Add range stepping debug output.
14981 (linux_set_resume_request): Copy the step range from the resume
14982 request to the lwp.
14983 (linux_supports_range_stepping): New.
14984 (linux_target_ops) <supports_range_stepping>: Set to
14985 linux_supports_range_stepping.
14986 * linux-low.h (struct linux_target_ops)
14987 <supports_range_stepping>: New field.
14988 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14989 * linux-x86-low.c (x86_supports_range_stepping): New.
14990 (the_low_target) <supports_range_stepping>: Set to
14991 x86_supports_range_stepping.
14992 * server.c (handle_v_cont): Handle 'r' action.
14993 (handle_v_requests): Append ";r" if the target supports range
14994 stepping.
14995 * target.h (struct thread_resume) <step_range_start,
14996 step_range_end>: New fields.
14997 (struct target_ops) <supports_range_stepping>:
14998 New field.
14999 (target_supports_range_stepping): New macro.
15000
58794e1a
JB
150012013-05-17 Joel Brobecker <brobecker@adacore.com>
15002
15003 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
15004 confusion in comment.
15005
d631c5a7
JB
150062013-05-17 Joel Brobecker <brobecker@adacore.com>
15007
15008 * lynx-low.c (struct process_info_private): New type.
15009 (lynx_add_process): New function.
15010 (lynx_create_inferior, lynx_attach): Replace calls to
15011 add_process by calls to lynx_add_process.
15012 (lynx_resume): If PTID is null, then try using
15013 current_process()->private->last_wait_event_ptid.
15014 Add comments.
15015 (lynx_clear_inferiors): Delete. The contents of that function
15016 has been inlined in lynx_mourn;
15017 (lynx_wait_1): Save the ptid in the process's private data.
15018 (lynx_mourn): Free the process' private data. Replace call
15019 to lynx_clear_inferiors by call to clear_inferiors.
15020
96f7a20f
YQ
150212013-05-17 Yao Qi <yao@codesourcery.com>
15022
15023 * i386-low.c (i386_length_and_rw_bits): Move the comment to
15024 the right place.
15025
db0dfaa0
LM
150262013-05-16 Luis Machado <lgustavo@codesourcery.com>
15027
15028 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
15029 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
15030 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
15031 PT_TEXT_END_ADDR guards. Update comments.
15032 (linux_target_op) <read_offsets>: Conditionally define to
15033 linux_read_offsets if the target is UCLIBC and if it defines
15034 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
15035
68f5f838
SL
150362013-05-06 Sandra Loosemore <sandra@codesourcery.com>
15037 Andrew Jenner <andrew@codesourcery.com>
15038
15039 * Makefile.in (SFILES): Add linux-nios2-low.c.
15040 (clean): Add action to delete nios2-linux.c.
15041 (nios2-linux.c): New rule.
15042 * configure.srv: Add nios2*-*-linux*.
15043 * linux-nios2-low.c: New.
15044
1ebff1fd
HAQ
150452013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
15046
15047 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
15048
f6150862
HZ
150492013-04-25 Hui Zhu <hui@codesourcery.com>
15050
15051 PR gdb/15186
f6150862
HZ
15052 * ax.c (ax_printf): Add fflush.
15053
614c279d
TT
150542013-04-22 Tom Tromey <tromey@redhat.com>
15055
15056 * Makefile.in (SFILES): Add filestuff.c.
15057 (OBS): Add filestuff.o.
15058 (filestuff.o): New target.
15059 * config.in, configure: Rebuild.
15060 * configure.ac: Check for fdwalk, pipe2.
15061
7d4e5717
PA
150622013-04-17 Pedro Alves <palves@redhat.com>
15063
15064 * configure.ac (USE_THREAD_DB): Delete variable.
15065 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
15066 Don't AC_SUBST USE_THREAD_DB.
15067 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15068 * config.in, configure: Regenerate.
15069
d5c93e41
PA
150702013-04-16 Pedro Alves <palves@redhat.com>
15071
15072 * linux-low.h (struct lwp_info) <thread_known>: Move under
15073 the USE_THREAD_DB #ifdef.
15074
04f5fe89
PA
150752013-04-16 Pedro Alves <palves@redhat.com>
15076
15077 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15078 (linux-low.o): Delete rule.
15079 * linux-low.h: Always include "gdb_thread_db.h" instead of
15080 conditionally including thread_db.h.
15081 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15082 HAVE_THREAD_DB_H.
15083
480b27bf
JK
150842013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15085
15086 * Makefile.in (install-only): Fix make install regression.
15087
43662968
JK
150882013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15089
15090 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15091 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15092 installation.
15093 * gdbserver.1: Remove.
15094
3e74e146
PA
150952013-03-22 Pedro Alves <palves@redhat.com>
15096
15097 * linux-low.c (handle_extended_wait): Don't call
15098 linux_enable_event_reporting.
15099
a8347a2a
TT
151002013-03-15 Tony Theodore <tonyt@logyst.com>
15101
15102 PR build/9098:
15103 * Makefile.in (SHELL): Use @SHELL@.
15104
eeb56fa7
SDJ
151052013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15106
15107 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15108 compiler warning.
15109
4fa7e2ff
JB
151102013-03-13 Joel Brobecker <brobecker@adacore.com>
15111
15112 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15113 Remove extraneous NULL element.
15114
8ddb1965
YQ
151152013-03-13 Yao Qi <yao@codesourcery.com>
15116
15117 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15118 'V' block in trace frame.
15119
9accd112
MM
151202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15121
15122 * target.h (struct target_ops): Add btrace ops.
15123 (target_supports_btrace): New macro.
15124 (target_enable_btrace): New macro.
15125 (target_disable_btrace): New macro.
15126 (target_read_btrace): New macro.
15127 * gdbthread.h (struct thread_info): Add btrace field.
15128 * server.c: Include btrace-common.h.
15129 (handle_btrace_general_set): New function.
15130 (handle_btrace_enable): New function.
15131 (handle_btrace_disable): New function.
15132 (handle_general_set): Call handle_btrace_general_set.
15133 (handle_qxfer_btrace): New function.
15134 (struct qxfer qxfer_packets[]): Add btrace entry.
15135 * inferiors.c (remove_thread): Disable btrace.
15136 * linux-low: Include linux-btrace.h.
15137 (linux_low_enable_btrace): New function.
15138 (linux_low_read_btrace): New function.
15139 (linux_target_ops): Add btrace ops.
15140 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15141 Add srv_linux_btrace=yes.
15142 (x86_64-*-linux*): Add linux-btrace.o.
15143 Add srv_linux_btrace=yes.
15144 * configure.ac: Define HAVE_LINUX_BTRACE.
15145 * config.in: Regenerated.
15146 * configure: Regenerated.
15147
5cc22e4c
MM
151482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15149
15150 * server.c (handle_qxfer): Preserve error message if -3 is
15151 returned.
15152 (qxfer): Document the -3 return value.
15153
7c97f91e
MM
151542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15155
15156 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15157 (linux_btrace_h): New variable.
15158 (linux-btrace.o): New rule.
15159
be9a119c 151602013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
15161 Hafiz Abid Qadeer <abidh@codesourcery.com>
15162
15163 * tracepoint.c (trace_buffer_size): New global.
15164 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15165 (init_trace_buffer): Change to one-argument function. Allocate
15166 trace buffer memory.
15167 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15168 handle QTBuffer:size packet.
15169 (cmd_bigqtbuffer_size): New function.
15170 (initialize_tracepoint): Call init_trace_buffer with
15171 DEFAULT_TRACE_BUFFER_SIZE.
15172 * server.c (handle_query): Add QTBuffer:size in the
15173 supported packets.
15174
e64f7499
YQ
151752013-03-07 Yao Qi <yao@codesourcery.com>
15176
15177 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15178 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15179 of -1.
15180 (cmd_qtsp): Adjust condition. Do post increment.
15181 Set cur_action and cur_step_action back to 0.
15182
f0ae6fc3
PA
151832013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15184
15185 PR server/15236
15186 * linux-low.c (linux_write_memory): Return early success if LEN is
15187 zero.
15188
b5b0b0af
CV
151892013-03-05 Corinna Vinschen <vinschen@redhat.de>
15190
334ad4a8 15191 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 15192
589bc927
TT
151932013-02-28 Tom Tromey <tromey@redhat.com>
15194
15195 * configure.ac: Invoke AC_SYS_LARGEFILE.
15196 * configure, config.in: Rebuild.
15197
dfe07582
CV
151982013-02-28 Corinna Vinschen <vinschen@redhat.com>
15199
15200 * win32-low.c: Throughout, fix format strings and casts of
15201 printf-like functions to avoid type related warnings on all
15202 platforms.
15203 (get_child_debug_event): Print dwDebugEventCode as hex since
15204 that's how it's usually documented.
15205
736cd585
YQ
152062013-02-28 Yao Qi <yao@codesourcery.com>
15207
15208 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15209 pulongest.
15210
e1f58301
JW
152112013-02-27 Jiong Wang <jiwang@tilera.com>
15212
15213 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15214 (reg-tilegx32.c): New rule.
15215 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15216 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15217 different register info initializer according to elf class.
15218 (init_registers_tilgx32): New function. The tilegx32 register info
15219 initializer.
15220 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15221 (tile_store_gregset): Likewise.
15222
d171ca78
YQ
152232013-02-27 Yao Qi <yao@codesourcery.com>
15224
15225 * server.c (process_point_options): Print debug message when
15226 debug_threads is true.
15227
282bbdf3
YQ
152282013-02-26 Yao Qi <yao@codesourcery.com>
15229
15230 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15231
aca22551
PA
152322013-02-19 Pedro Alves <palves@redhat.com>
15233 Kai Tietz <ktietz@redhat.com>
15234
15235 PR gdb/15161
15236
15237 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15238 instead of strtoul to extract address from packet.
15239 (process_serial_event) <'z'>: Likewise.
15240
4f3cee1c
YQ
152412013-02-18 Yao Qi <yao@codesourcery.com>
15242
15243 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15244
8e1d55a3
PA
152452013-02-14 Pedro Alves <palves@redhat.com>
15246
15247 Plug memory leak.
15248
15249 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15250 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15251
458820da
PA
152522013-02-14 Pedro Alves <palves@redhat.com>
15253
15254 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15255
baea0dae
PA
152562013-02-14 Pedro Alves <palves@redhat.com>
15257
15258 * tracepoint.c (save_string): Delete.
15259 (add_tracepoint_action): Use savestring instead of save_string.
15260
0b1afbb3
PA
152612013-02-12 Pedro Alves <palves@redhat.com>
15262
15263 * linux-xtensa-low.c: Ditto.
15264 * xtensa-xtregs.c: Ditto.
15265
8a4ac37e
PA
152662013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15267
15268 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15269 thread_db.
15270
148de6bb
MS
152712013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15272
15273 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15274 aarch64_num_wp_regs and aarch64_num_bp_regs to
15275 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15276
55fac6e0
MS
152772013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15278
15279 * linux-aarch64-low.c (ps_get_thread_area): Replace
15280 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15281
176eb98c
MS
152822013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15283 Marcus Shawcroft <marcus.shawcroft@arm.com>
15284 Nigel Stephens <nigel.stephens@arm.com>
15285 Yufeng Zhang <yufeng.zhang@arm.com>
15286
15287 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15288 (aarch64.c, aarch64-without-fpu.c): New targets.
15289 * configure.srv (aarch64*-*-linux*): New.
15290 * linux-aarch64-low.c: New file.
15291
56f7af9c
MS
152922013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15293
43aaf8b6 15294 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
15295 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15296 (dequeue_one_deferred_signal, linux_resume_one_thread)
15297 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15298 (linux_tracefork_grandchild, linux_test_for_tracefork)
15299 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15300 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15301 where the argument is 0.
15302
60f662b0
YQ
153032013-01-25 Yao Qi <yao@codesourcery.com>
15304
15305 * event-loop.c: Include "queue.h".
15306 (gdb_event_p): New typedef.
15307 (struct gdb_event) <next_event>: Remove.
15308 (event_queue): Change to QUEUE(gdb_event_p).
15309 (async_queue_event): Remove.
15310 (gdb_event_xfree): New.
15311 (initialize_event_loop): New.
15312 (process_event): Use API from QUEUE.
15313 (wait_for_event): Likewise.
15314 * server.c (main): Call initialize_event_loop.
15315 * server.h (initialize_event_loop): Declare.
15316
5ae4861a
YQ
153172013-01-18 Yao Qi <yao@codesourcery.com>
15318
15319 * ax.h (struct eval_agent_expr_context): New.
15320 (gdb_eval_agent_expr): Update declaration.
15321 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15322 TFRAME. Add new argument CTX.
15323 * server.h (struct eval_agent_expr_context): Declare.
15324 (agent_mem_read, agent_tsv_read): Update declaration.
15325 (agent_mem_read_string): Likewise.
15326 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15327 (add_traceframe_block): Add new argument TPOINT.
15328 Increase TPOINT->traceframe_usage.
15329 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15330 eval_tracepoint_agent_expr.
15331 (condition_true_at_tracepoint): Likewise.
15332 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15333 (agent_mem_read_string, agent_tsv_read): Likewise.
15334
85e00e85
YQ
153352013-01-16 Yao Qi <yao@codesourcery.com>
15336
15337 * linux-low.c (linux_resume_one_lwp): Don't check
15338 'lwp->bp_reinsert != 0'.
15339
4039cf45
JB
153402013-01-07 Joel Brobecker <brobecker@adacore.com>
15341 Pedro Alves <palves@redhat.com>
15342
15343 * lynx-low.c (ptrace_request_to_str): Define a temporary
15344 macro and use it to simplify this function's implementation.
15345
9044dee2
JB
153462013-01-07 Joel Brobecker <brobecker@adacore.com>
15347
15348 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15349 sets errno.
15350
e6352c8f
JB
153512013-01-07 Joel Brobecker <brobecker@adacore.com>
15352
15353 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15354
50681a27
JB
153552013-01-07 Joel Brobecker <brobecker@adacore.com>
15356
15357 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15358
3f6e77ef
JB
153592013-01-07 Joel Brobecker <brobecker@adacore.com>
15360
15361 * lynx-low.c (lynx_resume): Use the resume_info parameter
15362 to determine the ptid for the lynx_ptrace call, unless
15363 it is equal to minus_one_ptid, in which case we use the
15364 ptid of the current_inferior.
15365 (lynx_wait_1): After having received a thread create/exit
15366 event, resume the inferior's execution using the signaling
15367 thread's ptid, rather than the old ptid.
15368
7fda33ae
JB
153692013-01-07 Joel Brobecker <brobecker@adacore.com>
15370
15371 * lynx-low.c (lynx_resume): Delete variable ret.
15372
b9786c74
JB
153732013-01-01 Joel Brobecker <brobecker@adacore.com>
15374
15375 * gdbreplay.c (gdbreplay_version): Update copyright year.
15376 * server.c (gdbserver_version): Likewise.
15377
8b93d60f
JB
153782012-12-17 Joel Brobecker <brobecker@adacore.com>
15379
15380 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15381 new thread.
15382
037335a7
JB
153832012-12-17 Joel Brobecker <brobecker@adacore.com>
15384
15385 * lynx-low.c (ptrace_request_to_str): Add handling for
15386 PTRACE_GETTRACESIG.
15387
52d4cbd8
JB
153882012-12-17 Joel Brobecker <brobecker@adacore.com>
15389
15390 * lynx-low.c (lynx_attach): Delete variable new_process.
15391
ab8f6ca9
JB
153922012-12-17 Joel Brobecker <brobecker@adacore.com>
15393
15394 * lynx-low.c (lynx_create_inferior): Delete variable
15395 new_process.
15396
78cbc024
JB
153972012-12-17 Joel Brobecker <brobecker@adacore.com>
15398
15399 * lynx-low.c (ptrace_request_to_str): Do not handle
15400 PTRACE_GETTHREADLIST if this macro does not exist.
15401
14a00470
YQ
154022012-12-15 Yao Qi <yao@codesourcery.com>
15403
15404 * Makefile.in (OBS): Add notif.o.
15405 * notif.c, notif.h: New.
15406 * server.c: Include "notif.h".
15407 (struct vstop_notif) <next>: Remove.
15408 <base>: New field.
15409 (queue_stop_reply): Update.
15410 (push_event, send_next_stop_reply): Remove.
15411 (discard_queued_stop_replies): Update.
15412 (notif_stop): New variable.
15413 (handle_v_stopped): Remove.
15414 (handle_v_requests): Don't call handle_v_stopped. Call
15415 handle_ack_notif instead.
15416 (queue_stop_reply_callback): Call notif_event_enque instead
15417 of queue_stop_reply.
15418 (handle_status): Don't call send_next_stop_reply, call
15419 notif_write_event instead.
15420 (kill_inferior_callback): Likewise.
15421 (detach_or_kill_inferior_callback): Likewise.
15422 (main): Call initialize_notif.
15423 (process_serial_event): Call QUEUE_is_empty.
15424 (handle_target_event): Call notif_push instead of push event.
15425 * server.h (push_event): Remove declaration.
15426
61c125b9
TT
154272012-12-10 Tom Tromey <tromey@redhat.com>
15428
15429 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15430 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15431 macros.
15432 (.c.o): Rewrite.
15433 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15434 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15435 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15436 (amd64-linux-ipa.o, ax.o): Rewrite.
15437 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15438 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15439 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15440 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15441 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15442 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15443 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15444 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15445 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15446 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15447 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15448 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15449 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15450 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15451 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15452 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15453 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15454 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15455 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15456 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15457 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15458 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15459 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15460 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15461 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15462 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15463 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15464 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15465 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15466 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15467 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15468 (reg-tilegx.o): Remove.
15469 (all_object_files): New macro.
15470 Include .deps files.
15471 * aclocal.m4, configure: Rebuild.
15472 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15473 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15474 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15475
e90e9ad9
TT
154762012-12-05 Tom Tromey <tromey@redhat.com>
15477
15478 PR gdb/14917:
15479 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15480
02d403bf 154812012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15482
15483 * configure.ac: Check for linux/perf_event.h.
15484 * config.in: Regenerated.
15485 * configure: Regenerated.
15486
0270a750
PA
154872012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15488
15489 * hostio.c (handle_readlink): Decrease buffer size
15490 parameter passed to readlink by one byte.
15491
8c29b58e
YQ
154922012-11-26 Yao Qi <yao@codesourcery.com>
15493
15494 * configure.ac (build_warnings): Append '-Wempty-body'.
15495 * configure: Regenerated.
15496 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15497 body.
15498
8bdce1ff
PM
154992012-11-15 Pierre Muller <muller@sourceware.org>
15500
15501 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15502 * config.in: Regenerate.
15503 * configure: Regenerate.
15504 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15505 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15506 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15507 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15508 header.
15509 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15510 instead of <sys/wait.h> header.
15511 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15512
02d403bf 155132012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15514
15515 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15516 (various make rules): Remove -DGDBSERVER
15517
fbd5db48
YQ
155182012-11-09 Yao Qi <yao@codesourcery.com>
15519
15520 * spu-low.c (current_ptid): Move it to ..
15521 * gdbthread.h: ... here. New.
15522 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15523 * server.c (myresume, process_serial_event): Likewise.
15524 * thread-db.c (thread_db_find_new_threads): Likewise.
15525 * tracepoint.c (run_inferior_command): Likewise.
15526
b3dc46ff
AB
155272012-10-01 Andrew Burgess <aburgess@broadcom.com>
15528
15529 * server.c (handle_search_memory_1): Include access length in
15530 warning message.
15531
07c04788
HPN
155322012-09-05 Michael Brandt <michael.brandt@axis.com>
15533
15534 * linux-crisv32-low.c: Fix compile errors.
15535
918d227b
YQ
155362012-09-04 Yao Qi <yao@codesourcery.com>
15537
15538 * tracepoint.c (cmd_qtsv): Adjust debug message.
15539 Don't check CUR_TPOINT.
15540
18c1b81a
YQ
155412012-08-28 Yao Qi <yao@codesourcery.com>
15542
15543 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15544 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15545 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15546 Remove declarations of xmalloc, xreallloc, xstrdup and
15547 freeargv.
15548 * Makefile.in (libiberty_h): New.
15549 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15550 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15551
dc82f37b
YQ
155522012-08-23 Yao Qi <yao@codesourcery.com>
15553
15554 * server.h: Remove declaration of 'xsnprintf'.
15555
406b1477
KS
155562012-08-22 Keith Seitz <keiths@redhat.com>
15557
15558 * server.h: Include build-gnulib-gbserver/config.h.
15559 * gdbreplay.c: Likewise.
15560
e6712ff1
DE
155612012-08-08 Doug Evans <dje@google.com>
15562
15563 * Makefile.in (SFILES): Add gdb_vecs.c.
15564 (OBS): Add gdb_vecs.o.
15565 (gdb_vecs_h, host_defs_h): New variables.
15566 (thread-db.o): Add $(gdb_vecs_h) dependency.
15567 (gdb_vecs.o): New rule.
15568 * thread-db.c: #include "gdb_vecs.h".
15569 (thread_db_load_search): Use a vector to iterate over path elements.
15570 Handle text appearing after "$pdir".
15571
15572 * configure.ac: Add check for strstr.
15573 * config.in: Regenerate.
15574 * configure: Regenerate.
15575
7c3270ae
UW
155762012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15577
15578 * hostio.c (handle_pread): If pread fails, fall back to attempting
15579 lseek/read.
15580 (handle_pwrite): Likewise for pwrite.
15581
b62e2b27
UW
155822012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15583
15584 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15585 between unsupported TYPE and unimplementable ADDR/LEN combination.
15586 (arm_insert_point): Act on new return value.
15587
78a99e91
PA
155882012-07-31 Pedro Alves <palves@redhat.com>
15589
15590 * server.c (process_point_options): Only skip tokens if we find
15591 one that is unrecognized. Don't treat 'X' specially while
15592 skipping unrecognized tokens.
15593
fcf303ab
UW
155942012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15595
15596 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15597 to 4-byte-align HW breakpoint addresses for Thumb.
15598
7255706c
YQ
155992012-07-27 Yao Qi <yao@codesourcery.com>
15600
15601 PR remote/14161.
15602
15603 * server.h: Declare gdb_agent_about_to_close.
15604 * target.c (kill_inferior): Include "agent.h".
15605 New. Send command 'kill'.
15606 * target.h (kill_inferior): Removed macro.
15607 * tracepoint.c (gdb_agent_about_to_close): New.
15608 (gdb_agent_helper_thread): Handle command 'close'.
15609 Wait endlessly until the inferior stops.
15610 Install gdb_agent_remove_socket to atexit hook.
15611 (agent_socket_name): New static variable.
15612 (gdb_agent_socket_init): Replace local variable 'name' with
15613 'agent_socket_name'.
15614 (gdb_agent_remove_socket): New.
15615
5a3f286f
YQ
156162012-07-27 Yao Qi <yao@codesourcery.com>
15617
15618 * server.c (process_point_options): Stop at 'X' when parsing.
15619
961bd387
ME
156202012-07-19 Michael Eager <eager@eagercon.com>
15621
a261b8f5 15622 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15623 to hw_execute.
15624 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15625 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15626 hardware breakpoint.
15627
aa7c7447
JK
156282012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15629
15630 * gdbserver/linux-low.c (initialize_low): Call
15631 linux_ptrace_init_warnings.
15632
7f216e7c
DE
156332012-07-02 Doug Evans <dje@google.com>
15634
15635 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15636 pointer to int.
15637
d3ce09f5
SS
156382012-07-02 Stan Shebs <stan@codesourcery.com>
15639
15640 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15641 (ax.o): Add it to build rule.
15642 (ax-ipa.o): Ditto.
15643 (OBS): Add format.o.
15644 (IPA_OBS): Add format.o.
15645 * server.c (handle_query): Claim support for breakpoint commands.
15646 (process_point_options): Add command case.
15647 (process_serial_event): Leave running if there are printfs in
15648 effect.
15649 * mem-break.h (any_persistent_commands): Declare.
15650 (add_breakpoint_commands): Declare.
15651 (gdb_no_commands_at_breakpoint): Declare.
15652 (run_breakpoint_commands): Declare.
15653 * mem-break.c (struct point_command_list): New struct.
15654 (struct breakpoint): New field command_list.
15655 (any_persistent_commands): New function.
15656 (add_commands_to_breakpoint): New function.
15657 (add_breakpoint_commands): New function.
15658 (gdb_no_commands_at_breakpoint): New function.
15659 (run_breakpoint_commands): New function.
15660 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15661 locally.
15662 * ax.c: Include format.h.
15663 (ax_printf): New function.
15664 (gdb_eval_agent_expr): Add printf opcode.
15665
2f8f6aed
YQ
156662012-06-13 Yao Qi <yao@codesourcery.com>
15667
15668 * server.c (start_inferior): Remove duplicated writes to fields
15669 'last_resume_kind' and 'last_status' of 'current_inferior'.
15670
0c9070b3
YQ
156712012-06-12 Yao Qi <yao@codesourcery.com>
15672 Pedro Alves <palves@redhat.com>
15673
15674 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15675 comment.
15676 * server.c (handle_v_cont): Extend comment.
15677
c52daf70
YQ
156782012-06-11 Yao Qi <yao@codesourcery.com>
15679
15680 * linux-low.c (linux_attach): Add 'static'.
15681
d38bbb0a
YQ
156822012-06-06 Yao Qi <yao@codesourcery.com>
15683
15684 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15685
89dc0afd
JK
156862012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15687
15688 Fix gcc -flto compilation warning.
15689 * server.c (main): Make variable multi_mode and attach volatile.
15690
75f62ce7
TJB
156912012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15692
15693 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15694 if the platform doesn't know about it.
15695
65f479b6
PA
156962012-05-30 Jeff Kenton <jkenton@tilera.com>
15697
15698 * Makefile.in (SFILES): Add linux-tile-low.c.
15699 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15700 * configure.srv: Handle tilegx-*-linux*.
15701 * linux-tile-low.c: New file.
15702
0c5bf5a9
JK
157032012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15704
15705 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15706
a493e3e2
PA
157072012-05-24 Pedro Alves <palves@redhat.com>
15708
15709 PR gdb/7205
15710
43aaf8b6 15711 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15712
2ea28649
PA
157132012-05-24 Pedro Alves <palves@redhat.com>
15714
15715 PR gdb/7205
15716
15717 Replace target_signal with gdb_signal throughout.
15718
8d409d16
MR
157192012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15720
15721 * linux-low.c (linux_store_registers): Avoid the copying sequence
15722 when no data has been retrieved by ptrace.
15723
23512c01
MGD
157242012-05-22 Will Deacon <will.deacon@arm.com>
15725
15726 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15727 Include asm/ptrace.h.
15728 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15729 already defined.
15730
4934b29e
MR
157312012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15732
15733 * linux-low.c (linux_store_registers): Don't re-retrieve data
15734 with ptrace that has already been obtained from /proc. Always
15735 copy any data retrieved with ptrace to the buffer supplied.
15736
bde24c0a
PA
157372012-05-11 Yao Qi <yao@codesourcery.com>
15738 Pedro Alves <palves@redhat.com>
15739
15740 * linux-low.c (enum stopping_threads_kind): New.
15741 (stopping_threads): Change type to `enum stopping_threads_kind'.
15742 (handle_extended_wait): If stopping and suspending threads, leave
15743 the new_lwp suspended too.
15744 (linux_wait_for_event): Adjust.
15745 (stop_all_lwps): Set `stopping_threads' to
15746 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15747 whether we're suspending threads or just stopping them. Assert no
15748 recursion happens.
15749
623b6bdf
YQ
157502012-04-29 Yao Qi <yao@codesourcery.com>
15751
15752 * server.h: Move some code to ...
15753 * gdbthread.h: ... here. New.
15754 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15755 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15756 (nto-low.o, win32-low.o): Likewise.
15757 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15758 * regcache.c, remote-utils.c, server.c: Likewise.
15759 * target.c, tracepoint.c, win32-low.c: Likewise.
15760
f15f9948
TJB
157612012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15762
15763 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15764 (PTRACE_ARG4_TYPE): Likewise.
15765 (PTRACE_XFER_TYPE): Likewise.
15766 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15767 ptrace to PTRACE_ARG3_TYPE.
15768 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15769 (PTRACE_ARG4_TYPE): Likewise.
15770 (PTRACE_XFER_TYPE): Likewise.
15771 (linux_detach_one_lwp): Cast fourth argument of
15772 ptrace to long then PTRACE_ARG4_TYPE.
15773 (regsets_fetch_inferior_registers): Cast third argument of
15774 ptrace to long then PTRACE_ARG3_TYPE.
15775 (regsets_store_inferior_registers): Likewise.
15776
38ea300a
PA
157772012-04-20 Pedro Alves <palves@redhat.com>
15778
15779 * configure: Regenerate.
15780
c971b7fa
PA
157812012-04-19 Pedro Alves <palves@redhat.com>
15782
43aaf8b6 15783 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15784 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15785 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15786 (all, install-only, uninstall, clean-info, all-lib, clean): No
15787 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15788 (maintainer-clean realclean distclean): Use subdir_do.
15789 (subdir_do): New.
15790 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15791 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15792 * acinclude.m4: Include acx_configure_dir.m4.
15793 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15794 calls. Call AC_PROG_RANLIB. Configure gnulib using
15795 ACX_CONFIGURE_DIR.
15796 (GNULIB): New.
15797 (GNULIB_STDINT_H): Adjust.
15798 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15799 * gdbreplay.c: Include build-gnulib/config.h.
15800 * server.h: Likewise.
15801 * aclocal.m4: Regenerate.
15802 * config.in: Regenerate.
15803 * configure: Regenerate.
c971b7fa 15804
809277f8
PA
158052012-04-19 Pedro Alves <palves@redhat.com>
15806
15807 * Makefile.in (LIBGNU, INCGNU): Adjust.
15808 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15809 (all, install-only, uninstall, clean-info, all-lib, clean)
15810 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15811 * configure.ac: Adjust AC_OUTPUT output.
15812 * aclocal.m4: Regenerate.
15813 * configure: Regenerate.
15814
fd9bb8b8
PA
158152012-04-19 Pedro Alves <palves@redhat.com>
15816
15817 * Makefile.in (generated_files): New.
15818 (server_h): Remove the explicit dependency on config.h, and depend
15819 on $generated_files.
15820
1c298c66
PA
158212012-04-19 Pedro Alves <palves@redhat.com>
15822
15823 * Makefile.in (INCGNU): Add -Ignulib.
15824
57c4b50b
PA
158252012-04-19 Pedro Alves <palves@redhat.com>
15826
15827 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15828 (INCGNU): ... this, and spell out -I here.
15829 (GNULIB_LIB): Rename to ...
15830 (LIBGNU): ... this.
15831 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15832
1030e047
PA
158332012-04-19 Pedro Alves <palves@redhat.com>
15834
15835 * config.in: Regenerate.
15836
447d4319
PA
158372012-04-19 Pedro Alves <palves@redhat.com>
15838
15839 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15840 * server.h (memmem): Remove declaration.
15841 * config.in: Regenerate.
15842 * configure: Regenerate.
15843
aad9eab9
YQ
158442012-04-19 Yao Qi <yao@codesourcery.com>
15845
15846 * Makefile.in (SFILES): Add common/vec.c.
15847 (OBS): Add vec.o.
15848 (vec.o): New rule.
15849
3e10640f
YQ
158502012-04-19 Yao Qi <yao@codesourcery.com>
15851
15852 * remote-utils.c (prepare_resume_reply): Replace with macro
15853 target_core_of_thread.
15854 * server.c (handle_qxfer_threads_proper): Likewise.
15855 * target.h (traget_core_of_thread): New macro.
15856
71622373
PA
158572012-04-18 Pedro Alves <palves@redhat.com>
15858
15859 * aclocal.m4: Regenerate.
15860 * configure: Regenerate.
15861
80d26939
YQ
158622012-04-16 Yao Qi <yao@codesourcery.com>
15863
15864 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15865 duplicated on address.
15866
42476b70
YQ
158672012-04-16 Yao Qi <yao@codesourcery.com>
15868
15869 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15870 (struct tracepoint_action_ops) <send>: New field.
15871 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15872 (agent_expr_send, x_tracepoint_action_send): New.
15873 (l_tracepoint_action_send): New.
15874 (cmd_qtdp): Download and install tracepoint
15875 according to `use_agent'.
15876 (run_inferior_command): Add one more parameter `len'.
15877 Update callers.
15878 (tracepoint_send_agent): New.
15879 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15880
7bc83639
YQ
158812012-04-16 Yao Qi <yao@codesourcery.com>
15882
15883 * tracepoint.c (download_tracepoints): Moved to ...
15884 (cmd_qtstart): ... here.
15885
5f18041e
YQ
158862012-04-14 Yao Qi <yao@codesourcery.com>
15887
15888 * tracepoint.c: Include inttypes.h.
15889 (struct collect_memory_action): Use sized types.
15890 (struct tracepoint): Likewise.
15891 (cmd_qtdp, stop_tracing): Update print specifiers.
15892 (cmd_qtp, response_tracepoint): Likewise.
15893 (collect_data_at_tracepoint): Likewise.
15894 (collect_data_at_step): Likewise.
15895
55a8c076
YQ
158962012-04-14 Yao Qi <yao@codesourcery.com>
15897
15898 Import gnulib module inttypes.
15899 * aclocal.m4, config.in, configure: Regenerated.
15900
dc750257
YQ
159012012-04-14 Yao Qi <yao@codesourcery.com>
15902
15903 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15904 Makefile and config.status at last.
15905
0ab5faf9
YQ
159062012-04-13 Yao Qi <yao@codesourcery.com>
15907
15908 * tracepoint.c: Include stdint.h unconditionally.
15909
18f5fd81
TJB
159102012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15911
15912 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15913 on BFD_HAVE_SYS_PROCFS_TYPE.
15914 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15915 * configure: Regenerate.
15916 * config.in: Likewise.
15917
4d47af5c
L
159182012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15919
15920 * Makefile.in (clean): Also remove x32.c x32-linux.c
15921 x32-avx.c x32-avx-linux.c.
15922 (x32.o): New target.
15923 (x32.c): Likewise.
15924 (x32-linux.o): Likewise.
15925 (x32-linux.c): Likewise.
15926 (x32-avx.o): Likewise.
15927 (x32-avx.c): Likewise.
15928 (x32-avx-linux.o): Likewise.
15929 (x32-avx-linux.c): Likewise.
15930
15931 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15932 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15933 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15934 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15935 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15936 i386/x32-avx-linux.xml.
15937
15938 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15939 (init_registers_x32_avx_linux): Likwise.
15940 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15941 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15942
ecedbe58
PA
159432012-04-13 Pedro Alves <palves@redhat.com>
15944
15945 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15946 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15947 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15948 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15949 the sub-make.
15950
c92b5177
L
159512012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15952
15953 * linux-x86-low.c (compat_x32_clock_t): New.
15954 (compat_x32_siginfo_t): Likewise.
15955 (compat_x32_siginfo_from_siginfo): Likewise.
15956 (siginfo_from_compat_x32_siginfo): Likewise.
15957 (linux_is_elf64): Likewise.
15958 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15959 and siginfo_from_compat_x32_siginfo for x32.
15960 (x86_arch_setup): Set linux_is_elf64.
15961
214d508e
L
159622012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15963
15964 PR gdb/13969
15965 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15966 e_machine field.
15967 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15968 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15969 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15970 compatible with process.
15971
c9a1864a
YQ
159722012-04-12 Yao Qi <yao@codesourcery.com>
15973
15974 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15975 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15976 (install-only, install-info, clean): Handle sub dir gnulib.
15977 (all-lib, am--refresh): New targets.
15978 (memmem.o): Remove target.
15979 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15980 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15981 (AC_REPLACE_FUNCS): Remove memmem.
15982 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15983 (AC_OUTPUT): Generate Makefile in gnulib/.
15984 * aclocal.m4, config.in, configure: Regenerated.
15985
367ba2c2
MR
159862012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15987
15988 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15989
9d236627
PA
159902012-04-05 Pedro Alves <palves@redhat.com>
15991
15992 -Werror=strict-aliasing
15993
15994 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15995 pointer.
15996
111217b3
PA
159972012-04-04 Pedro Alves <palves@redhat.com>
15998
15999 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16000 (sparc_store_gregset_from_stack, sparc_store_gregset)
16001 (sparc_breakpoint_at): Fix formatting.
16002
8365dcf5
TJB
160032012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
16004
16005 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
16006 are available.
16007 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
16008 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
16009 * config.in: Regenerate.
16010 * configure: Likewise.
16011
689cc2ae
PA
160122012-03-29 Pedro Alves <palves@redhat.com>
16013
16014 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
16015 Correct ptrace arguments.
16016
c14dfd32
PA
160172012-03-28 Pedro Alves <palves@redhat.com>
16018
16019 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
16020 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
16021 (IA64_FR1_REGNUM): New defines.
16022 (ia64_fetch_register): New.
16023 (the_low_target): Install it.
16024 * linux-low.h (struct linux_target_ops) <fetch_register>: New
16025 field.
16026 * linux-low.c (linux_fetch_registers): Try the
16027 the_low_target.fetch_register hook first.
16028
16029 * linux-arm-low.c (the_low_target): Adjust.
16030 * linux-bfin-low.c (the_low_target): Adjust.
16031 * linux-cris-low.c (the_low_target): Adjust.
16032 * linux-crisv32-low.c (the_low_target): Adjust.
16033 * linux-m32r-low.c (the_low_target): Adjust.
16034 * linux-m68k-low.c (the_low_target): Adjust.
16035 * linux-mips-low.c (the_low_target): Adjust.
16036 * linux-ppc-low.c (the_low_target): Adjust.
16037 * linux-s390-low.c (the_low_target): Adjust.
16038 * linux-sh-low.c (the_low_target): Adjust.
16039 * linux-sparc-low.c (the_low_target): Adjust.
16040 * linux-tic6x-low.c (the_low_target): Adjust.
16041 * linux-x86-low.c (the_low_target): Adjust.
16042 * linux-xtensa-low.c (the_low_target): Adjust.
16043
63c88e13
PA
160442012-03-26 Pedro Alves <palves@redhat.com>
16045
16046 * server.c (handle_qxfer_libraries): Don't bail early if
16047 the_target->qxfer_libraries_svr4 is not NULL.
16048
fb723180
PA
160492012-03-26 Pedro Alves <palves@redhat.com>
16050
16051 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
16052
0afae3cf
PA
160532012-03-23 Pedro Alves <palves@redhat.com>
16054
16055 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
16056 "library-list-svr4" element's start tag when the the DSO list is
16057 empty.
16058
485f1ee4
PA
160592012-03-23 Pedro Alves <palves@redhat.com>
16060
16061 * linux-low.c (read_one_ptr): Read the inferior's pointer through
16062 a variable whose type size is the same as the inferior's pointer
16063 size.
16064
a5362b9a
TS
160652012-03-21 Thomas Schwinge <thomas@codesourcery.com>
16066
16067 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16068 struct siginfo.
16069 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16070 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16071 * linux-low.h: Include <signal.h>.
16072 (struct siginfo): Remove forward declaration.
16073 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16074 struct siginfo.
16075
d226c142
MF
160762012-03-21 Mike Frysinger <vapier@gentoo.org>
16077
16078 * .gitignore: Ignore more files.
16079
122f36ef
PA
160802012-03-19 Pedro Alves <palves@redhat.com>
16081 Jan Kratochvil <jan.kratochvil@redhat.com>
16082
16083 * server.c (cont_thread, general_thread): Add describing comments.
16084 (start_inferior): Clear `cont_thread'.
16085 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16086 of a process.
16087
fc3e5175
YQ
160882012-03-15 Yao Qi <yao@codesourcery.com>
16089
16090 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16091 handling to ...
16092 (cmd_qtdp): ... here.
16093
8d0d92cd
YQ
160942012-03-15 Yao Qi <yao@codesourcery.com>
16095
16096 * tracepoint.c (struct tracepoint_action_ops): New.
16097 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16098 (m_tracepoint_action_download): New.
16099 (r_tracepoint_action_download): New.
16100 (x_tracepoint_action_download): New.
16101 (l_tracepoint_action_download): New.
16102 (add_tracepoint_action): Install `action->ops' according type.
16103 (download_tracepoint_1): Move code `download' function pointer
16104 of various tracepoint_action_ops.
16105
87b0bb13
JK
161062012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16107
16108 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16109 linux_ptrace_attach_warnings.
16110
5f572dec
JK
161112012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16112
16113 * Makefile.in (linux-ptrace.o): New.
16114 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16115 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16116 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16117 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16118 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16119 of these targets.
16120 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16121
f4647387
YQ
161222012-03-08 Yao Qi <yao@codesourcery.com>
16123 Pedro Alves <palves@redhat.com>
16124
16125 Fix PR server/13392.
16126 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16127 offset of JMP insn.
16128 * tracepoint.c (remove_tracepoint): New.
16129 (cmd_qtdp): Call remove_tracepoint when failed to install.
16130
9b224c5e
PA
161312012-03-07 Pedro Alves <palves@redhat.com>
16132
16133 * linux-low.c (get_detach_signal): New.
16134 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16135 Pass on pending signals to PTRACE_DETACH. Check the result of the
16136 ptrace call.
16137 * server.c (program_signals, program_signals_p): New.
16138 (handle_general_set): Handle QProgramSignals.
16139 * server.h (program_signals, program_signals_p): Declare.
16140
e237a7e2
JK
161412012-03-05 Pedro Alves <palves@redhat.com>
16142 Jan Kratochvil <jan.kratochvil@redhat.com>
16143
16144 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16145 New comment why.
16146
5808517f
YQ
161472012-03-03 Yao Qi <yao@codesourcery.com>
16148
16149 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16150 agent_look_up_symbols.
16151
58b4daa5
YQ
161522012-03-03 Yao Qi <yao@codesourcery.com>
16153
16154 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16155 (linux-x86-low.o): Likewise.
16156 * server.h: Remove in_process_agent_loaded.
16157 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16158 common/agent.c.
16159 Update callers.
16160
8ffcbaaf
YQ
161612012-03-03 Yao Qi <yao@codesourcery.com>
16162
16163 * tracepoint.c (gdb_agent_capability): New global.
16164 (in_process_agent_loaded_ust): Renamed to
16165 `in_process_agent_supports_ust'.
16166 Update callers.
16167 (in_process_agent_supports_ust): Call agent_capability_check.
16168 (clear_installed_tracepoints): Assert that agent supports
16169 agent.
16170
d1feda86
YQ
161712012-03-03 Yao Qi <yao@codesourcery.com>
16172
16173 * linux-low.c (linux_supports_agent): New.
16174 (linux_target_ops): Initialize field `supports_agent' with
16175 linux_supports_agent.
16176 * target.h (struct target_ops) <supports_agent>: New.
16177 (target_supports_agent): New macro.
16178 * server.c (handle_general_set): Handle packet 'QAgent'.
16179 (handle_query): Send `QAgent+'.
16180 * Makefile.in (server.o): Depends on agent.h.
16181
2fa291ac
YQ
161822012-03-03 Yao Qi <yao@codesourcery.com>
16183
16184 * Makefile.in (OBS): Add agent.o.
16185 Add new rule for agent.o.
16186 Track dependence of tracepoint.c on agent.h.
16187 * tracepoint.c (run_inferior_command_1):
16188 (run_inferior_command): Call agent_run_command.
16189 (gdb_ust_connect_sync_socket): Deleted. Move it to
16190 common/agent.c.
16191 (resume_thread, stop_thread): Likewise.
16192 (gdb_ust_socket_init): Renamed to ...
16193 (gdb_agent_socket_init): ... New.
16194 (gdb_ust_thread): Renamed to ...
16195 (gdb_agent_helper_thread): ... New.
16196 (gdb_ust_init): Move some code to ...
16197 (gdb_agent_init): ... here. New.
16198 [HAVE_UST]: Call gdb_ust_init.
16199 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16200 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16201 * config.in, configure: Regenerated.
16202
05044653
PA
162032012-03-02 Pedro Alves <palves@redhat.com>
16204
16205 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16206 * linux-low.c (struct simple_pid_list): New.
16207 (stopped_pids): New a struct simple_pid_list pointer.
16208 (add_to_pid_list, pull_pid_from_list): New.
16209 (handle_extended_wait): Don't assume the first signal new children
16210 report is SIGSTOP. Adjust call to pull_pid_from_list.
16211 (linux_wait_for_lwp): Adjust.
16212
8d00225b
YQ
162132012-03-02 Yao Qi <yao@codesourcery.com>
16214
16215 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16216 debug log.
16217
19560ba5
YQ
162182012-03-02 Yao Qi <yao@codesourcery.com>
16219
16220 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16221 `stop_pc' and `tpoint'. Update caller.
16222
1faeff08
MR
162232012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16224
16225 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16226 * linux-low.c (use_linux_regsets): New macro.
16227 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16228 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16229 (linux_register_in_regsets): New function.
16230 (usr_fetch_inferior_registers): Skip registers covered by
16231 regsets.
16232 (usr_store_inferior_registers): Likewise.
16233 (usr_fetch_inferior_registers): New macro.
16234 (usr_store_inferior_registers): Likewise.
16235 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16236 (linux_store_registers): Likewise.
16237 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16238 prototype.
16239 (init_registers_mips64_dsp_linux): Likewise.
16240 (init_registers_mips_linux): New macro.
16241 (init_registers_mips_dsp_linux): Likewise.
16242 (mips_dsp_num_regs): Likewise.
16243 (DSP_BASE, DSP_CONTROL): New fallback macros.
16244 (mips_base_regs): New macro.
16245 (mips_regmap): Use it. Fix the size.
16246 (mips_dsp_regmap): New variable.
16247 (mips_dsp_regset_bitmap): Likewise.
16248 (mips_arch_setup): New function.
16249 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16250 than mips_regmap.
16251 (mips_cannot_store_register): Likewise.
16252 (the_low_target): Update .arch_setup, .num_regs and .regmap
16253 initializers. Add .regset_bitmap initializer.
16254 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16255 initializer.
16256 * linux-bfin-low.c (the_low_target): Likewise.
16257 * linux-cris-low.c (the_low_target): Likewise.
16258 * linux-crisv32-low.c (the_low_target): Likewise.
16259 * linux-ia64-low.c (the_low_target): Likewise.
16260 * linux-m32r-low.c (the_low_target): Likewise.
16261 * linux-m68k-low.c (the_low_target): Likewise.
16262 * linux-ppc-low.c (the_low_target): Likewise.
16263 * linux-s390-low.c (the_low_target): Likewise.
16264 * linux-sh-low.c (the_low_target): Likewise.
16265 * linux-sparc-low.c (the_low_target): Likewise.
16266 * linux-tic6x-low.c (the_low_target): Likewise.
16267 * linux-x86-low.c (the_low_target): Likewise.
16268 * linux-xtensa-low.c (the_low_target): Likewise.
16269 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16270 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16271 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16272 srv_xmlfiles.
16273 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16274 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16275
c03e6ccc
YQ
162762012-02-29 Yao Qi <yao@codesourcery.com>
16277 Pedro Alves <palves@redhat.com>
16278
16279 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16280 `step_over_finished' is true.
16281
644cebc9
PA
162822012-02-27 Pedro Alves <palves@redhat.com>
16283
16284 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16285 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16286
c14d7ab2
PA
162872012-02-27 Pedro Alves <palves@redhat.com>
16288
16289 PR server/9684
16290 * linux-low.c (pid_is_stopped): New.
16291 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16292
412c89dd
LM
162932012-02-25 Luis Machado <lgustavo@codesourcery.com>
16294
16295 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16296 of conditions.
16297
b745defe
MR
162982012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16299
16300 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16301
9f3a5c85
LM
163022012-02-24 Luis Machado <lgustavo@codesourcery>
16303
16304 * server.c (handle_query): Advertise support for target-side
16305 breakpoint condition evaluation.
16306 (process_point_options): New function.
16307 (process_serial_event): When inserting a breakpoint, check for
16308 a target-side condition that should be evaluated.
16309
16310 * mem-break.c: Include regcache.h and ax.h.
16311 (point_cond_list_t): New data structure.
16312 (breakpoint) <cond_list>: New field.
16313 (find_gdb_breakpoint_at): Make non-static.
16314 (delete_gdb_breakpoint_at): Clear any target-side
16315 conditions.
16316 (clear_gdb_breakpoint_conditions): New function.
16317 (add_condition_to_breakpoint): Likewise.
16318 (add_breakpoint_condition): Likewise.
16319 (gdb_condition_true_at_breakpoint): Likewise.
16320 (gdb_breakpoint_here): Return result directly instead
16321 of going through a local variable.
16322
16323 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16324 (clear_gdb_breakpoint_conditions): Likewise.
16325 (add_breakpoint_condition): Likewise.
16326 (gdb_condition_true_at_breakpoint): Likewise.
16327
16328 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16329 (need_step_over_p): Take target-side breakpoint condition into
16330 consideration.
16331
5e1dc496
LM
163322012-02-24 Luis Machado <lgustavo@codesourcery>
16333
16334 * server.h: Include tracepoint.h.
16335 (agent_mem_read, agent_get_trace_state_variable_value,
16336 agent_set_trace_state_variable_value,
16337 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16338 get_set_tsv_func_addr): New prototypes.
16339
16340 * ax.h: New include file.
16341 * ax.c: New source file.
16342
16343 * tracepoint.c: Include ax.h.
16344 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16345 agent_expr, eval_result_type): Move to ax.h.
16346 (parse_agent_expr): Rename to ...
16347 (gdb_parse_agent_expr): ... this, make it non-static and move
16348 to ax.h.
16349 (unparse_agent_expr) Rename to ...
16350 (gdb_unparse_agent_expr): ... this, make it non-static and move
16351 to ax.h.
16352 (eval_agent_expr): Rename to ...
16353 (eval_tracepoint_agent_expr): ... this.
16354 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16355 forward declarations.
16356 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16357 (agent_get_trace_state_variable_value): New function.
16358 (agent_set_trace_state_variable_value): New function.
16359 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16360 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16361 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16362 (condition_true_at_tracepoint): Likewise.
16363 (parse_agent_expr): Rename to ...
16364 (gdb_parse_agent_expr): ... this and move to ax.c.
16365 (unparse_agent_expr): Rename to ...
16366 (gdb_unparse_agent_expr): ... this and move to ax.c.
16367 (gdb_agent_op_name): Move to ax.c.
16368 (eval_agent_expr): Rename to ...
16369 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16370 and move to ax.c.
16371 (eval_tracepoint_agent_expr): New function.
16372 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16373 non-static.
5e1dc496
LM
16374 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16375 ax.c.
16376 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16377 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16378 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16379 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16380 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16381 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16382 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16383 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16384 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16385 (compile_bytecodes): Remove forward declaration.
16386 (is_goto_target): Move to ax.c.
16387 (compile_bytecodes): Move to ax.c and call
16388 agent_get_trace_state_variable_value (...) and
16389 agent_set_trace_state_variable_value (...).
16390
16391 * Makefile.in: Update ax.c and IPA dependencies.
16392
277e4e52
PA
163932012-02-24 Pedro Alves <palves@redhat.com>
16394
16395 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16396 (cmd_bigqtbuffer_circular): ... this. Only handle
16397 'QTBuffer:circular:'.
16398 (handle_tracepoint_general_set): Adjust.
16399
bf4c19f7
YQ
164002012-02-16 Yao Qi <yao@codesourcery.com>
16401
16402 * inferiors.c: Move code to ...
16403 * dll.c: .... here. New.
16404 * server.h: Declare clear_dlls.
16405 * Makefile.in (SFILES): Add dll.c.
16406 (OBS): Add dll.o
16407 (dll.o): New rule.
16408
d73f2619
YQ
164092012-02-11 Yao Qi <yao@codesourcery.com>
16410
16411 * server.c: (handle_monitor_command): Add a new parameter
16412 `own_buf'.
16413 (handle_query): Update caller.
16414
f8255c2a
JB
164152012-02-09 Joel Brobecker <brobecker@adacore.com>
16416
16417 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16418 * configure, config.in: Regenerate.
16419 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16420 is not defined.
16421
da84f473
PA
164222012-02-02 Pedro Alves <palves@redhat.com>
16423
16424 Try SIGKILL first, then PTRACE_KILL.
16425 * linux-low.c (linux_kill_one_lwp): New.
16426 (linux_kill_one_lwp): Rename to ...
16427 (kill_one_lwp_callback): ... this. Use the new
16428 linux_kill_one_lwp.
16429
e886a173
PA
164302012-02-02 Pedro Alves <palves@redhat.com>
16431
16432 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16433 inferior.
16434
be07f1a2
PA
164352012-01-27 Pedro Alves <palves@redhat.com>
16436
16437 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16438 (elf_64_file_p): Make static.
16439 (linux_pid_exe_is_elf_64_file): New.
16440 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16441 Delete declarations.
16442 (linux_pid_exe_is_elf_64_file): Declare.
16443 * linux-x86-low.c (x86_arch_setup): Use
16444 linux_pid_exe_is_elf_64_file.
16445
d8301ad1
JK
164462012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16447
16448 * linux-low.c (linux_wait_for_event_1): Rename to ...
16449 (linux_wait_for_event): ... here and merge it with former
16450 linux_wait_for_event - new variable wait_ptid, use it.
16451 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16452
01b17894
PA
164532012-01-23 Pedro Alves <palves@redhat.com>
16454
16455 * server.c (main): Avoid yet another case of infinite loop while
16456 detaching/killing after a longjmp.
16457
e825046f
JK
164582012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16459
16460 Code cleanup.
16461 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16462
b9e7b9c3
UW
164632012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16464
16465 * hostio.c (handle_readlink): New function.
16466 (handle_vFile): Call it to handle "vFile:readlink" packets.
16467
901f9912
UW
164682012-01-20 Pedro Alves <palves@redhat.com>
16469 Ulrich Weigand <ulrich.weigand@linaro.org>
16470
16471 * server.c (handle_v_requests): Only support vAttach and vRun to
16472 start multiple processes when in extended protocol mode.
16473
fc1ab1a0
PA
164742012-01-17 Pedro Alves <palves@redhat.com>
16475
16476 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16477 memalign plus mprotect to allocate the scratch buffer.
16478
7d5d4e98
PA
164792012-01-13 Pedro Alves <palves@redhat.com>
16480
16481 * server.c (attach_inferior): Clear `cont_thread'.
16482
f128d5e9
PA
164832012-01-13 Pedro Alves <palves@redhat.com>
16484
16485 * server.c (main): Avoid infinite loop while detaching/killing
16486 after a longjmp.
16487
06db92f0
DE
164882012-01-09 Doug Evans <dje@google.com>
16489
16490 * server.c (start_inferior): Set last_ptid in --wrapper case.
16491
32d92999
YQ
164922012-01-06 Yao Qi <yao@codesourcery.com>
16493
16494 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16495 defined.
16496 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16497
5e0a92a9
YQ
164982012-01-04 Yao Qi <yao@codesourcery.com>
16499
16500 * tracepoint.c (cmd_qtdp): Print debug message
16501 for static tracepoint.
16502
ae639e8c
YQ
165032012-01-04 Yao Qi <yao@codesourcery.com>
16504
16505 * tracepoint.c (trace_vdebug): Differentiate debug message
16506 between gdbserver and IPA.
16507
f72429c5
YQ
165082012-01-03 Yao Qi <yao@codesourcery.com>
16509
16510 * tracepoint.c (tracepoint_was_hit): Don't collect for
16511 static tracepoint.
16512
12c3e59c
JB
165132012-01-02 Joel Brobecker <brobecker@adacore.com>
16514
16515 * terminal.h: Reformat copyright header.
16516
67827812
JB
165172012-01-02 Joel Brobecker <brobecker@adacore.com>
16518
16519 * server.c (gdbserver_version): Update copyright year.
16520 * gdbreplay.c (gdbreplay_version): Likewise.
16521
3e52c33d
JK
165222011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16523
16524 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16525
16526 Revert:
16527 2011-12-18 Hui Zhu <teawater@gmail.com>
16528 * linux-low.c (linux_create_inferior): Save return value to ret.
16529
66f1260e
HZ
165302011-12-18 Hui Zhu <teawater@gmail.com>
16531
16532 * linux-low.c (linux_create_inferior): Save return value to ret.
16533
e77616d7
DE
165342011-12-16 Doug Evans <dje@google.com>
16535
e7b06c57
DE
16536 * linux-low.c (linux_create_inferior): If stdio connection,
16537 redirect stdin from /dev/null, stdout to stderr.
16538 * remote-utils.c (remote_is_stdio): New static global.
16539 (remote_connection_is_stdio): New function.
16540 (remote_prepare): Handle stdio connection.
16541 (remote_open): Ditto.
16542 (remote_close): Don't close stdin for stdio connections.
16543 (read_prim,write_prim): New functions. Replace all calls to
16544 read/write to these.
16545 * server.c (main): Watch for "-" argument. Move call to
16546 remote_prepare before start_inferior.
16547 * server.h (STDIO_CONNECTION_NAME): New macro.
16548 (remote_connection_is_stdio): Declare.
16549
e77616d7
DE
16550 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16551 in debugging output.
16552
82067193
YQ
165532011-12-15 Yao Qi <yao@codesourcery.com>
16554
16555 * tracepoint.c: Include sys/syscall.h.
16556 (gdb_ust_thread): Remove preprocessor conditional.
16557
82bfbe7e
PA
165582011-12-14 Pedro Alves <pedro@codesourcery.com>
16559
16560 * linux-low.c (linux_detach_one_lwp): Call
16561 the_low_target.prepare_to_resume before detaching.
16562
712c6575
YQ
165632011-12-14 Yao Qi <yao@codesourcery.com>
16564
16565 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16566 of write.
16567
d54d1edf
YQ
165682011-12-14 Yao Qi <yao@codesourcery.com>
16569
16570 * i386-low.c (i386_low_stopped_data_address): Initialize local
16571 variable `control'.
16572
6210a125
PA
165732011-12-13 Pedro Alves <pedro@codesourcery.com>
16574
16575 PR remote/13492
16576
16577 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16578 DR_CONTROL unless necessary. Extend comments.
16579 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16580 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16581
2ece8244
YQ
165822011-12-13 Yao Qi <yao@codesourcery.com>
16583
16584 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16585 macros.
16586 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16587
784867a5
JK
165882011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16589
16590 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16591 Print new debug message for such case.
16592
6bf36717
JK
165932011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16594
16595 Fix overlapping memcpy.
16596 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16597 the read_inferior_memory transfer.
16598 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16599 write_inferior_memory transfer.
16600 (set_fast_tracepoint_jump): New variable buf. Use it for the
16601 read_inferior_memory and write_inferior_memory transfers.
16602 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16603 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16604 Use it for the write_inferior_memory transfer.
16605 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16606 buffers.
16607
50275556
MR
166082011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16609
16610 * linux-low.c (fetch_register, store_register): Make code
16611 consistent, fix formatting.
16612
7325beb4
MR
166132011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16614
16615 * linux-low.c (usr_store_inferior_registers): Factor out code
16616 to handle individual registers into...
16617 (store_register): ... this new function.
16618
c642a434
UW
166192011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16620
16621 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16622 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16623 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16624 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16625 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16626 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16627 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16628 (srv_xmlfiles): Add new XML files.
16629
16630 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16631 and <sys/uio.h>.
16632 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16633 (init_registers_s390_linux32v1): Add prototype.
16634 (init_registers_s390_linux32v2): Likewise.
16635 (init_registers_s390_linux64v1): Likewise.
16636 (init_registers_s390_linux64v2): Likewise.
16637 (init_registers_s390x_linux64v1): Likewise.
16638 (init_registers_s390x_linux64v2): Likewise.
16639 (s390_num_regs): Increment to 52.
16640 (s390_regmap): Add orig_r2 register.
16641 (s390_num_regs_3264): Increment to 68.
16642 (s390_regmap_3264): Add orig_r2 register.
16643 (s390_collect_ptrace_register): Handle orig_r2 register.
16644 (s390_supply_ptrace_register): Likewise.
16645 (s390_fill_last_break): New function.
16646 (s390_store_last_break): Likewise.
16647 (s390_fill_system_call): New function.
16648 (s390_store_system_call): Likewise.
16649 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16650 register sets.
16651 (s390_check_regset): New function.
16652 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16653 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16654 Update target_regsets for available register sets.
16655
2268b414
JK
166562011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16657 Jan Kratochvil <jan.kratochvil@redhat.com>
16658
16659 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16660 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16661 New.
16662 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16663 * linux-low.h (struct process_info_private): New member r_debug.
16664 * server.c (handle_qxfer_libraries): Call
16665 the_target->qxfer_libraries_svr4.
16666 (handle_qxfer_libraries_svr4): New function.
16667 (qxfer_packets): New entry "libraries-svr4".
16668 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16669 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16670 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16671 PACKET_qXfer_libraries_svr4.
16672
d6db1fab
UW
166732011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16674
16675 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16676 PSW address/mask between 8-byte and 16-byte formats.
16677 (s390_supply_ptrace_register): Likewise.
16678 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16679 basic addressing mode bit.
16680
242f5f1c
SS
166812011-11-24 Stan Shebs <stan@codesourcery.com>
16682
16683 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16684
f196051f
SS
166852011-11-17 Stan Shebs <stan@codesourcery.com>
16686
16687 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16688 (tracing_start_time): New global.
16689 (tracing_stop_time): New global.
16690 (tracing_user_name): New global.
16691 (tracing_notes): New global.
16692 (tracing_stop_note): New global.
16693 (cmd_qtstart): Set traceframe_usage, start_time.
16694 (stop_tracing): Set stop_time.
16695 (cmd_qtstatus): Report additional status.
16696 (cmd_qtp): New function.
16697 (handle_tracepoint_query): Call it.
16698 (cmd_qtnotes): New function.
16699 (handle_tracepoint_general_set): Call it.
16700 (get_timestamp): Rename from tsv_get_timestamp.
16701
405f8e94
SS
167022011-11-14 Stan Shebs <stan@codesourcery.com>
16703 Kwok Cheung Yeung <kcy@codesourcery.com>
16704
16705 * linux-x86-low.c (small_jump_insn): New.
16706 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16707 trampoline and error message, build a trampoline and issue a small
16708 jump instruction to it.
16709 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16710 trampoline and error message.
16711 (x86_get_min_fast_tracepoint_insn_len): New.
16712 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16713 * linux-low.h (struct linux_target_ops): Add arguments to
16714 install_fast_tracepoint_jump_pad operation, add new operation.
16715 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16716 arguments.
16717 (linux_get_min_fast_tracepoint_insn_len): New function.
16718 (linux_target_op): Add new operation.
16719 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16720 (gdb_trampoline_buffer_end): Ditto.
16721 (gdb_trampoline_buffer_error): Ditto.
16722 (struct ipa_sym_addresses): Add fields for new IPA variables.
16723 (symbol_list): Add entries for new IPA variables.
16724 (struct tracepoint): Add fields to hold the address range of the
16725 trampoline used by the tracepoint.
16726 (trampoline_buffer_head): New static variable.
16727 (trampoline_buffer_tail): Ditto.
16728 (claim_trampoline_space): New function.
16729 (have_fast_tracepoint_trampoline_buffer): New function.
16730 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16731 structure.
16732 (install_fast_tracepoint): Ditto, also add error buffer argument.
16733 (cmd_qtminftpilen): New function.
16734 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16735 (fast_tracepoint_from_trampoline_address): New function.
16736 (fast_tracepoint_collecting): Handle trampoline as part of jump
16737 pad space.
16738 (set_trampoline_buffer_space): New function.
16739 (initialize_tracepoint): Initialize new IPA variables.
16740 * target.h (struct target_ops): Add arguments to
16741 install_fast_tracepoint_jump_pad operation, add new
16742 get_min_fast_tracepoint_insn_len operation.
16743 (target_get_min_fast_tracepoint_insn_len): New.
16744 (install_fast_tracepoint_jump_pad): Add arguments.
16745 * server.h (IPA_BUFSIZ): Define.
16746 * linux-i386-ipa.c: Include extra header files.
16747 (initialize_fast_tracepoint_trampoline_buffer): New function.
16748 (initialize_low_tracepoint): Call it.
16749 * server.h (set_trampoline_buffer_space): Declare.
16750 (claim_trampoline_space): Ditto.
16751 (have_fast_tracepoint_trampoline_buffer): Ditto.
16752
1e4d1764
YQ
167532011-11-14 Yao Qi <yao@codesourcery.com>
16754
16755 * server.c (handle_query): Handle InstallInTrace for qSupported.
16756 * tracepoint.c (add_tracepoint): Sort list.
16757 (install_tracepoint, download_tracepoint): New.
16758 (cmd_qtdp): Call them to install and download tracepoints.
16759 (sort_tracepoints): Removed.
16760 (cmd_qtstart): Update.
16761
5c73ff4e
YQ
167622011-11-14 Yao Qi <yao@codesourcery.com>
16763
16764 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16765 * mem-break.h: Declare.
16766 * tracepoint.c (cmd_qtstart): Move some code to ...
16767 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16768 New.
16769 (download_tracepoints): Move some code to ...
16770 (download_tracepoint_1): ... here. New.
16771
86a30030
YQ
167722011-11-08 Yao Qi <yao@codesourcery.com>
16773
16774 * remote-utils.c (relocate_instruction): A comment fix.
16775
8d26e50c
JB
167762011-11-07 Joel Brobecker <brobecker@adacore.com>
16777
16778 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16779 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16780 dr_status_mirror and dr_control_mirror from debug_reg_state.
16781 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16782 (i386_initial_stuff): Remove use of deleted globals.
16783 (i386_get_thread_context, i386_set_thread_context,
16784 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16785 from debug_reg_state.
16786
a59306a3
YQ
167872011-11-05 Yao Qi <yao@codesourcery.com>
16788
16789 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16790 address as TPOINT's.
16791
3065dfb6
SS
167922011-11-02 Stan Shebs <stan@codesourcery.com>
16793
16794 * tracepoint.c (agent_mem_read_string): New function.
16795 (eval_agent_expr): Call it for tracenz.
16796 * server.c (handle_query): Report support for tracenz.
16797
fd0d8c7c
YQ
167982011-11-02 Yao Qi <yao@codesourcery.com>
16799
16800 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16801
609086b1
YQ
168022011-11-02 Yao Qi <yao@codesourcery.com>
16803
16804 * target.h: Fix a typo in comment.
16805
b9fd1791
PA
168062011-10-31 Pedro Alves <pedro@codesourcery.com>
16807
16808 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16809 clobber the breakpoints' shadows with fast tracepoint jumps.
16810 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16811 * target.c (write_inferior_memory): Also pass MYADDR down to
16812 check_mem_write.
16813
03583c20
UW
168142011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16815
16816 * configure.ac: Check support for personality routine.
16817 * configure: Regenerate.
16818 * config.in: Likewise.
16819 * linux-low.c: Include <sys/personality.h>.
16820 Define ADDR_NO_RANDOMIZE if necessary.
16821 (linux_create_inferior): Disable address space randomization when
16822 forking inferior, if requested.
16823 (linux_supports_disable_randomization): New function.
16824 (linux_target_ops): Install it.
16825 * server.h (disable_randomization): Declare.
16826 * server.c (disable_randomization): New global variable.
16827 (handle_general_set): Handle QDisableRandomization.
16828 (handle_query): Likewise for qSupported.
16829 (main): Support --disable-randomization and --no-disable-randomization
16830 command line arguments.
16831 * target.h (struct target_ops): Add supports_disable_randomization.
16832 (target_supports_disable_randomization): New macro.
16833
723b724b
MF
168342011-09-29 Mike Frysinger <vapier@gentoo.org>
16835
16836 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16837 ifdef check.
16838 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16839 [!PT_GETDSBT] (target_loadmap): New definition.
16840 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16841 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16842 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16843 and PT_GETDSBT to LINUX_LOADMAP.
16844 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16845 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16846
55329a5c 168472011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16848
16849 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16850 (arm_linux_hwbp_cap): New static variable.
16851 (arm_linux_get_hwbp_cap): Replace by ...
16852 (arm_linux_init_hwbp_cap): ... this new function.
16853 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16854 (arm_linux_get_hw_watchpoint_count): Likewise.
16855 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16856 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16857 (arm_prepare_to_resume): Use perror_with_name instead of error.
16858
55329a5c 168592011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16860
16861 * linux-arm-low.c: Include <signal.h>.
16862 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16863 (struct arm_linux_hwbp_cap): New data type.
16864 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16865 (struct arm_linux_hw_breakpoint): New data type.
16866 (MAX_BPTS, MAX_WPTS): Define.
16867 (struct arch_process_info, struct arch_lwp_info): New data types.
16868 (arm_linux_get_hwbp_cap): New function.
16869 (arm_linux_get_hw_breakpoint_count): Likewise.
16870 (arm_linux_get_hw_watchpoint_count): Likewise.
16871 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16872 (arm_hwbp_control_initialize): Likewise.
16873 (arm_hwbp_control_is_enabled): Likewise.
16874 (arm_hwbp_control_is_initialized): Likewise.
16875 (arm_hwbp_control_disable): Likewise.
16876 (arm_linux_hw_breakpoint_equal): Likewise.
16877 (arm_linux_hw_point_initialize): Likewise.
16878 (struct update_registers_data): New data structure.
16879 (update_registers_callback: New function.
16880 (arm_insert_point): Likewise.
16881 (arm_remove_point): Likewise.
16882 (arm_stopped_by_watchpoint): Likewise.
16883 (arm_stopped_data_address): Likewise.
16884 (arm_new_process): Likewise.
16885 (arm_new_thread): Likewise.
16886 (arm_prepare_to_resume): Likewise.
16887 (the_low_target): Register arm_insert_point, arm_remove_point,
16888 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16889 arm_new_thread, and arm_prepare_to_resume.
16890
6b9801d4
SS
168912011-09-15 Stan Shebs <stan@codesourcery.com>
16892
16893 * server.h (struct emit_ops): Add compare-goto fields.
16894 * tracepoint.c (gdb_agent_op_sizes): New table.
16895 (emit_eq_goto): New function.
16896 (emit_ne_goto): New function.
16897 (emit_lt_goto): New function.
16898 (emit_le_goto): New function.
16899 (emit_gt_goto): New function.
16900 (emit_ge_goto): New function.
16901 (is_goto_target): New function.
16902 (compile_bytecodes): Recognize special cases of compare-goto
16903 combinations and call specialized emitters for them.
16904 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16905 (amd64_emit_ne_goto): New function.
16906 (amd64_emit_lt_goto): New function.
16907 (amd64_emit_le_goto): New function.
16908 (amd64_emit_gt_goto): New function.
16909 (amd64_emit_ge_goto): New function.
16910 (amd64_emit_ops): Add the new functions.
16911 (i386_emit_eq_goto): New function.
16912 (i386_emit_ne_goto): New function.
16913 (i386_emit_lt_goto): New function.
16914 (i386_emit_le_goto): New function.
16915 (i386_emit_gt_goto): New function.
16916 (i386_emit_ge_goto): New function.
16917 (i386_emit_ops): Add the new functions.
16918
bf15cbda
SS
169192011-09-08 Stan Shebs <stan@codesourcery.com>
16920
16921 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16922 (i386_emit_epilogue): Restore %ebx.
16923
943ca1dd
JZ
169242011-08-31 Jie Zhang <jzhang918@gmail.com>
16925
16926 * server.c (step_thread): Remove definition.
16927 (process_serial_event): Don't handle Hs.
16928 * server.h (step_thread): Remove declaration.
16929 * target.c (set_desired_inferior): Remove use of step_thread.
16930
e3deef73
LM
169312011-08-24 Luis Machado <lgustavo@codesourcery.com>
16932
16933 * linux-low.c: Include linux-procfs.h.
16934 (linux_attach_lwp_1): Update comments.
16935 (linux_attach): Scan for existing threads when attaching to a
16936 process that is the tgid.
16937 * Makefile.in: Update dependencies.
16938
13da1c97
LM
169392011-08-24 Luis Machado <lgustavo@codesourcery.com>
16940
16941 * configure.srv: Add linux-procfs.o dependencies.
16942
881127c9
YQ
169432011-08-14 Yao Qi <yao@codesourcery.com>
16944
16945 * target.h (struct target_ops): Fix indent.
16946 * win32-low.c (win32_target_ops): Fix comment.
16947
58dbd541
YQ
169482011-08-14 Andrew Jenner <andrew@codesourcery.com>
16949 Yao Qi <yao@codesourcery.com>
16950
16951 * Makefile.in (clean): Remove tic6x-*.c files.
16952 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16953 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16954 (tic6x-c64xp-linux.c): Likewise.
16955 * configure.srv: Add support for tic6x-*-uclinux.
16956 * linux-tic6x-low.c: New.
16957 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16958
78d85199
YQ
169592011-08-14 Andrew Stubbs <ams@codesourcery.com>
16960 Yao Qi <yao@codesourcery.com>
16961
16962 * target.h (struct target_ops): Add read_loadmap.
16963 * linux-low.c (struct target_loadseg): New type.
16964 (struct target_loadmap): New type.
16965 (linux_read_loadmap): New function.
16966 (linux_target_ops): Add linux_read_loadmap.
16967 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16968 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16969 to NULL.
78d85199 16970
a959a88d
EZ
169712011-08-05 Eli Zaretskii <eliz@gnu.org>
16972
16973 * win32-low.c: Include <stdint.h>.
16974
1ced966e
PA
169752011-07-22 Pedro Alves <pedro@codesourcery.com>
16976
16977 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16978 to the inferior here.
16979 (i386_remove_aligned_watchpoint): Ditto.
16980 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16981 fit part of the watchpoint in the debug registers.
16982 (i386_update_inferior_debug_regs): New.
16983 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16984 registers, and only update the inferior on success.
16985 (i386_low_remove_watchpoint): Ditto.
16986
d26e3629
KY
169872011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16988
16989 * linux-low.c (compare_ints, unique, list_threads, show_process,
16990 linux_core_of_thread): Delete.
16991 (linux_target_ops): Change linux_core_of_thread to
16992 linux_common_core_of_thread.
16993 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16994 * utils.c (malloc_failure): Change type of argument.
16995 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16996 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16997 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16998 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16999 (IPA_OBJS): Add common-utils-ipa.o.
17000 (ptid_h, linux_osdata_h): New macros.
17001 (server_h): Add common/common-utils.h, common/xml-utils.h,
17002 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
17003 common/ptid.h.
17004 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
17005 ptid.o, buffer.o): New rules.
17006 (linux-low.o): Add common/linux-osdata.h as a dependency.
17007 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
17008 * configure.ac: Add AC_HEADER_DIRENT check.
17009 * config.in: Regenerate.
17010 * configure: Regenerate.
17011 * remote-utils.c (xml_escape_text): Delete.
17012 (buffer_grow, buffer_free, buffer_init, buffer_finish,
17013 buffer_xml_printf): Move to common/buffer.c.
17014 * server.c (main): Remove call to initialize_inferiors.
17015 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
17016 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
17017 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
17018 internal_error, gdb_assert, gdb_assert_fail): Delete.
17019 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
17020 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
17021 common/buffer.h.
17022 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
17023 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
17024 initialize_inferiors): Delete.
17025
2275a1a7
PA
170262011-07-20 Pedro Alves <pedro@codesourcery.com>
17027
17028 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
17029 symbol error.
17030
0a5b1e09
PA
170312011-05-31 Pedro Alves <pedro@codesourcery.com>
17032
17033 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
17034 assertion.
17035 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
17036
6938fd34
YQ
170372011-05-26 Yao Qi <yao@codesourcery.com>
17038
17039 * Makefile.in (thread-db.o): Track dependence to
17040 common/gdb_thread_db.h.
17041 * thread-db.c: include gdb_thread_db.h from right place.
17042
b481f9e0
TT
170432011-05-16 Adrian Cornish <gnu@bluedreamer.com>
17044
17045 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
17046 __FILE__ and __LINE__ to internal_error.
17047
98a5dd13
DE
170482011-05-13 Doug Evans <dje@google.com>
17049
17050 * thread-db.c (try_thread_db_load_from_sdir): New function.
17051 (try_thread_db_load_from_dir): New function.
17052 (thread_db_load_search): Handle $sdir, ignore $pdir.
17053 Remove trying of system directories if search of
17054 libthread-db-search-path fails, that is now done via $sdir.
17055
d248b706
KY
170562011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
17057
17058 * server.c (handle_query): Add EnableDisableTracepoints to the list
17059 of supported features.
43aaf8b6 17060 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 17061 tracepoints.
43aaf8b6
PA
17062 (cmd_qtenable_disable): New.
17063 (cmd_qtstart): Install tracepoints even if disabled.
17064 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
17065 receiving a QTEnable or QTDisable packet.
17066 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17067 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17068 tracepoints.
17069 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 17070
84e578fb
DE
170712011-05-10 Doug Evans <dje@google.com>
17072
17073 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17074
71f55dd8
DE
170752011-05-04 Doug Evans <dje@google.com>
17076
17077 * linux-low.c (linux_join): Skip process lookup.
17078 * spu-low.c (spu_join): Ditto.
17079 * server.c (join_inferiors_callback): Delete.
17080 (process_serial_event): For 'D' packet (detach) call join_inferior
17081 directly.
17082
4d393d60
JM
170832011-05-04 Joseph Myers <joseph@codesourcery.com>
17084
17085 * README: Don't mention xscale*-*-linux*.
17086 * configure.srv (xscale*-*-linux*): Don't handle target.
17087
b00ad6ff
NF
170882011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17089
17090 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17091 casting pointers.
17092 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17093 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17094 (i386_emit_void_call_2): Likewise.
17095
af96c192
YQ
170962011-04-26 Yao Qi <yao@codesourcery.com>
17097
43aaf8b6
PA
17098 * linux-low.c: Move common macros to linux-ptrace.h.
17099 Include linux-ptrace.h.
af96c192
YQ
17100 * Makefile.in (linux_ptrace_h): New.
17101 (linux-low.o): Depends on linux-ptrace.h.
17102
03f2bd59
JK
171032011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17104
17105 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17106 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17107 (remote_prepare): New function with most of the TCP code from ...
17108 (remote_open): ... here. Detect PORT here unconditionally. Move also
17109 setting transport_is_reliable.
17110 * server.c (run_once): New variable.
17111 (gdbserver_usage): Document it.
17112 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17113 the first run if RUN_ONCE.
17114 * server.h (run_once, remote_prepare): New declarations.
17115
7a9dd1b2
TT
171162011-04-19 Tom Tromey <tromey@redhat.com>
17117
17118 * win32-low.c (handle_load_dll): Remove duplicate "the".
17119
81239425
PM
171202011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17121
17122 Remove support for old Cygwin 1.5 versions.
17123 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17124 function to avoid warning.
17125 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17126 warning.
17127
9e0627f1
PM
171282011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17129
17130 * gdbserver/server.h (Macro _): Define it if not available.
17131
588eebee
MS
171322011-03-14 Michael Snyder <msnyder@vmware.com>
17133
348af9f7 17134 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 17135
43f70d4c
JB
171362011-03-10 Joel Brobecker <brobecker@adacore.com>
17137
17138 * Makefile.in (maintainer-clean realclean distclean): Remove
17139 "make ... subdir_do" command.
17140
348af9f7
MS
171412011-03-10 Michael Snyder <msnyder@vmware.com>
17142
17143 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17144
17145 * server.c (handle_v_run): Free alloced buffer on early return.
17146
e637a4f5
YQ
171472011-03-09 Yao Qi <yao@codesourcery.com>
17148
17149 Revert:
17150 2011-03-04 Yao Qi <yao@codesourcery.com>
17151
17152 * Makefile.in: Remove GNU make feature --directory.
17153
17154 2011-03-05 Yao Qi <yao@codesourcery.com>
17155
17156 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17157 (subdir_do): New make target. Copied from gdb/Makefile.
17158 (maintainer-clean, realclean, distclean, clean): Call corresponding
17159 make targets in common/Makefile.
17160
17161 2011-02-11 Yao Qi <yao@codesourcery.com>
17162
17163 * configure.ac: Call AC_PROG_RANLIB.
17164 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17165 * configure: Regenerate.
17166
e6edda56
JK
171672011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17168
17169 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17170
e5141119
JB
171712011-03-06 Yao Qi <yao@codesourcery.com>
17172
17173 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17174
64794aa4
JB
171752011-03-05 Yao Qi <yao@codesourcery.com>
17176
17177 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17178 (subdir_do): New make target. Copied from gdb/Makefile.
17179 (maintainer-clean, realclean, distclean, clean): Call corresponding
17180 make targets in common/Makefile.
17181
7a762829
YQ
171822011-03-04 Yao Qi <yao@codesourcery.com>
17183
17184 * Makefile.in: Remove GNU make feature --directory.
17185
348af9f7
MS
171862011-03-04 Michael Snyder <msnyder@vmware.com>
17187
17188 * server.c (queue_stop_reply): Call xmalloc not malloc.
17189
171902011-03-02 Michael Snyder <msnyder@vmware.com>
17191
17192 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17193
9f72fee2
MS
171942011-02-28 Michael Snyder <msnyder@vmware.com>
17195
588eebee
MS
17196 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17197 (cmd_qtframe): Ditto.
17198 (cmd_qtbuffer): Ditto.
17199 (cmd_bigqtbuffer): Ditto.
17200
9f72fee2
MS
17201 * utils.c (decimal2str): Initialize 'width' to nine, then
17202 don't mess with it.
17203
8040bd49
UW
172042011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17205
17206 * hostio.c (require_data): Free *data, not data.
17207
7e52cbd0
JK
172082011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17209
17210 * hostio.c (require_data): Use free, not xfree.
17211
9130f83e
MS
172122011-02-27 Michael Snyder <msnyder@vmware.com>
17213
4b812f4e
MS
17214 * server.c (handle_query): Discard unused value.
17215
9130f83e
MS
17216 * hostio.c (require_data): Free malloc memory before returning
17217 error.
17218
69d37113
MS
172192011-02-26 Michael Snyder <msnyder@vmware.com>
17220
17221 * linux-low.c (list_threads): Call closedir for dirent.
17222
35f5825a
MS
172232011-02-27 Michael Snyder <msnyder@vmware.com>
17224
2a589cef
MS
17225 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17226 a case statement falls through.
17227
0adea5f7
MS
17228 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17229
35f5825a
MS
17230 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17231 in comparison.
17232
238f1c74
MS
172332011-02-26 Michael Snyder <msnyder@vmware.com>
17234
17235 * utils.c (decimal2str): Eliminate dead code and dead param.
17236 (pulongest): Drop dead param from call to decimal2str.
17237 (plongest): Ditto.
17238
633ff500
JB
172392011-02-24 Joel Brobecker <brobecker@adacore.com>
17240
17241 Revert the following patch (not approved yet):
17242 2011-02-21 Hui Zhu <teawater@gmail.com>
17243 * tracepoint.c (tp_printf): New function.
17244 (eval_agent_expr): Handle gdb_agent_op_printf.
17245
f9c6ff72
HZ
172462011-02-21 Hui Zhu <teawater@gmail.com>
17247
17248 * tracepoint.c (tp_printf): New function.
17249 (eval_agent_expr): Handle gdb_agent_op_printf.
17250
94d5e490
TT
172512011-02-18 Tom Tromey <tromey@redhat.com>
17252
17253 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17254 (tracepoint.o): Likewise.
17255 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17256 (gdb_agent_op_names): Likewise.
17257
c7f96d2b
TT
172582011-02-18 Tom Tromey <tromey@redhat.com>
17259
17260 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17261 gdb_agent_op_rot>: New constants.
17262 (gdb_agent_op_names): Add pick and roll.
17263 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17264 cases.
17265
0feedb2c
JK
172662011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17267
17268 * aclocal.m4: Regenerated with aclocal-1.11.1.
17269
b3b9301e
PA
172702011-02-14 Pedro Alves <pedro@codesourcery.com>
17271
17272 * server.c (handle_qxfer_traceframe_info): New.
17273 (qxfer_packets): Register "traceframe-info".
17274 (handle_query): Report support for qXfer:traceframe-info:read+.
17275 * tracepoint.c (match_blocktype): New.
17276 (traceframe_find_block_type): Rename to ...
17277 (traceframe_walk_blocks): ... this. Add callback filter argument,
17278 and use it.
17279 (traceframe_find_block_type): New, reimplemented on top of
17280 traceframe_walk_blocks.
17281 (build_traceframe_info_xml): New.
17282 (traceframe_read_info): New.
17283 * server.h (traceframe_read_info): Declare.
17284
4f3e6fb7
YQ
172852011-02-11 Yao Qi <yao@codesourcery.com>
17286
17287 * configure.ac: Call AC_PROG_RANLIB.
17288 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17289 * configure: Regenerate.
17290
764880b7
PA
172912011-02-07 Pedro Alves <pedro@codesourcery.com>
17292
17293 * server.c (gdb_read_memory): Change return semantics to allow
17294 partial transfers.
17295 (handle_search_memory_1): Adjust.
17296 (process_serial_event) <'m' packet>: Handle partial transfers.
17297 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17298
1c79eb8a
PA
172992011-01-28 Pedro Alves <pedro@codesourcery.com>
17300
17301 * regcache.c (init_register_cache): Initialize
17302 regcache->register_status.
17303 (free_register_cache): Release regcache->register_status.
17304 (regcache_cpy): Copy register_status.
17305 (registers_to_string): Print 'x's for unavailable registers.
17306 (supply_register): Mark the register's status valid or
17307 unavailable, depending on whether a buffer was passed in or not.
17308 (supply_register_zeroed): New.
17309 (supply_regblock): Mark the registers' status valid or
17310 unavailable, depending on whether a buffer was passed in or not.
17311 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17312 (struct regcache): New `register_status' field.
17313 (supply_register_zeroed): Declare.
17314 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17315 supply_register_zeroed, rather than passing a NULL buffer to
17316 supply_register.
17317 * tracepoint.c (fetch_traceframe_registers): Update comment.
17318
85724a0e
PA
173192011-01-28 Pedro Alves <pedro@codesourcery.com>
17320
17321 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17322 buffer explicit.
17323
d08aafef
PA
173242011-01-25 Pedro Alves <pedro@codesourcery.com>
17325
17326 * server.h (decode_xfer_write): Change prototype.
17327 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17328 and don't extract the annex here.
17329 * server.c (decode_xfer_read): Remove `annex' parameter,
17330 and don't extract the annex here.
17331 (decode_xfer): New.
17332 (struct qxfer): New.
17333 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17334 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17335 (handle_qxfer_statictrace): New functions, abstracted out from
17336 handle_query, and made to use the struct qxfer interface.
17337 (handle_threads_qxfer_proper): Rename to ...
17338 (handle_qxfer_threads_proper): ... this.
17339 (handle_threads_qxfer): Rename to ...
17340 (handle_qxfer_threads): ... this. Adjust.
17341 (qxfer_packets): New array.
17342 (handle_qxfer): New function.
17343 (handle_query): Use handle_qxfer.
17344
493e2a69
MS
173452011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17346
17347 * gdbreplay.c: Shorten lines of >= 80 columns.
17348 * linux-low.c: Ditto.
17349 * linux-ppc-low.c: Ditto.
17350 * linux-s390-low.c: Ditto.
17351 * linux-sparc-low.c: Ditto.
17352 * linux-x86-low.c: Ditto.
17353 * linux-xtensa-low.c: Ditto.
17354 * mem-break.c: Ditto.
17355 * nto-low.c: Ditto.
17356 * regcache.h: Ditto.
17357 * remote-utils.c: Ditto.
17358 * server.c: Ditto.
17359 * server.h: Ditto.
17360 * thread-db.c: Ditto.
17361 * tracepoint.c: Ditto.
17362 * utils.c: Ditto.
17363 * win32-low.h: Ditto.
17364
44944448
JB
173652011-01-05 Joel Brobecker <brobecker@adacore.com>
17366
17367 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17368 update.
17369
71ce852c
JB
173702011-01-01 Joel Brobecker <brobecker@adacore.com>
17371
17372 * server.c (gdbserver_version): Update copyright year in version
17373 output.
17374 * gdbreplay.c (gdbreplay_version): Ditto.
17375
eb826dc6
MF
173762010-12-29 Jie Zhang <jie.zhang@analog.com>
17377
17378 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17379 * linux-bfin-low.c: New file.
17380 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17381 PT_DATA_ADDR for BFIN targets.
17382 * Makefile.in (SFILES): Add linux-bfin-low.c.
17383 (clean): Remove reg-bfin.c.
17384 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17385 * README: Mention supported Blackfin targets.
17386
39ab222a
MF
173872010-12-23 Mike Frysinger <vapier@gentoo.org>
17388
17389 * .gitignore: New file.
17390
a1f2ce7d
MF
173912010-11-16 Mike Frysinger <vapier@gentoo.org>
17392
17393 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17394
f474844c
JZ
173952010-10-22 Jie Zhang <jie@codesourcery.com>
17396
17397 * Makefile.in: Add FLAGS_TO_PASS variable.
17398 (install): Remove dependency of install-only and recursively
17399 invoke make for install-only.
17400
f1048712
DE
174012010-10-04 Doug Evans <dje@google.com>
17402
17403 * Makefile.in (uninstall): Use $(DESTDIR).
17404
b53a1623
PA
174052010-09-24 Pedro Alves <pedro@codesourcery.com>
17406
e6ee044d
PA
17407 PR gdb/11842
17408
b53a1623
PA
17409 * linux-x86-low.c (compat_siginfo_from_siginfo)
17410 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17411 si_code is < 0. Check for si_code == SI_TIMER before checking for
17412 si_code < 0.
17413
fa1bd1e4
JB
174142010-09-13 Joel Brobecker <brobecker@adacore.com>
17415
17416 * lynx-i386-low.c: New file.
17417 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17418
47fac8f8
JB
174192010-09-13 Joel Brobecker <brobecker@adacore.com>
17420
17421 * lynx-low.c (ptrace_request_to_str): Remove handling for
17422 request values that have been removed in LynxOS 5.x.
17423
1adfc54d
JB
174242010-09-13 Joel Brobecker <brobecker@adacore.com>
17425
17426 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17427 <ptrace.h>
17428
c2a66c29
NS
174292010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17430
17431 * configure.ac: Add --enable-inprocess-agent option.
17432 * configure: Rebuilt.
17433
32fcada3
YQ
174342010-09-06 Yao Qi <yao@codesourcery.com>
17435
17436 * linux-low.c (linux_kill): Remove unused variable.
17437 (linux_stabilize_threads): Likewise.
17438 * server.c (start_inferior): Likewise.
17439 (queue_stop_reply_callback): Likewise.
17440 * tracepoint.c (do_action_at_tracepoint): Likewise.
17441
0cccb683
YQ
174422010-09-06 Yao Qi <yao@codesourcery.com>
17443
17444 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17445 on return.
17446
423ec54c
JK
174472010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17448
17449 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17450
12ac6819
PA
174512010-09-06 Pedro Alves <pedro@codesourcery.com>
17452
17453 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17454 "$(IPA_DEPFILES)".
17455
8ed54b31
JB
174562010-09-01 Joel Brobecker <brobecker@adacore.com>
17457
17458 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17459 gdbserver/lynx-ppc-low.c: New files.
17460 * Makefile.in (lynx_low_h): New variable.
17461 (lynx-low.o, lynx-ppc-low.o): New rules.
17462 * configure.ac: On LynxOS, link with -lnetinet.
17463 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17464 * configure: regenerate.
17465
bb0116a4
JB
174662010-09-01 Joel Brobecker <brobecker@adacore.com>
17467
17468 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17469 * configure.ac: Add check for vasprintf and vsnprintf.
17470 * configure, config.in: Regenerate.
17471 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17472
a778ab81 174732010-09-01 Joel Brobecker <brobecker@adacore.com>
17474
17475 * gdbreplay.c: Move include of alloca.h up, next to include of
17476 malloc.h.
17477 * server.h: Add include of malloc.h.
17478 * mem-break.c: Remove include of malloc.h.
17479 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17480
8b034a19 174812010-09-01 Joel Brobecker <brobecker@adacore.com>
17482
17483 * Makefile.in (memmem.o): Build with -Wno-error.
17484
174852010-09-01 Joel Brobecker <brobecker@adacore.com>
17486
17487 * utils.c (xsnprintf): Make non-static.
17488 * server.h: Add xsnprintf declaration.
17489 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17490 replace calls to snprintf by calls to xsnprintf throughout.
17491
174922010-09-01 Joel Brobecker <brobecker@adacore.com>
17493
17494 * configure.ac: Add configure check for alloca.
17495 * configure, config.in: Regenerate.
17496 * server.h: Include alloca.h if it exists.
17497 * gdbreplay.c: Include alloca.h if it exists.
17498
1a981360
PA
174992010-08-28 Pedro Alves <pedro@codesourcery.com>
17500
17501 * linux-low.c (__SIGRTMIN): Define if not already defined.
17502 (linux_create_inferior): Check for __ANDROID__ rather than
17503 __SIGRTMIN.
17504 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17505 are already deferred.
17506 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17507 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17508 stopped and already has a pending signal to report.
17509 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17510 a pending signal to report or is moving out of a jump pad.
17511 (linux_init_signals): Check for __ANDROID__ rather than
17512 __SIGRTMIN.
17513
b4d51a55
PA
175142010-08-28 Pedro Alves <pedro@codesourcery.com>
17515
17516 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17517 debug_threads check. Avoid a linear search when not doing debug
17518 output.
17519
ec48365d
PA
175202010-08-27 Pedro Alves <pedro@codesourcery.com>
17521
17522 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17523 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17524 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17525 (process_event): Change local fd's type to gdb_fildes_t.
17526 (create_file_handler): Adjust prototype.
17527 (delete_file_handler): Adjust prototype.
17528 (handle_file_event): Adjust prototype. Use pfildes.
17529 (create_file_event): Adjsut prototype.
17530 * remote-utils.c (remote_desc, listen_desc): Change type to
17531 gdb_fildes_t.
17532 * server.h: New gdb_fildes_t typedef.
17533 [USE_WIN32API]: Include winsock2.h.
17534 (delete_file_handler, add_file_handler): Adjust prototypes.
17535 (pfildes): Declare.
17536 * utils.c (pfildes): New.
17537
854d88f0
PA
175382010-08-27 Pedro Alves <pedro@codesourcery.com>
17539
17540 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17541 * configure: Regenerate.
17542
0146f85b
PA
175432010-08-27 Pedro Alves <pedro@codesourcery.com>
17544
17545 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17546 (linux_done_accessing_memory): ... this.
17547 (linux_target_ops): Adjust.
17548 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17549 * nto-low.c (nto_target_ops): Adjust comment.
17550 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17551 * spu-low.c (spu_target_ops): Adjust comment.
17552 * target.h (target_ops): Rename unprepare_to_access_memory field
17553 to done_accessing_memory.
17554 (unprepare_to_access_memory): Rename to ...
17555 (done_accessing_memory): ... this.
17556
90d74c30
PA
175572010-08-26 Pedro Alves <pedro@codesourcery.com>
17558
17559 * linux-low.c (linux_prepare_to_access_memory): New.
17560 (linux_unprepare_to_access_memory): New.
17561 (linux_target_ops): Install them.
17562 * server.c (read_memory): Rename to ...
17563 (gdb_read_memory): ... this. Use
17564 prepare_to_access_memory/prepare_to_access_memory.
17565 (write_memory): Rename to ...
17566 (gdb_write_memory): ... this. Use
17567 prepare_to_access_memory/prepare_to_access_memory.
17568 (handle_search_memory_1): Adjust.
17569 (process_serial_event): Adjust.
17570 * target.h (struct target_ops): New fields
17571 prepare_to_access_memory and unprepare_to_access_memory.
17572 (prepare_to_access_memory, unprepare_to_access_memory): New.
17573 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17574 prepare_to_access_memory/prepare_to_access_memory.
17575 * nto-low.c (nto_target_ops): Adjust.
17576 * spu-low.c (spu_target_ops): Adjust.
17577 * win32-low.c (win32_target_ops): Adjust.
17578
fd467969
PA
175792010-08-26 Pedro Alves <pedro@codesourcery.com>
17580
17581 * Makefile.in (WARN_CFLAGS): Get it from configure.
17582 (WERROR_CFLAGS): New.
17583 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17584 * configure.ac: Introduce --enable-werror, which adds -Werror to
17585 the compiler command line. Enabled by default. Disable with
17586 --disable-werror. Add -Wdeclaration-after-statement
17587 Wpointer-arith and -Wformat-nonliteral to warning flags.
17588 * configure: Regenerate.
17589
331e2f5f
PA
175902010-08-26 Pedro Alves <pedro@codesourcery.com>
17591
17592 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17593
e581f2b4
PA
175942010-08-26 Pedro Alves <pedro@codesourcery.com>
17595
17596 * gdbreplay.c (remote_error): New.
17597 (gdbchar): New.
17598 (expect): Use gdbchar. Check for error reading from GDB.
17599 Clarify sync error output.
17600 (play): Check for errors writing to GDB.
17601 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17602 * remote-utils.c (getpkt): Check for errors writing to the remote
17603 descriptor.
17604
3c11dd79
PA
176052010-08-25 Pedro Alves <pedro@codesourcery.com>
17606
17607 * linux-low.c (linux_wait_1): Move non-debugging code out of
17608 `debug_threads' control.
17609
d20a8ad9
PA
176102010-08-25 Pedro Alves <pedro@codesourcery.com>
17611
17612 * linux-low.c (linux_wait_1): Don't set last_status here.
17613 * server.c (push_event, queue_stop_reply_callback): Assert we're
17614 not pushing a TARGET_WAITKIND_IGNORE event.
17615 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17616 (myresume, handle_target_event): Set the thread's last_resume_kind
17617 and last_status from the target returned status.
17618
964e4306
PA
176192010-08-25 Pedro Alves <pedro@codesourcery.com>
17620
17621 PR threads/10729
17622
17623 * linux-x86-low.c (update_debug_registers_callback): New.
17624 (i386_dr_low_set_addr): Use it.
17625 (i386_dr_low_get_addr): New.
17626 (i386_dr_low_set_control): Use update_debug_registers_callback.
17627 (i386_dr_low_get_control): New.
17628 (i386_dr_low_get_status): Adjust.
17629 * linux-low.c (linux_stop_lwp): New.
17630 * linux-low.h (linux_stop_lwp): Declare.
17631
17632 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17633 argument instead of a i386_debug_reg_state.
17634 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17635 a i386_debug_reg_state.
17636 (i386_insert_aligned_watchpoint): Adjust.
17637 (i386_remove_aligned_watchpoint): Adjust.
17638 (i386_low_stopped_data_address): Read the debug registers from the
17639 inferior instead of from the mirrors.
17640 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17641 (i386_dr_low_get_addr): Declare.
17642 (i386_dr_low_get_control): Declare.
17643 (i386_dr_low_get_status): Change prototype.
17644
17645 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17646 (i386_dr_low_get_addr): New.
17647 (i386_dr_low_get_control): New.
17648 (i386_dr_low_get_status): Adjust prototype. Return
17649 dr_status_mirror.
17650 (i386_initial_stuff): Clear dr_status_mirror and
17651 dr_control_mirror.
17652 (i386_get_thread_context): Adjust.
17653 (i386_set_thread_context): Adjust.
17654 (i386_thread_added): Adjust.
17655
5f21a75b
PA
176562010-08-24 Pedro Alves <pedro@codesourcery.com>
17657
17658 * linux-low.h (linux_thread_area): Delete declaration.
17659
3e4c1235
TS
176602010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17661
17662 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17663 after its termination.
17664
1971b033
PA
176652010-08-09 Pedro Alves <pedro@codesourcery.com>
17666
17667 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17668 (gdb_wants_all_stopped): Delete.
17669 (linux_wait_1): Don't call them.
17670 * server.c (handle_v_cont): Tag all threads as want-stopped.
17671 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17672 stopped as "client-wants-stopped".
17673
310444ac
PA
176742010-07-31 Pedro Alves <pedro@codesourcery.com>
17675
17676 * Makefile.in (signals_h): New.
17677 (server_h): Depend on it.
17678 (server.o): Don't depend on $(signals_def).
17679 (signals.o): Depend on $(signals_def).
17680
a19cae16
JK
176812010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17682
17683 * Makefile.in (signals_def): New.
17684 (server_h): Append include/gdb/signals.h and signals_def.
17685 (server.o): Append signals_def.
17686
30d50328
JK
176872010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17688
17689 * server.c (handle_target_event): Use target_signal_to_host for
17690 resume_info.sig initialization.
17691 * target.h (struct thread_resume) <sig>: New comment.
17692
5c3216e2
OS
176932010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17694
c6f46ca0
OS
17695 * server.c (handle_query): strcpy() the returned string from paddress()
17696 instead of sprintf().
5c3216e2
OS
17697 * utils.c (paddress): Return phex_nz().
17698
6bd31874
JB
176992010-07-07 Joel Brobecker <brobecker@adacore.com>
17700
17701 * server.c (handle_v_cont): Call mourn_inferior if process
17702 just exited.
17703 (myresume): Likewise.
17704
0fb4aa4b
PA
177052010-07-01 Pedro Alves <pedro@codesourcery.com>
17706
17707 Static tracepoints, and integration with UST.
17708
17709 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17710 * mem-break.c (uninsert_all_breakpoints)
17711 (reinsert_all_breakpoints): New.
17712 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17713 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17714 (gdb_agent_ust_loaded, helper_thread_id)
17715 (gdb_agent_helper_thread_id): New macros.
17716 (struct ipa_sym_addresses): Add addr_ust_loaded,
17717 addr_helper_thread_id, addr_cmd_buf.
17718 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17719 (in_process_agent_loaded_ust): New.
17720 (write_e_ust_not_loaded): New.
17721 (maybe_write_ipa_ust_not_loaded): New.
17722 (struct collect_static_trace_data_action): New.
17723 (enum tracepoint_type) <static_tracepoint>: New.
17724 (struct tracepoint) <handle>: Mention static tracepoints.
17725 (struct static_tracepoint_ctx): New.
17726 (CMD_BUF_SIZE): New.
17727 (add_tracepoint_action): Handle static tracepoint actions.
17728 (unprobe_marker_at): New.
17729 (clear_installed_tracepoints): Handle static tracepoints.
17730 (cmd_qtdp): Handle static tracepoints.
17731 (probe_marker_at): New.
17732 (cmd_qtstart): Handle static tracepoints.
17733 (response_tracepoint): Handle static tracepoints.
17734 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17735 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17736 (get_context_regcache): Handle static tracepoints.
17737 (do_action_at_tracepoint): Handle static tracepoint actions.
17738 (traceframe_find_block_type): Handle static trace data blocks.
17739 (traceframe_read_sdata): New.
17740 (download_tracepoints): Download static tracepoint actions.
17741 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17742 (GDB_PROBE_NAME): New.
17743 (ust_ops): New.
17744 (GET_UST_SYM): New.
17745 (USTF): New.
17746 (dlsym_ust): New.
17747 (ust_marker_to_static_tracepoint): New.
17748 (gdb_probe): New.
17749 (collect_ust_data_at_tracepoint): New.
17750 (gdb_ust_probe): New.
17751 (UNIX_PATH_MAX, SOCK_DIR): New.
17752 (gdb_ust_connect_sync_socket): New.
17753 (resume_thread, stop_thread): New.
17754 (run_inferior_command): New.
17755 (init_named_socket): New.
17756 (gdb_ust_socket_init): New.
17757 (cstr_to_hexstr): New.
17758 (next_st): New.
17759 (first_marker, next_marker): New.
17760 (response_ust_marker): New.
17761 (cmd_qtfstm, cmd_qtsstm): New.
17762 (unprobe_marker_at, probe_marker_at): New.
17763 (cmd_qtstmat, gdb_ust_thread): New.
17764 (gdb_ust_init): New.
17765 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17766 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17767 (ST_REGENTRY): New.
17768 (x86_64_st_collect_regmap): New.
17769 (X86_64_NUM_ST_COLLECT_GREGS): New.
17770 (AMD64_RIP_REGNUM): New.
17771 (supply_static_tracepoint_registers): New.
17772 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17773 (ST_REGENTRY): New.
17774 (i386_st_collect_regmap): New.
17775 (i386_NUM_ST_COLLECT_GREGS): New.
17776 (supply_static_tracepoint_registers): New.
17777 * server.c (handle_query): Handle qXfer:statictrace:read.
17778 <qSupported>: Report support for StaticTracepoints, and
17779 qXfer:statictrace:read features.
17780 * server.h (traceframe_read_sdata)
17781 (supply_static_tracepoint_registers): Declare.
17782 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17783 (unpack_varlen_hex): Include in IPA build.
17784 * Makefile.in (ustlibs, ustinc): New.
17785 (IPA_OBJS): Add remote-utils-ipa.o.
17786 ($(IPA_LIB)): Link -ldl and -lpthread.
17787 (UST_CFLAGS): New.
17788 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17789 * config.in, configure: Regenerate.
17790
9e4344e5
PA
177912010-06-20 Ian Lance Taylor <iant@google.com>
17792 Pedro Alves <pedro@codesourcery.com>
17793
17794 * linux-x86-low.c (always_true): Delete.
17795 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17796 trying to fool the compiler with always_true.
17797
c6beb2cb
PA
177982010-06-20 Pedro Alves <pedro@codesourcery.com>
17799
17800 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17801 conditions in gdbserver.
17802
d2ed6730
UW
178032010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17804
17805 * spu-low.c (spu_read_memory): Wrap around local store limit.
17806 (spu_write_memory): Likewise.
17807
4e29fb54
PA
178082010-06-15 Pedro Alves <pedro@codesourcery.com>
17809
17810 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17811 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17812 LONGEST uses.
17813 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17814 uses.
17815 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17816 uses with LONGEST uses.
17817
6a271cae
PA
178182010-06-14 Stan Shebs <stan@codesourcery.com>
17819 Pedro Alves <pedro@codesourcery.com>
17820
17821 Bytecode compiler.
17822
17823 * linux-x86-low.c: Include limits.h.
17824 (add_insns): New.
17825 (always_true): New.
17826 (EMIT_ASM): New.
17827 (EMIT_ASM32): New.
17828 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17829 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17830 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17831 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17832 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17833 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17834 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17835 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17836 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17837 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17838 (amd64_emit_void_call_2): New.
17839 (amd64_emit_ops): New.
17840 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17841 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17842 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17843 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17844 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17845 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17846 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17847 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17848 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17849 (i386_emit_stack_adjust, i386_emit_int_call_1)
17850 (i386_emit_void_call_2): New.
17851 (i386_emit_ops): New.
17852 (x86_emit_ops): New.
17853 (the_low_target): Install x86_emit_ops.
17854 * server.h (struct emit_ops): New.
17855 (get_raw_reg_func_addr): Declare.
17856 (current_insn_ptr, emit_error): Declare.
17857 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17858 (set_trace_state_variable_value): New defines.
17859 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17860 addr_get_trace_state_variable_value and
17861 addr_set_trace_state_variable_value.
17862 (symbol_list): New fields for get_raw_reg,
17863 get_trace_state_variable_value and set_trace_state_variable_value.
17864 (condfn): New typedef.
17865 (struct tracepoint): New field `compiled_cond'.
17866 (do_action_at_tracepoint): Clear compiled_cond.
17867 (get_trace_state_variable_value, set_trace_state_variable_value):
17868 Export in the IPA.
17869 (condition_true_at_tracepoint): If there's a compiled condition,
17870 run that.
17871 (current_insn_ptr, emit_error): New globals.
17872 (struct bytecode_address): New.
17873 (get_raw_reg_func_addr): New.
17874 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17875 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17876 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17877 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17878 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17879 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17880 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17881 (compile_tracepoint_condition, compile_bytecodes): New.
17882 * target.h (emit_ops): Forward declare.
17883 (struct target_ops): New field emit_ops.
17884 (target_emit_ops): New.
17885 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17886 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17887 * linux-low.c (linux_emit_ops): New.
17888 (linux_target_ops): Install it.
17889 * linux-low.h (struct linux_target_ops): New field emit_ops.
17890
92b72907
UW
178912010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17892
17893 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17894 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17895
fa593d66
PA
178962010-06-01 Pedro Alves <pedro@codesourcery.com>
17897 Stan Shebs <stan@codesourcery.com>
17898
17899 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17900 (all): Depend on $(extra_libraries).
17901 (install-only): Install the IPA.
17902 (IPA_OBJS, IPA_LIB): New.
17903 (clean): Remove the IPA lib.
17904 (IPAGENT_CFLAGS): New.
17905 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17906 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17907 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17908 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17909 * configure.ac: Check for atomic builtins support in the compiler.
17910 (IPA_DEPFILES, extra_libraries): Define.
17911 * configure.srv (ipa_obj): Add description.
17912 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17913 (i[34567]86-*-linux*): Set ipa_obj.
17914 (x86_64-*-linux*): Set ipa_obj.
17915 * linux-low.c (stabilizing_threads): New.
17916 (supports_fast_tracepoints): New.
17917 (linux_detach): Stabilize threads before detaching.
17918 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17919 the lwp is either not stabilizing, or is moving out of a jump pad.
17920 (linux_fast_tracepoint_collecting): New.
17921 (maybe_move_out_of_jump_pad): New.
17922 (enqueue_one_deferred_signal): New.
17923 (dequeue_one_deferred_signal): New.
17924 (linux_wait_for_event_1): If moving out of a jump pad, defer
17925 pending signals to later.
17926 (linux_stabilize_threads): New.
17927 (linux_wait_1): Check if threads need moving out of jump pads, and
17928 do it if so.
17929 (stuck_in_jump_pad_callback): New.
17930 (move_out_of_jump_pad_callback): New.
17931 (lwp_running): New.
17932 (linux_resume_one_lwp): Handle moving out of jump pads.
17933 (linux_set_resume_request): Dequeue deferred signals.
17934 (need_step_over_p): Also step over fast tracepoint jumps.
17935 (start_step_over): Also uninsert fast tracepoint jumps.
17936 (finish_step_over): Also reinsert fast tracepoint jumps.
17937 (linux_install_fast_tracepoint_jump): New.
17938 (linux_target_ops): Install linux_stabilize_threads and
17939 linux_install_fast_tracepoint_jump_pad.
17940 * linux-low.h (linux_target_ops) <get_thread_area,
17941 install_fast_tracepoint_jump_pad>: New fields.
17942 (struct lwp_info) <collecting_fast_tracepoint,
17943 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17944 (linux_get_thread_area): Declare.
17945 * linux-x86-low.c (jump_insn): New.
17946 (x86_get_thread_area): New.
17947 (append_insns): New.
17948 (push_opcode): New.
17949 (amd64_install_fast_tracepoint_jump_pad): New.
17950 (i386_install_fast_tracepoint_jump_pad): New.
17951 (x86_install_fast_tracepoint_jump_pad): New.
17952 (the_low_target): Install x86_get_thread_area and
17953 x86_install_fast_tracepoint_jump_pad.
17954 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17955 (struct fast_tracepoint_jump): New.
17956 (fast_tracepoint_jump_insn): New.
17957 (fast_tracepoint_jump_shadow): New.
17958 (find_fast_tracepoint_jump_at): New.
17959 (fast_tracepoint_jump_here): New.
17960 (delete_fast_tracepoint_jump): New.
17961 (set_fast_tracepoint_jump): New.
17962 (uninsert_fast_tracepoint_jumps_at): New.
17963 (reinsert_fast_tracepoint_jumps_at): New.
17964 (set_breakpoint_at): Use write_inferior_memory.
17965 (uninsert_raw_breakpoint): Use write_inferior_memory.
17966 (check_mem_read): Mask out fast tracepoint jumps.
17967 (check_mem_write): Mask out fast tracepoint jumps.
17968 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17969 (set_fast_tracepoint_jump): Declare.
17970 (delete_fast_tracepoint_jump)
17971 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17972 (reinsert_fast_tracepoint_jumps_at): Declare.
17973 * regcache.c: Don't compile many functions when building the
17974 in-process agent library.
17975 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17976 the register buffer in the heap.
17977 (free_register_cache): If the register buffer isn't owned by the
17978 regcache, don't free it.
17979 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17980 pre-existing register caches.
17981 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17982 type.
17983 (convert_ascii_to_int): : Constify `from' parameter type.
17984 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17985 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17986 the needed buffer in-place.
17987 (relocate_instruction): New.
17988 * server.c (handle_query) <qSymbols>: If the target supports
17989 tracepoints, give it a chance of looking up symbols. Report
17990 support for fast tracepoints.
17991 (handle_status): Stabilize threads.
17992 (process_serial_event): Adjust.
17993 * server.h (struct fast_tracepoint_jump): Forward declare.
17994 (struct process_info) <fast_tracepoint_jumps>: New field.
17995 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17996 (decode_X_packet, decode_M_packet): Adjust.
17997 (relocate_instruction): Declare.
17998 (in_process_agent_loaded): Declare.
17999 (tracepoint_look_up_symbols): Declare.
18000 (struct fast_tpoint_collect_status): Declare.
18001 (fast_tracepoint_collecting): Declare.
18002 (force_unlock_trace_buffer): Declare.
18003 (handle_tracepoint_bkpts): Declare.
18004 (initialize_low_tracepoint)
18005 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
18006 * target.h (struct target_ops) <stabilize_threads,
18007 install_fast_tracepoint_jump_pad>: New fields.
18008 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
18009 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
18010 [HAVE_STDINT_H]: Include stdint.h.
18011 (trace_debug_1): Rename to ...
18012 (trace_vdebug): ... this.
18013 (trace_debug): Rename to ...
18014 (trace_debug_1): ... this. Add `level' parameter.
18015 (trace_debug): New.
18016 (ATTR_USED, ATTR_NOINLINE): New.
18017 (IP_AGENT_EXPORT): New.
18018 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
18019 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
18020 (about_to_request_buffer_space, trace_buffer_is_full)
18021 (stopping_tracepoint, expr_eval_result, error_tracepoint)
18022 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
18023 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
18024 (traceframe_write_count, traceframes_created)
18025 (trace_state_variables)
18026 New renaming defines.
18027 (struct ipa_sym_addresses): New.
18028 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
18029 (symbol_list): New.
18030 (ipa_sym_addrs): New.
18031 (all_tracepoint_symbols_looked_up): New.
18032 (in_process_agent_loaded): New.
18033 (write_e_ipa_not_loaded): New.
18034 (maybe_write_ipa_not_loaded): New.
18035 (tracepoint_look_up_symbols): New.
18036 (debug_threads) [IN_PROCESS_AGENT]: New.
18037 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
18038 (UNKNOWN_SIDE_EFFECTS): New.
18039 (stop_tracing): New.
18040 (flush_trace_buffer): New.
18041 (stop_tracing_bkpt): New.
18042 (flush_trace_buffer_bkpt): New.
18043 (read_inferior_integer): New.
18044 (read_inferior_uinteger): New.
18045 (read_inferior_data_pointer): New.
18046 (write_inferior_data_pointer): New.
18047 (write_inferior_integer): New.
18048 (write_inferior_uinteger): New.
18049 (struct collect_static_trace_data_action): Delete.
18050 (enum tracepoint_type): New.
18051 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
18052 <actions_str, step_actions, step_actions_str>: Only include in
18053 GDBserver.
fa593d66
PA
18054 <orig_size, obj_addr_on_target, adjusted_insn_addr>
18055 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
18056 (tracepoints): Use IP_AGENT_EXPORT.
18057 (last_tracepoint): Don't include in the IPA.
18058 (stopping_tracepoint): Use IP_AGENT_EXPORT.
18059 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
18060 (alloced_trace_state_variables): New.
18061 (trace_state_variables): Use IP_AGENT_EXPORT.
18062 (traceframe_t): Delete unused variable.
18063 (circular_trace_buffer): Don't include in the IPA.
18064 (trace_buffer_start): Delete.
18065 (struct trace_buffer_control): New.
18066 (trace_buffer_free): Delete.
18067 (struct ipa_trace_buffer_control): New.
18068 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18069 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18070 New.
18071 (trace_buffer_ctrl): New.
18072 (TRACE_BUFFER_CTRL_CURR): New.
18073 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18074 Reimplement as macros.
18075 (trace_buffer_wrap): Delete.
18076 (traceframe_write_count, traceframe_read_count)
18077 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18078 (struct tracepoint_hit_ctx) <type>: New field.
18079 (struct fast_tracepoint_ctx): New.
18080 (memory_barrier): New.
18081 (cmpxchg): New.
18082 (record_tracepoint_error): Update atomically in the IPA.
18083 (clear_inferior_trace_buffer): New.
18084 (about_to_request_buffer_space): New.
18085 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18086 updating the same buffer.
18087 (add_tracepoint): Default the tracepoint's type to trap
18088 tracepoint, and orig_size to -1.
18089 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18090 internal variables.
18091 (create_trace_state_variable): New parameter `gdb'. Handle it.
18092 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18093 (cmd_qtdp): Handle fast tracepoints.
18094 (cmd_qtdv): Adjust.
18095 (max_jump_pad_size): New.
18096 (gdb_jump_pad_head): New.
18097 (get_jump_space_head): New.
18098 (claim_jump_space): New.
18099 (sort_tracepoints): New.
18100 (MAX_JUMP_SIZE): New.
18101 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18102 IPA.
18103 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18104 support. Upload fast traceframes, and delete internal IPA
18105 breakpoints.
18106 (stop_tracing_handler): New.
18107 (flush_trace_buffer_handler): New.
18108 (cmd_qtstop): Upload fast tracepoints.
18109 (response_tracepoint): Handle fast tracepoints.
18110 (tracepoint_finished_step): Upload fast traceframes. Set the
18111 tracepoint hit context's tracepoint type.
18112 (handle_tracepoint_bkpts): New.
18113 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18114 type. Add comment about fast tracepoints.
18115 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18116 non-existing action_str field.
18117 (get_context_regcache): Handle fast tracepoints.
18118 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18119 to the regcache.
18120 (fast_tracepoint_from_jump_pad_address): New.
18121 (fast_tracepoint_from_ipa_tpoint_address): New.
18122 (collecting_t): New.
18123 (force_unlock_trace_buffer): New.
18124 (fast_tracepoint_collecting): New.
18125 (collecting): New.
18126 (gdb_collect): New.
18127 (write_inferior_data_ptr): New.
18128 (target_tp_heap): New.
18129 (target_malloc): New.
18130 (download_agent_expr): New.
18131 (UALIGN): New.
18132 (download_tracepoints): New.
18133 (download_trace_state_variables): New.
18134 (upload_fast_traceframes): New.
18135 (IPA_FIRST_TRACEFRAME): New.
18136 (IPA_NEXT_TRACEFRAME_1): New.
18137 (IPA_NEXT_TRACEFRAME): New.
18138 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18139 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18140 (gdb_jump_pad_buffer_end): New.
18141 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18142 (initialize_tracepoint): Adjust.
18143 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18144 buffer. Initialize the low module.
18145 * utils.c (PREFIX, TOOLNAME): New.
18146 (malloc_failure): Use PREFIX.
18147 (error): In the IPA, an error causes an exit.
18148 (fatal, warning): Use PREFIX.
18149 (internal_error): Use TOOLNAME.
18150 (NUMCELLS): Increase to 10.
18151 * configure, config.in: Regenerate.
18152
d149dd1d
PA
181532010-06-01 Pedro Alves <pedro@codesourcery.com>
18154
18155 * server.c (handle_query) <qSupported>: Do two passes over the
18156 qSupported string to avoid nesting strtok.
18157
f6528abd
JK
181582010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18159
18160 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18161 (CDEPS): New.
18162 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18163 -Wl,--dynamic-list.
18164 * configure: Regenerate.
18165 * proc-service.list: New.
18166
ca2a87a0
JK
181672010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18168
18169 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18170 New comment.
18171
363a6e9f
OS
181722010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18173
18174 * gdbreplay.c (remote_open): Check error return from socket() call by
18175 its equality to -1 not by it being negative.
18176 * remote-utils.c (remote_open): Likewise.
18177
d23b6cb1
PA
181782010-05-23 Pedro Alves <pedro@codesourcery.com>
18179
18180 * config.h: Regenerate.
18181
28d3cf85
MK
181822010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18183
18184 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18185 doesn't provide PTRACE_GET_THREAD_AREA.
18186
fea36a59
MK
181872010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18188
18189 * linux-m68k-low.c: Include <asm/ptrace.h>
18190 (ps_get_thread_area): Implement.
18191
24b066ba
DE
181922010-05-03 Doug Evans <dje@google.com>
18193
18194 * event-loop.c (struct callback_event): New struct.
18195 (callback_list): New global.
18196 (append_callback_event, delete_callback_event): New functions.
18197 (process_callback): New function.
18198 (start_event_loop): Call it.
18199 * remote-utils.c (NOT_SCHEDULED): Define.
18200 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18201 moved out of readchar.
18202 (readchar): Rewrite. Call reschedule before returning.
18203 (reset_readchar): New function.
18204 (remote_close): Call it.
18205 (process_remaining, reschedule): New functions.
18206 * server.h (callback_handler_func): New typedef.
18207 (append_callback_event, delete_callback_event): Declare.
18208
9836d6ea
PA
182092010-05-03 Pedro Alves <pedro@codesourcery.com>
18210
18211 * proc-service.c (ps_pglobal_lookup): Use
18212 thread_db_look_up_one_symbol.
18213 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18214 parameter. Use it instead of all_symbols_looked_up.
18215 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18216 field.
18217 (all_symbols_looked_up): Don't declare.
18218 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18219 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18220 field.
18221 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18222 Set all_symbols_looked_up here.
18223 (thread_db_look_up_one_symbol): New.
18224 (thread_db_get_tls_address): Adjust.
18225 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18226 thread_db object on the heap, and tentatively set it in the
18227 process structure.
18228 (thread_db_init): Don't set all_symbols_looked_up here.
18229 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18230
7984d532
PA
182312010-05-03 Pedro Alves <pedro@codesourcery.com>
18232
18233 * linux-low.c (linux_kill, linux_detach): Adjust.
18234 (status_pending_p_callback): Remove redundant statement. Check
18235 for !TARGET_WAITIKIND_IGNORE, instead of
18236 TARGET_WAITKIND_STOPPED.
18237 (handle_tracepoints): Make sure LWP is locked. Adjust.
18238 (linux_wait_for_event_1): Adjust.
18239 (linux_cancel_breakpoints): New.
18240 (unsuspend_one_lwp): New.
18241 (unsuspend_all_lwps): New.
18242 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18243 (send_sigstop_callback): Change return type to int, add new
18244 `except' parameter and handle it.
18245 (suspend_and_send_sigstop_callback): New.
18246 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18247 pass them down. If SUSPEND, also increment the lwp's suspend
18248 count.
18249 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18250 (need_step_over_p): Don't consider suspended LWPs.
18251 (start_step_over): Adjust.
18252 (proceed_one_lwp): Change return type to int, add new `except'
18253 parameter and handle it.
18254 (unsuspend_and_proceed_one_lwp): New.
18255 (proceed_all_lwps): Use find_inferior instead of
18256 for_each_inferior.
18257 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18258 also decrement the suspend count of LWPs. Pass `except' down,
18259 instead of hacking its suspend count.
18260 (linux_pause_all): Add `freeze' parameter. Adjust.
18261 (linux_unpause_all): New.
18262 (linux_target_ops): Install linux_unpause_all.
18263 * server.c (handle_status): Adjust.
18264 * target.h (struct target_ops): New fields `unpause_all' and
18265 `cancel_breakpoints'. Add new parameter to `pause_all'.
18266 (pause_all): Add new `freeze' parameter.
18267 (unpause_all): New.
18268 (cancel_breakpoints): New.
18269 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18270 cancel breakpoints.
18271 (cmd_qtstart): Pause threads.
18272 (stop_tracing): Pause threads, and cancel breakpoints.
18273 * win32-low.c (win32_target_ops): Adjust.
18274
e471f25b
PA
182752010-05-03 Pedro Alves <pedro@codesourcery.com>
18276
18277 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18278 the inferior right away from here...
18279 (linux_wait_1): ... to here, and adjust to check the thread's
18280 last_resume_kind instead of the lwp's step or stop_expected flags.
18281
1915ef4f
PA
182822010-05-02 Pedro Alves <pedro@codesourcery.com>
18283
18284 * README: Use consistent `GDB' and `GDBserver' spellings.
18285
f9e39928
PA
182862010-05-02 Pedro Alves <pedro@codesourcery.com>
18287
18288 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18289 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18290 (linux_detach_one_lwp): Assume the lwp is stopped.
18291 (any_thread_of): Delete.
18292 (linux_detach): Stop all lwps here. Don't blindly delete all
18293 breakpoints.
18294 (delete_lwp_callback): New.
18295 (linux_mourn): Delete all lwps of the process that is gone.
18296 (linux_wait_1): Don't delete the last lwp of the process here.
18297 * mem-break.h (mark_breakpoints_out): Declare.
18298 * mem-break.c (mark_breakpoints_out): New.
18299 (free_all_breakpoints): Use it.
18300 * server.c (handle_target_event): If the process is gone, mark
18301 breakpoints out.
18302 * thread-db.c (struct thread_db) <create_bp>: New field.
18303 (thread_db_enable_reporting): Fix prototype. Store a thread event
18304 breakpoint reference in the thread_db struct.
18305 (thread_db_load_search): Clear the thread_db object.
18306 (try_thread_db_load_1): Ditto.
18307 (switch_to_process): New.
18308 (disable_thread_event_reporting): Use it.
18309 (remove_thread_event_breakpoints): New.
18310 (thread_db_detach, thread_db_mourn): Use it.
18311
1e7fc18c
PA
183122010-05-01 Pedro Alves <pedro@codesourcery.com>
18313
18314 * linux-low.c (linux_enable_event_reporting): New.
18315 (linux_wait_for_event_1, handle_extended_wait): Use it.
18316
02fc4de7
PA
183172010-04-30 Pedro Alves <pedro@codesourcery.com>
18318
18319 * linux-low.c (linux_kill_one_lwp, linux_kill)
18320 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18321 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18322 SIGSTOP even if the LWP is stopped.
18323 (send_sigstop_callback): New.
18324 (stop_all_lwps): Use send_sigstop_callback instead.
18325 (linux_resume_one_thread): Adjust.
18326 (proceed_one_lwp): Still proceed an LWP that the client has
18327 requested to stop, if we haven't reported it as stopped yet. Make
18328 sure that LWPs the client want stopped, have a pending SIGSTOP.
18329
bc3b5632
DE
183302010-04-26 Doug Evans <dje@google.com>
18331
ae1ada35
DE
18332 * server.c (handle_general_set): Make static.
18333
bc3b5632
DE
18334 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18335 Print received char after testing for error/eof instead of before.
18336 (input_interrupt): Tweak comment.
18337
65730243
DE
183382010-04-23 Doug Evans <dje@google.com>
18339
18340 * server.c (start_inferior): Print inferior argv if --debug.
18341
a8ae7dc0
AR
183422010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18343
18344 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18345 * nto-x86-low.c: Include server.h
18346
1c07cc19
PM
183472010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18348
18349 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18350 be consistent with other sources of this directory.
18351 (init_registers_amd64): Correct name of source file of this function
18352 in the comment.
18353
e0a61e09
PM
183542010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18355
18356 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18357 64-bit executables.
18358
54709339
PM
183592010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18360
18361 * win32-i386-low.c: Add 64-bit support.
18362 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18363 (init_registers_amd64): Declare.
18364 (mappings): Add 64-bit version of array.
18365 (init_windows_x86): New function.
18366 (the_low_target): Change init_arch field to init_windows_x86.
18367
e8f0053d
PM
183682010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18369
18370 * win32-low.c: Adapt to support also 64-bit architecture.
18371 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18372 (get_image_name): Use SIZE_T type for local variable `done'.
18373 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18374 (toolhelp_get_dll_name): Idem.
18375 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18376 Use uintptr_t typecast to avoid warning.
18377 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18378 (handle_exception): Use phex_nz to avoid warning.
18379 (win32_wait): Remove unused local variable `process'.
18380
c481e77e
PM
183812010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18382
18383 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18384 `amd64-avx.o'.
18385
12ea4b69
PM
183862010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18387
18388 * configure.ac: Use `ws2_32' library for srv_mingw.
18389 * configure: Regenerate.
18390 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18391 * remote-utils.c: Likewise.
18392
f6d1620c
L
183932010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18394
18395 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18396 if __x86_64__ is defined.
18397
8e642873
PM
183982010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18399
18400 * configure: Regenerate.
18401
711e434b
PM
184022010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18403
18404 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18405 * target.h (target_ops): New get_tib_address field.
18406 * win32-low.h (win32_thread_info): Add thread_local_base field.
18407 * win32-low.c (child_add_thread): Add tlb argument.
18408 Set thread_local_base field to TLB.
18409 (get_child_debug_event): Adapt to child_add_thread change.
18410 (win32_get_tib_address): New function.
18411 (win32_target_ops): Set get_tib_address field to
18412 win32_get_tib_address.
18413 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18414
505106cd
PA
184152010-04-12 Pedro Alves <pedro@codesourcery.com>
18416
505106cd
PA
18417 * linux-low.c (linux_mourn): Also remove the process.
18418 * server.c (handle_target_event): Don't remove the process here.
18419 * nto-low.c (nto_mourn): New.
18420 (nto_target_ops): Install it.
18421 * spu-low.c (spu_mourn): New.
18422 (spu_target_ops): Install it.
18423 * win32-low.c (win32_mourn): New.
18424 (win32_target_ops): Install it.
18425
e8470a06
PA
184262010-04-12 Pedro Alves <pedro@codesourcery.com>
18427
18428 * server.h (buffer_xml_printf): Remove redundant `;'.
18429
45ba0d02
PA
184302010-04-12 Pedro Alves <pedro@codesourcery.com>
18431
18432 * regcache.c (set_register_cache): Invalidate regcaches before
18433 changing the register cache layout.
18434 (regcache_invalidate_one): Allow a NULL regcache.
18435 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18436 regcaches before changing the register cache layout or the target
18437 regsets.
18438
59e04013
L
184392010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18440
18441 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18442 variable warning on Linux/x86-64.
18443
8336d594
PA
184442010-04-11 Pedro Alves <pedro@codesourcery.com>
18445
18446 GDBserver disconnected tracing support.
18447
18448 * linux-low.c (linux_remove_process): Delete.
18449 (add_lwp): Don't set last_resume_kind here.
18450 (linux_kill): Use `mourn'.
18451 (linux_detach): Use `thread_db_detach', and `mourn'.
18452 (linux_mourn): New.
18453 (linux_attach_lwp_1): Adjust comment.
18454 (linux_attach): last_resume_kind moved the thread_info; adjust.
18455 (status_pending_p_callback): Adjust.
18456 (linux_wait_for_event_1): Adjust.
18457 (count_events_callback, select_singlestep_lwp_callback)
18458 (select_event_lwp_callback, cancel_breakpoints_callback)
18459 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18460 (proceed_one_lwp): Adjust.
18461 (linux_async): Add debug output.
18462 (linux_thread_stopped): New.
18463 (linux_pause_all): New.
18464 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18465 linux_pause_all.
18466 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18467 (thread_db_free): Delete declaration.
18468 (thread_db_detach, thread_db_mourn): Declare.
18469 * thread-db.c (thread_db_init): Use thread_db_mourn.
18470 (thread_db_free): Delete, split in two.
18471 (disable_thread_event_reporting): New.
18472 (thread_db_detach): New.
18473 (thread_db_mourn): New.
18474
18475 * server.h (struct thread_info) <last_resume_kind>: New field.
18476 <attached>: Add comment.
18477 <gdb_detached>: New field.
18478 (handler_func): Change return type to int.
18479 (handle_serial_event, handle_target_event): Ditto.
18480 (gdb_connected): Declare.
18481 (tracing): Delete.
18482 (disconnected_tracing): Declare.
18483 (stop_tracing): Declare.
18484
18485 * server.c (handle_query) <qSupported>: Report support for
18486 disconnected tracing.
18487 (queue_stop_reply_callback): Account for running threads.
18488 (gdb_wants_thread_stopped): New.
18489 (gdb_wants_all_threads_stopped): New.
18490 (gdb_reattached_process): New.
18491 (handle_status): Clear the `gdb_detached' flag of all processes.
18492 In all-stop, stop all threads.
18493 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18494 (process_serial_event): If the remote connection breaks, or if an
18495 exit was forced with "monitor exit", force an event loop exit.
18496 Handle disconnected tracing on detach.
18497 (handle_serial_event): Adjust.
18498 (handle_target_event): If GDB isn't connected, forward events back
18499 to the inferior, unless the last process exited, in which case,
18500 exit gdbserver. Adjust interface.
18501
18502 * remote-utils.c (remote_open): Don't block in accept. Instead
18503 register an event loop source on the listen socket file
18504 descriptor. Refactor bits into ...
18505 (listen_desc): ... this new global.
18506 (gdb_connected): ... this new function.
18507 (enable_async_notification): ... this new function.
18508 (handle_accept_event): ... this new function.
18509 (remote_close): Clear remote_desc.
18510
18511 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18512
18513 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18514 New fields.
18515 (mourn_inferior): Define.
18516 (target_process_qsupported): Avoid the dangling else problem.
18517 (thread_stopped): Define.
18518 (pause_all): Define.
18519 (target_waitstatus_to_string): Declare.
18520 * target.c (target_waitstatus_to_string): New.
18521
18522 * tracepoint.c (tracing): Make extern.
18523 (disconnected_tracing): New.
18524 (stop_tracing): Make extern. Handle tracing stops due to GDB
18525 disconnecting.
18526 (cmd_qtdisconnected): New.
18527 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18528 (handle_tracepoint_general_set): Handle QTDisconnected.
18529
18530 * event-loop.c (event_handler_func): Change return type to int.
18531 (process_event): Bail out if the event handler wants the event
18532 loop to stop.
18533 (handle_file_event): Ditto.
18534 (start_event_loop): Bail out if the event handler wants the event
18535 loop to stop.
18536
18537 * nto-low.c (nto_target_ops): Adjust.
18538 * spu-low.c (spu_wait): Don't remove the process here.
18539 (spu_target_ops): Adjust.
18540 * win32-low.c (win32_wait): Don't remove the process here.
18541 (win32_target_ops): Adjust.
18542
5d267c4c
PA
185432010-04-11 Pedro Alves <pedro@codesourcery.com>
18544
18545 * regcache.c (realloc_register_cache): Invalidate inferior's
18546 regcache before recreating it.
18547
623ccd72
PA
185482010-04-09 Pedro Alves <pedro@codesourcery.com>
18549
18550 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18551
219f2f23
PA
185522010-04-09 Stan Shebs <stan@codesourcery.com>
18553 Pedro Alves <pedro@codesourcery.com>
18554
18555 * server.h (LONGEST): New.
18556 (struct thread_info) <while_stepping>: New field.
18557 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18558 Declare.
18559 (initialize_tracepoint, handle_tracepoint_general_set)
18560 (handle_tracepoint_query, tracepoint_finished_step)
18561 (tracepoint_was_hit, release_while_stepping_state_list):
18562 (current_traceframe): Declare.
18563 * server.c (handle_general_set): Handle tracepoint packets.
18564 (read_memory): New.
18565 (write_memory): New.
18566 (handle_search_memory_1): Use read_memory.
18567 (handle_query): Report support for conditional tracepoints, trace
18568 state variables, and tracepoint sources. Handle tracepoint
18569 queries.
18570 (main): Initialize the tracepoints module.
18571 (process_serial_event): Handle traceframe reads/writes.
18572
18573 * linux-low.c (handle_tracepoints): New.
18574 (linux_wait_1): Call it.
18575 (linux_resume_one_lwp): Handle while-stepping.
18576 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18577 (linux_target_ops): Install them.
18578 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18579 New field.
18580 * linux-x86-low.c (x86_supports_tracepoints): New.
18581 (the_low_target). Install it.
18582
18583 * mem-break.h (delete_breakpoint): Declare.
18584 * mem-break.c (delete_breakpoint): Make external.
18585
18586 * target.h (struct target_ops): Add `supports_tracepoints',
18587 `read_pc', and `write_pc' fields.
18588 (target_supports_tracepoints): Define.
18589 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18590 (phex_nz): New.
18591
18592 * regcache.h (struct regcache) <registers_owned>: New field.
18593 (init_register_cache, regcache_cpy): Declare.
18594 (regcache_read_pc, regcache_write_pc): Declare.
18595 (register_cache_size): Declare.
18596 (supply_regblock): Declare.
18597 * regcache.c (init_register_cache): New.
18598 (new_register_cache): Use it.
18599 (regcache_cpy): New.
18600 (register_cache_size): New.
18601 (supply_regblock): New.
18602 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18603
219f2f23
PA
18604 * tracepoint.c: New.
18605
18606 * Makefile.in (OBS): Add tracepoint.o.
18607 (tracepoint.o): New rule.
18608
3a13a53b
L
186092010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18610
18611 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18612 (i386-mmx.o): New.
18613 (i386-mmx.c): Likewise.
18614 (i386-mmx-linux.o): Likewise.
18615 (i386-mmx-linux.c): Likewise.
18616
18617 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18618 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18619 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18620 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18621
18622 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18623 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18624 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18625
1570b33e
L
186262010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18627
18628 * Makefile.in (clean): Updated.
18629 (i386-avx.o): New.
18630 (i386-avx.c): Likewise.
18631 (i386-avx-linux.o): Likewise.
18632 (i386-avx-linux.c): Likewise.
18633 (amd64-avx.o): Likewise.
18634 (amd64-avx.c): Likewise.
18635 (amd64-avx-linux.o): Likewise.
18636 (amd64-avx-linux.c): Likewise.
18637
18638 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18639 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18640 (srv_amd64_regobj): Add amd64-avx.o.
18641 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18642 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18643 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18644 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18645 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18646 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18647 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18648
18649 * i387-fp.c: Include "i386-xstate.h".
18650 (i387_xsave): New.
18651 (i387_cache_to_xsave): Likewise.
18652 (i387_xsave_to_cache): Likewise.
18653 (x86_xcr0): Likewise.
18654
18655 * i387-fp.h (i387_cache_to_xsave): Likewise.
18656 (i387_xsave_to_cache): Likewise.
18657 (x86_xcr0): Likewise.
18658
18659 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18660 * linux-crisv32-low.c (target_regsets): Likewise.
18661 * linux-m68k-low.c (target_regsets): Likewise.
18662 * linux-mips-low.c (target_regsets): Likewise.
18663 * linux-ppc-low.c (target_regsets): Likewise.
18664 * linux-s390-low.c (target_regsets): Likewise.
18665 * linux-sh-low.c (target_regsets): Likewise.
18666 * linux-sparc-low.c (target_regsets): Likewise.
18667 * linux-xtensa-low.c (target_regsets): Likewise.
18668
18669 * linux-low.c: Include <sys/uio.h>.
18670 (regsets_fetch_inferior_registers): Support nt_type.
18671 (regsets_store_inferior_registers): Likewise.
18672 (linux_process_qsupported): New.
18673 (linux_target_ops): Add linux_process_qsupported.
18674
18675 * linux-low.h (regset_info): Add nt_type.
18676 (linux_target_ops): Add process_qsupported.
18677
18678 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18679 and <sys/uio.h>.
18680 (init_registers_i386_avx_linux): New.
18681 (init_registers_amd64_avx_linux): Likewise.
18682 (xmltarget_i386_linux_no_xml): Likewise.
18683 (xmltarget_amd64_linux_no_xml): Likewise.
18684 (PTRACE_GETREGSET): Likewise.
18685 (PTRACE_SETREGSET): Likewise.
18686 (x86_fill_xstateregset): Likewise.
18687 (x86_store_xstateregset): Likewise.
18688 (use_xml): Likewise.
18689 (x86_linux_update_xmltarget): Likewise.
18690 (x86_linux_process_qsupported): Likewise.
18691 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18692 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18693 init_registers_i386_linux here. Call
18694 x86_linux_update_xmltarget.
18695 (the_low_target): Add x86_linux_process_qsupported.
18696
18697 * server.c (handle_query): Call target_process_qsupported.
18698
18699 * target.h (target_ops): Add process_qsupported.
18700 (target_process_qsupported): New.
18701
fc7238bb
PA
187022010-04-03 Pedro Alves <pedro@codesourcery.com>
18703
18704 * inferiors.c (add_thread): Set last_status kind to
18705 TARGET_WAITKIND_IGNORE.
18706 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18707 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18708 (linux_wait_1): Move `thread' local definition to block that uses
18709 it. Don't NULL initialize `event_child'.
18710 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18711 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18712 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18713
bdabb078
PA
187142010-04-01 Pedro Alves <pedro@codesourcery.com>
18715
18716 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18717 an extended waitstatus, or by a watchpoint.
18718 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18719 thread was stepping or has been stopped by a watchpoint.
18720
d3bbe7a0
PA
187212010-04-01 Pedro Alves <pedro@codesourcery.com>
18722
18723 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18724 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18725 of another, then delete the previous, and validate all
18726 breakpoints.
18727 (validate_inserted_breakpoint): New.
18728 (delete_disabled_breakpoints): New.
18729 (validate_breakpoints): New.
18730 (check_mem_read): Validate breakpoints before trusting their
18731 shadow. Delete disabled breakpoints.
18732 (check_mem_write): Validate breakpoints before trusting they
18733 should be inserted. Delete disabled breakpoints.
18734 * mem-break.h (validate_breakpoints):
18735 * server.c (handle_query): Validate breakpoints when we see a
18736 qSymbol query.
18737
8b07ae33
PA
187382010-04-01 Pedro Alves <pedro@codesourcery.com>
18739
18740 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18741 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18742 if we could tell there's a GDB breakpoint at stop_pc.
18743 (need_step_over_p): Don't do a step over if we find a GDB
18744 breakpoint at the resume PC.
18745
18746 * mem-break.c (struct raw_breakpoint): New.
18747 (enum bkpt_type): New type `gdb_breakpoint'.
18748 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18749 fields. New field `raw'.
18750 (find_raw_breakpoint_at): New.
18751 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18752 breakpoint instead.
18753 (set_breakpoint_at): Adjust.
18754 (delete_raw_breakpoint): New.
18755 (release_breakpoint): New.
18756 (delete_breakpoint): Rename to...
18757 (delete_breakpoint_1): ... this. Add proc parameter. Use
18758 release_breakpoint. Return ENOENT.
18759 (delete_breakpoint): Reimplement.
18760 (find_breakpoint_at): Delete.
18761 (find_gdb_breakpoint_at): New.
18762 (delete_breakpoint_at): Delete.
18763 (set_gdb_breakpoint_at): New.
18764 (delete_gdb_breakpoint_at): New.
18765 (gdb_breakpoint_here): New.
18766 (set_reinsert_breakpoint): Use release_breakpoint.
18767 (uninsert_breakpoint): Rename to ...
18768 (uninsert_raw_breakpoint): ... this.
18769 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18770 (reinsert_raw_breakpoint): Change parameter type to
18771 raw_breakpoint.
18772 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18773 instead.
18774 (check_breakpoints): Adjust. Use release_breakpoint.
18775 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18776 (breakpoint_inserted_here): Ditto.
18777 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18778 Don't trust the breakpoint's shadow if it is not inserted.
18779 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18780 (delete_all_breakpoints): Adjust.
18781 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18782 use delete_breakpoint_1.
18783
18784 * mem-break.h (breakpoints_supported): Delete declaration.
18785 (set_gdb_breakpoint_at): Declare.
18786 (gdb_breakpoint_here): Declare.
18787 (delete_breakpoint_at): Delete.
18788 (delete_gdb_breakpoint_at): Declare.
18789
18790 * server.h (struct raw_breakpoint): Forward declare.
18791 (struct process_info): New field `raw_breakpoints'.
18792
18793 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18794 breakpoints.
18795
6bf5e0ba
PA
187962010-03-24 Pedro Alves <pedro@codesourcery.com>
18797
18798 * linux-low.c (status_pending_p_callback): Fix comment.
18799 (linux_wait_for_event_1): Move most of the internal breakpoint
18800 handling from here...
18801 (linux_wait_1): ... to here.
18802 (count_events_callback): New.
18803 (select_singlestep_lwp_callback): New.
18804 (select_event_lwp_callback): New.
18805 (cancel_breakpoints_callback): New.
18806 (select_event_lwp): New.
18807 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18808 priority to all LWPs that have had events that should be reported
18809 to the client. Cancel breakpoints when about to reporting the
18810 event to the client, not while stopping lwps. No longer cancel
18811 finished single-steps here.
18812 (cancel_finished_single_step): Delete.
18813 (cancel_finished_single_steps): Delete.
18814
414a389f
PA
188152010-03-24 Pedro Alves <pedro@codesourcery.com>
18816
18817 * mem-break.c (enum bkpt_type): New.
18818 (struct breakpoint): New field `type'.
18819 (set_breakpoint_at): Change return type to struct breakpoint
18820 pointer. Set type to `other_breakpoint' by default.
18821 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18822 in the breakpoint list.
18823 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18824 (reinsert_breakpoint): Rename to ...
18825 (reinsert_raw_breakpoint): ... this.
18826 (reinsert_breakpoints_at): Adjust.
18827 * mem-break.h (struct breakpoint): Declare.
18828 (set_breakpoint_at): Change return type to struct breakpoint
18829 pointer.
18830
2280c721
PA
188312010-03-24 Pedro Alves <pedro@codesourcery.com>
18832
18833 * server.c (handle_query): Assign, not compare.
18834
d50171e4
PA
188352010-03-24 Pedro Alves <pedro@codesourcery.com>
18836
18837 Teach linux gdbserver to step-over-breakpoints.
18838
18839 * linux-low.c (can_hardware_single_step): New.
18840 (supports_breakpoints): New.
18841 (handle_extended_wait): If stopping threads, read the stop pc of
18842 the new cloned LWP.
18843 (get_pc): New.
18844 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18845 low target doesn't support retrieving the PC.
18846 (add_lwp): Set last_resume_kind to resume_continue.
18847 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18848 (linux_attach): Don't clear stop_expected. Set the lwp's
18849 last_resume_kind to resume_stop.
18850 (linux_detach_one_lwp): Don't check for removed breakpoints.
18851 (check_removed_breakpoint): Delete.
18852 (status_pending_p): Rename to ...
18853 (status_pending_p_callback): ... this. Don't check for removed
18854 breakpoints. Don't consider threads that are stopped from GDB's
18855 perspective.
18856 (linux_wait_for_lwp): Always read the stop_pc here.
18857 (cancel_breakpoint): New.
18858 (step_over_bkpt): New global.
18859 (linux_wait_for_event_1): Implement stepping over breakpoints.
18860 (gdb_wants_lwp_stopped): New.
18861 (gdb_wants_all_stopped): New.
18862 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18863 single-step traps here. Store the thread's last reported target
18864 wait status.
18865 (send_sigstop): Don't clear stop_expected. Always set it,
18866 instead.
18867 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18868 (cancel_finished_single_step): New.
18869 (cancel_finished_single_steps): New.
18870 (wait_for_sigstop): Don't cancel finished single-step traps here.
18871 (linux_resume_one_lwp): Don't check for removed breakpoints.
18872 Don't set `step' on non-hardware step archs.
18873 (linux_set_resume_request): Ignore resume_stop requests if already
18874 stopping or stopped. Set the lwp's last_resume_kind.
18875 (resume_status_pending_p): Don't check for removed breakpoints.
18876 (need_step_over_p): New.
18877 (start_step_over): New.
18878 (finish_step_over): New.
18879 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18880 requests. Clear the thread's last reported target waitstatus.
18881 Don't use the `suspended' flag. Don't consider pending breakpoints.
18882 (linux_resume): Start a step-over if necessary.
18883 (proceed_one_lwp): New.
18884 (proceed_all_lwps): New.
18885 (unstop_all_lwps): New.
18886 * linux-low.h (struct lwp_info): Rewrite comment for the
18887 `suspended' flag. Add the `stop_pc' field. Delete the
18888 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18889 Add `'last_resume_kind' and `need_step_over' fields.
18890 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18891 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18892 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18893 (set_raw_breakpoint_at): New.
18894 (set_breakpoint_at): Rewrite to use it.
18895 (reinsert_breakpoint_handler): Delete.
18896 (set_reinsert_breakpoint): New.
18897 (reinsert_breakpoint_by_bp): Delete.
18898 (delete_reinsert_breakpoints): New.
18899 (uninsert_breakpoint): Rewrite.
18900 (uninsert_breakpoints_at): New.
18901 (reinsert_breakpoint): Rewrite.
18902 (reinsert_breakpoints_at): New.
18903 (check_breakpoints): Rewrite.
18904 (breakpoint_here): New.
18905 (breakpoint_inserted_here): New.
18906 (check_mem_read): Adjust.
18907 * mem-break.h (breakpoints_supported, breakpoint_here)
18908 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18909 (reinsert_breakpoint_by_bp): Delete declaration.
18910 (delete_reinsert_breakpoints): Declare.
18911 (reinsert_breakpoint): Delete declaration.
18912 (reinsert_breakpoints_at): Declare.
18913 (uninsert_breakpoint): Delete declaration.
18914 (uninsert_breakpoints_at): Declare.
18915 (check_breakpoints): Adjust prototype.
18916 * server.h: Adjust include order.
18917 (struct thread_info): Declare here. Add a `last_status' field.
18918
30ba68cb
MS
189192010-03-23 Michael Snyder <msnyder@vmware.com>
18920
18921 * server.c (crc32): New function.
18922 (handle_query): Add handling for 'qCRC:' request.
18923
b9a881c2
PA
189242010-03-23 Pedro Alves <pedro@codesourcery.com>
18925
18926 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18927 lwp had been stopped by a watchpoint.
18928
e92d13d5
PA
189292010-03-16 Pedro Alves <pedro@codesourcery.com>
18930
18931 * server.h (internal_error): Declare.
18932 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18933 * utils.c (internal_error): New function.
18934
64daa791
AS
189352010-03-15 Andreas Schwab <schwab@redhat.com>
18936
18937 * configure.srv: Fix typo setting srv_regobj.
18938
f52cd8cd
PA
189392010-03-15 Pedro Alves <pedro@codesourcery.com>
18940
18941 * linux-low.c (fetch_register): Avoid passing a non string literal
18942 format to `error'.
18943 (usr_store_inferior_registers): Ditto.
18944
93ae6fdc
PA
189452010-03-14 Pedro Alves <pedro@codesourcery.com>
18946
18947 * linux-low.c (linux_write_memory): Bail out early if peeking
18948 memory failed.
18949
c3adc08c
PA
189502010-03-14 Pedro Alves <pedro@codesourcery.com>
18951
18952 * linux-low.h (struct lwp_info): New fields
18953 `stopped_by_watchpoint' and `stopped_data_address'.
18954 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18955 here, and cache them in the lwp object.
18956 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18957 directly.
18958 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18959 field.
18960 (linux_stopped_by_watchpoint): Rewrite.
18961 (linux_stopped_data_address): Rewrite.
18962
bce522a2
PA
189632010-03-06 Simo Melenius <simo.melenius@iki.fi>
18964
18965 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18966 switching the current inferior, not before.
18967
90884b2b
L
189682010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18969
18970 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18971 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18972 i386-linux.c and amd64-linux.c.
18973 (reg-i386.o): Removed.
18974 (reg-i386.c): Likewise.
18975 (reg-i386-linux.o): Likewise.
18976 (reg-i386-linux.c): Likewise.
18977 (reg-x86-64.o): Likewise.
18978 (reg-x86-64.c): Likewise.
18979 (reg-x86-64-linux.o): Likewise.
18980 (reg-x86-64-linux.c): Likewise.
18981 (i386.o): New.
18982 (i386.c): Likewise.
18983 (i386-linux.o): Likewise.
18984 (i386-linux.c): Likewise.
18985 (amd64.o): Likewise.
18986 (amd64.c): Likewise.
18987 (amd64-linux.o): Likewise.
18988 (amd64-linux.c): Likewise.
18989
18990 * configure.srv (srv_i386_regobj): New.
18991 (srv_i386_linux_regobj): Likewise.
18992 (srv_amd64_regobj): Likewise.
18993 (srv_amd64_linux_regobj): Likewise.
18994 (srv_i386_32bit_xmlfiles): Likewise.
18995 (srv_i386_64bit_xmlfiles): Likewise.
18996 (srv_i386_xmlfiles): Likewise.
18997 (srv_amd64_xmlfiles): Likewise.
18998 (srv_i386_linux_xmlfiles): Likewise.
18999 (srv_amd64_linux_xmlfiles): Likewise.
19000 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
19001 srv_xmlfiles to $srv_i386_xmlfiles.
19002 (i[34567]86-*-mingw32ce*): Likewise.
19003 (i[34567]86-*-mingw*): Likewise.
19004 (i[34567]86-*-nto*): Likewise.
19005 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
19006 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
19007 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
19008 (x86_64-*-linux*): Likewise.
19009
19010 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
19011 (init_registers_amd64_linux): New.
19012 (x86_arch_setup): Replace init_registers_x86_64_linux with
19013 init_registers_amd64_linux.
19014
193f13e6
MK
190152010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
19016
19017 * configure.ac: Check for libdl. If it is not available link against
19018 static libthread_db.
19019 * configure: Regenerate.
19020
85d721b8
PA
190212010-02-22 Pedro Alves <pedro@codesourcery.com>
19022
19023 PR9605
19024
19025 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
19026 handing a read watchpoint.
19027 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
19028
6076632b
DE
190292010-02-12 Doug Evans <dje@google.com>
19030
19031 * linux-low.c (linux_supports_tracefork_flag): Document.
19032 (linux_look_up_symbols): Add comment.
19033
3327ccf7
L
190342010-02-03 H.J. Lu <hongjiu.lu@intel.com>
19035
19036 * regcache.c (supply_register): Clear regcache if buf is NULL.
19037
0718675c 190382010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 19039 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
19040
19041 * inferiors.c (find_inferior): Add function documentation.
19042 (unloaded_dll): Handle the case where the unloaded dll has not
19043 been previously registered in the dll list.
19044
177321bd
DJ
190452010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19046
19047 * linux-arm-low.c (thumb_breakpoint_len): Delete.
19048 (thumb2_breakpoint): New.
19049 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
19050
2b009048
DJ
190512010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19052
19053 * linux-low.c (get_stop_pc): Check for SIGTRAP.
19054 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
19055 breakpoints.
19056
3be029c7
PA
190572010-01-21 Pedro Alves <pedro@codesourcery.com>
19058
19059 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
19060
18f5de3b
JK
190612010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19062
19063 * linux-s390-low.c (s390_collect_ptrace_register)
19064 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
19065
3743bb4f
DE
190662010-01-21 Doug Evans <dje@google.com>
19067
14ce3065
DE
19068 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19069 (PTRACE_ARG4_TYPE): New macro.
19070 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19071 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19072 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19073 (usr_store_inferior_registers): Ditto.
19074 (linux_read_memory, linux_write_memory): Ditto.
19075 (linux_test_for_tracefork): Ditto.
19076
3743bb4f
DE
19077 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19078 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19079
8b315be5
PA
190802010-01-21 Pedro Alves <pedro@codesourcery.com>
19081
19082 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19083 target.
19084
85492558
PA
190852010-01-21 Pedro Alves <pedro@codesourcery.com>
19086
19087 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19088 prototype to take a regcache. Adjust.
19089
442ea881
PA
190902010-01-20 Pedro Alves <pedro@codesourcery.com>
19091
19092 * regcache.h (struct thread_info): Forward declare.
19093 (struct regcache): New.
19094 (new_register_cache): Adjust prototype.
19095 (get_thread_regcache): Declare.
19096 (free_register_cache): Adjust prototype.
19097 (registers_to_string, registers_from_string): Ditto.
19098 (supply_register, supply_register_by_name, collect_register)
19099 (collect_register_as_string, collect_register_by_name): Ditto.
19100 * regcache.c (struct inferior_regcache_data): Delete.
19101 (get_regcache): Rename to ...
19102 (get_thread_regcache): ... this. Adjust. Switch inferior before
19103 fetching registers.
19104 (regcache_invalidate_one): Adjust.
19105 (regcache_invalidate): Fix prototype.
19106 (new_register_cache): Return the new register cache.
19107 (free_register_cache): Change prototype.
19108 (realloc_register_cache): Adjust.
19109 (registers_to_string): Change prototype to take a regcache. Adjust.
19110 (registers_from_string): Ditto.
19111 (register_data): Ditto.
19112 (supply_register): Ditto.
19113 (supply_register_by_name): Ditto.
19114 (collect_register): Ditto.
19115 (collect_register_as_string): Ditto.
19116 (collect_register_by_name): Ditto.
19117 * server.c (process_serial_event): Adjust.
19118 * linux-low.h (regset_fill_func, regset_store_func): Change
19119 prototype.
19120 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19121 Change prototype.
19122 * linux-low.c (get_stop_pc): Adjust.
19123 (check_removed_breakpoint): Adjust.
19124 (linux_wait_for_event): Adjust.
19125 (linux_resume_one_lwp): Adjust.
19126 (fetch_register): Add regcache parameter. Adjust.
19127 (usr_store_inferior_registers): Ditto.
19128 (regsets_fetch_inferior_registers): Ditto.
19129 (regsets_store_inferior_registers): Ditto.
19130 (linux_fetch_registers, linux_store_registers): Ditto.
19131 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19132 regcache. Adjust.
43aaf8b6
PA
19133 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19134 Ditto.
442ea881
PA
19135 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19136 prototype to take a regcache.
19137 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19138 * remote-utils.c (convert_ascii_to_int, outreg)
19139 (prepare_resume_reply): Change prototype to take a regcache.
19140 Adjust.
19141 * target.h (struct target_ops) <fetch_registers, store_registers>:
19142 Change prototype to take a regcache.
19143 (fetch_inferior_registers, store_inferior_registers): Change
19144 prototype to take a regcache. Adjust.
19145 * proc-service.c (ps_lgetregs): Adjust.
19146 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19147 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19148 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19149 take a regcache. Adjust.
19150 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19151 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19152 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19153 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19154 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19155 (cris_cannot_fetch_register):
19156 (cris_breakpoint_at): Change prototype to take a regcache.
19157 Adjust.
19158 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19159 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19160 to take a regcache. Adjust.
19161 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19162 Adjust.
19163 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19164 take a regcache. Adjust.
19165 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19166 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19167 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19168 * linux-mips-low.c (mips_get_pc):
19169 (mips_set_pc): Change prototype to take a regcache. Adjust.
19170 (mips_reinsert_addr): Adjust.
19171 (mips_collect_register): Change prototype to take a regcache.
19172 Adjust.
19173 (mips_supply_register):
19174 (mips_collect_register_32bit, mips_supply_register_32bit)
19175 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19176 (mips_store_fpregset): Ditto.
43aaf8b6
PA
19177 * linux-ppc-low.c (ppc_supply_ptrace_register)
19178 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
19179 (parse_spufs_run): Adjust.
19180 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19181 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19182 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19183 take a regcache. Adjust.
19184 * linux-s390-low.c (s390_collect_ptrace_register)
19185 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19186 (s390_set_pc): Change prototype to take a regcache. Adjust.
19187 (s390_arch_setup): Adjust.
19188 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19189 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19190 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19191 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19192 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19193 regcache. Adjust.
19194 (sparc_breakpoint_at): Adjust.
19195 * linux-xtensa-low.c (xtensa_fill_gregset):
19196 (xtensa_store_gregset):
19197 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19198 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19199 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19200 prototype to take a regcache. Adjust.
19201 * win32-arm-low.c (arm_fetch_inferior_register)
19202 (arm_store_inferior_register): Change prototype to take a
19203 regcache. Adjust.
19204 * win32-i386-low.c (i386_fetch_inferior_register)
19205 (i386_store_inferior_register): Change prototype to take a
19206 regcache. Adjust.
19207 * win32-low.c (child_fetch_inferior_registers)
19208 (child_store_inferior_registers): Change prototype to take a
19209 regcache. Adjust.
19210 (win32_wait): Adjust.
19211 (win32_fetch_inferior_registers): Change prototype to take a
19212 regcache. Adjust.
19213 (win32_store_inferior_registers): Adjust.
19214 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19215 store_inferior_register>: Change prototype to take a regcache.
19216
60c3d7b0
DE
192172010-01-20 Doug Evans <dje@google.com>
19218
19219 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19220 #ifdef.
19221 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 19222 (W_STOPCODE): Provide definition if missing.
60c3d7b0 19223
dc146f7c
VP
192242010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19225
19226 * linux-low.c (linux_core_of_thread): New.
19227 (compare_ints, show_process, list_threads): New.
19228 (linux_qxfer_osdata): Report threads and cores.
19229 (linux_target_op): Register linux_core_of_thread.
19230 * remote-utils.c (prepare_resume_reply): Report the core.
19231 (buffer_xml_printf): Support %d specifier.
19232 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19233 New.
19234 (handle_query): Handle qXfer:threads. Announce availability
19235 thereof.
19236 * target.h (struct target_ops): New field core_of_thread.
19237
7803799a
UW
192382010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19239
19240 * Makefile.in (clean): Remove new generated files.
19241 (reg-s390.o, reg-s390.c): Remove rules.
19242 (reg-s390x.o, reg-s390x.c): Likewise.
19243 (s390-linux32.o, s390-linux32.c): Add rules.
19244 (s390-linux64.o, s390-linux64.c): Likewise.
19245 (s390x-linux64.o, s390x-linux64.c): Likewise.
19246 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19247 * linux-s390-low.c: Include <elf.h>.
19248 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19249 (init_registers_s390): Remove prototype.
19250 (init_registers_s390x): Likewise.
19251 (init_registers_s390_linux32): Add prototype.
19252 (init_registers_s390_linux64): Likewise.
19253 (init_registers_s390x_linux64): Likewise.
19254 (s390_num_regs_3264): New define.
19255 (s390_regmap_3264): New global variable.
19256 (s390_cannot_fetch_register): Remove obsolete check.
19257 (s390_cannot_store_register): Likewise.
19258 (s390_collect_ptrace_register): Handle upper/lower register halves.
19259 (s390_supply_ptrace_register): Likewise.
19260 (s390_fill_gregset): Update to register number changes.
19261 (s390_get_hwcap): New routine.
19262 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19263 Install appropriate regmap and register set.
19264
6e7ffa39
JB
192652010-01-01 Joel Brobecker <brobecker@adacore.com>
19266
19267 * server.c (gdbserver_version): Update copyright year to 2010.
19268 * gdbreplay.c (gdbreplay_version): Likewise.
19269
957f3f49
DE
192702009-12-28 Doug Evans <dje@google.com>
19271
19272 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19273 elf/external.h. Include <elf.h> instead but only if necessary.
19274
ca5c370d
PA
192752009-12-28 Pedro Alves <pedro@codesourcery.com>
19276
19277 * linux-low.c (linux_remove_process): Remove `detaching'
19278 parameter. Don't release/detach from thread_db here.
19279 (linux_kill): Release/detach from thread_db here, ...
19280 (linux_detach): ... and here, before actually detaching.
19281 (linux_wait_1): ... and here, when a process exits.
19282 * thread-db.c (any_thread_of): New.
19283 (thread_db_free): Switch the current inferior to a thread of the
19284 passed in process.
19285
4ee62156
DE
192862009-12-21 Doug Evans <dje@google.com>
19287
d90e6a88
DE
19288 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19289
c5f62d5f
DE
19290 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19291 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19292 warning ifndef __NR_tkill. Move setting of errno there too.
19293 Delete unnecessary resetting of errno after syscall.
19294 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19295
10e86dd7
DE
19296 * configure.ac: Check for dladdr.
19297 * config.in: Regenerate.
19298 * configure: Regenerate.
19299 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19300 (try_thread_db_load): Update.
19301
4ee62156
DE
19302 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19303
00f515da
DE
193042009-12-18 Doug Evans <dje@google.com>
19305
e9464885
DE
19306 * event-loop.c: Include unistd.h if it exists.
19307
07d4f67e
DE
19308 * linux-low.c (my_waitpid): Move definition away from being in
19309 between linux_tracefork_child/linux_test_for_tracefork.
19310
00f515da
DE
19311 * gdb_proc_service.h (psaddr_t): Fix type.
19312 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19313 signature to match glibc.
19314
1de1badb
DE
193152009-12-16 Doug Evans <dje@google.com>
19316
19317 * linux-low.c (linux_read_memory): Fix argument to read.
19318
aeeb81d1
PA
193192009-11-26 Pedro Alves <pedro@codesourcery.com>
19320
19321 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19322 events, don't leave current_inferior pointing at null.
19323
10357975
PA
193242009-11-26 Pedro Alves <pedro@codesourcery.com>
19325
19326 * win32-low.c (LOG): Delete.
19327 (OUTMSG): Output to stderr.
19328 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19329 on compile time LOG macro.
19330 (win32_wait): Fix debug output.
19331
cf6e3471
PA
193322009-11-26 Pedro Alves <pedro@codesourcery.com>
19333
19334 * win32-low.c (win32_add_one_solib): If the dll name is
19335 "ntdll.dll", prepend the system directory to the dll path.
19336
0c85e18e
MK
193372009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19338
19339 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19340
9ac544ce 193412009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 19342 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
19343
19344 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19345 * configure.ac: Check for __mcoldfire__ and set
19346 gdb_cv_m68k_is_coldfire.
19347 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19348 reg-cf.o and reg-m68k.o.
19349 * configure: Regenerated.
19350
fd7dd3e6
PA
193512009-11-16 Pedro Alves <pedro@codesourcery.com>
19352
19353 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19354 Pass it to thread_db_free.
19355 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19356 proper `detaching' argument to linux_remove_process.
19357 * linux-low.h (thread_db_free): Add `detaching' parameter.
19358 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19359 to thread_db_free.
19360 (thread_db_free): Add `detaching' parameter. Only
19361 call td_ta_clear_event if detaching from process.
19362
75aa492e
MK
193632009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19364
19365 * thread-db.c (thread_db_free): Fix typo.
19366
21e1bee4
PP
193672009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19368
19369 PR gdb/10838
19370 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19371
8838b45e
NS
193722009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19373
19374 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19375 with an i686 compiler.
19376 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19377 needed.
19378 * configure: Rebuilt.
19379
8a35fb51
SL
193802009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19381
19382 PR gdb/10783
19383
19384 * server.c (handle_search_memory_1): Correct read_addr initialization
19385 in loop for searching subsequent chunks.
19386
96f15937
PP
193872009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19388
19389 * configure.ac: New --with-libthread-db option.
19390 * thread-db.c: Allow direct dependence on libthread_db.
19391 (thread_db_free): Adjust.
19392 * config.in: Regenerate.
19393 * configure: Likewise.
889bf7c5 19394
5f7d1694
PP
193952009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19396
19397 PR gdb/10757
19398 * thread-db.c (attach_thread): New function.
19399 (maybe_attach_thread): Return success/failure.
19400 (find_new_threads_callback): Adjust.
889bf7c5
PA
19401 (thread_db_find_new_threads): Loop until no new threads.
19402
88e3b899
PA
194032009-10-13 Pedro Alves <pedro@codesourcery.com>
19404
19405 * proc-service.c (ps_lgetregs): Formatting.
19406
cdbfd419
PP
194072009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19408
19409 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19410 * configure.ac: Adjust.
19411 * linux-low.h (struct process_info_private): Move members to struct
19412 thread_db.
19413 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19414 * linux-low.c (linux_remove_process): Adjust.
19415 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19416 * server.c (handle_query): Move code ...
19417 (handle_monitor_command): ... here. New function.
19418 * target.h (struct target_ops): New member.
19419 * thread-db.c (struct thread_db): New.
19420 (libthread_db_search_path): New variable.
19421 (thread_db_create_event, thread_db_enable_reporting)
19422 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19423 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19424 (try_thread_db_load_1, dladdr_to_soname): New functions.
19425 (try_thread_db_load, thread_db_load_search): New functions.
19426 (thread_db_init): Search for libthread_db.
19427 (thread_db_free): New function.
19428 (thread_db_handle_monitor_command): Likewise.
19429 * config.in: Regenerate.
19430 * configure: Regenerate.
889bf7c5 19431
4168d2d6
UW
194322009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19433
19434 * spu-low.c (spu_kill): Wait for inferior to terminate.
19435 Call clear_inferiors.
19436 (spu_detach): Call clear_inferiors.
19437
81ecdfbb
RW
194382009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19439
19440 * aclocal.m4: Regenerate.
19441 * config.in: Likewise.
19442 * configure: Likewise.
19443
0b9ff2c0
UW
194442009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19445
19446 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19447 (parse_spufs_run): New function.
19448 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19449 (ppc_breakpoint_at): Handle SPU breakpoints.
19450
efcbbd14
UW
194512009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19452
19453 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19454 (SPUFS_MAGIC): Define.
19455 (spu_enumerate_spu_ids): New function.
19456 (linux_qxfer_spu): New function.
19457 (linux_target_ops): Install linux_qxfer_spu.
19458
f4d9bade
UW
194592009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19460
19461 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19462 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19463 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19464 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19465 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19466 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19467 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19468 (init_registers_powerpc_cell32l): Add prototype.
19469 (init_registers_powerpc_cell64l): Likewise.
19470 (ppc_arch_setup): Detect Cell/B.E. architecture.
19471
96e946ca
RW
194722009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19473
19474 * Makefile.in (datarootdir): New variable.
19475
58d6951d
DJ
194762009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19477
19478 * linux-low.c (linux_write_memory): Update debugging output.
19479 * Makefile.in (clean): Add new descriptions.
19480 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19481 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19482 * configure.srv: Add new files for arm*-*-linux*.
19483 * linux-arm-low.c: Add new declarations.
19484 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19485 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19486 (HWCAP_VFPv3D16): New.
19487 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19488 instead of __IWMMXT__.
19489 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19490 (arm_arch_setup): New.
19491 (target_regsets): Remove #ifdef. Add VFP regset.
19492 (the_low_target): Use arm_arch_setup.
19493
12b42a12
DJ
194942009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19495
19496 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19497 the main thread again.
19498
ac8c974e
AR
194992009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19500
19501 Adding Neutrino gdbserver.
19502 * configure: Regenerated.
19503 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19504 * configure.srv (i[34567]86-*-nto*): New target.
19505 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19506 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19507 (nto_comctrl) [__QNX__]: New function.
19508 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19509
4424e0c3 195102009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19511
19512 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19513 srv_tgtobj.
19514
912cf4ba
PA
195152009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19516 Pedro Alves <pedro@codesourcery.com>
19517
19518 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19519 don't support CONTEXT_EXTENDED_REGISTERS.
19520 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19521 (the_low_target): Install them.
19522 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19523 failing with ERROR_PIPE_NOT_CONNECTED.
19524
aa5ca48f
DE
195252009-06-30 Doug Evans <dje@google.com>
19526 Pierre Muller <muller@ics.u-strasbg.fr>
19527
19528 Add h/w watchpoint support to x86-linux, win32-i386.
19529 * Makefile.in (SFILES): Add i386-low.c
19530 (i386_low_h): Define.
19531 (i386-low.o): Add dependencies.
19532 (linux-x86-low.o): Add i386-low.h dependency.
19533 (win32-i386-low.o): Ditto.
19534 * i386-low.c: New file.
19535 * i386-low.h: New file.
19536 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19537 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19538 * linux-low.c (linux_add_process): Initialize arch_private.
19539 (linux_remove_process): Free arch_private.
19540 (add_lwp): Initialize arch_private.
19541 (delete_lwp): Free arch_private.
19542 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19543 provided.
19544 * linux-low.h (process_info_private): New member arch_private.
19545 (lwp_info): New member arch_private.
19546 (linux_target_ops): New members new_process, new_thread,
19547 prepare_to_resume.
19548 (ptid_of): New macro.
19549 * linux-x86-low.c: Include stddef.h, i386-low.h.
19550 (arch_process_info): New struct.
19551 (arch_lwp_info): New struct.
19552 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19553 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19554 (i386_dr_low_get_status): New function.
19555 (x86_insert_point, x86_remove_point): New functions.
19556 (x86_stopped_by_watchpoint): New function.
19557 (x86_stopped_data_address): New function.
19558 (x86_linux_new_process, x86_linux_new_thread): New functions.
19559 (x86_linux_prepare_to_resume): New function.
19560 (the_low_target): Add entries for insert_point, remove_point,
19561 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19562 prepare_to_resume.
19563 * server.c (debug_hw_points): New global.
19564 (monitor_show_help): Document set debug-hw-points.
19565 (handle_query): Process "set debug-hw-points".
19566 * server.h (debug_hw_points): Declare.
19567 (paddress): Declare.
19568 * utils.c (NUMCELLS, CELLSIZE): New macros.
19569 (get_sell, xsnprintf, paddress): New functions.
19570 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19571 remove_point, stopped_by_watchpoint, stopped_data_address.
19572 * win32-i386-low.c: Include i386-low.h.
19573 (debug_reg_state): Replaces dr.
19574 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19575 (i386_dr_low_get_status): New function.
19576 (i386_insert_point, i386_remove_point): New functions.
19577 (i386_stopped_by_watchpoint): New function.
19578 (i386_stopped_data_address): New function.
19579 (i386_initial_stuff): Update.
19580 (get_thread_context,set_thread_context,i386_thread_added): Update.
19581 (the_low_target): Add entries for insert_point,
19582 remove_point, stopped_by_watchpoint, stopped_data_address.
19583 * win32-low.c (win32_insert_watchpoint): New function.
19584 (win32_remove_watchpoint): New function.
19585 (win32_stopped_by_watchpoint): New function.
19586 (win32_stopped_data_address): New function.
19587 (win32_target_ops): Add entries for insert_watchpoint,
19588 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19589 * win32-low.h (win32_target_ops): New members insert_point,
19590 remove_point, stopped_by_watchpoint, stopped_data_address.
19591
d993e290
PA
195922009-06-25 Pedro Alves <pedro@codesourcery.com>
19593
19594 * server.c (process_serial_event): Re-return unsupported, not
19595 error, if the type isn't recognized. Re-allow supporting only
19596 insert or remove packets. Also call require_running for
19597 breakpoints. Add missing break statement to default case. Tidy.
19598 * target.h (struct target_ops): Rename insert_watchpoint to
19599 insert_point, and remove_watchpoint to remove_point.
19600
19601 * linux-low.h (struct linux_target_ops): Likewise.
19602 * linux-low.c (linux_insert_watchpoint): Rename to ...
19603 (linux_insert_point): ... this. Adjust.
19604 (linux_remove_watchpoint): Rename to ...
19605 (linux_remove_point): ... this. Adjust.
19606 (linux_target_ops): Adjust.
19607 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19608 (cris_insert_point): ... this.
19609 (cris_remove_watchpoint): Rename to ...
19610 (cris_remove_point): ... this.
19611 (the_low_target): Adjust.
19612
0f54c268
PM
196132009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19614
19615 * server.c (handle_v_kill): Pass signal_pid to
19616 kill_inferior if multi_process is zero.
19617
c6314022
AR
196182009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19619
19620 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19621 * target.h (target_ops): Comment for *_watchpoint to make it clear
19622 the functions can get types '0' and '1'.
19623
4463ce24
AR
196242009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19625
19626 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19627 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19628 * regcache.c (get_regcache): Likewise.
19629 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19630 * win32-low.c (child_fetch_inferior_registers): Remove check for
19631 regno 0.
19632
cf8fd78b
PA
196332009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19634 Pedro Alves <pedro@codesourcery.com>
19635
19636 * target.h (struct target_ops) <supports_multi_process>: New
19637 callback.
19638 (target_supports_multi_process): New.
19639 * server.c (handle_query): Even if GDB reports support, only
19640 enable multi-process if the target also supports it. Report
19641 multi-process support only if the target backend supports it.
19642 * linux-low.c (linux_supports_multi_process): New function.
19643 (linux_target_ops): Install it as target_supports_multi_process
19644 callback.
19645
47c0c975
DE
196462009-05-24 Doug Evans <dje@google.com>
19647
e09875d4
DE
19648 Global renaming of find_thread_pid to find_thread_ptid.
19649 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19650 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19651 All callers updated.
19652
e27d73f6
DE
19653 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19654 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19655 directly.
19656
47c0c975
DE
19657 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19658 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19659 (linux_resume_one_lwp): Ditto.
19660
2acc282a
DE
196612009-05-23 Doug Evans <dje@google.com>
19662
19663 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19664 from struct inferior_list_entry * to struct lwp_info *.
19665 All callers updated.
19666
9f1036c1
DE
196672009-05-13 Doug Evans <dje@google.com>
19668
19669 * linux-x86-low.c: Don't include assert.h.
19670 (x86_siginfo_fixup): Use fatal, not assert.
19671 (x86_arch_setup): Fix comment.
19672
d0722149
DE
196732009-05-12 Doug Evans <dje@google.com>
19674
19675 Biarch support for i386/amd64 gdbserver.
19676 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19677 Add linux-x86-low.c.
19678 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19679 (linux-x86-low.o): Add.
19680 * linux-x86-64-low.c: Delete.
19681 * linux-i386-low.c: Delete.
19682 * linux-x86-low.c: New file.
19683 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19684 linux-x86-low.o.
19685 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19686 linux-x86-low.o.
19687 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19688 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19689 (linux_child_pid_to_exec_file): New function.
19690 (elf_64_header_p, elf_64_file_p): New functions.
19691 (siginfo_fixup): New function.
19692 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19693 give target a chance to convert layout.
19694 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19695 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19696
fdeb2a12
DE
196972009-05-07 Doug Evans <dje@google.com>
19698
19699 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19700 (regsets_store_inferior_registers): Ditto.
19701
a6dbe5df
PA
197022009-05-06 Pedro Alves <pedro@codesourcery.com>
19703
19704 PR server/10048
19705
19706 * linux-low.c (must_set_ptrace_flags): Delete.
19707 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19708 of the global.
19709 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19710 `lwp->must_set_ptrace_flags' instead.
ba42693b 19711 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19712 (linux_wait_1): ... not here.
19713
5091eb23
DE
197142009-04-30 Doug Evans <dje@google.com>
19715
9f767825
DE
19716 * inferiors.c (started_inferior_callback): New function.
19717 (attached_inferior_callback): New function.
19718 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19719 * server.c (print_started_pid, print_attached_pid): New functions.
19720 (detach_or_kill_for_exit): New function.
19721 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19722 * server.h (have_started_inferiors_p): Declare.
19723 (have_attached_inferiors_p): Declare.
19724
5091eb23
DE
19725 * inferiors.c (remove_process): Fix memory leak, free process.
19726 * linux-low.c (linux_remove_process): New function.
19727 (linux_kill): Call it instead of remove_process.
19728 (linux_detach, linux_wait_1): Ditto.
19729
155c8968
PA
197302009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19731
19732 * configure.srv: Add x86 Windows CE target.
19733
7fe519cb
UW
197342009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19735
19736 * inferiors.c (get_thread_process): Make global.
19737 * server.h (get_thread_process): Add prototype.
19738 * thread-db.c (find_one_thread): Use get_thread_process
19739 instead of current_process.
19740 (thread_db_get_tls_address): Do not crash if called when
19741 thread layer is not yet initialized.
19742
5472f405
UW
197432009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19744
19745 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19746 * spu-low.c (current_tid): Rename to ...
19747 (current_ptid): ... this.
19748 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19749 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19750 ptid_get_lwp (current_ptid) instead of current_tid.
19751 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19752 instead of current_tid. Use find_process_pid to verify pid
19753 argument is valid. Pass proper argument to remove_process.
19754 (spu_thread_alive): Compare current_ptid instead of current_tid.
19755 (spu_resume): Likewise.
19756
55ac2b99
PA
197572009-04-02 Pedro Alves <pedro@codesourcery.com>
19758
19759 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19760 variable.
19761
95954743
PA
197622009-04-01 Pedro Alves <pedro@codesourcery.com>
19763
19764 Implement the multiprocess extensions, and add linux multiprocess
19765 support.
19766
19767 * server.h (ULONGEST): Declare.
19768 (struct ptid, ptid_t): New.
19769 (minus_one_ptid, null_ptid): Declare.
19770 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19771 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19772 (struct inferior_list_entry): Change `id' type from unsigned from
19773 to ptid_t.
19774 (struct sym_cache, struct breakpoint, struct
19775 process_info_private): Forward declare.
19776 (struct process_info): Declare.
19777 (current_process): Declare.
19778 (all_processes): Declare.
19779 (initialize_inferiors): Declare.
19780 (add_thread): Adjust to use ptid_t.
19781 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19782 (add_process, remove_process, find_thread_pid): Declare.
19783 (find_inferior_id): Adjust to use ptid_t.
19784 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19785 (multi_process): Declare.
19786 (push_event): Adjust to use ptid_t.
19787 (read_ptid, write_ptid): Declare.
19788 (prepare_resume_reply): Adjust to use ptid_t.
19789 (clear_symbol_cache): Declare.
19790 * inferiors.c (all_processes): New.
19791 (null_ptid, minus_one_ptid): New.
19792 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19793 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19794 (add_thread): Change unsigned long to ptid. Remove gdb_id
19795 parameter. Adjust.
19796 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19797 (gdb_id_to_thread): Rename to ...
19798 (find_thread_pid): ... this. Change unsigned long to ptid.
19799 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19800 (loaded_dll, pull_pid_from_list): Adjust.
19801 (add_process, remove_process, find_process_pid)
19802 (get_thread_process, current_process, initialize_inferiors): New.
19803 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19804 (struct target_waitstatus) <related_pid>: Ditto.
19805 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19806 return type to int.
19807 (struct target_ops) <join>: Add `pid' argument.
19808 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19809 (struct target_ops) <wait>: Add `ptid' field. Change return type
19810 to ptid.
19811 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19812 (mywait): Add `ptid' argument. Change return type to ptid_t.
19813 (target_pid_to_str): Declare.
19814 * target.c (set_desired_inferior): Adjust to use ptids.
19815 (mywait): Add new `ptid' argument. Adjust.
19816 (target_pid_to_str): New.
19817 * mem-break.h (free_all_breakpoints): Declare.
19818 * mem-break.c (breakpoints): Delelete.
19819 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19820 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19821 to use per-process breakpoint list.
19822 (free_all_breakpoints): New.
19823 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19824 (symbol_cache, all_symbols_looked_up): Delete.
19825 (hexchars): New.
19826 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19827 read_ptid): New.
19828 (prepare_resume_reply): Change ptid argument's type from unsigned
19829 long to ptid_t. Adjust. Implement W;process and X;process.
19830 (free_sym_cache, clear_symbol_cache): New.
19831 (look_up_one_symbol): Adjust to per-process symbol cache. *
19832 * server.c (cont_thread, general_thread, step_thread): Change type
19833 to ptid_t.
19834 (attached): Delete.
19835 (multi_process): New.
19836 (last_ptid): Change type to ptid_t.
19837 (struct vstop_notif) <ptid>: Change type to ptid_t.
19838 (queue_stop_reply, push_event): Change `ptid' argument's type to
19839 ptid_t.
19840 (discard_queued_stop_replies): Add `pid' argument.
19841 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19842 changes. Don't reference the `attached' global.
19843 (attach_inferior): Adjust to mywait interface changes.
19844 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19845 features. Handle and report "multiprocess+". Handle
19846 "qAttached:PID".
19847 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19848 changes.
19849 (handle_v_kill): New.
19850 (handle_v_stopped): Adjust to use target_pid_to_str.
19851 (handle_v_requests): Allow multiple attaches and runs when
19852 multiprocess extensions are in effect. Handle "vKill".
19853 (myresume): Adjust to use ptids.
19854 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19855 (handle_status): Adjust to discard_queued_stop_replies interface
19856 change.
19857 (first_thread_of, kill_inferior_callback)
19858 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19859 (main): Call initialize_inferiors. Adjust to use ptids, killing
19860 and detaching from all inferiors. Handle multiprocess packet
19861 variants.
19862 * linux-low.h: Include gdb_proc_service.h.
19863 (struct process_info_private): New.
19864 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19865 <lwpid_of>: Use ptid_get_lwp.
19866 (get_lwp_thread): Adjust.
19867 (struct lwp_info): Add `dead' member.
19868 (find_lwp_pid): Declare.
19869 * linux-low.c (thread_db_active): Delete.
19870 (new_inferior): Adjust comment.
19871 (inferior_pid): Delete.
19872 (linux_add_process): New.
19873 (handle_extended_wait): Adjust.
19874 (add_lwp): Change unsigned long to ptid.
19875 (linux_create_inferior): Add process to processes table. Adjust
19876 to use ptids. Don't set new_inferior here.
19877 (linux_attach_lwp): Rename to ...
19878 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19879 it. Adjust to use ptids.
19880 (linux_attach_lwp): New.
19881 (linux_attach): Add process to processes table. Don't set
19882 new_inferior here.
19883 (struct counter): New.
19884 (second_thread_of_pid_p, last_thread_of_process_p): New.
19885 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19886 multiple processes.
19887 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19888 processes. Remove process from process table.
19889 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19890 to multiple processes.
19891 (any_thread_of): New.
19892 (linux_detach): Add `pid' argument, and handle it. Remove process
19893 from processes table.
19894 (linux_join): Add `pid' argument. Handle it.
19895 (linux_thread_alive): Change unsighed long argument to ptid_t.
19896 Consider dead lwps as not being alive.
19897 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19898 threads we're not interested in.
19899 (same_lwp, find_lwp_pid): New.
19900 (linux_wait_for_lwp): Change `pid' argument's type from int to
19901 ptid_t. Adjust.
19902 (linux_wait_for_event): Rename to ...
19903 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19904 from int to ptid_t. Adjust.
19905 (linux_wait_for_event): New.
19906 (linux_wait_1): Add `ptid' argument. Change return type to
19907 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19908 that exit from the process table.
19909 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19910 Adjust.
19911 (mark_lwp_dead): New.
19912 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19913 stopping all threads, mark its main lwp as dead.
19914 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19915 ptids.
19916 (fetch_register, usr_store_inferior_registers)
19917 (regsets_fetch_inferior_registers)
19918 (regsets_store_inferior_registers, linux_read_memory)
19919 (linux_write_memory): Inline `inferior_pid'.
19920 (linux_look_up_symbols): Adjust to use per-process
19921 `thread_db_active'.
19922 (linux_request_interrupt): Adjust to use ptids.
19923 (linux_read_auxv): Inline `inferior_pid'.
19924 (initialize_low): Don't reference thread_db_active.
19925 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19926 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19927 (ps_getpid): Return the pid of the current inferior.
19928 * thread-db.c (proc_handle, thread_agent): Delete.
19929 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19930 per-process data.
19931 (find_one_thread): Change argument type to ptid_t. Adjust to
19932 per-process data.
19933 (maybe_attach_thread): Adjust to per-process data and ptids.
19934 (thread_db_find_new_threads): Ditto.
19935 (thread_db_init): Ditto.
19936 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19937 processes table. Adjust to use ptids.
19938 (spu_kill, spu_detach): Adjust interface. Remove process from
19939 processes table.
19940 (spu_join, spu_thread_alive): Adjust interface.
19941 (spu_wait): Adjust interface. Remove process from processes
19942 table. Adjust to use ptids.
19943 * win32-low.c (current_inferior_tid): Delete.
19944 (current_inferior_ptid): New.
19945 (debug_event_ptid): New.
19946 (thread_rec): Take a ptid. Adjust.
19947 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19948 (child_delete_thread): Ditto.
19949 (do_initial_child_stuff): Add `attached' argument. Add process to
19950 processes table.
19951 (child_fetch_inferior_registers, child_store_inferior_registers):
19952 Adjust.
19953 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19954 (win32_attach): Pass 1 to do_initial_child_stuff.
19955 (win32_kill): Adjust interface. Remove process from processes
19956 table.
19957 (win32_detach): Ditto.
19958 (win32_join): Adjust interface.
19959 (win32_thread_alive): Take a ptid.
19960 (win32_resume): Adjust to use ptids.
19961 (get_child_debug_event): Ditto.
19962 (win32_wait): Adjust interface. Remove exiting process from
19963 processes table.
19964
bd99dc85
PA
199652009-04-01 Pedro Alves <pedro@codesourcery.com>
19966
19967 Non-stop mode support.
19968
19969 * server.h (non_stop): Declare.
19970 (gdb_client_data, handler_func): Declare.
19971 (delete_file_handler, add_file_handler, start_event_loop):
19972 Declare.
19973 (handle_serial_event, handle_target_event, push_event)
19974 (putpkt_notif): Declare.
19975 * target.h (enum resume_kind): New.
19976 (struct thread_resume): Replace `step' field by `kind' field.
19977 (TARGET_WNOHANG): Define.
19978 (struct target_ops) <wait>: Add `options' argument.
19979 <supports_non_stop, async, start_non_stop>: New fields.
19980 (target_supports_non_stop, target_async): New.
19981 (start_non_stop): Declare.
19982 (mywait): Add `options' argument.
19983 * target.c (mywait): Add `options' argument. Print child exit
19984 notifications here.
19985 (start_non_stop): New.
19986 * server.c (non_stop, own_buf, mem_buf): New globals.
19987 (struct vstop_notif): New.
19988 (notif_queue): New global.
19989 (queue_stop_reply, push_event, discard_queued_stop_replies)
19990 (send_next_stop_reply): New.
19991 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19992 interface changes.
19993 (attach_inferior): In non-stop mode, don't wait for the target
19994 here.
19995 (handle_general_set): Handle QNonStop.
19996 (handle_query): When handling qC, return the current general
19997 thread, instead of the first thread of the list.
19998 (handle_query): If the backend supports non-stop mode, include
19999 QNonStop+ in the qSupported query response.
20000 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
20001 and non-stop mode.
20002 (handle_v_attach, handle_v_run): Handle non-stop mode.
20003 (handle_v_stopped): New.
20004 (handle_v_requests): Report support for vCont;t. Handle vStopped.
20005 (myresume): Adjust to use resume_kind. Handle non-stop.
20006 (queue_stop_reply_callback): New.
20007 (handle_status): Handle non-stop mode.
20008 (main): Clear non_stop flag on reconnection. Use the event-loop.
20009 Refactor serial protocol handling from here ...
20010 (process_serial_event): ... to this new function. When GDB
20011 selects any thread, select one here. In non-stop mode, wait until
20012 GDB acks all pending events before exiting.
20013 (handle_serial_event, handle_target_event): New.
20014 * remote-utils.c (remote_open): Install remote_desc in the event
20015 loop.
20016 (remote_close): Remove remote_desc from the event loop.
20017 (putpkt_binary): Rename to...
20018 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
20019 (putpkt_binary): New as wrapper around putpkt_binary_1.
20020 (putpkt_notif): New.
20021 (prepare_resume_reply): In non-stop mode, don't change the
20022 general_thread.
20023 * event-loop.c: New.
20024 * Makefile.in (OBJ): Add event-loop.o.
20025 (event-loop.o): New rule.
20026
20027 * linux-low.h (pid_of): Moved here.
20028 (lwpid_of): New.
20029 (get_lwp_thread): Use lwpid_of.
20030 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
20031 * linux-low.c (pid_of): Delete.
20032 (inferior_pid): Use lwpid_of.
20033 (linux_event_pipe): New.
20034 (target_is_async_p): New.
20035 (delete_lwp): New.
20036 (handle_extended_wait): Use lwpid_of.
20037 (add_lwp): Don't set lwpid field.
20038 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
20039 (linux_kill_one_lwp): If killing a running lwp, stop it first.
20040 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
20041 (linux_detach_one_lwp): If detaching from a running lwp, stop it
20042 first. Adjust to linux_wait_for_event interface changes. Use
20043 lwpid_of.
20044 (linux_detach): Don't delete the main lwp here.
20045 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
20046 (status_pending_p): Don't consider explicitly suspended lwps.
20047 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
20048 pointer. Add OPTIONS argument. Change return type to int. Use
20049 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
20050 (linux_wait_for_event): Take an integer pid instead of a lwp_info
20051 pointer. Add status pointer argument. Return a pid instead of a
20052 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
20053 changes. In non-stop mode, don't switch to a random thread.
20054 (linux_wait): Rename to...
20055 (linux_wait_1): ... this. Add target_options argument, and handle
20056 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
20057 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
20058 clean exit and signal exit code. Don't stop all threads in
20059 non-stop mode. In all-stop mode, only stop all threads when
20060 reporting a stop to GDB. Handle explicit thread stop requests.
20061 (async_file_flush, async_file_mark): New.
20062 (linux_wait): New.
20063 (send_sigstop): Use lwpid_of.
20064 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
20065 interface changes. In non-stop mode, don't switch to a random
20066 thread.
20067 (linux_resume_one_lwp): Use lwpid_of.
20068 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20069 (linux_resume_one_thread): ... this. Handle resume_stop. In
20070 non-stop mode, don't look for pending flag in all threads.
20071 (resume_status_pending_p): Don't consider explicitly suspended
20072 threads.
20073 (my_waitpid): Reimplement. Emulate __WALL.
20074 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20075 Use lwpid_of.
20076 (sigchld_handler, linux_supports_non_stop, linux_async)
20077 (linux_start_non_stop): New.
20078 (linux_target_ops): Register linux_supports_non_stop, linux_async
20079 and linux_start_non_stop.
20080 (initialize_low): Install SIGCHLD handler.
20081 * thread-db.c (thread_db_create_event, find_one_thread)
20082 (thread_db_get_tls_address): Use lwpid_of.
20083 * win32-low.c (win32_detach): Adjust to use resume_kind.
20084 (win32_wait): Add `options' argument.
20085 * spu-low.c (spu_resume): Adjust to use resume_kind.
20086 (spu_wait): Add `options' argument.
20087
5b1c542e
PA
200882009-04-01 Pedro Alves <pedro@codesourcery.com>
20089
20090 Decouple target code from remote protocol.
20091
20092 * target.h (enum target_waitkind): New.
20093 (struct target_waitstatus): New.
20094 (struct target_ops) <wait>: Return an unsigned long. Take a
20095 target_waitstatus pointer instead of a char pointer.
20096 (mywait): Likewise.
20097 * target.c (mywait): Change prototype to return an unsigned long.
20098 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20099 * server.h (thread_from_wait, old_thread_from_wait): Delete
20100 declarations.
20101 (prepare_resume_reply): Change prototype to take a
20102 target_waitstatus.
20103 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20104 (last_status, last_ptid): New.
20105 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20106 pid instead of a signal.
20107 (attach_inferior): Remove "status" and "signal" parameters.
20108 Adjust.
20109 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20110 not as an address.
20111 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20112 (handle_v_requests, myresume): Remove "status" and "signal"
20113 parameters. Adjust.
20114 (handle_status): New.
20115 (main): Delete local `status'. Adjust.
20116 * remote-utils.c: Include target.h.
20117 (prepare_resume_reply): Change prototype to take a
20118 target_waitstatus. Adjust.
20119
20120 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20121 interface.
20122 * spu-low.c (spu_wait): Adjust.
20123 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20124 Delete.
20125 (win32_wait): Adjust.
20126
2bd7c093
PA
201272009-04-01 Pedro Alves <pedro@codesourcery.com>
20128
20129 * target.h (struct thread_resume): Delete leave_stopped member.
20130 (struct target_ops): Add a `n' argument to the `resume' callback.
20131 * server.c (start_inferior): Adjust.
20132 (handle_v_cont, myresume): Adjust.
20133 * linux-low.c (check_removed_breakpoint): Adjust to resume
20134 interface change, and to removed leave_stopped field.
20135 (resume_ptr): Delete.
20136 (struct thread_resume_array): New.
20137 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20138 resume interface change.
20139 (linux_continue_one_thread, linux_queue_one_thread)
20140 (resume_status_pending_p): Check if the resume field is NULL
20141 instead of checking the leave_stopped member.
20142 (linux_resume): Adjust to the target resume interface change.
20143 * spu-low.c (spu_resume): Adjust to the target resume interface
20144 change.
20145 * win32-low.c (win32_detach, win32_resume): Ditto.
20146
c35fafde
PA
201472009-04-01 Pedro Alves <pedro@codesourcery.com>
20148
20149 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20150 flag.
20151 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20152 pending.
20153 (linux_continue_one_thread): Only preserve the stepping flag if
20154 there's a pending breakpoint.
20155
0a59d50b
PA
201562009-03-31 Pedro Alves <pedro@codesourcery.com>
20157
20158 * server.c (main): After the inferior having exited, call
20159 remote_close before exiting gdbserver.
20160
f04c6d38
TJB
201612009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20162
20163 Fix size of FPSCR in Power 7 processors.
20164 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20165 (PPC_FEATURE_HAS_DFP): New #define.
20166 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20167 size of the FPSCR.
20168
78e5cee6
PA
201692009-03-23 Pedro Alves <pedro@codesourcery.com>
20170
20171 * server.c (handle_query) Whitespace and formatting.
20172
1b3f6016
PA
201732009-03-22 Pedro Alves <pedro@codesourcery.com>
20174
20175 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20176 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20177 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20178 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20179 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20180 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20181 Makefile.in, configure.ac: Fix whitespace throughout.
20182 * configure: Regenerate.
20183
a07b2135
PA
201842009-03-22 Pedro Alves <pedro@codesourcery.com>
20185
20186 * inferiors.c (find_inferior): Make it safe for the callback
20187 function to delete the currently iterated inferior.
20188
67cc2626
PA
201892009-03-22 Pedro Alves <pedro@codesourcery.com>
20190
20191 * Makefile.in (linuw_low_h): Move higher.
20192 (thread-db.o): Depend on $(linux_low_h).
20193
54a0b537
PA
201942009-03-17 Pedro Alves <pedro@codesourcery.com>
20195
20196 Rename "process" to "lwp" throughout.
20197
20198 * linux-low.c (all_processes): Rename to...
20199 (all_lwps): ... this.
20200 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20201 (add_process): Rename to ...
20202 (add_lwp): ... this. Adjust.
20203 (linux_create_inferior): Adjust.
20204 (linux_attach_lwp): Adjust.
20205 (linux_attach): Adjust.
20206 (linux_kill_one_process): Rename to ...
20207 (linux_kill_one_lwp): ... this. Adjust.
20208 (linux_kill): Adjust.
20209 (linux_detach_one_process): Rename to ...
20210 (linux_detach_one_lwp): ... this. Adjust.
20211 (linux_detach): Adjust.
20212 (check_removed_breakpoint): Adjust.
20213 (status_pending_p): Adjust.
20214 (linux_wait_for_process): Rename to ...
20215 (linux_wait_for_lwp): ... this. Adjust.
20216 (linux_wait_for_event): Adjust.
20217 (send_sigstop): Adjust.
20218 (wait_for_sigstop): Adjust.
20219 (stop_all_processes): Rename to ...
20220 (stop_all_lwps): ... this.
20221 (linux_resume_one_process): Rename to ...
20222 (linux_resume_one_lwp): ... this. Adjust.
20223 (linux_set_resume_request, linux_continue_one_thread)
20224 (linux_queue_one_thread, resume_status_pending_p)
20225 (usr_store_inferior_registers, regsets_store_inferior_registers)
20226 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20227 Adjust.
20228 * linux-low.h (get_process): Rename to ...
20229 (get_lwp): ... this. Adjust.
20230 (get_thread_process): Rename to ...
20231 (get_thread_lwp): ... this. Adjust.
20232 (get_process_thread): Rename to ...
20233 (get_lwp_thread): ... this. Adjust.
20234 (struct process_info): Rename to ...
20235 (struct lwp_info): ... this.
20236 (all_processes): Rename to ...
20237 (all_lwps): ... this.
20238 * proc-service.c (ps_lgetregs): Adjust.
20239 * thread-db.c (thread_db_create_event, find_one_thread)
20240 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20241
0b16c5cf
PA
202422009-03-14 Pedro Alves <pedro@codesourcery.com>
20243
20244 * server.c (handle_query): Handle "qAttached".
20245
32de4b9d
NS
202462009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20247
20248 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20249 GPLv3, update license URL.
20250
2aecd87f
DE
202512009-03-01 Doug Evans <dje@google.com>
20252
93efd302 20253 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
20254 (server_h): Add gdb_signals.h.
20255 (signals.o): Update.
20256 * server.h (target_signal_from_host,target_signal_to_host_p)
20257 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20258
86b1f9c5
PM
202592009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20260
20261 * remote-utils.c (getpkt): Also generate remote-debug
20262 information if noack_mode is set.
20263
4aa995e1
PA
202642009-02-06 Pedro Alves <pedro@codesourcery.com>
20265
20266 * server.c (handle_query): Report qXfer:siginfo:read and
20267 qXfer:siginfo:write as supported and handle them.
20268 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20269 * linux-low.c (linux_xfer_siginfo): New.
20270 (linux_target_ops): Set it.
20271
62709adf
PA
202722009-01-26 Pedro Alves <pedro@codesourcery.com>
20273
20274 * server.c (gdbserver_usage): Mention --remote-debug.
20275 (main): Accept '--remote-debug' switch.
20276
aef93bd7
DE
202772009-01-18 Doug Evans <dje@google.com>
20278
20279 * regcache.c (new_register_cache): No need to check result of xcalloc.
20280 * server.c (handle_search_memory): Back out calls to xmalloc,
20281 result is checked and error is returned to user upon failure.
20282 (handle_query): Ditto. Add more checks for result of malloc.
20283 (handle_v_cont): Check result of malloc, report error back to
20284 user upon failure.
20285 (handle_v_run): Ditto. Call freeargv.
20286 * server.h (freeargv): Declare.
20287 * utils.c (freeargv): New fn.
20288
54363045
DE
202892009-01-15 Doug Evans <dje@google.com>
20290
f626972c
DE
20291 * gdbreplay.c (perror_with_name): Make arg const char *.
20292 * server.h (target_signal_to_name): Make return type const char *.
0842e787 20293 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 20294 * utils.c (perror_with_name): Make arg const char *.
54363045 20295
18aae699
PA
202962009-01-14 Pedro Alves <pedro@codesourcery.com>
20297
20298 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20299 when handling a EXIT_PROCESS_DEBUG_EVENT.
20300
ff703abe
JB
203012009-01-06 Joel Brobecker <brobecker@adacore.com>
20302
20303 * gdbreplay.c (gdbreplay_version): Update copyright year.
20304 * server.c (gdbserver_version): Likewise.
20305
f21cc1a2 203062009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
20307
20308 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 20309 (handle_extended_wait): Improve comment.
0e21c1ec 20310
bca929d3
DE
203112008-12-13 Doug Evans <dje@google.com>
20312
20313 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20314 * server.h (ATTR_MALLOC): New macro.
20315 (xmalloc,xcalloc,xstrdup): Declare.
20316 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20317 * inferiors.c: Ditto.
20318 * linux-low.c: Ditto.
20319 * mem-break.c: Ditto.
20320 * regcache.c: Ditto.
20321 * remote-utils.c: Ditto.
20322 * server.c: Ditto.
20323 * target.c: Ditto.
20324 * win32-low.c: Ditto.
20325
97438e3f
DE
203262008-12-12 Doug Evans <dje@google.com>
20327
896c7fbb
DE
20328 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20329 in debugging printf.
20330
97438e3f
DE
20331 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20332
e3b886f8
DE
203332008-12-09 Doug Evans <dje@google.com>
20334
20335 * linux-low.h (struct process_info): Delete member tid, unused.
20336 * thread-db.c (find_one_thread): Update.
20337 (maybe_attach_thread): Update.
20338
07e059b5
VP
203392008-12-02 Pedro Alves <pedro@codesourcery.com>
20340
889bf7c5
PA
20341 * target.h (struct target_ops): Add qxfer_osdata member.
20342 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20343 and dirent.h.
20344 (linux_qxfer_osdata): New functions.
20345 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20346 callback.
20347 * server.c (handle_query): Handle "qXfer:osdata:read:".
20348 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20349 (buffer_xml_printf): New functions.
20350 * server.h (struct buffer): New.
20351 (buffer_grow_str, buffer_grow_str0): New macros.
20352 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20353 (buffer_xml_printf): Declare.
07e059b5 20354
4cab47ab
DE
203552008-11-24 Doug Evans <dje@google.com>
20356
20357 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20358
f142445f
DJ
203592008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20360
20361 * server.c (handle_v_run): Always use the supplied argument list.
20362
d0107bb6 203632008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20364
d0107bb6
BW
20365 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20366 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20367
2c4ad781
TJB
203682008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20369
20370 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20371 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20372 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20373 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20374 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20375 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20376 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20377 XML target descriptions.
20378 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20379 when inferior is running on an ISA 2.05 or later processor. Add
20380 special case to return offset for full 64-bit slot of FPSCR when
20381 in 32-bits.
20382
dfb64f85
DJ
203832008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20384
20385 * Makefile.in (SFILES, clean): Added sparc64 files.
20386 (reg-sparc64.o, reg-sparc64.c): New.
20387 * configure.srv (sparc*-*-linux*): New configuration.
20388 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20389 syscall arguments for SPARC.
20390 (regsets_store_inferior_registers): Likewise.
20391 * linux-sparc-low.c: New file.
20392
66b6e1dd
DE
203932008-10-21 Doug Evans <dje@google.com>
20394
20395 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20396 (READLINE_DIR,READLINE_DEP): Delete.
20397 (INTERNAL_CFLAGS): Update.
20398 (LINTFLAGS): Update.
20399
9b710a42
PA
204002008-10-10 Pedro Alves <pedro@codesourcery.com>
20401
20402 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20403 whole argv from the last run, not just argv[0].
20404
5822d809
PA
204052008-09-08 Pedro Alves <pedro@codesourcery.com>
20406
20407 * regcache.c (new_register_cache): Return NULL if the register
20408 cache size isn't known yet.
20409 (free_register_cache): Avoid dereferencing a NULL regcache.
20410
74aac56f
DJ
204112008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20412
20413 * configure.srv: Merge MIPS and MIPS64.
20414
400b20f5
MR
204152008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20416
20417 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20418
677c5bb1
LM
204192008-08-18 Luis Machado <luisgpm@br.ibm.com>
20420
20421 * Makefile.in: Add required vsx dependencies.
20422
20423 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20424 Declare init_registers_powerpc_vsx32l.
20425 Declare init_registers_powerpc_vsx64l.
20426 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20427 (ppc_arch_setup): Check for VSX in hwcap.
20428 (ppc_fill_vsxregset): New function.
20429 (ppc_store_vsxregset): New function.
20430 Add new VSX entry in regset_info target_regsets.
20431
20432 * configure.srv: Add new VSX dependencies.
20433
a6f3e723
SL
204342008-08-12 Pedro Alves <pedro@codesourcery.com>
20435
20436 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20437 (remote_open): Set or clear transport_is_reliable.
20438 (putpkt_binary): Don't expect acks in noack mode.
20439 (getpkt): Don't send ack/nac in noack mode.
20440 * server.c (handle_general_set): Handle QStartNoAckMode.
20441 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20442 qSupported.
20443 (main): Reset noack_mode on every connection.
20444 * server.h (noack_mode): Declare.
20445
a417dc56
RW
204462008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20447
20448 * Makefile.in (GDBREPLAY_OBS): New variable.
20449 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20450
3221518c
UW
204512008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20452 Daniel Jacobowitz <dan@codesourcery.com>
20453
20454 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20455 (usr_store_inferior_registers): Likewise.
20456 (regsets_store_inferior_registers): Likewise.
20457
ec56be1b
PA
204582008-07-31 Rolf Jansen <rj@surtec.com>
20459 Pedro Alves <pedro@codesourcery.com>
20460
20461 * configure.ac: Check for memmem declaration.
20462 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20463 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20464 (disable_packet_qfThreadInfo): Unconditionally compile.
20465 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20466 * configure, config.in: Regenerate.
20467
2fe5e3ff
DE
204682008-07-28 Doug Kwan <dougkwan@google.com>
20469
20470 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20471 (linux_write_memory): Remove declaration of errno.
20472
836acd6d
UW
204732008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20474
20475 * linux-low.c (handle_extended_wait): Do not use "status"
20476 variable uninitialized.
20477
aeba519e
PA
204782008-07-07 Pedro Alves <pedro@codesourcery.com>
20479
20480 * server.c (handle_v_attach): Inhibit reporting dll changes.
20481
db42f210
PA
204822008-06-27 Pedro Alves <pedro@codesourcery.com>
20483
20484 * remote-utils.c (prepare_resume_reply): If requested, don't
20485 output "thread:TID" in the T stop reply.
20486
20487 * server.c (disable_packet_vCont, disable_packet_Tthread)
20488 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20489 (handle_query): If requested, disable support for qC, qfThreadInfo
20490 and qsThreadInfo.
20491 (handle_v_requests): If requested, disable support for vCont.
20492 (gdbserver_show_disableable): New.
20493 (main): Handle --disable-packet and --disable-packet=LIST.
20494
20495 * server.h (disable_packet_vCont, disable_packet_Tthread)
20496 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20497
8e4c5421
CD
204982008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20499
20500 * server.c (gdbserver_usage): Mention --version.
20501
6e23a804
DJ
205022008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20503
20504 * Makefile.in (gdbreplay.o): New rule.
20505
90aa6a40
JM
205062008-06-06 Joseph Myers <joseph@codesourcery.com>
20507
20508 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20509 message, not gdbserver.
20510
c16158bc 205112008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20512 Nathan Sidwell <nathan@codesourcery.com>
20513 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20514
20515 * acinclude.m4: Include ../../config/acx.m4.
20516 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20517 * configure, config.in: Regenerate.
20518 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20519 * server.c (gdbserver_version): Print PKGVERSION.
20520 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20521 (main): Adjust gdbserver_usage calls.
20522 * gdbreplay.c (version, host_name): Add declarations.
20523 (gdbreplay_version, gdbreplay_usage): New.
20524 (main): Accept --version and --help options.
20525
aeb75bf5
DJ
205262008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20527
20528 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20529 (arm_breakpoint_at): Handle Thumb.
20530 (the_low_target): Add comment.
20531
76b233dd
UW
205322008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20533
20534 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20535
08388c79
DE
205362008-05-09 Doug Evans <dje@google.com>
20537
a3c83fae
DE
20538 * server.h (decode_search_memory_packet): Declare.
20539 * remote-utils.c (decode_search_memory_packet): New fn.
20540 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20541 (handle_search_memory): New fn.
20542 (handle_query): Process qSearch:memory packets.
20543
bb9c3d36
UW
205442008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20545
20546 * regcache.c (registers_length): Remove.
20547 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20548 full register packet.
20549 * regcache.h (registers_length): Remove prototype.
20550 * server.h (PBUFSIZ): Define to 16384.
20551
7284e1be
UW
205522008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20553
20554 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20555 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20556 powerpc-64l.o, and powerpc-altivec64l.o.
20557 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20558 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20559 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20560 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20561 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20562 to srv_xmlfiles.
20563
20564 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20565 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20566 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20567 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20568 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20569 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20570 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20571 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20572 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20573 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20574 (clean): Update.
20575
20576 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20577 (init_registers_powerpc_32l): ... this new prototype.
20578 (init_registers_powerpc_32): Remove, replace by ...
20579 (init_registers_powerpc_altivec32l): ... this new prototype.
20580 (init_registers_powerpc_e500): Remove, replace by ...
20581 (init_registers_powerpc_e500l): ... this new prototype.
20582 (init_registers_ppc64): Remove, replace by ...
20583 (init_registers_powerpc_64l): ... this new prototype.
20584 (init_registers_powerpc_64): Remove, replace by ...
20585 (init_registers_powerpc_altivec64l): ... this new prototype.
20586 (ppc_num_regs): Set to 73.
20587 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20588 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20589 (ppc_cannot_store_register): Handle orig_r3 and trap.
20590 (ppc_arch_setup): Update init_registers_... calls.
20591 (ppc_fill_gregset): Handle orig_r3 and trap.
20592
20593 * inferiors.c (clear_inferiors): Reset current_inferior.
20594
fdc59709
PB
205952008-04-23 Paolo Bonzini <bonzini@gnu.org>
20596
889bf7c5
PA
20597 * acinclude.m4: Add override.m4.
20598 * configure: Regenerate.
fdc59709 20599
c9b2f845
UW
206002008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20601
20602 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20603 initial call to init_register_ppc64.
20604
550512b8
UW
206052008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20606
43aaf8b6
PA
20607 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20608 single powerpc*-*-linux* case.
550512b8
UW
20609 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20610
b6430ec3
UW
206112008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20612
20613 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20614 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20615 from reg_xmlfiles.
20616 * linux-ppc-low.c: Include <elf.h>.
20617 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20618 (ppc_hwcap): New global variable.
20619 (ppc_regmap): Remove __SPE__ #ifdef sections.
20620 (ppc_regmap_e500): New global variable.
20621 (ppc_cannot_store_register): Update __SPE__ special case.
20622 (ppc_get_hwcap): New function.
20623 (ppc_arch_setup): Use it to determine whether inferior supports
20624 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20625 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20626 Do not access registers if target does not support AltiVec.
20627 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20628 Do not access registers if target does not support SPE.
20629 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20630
52fa2412
UW
206312008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20632
20633 * linux-low.c (disabled_regsets, num_regsets): New.
20634 (use_regsets_p): Delete.
20635 (linux_wait_for_process): Clear disabled_regsets.
20636 (regsets_fetch_inferior_registers): Check and set it.
20637 (regsets_store_inferior_registers): Likewise.
20638 (linux_fetch_registers, linux_store_registers): Do not use
20639 use_regsets_p.
20640 (initialize_low): Allocate disabled_regsets.
20641
e28b3332
DJ
206422008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20643
20644 * Makefile.in (LIBOBJS): New.
20645 (OBS): Use LIBOBJS.
20646 (memmem.o): New rule.
20647 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20648 * configure: Regenerated.
20649
4536995d
UW
206502008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20651
20652 * server.c (handle_query): Never return "unsupported" for
20653 qXfer:features:read queries.
20654
221c031f
UW
206552008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20656
20657 * server.c (get_features_xml): Fix inverted condition.
20658 (handle_query): Always support qXfer:feature:read.
20659
ccd213ac
DJ
206602008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20661
20662 * server.c (wrapper_argv): New.
20663 (start_inferior): Handle wrapper_argv. If set, expect an extra
20664 trap.
20665 (gdbserver_usage): Document --wrapper.
20666 (main): Parse --wrapper.
20667
6fe305f7
UW
206682008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20669
20670 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20671 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20672 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20673 (ppc_set_pc): Likewise.
20674 (ppc_arch_setup): New function.
20675 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20676 of collect_register.
889bf7c5 20677 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20678
5b0a002e
UW
206792008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20680
20681 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20682 instead of linux-ppc64-low.o.
20683 * linux-ppc64-low.c: Remove file.
20684 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20685 (linux-ppc64-low.o): Remove rule.
20686
20687 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20688 (init_registers_powerpc_64): Likewise.
20689 (ppc_regmap): Conditionally define depending on __powerpc64__.
20690 (ppc_cannot_store_register): Do not special-case "fpscr" when
20691 compiled on __powerpc64__.
20692 (ppc_collect_ptrace_register): New function.
20693 (ppc_supply_ptrace_register): New function.
20694 (ppc_breakpoint): Change type to "unsigned int".
20695 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20696 (the_low_target): Conditionally provide initializers for the
889bf7c5 20697 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20698 collect_ptrace_register and supply_ptrace_register members.
20699
9b4b61c8
UW
207002008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20701
20702 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20703 * server.c (gdbserver_xmltarget): Define.
20704 (get_features_xml): Use it to replace "target.xml" and arch_string.
20705
20706 * configure.srv: Remove srv_xmltarget. Add XML files that were
20707 mentioned there to srv_xmlfiles instead. Remove conditional tests
20708 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20709 srv_xmlfiles and srv_regobj to include all possible choices.
20710 * configure.ac (srv_xmltarget): Remove.
20711 (srv_xmlfiles): Do not add "target.xml".
20712 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20713 checks for supplementary target information.
20714 * configure: Regenerate.
20715 * Makefile.in (XML_TARGET): Remove.
20716 (target.xml): Remove rule.
20717 (clean): Do not clean up target.xml.
20718 (.PRECIOUS): Do not mention target.xml.
20719
20720 * target.h (struct target_ops): Remove arch_string member.
20721 * linux-low.c (linux_arch_string): Remove.
20722 (linux_target_ops): Remove arch_string initializer.
20723 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20724 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20725 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20726 * spu-low.c (spu_arch_string): Remove.
20727 (spu_target_ops): Remove arch_string initializer.
20728 * win32-low.c (win32_arch_string): Remove.
20729 (win32_target_ops): Remove arch_string initializer.
20730 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20731 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20732 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20733
ee1a7ae4
UW
207342008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20735
20736 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20737 by collect_ptrace_register and supply_ptrace_register hooks.
20738 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20739 instead of checking for the_low_target.left_pad_xfer.
20740 (usr_store_inferior_registers): Use collect_ptrace_register callback
20741 instead of checking for the_low_target.left_pad_xfer.
20742
20743 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20744 (s390_supply_ptrace_register): Likewise.
20745 (s390_fill_gregset): Call s390_collect_ptrace_register.
20746 (the_low_target): Update.
20747
20748 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20749 (ppc_supply_ptrace_register): Likewise.
20750 (the_low_target): Update.
20751
20752 * linux-i386-low.c (the_low_target): Update.
20753 * linux-x86-64-low.c (the_low_target): Update.
20754
d61ddec4
UW
207552008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20756
20757 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20758 reg-s390.o and reg-s390x.o.
20759
20760 * linux-low.c (new_inferior): New global variable.
20761 (linux_create_inferior, linux_attach): Set it.
20762 (linux_wait_for_process): Call the_low_target.arch_setup after the
20763 target has stopped for the first time.
20764 (initialize_low): Do not call the_low_target.arch_setup.
20765
20766 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20767 (s390_set_pc): Likewise.
20768 (s390_arch_setup): New function.
20769 (the_low_target): Use s390_arch_setup as arch_setup routine.
20770
20771 * regcache.c (realloc_register_cache): New function.
20772 (set_register_cache): Call it for each existing regcache.
20773
d05b4ac3
UW
207742008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20775
20776 * server.h (init_registers): Remove prototype.
20777
20778 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20779 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20780 instead of init_registers ().
20781 * linux-arm-low.c (init_registers_arm): Add prototype.
20782 (init_registers_arm_with_iwmmxt): Likewise.
20783 (the_low_target): Add initializer for arch_setup field.
20784 * linux-cris-low.c (init_registers_cris): Add prototype.
20785 (the_low_target): Add initializer for arch_setup field.
20786 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20787 (the_low_target): Add initializer for arch_setup field.
20788 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20789 (the_low_target): Add initializer for arch_setup field.
20790 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20791 (the_low_target): Add initializer for arch_setup field.
20792 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20793 (the_low_target): Add initializer for arch_setup field.
20794 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20795 (the_low_target): Add initializer for arch_setup field.
20796 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20797 (init_registers_mips64_linux): Likewise.
20798 (the_low_target): Add initializer for arch_setup field.
20799 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20800 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20801 (the_low_target): Add initializer for arch_setup field.
20802 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20803 (init_registers_powerpc_64): Likewise.
20804 (the_low_target): Add initializer for arch_setup field.
20805 * linux-s390-low.c (init_registers_s390): Add prototype.
20806 (init_registers_s390x): Likewise.
20807 (the_low_target): Add initializer for arch_setup field.
20808 * linux-sh-low.c (init_registers_sh): Add prototype.
20809 (the_low_target): Add initializer for arch_setup field.
20810 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20811 (the_low_target): Add initializer for arch_setup field.
20812 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20813 (the_low_target): Add initializer for arch_setup field.
20814
20815 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20816 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20817 instead of init_registers ().
20818 * win32-arm-low.c (init_registers_arm): Add prototype.
20819 (the_low_target): Add initializer for arch_setup field.
20820 * win32-i386-low.c (init_registers_i386): Add prototype.
20821 (the_low_target): Add initializer for arch_setup field.
20822
20823 * spu-low.c (init_registers_spu): Add prototype.
20824 (initialize_low): Call initialie_registers_spu () instead of
20825 initialize_registers ().
20826
fd96d250
PA
208272008-02-19 Pedro Alves <pedro@codesourcery.com>
20828
20829 * server.c (handle_v_requests): When handling the vRun and vAttach
20830 packets, if already debugging a process, don't kill it. Return an
20831 error instead.
20832
d41b6bb4
DJ
208332008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20834
20835 * server.c (handle_query): Correct length check.
20836
5ac588cf
PA
208372008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20838
20839 * win32-low.c (do_initial_child_stuff): Add process handle
20840 parameter. Set current_process_handle and current_process_id from the
20841 parameters. Clear globals.
20842 (win32_create_inferior): Don't set current_process_handle and
20843 current_process_id here. Instead pass them on the call to
20844 do_initial_child_stuff.
20845 (win32_attach): Likewise.
20846 (win32_clear_inferiors): New.
20847 (win32_kill): Don't close the current process handle or the
20848 current thread handle here. Instead call win32_clear_inferiors.
20849 (win32_detach): Don't open a new handle to the process. Call
20850 win32_clear_inferiors.
20851 (win32_join): Don't rely on current_process_handle; open a new
20852 handle using the process id.
20853 (win32_wait): Call win32_clear_inferiors when the inferior process
20854 has exited.
20855
ecd7ecbc
DJ
208562008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20857
20858 * server.c (monitor_show_help): Add "exit".
20859
1525d545
MG
208602008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20861
ecd7ecbc 20862 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20863 (clean): Add reg-xtensa.c.
20864 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20865 * configure.srv (xtensa*-*-linux*) New target.
20866 * linux-xtensa-low.c: New.
20867 * xtensa-xtregs.c: New.
1525d545 20868
59a016f0
PA
208692008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20870
20871 * hostio.c: Don't include errno.h.
20872 (errno_to_fileio_errno): Move to hostio-errno.
20873 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20874 error number outputting to the target->hostio_last_error callback.
20875 (hostio_packet_error): Use FILEIO_EINVAL directly.
20876 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20877 calls to hostio_error.
20878 * hostio-errno.c: New.
20879 * server.h (hostio_last_error_from_errno): Declare.
20880 * target.h (target_ops): Add hostio_last_error member.
20881 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20882 as hostio_last_error handler.
889bf7c5 20883 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20884 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20885 (wince_hostio_last_error): New functions.
20886 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20887 as hostio_last_error handler.
20888 (win32_target_ops) [!_WIN32_WCE]: Register
20889 hostio_last_error_from_errno as hostio_last_error handler.
20890 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20891 (hostio-errno.o): New rule.
20892 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20893 * configure.srv (srv_hostio_err_objs): New variable. Default to
20894 hostio-errno.o.
20895 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20896 * configure: Regenerate.
20897
2d717e4f
DJ
208982008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20899
20900 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20901 (linux_kill, linux_detach): Clean up the process list.
20902 * remote-utils.c (remote_open): Improve port number parsing.
20903 (putpkt_binary, input_interrupt): Only send interrupts if the target
20904 is running.
20905 * server.c (extended_protocol): Make static.
20906 (attached): Define earlier.
20907 (exit_requested, response_needed, program_argv): New variables.
20908 (target_running): New.
20909 (start_inferior): Clear attached here.
20910 (attach_inferior): Set attached here.
20911 (require_running): Define.
20912 (handle_query): Use require_running and target_running. Implement
20913 "monitor exit".
20914 (handle_v_attach, handle_v_run): New.
20915 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20916 (gdbserver_usage): Update.
20917 (main): Redo argument parsing. Handle --debug and --multi. Handle
20918 --attach along with other options or after the port. Save
20919 program_argv. Support no initial program. Resynchronize
20920 communication with GDB after an error. Handle "monitor exit".
20921 Use require_running and target_running. Always allow the extended
20922 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20923 restart in extended mode.
20924 * README: Refer to the GDB manual. Update --attach usage.
20925
7407e2de
AS
209262007-12-20 Andreas Schwab <schwab@suse.de>
20927
20928 * linux-low.c (STACK_SIZE): Define.
20929 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20930 (linux_test_for_tracefork): Likewise.
20931
b65d95c5
DJ
209322007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20933
20934 * linux-low.c (linux_wait_for_event): Update messages. Do not
20935 reinsert auto-delete breakpoints.
20936 * mem-break.c (struct breakpoint): Change return type of handler to
20937 int.
20938 (set_breakpoint_at): Update handler type.
20939 (reinsert_breakpoint_handler): Return 1 instead of calling
20940 delete_breakpoint.
20941 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20942 setting a new one.
20943 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20944 * mem-break.h (set_breakpoint_at): Update handler type.
20945 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20946 * win32-low.c (auto_delete_breakpoint): New.
20947 (get_child_debug_event): Use it.
20948
4e799345
DJ
209492007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20950
20951 * configure.ac: Check for pread and pwrite.
20952 * hostio.c (handle_pread): Fall back to lseek and read.
20953 (handle_pwrite): Fall back to lseek and write.
20954 * config.in, configure: Regenerated.
20955
27524b67
DJ
209562007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20957
20958 * server.c (myresume): Add own_buf argument.
20959 (main): Update calls.
20960
a20d5e98
DJ
209612007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20962
20963 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20964 * remote-utils.c (remote_open): Do not call disable_async_io.
20965 (block_async_io): Delete.
20966 (unblock_async_io): Make static.
20967 (initialize_async_io): New.
20968 * server.c (handle_v_cont): Handle async I/O here.
20969 (myresume): Likewise. Move other common resume tasks here...
20970 (main): ... from here. Call initialize_async_io. Disable async
20971 I/O before the main loop.
20972 * server.h (initialize_async_io): Declare.
20973 (block_async_io, unblock_async_io): Delete prototypes.
20974 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20975
b79d787e
DJ
209762007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20977
20978 * remote-utils.c (readchar): Allow binary data in received messages.
20979
d97903b2
PA
209802007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20981
20982 * win32-low.c (attaching): New global.
20983 (win32_create_inferior): Clear the `attaching' global.
20984 (win32_attach): Set the `attaching' global.
20985 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20986 attaching. Only set a breakpoint at the entry point if not
20987 attaching.
20988
311de423
PA
209892007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20990
20991 * server.c (main): Don't report dll events on the initial
20992 connection on attaches.
20993
6c2d16d2
PA
209942007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20995
20996 * server.c (main): Relax numerical bases supported for the pid of
20997 the --attach command line argument.
20998
5ca906e6
PA
209992007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
21000
21001 * win32-low.c (win32_attach): Call OpenProcess before
21002 DebugActiveProcess, not after. Add last error output to error
21003 call.
21004
9c6c8194
PA
210052007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
21006
21007 * win32-low.c (win32_get_thread_context)
21008 (win32_set_thread_context): New functions.
21009 (thread_rec): Use win32_get_thread_context.
21010 (continue_one_thread, win32_resume): Use win32_set_thread_context.
21011 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
21012 field.
21013
4d5d1aaa
PA
210142007-12-03 Leo Zayas
21015 Pedro Alves <pedro_alves@portugalmail.pt>
21016
21017 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
21018 global variables.
21019 (child_add_thread): Minor cleanup.
21020 (child_continue): Resume artificially suspended threads before
21021 calling ContinueDebugEvent.
21022 (suspend_one_thread): New.
21023 (fake_breakpoint_event): New.
21024 (get_child_debug_event): Change return type to int. Check here if
21025 gdb sent an interrupt request. If a soft interrupt was requested,
21026 fake a breakpoint event. Return 0 if there is no event to handle,
21027 and 1 otherwise.
21028 (win32_wait): Don't check here if gdb sent an interrupt request.
21029 Ensure there is a valid event to handle.
21030 (win32_request_interrupt): Add soft interruption method as last
21031 resort.
21032
c436e841
PA
210332007-12-03 Leo Zayas
21034 Pedro Alves <pedro_alves@portugalmail.pt>
21035
21036 * win32-low.h (win32_thread_info): Add descriptions to the
21037 structure members. Replace `suspend_count' counter by a
21038 `suspended' flag.
21039 * win32-low.c (thread_rec): Update condition of when to get the
21040 context from the inferior. Rely on ContextFlags being set if it
21041 has already been retrieved. Only suspend the inferior thread if
21042 we haven't already. Warn if that fails.
21043 (continue_one_thread): s/suspend_count/suspended/. Only call
21044 ResumeThread once. Warn if that fails.
21045
e7b5fa67
PA
210462007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21047
21048 * win32-low.c (win32_wait): Don't read from the inferior when it
21049 has already exited.
21050
a385171d
PA
210512007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21052
21053 * Makefile.in (win32_low_h): New variable.
21054 (win32-low.o): Add dependency on $(win32_low_h).
21055 (win32-arm-low.o, win32-i386-low.o): New rules.
21056
f80c84b3
DJ
210572007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21058
21059 * hostio.c: Correct copyright year.
21060
a6b151f1
DJ
210612007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21062
21063 * Makefile.in (OBS): Add hostio.o.
21064 (hostio.o): New rule.
21065 * server.h (handle_vFile): Declare.
21066 * hostio.c: New file.
21067 * server.c (handle_v_requests): Take packet_len and new_packet_len
21068 for binary packets. Call handle_vFile.
21069 (main): Update call to handle_v_requests.
21070
f9387fc3
DJ
210712007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21072
21073 * linux-low.c: Include <sched.h>.
21074
51c2684e
DJ
210752007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21076
21077 * linux-low.c (linux_tracefork_grandchild): New.
21078 (linux_tracefork_child): Use clone.
21079 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21080
75f83163
JB
210812007-10-31 Joel Brobecker <brobecker@adacore.com>
21082
21083 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21084
da5898ce
DJ
210852007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21086
21087 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21088
24a09b5f
DJ
210892007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21090
21091 * inferiors.c (change_inferior_id): Delete.
21092 (add_pid_to_list, pull_pid_from_list): New.
21093 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21094 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21095 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21096 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21097 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21098 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21099 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21100 (using_threads): Always set to 1.
21101 (handle_extended_wait): New.
21102 (add_process): Do not set TID.
21103 (linux_create_inferior): Set must_set_ptrace_flags.
21104 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21105 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21106 (linux_thread_alive): Rename TID argument to LWPID.
21107 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21108 (linux_wait_for_event): Do not use TID or check using_threads. Update
21109 call to dead_thread_notify. Call handle_extended_wait.
21110 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21111 (send_sigstop): Delete sigstop_sent.
21112 (wait_for_sigstop): Avoid TID.
21113 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21114 (linux_test_for_tracefork): New.
21115 (linux_lookup_signals): Use thread_db_active and
21116 linux_supports_tracefork_flag.
21117 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21118 * linux-low.h (get_process_thread): Avoid TID.
21119 (struct process_ifo): Move thread_known and tid to the end. Remove
21120 sigstop_sent.
21121 (linux_attach_lwp, thread_db_init): Update prototypes.
21122 * server.h (change_inferior_id): Delete prototype.
21123 (add_pid_to_list, pull_pid_from_list): New prototypes.
21124 * thread-db.c (thread_db_use_events): New.
21125 (find_first_thread): Rename to...
21126 (find_one_thread): ...this. Update callers and messages. Do not
21127 call fatal. Check thread_db_use_events. Do not call
21128 change_inferior_id or new_thread_notify.
21129 (maybe_attach_thread): Update. Do not call new_thread_notify.
21130 (thread_db_init): Set thread_db_use_events. Check use_events.
21131 * utils.c (fatal, warning): Correct message prefix.
21132
30ed0a8f
DJ
211332007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21134
21135 * Makefile.in (clean): Remove new files.
21136 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21137 (powerpc-64.o, powerpc-64.c): New rules.
21138 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21139 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21140 with SPE.
21141 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21142 SPE targets.
21143 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21144 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21145 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21146 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21147 (target_regsets): Add AltiVec and SPE register sets.
21148 * configure.ac: Check for AltiVec and SPE.
21149 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21150 (ppc_fill_vrregset, ppc_store_vrregset): New.
21151 (target_regsets): Add AltiVec register set.
21152 * configure: Regenerated.
21153
fd462a61
DJ
211542007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21155
21156 * linux-low.c (O_LARGEFILE): Define.
21157 (linux_read_memory): Use /proc/PID/mem.
21158 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21159 * configure, config.in: Regenerated.
21160
69f223ed
DJ
211612007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21162
21163 * linux-low.c (linux_wait_for_event): Do not pass signals while
21164 single-stepping.
21165
aec18585
PA
211662007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21167
21168 * win32-low.c (create_process): New.
21169 (win32_create_inferior): Use create_process instead of
21170 CreateProcess. If create_process failed retry appending an ".exe"
21171 suffix. Store the GetLastError result immediatelly after
21172 create_process calls and use it on the call to error.
21173
34d86ddd
PA
211742007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21175
21176 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21177
5a0e3bd0
JB
211782007-08-23 Joel Brobecker <brobecker@adacore.com>
21179
21180 * configure.ac: Switch license to GPLv3.
21181
f88c79e6
MS
211822007-08-01 Michael Snyder <msnyder@access-company.com>
21183
21184 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21185
6b3d9b83
PA
211862007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21187
21188 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21189 typedef.
21190 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21191 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21192 CloseToolhelp32Snapshot.
21193 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21194 CloseToolhelp32Snapshot.
21195
c588c53c
MS
211962007-07-27 Michael Snyder <michael.snyder@access-company.com>
21197
21198 * server.c (main): Check for inferior exit before main loop.
21199
aa0403d9
PA
212002007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21201
21202 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21203 instead of on tmp_desc.
21204
255e7678
DJ
212052007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21206 Daniel Jacobowitz <dan@codesourcery.com>
21207
21208 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21209 (add_thread): Minor cleanups.
21210 (clear_inferiors): Move lower in the file. Clear the DLL
21211 list.
21212 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21213 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21214 (xml_escape_text): New.
21215 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21216 for qSupported.
21217 (handle_v_cont): Report errors.
21218 (gdbserver_version): Update.
21219 (main): Correct size of own_buf. Do not report initial DLL events.
21220 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21221 (unloaded_dll, xml_escape_text): New.
21222 * win32-low.c (enum target_waitkind): Update comments.
21223 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21224 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21225 (win32_EnumProcessModules, win32_GetModuleInformation)
21226 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21227 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21228 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21229 (win32_Module32First, win32_Module32Next, load_toolhelp)
21230 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21231 (get_child_debug_event): Handle DLL events.
21232 (win32_wait): Likewise.
21233
0d37add9
DJ
212342007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21235
21236 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21237 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21238
45e2715e
PA
212392007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21240
21241 * win32-low.c (handle_output_debug_string): Ignore event if not
21242 waiting.
21243
c5674cf1
PA
212442007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21245
21246 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21247
2bbe3cc1
DJ
212482007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21249
21250 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21251
ae13219e
DJ
212522007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21253
21254 * inferiors.c (change_inferior_id): Add comment.
21255 * linux-low.c (check_removed_breakpoint): Add an early
21256 prototype. Improve debug output.
21257 (linux_attach): Doc update.
21258 (linux_detach_one_process, linux_detach): Clean up before releasing
21259 each process.
21260 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21261 * linux-low.h (struct process_info): Doc improvement.
21262 * mem-break.c (delete_all_breakpoints): New.
21263 * mem-break.h (delete_all_breakpoints): New prototype.
21264 * thread-db.c (find_first_thread): New.
21265 (thread_db_create_event): Call it instead of
21266 thread_db_find_new_threads. Clean up unused variables.
21267 (maybe_attach_thread): Remove first thread handling.
21268 (thread_db_find_new_threads): Use find_first_thread.
21269 (thread_db_get_tls_address): Likewise.
21270
4105de34
DJ
212712007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21272
21273 * thread-db.c (thread_db_find_new_threads): Add prototype.
21274 (thread_db_create_event): Check for the main thread before adding
21275 a new thread.
21276 (maybe_attach_thread): Only enable event reporting if TID == 0.
21277 (thread_db_get_tls_address): Check for new threads.
21278
2b876972
DJ
212792007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21280
21281 * linux-low.c (linux_create_inferior): Try execv before execvp.
21282 * spu-low.c (spu_create_inferior): Likewise.
21283
7a245884
DJ
212842007-06-13 Mike Frysinger <vapier@gentoo.org>
21285
21286 * linux-low.c (linux_create_inferior): Change execv to execvp.
21287 * spu-low.c (spu_create_inferior): Likewies.
21288
117ce543
DJ
212892007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21290
21291 * Makefile.in (clean): Clean new files instead of deleted ones.
21292 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21293 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21294 rules.
21295 * configure.srv: Specify XML files and new regformats for MIPS and
21296 MIPS64 GNU/Linux.
21297 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21298 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21299 an entry for the restart register.
21300 (mips_cannot_fetch_register, mips_cannot_store_register)
21301 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21302 register names to match the XML descriptions.
21303 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21304 restart register instead of $0.
21305
0e7f50da
UW
213062007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21307 Markus Deuling <deuling@de.ibm.com>
21308
21309 * remote-utils.c (decode_xfer_write): New function.
21310 * server.h (decode_xfer_write): Add prototype.
21311 * server.c (handle_query): Add PACKET_LEN argument. Support
21312 qXfer:spu:read and qXfer:spu:write packets.
21313 (main): Pass packet_len to handle_query.
21314 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21315 * target.h (target_ops): Add qxfer_spu.
21316
374c1d38
UW
213172007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21318
21319 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21320 accessing non-seekable spufs files.
21321
bb63802a
UW
213222007-05-16 Markus Deuling <deuling@de.ibm.com>
21323
889bf7c5 21324 * server.c (handle_query): Add reply for qC packet.
bb63802a 21325
7390519e
PA
213262007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21327 Leo Zayas <lerele@champenstudios@com>
21328
21329 * server.h (check_remote_input_interrupt_request): New function.
21330 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21331 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21332 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21333 (check_remote_input_interrupt_request): New function.
21334 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 21335 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
21336 winapi_GenerateConsoleCtrlEvent): New typedefs.
21337 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21338 to 250 ms.
21339 (win32_wait): Check for remote interrupt request
21340 with check_remote_input_interrupt_request.
21341 (win32_request_interrupt): New function.
21342 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21343
34b34921
PA
213442007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21345
21346 * win32-low.c (debug_registers_changed,
21347 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21348 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21349 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21350 (thread_rec): Get context using the low target.
21351 (child_add_thread): Call thread_added on the low target,
21352 which does the same thing.
21353 (regptr): Delete.
21354 (do_initial_child_stuff): Remove debug registers references.
21355 Set context using the low target. Resume threads after
21356 setting the contexts.
21357 (child_continue): Remove dead variable. Remove debug
21358 registers references.
21359 (child_fetch_inferior_registers): Go through the low target.
21360 (do_child_store_inferior_registers): Remove.
21361 (child_store_inferior_registers): Go through the low target.
21362 (win32_resume): Remove debug registers references.
21363 Set context using the low target.
21364 (handle_exception): Change return type to void. Don't record
21365 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21366 first chance exception.
889bf7c5 21367 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21368 goto loop. Always return after waiting for debug event.
21369 (win32_wait): Convert to switch statement. Handle spurious
21370 events.
21371
21372 * win32-i386-low.c (debug_registers_changed,
21373 debug_registers_used): New.
21374 (initial_stuff): Rename to ...
21375 (i386_initial_stuff): ... this. Clear debug registers
21376 state variables.
21377 (store_debug_registers): Delete.
21378 (i386_get_thread_context): New.
21379 (load_debug_registers): Delete.
21380 (i386_set_thread_context): New.
21381 (i386_thread_added): New.
21382 (single_step): Rename to ...
21383 (i386_single_step): ... this.
21384 (do_fetch_inferior_registers): Rename to ...
21385 (i386_fetch_inferior_register): ... this.
21386 (i386_store_inferior_register): New.
21387 (the_low_target): Adapt to new interface.
21388
21389 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21390 (arm_get_thread_context): New.
21391 (arm_set_thread_context): New.
21392 (regptr): New.
21393 (do_fetch_inferior_registers): Rename to ...
21394 (arm_fetch_inferior_register): ... this.
21395 (arm_store_inferior_register): New.
21396 (arm_wince_breakpoint): Reimplement as unsigned long.
21397 (arm_wince_breakpoint_len): Define.
21398 (the_low_target): Adapt to new interface.
21399
21400 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21401 load_debug_registers. Add get_thread_context, set_thread_context,
21402 thread_added and store_inferior_register. Rename
21403 fetch_inferior_registers to fetch_inferior_register.
21404 (regptr): Remove declaration.
21405
dd6953e1
PA
214062007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21407
21408 * linux-low.c (linux_detach): Change return type to int. Return 0.
21409 * spu-low.c (spu_detach): Likewise.
21410
444d6139
PA
214112007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21412
21413 * target.h (target_ops): Change return type of detach to int.
21414 Add join.
21415 (join_inferior): New.
21416 * server.c (main): Don't skip detach support on mingw32.
21417 If the inferior doesn't support detaching return error.
21418 Call join_inferior instead of using waitpid.
21419 * linux-low.c (linux_join): New.
21420 (linux_target_op): Add linux_join.
21421 * spu-low.c (spu_join): New.
21422 (spu_target_ops): Add spu_join.
21423 * win32-low.c (win32_detach): Adapt to new interface.
21424 Reopen current_process_handle before detaching. Issue a child
21425 resume before detaching.
21426 (win32_join): New.
21427 (win32_target_op): Add win32_join.
21428
1d5315fe
PA
214292007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21430
21431 * win32-low.c (win32-attach): Fix return value.
21432 * target.h (target_ops): Describe ATTACH return values.
21433
bf914831
PA
214342007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21435
21436 * win32-low.c (GETPROCADDRESS): Define.
21437 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21438 (winapi_DebugSetProcessKillOnExit): Likewise.
21439 (win32_create_inferior): Force usage of ansi CreateProcessA.
21440 (win32_attach): Use GETPROCADDRESS.
21441 (win32_detach): Likewise.
21442
f72f3e60
PA
214432007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21444
21445 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21446
ed50f18f
PA
214472007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21448
21449 * win32-low.c: Commit leftover changes from 2007-03-29.
21450
0c2ead7e
DJ
214512007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21452
21453 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21454 fields short instead of int. Add explicit padding.
21455 (i387_cache_to_fsave): Remove unnecessary casts.
21456 (i387_fsave_to_cache): Doc fix.
21457 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21458
73725ff3
DJ
214592007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21460
21461 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21462 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21463
d99f33d8
PA
214642007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21465
21466 * configure.srv (arm*-*-mingw32ce*): Move near the other
21467 arm targets.
21468
68070c10
PA
214692007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21470
2482afc6 21471 * configure.ac: Add errno checking.
68070c10
PA
21472 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21473 sys/file.h and malloc.h.
21474 (AC_CHECK_DECLS): Add perror.
21475 (srv_mingwce): Handle.
2482afc6 21476 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21477 win32-i386-low.o to srv_tgtobj.
21478 (i[34567]86-*-mingw*): Likewise.
21479 (arm*-*-mingw32ce*): Add case.
21480 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21481 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21482 [__MINGW32CE__] (strerror): New function.
21483 [__MINGW32CE__] (errno): Define to GetLastError.
21484 [__MINGW32CE__] (COUNTOF): New macro.
21485 (remote_open): Remove extra close call.
21486 * mem-break.c (delete_breakpoint_at): New function.
21487 * mem-break.h (delete_breakpoint_at): Declare.
21488 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21489 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21490 [USE_WIN32API] (read, write): Add char* casts.
21491 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21492 * server.h: Include wincecompat.h on Windows CE.
21493 [HAVE_ERRNO_H]: Check.
21494 (perror): Declare if not declared.
21495 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21496 (perror_with_name): Remove errno declaration.
21497 * wincecompat.h: New.
21498 * wincecompat.c: New.
21499 * win32-low.h: New.
21500 * win32-arm-low.c: New.
21501 * win32-i386-low.c: New.
21502 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21503 (OUTMSG2): Make it safe.
21504 (_T): New macro.
21505 (COUNTOF): New macro.
21506 (NUM_REGS): Get it from the low target.
21507 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21508 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21509 (thread_rec): Let low target handle debug registers.
21510 (child_add_thread): Likewise.
21511 (child_init_thread_list): Likewise.
21512 (continue_one_thread): Likewise.
21513 (regptr): New.
21514 (do_child_fetch_inferior_registers): Move to ...
21515 * win32-i386-low.c: ... here, and rename to ...
21516 (do_fetch_inferior_registers): ... this.
889bf7c5 21517 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21518 Go through the low target.
21519 (do_child_store_inferior_registers): Use regptr.
21520 (strwinerror): New function.
21521 (win32_create_inferior): Handle Windows CE.
21522 Use strwinerror instead of strerror on Windows error
21523 codes. Add program to the error output.
21524 Don't close the main thread handle on Windows CE.
21525 (win32_attach): Use coredll.dll on Windows CE.
21526 (win32_kill): Close current process and current
21527 thread handles.
21528 (win32_detach): Use coredll.dll on Windows CE.
21529 (win32_resume): Let low target handle debug registers, and
21530 step request.
21531 (handle_exception): Add/Remove initial breakpoint. Avoid
21532 non-existant WSTOPSIG on Windows CE.
21533 (win32_read_inferior_memory): Cast to remove warning.
21534 (win32_arch_string): Go through the low target.
21535 (initialize_low): Call set_breakpoint_data with the low
21536 target's breakpoint.
21537 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21538 FOP_REGNUM, mappings): Move to ...
21539 * win32-i386-low.c: ... here.
21540 * win32-low.c (win32_thread_info): Move to ...
21541 * win32-low.h: ... here.
21542 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21543 win32-arm-low.c and wincecompat.c.
21544 (all:): Add $EXEEXT.
21545 (install-only:): Likewise.
21546 (gdbserver:): Likewise.
21547 (gdbreplay:): Likewise.
21548 * config.in: Regenerate.
21549 * configure: Regenerate.
21550
41093d81
PA
215512007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21552
21553 * win32-low.c: Rename typedef thread_info to
21554 win32_thread_info throughout.
21555
544afa54
PA
215562007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21557
21558 * win32-i386-low.c: Rename to ...
21559 * win32-low.c: ... this.
21560 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21561 * Makefile.in: Likewise.
21562
bce7165d
PA
215632007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21564
21565 * remote-utils.c (monitor_output): Constify msg parameter.
21566 * server.h (monitor_output): Likewise.
21567 * win32-i386-low.c (handle_output_debug_string): New.
21568 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21569 handle_output_debug_string.
21570 (get_child_debug_event): Likewise.
21571
506c7aa0
DJ
215722007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21573
21574 * server.c (main): Correct strtoul check.
21575
42c81e2a
DJ
215762007-03-27 Jon Ringle <jon@ringle.org>
21577
21578 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21579
9453113a
DJ
215802007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21581
21582 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21583
64a69107
DJ
215842007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21585
21586 * terminal.h: Check HAVE_SGTTY_H.
21587
215882007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21589
21590 * remote-utils.c (remote_open): Print out the assigned port number.
21591
c74d0ad8
DJ
215922007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21593
21594 * remote-utils.c (monitor_output): New function.
21595 * server.c (debug_threads): Define here.
21596 (monitor_show_help): New function.
21597 (handle_query): Handle qRcmd.
21598 (main): Do not handle 'd' packet.
21599 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21600 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21601 of debug_threads.
21602
de7c3b4a
PA
216032007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21604
21605 * Makefile.in (EXEEXT): New.
21606 (clean): Use $(EXEEXT).
21607
ef57601b
PA
216082007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21609
21610 * target.h (target_ops): Rename send_signal to request_interrupt,
21611 and remove enum target_signal parameter.
21612 * linux-low.c (linux_request_interrupt): Rename from
21613 linux_send_signal, and always send SIGINT.
21614 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21615 and always send SIGINT.
21616 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21617 of send_signal.
21618 (input_interrupt): Likewise.
21619
820f2bda
PA
216202007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21621
21622 * server.c (get_features_xml): Check if target implemented
21623 arch_string.
21624 * win32-i386-low.c (win32_arch_string): New.
21625 (win32_target_ops): Add win32_arch_string as arch_string member.
21626
ab39bf24
UW
216272007-02-22 Markus Deuling <deuling@de.ibm.com>
21628
21629 * spu-low.c (spu_arch_string): New.
21630 (spu_target_ops): Add spu_arch_string.
21631
61ff6e04
DJ
216322007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21633
21634 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21635 * configure.ac: Do not check for terminal.h.
21636 * configure, config.in: Regenerated.
21637
fb1e4ffc
DJ
216382007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21639
21640 * Makefile.in (OBS): Add $(XML_BUILTIN).
21641 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21642 (clean): Update.
21643 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21644 (arm-with-iwmmxt.c): New.
21645 * config.in, configure: Regenerate.
21646 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21647 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21648 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21649 (arm*-*-linux*): Add iWMMXt and regset support.
21650 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21651 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21652 (arm_store_wmmxregset, target_regsets): New.
21653 * server.c (get_features_xml): Take annex argument. Check builtin
21654 XML documents.
21655 (handle_query): Handle multiple annexes.
21656
0f48aa01
DJ
216572007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21658
21659 * remote-utils.c [USE_WIN32API] (read, write): Define.
21660 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21661 write.
21662
23181151
DJ
216632007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21664
21665 * linux-i386-low.c (the_low_target): Set arch_string.
21666 * linux-x86-64-low.c (the_low_target): Likewise.
21667 * linux-low.c (linux_arch_string): New.
21668 (linux_target_ops): Add it.
21669 * linux-low.h (struct linux_target_ops): Add arch_string.
21670 * server.c (write_qxfer_response): Use const void * for DATA.
21671 (get_features_xml): New.
21672 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21673 * target.h (struct target_ops): Add arch_string method.
21674
9d606399
DJ
216752007-01-03 Denis Pilat <denis.pilat@st.com>
21676 Daniel Jacobowitz <dan@codesourcery.com>
21677
21678 * linux-low.c (linux_kill): Handle being called with no threads.
21679 * win32-i386-low.c (win32_kill): Likewise.
21680 (get_child_debug_event): Clear current_process_handle.
21681
216822006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21683 Daniel Jacobowitz <dan@codesourcery.com>
21684
21685 * remote-utils.c (remote_open): Check the type of specified
21686 serial port devices before opening them.
21687 * server.c (main): Kill the inferior if an error occurs during
21688 the first remote_open.
21689
a5e13d24
DJ
216902006-12-05 Markus Deuling <deuling@de.ibm.com>
21691
21692 * README: Update supported targets.
21693
186947f7
DJ
216942006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21695
21696 * Makefile.in (clean): Remove reg-mips64.c.
21697 (reg-mips64.c, reg-mips64.o): New rules.
21698 * configure.srv: Handle mips64. Include regset support for mips.
21699 * linux-mips-low.c (union mips_register): New.
21700 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21701 (mips_breakpoint, mips_breakpoint_at): Use int.
21702 (mips_collect_register, mips_supply_register)
21703 (mips_collect_register_32bit, mips_supply_register_32bit)
21704 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21705 (mips_store_fpregset, target_regsets): New.
21706 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21707
a13e2c95
UW
217082006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21709
21710 * configure.srv: Add target "spu*-*-*".
21711 * Makefile.in (clean): Remove reg-spu.c.
21712 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21713 * spu-low.c: New file.
21714
cb7283db
DJ
217152006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21716
21717 * configure.ac: Correct td_thr_tls_get_addr test.
21718 * configure: Regenerated.
21719
89be2091
DJ
217202006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21721
21722 * linux-low.c (linux_wait_for_event): Reformat. Use the
21723 pass_signals array.
21724 * remote-utils.c (decode_address_to_semicolon): New.
21725 * server.c (pass_signals, handle_general_set): New.
21726 (handle_query): Mention QPassSignals for qSupported.
21727 (main): Call handle_general_set.
21728 * server.h (pass_signals, decode_address_to_semicolon): New.
21729
000ef4f0
DJ
217302006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21731
21732 * server.c (handle_query): Correct error handling for read_auxv.
21733
b7149293
UW
217342005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21735
21736 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21737 and srv_linux_thread_db to yes.
21738 * linux-s390-low.c (s390_fill_gregset): New function.
21739 (target_regsets): Define data structure.
21740
dae5f5cf
DJ
217412006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21742
21743 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21744 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21745 * config.in, configure: Regenerated.
21746 * inferiors.c (gdb_id_to_thread): New function.
21747 (gdb_id_to_thread_id): Use it.
21748 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21749 * linux-low.h (struct process_info): Add th member.
21750 (thread_db_get_tls_address): New prototype.
21751 * remote-utils.c (decode_address): Make non-static.
21752 * server.c (handle_query): Handle qGetTLSAddr.
21753 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21754 * target.h (struct target_ops): Add get_tls_address.
21755 * thread-db.c (maybe_attach_thread): Save the thread handle.
21756 (thread_db_get_tls_address): New.
21757
32ca6d61
DJ
217582006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21759
21760 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21761 (linux_resume_one_process): Take a siginfo_t *. Update all
21762 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21763 (struct pending_signals): Add a siginfo_t.
21764 (linux_wait_for_process): Always set last_status.
21765 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21766 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21767 * linux-low.h (struct process_info): Add last_status.
21768
5ffff7c1
DJ
217692006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21770
21771 * remote-utils.c (try_rle): New function.
21772 (putpkt_binary): Use it.
21773
8695c747
DJ
217742006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21775
21776 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21777 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21778 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21779 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21780 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21781 point registers.
21782
290fadea
RS
217832006-08-08 Richard Sandiford <richard@codesourcery.com>
21784
21785 * server.c (terminal_fd): New variable.
21786 (old_foreground_pgrp): Likewise.
21787 (restore_old_foreground_pgrp): New function.
21788 (start_inferior): Record the terminal file descriptor in terminal_fd
21789 and its original foreground group in old_foreground_pgrp. Register
21790 restore_old_foreground_pgrp with atexit().
21791
9f2e1e63
DJ
217922006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21793
21794 * server.c (handle_query): Correct qPart to qXfer.
21795
b80864fb
DJ
217962006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21797
21798 * configure.ac: Check for more headers which are missing on
21799 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21800 * configure.srv: Add Cygwin and mingw32.
21801 * remote-utils.c: Don't include headers unconditionally which
21802 are missing on mingw32. Include <winsock.h> for mingw32.
21803 (remote_open): Adjust for mingw32 support. Flush
21804 standard error after writing to it.
21805 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21806 (unblock_async_io, enable_async_io, disable_async_io)
21807 (readchar, getpkt): Update for Winsock support.
21808 (prepare_resume_reply): Expect a protocol signal number.
21809 * server.c: Disable <sys/wait.h> on mingw32.
21810 (start_inferior): Adjust for mingw32 support. Flush
21811 standard error after writing to it.
21812 (attach_inferior): Likewise. Use protocol signal
21813 numbers.
21814 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21815 and names.
21816 * win32-i386-low.c: New file.
21817 * Makefile.in (XM_CLIBS): Set.
21818 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21819 (win32-i386-low.o): New dependency rule.
21820 * linux-low.c (linux_wait): Use target signal numbers.
21821 * target.h (struct target_ops): Doc fix.
21822 * server.h (target_signal_to_name): New prototype.
21823 * gdbreplay.c: Don't include headers unconditionally which
21824 are missing on mingw32. Include <winsock.h> for mingw32.
21825 (remote_close, remote_open): Adjust for Winsock support.
21826 * configure, config.in: Regenerated.
21827
0876f84a
DJ
218282006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21829
21830 * server.c (decode_xfer_read, write_qxfer_response): New.
21831 (handle_query): Take a packet length argument. Handle
21832 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21833 the qSupported response.
21834 (main): Update call to handle_query.
21835
01f9e8fa
DJ
218362006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21837
21838 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21839 (putpkt_binary): Renamed from putpkt and adjusted for binary
21840 data.
21841 (putpkt): New wrapper for putpkt_binary.
21842 (readchar): Don't mask off the high bit.
21843 (decode_X_packet): New function.
21844 * server.c (main): Call putpkt_binary if a handler sets the packet
21845 length. Save the length of the incoming packet. Handle 'X'.
21846 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21847
be2a5f71
DJ
218482006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21849
21850 * server.c (handle_query): Handle qSupported.
21851
ea025f5f
DJ
218522006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21853
21854 * remote-utils.c (all_symbols_looked_up): New variable.
21855 (look_up_one_symbol): Check it.
21856 * server.h (look_up_one_symbol): New declaration.
21857 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21858
9308fc88
DJ
218592006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21860
21861 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21862 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21863 (PTRACE_GET_THREAD_AREA): Define.
21864 (ps_get_thread_area): New function.
21865
52fb6437
NS
218662006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21867
21868 * configure.srv (m68k*-*-uclinux*): New target.
21869 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21870 (linux_resume_one_process): Remove extraneous cast.
21871 (linux_read_offsets): New.
21872 (linux_target_op): Add linux_read_offsets on mmuless systems.
21873 * server.c (handle_query): Add qOffsets logic.
21874 * target.h (struct target_ops): Add read_offsets.
21875
21b0f40c
DJ
218762006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21877
21878 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21879 (PTRACE_GET_THREAD_AREA): Define.
21880 (ps_get_thread_area): New function.
21881 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21882 (linux-x86-64-low.o): Update.
21883
0050a760
DJ
218842006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21885
21886 * configure.ac: Remove checks for prfpregset_t.
21887 * gdb_proc_service.h: New file.
21888 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21889 new "gdb_proc_service.h".
21890 * proc-service.c: Likewise.
21891 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21892 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21893 * Makefile.in (gdb_proc_service_h): Updated.
21894 * configure, config.in: Regenerated.
21895
b92a518e
DJ
218962006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21897
21898 * remote-utils.c (prepare_resume_reply): Move declaration
21899 of gdb_id_from_wait to the top of the block.
21900
545587ee
DJ
219012006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21902
21903 * linux-low.c (regsets_store_inferior_registers): Read the regset
21904 from the target before filling it.
21905
9db87ebd
DJ
219062006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21907
21908 * server.c (attach_inferior): Return SIGTRAP for a successful
21909 attach.
21910
dd24457d
DJ
219112006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21912
21913 * Makefile.in (OBS): Add version.o.
21914 (STAGESTUFF): Delete.
21915 (version.o): Add dependencies.
21916 (version.c): Replace rule.
21917 (clean): Remove version.c.
21918 * server.c (gdbserver_version): New.
21919 (gdbserver_usage): Use printf.
21920 (main): Handle --version and --help.
21921 * server.h (version, host_name): Add declarations.
21922
6f0f660e
EZ
219232005-12-23 Eli Zaretskii <eliz@gnu.org>
21924
889bf7c5
PA
21925 * linux-arm-low.c:
21926 * linux-arm-low.c:
21927 * inferiors.c:
21928 * i387-fp.h:
21929 * i387-fp.c:
21930 * gdbreplay.c:
21931 * regcache.c:
21932 * proc-service.c:
21933 * mem-break.h:
21934 * mem-break.c:
21935 * linux-x86-64-low.c:
21936 * linux-sh-low.c:
21937 * linux-s390-low.c:
21938 * linux-ppc64-low.c:
21939 * linux-ppc-low.c:
21940 * linux-mips-low.c:
21941 * linux-m68k-low.c:
21942 * linux-m32r-low.c:
21943 * linux-low.h:
21944 * linux-low.c:
21945 * linux-ia64-low.c:
21946 * linux-i386-low.c:
21947 * linux-crisv32-low.c:
21948 * thread-db.c:
21949 * terminal.h:
21950 * target.h:
21951 * target.c:
21952 * server.h:
21953 * server.c:
21954 * remote-utils.c:
21955 * regcache.h:
21956 * utils.c:
21957 * Makefile.in:
21958 * configure.ac:
6f0f660e
EZ
21959 * gdbserver.1: Add (C) after Copyright. Update the FSF
21960 address.
21961
9d1fb177
DJ
219622005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21963
21964 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21965 (arm_breakpoint_at): Recognize both breakpoints.
21966 (the_low_target): Use the correct breakpoint instruction.
21967
011a70c2
DJ
219682005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21969
21970 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21971 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21972 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21973 (the_low_target): Update.
21974
7fb85e41
AS
219752005-10-25 Andreas Schwab <schwab@suse.de>
21976
21977 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21978
21979 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21980 (ia64_num_regs): Reduce to 462.
21981
3db0444b
DJ
219822005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21983
21984 * acinclude.m4: Correct quoting.
21985 * aclocal.m4: Regenerated.
21986
21987 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21988 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21989 (thread_db_init): Call thread_db_err_str.
21990 * configure.ac: Check for TD_VERSION.
21991 * config.in, configure: Regenerated.
21992
bee0189a
DJ
219932005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21994
21995 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21996
e9d25b98
DJ
219972005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21998
21999 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
22000 is not available. Define HAVE_PTRACE_GETREGS if it is.
22001 * config.in, configure: Regenerated.
22002 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
22003 * linux-i386-low.c, linux-m68k-low.c: Update to use
22004 HAVE_PTRACE_GETREGS.
22005 * linux-low.c (regsets_fetch_inferior_registers)
22006 (regsets_store_inferior_registers): Only return 0 if we processed
22007 GENERAL_REGS.
22008 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
22009 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
22010
a06660f7
DJ
220112005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
22012
22013 * inferiors.c (struct thread_info): Add gdb_id.
22014 (add_thread): Add gdb_id argument.
22015 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
22016 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
22017 calls to add_thread.
22018 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
22019 * server.c (handle_query): Use thread_to_gdb_id.
22020 (handle_v_cont, main): Use gdb_id_to_thread_id.
22021 * server.h (add_thread): Update prototype.
22022 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
22023 prototypes.
22024
5a1f5858
DJ
220252005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
22026
22027 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
22028 left-padded registers.
22029 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
22030 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
22031
e122f1f5
SE
220322005-07-01 Steve Ellcey <sje@cup.hp.com>
22033
22034 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
22035 * configure: Regenerate.
22036 * config.in: Regenerate.
22037 * server.h (NEED_DECLARATION_STRERROR):
22038 Replace with !HAVE_DECL_STRERROR.
22039
d592fa2f
DJ
220402005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
22041
22042 * linux-low.c (linux_wait, linux_send_signal): Don't test
22043 an unsigned long variable for > 0 if it could be MAX_ULONG.
22044 * server.c (myresume): Likewise.
22045 * target.c (set_desired_inferior): Likewise.
22046
ccbd4912
MK
220472005-06-13 Mark Kettenis <kettenis@gnu.org>
22048
22049 * configure.ac: Simplify and improve check for socklen_t.
22050 * configure, config.in: Regenerate.
22051
f450004a
DJ
220522005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
22053
22054 * acconfig.h: Remove.
22055 * configure.ac: Add a test for socklen_t. Use three-argument
22056 AC_DEFINE throughout.
22057 * config.in: Regenerated using autoheader 2.59.
22058 * configure: Regenerated.
22059
22060 * gdbreplay.c (socklen_t): Provide a default.
22061 (remote_open): Use socklen_t.
22062 * remote-utils.c (socklen_t): Provide a default.
22063 (remote_open): Use socklen_t.
22064 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
22065 unsigned char.
22066
22067 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22068 char for buffers.
22069 * linux-low.c (linux_read_memory, linux_write_memory)
22070 (linux_read_auxv): Likewise.
22071 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22072 (check_mem_write): Likewise.
22073 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22074 Likewise.
22075 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22076 (registers_from_string, register_data): Likewise.
22077 * server.c (handle_query, main): Likewise.
22078 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22079 (decode_M_packet): Likewise.
22080 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22081 * target.h (struct target_ops): Update read_memory, write_memory,
22082 and read_auxv.
22083 (read_inferior_memory, write_inferior_memory): Update.
22084 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22085 to unsigned char *.
22086 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22087 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22088 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22089 linux-s390-low.c, linux-sh-low.c: Update for changes in
22090 read_inferior_memory and the_low_target->breakpoint.
22091
eee84df1
DJ
220922005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22093
22094 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22095 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22096 * configure.srv: Add powerpc64-*-linux*.
22097 * linux-ppc64-low.c: New file.
22098
45b134e5
OF
220992005-05-23 Orjan Friberg <orjanf@axis.com>
22100
22101 * linux-cris-low.c: New file with support for CRIS.
22102 * linux-crisv32-low.c: Ditto for CRISv32.
22103 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22104 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 22105 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
22106 reg-crisv32.o, and reg-crisv32.c to make rules.
22107 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22108 recognized targets.
22109
48d93c75
UW
221102005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22111
22112 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22113 of sizeof (PTRACE_XFER_TYPE).
22114 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22115
e013ee27
OF
221162005-05-12 Orjan Friberg <orjanf@axis.com>
22117
889bf7c5 22118 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
22119 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22120 pointers for hardware watchpoint support.
22121 * linux-low.h (struct linux_target_ops): Ditto.
22122 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22123 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22124 to linux_target_ops.
22125 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22126 reply packet.
22127 * server.c (main): Recognize 'Z' and 'z' packets.
22128
b0ded00b
UW
221292005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22130
22131 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22132 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22133 (the_low_target): Add new members.
22134
8643e2ad
DJ
221352005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22136
22137 * proc-service.c (ps_lgetregs): Search all_processes instead of
22138 all_threads.
22139
fc620387
DJ
221402005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22141
22142 * server.c (start_inferior): Change return type to int.
22143 (attach_inferior): Change sigptr to int *.
22144 (handle_v_cont, handle_v_requests): Change signal to int *.
22145 (main): Change signal to int.
22146
221472005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
22148
22149 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22150 * configure.srv: Add m32r*-*-linux*.
22151 * linux-m32r-low.c: New file.
22152
e0e76420
DJ
221532005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22154
22155 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22156
a1928bad
DJ
221572005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22158
22159 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22160 Take unsigned long arguments for PIDs.
22161 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22162 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22163 (wait_for_sigstop, linux_resume_one_process)
22164 (regsets_fetch_inferior_registers, linux_send_signal)
22165 (linux_read_auxv): Likewise. Update the types of variables holding
22166 PIDs. Update format string specifiers.
22167 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22168 * remote-utils.c (prepare_resume_reply): Likewise.
22169 * server.c (cont_thread, general_thread, step_thread)
22170 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22171 unsigned long.
22172 (handle_query): Update format specifiers.
22173 (handle_v_cont, main): Use strtoul for thread IDs.
22174 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22175 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22176 (general_thread, step_thread, thread_from_wait)
22177 (old_thread_from_wait): Update.
22178 * target.h (struct thread_resume): Use unsigned long for THREAD.
22179 (struct target_ops): Use unsigned long for arguments to attach and
22180 thread_alive.
22181
dcdb98d2
DJ
221822005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22183
22184 * acinclude.m4: Include bfd/bfd.m4 directly.
22185 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22186 <agriffis@toolchain.org>.
22187 * aclocal.m4, configure: Regenerated.
22188
bec39cab
AC
221892005-01-07 Andrew Cagney <cagney@gnu.org>
22190
22191 * configure.ac: Rename configure.in, require autoconf 2.59.
22192 * configure: Re-generate.
22193
434c4c77
DJ
221942004-12-08 Daniel Jacobowitz <dan@debian.org>
22195
22196 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22197 LIBS when finished.
22198 * aclocal.m4: Regenerated.
22199 * configure: Regenerated.
22200
db1d3e1b
AS
222012004-11-21 Andreas Schwab <schwab@suse.de>
22202
22203 * linux-m68k-low.c (m68k_num_gregs): Define.
22204 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22205 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22206 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22207 (m68k_breakpoint_at): New. Add to the_low_target.
22208
22209 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22210 srv_linux_thread_db to yes.
22211
43360365
JB
222122004-10-20 Joel Brobecker <brobecker@gnat.com>
22213
22214 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22215 (ARCH_SET_FS): Likewise.
22216 (ARCH_GET_FS): Likewise.
22217 (ARCH_GET_GS): Likewise.
22218
fd500816
DJ
222192004-10-16 Daniel Jacobowitz <dan@debian.org>
22220
22221 * linux-i386-low.c (ps_get_thread_area): New.
22222 * linux-x86-64-low.c (ps_get_thread_area): New.
22223 * linux-low.c: Include <sys/syscall.h>.
22224 (linux_kill_one_process): Don't kill the first thread here.
22225 (linux_kill): Kill the first thread here.
22226 (kill_lwp): New function.
22227 (send_sigstop, linux_send_signal): Use it.
22228 * proc-service.c: Clean up #ifdefs.
22229 (fpregset_info): Delete.
22230 (ps_lgetregs): Update and enable implementation.
22231 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22232 implementations.
22233 * remote-utils.c (struct sym_cache, symbol_cache): New.
22234 (input_interrupt): Print a clearer message.
22235 (async_io_enabled): New variable.
22236 (enable_async_io, disable_async_io): Use it. Update comments.
22237 (look_up_one_symbol): Use the symbol cache.
22238 * thread-db.c (thread_db_look_up_symbols): New function.
22239 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22240
f6de3c42
DJ
222412004-10-16 Daniel Jacobowitz <dan@debian.org>
22242
22243 * configure.in: Test for -rdynamic.
22244 * configure: Regenerated.
22245 * Makefile (INTERNAL_LDFLAGS): New.
22246 (gdbserver, gdbreplay): Use it.
22247
2c0fc042
AC
222482004-09-02 Andrew Cagney <cagney@gnu.org>
22249
22250 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22251
075b3282
DJ
222522004-03-23 Daniel Jacobowitz <drow@mvista.com>
22253
22254 * linux-low.c (linux_wait): Clear all_processes list also.
22255
fa6a77dc
DJ
222562004-03-12 Daniel Jacobowitz <drow@mvista.com>
22257
22258 * linux-low.c: Include <errno.h>. Remove extern declaration of
22259 errno.
22260
6d782a97
DJ
222612004-03-12 Daniel Jacobowitz <drow@mvista.com>
22262
22263 * gdbreplay.c, server.h, utils.c: Update copyright years.
22264
3a7fb99b
DJ
222652004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22266
22267 * server.c (main): Print child status or termination signal from
22268 variable 'signal', not 'sig'.
22269
c3e735a6
DJ
222702004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22271
22272 * linux-low.c (linux_read_memory): Change return type to
22273 int. Check for and return error from ptrace().
22274 * target.c (read_inferior_memory): Change return type to int. Pass
22275 back return status from the_target->read_memory().
22276 * target.h (struct target_ops): Adapt *read_memory() prototype.
22277 Update comment.
22278 (read_inferior_memory): Adapt prototype.
22279 * server.c (main): Return an error packet if
22280 read_inferior_memory() returns an error.
22281
a59d1c82
DJ
222822004-03-04 Daniel Jacobowitz <drow@mvista.com>
22283
22284 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22285 Unify with other clean targets.
22286
dc3f8883
DJ
222872004-02-29 Daniel Jacobowitz <drow@mvista.com>
22288
22289 * server.c (handle_v_cont): Call set_desired_inferior.
22290
89a208da
DJ
222912004-02-29 Daniel Jacobowitz <drow@mvista.com>
22292
22293 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22294
62ea82f5
DJ
222952004-02-29 Daniel Jacobowitz <drow@mvista.com>
22296
22297 * linux-low.c (linux_wait): Unblock async I/O.
22298 (linux_resume): Block and enable async I/O.
22299 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22300 * server.h (block_async_io, unblock_async_io): Add prototypes.
22301
6910d122
DJ
223022004-02-29 Daniel Jacobowitz <drow@mvista.com>
22303
22304 * remote-utils.c (remote_open): Print a status notice after
22305 opening a TCP port.
22306 * server.c (attach_inferior): Print a status notice after
22307 attaching.
22308
223092004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
22310
22311 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22312
c89dc5d4
DJ
223132004-02-26 Daniel Jacobowitz <drow@mvista.com>
22314
22315 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22316 error packet.
22317 * server.c, target.h: Update copyright years.
22318
4b8dad4a
RM
223192004-02-25 Roland McGrath <roland@redhat.com>
22320
22321 * target.h (struct target_ops): New member `read_auxv'.
22322 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22323 * linux-low.c (linux_read_auxv): New function.
22324 (linux_target_ops): Initialize `read_auxv' member to that.
22325
d7446758
JB
223262004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22327
22328 Committed by Jim Blandy <jimb@redhat.com>.
22329
22330 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 22331 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
22332 instead of GPR_SIZE to distiguish s390 and s390x targets.
22333
5544ad89
DJ
223342004-01-31 Daniel Jacobowitz <drow@mvista.com>
22335
22336 * linux-low.c: Update copyright year.
22337 (check_removed_breakpoint): Clear pending_is_breakpoint.
22338 (linux_set_resume_request, linux_queue_one_thread)
22339 (resume_status_pending_p): New functions.
22340 (linux_continue_one_thread): Use process->resume.
22341 (linux_resume): Only resume threads if there are no pending events.
22342 * linux-low.h (struct process_info): Add resume request
22343 pointer.
22344
2a68b70e
DJ
223452004-01-30 Daniel Jacobowitz <drow@mvista.com>
22346
22347 * regcache.c (new_register_cache): Clear the allocated register
22348 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22349
64386c31
DJ
223502003-10-13 Daniel Jacobowitz <drow@mvista.com>
22351
22352 * linux-low.c (linux_resume): Take a struct thread_resume *
22353 argument.
22354 (linux_wait): Update call.
22355 (resume_ptr): New static variable.
22356 (linux_continue_one_thread): Renamed from
22357 linux_continue_one_process. Use resume_ptr.
22358 (linux_resume): Use linux_continue_one_thread.
22359 * server.c (handle_v_cont, handle_v_requests): New functions.
22360 (myresume): New function.
22361 (main): Handle 'v' case.
22362 * target.h (struct thread_resume): New type.
22363 (struct target_ops): Change argument of "resume" to struct
22364 thread_resume *.
22365 (myresume): Delete macro.
22366
c938e9b0
L
223672003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22368
22369 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22370 (uninstall): Support DESTDIR.
22371
7f313d07
BC
22372Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22373
22374 * configure.srv: Add xscale*linux copy of arm*linux entry.
22375
3b2fc2ea
DJ
223762003-07-24 Daniel Jacobowitz <drow@mvista.com>
22377
22378 * linux-arm-low.c (arm_reinsert_addr): New function.
22379 (the_low_target): Add arm_reinsert_addr.
22380
1c0a559e
MK
223812003-07-08 Mark Kettenis <kettenis@gnu.org>
22382
22383 * mem-break.c: Remove whitespace at end of file.
22384
43d5792c
DJ
223852003-06-28 Daniel Jacobowitz <drow@mvista.com>
22386
22387 * configure.in: Check whether we need to prototype strerror.
22388 * server.h: Optionally prototype strerror.
22389 * gdbreplay.c (perror_with_name): Use strerror.
22390 * linux-low.c (linux_attach_lwp): Use strerror.
22391 * utils.c (perror_with_name): Use strerror.
22392 * config.in, configure: Regenerated.
22393
c8a86edf
DJ
223942003-06-28 Daniel Jacobowitz <drow@mvista.com>
22395
22396 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22397 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22398
73d37363
DJ
223992003-06-20 Daniel Jacobowitz <drow@mvista.com>
22400
22401 * Makefile.in (SFILES): Update.
22402 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22403 low-sun3.c: Remove files.
22404
6ad8ae5c
DJ
224052003-06-17 Daniel Jacobowitz <drow@mvista.com>
22406
22407 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22408 (linux_detach_one_process, linux_detach): New functions.
22409 (linux_target_ops): Add linux_detach.
22410 * server.c (main): Handle 'D' packet.
22411 * target.h (struct target_ops): Add "detach" member.
22412 (detach_inferior): Define.
22413
1581182a
MK
224142003-06-13 Mark Kettenis <kettenis@gnu.org>
22415
22416 From Kelley Cook <kelleycook@wideopenwest.com>:
22417 * configure.srv: Accept i[34567]86 variants.
22418
e5379b03
DJ
224192003-06-05 Daniel Jacobowitz <drow@mvista.com>
22420
22421 * linux-low.c (linux_wait_for_event): Correct comment typos.
22422 (linux_resume_one_process): Call check_removed_breakpoint.
22423 (linux_send_signal): New function.
22424 (linux_target_ops): Add linux_send_signal.
22425 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22426 of kill.
22427 * target.h (struct target_ops): Add send_signal.
22428
2ff29de4
JB
224292003-05-29 Jim Blandy <jimb@redhat.com>
22430
22431 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22432 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22433 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22434 away part of the register's value.
22435
254787d4
DJ
224362003-03-26 Daniel Jacobowitz <drow@mvista.com>
22437
22438 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22439 (linux_wait_for_event, linux_init_signals): Likewise.
22440
94e10508
DJ
224412003-03-17 Daniel Jacobowitz <drow@mvista.com>
22442
22443 * configure.in: Check for stdlib.h.
22444 * configure: Regenerated.
22445 * config.in: Regenerated.
22446
4c0711e0
DJ
224472003-01-04 Andreas Schwab <schwab@suse.de>
22448
22449 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22450
ef66e766
AC
224512003-01-02 Andrew Cagney <ac131313@redhat.com>
22452
22453 * Makefile.in: Remove obsolete code.
22454
a1358604
DJ
224552002-11-20 Daniel Jacobowitz <drow@mvista.com>
22456
22457 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22458 defined(PT_FPR0_HI).
22459
23ce3b1c
DJ
224602002-11-17 Stuart Hughes <seh@zee2.com>
22461
22462 * linux-arm-low.c (arm_num_regs): Increase.
22463 (arm_regmap): Include status register.
22464
224652002-11-17 Daniel Jacobowitz <drow@mvista.com>
22466
22467 * linux-low.c (register_addr): Remove incorrect -1 check.
22468
a9fa9f7d
DJ
224692002-08-29 Daniel Jacobowitz <drow@mvista.com>
22470
22471 * linux-low.c (linux_create_inferior): Call setpgid. Return
22472 the new PID.
22473 (unstopped_p, linux_signal_pid): Remove.
22474 (linux_target_ops): Remove linux_signal_pid.
22475 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22476 global instead of target method.
22477 * target.h (struct target_ops): Remove signal_pid. Update comment
22478 for create_inferior.
22479 * server.c (signal_pid): New variable.
22480 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22481 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22482 (attach_inferior): Set signal_pid.
22483
17574093
DJ
224842002-08-23 Daniel Jacobowitz <drow@mvista.com>
22485
22486 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22487
224882002-08-20 Jim Blandy <jimb@redhat.com>
22489
22490 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22491 default for this.
22492
224932002-08-01 Andrew Cagney <cagney@redhat.com>
22494
22495 * Makefile.in: Make chill references obsolete.
22496
224972002-07-24 Kevin Buettner <kevinb@redhat.com>
22498
22499 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22500 * configure: Regenerate.
22501 * config.in: Regenerate.
22502
225032002-07-09 David O'Brien <obrien@FreeBSD.org>
22504
22505 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22506 (perror_with_name, remote_close, remote_open, expect, play): Static.
22507
225082002-07-04 Michal Ludvig <mludvig@suse.cz>
22509
4b8dad4a 22510 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22511 byte offsets instead of an array of indexes.
22512 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22513
225142002-06-13 Daniel Jacobowitz <drow@mvista.com>
22515
22516 * regcache.c: Add comment.
22517
225182002-06-11 Daniel Jacobowitz <drow@mvista.com>
22519
22520 * thread-db.c: New file.
22521 * proc-service.c: New file.
22522 * acinclude.m4: New file.
22523 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22524 proc-service.o, and thread-db.o.
22525 (linux-low.o): Add USE_THREAD_DB.
22526 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22527 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22528 * aclocal.m4: Regenerated.
22529 * config.in: Regenerated.
22530 * configure: Regenerated.
22531 * configure.in: Check for proc_service.h, sys/procfs.h,
22532 thread_db.h, and linux/elf.h headrs.
22533 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22534 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22535 Check for -lthread_db and thread support.
22536 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22537 PowerPC, and SuperH.
22538 * i387-fp.c: Constify arguments.
22539 * i387-fp.h: Likewise.
22540 * inferiors.c: (struct thread_info): Renamed from
22541 `struct inferior_info'. Remove PID member. Use generic inferior
22542 list header. All uses updated.
22543 (inferiors, signal_pid): Removed.
22544 (all_threads): New variable.
22545 (get_thread): Define.
22546 (add_inferior_to_list): New function.
22547 (for_each_inferior): New function.
22548 (change_inferior_id): New function.
22549 (add_inferior): Removed.
22550 (remove_inferior): New function.
22551 (add_thread): New function.
22552 (free_one_thread): New function.
22553 (remove_thread): New function.
22554 (clear_inferiors): Use for_each_inferior and free_one_thread.
22555 (find_inferior): New function.
22556 (find_inferior_id): New function.
22557 (inferior_target_data): Update argument type.
22558 (set_inferior_target_data): Likewise.
22559 (inferior_regcache_data): Likewise.
22560 (set_inferior_regcache_data): Likewise.
22561 * linux-low.c (linux_bp_reinsert): Remove.
22562 (all_processes, stopping_threads, using_thrads)
22563 (struct pending_signals, debug_threads, pid_of): New.
22564 (inferior_pid): Replace with macro.
22565 (struct inferior_linux_data): Remove.
22566 (get_stop_pc, add_process): New functions.
22567 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22568 Use add_process and add_thread.
22569 (linux_attach_lwp): New function, based on old linux_attach. Use
22570 add_process and add_thread. Set stop_expected for new threads.
22571 (linux_attach): New function.
22572 (linux_kill_one_process): New function.
22573 (linux_kill): Kill all LWPs.
22574 (linux_thread_alive): Use find_inferior_id.
22575 (check_removed_breakpoints, status_pending_p): New functions.
22576 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22577 Update. Use WNOHANG. Wait for cloned processes also. Update process
22578 struct for the found process.
22579 (linux_wait_for_event): New function.
22580 (linux_wait): Use it. Support LWPs.
22581 (send_sigstop, wait_for_sigstop, stop_all_processes)
22582 (linux_resume_one_process, linux_continue_one_process): New functions.
22583 (linux_resume): Support LWPs.
22584 (REGISTER_RAW_SIZE): Remove.
22585 (fetch_register): Use register_size instead. Call supply_register.
22586 (usr_store_inferior_registers): Likewise. Call collect_register.
22587 Fix recursive case.
22588 (regsets_fetch_inferior_registers): Improve error message.
22589 (regsets_store_inferior_registers): Add debugging.
22590 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22591 (unstopped_p, linux_signal_pid): New functions.
22592 (linux_target_ops): Add linux_signal_pid.
22593 (linux_init_signals): New function.
22594 (initialize_low): Call it. Initialize using_threads.
22595 * regcache.c (inferior_regcache_data): Add valid
22596 flag.
22597 (get_regcache): Fetch registers lazily. Add fetch argument
22598 and update all callers.
22599 (regcache_invalidate_one, regcache_invalidate): New
22600 functions.
22601 (new_register_cache): Renamed from create_register_cache.
22602 Return the new regcache.
22603 (free_register_cache): Change argument to a void *.
22604 (registers_to_string, registers_from_string): Call get_regcache
22605 with fetch flag set.
22606 (register_data): Make static. Pass fetch flag to get_regcache.
22607 (supply_register): Call get_regcache with fetch flag clear.
22608 (collect_register): Call get_regcache with fetch flag set.
22609 (collect_register_as_string): New function.
22610 * regcache.h: Update.
22611 * remote-utils.c (putpkt): Flush after debug output and use
22612 stderr.
22613 Handle input interrupts while waiting for an ACK.
22614 (input_interrupt): Use signal_pid method.
22615 (getpkt): Flush after debug output and use stderr.
22616 (outreg): Use collect_register_as_string.
22617 (new_thread_notify, dead_thread_notify): New functions.
22618 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22619 and general_thread.
22620 (look_up_one_symbol): Flush after debug output.
22621 * server.c (step_thread, server_waiting): New variables.
22622 (start_inferior): Don't use signal_pid. Update call to mywait.
22623 (attach_inferior): Update call to mywait.
22624 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22625 (main): Don't fetch/store registers explicitly. Use
22626 set_desired_inferior. Support proposed ``Hs'' packet. Update
22627 calls to mywait.
22628 * server.h: Update.
22629 (struct inferior_list, struct_inferior_list_entry): New.
22630 * target.c (set_desired_inferior): New.
22631 (write_inferior_memory): Constify.
22632 (mywait): New function.
22633 * target.h: Update.
22634 (struct target_ops): New signal_pid method.
22635 (mywait): Removed macro, added prototype.
22636
22637 * linux-low.h (regset_func): Removed.
22638 (regset_fill_func, regset_store_func): New.
22639 (enum regset_type): New.
22640 (struct regset_info): Add type field. Use new operation types.
22641 (struct linux_target_ops): stop_pc renamed to get_pc.
22642 Add decr_pc_after_break and breakpoint_at.
22643 (get_process, get_thread_proess, get_process_thread)
22644 (strut process_info, all_processes, linux_attach_lwp)
22645 (thread_db_init): New.
22646
22647 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22648 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22649 (the_low_target): Add new members.
22650 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22651 (i386_store_fpxregset): Constify.
22652 (target_regsets): Add new kind identifier.
22653 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22654 (i386_set_pc): Add debugging.
22655 (i386_breakpoint_at): New function.
22656 (the_low_target): Add new members.
22657 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22658 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22659 (mips_breakpoint_at): New.
22660 (the_low_target): Add new members.
22661 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22662 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22663 (the_low_target): Add new members.
22664 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22665 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22666 (the_low_target): Add new members.
22667 * linux-x86-64-low.c (target_regsets): Add new kind
22668 identifier.
22669
226702002-05-15 Daniel Jacobowitz <drow@mvista.com>
22671
22672 From Martin Pool <mbp@samba.org>:
22673 * server.c (gdbserver_usage): New function.
22674 (main): Call it.
22675
226762002-05-14 Daniel Jacobowitz <drow@mvista.com>
22677
22678 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22679 stop_at -> stop_pc.
22680
226812002-05-04 Andrew Cagney <ac131313@redhat.com>
22682
22683 * Makefile.in: Remove obsolete code.
22684
226852002-04-24 Michal Ludvig <mludvig@suse.cz>
22686
22687 * linux-low.c (regsets_fetch_inferior_registers),
22688 (regsets_store_inferior_registers): Removed cast to int from
22689 ptrace() calls.
22690 * regcache.h: Added declaration of struct inferior_info.
22691
226922002-04-20 Daniel Jacobowitz <drow@mvista.com>
22693
22694 * inferiors.c (struct inferior_info): Add regcache_data.
22695 (add_inferior): Call create_register_cache.
22696 (clear_inferiors): Call free_register_cache.
22697 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22698 * regcache.c (struct inferior_regcache_data): New.
22699 (registers): Remove.
22700 (get_regcache): New function.
22701 (create_register_cache, free_register_cache): New functions.
22702 (set_register_cache): Don't initialize the register cache here.
22703 (registers_to_string, registers_from_string, register_data): Call
22704 get_regcache.
22705 * regcache.h: Add prototypes.
22706 * server.h: Likewise.
22707
227082002-04-20 Daniel Jacobowitz <drow@mvista.com>
22709
22710 * mem-break.c: New file.
22711 * mem-break.h: New file.
22712 * Makefile.in: Add mem-break.o rule; update server.h
22713 dependencies.
22714 * inferiors.c (struct inferior_info): Add target_data
22715 member.
22716 (clear_inferiors): Free target_data member if set.
22717 (inferior_target_data, set_inferior_target_data): New functions.
22718 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22719 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22720 * linux-low.c (linux_bp_reinsert): New variable.
22721 (struct inferior_linux_data): New.
22722 (linux_create_inferior): Use set_inferior_target_data.
22723 (linux_attach): Likewise. Call add_inferior.
22724 (linux_wait_for_one_inferior): New function.
22725 (linux_wait): Call it.
22726 (linux_write_memory): Add const.
22727 (initialize_low): Call set_breakpoint_data.
22728 * linux-low.h (struct linux_target_ops): Add breakpoint
22729 handling members.
22730 * server.c (attach_inferior): Remove extra add_inferior
22731 call.
22732 * server.h: Include mem-break.h. Update inferior.c
22733 prototypes.
22734 * target.c (read_inferior_memory)
22735 (write_inferior_memory): New functions.
22736 * target.h (read_inferior_memory)
22737 (write_inferior_memory): Change macros to prototypes.
22738 (struct target_ops): Update comments. Add const to write_memory
22739 definition.
22740
227412002-04-11 Daniel Jacobowitz <drow@mvista.com>
22742
22743 * linux-low.c (usr_store_inferior_registers): Support
22744 registers which are allowed to fail to store.
22745 * linux-low.h (linux_target_ops): Likewise.
22746 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22747 (ppc_cannot_store_register): FPSCR may not be storable.
22748
227492002-04-09 Daniel Jacobowitz <drow@mvista.com>
22750
22751 * server.h: Include <string.h> if HAVE_STRING_H.
22752 * ChangeLog: Correct paths in last ChangeLog entry.
22753
227542002-04-09 Daniel Jacobowitz <drow@mvista.com>
22755
22756 * linux-low.h: Remove obsolete prototypes.
22757 (struct linux_target_ops): New.
22758 (extern the_low_target): New.
22759 * linux-low.c (num_regs, regmap): Remove declarations.
22760 (register_addr): Use the_low_target explicitly.
22761 (fetch_register): Likewise.
22762 (usr_fetch_inferior_registers): Likewise.
22763 (usr_store_inferior_registers): Likewise.
22764 * linux-arm-low.c (num_regs): Remove.
22765 (arm_num_regs): Define.
22766 (arm_regmap): Renamed from regmap, made static.
22767 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22768 made static.
22769 (arm_cannot_store_register): Renamed from cannot_store_register,
22770 made static.
22771 (the_low_target): New.
22772 * linux-i386-low.c (num_regs): Remove.
22773 (i386_num_regs): Define.
22774 (i386_regmap): Renamed from regmap, made static.
22775 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22776 made static.
22777 (i386_cannot_store_register): Renamed from cannot_store_register,
22778 made static.
22779 (the_low_target): New.
22780 * linux-ia64-low.c (num_regs): Remove.
22781 (ia64_num_regs): Define.
22782 (ia64_regmap): Renamed from regmap, made static.
22783 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22784 made static.
22785 (ia64_cannot_store_register): Renamed from cannot_store_register,
22786 made static.
22787 (the_low_target): New.
22788 * linux-m68k-low.c (num_regs): Remove.
22789 (m68k_num_regs): Define.
22790 (m68k_regmap): Renamed from regmap, made static.
22791 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22792 made static.
22793 (m68k_cannot_store_register): Renamed from cannot_store_register,
22794 made static.
22795 (the_low_target): New.
22796 * linux-mips-low.c (num_regs): Remove.
22797 (mips_num_regs): Define.
22798 (mips_regmap): Renamed from regmap, made static.
22799 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22800 made static.
22801 (mips_cannot_store_register): Renamed from cannot_store_register,
22802 made static.
22803 (the_low_target): New.
22804 * linux-ppc-low.c (num_regs): Remove.
22805 (ppc_num_regs): Define.
22806 (ppc_regmap): Renamed from regmap, made static.
22807 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22808 made static.
22809 (ppc_cannot_store_register): Renamed from cannot_store_register,
22810 made static.
22811 (the_low_target): New.
22812 * linux-s390-low.c (num_regs): Remove.
22813 (s390_num_regs): Define.
22814 (s390_regmap): Renamed from regmap, made static.
22815 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22816 made static.
22817 (s390_cannot_store_register): Renamed from cannot_store_register,
22818 made static.
22819 (the_low_target): New.
22820 * linux-sh-low.c (num_regs): Remove.
22821 (sh_num_regs): Define.
22822 (sh_regmap): Renamed from regmap, made static.
22823 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22824 made static.
22825 (sh_cannot_store_register): Renamed from cannot_store_register,
22826 made static.
22827 (the_low_target): New.
22828 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22829 (the_low_target): New.
22830
228312002-04-09 Daniel Jacobowitz <drow@mvista.com>
22832
22833 * Makefile.in: Add stamp-h target.
22834 * configure.in: Create stamp-h.
22835 * configure: Regenerated.
22836
228372002-04-09 Daniel Jacobowitz <drow@mvista.com>
22838
22839 * inferiors.c: New file.
22840 * target.c: New file.
22841 * target.h: New file.
22842 * Makefile.in: Add target.o and inferiors.o. Update
22843 dependencies.
22844 * linux-low.c (inferior_pid): New static variable,
22845 moved from server.c.
22846 (linux_create_inferior): Renamed from create_inferior.
22847 Call add_inferior. Return 0 on success instead of a PID.
22848 (linux_attach): Renamed from myattach.
22849 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22850 (linux_thread_alive): Renamed from mythread_alive.
22851 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22852 child dies.
22853 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22854 (regsets_store_inferior_registers): Correct error message.
22855 Add missing ``return 0''.
22856 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22857 (linux_store_registers): Renamed from store_inferior_registers.
22858 (linux_read_memory): Renamed from read_inferior_memory.
22859 (linux_write_memory): Renamed from write_inferior_memory.
22860 (linux_target_ops): New structure.
22861 (initialize_low): Call set_target_ops ().
22862 * remote-utils.c (unhexify): New function.
22863 (hexify): New function.
22864 (input_interrupt): Send signals to ``signal_pid''.
22865 * server.c (inferior_pid): Remove.
22866 (start_inferior): Update create_inferior call.
22867 (attach_inferior): Call add_inferior.
22868 (handle_query): New function.
22869 (main): Call handle_query for `q' packets.
22870 * server.h: Include "target.h". Remove obsolete prototypes.
22871 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22872
228732002-04-09 Daniel Jacobowitz <drow@mvista.com>
22874
22875 * Makefile.in: Add WARN_CFLAGS. Update configury
22876 dependencies.
22877 * configure.in: Check for <string.h>
22878 * configure: Regenerate.
22879 * config.in: Regenerate.
22880 * gdbreplay.c: Include needed system headers.
22881 (remote_open): Remove strchr prototype.
22882 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22883 * regcache.c (supply_register): Change buf argument to const void *.
22884 (supply_register_by_name): Likewise.
22885 (collect_register): Change buf argument to void *.
22886 (collect_register_by_name): Likewise.
22887 * regcache.h: Add missing prototypes.
22888 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22889 * server.c (handle_query): New function.
22890 (attached): New static variable, moved out of main.
22891 (main): Quiet longjmp clobber warnings.
22892 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22893 * utils.c (error): Remove NORETURN.
22894 (fatal): Likewise.
This page took 2.777604 seconds and 4 git commands to generate.