Don't run personality syscall at configure time; don't check it at all
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
4655f850
PA
12021-05-08 Pedro Alves <pedro@palves.net>
2
3 * linux-low.cc:
4 (linux_process_target::supports_disable_randomization): Remove
5 reference to HAVE_PERSONALITY.
6 * config.in, configure: Regenerate.
7
e2ea3a38
PA
82021-05-08 Pedro Alves <pedro@palves.net>
9
10 * linux-low.cc: Don't include sys/personality.h or define
11 ADDR_NO_RANDOMIZE.
12
482155e6
TBA
132021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14
15 * server.cc (handle_v_attach)
16 (handle_v_run)
17 (handle_v_kill): Make void.
18
82288339
TT
192021-05-03 Tom Tromey <tromey@adacore.com>
20
21 PR build/27807:
22 * win32-i386-low.cc (i386_get_thread_context): Call
23 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
24
e228ef97
TT
252021-04-30 Tom Tromey <tromey@adacore.com>
26
27 * win32-low.cc (do_initial_child_stuff): Update.
28 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
29 Change parameter type.
30 (win32_add_dll, win32_add_all_dlls)
31 (windows_nat::handle_load_dll): Remove.
32 (get_child_debug_event): Call dll_loaded_event.
33
de071872
TT
342021-04-30 Tom Tromey <tromey@adacore.com>
35
36 * win32-low.cc (GETPROCADDRESS): Remove.
37 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
38 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
39 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
40 (win32_Wow64SetThreadContext): Remove.
41 (win32_set_thread_context, do_initial_child_stuff)
42 (win32_process_target::attach, win32_process_target::detach):
43 Update.
44 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
45 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
46 Remove.
47 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
48 (win32_GetModuleInformation, win32_GetModuleInformationA):
49 Remove.
50 (load_psapi): Remove.
51 (win32_add_dll, win32_process_target::request_interrupt): Update.
52 (initialize_low): Call initialize_loadable.
53
38ae2915
TT
542021-04-14 Tom Tromey <tromey@adacore.com>
55
56 * win32-low.cc (windows_nat::handle_load_dll): Don't check
57 _WIN32_WCE.
58
6cacd449
PA
592021-04-13 Pedro Alves <pedro@palves.net>
60
61 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
62
1228cb90
TT
632021-04-13 Tom Tromey <tromey@adacore.com>
64
65 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
66 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
67
0256da25
PA
682021-04-13 Pedro Alves <pedro@palves.net>
69
70 * Makefile.in (SFILES): Remove hostio-errno.cc.
71 * configure: Regenerate.
72 * configure.ac (GDBSERVER_DEPFILES): No longer add
73 $srv_hostio_err_objs.
74 * configure.srv (srv_hostio_err_objs): Delete.
75 * hostio-errno.cc: Delete.
76 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
77 here.
78 * hostio.h (hostio_last_error_from_errno): Delete.
79 * target.cc (process_stratum_target::hostio_last_error): Delete.
80 * target.h (class process_stratum_target) <hostio_last_error>:
81 Delete.
82
d4717483
SM
832021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
86 * win32-low.h: Likewise.
87
04977957
TBA
882021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
89
90 * target.h (class process_stratum_target) <pid_to_exec_file>:
91 Constify the return type. Update the definition/references below.
92 * target.cc (process_stratum_target::pid_to_exec_file)
93 * linux-low.h (class linux_process_target) <pid_to_exec_file>
94 * linux-low.cc (linux_process_target::pid_to_exec_file)
95 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
96 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
97 * server.cc (handle_qxfer_exec_file)
98
114ee2a4
EZ
992021-04-11 Eli Zaretskii <eliz@gnu.org>
100
101 * win32-low.cc (win32_add_dll): New function, with body almost
102 identical to what win32_add_all_dlls did. Accepts one argument;
103 if that is non-NULL, returns the file name of the DLL that is
104 loaded at the base address equal to that argument, or NULL if not
105 found. If the argument is NULL, add all the DLLs loaded by the
106 inferior to the list of solibs and return NULL.
107 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
108 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
109 failed to glean the file name of the DLL, call win32_add_dll to
110 try harder using the lpBaseOfDll member of the load-DLL event.
111
782c1ab8
LM
1122021-03-30 Luis Machado <luis.machado@linaro.org>
113
114 * server.cc (handle_general_set, handle_query): Update variable
115 to bool and fix verification logic.
116
41919a58
LM
1172021-03-24 Luis Machado <luis.machado@linaro.org>
118
119 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
120 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
121 nat/aarch64-mte-linux-ptrace.o.
122 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
123 (class aarch64_target) <supports_memory_tagging>
124 <fetch_memtags, store_memtags>: New method overrides.
125 (aarch64_target::supports_memory_tagging)
126 (aarch64_target::fetch_memtags)
127 (aarch64_target::store_memtags): New methods.
128
5e984dbf
LM
1292021-03-24 Luis Machado <luis.machado@linaro.org>
130
131 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
132 (aarch64_store_mteregset): New function.
133 (aarch64_regsets): Add MTE register set entry.
134 (aarch64_sve_regsets): Add MTE register set entry.
135
c1bd443b
LM
1362021-03-24 Luis Machado <luis.machado@linaro.org>
137
138 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
139 aarch64_linux_read_description.
140 (initialize_low_tracepoint): Likewise.
141 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
142 into account.
143 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
144 for MTE.
145 (aarch64_linux_read_description): Add mte_p parameter and update to
146 use it.
147 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
148 parameter.
149
04245125
LM
1502021-03-24 Luis Machado <luis.machado@linaro.org>
151
152 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
153
c2cfa654
LM
1542021-03-24 Luis Machado <luis.machado@linaro.org>
155
156 * server.cc (test_memory_tagging_functions): New function.
157 (captured_main): Register test_memory_tagging_functions.
158
546b77fe
LM
1592021-03-24 Luis Machado <luis.machado@linaro.org>
160
161 * remote-utils.cc (decode_m_packet_params): Renamed from ...
162 (decode_m_packet): ... this, which now calls decode_m_packet_params.
163 Make char * param/return const char *.
164 (decode_M_packet): Use decode_m_packet_params and make char * param
165 const char *.
166 * remote-utils.h (decode_m_packet_params): New prototype.
167 (decode_m_packet): Constify char pointers.
168 (decode_M_packet): Likewise.
169 * server.cc (create_fetch_memtags_reply)
170 (parse_store_memtags_request): New
171 functions.
172 (handle_general_set): Handle the QMemTags packet.
173 (parse_fetch_memtags_request): New function.
174 (handle_query): Handle the qMemTags packet and advertise memory
175 tagging support.
176 (captured_main): Initialize memory tagging flag.
177 * server.h (struct client_state): Initialize memory tagging flag.
178 * target.cc (process_stratum_target::supports_memory_tagging)
179 (process_stratum_target::fetch_memtags)
180 (process_stratum_target::store_memtags): New methods.
181 * target.h: Include gdbsupport/byte-vector.h.
182 (class process_stratum_target) <supports_memory_tagging>
183 <fetch_memtags, store_memtags>: New class virtual methods.
184 (target_supports_memory_tagging): Define.
185
d171632f
TBA
1862021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
187
188 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
189 fields.
190 * dll.h (loaded_dll)
191 (unloaded_dll): Declare an overloaded version that takes a proc
192 parameter.
193 * dll.cc (loaded_dll)
194 (unloaded_dll): Implement the overloaded versions.
195 (clear_dlls): Clear all process' dll lists.
196 (all_dlls, dlls_changed): Remove the global variables.
197 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
198 list per proc.
199 * server.cc (handle_qxfer_libraries): Ditto.
200 (handle_v_attach): Ditto.
201 (captured_main): Ditto.
202
1a48f002
SM
2032021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
204
205 * linux-low.cc (linux_process_target::filter_event): Return
206 void.
207 * linux-low.h (class linux_process_target) <filter_event>:
208 Return void.
209
77fba254
TT
2102021-02-12 Tom Tromey <tromey@adacore.com>
211
212 * gdbreplay.cc (remote_desc): Remove.
213 (remote_desc_in, remote_desc_out): New globals.
214 (remote_close): Update.
215 (remote_open): Handle "-".
216 (remote_open): Update.
217 (logchar): Log to stderr.
218 (expect, play): Update.
219
c054dcd5
TT
2202021-02-12 Tom Tromey <tromey@adacore.com>
221
222 * gdbreplay.cc (remote_open): Constify.
223
9c9d63b1
PM
2242021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
225
226 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
227 gnulib free replacement too.
228 * common-defs.h [USE_WIN32API](read, write): Undefine
229 gnulib versions before defining these macros.
230
7e9cf1fe
PA
2312021-02-03 Pedro Alves <pedro@palves.net>
232
233 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
234 Discard step SIGTRAP, unless GDB wanted the thread to step.
235
b0083dd7
PA
2362021-02-03 Pedro Alves <pedro@palves.net>
237
238 * server.cc (discard_queued_stop_replies): Don't ever discard the
239 notification at the head of the list.
240
6bd434d6
SM
2412021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
242
243 * ax.cc (bytecode_address_table): Make static.
244 * debug.cc (debug_file): Make static.
245 * linux-low.cc (stopping_threads): Make static.
246 (step_over_bkpt): Make static.
247 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
248 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
249 alloced_trace_state_variables, trace_buffer_ctrl,
250 tracing_start_time, tracing_stop_time, tracing_user_name,
251 tracing_notes, tracing_stop_note): Make static.
252
037e8112
TV
2532021-01-20 Tom de Vries <tdevries@suse.de>
254
255 * linux-x86-low.cc (collect_register_i386): New function.
256 (x86_fill_gregset): Remove memset. Use collect_register_i386.
257
78e49486
TV
2582021-01-07 Tom de Vries <tdevries@suse.de>
259
260 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
261 (LIBIBERTY_FOR_SHLIB): New var.
262 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
263 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
264
3ec3145c
SM
2652021-01-04 Simon Marchi <simon.marchi@efficios.com>
266
267 * debug.cc (debug_print_depth): New.
268
2b47c078
JB
2692021-01-01 Joel Brobecker <brobecker@adacore.com>
270
271 * server.cc (gdbserver_version): Update copyright year.
272 * gdbreplay.cc (gdbreplay_version): Likewise.
273
19007d95
LM
2742020-12-16 Luis Machado <luis.machado@linaro.org>
275
276 * linux-aarch64-low.cc (address_significant): New function.
277 (aarch64_target::low_stopped_data_address): Handle the TBI.
278
96648494
AB
2792020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 * Makefile.in (IPA_LIB): Include libiberty library.
282
81fdd7ac
AB
2832020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
284
285 * server.cc (gdbserver_usage): Add missing option to usage text.
286 (gdbserver_show_disableable): Likewise.
287
dda83cd7
SM
2882020-11-02 Simon Marchi <simon.marchi@efficios.com>
289
290 * ax.cc: Fix indentation.
291 * dll.cc: Fix indentation.
292 * inferiors.h: Fix indentation.
293 * linux-low.cc: Fix indentation.
294 * linux-nios2-low.cc: Fix indentation.
295 * linux-ppc-ipa.cc: Fix indentation.
296 * linux-ppc-low.cc: Fix indentation.
297 * linux-x86-low.cc: Fix indentation.
298 * linux-xtensa-low.cc: Fix indentation.
299 * regcache.cc: Fix indentation.
300 * server.cc: Fix indentation.
301 * tracepoint.cc: Fix indentation.
302
19dd0ae5
SM
3032020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
304
305 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
306 AC_LANG_PROGRAM.
307 * configure: Re-generate.
308
b6fb30ed
SM
3092020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
310
311 * configure: Re-generate.
864ca435
SM
312
3132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * configure: Re-generate.
b9442ec1
SM
316
3172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
318
319 * configure: Re-generate.
b6fb30ed 320
5164c117
SM
3212020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
322
323 * configure: Re-generate.
324
7e8c7130
SM
3252020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
326
327 * configure.ac: Modernize.
328 * configure: Re-generate.
329
91e1a0ed
SM
3302020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
333 AC_CANONICAL_SYSTEM.
334 * configure: Re-generate.
335
d744f0f9
PA
3362020-10-26 Pedro Alves <pedro@palves.net>
337
338 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
339 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
340 explicit type.
341
006811bc
SM
3422020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
343
344 * acinclude.m4: Update ptrace.m4 path.
345
92a048fd
SM
3462020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * config.in: Re-generate.
349 * configure: Re-generate.
350
4dbe16c8
SM
3512020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
352
353 * server.cc (handle_general_set): Don't use sprintf with
354 argument overlapping buffer.
355
a9b45cb7
TT
3562020-10-20 Tom Tromey <tromey@adacore.com>
357
358 PR gdb/26742:
359 * inferiors.cc (remove_thread): Clear current_thread before
360 freeing the thread.
361
b07993f6
KR
3622020-10-13 Kamil Rytarowski <n54@gmx.com>x
363
364 * netbsd-low.cc (netbsd_tdesc): Remove.
365 (netbsd_add_process): Likewise.
366 (netbsd_process_target::create_inferior): Update.
367
bbb826f5
AB
3682020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
369
370 * linux-arc-low.cc (arc_linux_read_description): Release the
371 unique_ptr returned from arc_create_target_description.
372
361cb219
AB
3732020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
374
375 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
376 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
377
51a948fd
AB
3782020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
379
380 * linux-low.cc (linux_process_target::handle_extended_wait):
381 Release the unique_ptr returned from allocate_target_description.
382 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
383 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
384 (tdesc_i386_linux_no_xml): Change type.
385 (x86_linux_read_description): Borrow pointer from unique_ptr
386 object.
387 (x86_target::get_ipa_tdesc_idx): Likewise.
388 (initialize_low_arch): Likewise.
389 * tdesc.cc (allocate_target_description): Update return type.
390
60b74662
TT
3912020-10-07 Tom Tromey <tromey@adacore.com>
392
393 * server.cc (handle_search_memory): Remove dead code.
394
55b10d89
TT
3952020-10-07 Tom Tromey <tromey@adacore.com>
396
397 * server.cc (handle_search_memory_1): Remove.
398 (handle_search_memory): Use simple_search_memory.
399
a038ffd8
SM
4002020-10-07 Simon Marchi <simon.marchi@efficios.com>
401
402 * Makefile.in (COMPILE): Add CXXFLAGS.
403 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
404 (gdbserver$(EXEEXT)): Add CXXFLAGS.
405 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
406 ($(IPA_LIB)): Add CXXFLAGS.
407 (IPAGENT_COMPILE): Add CXXFLAGS.
408
bbe90b5d 4092020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
410
411 * configure.srv: Support ARC architecture.
412 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
413 * linux-arc-low.cc: New file.
414
48491055
KR
4152020-10-07 Kamil Rytarowski <n54@gmx.com>
416
417 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
418 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
419 (netbsd_process_target::qxfer_libraries_svr4): Update.
420
2be01f63
KR
4212020-10-07 Kamil Rytarowski <n54@gmx.com>
422
423 * netbsd-low.cc: Fix whitespace formatting.
424 * netbsd-amd64-low.cc: Likewise.
425
91e5e8db
KR
4262020-10-07 Kamil Rytarowski <n54@gmx.com>
427
428 * netbsd-low.cc (netbsd_process_target::read_memory)
429 (netbsd_process_target::write_memory): Update.
430
9529c852
KR
4312020-10-07 Kamil Rytarowski <n54@gmx.com>
432
433 * netbsd-aarch64-low.cc: Add.
434 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
435 * configure.srv: Add aarch64*-*-netbsd*.
436
981b570a
SV
4372020-10-06 Shahab Vahedi <shahab@synopsys.com>
438
439 * regcache.cc (register_data): Remove unused "fetch" argument.
440
6b01403b
SM
4412020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
442
443 * server.cc (handle_monitor_command): Handle "set
444 debug-event-loop".
445 (captured_main): Handle "--debug-event-loop".
446 (monitor_show_help): Mention new setting.
447 (gdbserver_usage): Mention new flag.
448
2554f6f5
SM
4492020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
450
451 * linux-low.cc (linux_process_target::async): Pass name to
452 add_file_handler.
453 * remote-utils.cc (handle_accept_event): Likewise.
454 (remote_open): Likewise.
455
8b667fae
KR
4562020-10-01 Kamil Rytarowski <n54@gmx.com>
457
458 * netbsd-i386-low.cc: Add.
459 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
460 * configure.srv: Add i[34567]86-*-netbsd*.
461
15397b0e
KR
4622020-10-01 Kamil Rytarowski <n54@gmx.com>
463
464 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
465 (netbsd_target_regsets): Now const.
466 (the_low_target): Remove.
467 (class netbsd_amd64_target, the_netbsd_amd64_target)
468 (the_netbsd_target): Add.
469 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
470 low_arch_setup ().
471 (netbsd_process_target::fetch_registers)
472 (netbsd_process_target::store_registers, initialize_low): Update.
473 (the_netbsd_target): Remove.
474 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
475 (the_low_target, netbsd_tdesc): Remove.
476 (netbsd_process_target::get_regs_info)
477 (netbsd_process_target::low_arch_setup): Add.
478
99bb393f
HD
4792020-09-23 Hannes Domani <ssbssa@yahoo.de>
480
481 * win32-low.cc: Remove local wow64_process variable.
482 * win32-low.h: Remove local wow64_process variable.
483
b60cea74
TT
4842020-09-18 Tom Tromey <tromey@adacore.com>
485
486 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
487 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
488 (netbsd_process_target::wait): Change type of target_options.
489 * win32-low.h (class win32_process_target) <wait>: Update.
490 * win32-low.cc (win32_process_target::wait): Update.
491 * target.h (class process_stratum_target) <wait>: Update.
492 (mywait): Update.
493 * target.cc (mywait, target_wait): Change type of "options".
494 * linux-low.h (class linux_process_target) <wait, wait_1>:
495 Update.
496 * linux-low.cc (linux_process_target::wait)
497 (linux_process_target::wait_1): Update.
498
db92ac45
TT
4992020-09-15 Tom Tromey <tromey@adacore.com>
500
501 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
502 (xmltarget_amd64_linux_no_xml): Now arrays.
503
27087b7f
TT
5042020-09-14 Tom Tromey <tromey@adacore.com>
505
506 * tracepoint.cc (eval_result_names): Now const.
507 * ax.cc (gdb_agent_op_names): Now const.
508
62ba5048
KR
5092020-09-10 Kamil Rytarowski <n54@gmx.com>
510
511 * netbsd-low.cc: Add.
512 * netbsd-low.h: Likewise.
513 * netbsd-amd64-low.cc: Likewise.
514 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
515 "netbsd-amd64-low.cc".
516 * configure.srv: Add x86_64-*-netbsd*.
517
ece5bc8a
SM
5182020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
519
520 * server.cc (captured_main): Accept multiple `--selftest=`
521 options. Pass all `--selftest=` arguments to run_tests.
522
c8693053
RO
5232020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
524
525 * configure, config.in: Regenerate.
526
05a6b8c2
EZ
5272020-07-26 Eli Zaretskii <eliz@gnu.org>
528
529 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
530 When checking whether socklen_t type is defined, use ws2tcpip.h if
531 it is available and sys/socket.h isn't.
532 * configure: Regenerate.
533 * config.in: Regenerate.
534
028a4603
PA
5352020-07-22 Pedro Alves <pedro@palves.net>
536
537 * inferiors.cc (switch_to_process): New, moved here from
538 thread-db.cc, and made extern.
539 * inferiors.h (switch_to_process): Declare.
540 * server.cc: Include "gdbsupport/scoped_restore.h".
541 (handle_qxfer_threads_proper): Now returns bool. Prepare to
542 access memory around target calls.
543 (handle_qxfer_threads): Handle errors.
544 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
545
05c309a8
SM
5462020-07-21 Simon Marchi <simon.marchi@efficios.com>
547
548 * linux-low.cc (stopped_pids): Make static.
549
0e267416
AB
5502020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
551
552 * tdesc.cc (allocate_target_description): Add header comment.
553 (target_desc_deleter::operator()): New function.
554 * tdesc.h (struct target_desc): Declare as final.
555
b315b67d
SM
5562020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
557
558 * server.cc (handle_query): Use std::vector of
559 std::string for `qsupported` vector. Use separate
560 vector for unknowns.
561 * target.h (class process_stratum_target) <process_qsupported>:
562 Change parameters to array_view of const char *.
563 (target_process_qsupported): Remove `count` parameter.
564 * target.cc (process_stratum_target::process_qsupported): Change
565 parameters to array_view of const char *.
566 * linux-x86-low.cc (class x86_target) <process_qsupported>:
567 Likewise.
568
f638ed73
TV
5692020-06-29 Tom de Vries <tdevries@suse.de>
570
571 * ax.h: Include gdbsupport/debug_agent.h.
572
fbf42f4e
AB
5732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * tdesc.cc (struct tdesc_compatible_info): New struct.
576 (tdesc_compatible_info_list): New function.
577 (tdesc_compatible_info_arch_name): New function.
578
013e3554
TBA
5792020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
580
581 Use std::list to stop pending signal instead of manually-created
582 linked list.
583 * linux-low.h: Include <list>.
584 (struct pending_signal): Move here from linux-low.cc.
585 (struct lwp_info) <pending_signals>
586 <pending_signals_to_report>: Update the type.
587 * linux-low.cc (struct pending_signals): Remove.
588 (linux_process_target::delete_lwp)
589 (linux_process_target::add_lwp)
590 (enqueue_one_deferred_signal)
591 (dequeue_one_deferred_signal)
592 (enqueue_pending_signal)
593 (linux_process_target::resume_one_lwp_throw)
594 (linux_process_target::thread_needs_step_over)
595 (linux_process_target::resume_one_thread)
596 (linux_process_target::proceed_one_lwp): Update the use of pending
597 signal list.
598
7d458ea5
SM
5992020-06-17 Simon Marchi <simon.marchi@efficios.com>
600
601 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
602 Remove.
603
84b300de
SM
6042020-06-12 Simon Marchi <simon.marchi@efficios.com>
605
606 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
607 * configure.srv: Remove mingw32ce cases.
608 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
609 * win32-low.h (to_back_slashes): Remove.
610 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
611
96c16e2b
SM
6122020-06-12 Simon Marchi <simon.marchi@efficios.com>
613
614 * Makefile.in (SFILES): linux-tile-low.cc.
615 * configure.srv: Remove tilegx case.
616 * linux-tile-low.cc: Remove.
617
bd1467ae
SM
6182020-06-12 Simon Marchi <simon.marchi@efficios.com>
619
620 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
621 * configure.srv: Remove m32r case.
622 * linux-m32r-low.cc: Remove.
623
7b46bf6f
SM
6242020-06-12 Simon Marchi <simon.marchi@efficios.com>
625
626 * Makefile.in (SFILES): Remove linux-cris-low.c.
627 * configure.srv: Remove cris cases.
628 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
629
1fa29f56
SM
6302020-06-12 Simon Marchi <simon.marchi@efficios.com>
631
632 * Makefile.in (SFILES): Remove linux-bfin-low.c.
633 * configure.srv: Remove bfin case.
634 * linux-bfin-low.cc: Remove.
635 * linux-low.cc: Remove BFIN-conditional code.
636
613f149a
SM
6372020-06-12 Simon Marchi <simon.marchi@efficios.com>
638
639 * configure: Re-generate.
640 * configure.ac: Remove srv_qnx test.
641 * configure.srv: Remove nto case.
642 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
643 * remote-utils.c: Remove __QNX__-guarded code.
644
fdb95bf5
SM
6452020-06-12 Simon Marchi <simon.marchi@efficios.com>
646
647 * configure: Re-generate.
648 * configure.ac: Remove srv_lynxos test.
649 * configure.srv: Remove lynxos cases.
650 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
651 Remove.
652
c00094dc
SM
6532020-06-12 Simon Marchi <simon.marchi@efficios.com>
654
655 * README: Fix a few outdated or incoherent things.
656
6479bf85
HD
6572020-05-27 Hannes Domani <ssbssa@yahoo.de>
658
659 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
660 (win32_clear_inferiors): Use open_process_used.
661 (get_child_debug_event): Likewise.
662
bea571eb
MW
6632020-05-25 Michael Weghorn <m.weghorn@posteo.de>
664
665 PR gdbserver/25893
666 * linux-low.cc (linux_process_target::create_inferior),
667 lynx-low.cc (lynx_process_target::create_inferior),
668 win32-low.cc (win32_process_target::create_inferior): Use
669 construct_inferior_arguments instead of stringify_argv
670 to get string representation which properly escapes
671 special characters.
672 * server.cc (handle_v_run): Just pass empty program arg
673 as such, since any further processing is now handled via
674 construct_inferior_arguments.
675
ace6b919
MW
6762020-05-25 Michael Weghorn <m.weghorn@posteo.de>
677
678 * nto-low.cc (nto_process_target::create_inferior): Pass
679 argv to spawnp function as char **.
680
b69ca137
MW
6812020-05-25 Michael Weghorn <m.weghorn@posteo.de>
682
683 * server.cc (captured_main), (handle_v_run): No longer
684 insert extra NULL element to args vector.
685
51e2cfa2
PA
6862020-05-23 Pedro Alves <palves@redhat.com>
687
688 * gdb-safe-ctype.h: New.
689
8bbf0394
TBA
6902020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
691
692 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
693 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
694 (ia64_target::low_breakpoint_at): Ditto.
695
01370779
HD
6962020-05-15 Hannes Domani <ssbssa@yahoo.de>
697
698 * win32-i386-low.cc (i386_supports_z_point_type): Handle
699 Z_PACKET_HW_BP z_type.
700 (i386_insert_point): Handle raw_bkpt_type type.
701 (i386_remove_point): Likewise.
702
7d186bc0
HD
7032020-04-30 Hannes Domani <ssbssa@yahoo.de>
704
705 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
706 Add arch/i386.o.
707 * win32-arm-low.cc (arm_num_regs): New function.
708 (struct win32_target_ops): Use arm_num_regs.
709 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
710 processes.
711 (i386_get_thread_context): Likewise.
712 (i386_prepare_to_resume): Likewise.
713 (i386_thread_added): Likewise.
714 (i386_single_step): Likewise.
715 (i386_fetch_inferior_register): Likewise.
716 (i386_store_inferior_register): Likewise.
717 (i386_arch_setup): Likewise.
718 (i386_win32_num_regs): New function.
719 (struct win32_target_ops): Use i386_win32_num_regs.
720 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
721 processes.
722 (win32_require_context): Likewise.
723 (child_add_thread): Likewise.
724 (do_initial_child_stuff): Likewise.
725 (continue_one_thread): Likewise.
726 (win32_process_target::resume): Likewise.
727 (load_psapi): Likewise.
728 (win32_add_all_dlls): Likewise.
729 (maybe_adjust_pc): Likewise.
730 (win32_process_target::qxfer_siginfo): Likewise.
731 (initialize_low): Likewise.
732 * win32-low.h (struct win32_target_ops): Change num_regs to
733 callback function.
734
1eb39914
SM
7352020-04-27 Simon Marchi <simon.marchi@efficios.com>
736
737 * configure.ac: Remove check for fs_base/gs_base in
738 user_regs_struct.
739 * configure: Re-generate.
740 * config.in: Re-generate.
741 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
742 x86_store_gregset): Adjust.
743
51ac8e22
HD
7442020-04-22 Hannes Domani <ssbssa@yahoo.de>
745
746 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
747 comparison.
748
a010605f
TT
7492020-04-16 Tom Tromey <tromey@adacore.com>
750
751 * win32-low.cc (windows_nat::handle_access_violation): New
752 function.
753
e2275c6e
SM
7542020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * win32-low.cc (get_child_debug_event): Fix format string warning.
757
73944e9f
TT
7582020-04-13 Tom Tromey <tom@tromey.com>
759
760 * server.h (gdb_fildes_t): Remove typedef.
761 * remote-utils.c (remote_desc, list_desc): Now int.
762 (INVALID_DESCRIPTOR): Remove.
763 (gdb_connected, remote_close)
764 (check_remote_input_interrupt_request): Update.
765 * utils.h (pfildes): Don't declare.
766 * utils.c (pfildes): Remove.
767
55d7aec8
TT
7682020-04-13 Tom Tromey <tom@tromey.com>
769
770 * server.h (handle_serial_event, handle_target_event): Update.
771 * server.c: Don't call initialize_event_loop.
772 (keep_processing_events): New global.
773 (handle_serial_event): Return void. Set keep_processing_events.
774 (handle_target_event): Return void.
775 (start_event_loop): Move from event-loop.c. Rewrite.
776 * remote-utils.c (handle_accept_event): Return void.
777 (reset_readchar): Use delete_timer.
778 (process_remaining): Return void.
779 (reschedule): Use create_timer.
780 * event-loop.h: Remove.
781 * event-loop.cc: Remove.
782 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
783
e487f994
TT
7842020-04-13 Tom Tromey <tom@tromey.com>
785
786 * server.c (invoke_async_signal_handlers)
787 (check_async_event_handlers, flush_streams, gdb_select): New
788 functions.
789
8ae8e197
TT
7902020-04-13 Tom Tromey <tom@tromey.com>
791
792 * configure: Rebuild.
793 * config.in: Rebuild.
794
360ad8b3
TT
7952020-04-08 Tom Tromey <tromey@adacore.com>
796
797 PR gdb/22992
798 * win32-low.c (child_continue): Call matching_pending_stop.
799 (get_child_debug_event): Call fetch_pending_stop. Push pending
800 stop when needed.
801
523d4f80
TT
8022020-04-08 Tom Tromey <tromey@adacore.com>
803
804 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
805 (win32_process_target::supports_stopped_by_sw_breakpoint):
806 Declare.
807 * win32-low.c (win32_supports_z_point_type): Always handle
808 Z_PACKET_SW_BP.
809 (win32_insert_point): Call insert_memory_breakpoint when needed.
810 (win32_remove_point): Call remove_memory_breakpoint when needed.
811 (win32_process_target::stopped_by_sw_breakpoint)
812 (win32_process_target::supports_stopped_by_sw_breakpoint): New
813 methods.
814 (win32_target_ops): Update.
815 (maybe_adjust_pc): New function.
816 (win32_wait): Call maybe_adjust_pc.
817
e54e5929
TT
8182020-04-08 Tom Tromey <tromey@adacore.com>
819
820 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
821 field.
822 * win32-i386-low.c (the_low_target): Update.
823 * win32-arm-low.c (the_low_target): Update.
824
d6225aff
TT
8252020-04-08 Tom Tromey <tromey@adacore.com>
826
827 * win32-low.h (win32_process_target::read_pc)
828 (win32_process_target::write_pc): Declare.
829 * win32-low.c (win32_process_target::read_pc)
830 (win32_process_target::write_pc): New methods.
831 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
832 functions.
833 (the_low_target): Update.
834 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
835 functions.
836 (the_low_target): Update.
837
2c1d95e8
TT
8382020-04-08 Tom Tromey <tromey@adacore.com>
839
840 * win32-low.c (win32_kill, get_child_debug_event): Use
841 wait_for_debug_event.
842
e758e19c
TT
8432020-04-08 Tom Tromey <tromey@adacore.com>
844
845 * win32-low.c (child_continue): Call continue_last_debug_event.
846
8d30e395
TT
8472020-04-08 Tom Tromey <tromey@adacore.com>
848
849 * win32-low.c (handle_exception): Remove.
850 (windows_nat::handle_ms_vc_exception): New function.
851 (get_child_debug_event): Add "continue_status" parameter.
852 Update.
853 (win32_wait): Update.
854
a816ba18
TT
8552020-04-08 Tom Tromey <tromey@adacore.com>
856
857 * win32-low.c (windows_nat::handle_load_dll): Rename from
858 handle_load_dll. No longer static.
859 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
860 No longer static.
861
d41b524f
TT
8622020-04-08 Tom Tromey <tromey@adacore.com>
863
864 * win32-low.c (handle_output_debug_string): Add parameter. Change
865 return type.
866 (win32_kill, get_child_debug_event): Update.
867
3c76026d
TT
8682020-04-08 Tom Tromey <tromey@adacore.com>
869
870 * win32-low.c (current_process_handle, current_process_id)
871 (main_thread_id, last_sig, current_event, siginfo_er): Move to
872 nat/windows-nat.c.
873
9d8679cc
TT
8742020-04-08 Tom Tromey <tromey@adacore.com>
875
876 * win32-low.c (get_image_name): Remove.
877 (handle_load_dll): Update.
878
28688adf
TT
8792020-04-08 Tom Tromey <tromey@adacore.com>
880
881 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
882 No longer static. Change parameters.
883 (child_add_thread, child_fetch_inferior_registers)
884 (child_store_inferior_registers, win32_resume)
885 (win32_get_tib_address): Update.
886
4834dad0
TT
8872020-04-08 Tom Tromey <tromey@adacore.com>
888
889 * win32-low.h (struct win32_target_ops): Use qualified names where
890 needed.
891 * win32-i386-low.c: Add "using namespace".
892 * win32-low.c: Add "using namespace".
893 * win32-arm-low.c: Add "using namespace".
894
65bafd5b
TT
8952020-04-08 Tom Tromey <tromey@adacore.com>
896
897 * win32-low.c (delete_thread_info): Don't call CloseHandle.
898
98a03287
TT
8992020-04-08 Tom Tromey <tromey@adacore.com>
900
901 * win32-low.c (win32_require_context, suspend_one_thread): Use
902 windows_thread_info::suspend.
903 (continue_one_thread): Use windows_thread_info::resume.
904 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
905
62fe396b
TT
9062020-04-08 Tom Tromey <tromey@adacore.com>
907
908 * win32-i386-low.c (update_debug_registers)
909 (i386_prepare_to_resume, i386_thread_added): Update.
910
e9534bd2
TT
9112020-04-08 Tom Tromey <tromey@adacore.com>
912
913 * win32-low.c (child_add_thread): Use new.
914 (delete_thread_info): Use delete.
915
ae1f8880
TT
9162020-04-08 Tom Tromey <tromey@adacore.com>
917
918 * win32-low.h (struct windows_thread_info): Remove.
919
e56f8ccb
TT
9202020-04-08 Tom Tromey <tromey@adacore.com>
921
922 * win32-low.h (struct windows_thread_info): Rename from
923 win32_thread_info. Remove typedef.
924 (struct win32_target_ops, win32_require_context): Update.
925 * win32-low.c (win32_get_thread_context)
926 (win32_set_thread_context, win32_prepare_to_resume)
927 (win32_require_context, thread_rec, child_add_thread)
928 (delete_thread_info, continue_one_thread)
929 (child_fetch_inferior_registers, child_store_inferior_registers)
930 (win32_resume, suspend_one_thread, win32_get_tib_address):
931 Update.
932 * win32-i386-low.c (update_debug_registers)
933 (win32_get_current_dr, i386_get_thread_context)
934 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
935 (i386_fetch_inferior_register, i386_store_inferior_register):
936 Update.
937 * win32-arm-low.c (arm_get_thread_context)
938 (arm_fetch_inferior_register, arm_store_inferior_register):
939 Update.
940
0dd7b52e
TBA
9412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
942
943 * linux-low.h (struct linux_target_ops): Remove.
944 (the_low_target): Remove.
945 * linux-x86-low.cc (the_low_target): Remove.
946 * linux-aarch64-low.cc (the_low_target): Ditto.
947 * linux-arm-low.cc (the_low_target): Ditto.
948 * linux-bfin-low.cc (the_low_target): Ditto.
949 * linux-cris-low.cc (the_low_target): Ditto.
950 * linux-crisv32-low.cc (the_low_target): Ditto.
951 * linux-ia64-low.cc (the_low_target): Ditto.
952 * linux-m32r-low.cc (the_low_target): Ditto.
953 * linux-m68k-low.cc (the_low_target): Ditto.
954 * linux-mips-low.cc (the_low_target): Ditto.
955 * linux-nios2-low.cc (the_low_target): Ditto.
956 * linux-ppc-low.cc (the_low_target): Ditto.
957 * linux-riscv-low.cc (the_low_target): Ditto.
958 * linux-s390-low.cc (the_low_target): Ditto.
959 * linux-sh-low.cc (the_low_target): Ditto.
960 * linux-sparc-low.cc (the_low_target): Ditto.
961 * linux-tic6x-low.cc (the_low_target): Ditto.
962 * linux-tile-low.cc (the_low_target): Ditto.
963 * linux-xtensa-low.cc (the_low_target): Ditto.
964
fc5ecdb6
TBA
9652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
966
967 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
968 linux target define the op by overriding the declaration in
969 process_stratum_target.
970
971 * linux-low.h (struct linux_target_ops): Remove the op.
972 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
973 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
974 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
975 (x86_get_ipa_tdesc_idx): Turn into...
976 (x86_target::get_ipa_tdesc_idx): ...this.
977 (the_low_target): Remove the op field.
978 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
979 (ppc_get_ipa_tdesc_idx): Turn into...
980 (ppc_target::get_ipa_tdesc_idx): ...this.
981 (the_low_target): Remove the op field.
982 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
983 (s390_get_ipa_tdesc_idx): Turn into...
984 (s390_target::get_ipa_tdesc_idx): ...this.
985 (the_low_target): Remove the op field.
986
9eedd27d
TBA
9872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
988
989 Turn the 'get_syscall_trapinfo' linux target op into a method
990 of process_stratum_target.
991
992 * linux-low.h (struct linux_target_ops): Remove the op.
993 (class linux_process_target) <get_syscall_trapinfo>
994 <gdb_catch_this_syscall>
995 <low_supports_catch_syscall>
996 <low_get_syscall_trapinfo>: Declare.
997 * linux-low.cc (get_syscall_trapinfo): Turn into...
998 (linux_process_target::get_syscall_trapinfo): ...this.
999 (linux_process_target::low_get_syscall_trapinfo): Define.
1000 (gdb_catch_this_syscall_p): Turn into...
1001 (linux_process_target::gdb_catch_this_syscall): ...this.
1002 (linux_process_target::low_supports_catch_syscall): Define.
1003
1004 Update the callers below.
1005
1006 (linux_process_target::wait_1)
1007 (linux_process_target::supports_catch_syscall)
1008
1009 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
1010 <low_get_syscall_trapinfo>: Declare.
1011 (x86_target::low_supports_catch_syscall): Define.
1012 (x86_get_syscall_trapinfo): Turn into...
1013 (x86_target::low_get_syscall_trapinfo): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-aarch64-low.cc (class aarch64_target)
1016 <low_supports_catch_syscall>
1017 <low_get_syscall_trapinfo>: Declare.
1018 (aarch64_target::low_supports_catch_syscall): Define.
1019 (aarch64_get_syscall_trapinfo): Turn into...
1020 (aarch64_target::low_get_syscall_trapinfo): ...this.
1021 (the_low_target): Remove the op field.
1022 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1023 <low_get_syscall_trapinfo>: Declare.
1024 (arm_target::low_supports_catch_syscall): Define.
1025 (arm_get_syscall_trapinfo): Turn into...
1026 (arm_target::low_get_syscall_trapinfo): ...this.
1027 (the_low_target): Remove the op field.
1028 * linux-ppc-low.cc (the_low_target): Remove the op field.
1029 * linux-s390-low.cc (the_low_target): Remove the op field.
1030
b31cdfa6
TBA
10312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1032
1033 Remove the 'supports_hardware_single_step' linux target op and
1034 override the process_stratum_target's op definition in
1035 linux_process_target to return true.
1036
1037 * linux-low.h (struct linux_target_ops): Remove the op.
1038 (class linux_process_target) <finish_step_over>
1039 <maybe_hw_step>: Declare.
1040 * linux-low.cc (can_hardware_single_step): Remove.
1041 (maybe_hw_step): Turn into...
1042 (linux_process_target::maybe_hw_step): ...this.
1043 (finish_step_over): Turn into...
1044 (linux_process_target::finish_step_over): ...this.
1045 (linux_process_target::supports_hardware_single_step): Update
1046 to return true.
1047
1048 Update the callers below.
1049
1050 (linux_process_target::single_step)
1051 (linux_process_target::resume_one_lwp_throw)
1052
1053 * linux-arm-low.cc (class arm_target)
1054 <supports_hardware_single_step>: Declare.
1055 (arm_supports_hardware_single_step): Turn into...
1056 (arm_target::supports_hardware_single_step): ...this.
1057 (the_low_target): Remove the op field.
1058 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1059 (the_low_target): Remove the op field.
1060 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1061 Remove.
1062 (the_low_target): Remove the op field.
1063 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1064 (the_low_target): Remove the op field.
1065 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1066 (the_low_target): Remove the op field.
1067 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1068 (the_low_target): Remove the op field.
1069 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1070 (the_low_target): Remove the op field.
1071 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1072 (the_low_target): Remove the op field.
1073 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1074 (the_low_target): Remove the op field.
1075 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1076 (the_low_target): Remove the op field.
1077 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1078 (the_low_target): Remove the op field.
1079 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1080 (the_low_target): Remove the op field.
1081 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1082 Remove.
1083 (the_low_target): Remove the op field.
1084
9cfd8715
TBA
10852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1086
1087 Turn the 'supports_range_stepping' linux target op into a method
1088 of linux_process_target.
1089
1090 * linux-low.h (struct linux_target_ops): Remove the op.
1091 (class linux_process_target) <low_supports_range_stepping>: Declare.
1092 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1093 Define.
1094 (linux_process_target::supports_range_stepping): Update the call
1095 site.
1096 * linux-x86-low.cc (class x86_target)
1097 <low_supports_range_stepping>: Declare.
1098 (x86_supports_range_stepping): Turn into...
1099 (x86_target::low_supports_range_stepping): ...this.
1100 (the_low_target): Remove the op field.
1101 * linux-aarch64-low.cc (class aarch64_target)
1102 <low_supports_range_stepping>: Declare.
1103 (aarch64_supports_range_stepping): Turn into...
1104 (aarch64_target::low_supports_range_stepping): ...this.
1105 (the_low_target): Remove the op field.
1106 * linux-arm-low.cc (the_low_target): Remove the op field.
1107 * linux-bfin-low.cc (the_low_target): Ditto.
1108 * linux-crisv32-low.cc (the_low_target): Ditto.
1109 * linux-m32r-low.cc (the_low_target): Ditto.
1110 * linux-m68k-low.cc (the_low_target): Ditto.
1111 * linux-ppc-low.cc (the_low_target): Ditto.
1112 * linux-s390-low.cc (the_low_target): Ditto.
1113 * linux-sh-low.cc (the_low_target): Ditto.
1114 * linux-tic6x-low.cc (the_low_target): Ditto.
1115 * linux-tile-low.cc (the_low_target): Ditto.
1116 * linux-xtensa-low.cc (the_low_target): Ditto.
1117
ab64c999
TBA
11182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1119
1120 Remove the 'emit_ops' linux target ops and let the concrete
1121 linux target define the op by overriding the declaration of
1122 process_stratum_target.
1123
1124 * linux-low.h (struct linux_target_ops): Remove the op.
1125 (class linux_process_target) <emit_ops>: Remove.
1126 * linux-low.cc (linux_process_target::emit_ops): Remove.
1127 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1128 (x86_emit_ops): Turn into...
1129 (x86_target::emit_ops): ...this.
1130 (the_low_target): Remove the op field.
1131 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1132 (aarch64_emit_ops): Turn into...
1133 (aarch64_target::emit_ops): ...this.
1134 (the_low_target): Remove the op field.
1135 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1136 (ppc_emit_ops): Turn into...
1137 (ppc_target::emit_ops): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1140 (s390_emit_ops): Turn into...
1141 (s390_target::emit_ops): ...this.
1142 (the_low_target): Remove the op field.
1143 * linux-arm-low.cc (the_low_target): Remove the op field.
1144 * linux-bfin-low.cc (the_low_target): Ditto.
1145 * linux-crisv32-low.cc (the_low_target): Ditto.
1146 * linux-m32r-low.cc (the_low_target): Ditto.
1147 * linux-m68k-low.cc (the_low_target): Ditto.
1148 * linux-sh-low.cc (the_low_target): Ditto.
1149 * linux-tic6x-low.cc (the_low_target): Ditto.
1150 * linux-tile-low.cc (the_low_target): Ditto.
1151 * linux-xtensa-low.cc (the_low_target): Ditto.
1152
809a0c35
TBA
11532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1154
1155 Remove the 'install_fast_tracepoint_jump_pad' and
1156 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1157 concrete linux target define the ops by overriding the declarations
1158 of process_stratum_target.
1159
1160 * linux-low.h (struct linux_target_ops): Remove the ops.
1161 (class linux_process_target) <supports_fast_tracepoints>
1162 <install_fast_tracepoint_jump_pad>
1163 <get_min_fast_tracepoint_insn_len>: Remove.
1164 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1165 (linux_process_target::install_fast_tracepoint_jump_pad)
1166 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1167 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1168 <install_fast_tracepoint_jump_pad>
1169 <get_min_fast_tracepoint_insn_len>: Declare.
1170 (x86_target::supports_fast_tracepoints): Define.
1171 (x86_install_fast_tracepoint_jump_pad): Turn into...
1172 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1173 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1174 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1175 (the_low_target): Remove the op fields.
1176 * linux-aarch64-low.cc (class aarch64_target)
1177 <supports_fast_tracepoints>
1178 <install_fast_tracepoint_jump_pad>
1179 <get_min_fast_tracepoint_insn_len>: Declare.
1180 (aarch64_target::supports_fast_tracepoints): Define.
1181 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1182 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1183 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1184 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1185 (the_low_target): Remove the op fields.
1186 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1187 <install_fast_tracepoint_jump_pad>
1188 <get_min_fast_tracepoint_insn_len>: Declare.
1189 (ppc_target::supports_fast_tracepoints): Define.
1190 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1191 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1192 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1193 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1194 (the_low_target): Remove the op fields.
1195 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1196 <install_fast_tracepoint_jump_pad>
1197 <get_min_fast_tracepoint_insn_len>: Declare.
1198 (s390_target::supports_fast_tracepoints): Define.
1199 (s390_install_fast_tracepoint_jump_pad): Turn into...
1200 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1201 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1202 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1203 (the_low_target): Remove the op fields.
1204 * linux-arm-low.cc (the_low_target): Remove the op fields.
1205 * linux-bfin-low.cc (the_low_target): Ditto.
1206 * linux-crisv32-low.cc (the_low_target): Ditto.
1207 * linux-m32r-low.cc (the_low_target): Ditto.
1208 * linux-m68k-low.cc (the_low_target): Ditto.
1209 * linux-sh-low.cc (the_low_target): Ditto.
1210 * linux-tic6x-low.cc (the_low_target): Ditto.
1211 * linux-tile-low.cc (the_low_target): Ditto.
1212 * linux-xtensa-low.cc (the_low_target): Ditto.
1213
13e567af
TBA
12142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1215
1216 Turn the 'get_thread_area' linux target op into a method of
1217 process_stratum_target.
1218
1219 * linux-low.h (struct linux_target_ops): Remove the op.
1220 (class linux_process_target) <stuck_in_jump_pad>
1221 <linux_fast_tracepoint_collecting>
1222 <low_get_thread_area>: Declare.
1223 * linux-low.cc (supports_fast_tracepoints): Remove.
1224 (linux_fast_tracepoint_collecting): Turn into...
1225 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1226 (linux_process_target::low_get_thread_area): Define.
1227 (stuck_in_jump_pad_callback): Turn into...
1228 (linux_process_target::stuck_in_jump_pad): ...this.
1229
1230 Update the caller below.
1231
1232 (linux_process_target::stabilize_threads)
1233
1234 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1235 Declare.
1236 (x86_get_thread_area): Turn into...
1237 (x86_target::low_get_thread_area): ...this.
1238 (the_low_target): Remove the op field.
1239 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1240 Declare.
1241 (aarch64_get_thread_area): Turn into...
1242 (aarch64_target::low_get_thread_area): ...this.
1243 (the_low_target): Remove the op field.
1244 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1245 Declare.
1246 (ppc_get_thread_area): Turn into...
1247 (ppc_target::low_get_thread_area): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1250 Declare.
1251 (s390_get_thread_area): Turn into...
1252 (s390_target::low_get_thread_area): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-arm-low.cc (the_low_target): Remove the op field.
1255 * linux-bfin-low.cc (the_low_target): Ditto.
1256 * linux-crisv32-low.cc (the_low_target): Ditto.
1257 * linux-m32r-low.cc (the_low_target): Ditto.
1258 * linux-m68k-low.cc (the_low_target): Ditto.
1259 * linux-sh-low.cc (the_low_target): Ditto.
1260 * linux-tic6x-low.cc (the_low_target): Ditto.
1261 * linux-tile-low.cc (the_low_target): Ditto.
1262 * linux-xtensa-low.cc (the_low_target): Ditto.
1263
47f70aa7
TBA
12642020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1265
1266 Remote the 'supports_tracepoints' linux target op and let the
1267 concrete linux target define it by overriding the op declared in
1268 process_stratum_target.
1269
1270 * linux-low.h (struct linux_target_ops): Remove the op.
1271 (class linux_process_target) <supports_tracepoints>: Remove.
1272 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1273 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1274 Declare.
1275 (x86_supports_tracepoints): Turn into...
1276 (x86_target::supports_tracepoints): ...this.
1277 (the_low_target): Remove the op field.
1278 * linux-aarch64-low.cc (class aarch64_target)
1279 <supports_tracepoints>: Declare.
1280 (aarch64_supports_tracepoints): Turn into...
1281 (aarch64_target::supports_tracepoints): ...this.
1282 (the_low_target): Remove the op field.
1283 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1284 Declare.
1285 (ppc_supports_tracepoints): Turn into...
1286 (ppc_target::supports_tracepoints): ...this.
1287 (the_low_target): Remove the op field.
1288 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1289 Declare.
1290 (s390_supports_tracepoints): Turn into...
1291 (s390_target::supports_tracepoints): ...this.
1292 (the_low_target): Remove the op field.
1293 * linux-arm-low.cc (the_low_target): Remove the op field.
1294 * linux-bfin-low.cc (the_low_target): Ditto.
1295 * linux-crisv32-low.cc (the_low_target): Ditto.
1296 * linux-m32r-low.cc (the_low_target): Ditto.
1297 * linux-m68k-low.cc (the_low_target): Ditto.
1298 * linux-sh-low.cc (the_low_target): Ditto.
1299 * linux-tic6x-low.cc (the_low_target): Ditto.
1300 * linux-tile-low.cc (the_low_target): Ditto.
1301 * linux-xtensa-low.cc (the_low_target): Ditto.
1302
a5b5da92
TBA
13032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1304
1305 Remove the 'process_qsupported' linux target op and let a concrete
1306 linux target define the op by overriding the op declaration in
1307 process_stratum_target.
1308
1309 * linux-low.h (struct linux_target_ops): Remove the op.
1310 (class linux_process_target) <process_qsupported>: Remove.
1311 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1312 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1313 (x86_linux_process_qsupported): Turn into...
1314 (x86_target::process_qsupported): ...this.
1315 (the_low_target): Remove the op field.
1316 * linux-aarch64-low.cc (the_low_target): Remove the op
1317 field.
1318 * linux-arm-low.cc (the_low_target): Ditto.
1319 * linux-bfin-low.cc (the_low_target): Ditto.
1320 * linux-crisv32-low.cc (the_low_target): Ditto.
1321 * linux-m32r-low.cc (the_low_target): Ditto.
1322 * linux-m68k-low.cc (the_low_target): Ditto.
1323 * linux-ppc-low.cc (the_low_target): Ditto.
1324 * linux-s390-low.cc (the_low_target): Ditto.
1325 * linux-sh-low.cc (the_low_target): Ditto.
1326 * linux-tic6x-low.cc (the_low_target): Ditto.
1327 * linux-tile-low.cc (the_low_target): Ditto.
1328 * linux-xtensa-low.cc (the_low_target): Ditto.
1329
d7599cc0
TBA
13302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1331
1332 Turn the 'prepare_to_resume' linux target op into a method of
1333 linux_process_target.
1334
1335 * linux-low.h (struct linux_target_ops): Remove the op.
1336 (class linux_process_target) <low_prepare_to_resume>: Declare.
1337 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1338 Define.
1339
1340 Update the callers below:
1341
1342 (linux_process_target::resume_one_lwp_throw)
1343 (linux_process_target::low_prepare_to_resume)
1344
1345 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1346 Declare.
1347 (x86_target::low_prepare_to_resume): Define.
1348 (the_low_target): Remove the op field.
1349 * linux-aarch64-low.cc (class aarch64_target)
1350 <low_prepare_to_resume>: Declare.
1351 (aarch64_target::low_prepare_to_resume): Define.
1352 (the_low_target): Remove the op field.
1353 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1354 Declare.
1355 (arm_prepare_to_resume): Turn into...
1356 (arm_target::low_prepare_to_resume): ...this.
1357 (the_low_target): Remove the op field.
1358 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1359 Declare.
1360 (mips_linux_prepare_to_resume): Turn into...
1361 (mips_target::low_prepare_to_resume): ...this.
1362 (the_low_target): Remove the op field.
1363 * linux-bfin-low.cc (the_low_target): Remove the op field.
1364 * linux-crisv32-low.cc (the_low_target): Ditto.
1365 * linux-m32r-low.cc (the_low_target): Ditto.
1366 * linux-m68k-low.cc (the_low_target): Ditto.
1367 * linux-ppc-low.cc (the_low_target): Ditto.
1368 * linux-s390-low.cc (the_low_target): Ditto.
1369 * linux-sh-low.cc (the_low_target): Ditto.
1370 * linux-tic6x-low.cc (the_low_target): Ditto.
1371 * linux-tile-low.cc (the_low_target): Ditto.
1372 * linux-xtensa-low.cc (the_low_target): Ditto.
1373
fd000fb3
TBA
13742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1375
1376 Turn the 'new_process', 'delete_process', 'new_thread',
1377 'delete_thread', and 'new_fork' linux target ops into methods
1378 of linux_process_target.
1379
1380 * linux-low.h (struct linux_target_ops): Remove the ops.
1381 (class linux_process_target) <add_linux_process>
1382 <add_lwp>
1383 <delete_lwp>
1384 <attach_lwp>
1385 <detach_one_lwp>
1386 <check_zombie_leaders>
1387 <filter_exit_event>
1388 <low_new_process>
1389 <low_delete_process>
1390 <low_new_thread>
1391 <low_delete_thread>
1392 <low_new_fork>: Declare.
1393 * linux-low.cc (delete_lwp): Turn into...
1394 (linux_process_target::delete_lwp): ...this.
1395 (linux_process_target::low_delete_thread): Define.
1396 (linux_add_process): Turn into...
1397 (linux_process_target::add_linux_process): ...this.
1398 (linux_process_target::low_new_process): Define.
1399 (linux_process_target::low_delete_process): Define.
1400 (linux_process_target::low_new_fork): Define.
1401 (add_lwp): Turn into...
1402 (linux_process_target::add_lwp): ...this.
1403 (linux_process_target::low_new_thread): Define.
1404 (linux_attach_lwp): Turn into...
1405 (linux_process_target::attach_lwp): ...this.
1406 (linux_detach_one_lwp): Turn into...
1407 (linux_process_target::detach_one_lwp): ...this.
1408 (linux_detach_lwp_callback): Remove and inline...
1409 (linux_process_target::detach): ...here.
1410 (check_zombie_leaders): Turn into...
1411 (linux_process_target::check_zombie_leaders): ...this.
1412 (filter_exit_event): Turn into...
1413 (linux_process_target::filter_exit_event): ...this.
1414
1415 Update the callers below.
1416
1417 (linux_process_target::handle_extended_wait)
1418 (linux_process_target::create_inferior)
1419 (attach_proc_task_lwp_callback)
1420 (linux_process_target::attach)
1421 (linux_process_target::detach)
1422 (linux_process_target::mourn)
1423 * thread-db.cc (attach_thread)
1424
1425 * linux-x86-low.cc (class x86_target) <low_new_process>
1426 <low_delete_process>
1427 <low_new_thread>
1428 <low_delete_thread>
1429 <low_new_fork>: Declare.
1430 (x86_linux_new_process): Turn into...
1431 (x86_target::low_new_process): ...this.
1432 (x86_linux_delete_process): Turn into...
1433 (x86_target::low_delete_process): ...this.
1434 (x86_target::low_new_thread): Define.
1435 (x86_target::low_delete_thread): Define.
1436 (x86_linux_new_fork): Turn into...
1437 (x86_target::low_new_fork): ...this.
1438 (the_low_target): Remove the op fields.
1439 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1440 <low_delete_process>
1441 <low_new_thread>
1442 <low_delete_thread>
1443 <low_new_fork>: Declare.
1444 (aarch64_linux_new_process): Turn into...
1445 (aarch64_target::low_new_process): ...this.
1446 (aarch64_linux_delete_process): Turn into...
1447 (aarch64_target::low_delete_process): ...this.
1448 (aarch64_target::low_new_thread): Define.
1449 (aarch64_target::low_delete_thread): Define.
1450 (aarch64_linux_new_fork): Turn into...
1451 (aarch64_target::low_new_fork): ...this.
1452 (the_low_target): Remove the op fields.
1453 * linux-arm-low.cc (class arm_target) <low_new_process>
1454 <low_delete_process>
1455 <low_new_thread>
1456 <low_delete_thread>
1457 <low_new_fork>: Declare.
1458 (arm_new_process): Turn into...
1459 (arm_target::low_new_process): ...this.
1460 (arm_delete_process): Turn into...
1461 (arm_target::low_delete_process): ...this.
1462 (arm_new_thread): Turn into...
1463 (arm_target::low_new_thread): ...this.
1464 (arm_delete_thread): Turn into...
1465 (arm_target::low_delete_thread): ...this.
1466 (arm_new_fork): Turn into...
1467 (arm_target::low_new_fork): ...this.
1468 (the_low_target): Remove the op fields.
1469 * linux-mips-low.cc (class mips_target) <low_new_process>
1470 <low_delete_process>
1471 <low_new_thread>
1472 <low_delete_thread>
1473 <low_new_fork>: Declare.
1474 (mips_linux_new_process): Turn into...
1475 (mips_target::low_new_process): ...this.
1476 (mips_linux_delete_process): Turn into...
1477 (mips_target::low_delete_process): ...this.
1478 (mips_linux_new_thread): Turn into...
1479 (mips_target::low_new_thread): ...this.
1480 (mips_linux_delete_thread): Turn into...
1481 (mips_target::low_delete_thread): ...this.
1482 (mips_linux_new_fork): Turn into...
1483 (mips_target::low_new_fork): ...this.
1484 (the_low_target): Remove the op fields.
1485 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1486 * linux-crisv32-low.cc (the_low_target): Ditto.
1487 * linux-m32r-low.cc (the_low_target): Ditto.
1488 * linux-m68k-low.cc (the_low_target): Ditto.
1489 * linux-ppc-low.cc (the_low_target): Ditto.
1490 * linux-s390-low.cc (the_low_target): Ditto.
1491 * linux-sh-low.cc (the_low_target): Ditto.
1492 * linux-tic6x-low.cc (the_low_target): Ditto.
1493 * linux-tile-low.cc (the_low_target): Ditto.
1494 * linux-xtensa-low.cc (the_low_target): Ditto.
1495
cb63de7c
TBA
14962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1497
1498 Turn the 'siginfo_fixup' linux target op into a method of
1499 linux_process_target.
1500
1501 * linux-low.h (struct linux_target_ops): Remove the op.
1502 (class linux_process_target) <siginfo_fixup>
1503 <low_siginfo_fixup>: Declare.
1504 * linux-low.cc (siginfo_fixup): Turn into...
1505 (linux_process_target::siginfo_fixup): ...this.
1506 (linux_process_target::low_siginfo_fixup): Define.
1507 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1508 (x86_siginfo_fixup): Turn into...
1509 (x86_target::low_siginfo_fixup): ...this.
1510 (the_low_target): Remove the op field.
1511 * linux-aarch64-low.cc (class aarch64_target):
1512 <low_siginfo_fixup>: Declare.
1513 (aarch64_linux_siginfo_fixup): Turn into...
1514 (aarch64_target::low_siginfo_fixup): ...this.
1515 (the_low_target): Remove the op field.
1516 * linux-arm-low.cc (the_low_target): Remove the op field.
1517 * linux-bfin-low.cc (the_low_target): Ditto.
1518 * linux-crisv32-low.cc (the_low_target): Ditto.
1519 * linux-m32r-low.cc (the_low_target): Ditto.
1520 * linux-m68k-low.cc (the_low_target): Ditto.
1521 * linux-mips-low.cc (the_low_target): Ditto.
1522 * linux-ppc-low.cc (the_low_target): Ditto.
1523 * linux-s390-low.cc (the_low_target): Ditto.
1524 * linux-sh-low.cc (the_low_target): Ditto.
1525 * linux-tic6x-low.cc (the_low_target): Ditto.
1526 * linux-tile-low.cc (the_low_target): Ditto.
1527 * linux-xtensa-low.cc (the_low_target): Ditto.
1528
b35db733
TBA
15292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1530
1531 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1532 linux target ops into methods of linux_process_target.
1533
1534 * linux-low.h (struct linux_target_ops): Remove the ops.
1535 (class linux_process_target) <low_collect_ptrace_register>
1536 <low_store_ptrace_register>: Declare.
1537 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1538 (linux_process_target::low_supply_ptrace_register): Define.
1539
1540 Update the callers below.
1541
1542 (linux_process_target::fetch_register)
1543 (linux_process_target::store_register)
1544
1545 * linux-x86-low.cc (the_low_target): Remove the op fields.
1546 * linux-aarch64-low.cc (the_low_target): Ditto.
1547 * linux-arm-low.cc (the_low_target): Ditto.
1548 * linux-bfin-low.cc (the_low_target): Ditto.
1549 * linux-crisv32-low.cc (the_low_target): Ditto.
1550 * linux-m32r-low.cc (the_low_target): Ditto.
1551 * linux-m68k-low.cc (the_low_target): Ditto.
1552 * linux-sh-low.cc (the_low_target): Ditto.
1553 * linux-sparc-low.cc (the_low_target): Ditto.
1554 * linux-tic6x-low.cc (the_low_target): Ditto.
1555 * linux-tile-low.cc (the_low_target): Ditto.
1556 * linux-xtensa-low.cc (the_low_target): Ditto.
1557 * linux-mips-low.cc (class mips_target)
1558 <low_collect_ptrace_register>
1559 <low_supply_ptrace_register>: Declare.
1560 (mips_collect_ptrace_register): Turn into ...
1561 (mips_target::low_collect_ptrace_register): ...this.
1562 (mips_supply_ptrace_register): Turn into...
1563 (mips_target::low_supply_ptrace_register): ...this.
1564 (the_low_target): Remove the op fields.
1565 * linux-ppc-low.cc (class ppc_target)
1566 <low_collect_ptrace_register>
1567 <low_supply_ptrace_register>: Declare.
1568 (ppc_collect_ptrace_register): Turn into ...
1569 (ppc_target::low_collect_ptrace_register): ...this.
1570 (ppc_supply_ptrace_register): Turn into ...
1571 (ppc_target::low_supply_ptrace_register): ...this.
1572 (ppc_fill_gregset): Update for the calls to
1573 low_collect_ptrace_register.
1574 (the_low_target): Remove the op fields.
1575 * linux-s390-low.cc (class s390_target)
1576 <low_collect_ptrace_register>
1577 <low_supply_ptrace_register>: Declare.
1578 (s390_collect_ptrace_register): Turn into ...
1579 (s390_target::low_collect_ptrace_register): ...this.
1580 (s390_supply_ptrace_register): Turn into ...
1581 (s390_target::low_supply_ptrace_register): ...this.
1582 (s390_fill_gregset): Update for the calls to
1583 low_collect_ptrace_register.
1584 (the_low_target): Remove the op fields.
1585
ac1bbaca
TBA
15862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1587
1588 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1589 target ops into methods of linux_process_target.
1590
1591 * linux-low.h (struct linux_target_ops): Remove the ops.
1592 (class linux_process_target) <check_stopped_by_watchpoint>
1593 <low_stopped_by_watchpoint>
1594 <low_stopped_data_address>: Declare.
1595 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1596 (linux_process_target::check_stopped_by_watchpoint): ...this.
1597 (linux_process_target::low_stopped_by_watchpoint): Define.
1598 (linux_process_target::low_stopped_data_address): Define.
1599 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1600 <low_stopped_data_address>: Declare.
1601 (x86_stopped_by_watchpoint): Turn into...
1602 (x86_target::low_stopped_by_watchpoint): ...this.
1603 (x86_stopped_data_address): Turn into...
1604 (x86_target::low_stopped_data_address): ...this.
1605 (the_low_target): Remove the op fields.
1606 * linux-aarch64-low.cc (class aarch64_target)
1607 <low_stopped_by_watchpoint>
1608 <low_stopped_data_address>: Declare.
1609 (aarch64_stopped_by_watchpoint): Turn into...
1610 (aarch64_target::low_stopped_by_watchpoint): ...this.
1611 (aarch64_stopped_data_address): Turn into...
1612 (aarch64_target::low_stopped_data_address): ...this.
1613 (the_low_target): Remove the op fields.
1614 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1615 <low_stopped_data_address>: Declare.
1616 (arm_stopped_by_watchpoint): Turn into...
1617 (arm_target::low_stopped_by_watchpoint): ...this.
1618 (arm_stopped_data_address): Turn into...
1619 (arm_target::low_stopped_data_address): ...this.
1620 (the_low_target): Remove the op fields.
1621 * linux-crisv32-low.cc (class crisv32_target)
1622 <low_stopped_by_watchpoint>
1623 <low_stopped_data_address>: Declare.
1624 (cris_stopped_by_watchpoint): Turn into...
1625 (crisv32_target::low_stopped_by_watchpoint): ...this.
1626 (cris_stopped_data_address): Turn into...
1627 (crisv32_target::low_stopped_data_address): ...this.
1628 (the_low_target): Remove the op fields.
1629 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1630 <low_stopped_data_address>: Declare.
1631 (mips_stopped_by_watchpoint): Turn into...
1632 (mips_target::low_stopped_by_watchpoint): ...this.
1633 (mips_stopped_data_address): Turn into...
1634 (mips_target::low_stopped_data_address): ...this.
1635 (the_low_target): Remove the op fields.
1636 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1637 * linux-m32r-low.cc (the_low_target): Ditto.
1638 * linux-m68k-low.cc (the_low_target): Ditto.
1639 * linux-ppc-low.cc (the_low_target): Ditto.
1640 * linux-s390-low.cc (the_low_target): Ditto.
1641 * linux-sh-low.cc (the_low_target): Ditto.
1642 * linux-sparc-low.cc (the_low_target): Ditto.
1643 * linux-tic6x-low.cc (the_low_target): Ditto.
1644 * linux-tile-low.cc (the_low_target): Ditto.
1645 * linux-xtensa-low.cc (the_low_target): Ditto.
1646
9db9aa23
TBA
16472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1648
1649 Turn the 'insert_point' and 'remove_point' linux target ops into
1650 methods of linux_process_target.
1651
1652 * linux-low.h (struct linux_target_ops): Remove the ops.
1653 (class linux_process_target) <low_insert_point>
1654 <low_remove_point>: Declare.
1655 * linux-low.cc (linux_process_target::low_insert_point)
1656 (linux_process_target::low_remove_point): Define.
1657 (linux_process_target::insert_point)
1658 (linux_process_target::remove_point): Update for calls to
1659 low_insert_point and low_remove_point.
1660 * linux-x86-low.cc (class x86_target) <low_insert_point>
1661 <low_remove_point>: Declare.
1662 (x86_insert_point): Turn into...
1663 (x86_target::low_insert_point): ...this.
1664 (x86_remove_point): Turn into...
1665 (x86_target::low_remove_point): ...this.
1666 (the_low_target): Remove the op fields.
1667 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1668 <low_remove_point>: Declare.
1669 (aarch64_insert_point): Turn into...
1670 (aarch64_target::low_insert_point): ...this.
1671 (aarch64_remove_point): Turn into...
1672 (aarch64_target::low_remove_point): ...this.
1673 (the_low_target): Remove the op fields.
1674 * linux-arm-low.cc (class arm_target) <low_insert_point>
1675 <low_remove_point>: Declare.
1676 (arm_insert_point): Turn into...
1677 (arm_target::low_insert_point): ...this.
1678 (arm_remove_point): Turn into...
1679 (arm_target::low_remove_point): ...this.
1680 (the_low_target): Remove the op fields.
1681 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1682 <low_remove_point>: Declare.
1683 (crisv32_insert_point): Turn into...
1684 (crisv32_target::low_insert_point): ...this.
1685 (crisv32_remove_point): Turn into...
1686 (crisv32_target::low_remove_point): ...this.
1687 (the_low_target): Remove the op fields.
1688 * linux-mips-low.cc (class mips_target) <low_insert_point>
1689 <low_remove_point>: Declare.
1690 (mips_insert_point): Turn into...
1691 (mips_target::low_insert_point): ...this.
1692 (mips_remove_point): Turn into...
1693 (mips_target::low_remove_point): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1696 <low_remove_point>: Declare.
1697 (ppc_insert_point): Turn into...
1698 (ppc_target::low_insert_point): ...this.
1699 (ppc_remove_point): Turn into...
1700 (ppc_target::low_remove_point): ...this.
1701 (the_low_target): Remove the op fields.
1702 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1703 * linux-m32r-low.cc (the_low_target): Ditto.
1704 * linux-m68k-low.cc (the_low_target): Ditto.
1705 * linux-s390-low.cc (the_low_target): Ditto.
1706 * linux-sh-low.cc (the_low_target): Ditto.
1707 * linux-sparc-low.cc (the_low_target): Ditto.
1708 * linux-tic6x-low.cc (the_low_target): Ditto.
1709 * linux-tile-low.cc (the_low_target): Ditto.
1710 * linux-xtensa-low.cc (the_low_target): Ditto.
1711
007c9b97
TBA
17122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1713
1714 Remove the 'supports_z_point_type' linux target op and let the
1715 concrete linux target define it by overriding the op declared in
1716 process_stratum_target.
1717
1718 * linux-low.cc (linux_process_target::supports_z_point_type):
1719 Remove.
1720 * linux-low.h (struct linux_target_ops): Remove the op.
1721 (class linux_process_target) <supports_z_point_type>: Remove.
1722 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1723 Declare.
1724 (x86_supports_z_point_type): Turn into...
1725 (x86_target::supports_z_point_type): ...this.
1726 (the_low_target): Remove the op field.
1727 * linux-aarch64-low.cc (class aarch64_target)
1728 <supports_z_point_type>: Declare.
1729 (aarch64_supports_z_point_type): Turn into...
1730 (aarch64_target::supports_z_point_type): ...this.
1731 (the_low_target): Remove the op field.
1732 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1733 Declare.
1734 (arm_supports_z_point_type): Turn into...
1735 (arm_target::supports_z_point_type): ...this.
1736 (the_low_target): Remove the op field.
1737 * linux-crisv32-low.cc (class crisv32_target)
1738 <supports_z_point_type>: Declare.
1739 (cris_supports_z_point_type): Turn into...
1740 (crisv32_target::supports_z_point_type): ...this.
1741 (the_low_target): Remove the op field.
1742 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1743 Declare.
1744 (mips_supports_z_point_type): Turn into...
1745 (mips_target::supports_z_point_type): ...this.
1746 (the_low_target): Remove the op field.
1747 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1748 Declare.
1749 (ppc_supports_z_point_type): Turn into...
1750 (ppc_target::supports_z_point_type): ...this.
1751 (the_low_target): Remove the op field.
1752 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1753 Declare.
1754 (s390_supports_z_point_type): Turn into...
1755 (s390_target::supports_z_point_type): ...this.
1756 (the_low_target): Remove the op field.
1757 * linux-bfin-low.cc (the_low_target): Remove the op field.
1758 * linux-m32r-low.cc (the_low_target): Ditto.
1759 * linux-m68k-low.cc (the_low_target): Ditto.
1760 * linux-sh-low.cc (the_low_target): Ditto.
1761 * linux-sparc-low.cc (the_low_target): Ditto.
1762 * linux-tic6x-low.cc (the_low_target): Ditto.
1763 * linux-tile-low.cc (the_low_target): Ditto.
1764 * linux-xtensa-low.cc (the_low_target): Ditto.
1765
d7146cda
TBA
17662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1767
1768 Turn the 'breakpoint_at' linux target op into a method of
1769 linux_process_target.
1770
1771 * linux-low.h (struct linux_target_ops): Remove the op.
1772 (class linux_process_target) <low_breakpoint_at>: Declare.
1773
1774 Update the callers below:
1775
1776 * linux-low.cc (linux_process_target::save_stop_reason)
1777 (linux_process_target::thread_still_has_status_pending)
1778 (linux_process_target::wait_1)
1779
1780 * linux-x86-low.cc (class x86_target)
1781 <low_breakpoint_at>: Declare.
1782 (x86_breakpoint_at): Turn into...
1783 (x86_target::low_breakpoint_at): ...this.
1784 (the_low_target): Remove the op field.
1785 * linux-aarch64-low.cc (class aarch64_target)
1786 <low_breakpoint_at>: Declare.
1787 (aarch64_breakpoint_at): Turn into...
1788 (aarch64_target::low_breakpoint_at): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-arm-low.cc (class arm_target)
1791 <low_breakpoint_at>: Declare.
1792 (arm_target::low_breakpoint_at): Define.
1793 (the_low_target): Remove the op field.
1794 * linux-bfin-low.cc (class bfin_target)
1795 <low_breakpoint_at>: Declare.
1796 (bfin_breakpoint_at): Turn into...
1797 (bfin_target::low_breakpoint_at): ...this.
1798 (the_low_target): Remove the op field.
1799 * linux-cris-low.cc (class cris_target)
1800 <low_breakpoint_at>: Declare.
1801 (cris_breakpoint_at): Turn into...
1802 (cris_target::low_breakpoint_at): ...this.
1803 (the_low_target): Remove the op field.
1804 * linux-crisv32-low.cc (class crisv32_target)
1805 <low_breakpoint_at>: Declare.
1806 (crisv32_breakpoint_at): Turn into...
1807 (crisv32_target::low_breakpoint_at): ...this.
1808 (the_low_target): Remove the op field.
1809 * linux-ia64-low.cc (class ia64_target)
1810 <low_breakpoint_at>: Declare.
1811 (ia64_target::low_breakpoint_at): Define.
1812 * linux-m32r-low.cc (class m32r_target)
1813 <low_breakpoint_at>: Declare.
1814 (m32r_breakpoint_at): Turn into...
1815 (m32r_target::low_breakpoint_at): ...this.
1816 (the_low_target): Remove the op field.
1817 * linux-m68k-low.cc (class m68k_target)
1818 <low_breakpoint_at>: Declare.
1819 (m68k_breakpoint_at): Turn into...
1820 (m68k_target::low_breakpoint_at): ...this.
1821 (the_low_target): Remove the op field.
1822 * linux-mips-low.cc (class mips_target)
1823 <low_breakpoint_at>: Declare.
1824 (mips_breakpoint_at): Turn into...
1825 (mips_target::low_breakpoint_at): ...this.
1826 (the_low_target): Remove the op field.
1827 * linux-nios2-low.cc (class nios2_target)
1828 <low_breakpoint_at>: Declare.
1829 (nios2_breakpoint_at): Turn into...
1830 (nios2_target::low_breakpoint_at): ...this.
1831 (the_low_target): Remove the op field.
1832 * linux-ppc-low.cc (class ppc_target)
1833 <low_breakpoint_at>: Declare.
1834 (ppc_breakpoint_at): Turn into...
1835 (ppc_target::low_breakpoint_at): ...this.
1836 (the_low_target): Remove the op field.
1837 * linux-riscv-low.cc (class riscv_target)
1838 <low_breakpoint_at>: Declare.
1839 (riscv_breakpoint_at): Turn into...
1840 (riscv_target::low_breakpoint_at): ...this.
1841 (the_low_target): Remove the op field.
1842 * linux-s390-low.cc (class s390_target)
1843 <low_breakpoint_at>: Declare.
1844 (s390_breakpoint_at): Turn into...
1845 (s390_target::low_breakpoint_at): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-sh-low.cc (class sh_target)
1848 <low_breakpoint_at>: Declare.
1849 (sh_breakpoint_at): Turn into...
1850 (sh_target::low_breakpoint_at): ...this.
1851 (the_low_target): Remove the op field.
1852 * linux-sparc-low.cc (class sparc_target)
1853 <low_breakpoint_at>: Declare.
1854 (sparc_breakpoint_at): Turn into...
1855 (sparc_target::low_breakpoint_at): ...this.
1856 (the_low_target): Remove the op field.
1857 * linux-tic6x-low.cc (class tic6x_target)
1858 <low_breakpoint_at>: Declare.
1859 (tic6x_breakpoint_at): Turn into...
1860 (tic6x_target::low_breakpoint_at): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-tile-low.cc (class tile_target)
1863 <low_breakpoint_at>: Declare.
1864 (tile_breakpoint_at): Turn into...
1865 (tile_target::low_breakpoint_at): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-xtensa-low.cc (class xtensa_target)
1868 <low_breakpoint_at>: Declare.
1869 (xtensa_breakpoint_at): Turn into...
1870 (xtensa_target::low_breakpoint_at): ...this.
1871 (the_low_target): Remove the op field.
1872
d4807ea2
TBA
18732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1874
1875 Turn the 'decr_pc_after_break' linux_target_ops field into
1876 a method of linux_process_target.
1877
1878 * linux-low.h (struct linux_target_ops)
1879 <decr_pc_after_break>: Remove.
1880 (class linux_process_target) <low_decr_pc_after_break>: New method
1881 declaration.
1882 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1883 New method implementation.
1884
1885 Update the users below.
1886
1887 (linux_process_target::save_stop_reason)
1888 (linux_process_target::wait_1)
1889 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1890 New declaration.
1891 (x86_target::low_decr_pc_after_break): New method implementation.
1892 (the_low_target): Remove the field.
1893 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1894 New declaration.
1895 (bfin_target::low_decr_pc_after_break): New method implementation.
1896 (the_low_target): Remove the field.
1897 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1898 New declaration.
1899 (m68k_target::low_decr_pc_after_break): New method implementation.
1900 (the_low_target): Remove the field.
1901 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1902 New declaration.
1903 (s390_target::low_decr_pc_after_break): New method implementation.
1904 (the_low_target): Remove the field.
1905 * linux-aarch64-low.cc (the_low_target): Remove the field.
1906 * linux-arm-low.cc (the_low_target): Remove the field.
1907 * linux-cris-low.cc (the_low_target): Remove the field.
1908 * linux-crisv32-low.cc (the_low_target): Remove the field.
1909 * linux-m32r-low.cc (the_low_target): Remove the field.
1910 * linux-mips-low.cc (the_low_target): Remove the field.
1911 * linux-nios2-low.cc (the_low_target): Remove the field.
1912 * linux-ppc-low.cc (the_low_target): Remove the field.
1913 * linux-riscv-low.cc (the_low_target): Remove the field.
1914 * linux-sh-low.cc (the_low_target): Remove the field.
1915 * linux-sparc-low.cc (the_low_target): Remove the field.
1916 * linux-tic6x-low.cc (the_low_target): Remove the field.
1917 * linux-tile-low.cc (the_low_target): Remove the field.
1918 * linux-xtensa-low.cc (the_low_target): Remove the field.
1919
7582c77c
TBA
19202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1921
1922 Remove the 'supports_software_single_step' linux target op and let
1923 the concrete linux target define it by overriding the op in
1924 process_stratum_target.
1925 Turn the 'get_next_pcs' linux target op into a method of
1926 linux_process_target.
1927
1928 * linux-low.h (struct linux_target_ops): Remove the ops.
1929 (class linux_process_target) <supports_software_single_step>:
1930 Remove.
1931 <low_get_next_pcs>: Declare.
1932 * linux-low.cc (can_software_single_step): Remove.
1933 (linux_process_target::low_get_next_pcs): Define.
1934 (linux_process_target::supports_software_single_step): Remove.
1935
1936 Update the callers below.
1937
1938 (linux_process_target::handle_extended_wait)
1939 (linux_process_target::wait_1)
1940 (linux_process_target::install_software_single_step_breakpoints)
1941 (linux_process_target::single_step)
1942 (linux_process_target::thread_needs_step_over)
1943 (linux_process_target::proceed_one_lwp)
1944 (linux_process_target::supports_range_stepping)
1945
1946 * linux-x86-low.cc (the_low_target): Remove the op field.
1947 * linux-aarch64-low.cc (the_low_target): Ditto.
1948 * linux-bfin-low.cc (the_low_target): Ditto.
1949 * linux-cris-low.cc (the_low_target): Ditto.
1950 * linux-crisv32-low.cc (the_low_target): Ditto.
1951 * linux-m32r-low.cc (the_low_target): Ditto.
1952 * linux-m68k-low.cc (the_low_target): Ditto.
1953 * linux-mips-low.cc (the_low_target): Ditto.
1954 * linux-nios2-low.cc (the_low_target): Ditto.
1955 * linux-ppc-low.cc (the_low_target): Ditto.
1956 * linux-riscv-low.cc (the_low_target): Ditto.
1957 * linux-s390-low.cc (the_low_target): Ditto.
1958 * linux-sh-low.cc (the_low_target): Ditto.
1959 * linux-sparc-low.cc (the_low_target): Ditto.
1960 * linux-tic6x-low.cc (the_low_target): Ditto.
1961 * linux-tile-low.cc (the_low_target): Ditto.
1962 * linux-xtensa-low.cc (the_low_target): Ditto.
1963 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1964 <supports_software_single_step>: Declare.
1965 (arm_target::supports_software_single_step): Define.
1966 (arm_gdbserver_get_next_pcs): Turn into...
1967 (arm_target::low_get_next_pcs): ...this.
1968 (the_low_target): Remove the op field.
1969
3ca4edb6
TBA
19702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1971
1972 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1973 the concrete linux target define it by overriding the op
1974 in process_stratum_target.
1975
1976 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1977 Remove.
1978 * linux-low.h (struct linux_target_ops): Remove the op.
1979 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1980 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1981 Declare.
1982 (x86_sw_breakpoint_from_kind): Turn into...
1983 (x86_target::sw_breakpoint_from_kind): ...this.
1984 (the_low_target): Remove the op field.
1985 * linux-aarch64-low.cc (class aarch64_target)
1986 <sw_breakpoint_from_kind>: Declare.
1987 (aarch64_sw_breakpoint_from_kind): Turn into...
1988 (aarch64_target::sw_breakpoint_from_kind): ...this.
1989 (the_low_target): Remove the op field.
1990 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1991 Declare.
1992 (arm_target::sw_breakpoint_from_kind): Define.
1993 (the_low_target): Remove the op field.
1994 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1995 Declare.
1996 (bfin_sw_breakpoint_from_kind): Turn into...
1997 (bfin_target::sw_breakpoint_from_kind): ...this.
1998 (the_low_target): Remove the op field.
1999 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
2000 Declare.
2001 (cris_sw_breakpoint_from_kind): Turn into...
2002 (cris_target::sw_breakpoint_from_kind): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-crisv32-low.cc (class crisv32_target)
2005 <sw_breakpoint_from_kind>: Declare.
2006 (cris_sw_breakpoint_from_kind): Turn into...
2007 (crisv32_target::sw_breakpoint_from_kind): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
2010 Declare.
2011 (ia64_target::sw_breakpoint_from_kind): Define.
2012 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2013 Declare.
2014 (m32r_sw_breakpoint_from_kind): Turn into...
2015 (m32r_target::sw_breakpoint_from_kind): ...this.
2016 (the_low_target): Remove the op field.
2017 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2018 Declare.
2019 (m68k_sw_breakpoint_from_kind): Turn into...
2020 (m68k_target::sw_breakpoint_from_kind): ...this.
2021 (the_low_target): Remove the op field.
2022 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2023 Declare.
2024 (mips_sw_breakpoint_from_kind): Turn into...
2025 (mips_target::sw_breakpoint_from_kind): ...this.
2026 (the_low_target): Remove the op field.
2027 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2028 Declare.
2029 (nios2_sw_breakpoint_from_kind): Turn into...
2030 (nios2_target::sw_breakpoint_from_kind): ...this.
2031 (the_low_target): Remove the op field.
2032 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2033 Declare.
2034 (ppc_sw_breakpoint_from_kind): Turn into...
2035 (ppc_target::sw_breakpoint_from_kind): ...this.
2036 (the_low_target): Remove the op field.
2037 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2038 Declare.
2039 (riscv_sw_breakpoint_from_kind): Turn into...
2040 (riscv_target::sw_breakpoint_from_kind): ...this.
2041 (the_low_target): Remove the op field.
2042 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2043 Declare.
2044 (s390_sw_breakpoint_from_kind): Turn into...
2045 (s390_target::sw_breakpoint_from_kind): ...this.
2046 (the_low_target): Remove the op field.
2047 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2048 Declare.
2049 (sh_sw_breakpoint_from_kind): Turn into...
2050 (sh_target::sw_breakpoint_from_kind): ...this.
2051 (the_low_target): Remove the op field.
2052 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2053 Declare.
2054 (sparc_sw_breakpoint_from_kind): Turn into...
2055 (sparc_target::sw_breakpoint_from_kind): ...this.
2056 (the_low_target): Remove the op field.
2057 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2058 Declare.
2059 (tic6x_sw_breakpoint_from_kind): Turn into...
2060 (tic6x_target::sw_breakpoint_from_kind): ...this.
2061 (the_low_target): Remove the op field.
2062 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2063 Declare.
2064 (tile_sw_breakpoint_from_kind): Turn into...
2065 (tile_target::sw_breakpoint_from_kind): ...this.
2066 (the_low_target): Remove the op field.
2067 * linux-xtensa-low.cc (class xtensa_target)
2068 <sw_breakpoint_from_kind>: Declare.
2069 (xtensa_sw_breakpoint_from_kind): Turn into...
2070 (xtensa_target::sw_breakpoint_from_kind): ...this.
2071 (the_low_target): Remove the op field.
2072
06250e4e
TBA
20732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2074
2075 Remove the 'breakpoint_kind_from_pc' and
2076 'breakpoint_kind_from_current_state' linux target ops, and let the
2077 concrete linux target define them by overriding the ops of
2078 process_stratum_target.
2079
2080 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2081 Remove.
2082 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2083 * linux-low.h (struct linux_target_ops): Remove ops.
2084 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2085 <breakpoint_kind_from_current_state>: Remove.
2086 * linux-x86-low.cc (the_low_target): Remove the op fields.
2087 * linux-bfin-low.cc (the_low_target): Ditto.
2088 * linux-cris-low.cc (the_low_target): Ditto.
2089 * linux-crisv32-low.cc (the_low_target): Ditto.
2090 * linux-m32r-low.cc (the_low_target): Ditto.
2091 * linux-m68k-low.cc (the_low_target): Ditto.
2092 * linux-mips-low.cc (the_low_target): Ditto.
2093 * linux-nios2-low.cc (the_low_target): Ditto.
2094 * linux-ppc-low.cc (the_low_target): Ditto.
2095 * linux-s390-low.cc (the_low_target): Ditto.
2096 * linux-sh-low.cc (the_low_target): Ditto.
2097 * linux-sparc-low.cc (the_low_target): Ditto.
2098 * linux-tic6x-low.cc (the_low_target): Ditto.
2099 * linux-tile-low.cc (the_low_target): Ditto.
2100 * linux-xtensa-low.cc (the_low_target): Ditto.
2101 * linux-aarch64-low.cc (class aarch64_target)
2102 <breakpoint_kind_from_pc>
2103 <breakpoint_kind_from_current_state>: Declare.
2104 (aarch64_breakpoint_kind_from_pc): Turn into...
2105 (aarch64_target::breakpoint_kind_from_pc): ...this.
2106 (aarch64_breakpoint_kind_from_current_state): Turn into...
2107 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2108 (the_low_target): Remove the op fields.
2109 * linux-arm-low.cc (class arm_target):
2110 <breakpoint_kind_from_pc>
2111 <breakpoint_kind_from_current_state>: Declare.
2112 (arm_target::breakpoint_kind_from_pc): Define.
2113 (arm_target::breakpoint_kind_from_current_state): Define.
2114 (the_low_target): Remove the op fields.
2115 * linux-riscv-low.cc (class riscv_target):
2116 <breakpoint_kind_from_pc>: Declare.
2117 (riscv_breakpoint_kind_from_pc): Turn into...
2118 (riscv_target::breakpoint_kind_from_pc): ...this.
2119 (the_low_target): Remove the op fields.
2120
bf9ae9d8
TBA
21212020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2122
2123 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2124 of linux_process_target.
2125
2126 * linux-low.h (struct linux_target_ops): Remove the ops.
2127 (class linux_process_target) <low_supports_breakpoints>
2128 <low_get_pc>
2129 <low_set_pc>: Declare.
2130 * linux-low.cc (supports_breakpoints): Turn into...
2131 (linux_process_target::low_supports_breakpoints): ...this.
2132 (linux_process_target::low_get_pc): Define.
2133 (linux_process_target::low_set_pc): Define.
2134
2135 Update the callers below.
2136
2137 (linux_process_target::get_pc)
2138 (linux_process_target::save_stop_reason)
2139 (linux_process_target::maybe_move_out_of_jump_pad)
2140 (linux_process_target::wait_1)
2141 (linux_process_target::resume_one_lwp_throw)
2142 (linux_process_target::resume)
2143 (linux_process_target::proceed_all_lwps)
2144 (linux_process_target::read_pc)
2145 (linux_process_target::write_pc)
2146
2147 * linux-x86-low.cc (class linux_process_target)
2148 <low_supports_breakpoints>
2149 <low_get_pc>
2150 <low_set_pc>: Declare.
2151 (x86_target::low_supports_breakpoints): Define.
2152 (x86_get_pc): Turn into...
2153 (x86_target::low_get_pc): ...this.
2154 (x86_set_pc): Turn into...
2155 (x86_target::low_set_pc): ...this.
2156 (the_low_target): Remove the op fields.
2157 * linux-arm-low.cc (class arm_target)
2158 <low_supports_breakpoints>
2159 <low_get_pc>
2160 <low_set_pc>: Declare.
2161 (arm_target::low_supports_breakpoints)
2162 (arm_target::low_get_pc)
2163 (arm_target::low_set_pc): Define.
2164 (the_low_target): Remove the op fields.
2165 * linux-bfin-low.cc (class bfin_target)
2166 <low_supports_breakpoints>
2167 <low_get_pc>
2168 <low_set_pc>: Declare.
2169 (bfin_target::low_supports_breakpoints)
2170 (bfin_target::low_get_pc)
2171 (bfin_target::low_set_pc): Define.
2172 (the_low_target): Remove the op fields.
2173 * linux-cris-low.cc (class cris_target)
2174 <low_supports_breakpoints>
2175 <low_get_pc>
2176 <low_set_pc>: Declare.
2177 (cris_target::low_supports_breakpoints)
2178 (cris_target::low_get_pc)
2179 (cris_target::low_set_pc): Define.
2180 (the_low_target): Remove the op fields.
2181 * linux-crisv32-low.cc (class crisv32_target)
2182 <low_supports_breakpoints>
2183 <low_get_pc>
2184 <low_set_pc>: Declare.
2185 (crisv32_target::low_supports_breakpoints)
2186 (crisv32_target::low_get_pc)
2187 (crisv32_target::low_set_pc): Define.
2188 (the_low_target): Remove the op fields.
2189 * linux-m32r-low.cc (class m32r_target)
2190 <low_supports_breakpoints>
2191 <low_get_pc>
2192 <low_set_pc>: Declare.
2193 (m32r_target::low_supports_breakpoints)
2194 (m32r_target::low_get_pc)
2195 (m32r_target::low_set_pc): Define.
2196 (the_low_target): Remove the op fields.
2197 * linux-m68k-low.cc (class m68k_target)
2198 <low_supports_breakpoints>
2199 <low_get_pc>
2200 <low_set_pc>: Declare.
2201 (m68k_target::low_supports_breakpoints)
2202 (m68k_target::low_get_pc)
2203 (m68k_target::low_set_pc): Define.
2204 (the_low_target): Remove the op fields.
2205 * linux-nios2-low.cc (class nios2_target)
2206 <low_supports_breakpoints>
2207 <low_get_pc>
2208 <low_set_pc>: Declare.
2209 (nios2_target::low_supports_breakpoints)
2210 (nios2_target::low_get_pc)
2211 (nios2_target::low_set_pc): Define.
2212 (the_low_target): Remove the op fields.
2213 * linux-sh-low.cc (class sh_target)
2214 <low_supports_breakpoints>
2215 <low_get_pc>
2216 <low_set_pc>: Declare.
2217 (sh_target::low_supports_breakpoints)
2218 (sh_target::low_get_pc)
2219 (sh_target::low_set_pc): Define.
2220 (the_low_target): Remove the op fields.
2221 * linux-xtensa-low.cc (class xtensa_target)
2222 <low_supports_breakpoints>
2223 <low_get_pc>
2224 <low_set_pc>: Declare.
2225 (xtensa_target::low_supports_breakpoints)
2226 (xtensa_target::low_get_pc)
2227 (xtensa_target::low_set_pc): Define.
2228 (the_low_target): Remove the op fields.
2229 * linux-sparc-low.cc (class sparc_target)
2230 <low_supports_breakpoints>
2231 <low_get_pc>: Declare.
2232 (sparc_target::low_supports_breakpoints)
2233 (sparc_target::low_get_pc): Define.
2234 (the_low_target): Remove the op fields.
2235 * linux-tile-low.cc (class tile_target)
2236 <low_supports_breakpoints>
2237 <low_get_pc>
2238 <low_set_pc>: Declare.
2239 (tile_target::low_supports_breakpoints)
2240 (tile_target::low_get_pc)
2241 (tile_target::low_set_pc): Define.
2242 (the_low_target): Remove the op fields.
2243 * linux-aarch64-low.cc (class aarch64_target)
2244 <low_supports_breakpoints>
2245 <low_get_pc>
2246 <low_set_pc>: Declare.
2247 (aarch64_target::low_supports_breakpoints): Define.
2248 (aarch64_get_pc): Turn into...
2249 (aarch64_target::low_get_pc): ...this.
2250 (aarch64_set_pc): Turn into...
2251 (aarch64_target::low_set_pc): ...this.
2252 (the_low_target): Remove the op fields.
2253 * linux-mips-low.cc (class mips_target)
2254 <low_supports_breakpoints>
2255 <low_get_pc>
2256 <low_set_pc>: Declare.
2257 (mips_target::low_supports_breakpoints): Define.
2258 (mips_get_pc): Turn into...
2259 (mips_target::low_get_pc): ...this.
2260 (mips_set_pc): Turn into...
2261 (mips_target::low_set_pc): ...this.
2262 (the_low_target): Remove the op fields.
2263 * linux-ppc-low.cc (class ppc_target)
2264 <low_supports_breakpoints>
2265 <low_get_pc>
2266 <low_set_pc>: Declare.
2267 (ppc_target::low_supports_breakpoints): Define.
2268 (ppc_get_pc): Turn into...
2269 (ppc_target::low_get_pc): ...this.
2270 (ppc_set_pc): Turn into...
2271 (ppc_target::low_set_pc): ...this.
2272 (the_low_target): Remove the op fields.
2273 * linux-riscv-low.cc (class riscv_target)
2274 <low_supports_breakpoints>
2275 <low_get_pc>
2276 <low_set_pc>: Declare.
2277 (riscv_target::low_supports_breakpoints): Define.
2278 (riscv_get_pc): Turn into...
2279 (riscv_target::low_get_pc): ...this.
2280 (riscv_set_pc): Turn into...
2281 (riscv_target::low_set_pc): ...this.
2282 (the_low_target): Remove the op fields.
2283 * linux-s390-low.cc (class s390_target)
2284 <low_supports_breakpoints>
2285 <low_get_pc>
2286 <low_set_pc>: Declare.
2287 (s390_target::low_supports_breakpoints): Define.
2288 (s390_get_pc): Turn into...
2289 (s390_target::low_get_pc): ...this.
2290 (s390_set_pc): Turn into...
2291 (s390_target::low_set_pc): ...this.
2292 (the_low_target): Remove the op fields.
2293 * linux-tic6x-low.cc (class tic6x_target)
2294 <low_supports_breakpoints>
2295 <low_get_pc>
2296 <low_set_pc>: Declare.
2297 (tic6x_target::low_supports_breakpoints): Define.
2298 (tic6x_get_pc): Turn into...
2299 (tic6x_target::low_get_pc): ...this.
2300 (tic6x_set_pc): Turn into...
2301 (tic6x_target::low_set_pc): ...this.
2302 (the_low_target): Remove the op fields.
2303
df95181f
TBA
23042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2305
2306 Turn some more static methods in linux-low into private methods
2307 of linux_process_target.
2308
2309 * linux-low.cc (get_pc): Turn into...
2310 (linux_process_target::get_pc): ...this.
2311 (save_stop_reason): Turn into...
2312 (linux_process_target::save_stop_reason): ...this.
2313 (thread_still_has_status_pending_p): Turn into...
2314 (linux_process_target::thread_still_has_status_pending): ...this.
2315 (status_pending_p_callback): Turn into...
2316 (linux_process_target::status_pending_p_callback): ...this.
2317 (resume_stopped_resumed_lwps): Turn into...
2318 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2319 (install_software_single_step_breakpoints): Turn into...
2320 (linux_process_target::install_software_single_step_breakpoints):
2321 ...this.
2322 (single_step): Turn into...
2323 (linux_process_target::single_step): ...this.
2324 (linux_resume_one_lwp_throw): Turn into...
2325 (linux_process_target::resume_one_lwp_throw): ...this.
2326 (linux_resume_one_lwp): Turn into...
2327 (linux_process_target::resume_one_lwp): ...this.
2328 (resume_status_pending_p): Turn into...
2329 (linux_process_target::resume_status_pending): ...this.
2330 (need_step_over_p): Turn into...
2331 (linux_process_target::thread_needs_step_over): ...this.
2332 (linux_resume_one_thread): Turn into...
2333 (linux_process_target::resume_one_thread): ...this.
2334 (proceed_one_lwp): Turn into...
2335 (linux_process_target::proceed_one_lwp): ...this.
2336 (unsuspend_and_proceed_one_lwp): Turn into...
2337 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2338
2339 Update the calls/references to the above functions below.
2340
2341 (linux_process_target::handle_extended_wait)
2342 (linux_process_target::filter_event)
2343 (linux_process_target::wait_for_event_filtered)
2344 (linux_process_target::wait_1)
2345 (linux_process_target::move_out_of_jump_pad)
2346 (linux_process_target::start_step_over)
2347 (linux_process_target::resume)
2348 (linux_process_target::proceed_all_lwps)
2349 (regsets_store_inferior_registers)
2350 (linux_process_target::store_register)
2351
2352 * linux-low.h (class linux_process_target)
2353 <get_pc>
2354 <save_stop_reason>
2355 <thread_still_has_status_pending>
2356 <status_pending_p_callback>
2357 <resume_stopped_resumed_lwps>
2358 <install_software_single_step_breakpoints>
2359 <single_step>
2360 <resume_one_lwp_throw>
2361 <resume_one_lwp>
2362 <resume_status_pending>
2363 <thread_needs_step_over>
2364 <resume_one_thread>
2365 <proceed_one_lwp>
2366 <unsuspend_and_proceed_one_lwp>: Declare.
2367
bd70b1f2
TBA
23682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2369
2370 Turn the 'fetch_register' linux target op into a method of
2371 linux_process_target.
2372
2373 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2374 (class linux_process_target) <low_fetch_register>: Declare.
2375 * linux-x86-low.cc (the_low_target)
2376 * linux-aarch64-low.cc (the_low_target)
2377 * linux-arm-low.cc (the_low_target)
2378 * linux-bfin-low.cc (the_low_target)
2379 * linux-cris-low.cc (the_low_target)
2380 * linux-crisv32-low.cc (the_low_target)
2381 * linux-m32r-low.cc (the_low_target)
2382 * linux-m68k-low.cc (the_low_target)
2383 * linux-nios2-low.cc (the_low_target)
2384 * linux-ppc-low.cc (the_low_target)
2385 * linux-s390-low.cc (the_low_target)
2386 * linux-sh-low.cc (the_low_target)
2387 * linux-sparc-low.cc (the_low_target)
2388 * linux-tic6x-low.cc (the_low_target)
2389 * linux-tile-low.cc (the_low_target)
2390 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2391 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2392 Declare.
2393 (ia64_fetch_register): Turn into...
2394 (ia64_target::low_fetch_register): ...this.
2395 (the_low_target): Remove the op field.
2396 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2397 Declare.
2398 (mips_fetch_register): Turn into...
2399 (mips_target::low_fetch_register): ...this.
2400 (the_low_target): Remove the op field.
2401 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2402 Declare.
2403 (riscv_fetch_register): Turn into...
2404 (riscv_target::low_fetch_register): ...this.
2405 (the_low_target): Remove the op field.
2406
2407 Update the callers below.
2408
2409 * linux-low.cc (linux_process_target::fetch_registers)
2410 (linux_process_target::low_fetch_register)
2411
daca57a7
TBA
24122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2413
2414 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2415 linux target ops into methods of linux_process_target.
2416
2417 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2418 (class linux_process_target) <fetch_register>
2419 <store_register>
2420 <usr_fetch_inferior_registers>
2421 <usr_store_inferior_registers>
2422 <low_cannot_fetch_register>
2423 <low_cannot_fetch_register> Declare.
2424 * linux-low.cc (fetch_register): Turn into...
2425 (linux_process_target::fetch_register): ...this.
2426 (store_register): Turn into ...
2427 (linux_process_target::store_register): ...this.
2428 (usr_fetch_inferior_registers): Turn into...
2429 (linux_process_target::usr_fetch_inferior_registers): ...this.
2430 (usr_store_inferior_registers): Turn into...
2431 (linux_process_target::usr_store_inferior_registers): ...this.
2432 * linux-x86-low.cc (class x86_target)
2433 <low_cannot_fetch_register>
2434 <low_cannot_store_register>: Declare.
2435 (x86_cannot_store_register): Turn into...
2436 (x86_target::low_cannot_store_register): ...this.
2437 (x86_cannot_fetch_register): Turn into...
2438 (x86_target::low_cannot_fetch_register): ...this.
2439 (the_low_target): Remove the target op fields.
2440 * linux-aarch64-low.cc (class aarch64_target)
2441 <low_cannot_fetch_register>
2442 <low_cannot_store_register>: Declare.
2443 (aarch64_target::low_cannot_fetch_register)
2444 (aarch64_target::low_cannot_store_register): Define.
2445 (the_low_target): Remove the op fields.
2446 * linux-arm-low.cc (class arm_target)
2447 <low_cannot_fetch_register>
2448 <low_cannot_store_register>: Declare.
2449 (arm_cannot_fetch_register): Turn into...
2450 (arm_target::low_cannot_fetch_register): ...this.
2451 (arm_cannot_store_register): Turn into...
2452 (arm_target::low_cannot_store_register): ...this.
2453 (the_low_target): Remove the op fields.
2454 * linux-bfin-low.cc (class bfin_target)
2455 <low_cannot_fetch_register>
2456 <low_cannot_store_register>: Declare.
2457 (bfin_cannot_fetch_register): Turn into...
2458 (bfin_target::low_cannot_fetch_register): ...this.
2459 (bfin_cannot_store_register): Turn into...
2460 (bfin_target::low_cannot_store_register): ...this.
2461 (the_low_target): Remove the op fields.
2462 * linux-cris-low.cc (class cris_target)
2463 <low_cannot_fetch_register>
2464 <low_cannot_store_register>: Declare.
2465 (cris_cannot_fetch_register): Turn into...
2466 (cris_target::low_cannot_fetch_register): ...this.
2467 (cris_cannot_store_register): Turn into...
2468 (cris_target::low_cannot_store_register): ...this.
2469 (the_low_target): Remove the op fields.
2470 * linux-crisv32-low.cc (class crisv32_target)
2471 <low_cannot_fetch_register>
2472 <low_cannot_store_register>: Declare.
2473 (crisv32_target::low_cannot_fetch_register)
2474 (crisv32_target::low_cannot_store_register): Define.
2475 (the_low_target): Remove the op fields.
2476 * linux-ia64-low.cc (class ia64_target)
2477 <low_cannot_fetch_register>
2478 <low_cannot_store_register>: Declare.
2479 (ia64_cannot_fetch_register): Turn into...
2480 (ia64_target::low_cannot_fetch_register): ...this.
2481 (ia64_cannot_store_register): Turn into...
2482 (ia64_target::low_cannot_store_register): ...this.
2483 (the_low_target): Remove the op fields.
2484 * linux-m32r-low.cc (class m32r_target)
2485 <low_cannot_fetch_register>
2486 <low_cannot_store_register>: Declare.
2487 (m32r_cannot_fetch_register): Turn into...
2488 (m32r_target::low_cannot_fetch_register): ...this.
2489 (m32r_cannot_store_register): Turn into...
2490 (m32r_target::low_cannot_store_register): ...this.
2491 (the_low_target): Remove the op fields.
2492 * linux-m68k-low.cc (class m68k_target)
2493 <low_cannot_fetch_register>
2494 <low_cannot_store_register>: Declare.
2495 (m68k_cannot_fetch_register): Turn into...
2496 (m68k_target::low_cannot_fetch_register): ...this.
2497 (m68k_cannot_store_register): Turn into...
2498 (m68k_target::low_cannot_store_register): ...this.
2499 (the_low_target): Remove the op fields.
2500 * linux-mips-low.cc (class mips_target)
2501 <low_cannot_fetch_register>
2502 <low_cannot_store_register>: Declare.
2503 (mips_cannot_fetch_register): Turn into...
2504 (mips_target::low_cannot_fetch_register): ...this.
2505 (mips_cannot_store_register): Turn into...
2506 (mips_target::low_cannot_store_register): ...this.
2507 (get_usrregs_info): Inline at the call sites in
2508 low_cannot_fetch_register and low_cannot_store_register,
2509 and remove.
2510 (the_low_target): Remove the op fields.
2511 * linux-nios2-low.cc (class nios2_target)
2512 <low_cannot_fetch_register>
2513 <low_cannot_store_register>: Declare.
2514 (nios2_cannot_fetch_register): Turn into...
2515 (nios2_target::low_cannot_fetch_register): ...this.
2516 (nios2_cannot_store_register): Turn into...
2517 (nios2_target::low_cannot_store_register): ...this.
2518 (the_low_target): Remove the op fields.
2519 * linux-ppc-low.cc (class ppc_target)
2520 <low_cannot_fetch_register>
2521 <low_cannot_store_register>: Declare.
2522 (ppc_cannot_fetch_register): Turn into...
2523 (ppc_target::low_cannot_fetch_register): ...this.
2524 (ppc_cannot_store_register): Turn into...
2525 (ppc_target::low_cannot_store_register): ...this.
2526 (the_low_target): Remove the op fields.
2527 * linux-riscv-low.cc (class riscv_target)
2528 <low_cannot_fetch_register>
2529 <low_cannot_store_register>: Declare.
2530 (riscv_target::low_cannot_fetch_register)
2531 (riscv_target::low_cannot_store_register): Define.
2532 (the_low_target): Remove the op fields.
2533 * linux-s390-low.cc (class s390_target)
2534 <low_cannot_fetch_register>
2535 <low_cannot_store_register>: Declare.
2536 (s390_cannot_fetch_register): Turn into...
2537 (s390_target::low_cannot_fetch_register): ...this.
2538 (s390_cannot_store_register): Turn into...
2539 (s390_target::low_cannot_store_register): ...this.
2540 (the_low_target): Remove the op fields.
2541 * linux-sh-low.cc (class sh_target)
2542 <low_cannot_fetch_register>
2543 <low_cannot_store_register>: Declare.
2544 (sh_cannot_fetch_register): Turn into...
2545 (sh_target::low_cannot_fetch_register): ...this.
2546 (sh_cannot_store_register): Turn into...
2547 (sh_target::low_cannot_store_register): ...this.
2548 (the_low_target): Remove the op fields.
2549 * linux-sparc-low.cc (class sparc_target)
2550 <low_cannot_fetch_register>
2551 <low_cannot_store_register>: Declare.
2552 (sparc_cannot_fetch_register): Turn into...
2553 (sparc_target::low_cannot_fetch_register): ...this.
2554 (sparc_cannot_store_register): Turn into...
2555 (sparc_target::low_cannot_store_register): ...this.
2556 (the_low_target): Remove the op fields.
2557 * linux-tic6x-low.cc (class tic6x_target)
2558 <low_cannot_fetch_register>
2559 <low_cannot_store_register>: Declare.
2560 (tic6x_cannot_fetch_register): Turn into...
2561 (tic6x_target::low_cannot_fetch_register): ...this.
2562 (tic6x_cannot_store_register): Turn into...
2563 (tic6x_target::low_cannot_store_register): ...this.
2564 (the_low_target): Remove the op fields.
2565 * linux-tile-low.cc (class tile_target)
2566 <low_cannot_fetch_register>
2567 <low_cannot_store_register>: Declare.
2568 (tile_cannot_fetch_register): Turn into...
2569 (tile_target::low_cannot_fetch_register): ...this.
2570 (tile_cannot_store_register): Turn into...
2571 (tile_target::low_cannot_store_register): ...this.
2572 (the_low_target): Remove the op fields.
2573 * linux-xtensa-low.cc (class xtensa_target)
2574 <low_cannot_fetch_register>
2575 <low_cannot_store_register>: Declare.
2576 (xtensa_target::low_cannot_fetch_register)
2577 (xtensa_target::low_cannot_store_register): Define.
2578 (the_low_target): Remove the op fields.
2579
aa8d21c9
TBA
25802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2581
2582 Turn the 'regs_info' linux target op into a method of
2583 linux_process_target.
2584
2585 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2586 (class linux_process_target) <get_regs_info>: Define.
2587
2588 Update the callers below.
2589
2590 * linux-low.cc (linux_process_target::fetch_registers)
2591 (linux_process_target::store_registers)
2592 * proc-service.cc (gregset_info)
2593
2594 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2595 (x86_linux_regs_info): Turn into ...
2596 (x86_target::get_regs_info): ...this.
2597 (the_low_target): Remove the op field.
2598 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2599 Declare.
2600 (aarch64_regs_info): Turn into ...
2601 (aarch64_target::get_regs_info): ...this.
2602 (the_low_target): Remove the op field.
2603 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2604 (arm_regs_info): Turn into ...
2605 (arm_target::get_regs_info): ...this.
2606 (the_low_target): Remove the op field.
2607 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2608 (bfin_regs_info): Turn into ...
2609 (bfin_target::get_regs_info): ...this.
2610 (the_low_target): Remove the op field.
2611 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2612 (cris_regs_info): Turn into ...
2613 (cris_target::get_regs_info): ...this.
2614 (the_low_target): Remove the op field.
2615 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2616 Declare.
2617 (crisv32_regs_info): Turn into ...
2618 (crisv32_target::get_regs_info): ...this.
2619 (the_low_target): Remove the op field.
2620 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2621 (ia64_regs_info): Turn into ...
2622 (ia64_target::get_regs_info): ...this.
2623 (the_low_target): Remove the op field.
2624 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2625 (m32r_regs_info): Turn into ...
2626 (m32r_target::get_regs_info): ...this.
2627 (the_low_target): Remove the op field.
2628 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2629 (m68k_regs_info): Turn into ...
2630 (m68k_target::get_regs_info): ...this.
2631 (the_low_target): Remove the op field.
2632 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2633 (mips_regs_info): Turn into ...
2634 (mips_target::get_regs_info): ...this.
2635 (the_low_target): Remove the op field.
2636 (get_usrregs_info): Update the call to the op.
2637 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2638 (nios2_regs_info): Turn into ...
2639 (nios2_target::get_regs_info): ...this.
2640 (the_low_target): Remove the op field.
2641 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2642 (ppc_regs_info): Turn into ...
2643 (ppc_target::get_regs_info): ...this.
2644 (the_low_target): Remove the op field.
2645 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2646 (riscv_regs_info): Turn into ...
2647 (riscv_target::get_regs_info): ...this.
2648 (the_low_target): Remove the op field.
2649 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2650 (s390_regs_info): Turn into ...
2651 (s390_target::get_regs_info): ...this.
2652 (the_low_target): Remove the op field.
2653 (s390_collect_ptrace_register)
2654 (s390_supply_ptrace_register)
2655 (s390_fill_gregset): Update the call to the op.
2656 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2657 (sh_regs_info): Turn into ...
2658 (sh_target::get_regs_info): ...this.
2659 (the_low_target): Remove the op field.
2660 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2661 (sparc_regs_info): Turn into ...
2662 (sparc_target::get_regs_info): ...this.
2663 (the_low_target): Remove the op field.
2664 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2665 (tic6x_regs_info): Turn into ...
2666 (tic6x_target::get_regs_info): ...this.
2667 (the_low_target): Remove the op field.
2668 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2669 (tile_regs_info): Turn into ...
2670 (tile_target::get_regs_info): ...this.
2671 (the_low_target): Remove the op field.
2672 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2673 Declare.
2674 (xtensa_regs_info): Turn into ...
2675 (xtensa_target::get_regs_info): ...this.
2676 (the_low_target): Remove the op field.
2677
797bcff5
TBA
26782020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2679
2680 Turn the 'arch_setup' linux target op into a method of
2681 linux_process_target.
2682
2683 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2684 (class linux_process_target) <arch_setup_thread>
2685 <low_arch_setup>: New declarations.
2686 * linux-low.cc (linux_arch_setup): Delete.
2687 (linux_arch_setup_thread): Turn into...
2688 (linux_process_target::arch_setup_thread): ... this.
2689
2690 Update the callers below.
2691
2692 (linux_process_target::handle_extended_wait)
2693 (linux_process_target::post_create_inferior)
2694 (linux_process_target::filter_event)
2695
2696 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2697 declaration.
2698 (x86_linux_update_xmltarget): Turn into...
2699 (x86_target::update_xmltarget): ...this.
2700 (x86_linux_process_qsupported): Update the call to
2701 x86_linux_update_xmltarget.
2702 (x86_arch_setup): Turn into ...
2703 (x86_target::low_arch_setup): ...this.
2704 (the_low_target): Remove the op field.
2705 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2706 declaration.
2707 (aarch64_arch_setup): Turn into ...
2708 (aarch64_target::low_arch_setup): ...this.
2709 (the_low_target): Remove the op field.
2710 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2711 declaration.
2712 (arm_arch_setup): Turn into ...
2713 (arm_target::low_arch_setup): ...this.
2714 (the_low_target): Remove the op field.
2715 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2716 declaration.
2717 (bfin_arch_setup): Turn into ...
2718 (bfin_target::low_arch_setup): ...this.
2719 (the_low_target): Remove the op field.
2720 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2721 declaration.
2722 (cris_arch_setup): Turn into ...
2723 (cris_target::low_arch_setup): ...this.
2724 (the_low_target): Remove the op field.
2725 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2726 declaration.
2727 (crisv32_arch_setup): Turn into ...
2728 (crisv32_target::low_arch_setup): ...this.
2729 (the_low_target): Remove the op field.
2730 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2731 declaration.
2732 (ia64_arch_setup): Turn into ...
2733 (ia64_target::low_arch_setup): ...this.
2734 (the_low_target): Remove the op field.
2735 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2736 declaration.
2737 (m32r_arch_setup): Turn into ...
2738 (m32r_target::low_arch_setup): ...this.
2739 (the_low_target): Remove the op field.
2740 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2741 declaration.
2742 (m68k_arch_setup): Turn into ...
2743 (m68k_target::low_arch_setup): ...this.
2744 (the_low_target): Remove the op field.
2745 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2746 declaration.
2747 (mips_arch_setup): Turn into ...
2748 (mips_target::low_arch_setup): ...this.
2749 (the_low_target): Remove the op field.
2750 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2751 declaration.
2752 (nios2_arch_setup): Turn into ...
2753 (nios2_target::low_arch_setup): ...this.
2754 (the_low_target): Remove the op field.
2755 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2756 declaration.
2757 (ppc_arch_setup): Turn into ...
2758 (ppc_target::low_arch_setup): ...this.
2759 (the_low_target): Remove the op field.
2760 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2761 declaration.
2762 (riscv_arch_setup): Turn into ...
2763 (riscv_target::low_arch_setup): ...this.
2764 (the_low_target): Remove the op field.
2765 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2766 declaration.
2767 (s390_arch_setup): Turn into ...
2768 (s390_target::low_arch_setup): ...this.
2769 (the_low_target): Remove the op field.
2770 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2771 declaration.
2772 (sh_arch_setup): Turn into ...
2773 (sh_target::low_arch_setup): ...this.
2774 (the_low_target): Remove the op field.
2775 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2776 declaration.
2777 (sparc_arch_setup): Turn into ...
2778 (sparc_target::low_arch_setup): ...this.
2779 (the_low_target): Remove the op field.
2780 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2781 declaration.
2782 (tic6x_arch_setup): Turn into ...
2783 (tic6x_target::low_arch_setup): ...this.
2784 (the_low_target): Remove the op field.
2785 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2786 declaration.
2787 (tile_arch_setup): Turn into ...
2788 (tile_target::low_arch_setup): ...this.
2789 (the_low_target): Remove the op field.
2790 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2791 declaration.
2792 (xtensa_arch_setup): Turn into ...
2793 (xtensa_target::low_arch_setup): ...this.
2794 (the_low_target): Remove the op field.
2795
ef0478f6
TBA
27962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2797
2798 * linux-low.h (the_linux_target): New extern declaration.
2799 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2800 'the_target'.
2801 (the_linux_target): Remove.
2802 * linux-x86-low.cc (class x86_target): New class.
2803 (the_x86_target): New static object.
2804 (the_linux_target): Define as pointer to the_x86_target.
2805 * linux-aarch64-low.cc (class aarch64_target): New class.
2806 (the_aarch64_target): New static object.
2807 (the_linux_target): Define as pointer to the_aarch64_target.
2808 * linux-arm-low.cc (class arm_target): New class.
2809 (the_arm_target): New static object.
2810 (the_linux_target): Define as pointer to the_arm_target.
2811 * linux-bfin-low.cc (class bfin_target): New class.
2812 (the_bfin_target): New static object.
2813 (the_linux_target): Define as pointer to the_bfin_target.
2814 * linux-cris-low.cc (class cris_target): New class.
2815 (the_cris_target): New static object.
2816 (the_linux_target): Define as pointer to the_cris_target.
2817 * linux-crisv32-low.cc (class crisv32_target): New class.
2818 (the_crisv32_target): New static object.
2819 (the_linux_target): Define as pointer to the_crisv32_target.
2820 * linux-ia64-low.cc (class ia64_target): New class.
2821 (the_ia64_target): New static object.
2822 (the_linux_target): Define as pointer to the_ia64_target.
2823 * linux-m32r-low.cc (class m32r_target): New class.
2824 (the_m32r_target): New static object.
2825 (the_linux_target): Define as pointer to the_m32r_target.
2826 * linux-m68k-low.cc (class m68k_target): New class.
2827 (the_m68k_target): New static object.
2828 (the_linux_target): Define as pointer to the_m68k_target.
2829 * linux-mips-low.cc (class mips_target): New class.
2830 (the_mips_target): New static object.
2831 (the_linux_target): Define as pointer to the_mips_target.
2832 * linux-nios2-low.cc (class nios2_target): New class.
2833 (the_nios2_target): New static object.
2834 (the_linux_target): Define as pointer to the_nios2_target.
2835 * linux-ppc-low.cc (class ppc_target): New class.
2836 (the_ppc_target): New static object.
2837 (the_linux_target): Define as pointer to the_ppc_target.
2838 * linux-riscv-low.cc (class riscv_target): New class.
2839 (the_riscv_target): New static object.
2840 (the_linux_target): Define as pointer to the_riscv_target.
2841 * linux-s390-low.cc (class s390_target): New class.
2842 (the_s390_target): New static object.
2843 (the_linux_target): Define as pointer to the_s390_target.
2844 * linux-sh-low.cc (class sh_target): New class.
2845 (the_sh_target): New static object.
2846 (the_linux_target): Define as pointer to the_sh_target.
2847 * linux-sparc-low.cc (class sparc_target): New class.
2848 (the_sparc_target): New static object.
2849 (the_linux_target): Define as pointer to the_sparc_target.
2850 * linux-tic6x-low.cc (class tic6x_target): New class.
2851 (the_tic6x_target): New static object.
2852 (the_linux_target): Define as pointer to the_tic6x_target.
2853 * linux-tile-low.cc (class tile_target): New class.
2854 (the_tile_target): New static object.
2855 (the_linux_target): Define as pointer to the_tile_target.
2856 * linux-xtensa-low.cc (class xtensa_target): New class.
2857 (the_xtensa_target): New static object.
2858 (the_linux_target): Define as pointer to the_xtensa_target.
2859
d16f3f6c
TBA
28602020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2861
2862 Turn some static functions in linux-low.cc into private methods of
2863 linux_process_target.
2864
2865 * linux-low.cc (handle_extended_wait): Turn into ...
2866 (linux_process_target::handle_extended_wait): ...this. Call
2867 'mourn' on 'this' object instead of 'the_target'.
2868 (maybe_move_out_of_jump_pad): Turn into...
2869 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2870 (linux_low_filter_event): Turn into...
2871 (linux_process_target::filter_event): ...this.
2872 (linux_wait_for_event_filtered): Turn into...
2873 (linux_process_target::wait_for_event_filtered): ...this.
2874 (linux_wait_for_event): Turn into...
2875 (linux_process_target::wait_for_event): ...this.
2876 (linux_wait_1): Turn into...
2877 (linux_process_target::wait_1): ...this.
2878 (wait_for_sigstop): Turn into...
2879 (linux_process_target::wait_for_sigstop): ...this.
2880 (move_out_of_jump_pad_callback): Turn into...
2881 (linux_process_target::move_out_of_jump_pad): ...this.
2882 (stop_all_lwps): Turn into...
2883 (linux_process_target::stop_all_lwps): ...this.
2884 (start_step_over): Turn into...
2885 (linux_process_target::start_step_over): ...this.
2886 (complete_ongoing_step_over): Turn into...
2887 (linux_process_target::complete_ongoing_step_over): ...this.
2888 (proceed_all_lwps): Turn into...
2889 (linux_process_target::proceed_all_lwps): ...this.
2890 (unstop_all_lwps): Turn into...
2891 (linux_process_target::unstop_all_lwps): ...this.
2892
2893 * linux-low.h (class linux_process_target)
2894 <handle_extended_wait>
2895 <maybe_move_out_of_jump_pad>
2896 filter_event>
2897 <wait_for_event_filtered>
2898 <wait_for_event>
2899 <wait_1>
2900 <wait_for_sigstop>
2901 <move_out_of_jump_pad>
2902 <stop_all_lwps>
2903 <start_step_over>
2904 <complete_ongoing_step_over>
2905 <proceed_all_lwps>
2906 <unstop_all_lwps>: Declare.
2907
2908 Update the callers below.
2909
2910 * linux-low.cc (linux_process_target::attach): Update.
2911 (linux_process_target::stabilize_threads): Ditto.
2912 (linux_process_target::wait): Ditto.
2913
a5863204
TBA
29142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2915
2916 * linux-low.h (struct linux_target_ops): Update the comment for
2917 'cannot_store_register' to return 0 or 1.
2918 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2919 of 2.
2920
c884cc46
SM
29212020-03-20 Simon Marchi <simon.marchi@efficios.com>
2922
2923 * config.in: Re-generate.
2924 * configure: Re-generate.
2925
5a82b8a1
KR
29262020-03-17 Kamil Rytarowski <n54@gmx.com>
2927
2928 * regcache.cc (find_register_by_number): Update.
2929 * tdesc.cc (init_target_desc): Likewise.
2930 * tdesc.h (target_desc::reg_defs): Likewise.
2931
4635ff97
TT
29322020-03-12 Tom Tromey <tom@tromey.com>
2933
2934 * configure: Rebuild.
2935 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2936 (WIN32APILIBS): New subst.
2937 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2938 gdbsupport files.
2939 (gdbsupport/%.o): Remove target.
2940 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2941 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2942 (WIN32APILIBS): New variable.
2943 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2944 (gdbreplay$(EXEEXT)): Likewise.
2945
9a665d62
TT
29462020-03-12 Tom Tromey <tom@tromey.com>
2947
2948 * config.in, configure: Rebuild.
2949 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2950 * acinclude.m4: Include gettext-sister.m4.
2951 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2952 variables.
2953 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2954 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2955
272cd5a3
SM
29562020-03-12 Simon Marchi <simon.marchi@efficios.com>
2957
2958 * acinclude.m4: Update path to selftest.m4.
2959
db6878ac
SM
29602020-03-12 Simon Marchi <simon.marchi@efficios.com>
2961
2962 * configure.ac: Don't source bfd/development.sh, move
2963 GDB_AC_COMMON higher.
2964 * configure: Re-generate.
2965
4d696a5c
SM
29662020-03-12 Simon Marchi <simon.marchi@efficios.com>
2967
2968 * configure: Re-generate.
2969
a0761e34
SM
29702020-03-11 Simon Marchi <simon.marchi@efficios.com>
2971
2972 * configure: Re-generate.
2973
20ea4a60
AB
29742020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2975
2976 * .dir-locals.el: New file.
2977
842806cb
TBA
29782020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2979
2980 * .gitattributes: New file.
2981
442131c1
AB
29822020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2985 reply into an S reply.
2986 * server.cc (disable_packet_T): New global.
2987 (captured_main): Set new global when appropriate.
2988 * server.h (disable_packet_T): Declare.
2989
dda42c0b
TT
29902020-02-21 Tom Tromey <tom@tromey.com>
2991
2992 * Makefile.in (mostlyclean): New target.
2993
52405d85
TBA
29942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2995
2996 * target.h (struct process_stratum_target): Remove.
2997 (class process_target): Rename to ...
2998 (class process_stratum_target): ... this.
2999 * linux-low.h (class linux_process_target): Derive from
3000 'process_stratum_target'.
3001 * linux-low.cc (linux_target_ops): Remove.
3002 (initialize_low): Set the_target to the singleton instance of
3003 linux_process_target.
3004 * lynx-low.h (class lynx_process_target): Derive from
3005 'process_stratum_target'.
3006 * lynx-low.cc (lynx_target_ops): Remove.
3007 (initialize_low): Set the_target to the singleton instance of
3008 lynx_process_target.
3009 * nto-low.h (class nto_process_target): Derive from
3010 'process_stratum_target'.
3011 * nto-low.cc (nto_target_ops): Remove.
3012 (initialize_low): Set the_target to the singleton instance of
3013 nto_process_target.
3014 * win32-low.h (class win32_process_target): Derive from
3015 'process_stratum_target'.
3016 * win32-low.cc (win32_target_ops): Remove.
3017 (initialize_low): Set the_target to the singleton instance of
3018 win32_process_target.
3019
3020 Replace 'the_target->pt' with 'the_target' in the uses below.
3021
3022 * hostio.cc (hostio_error)
3023 (handle_setfs)
3024 (handle_open)
3025 (handle_unlink)
3026 (handle_readlink)
3027 * linux-aarch32-low.cc (arm_breakpoint_at)
3028 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3029 * linux-arm-low.cc (arm_sigreturn_next_pc)
3030 (arm_get_hwcap)
3031 (arm_get_syscall_trapinfo)
3032 * linux-cris-low.cc (cris_breakpoint_at)
3033 * linux-crisv32-low.cc (cris_breakpoint_at)
3034 * linux-low.cc (handle_extended_wait)
3035 (linux_wait_1)
3036 (linux_read_memory)
3037 (linux_process_target::breakpoint_kind_from_pc)
3038 (linux_get_auxv)
3039 * linux-m32r-low.cc (m32r_breakpoint_at)
3040 * linux-mips-low.cc (mips_breakpoint_at)
3041 * linux-nios2-low.cc (nios2_breakpoint_at)
3042 * linux-ppc-low.cc (ppc_breakpoint_at)
3043 * linux-s390-low.cc (s390_get_hwcap)
3044 * linux-sh-low.cc (sh_breakpoint_at)
3045 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3046 (sparc_store_gregset_from_stack)
3047 (sparc_breakpoint_at)
3048 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3049 * linux-tile-low.cc (tile_breakpoint_at)
3050 * linux-x86-low.cc (x86_breakpoint_at)
3051 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3052 * mem-break.cc (bp_size)
3053 (bp_opcode)
3054 (insert_memory_breakpoint)
3055 (set_raw_breakpoint_at)
3056 (delete_raw_breakpoint)
3057 (z_type_supported)
3058 (uninsert_raw_breakpoint)
3059 (reinsert_raw_breakpoint)
3060 (validate_inserted_breakpoint)
3061 * regcache.cc (regcache_read_pc)
3062 (regcache_write_pc)
3063 * remote-utils.cc (putpkt_binary_1)
3064 (input_interrupt)
3065 (getpkt)
3066 (prepare_resume_reply)
3067 * server.cc (handle_general_set)
3068 (handle_detach)
3069 (handle_qxfer_auxv)
3070 (handle_qxfer_exec_file)
3071 (handle_qxfer_libraries_svr4)
3072 (handle_qxfer_osdata)
3073 (handle_qxfer_siginfo)
3074 (handle_qxfer_fdpic)
3075 (handle_query)
3076 (resume)
3077 (handle_v_requests)
3078 (queue_stop_reply_callback)
3079 (captured_main)
3080 * target.cc (prepare_to_access_memory)
3081 (done_accessing_memory)
3082 (read_inferior_memory)
3083 (target_write_memory)
3084 (target_stop_and_wait)
3085 (target_wait)
3086 (target_mourn_inferior)
3087 (target_continue_no_signal)
3088 (target_continue)
3089 (target_supports_multi_process)
3090 (kill_inferior)
3091 * target.h
3092 (target_create_inferior)
3093 (target_post_create_inferior)
3094 (myattach)
3095 (target_supports_fork_events)
3096 (target_supports_vfork_events)
3097 (target_supports_exec_events)
3098 (target_handle_new_gdb_connection)
3099 (detach_inferior)
3100 (mythread_alive)
3101 (fetch_inferior_registers)
3102 (store_inferior_registers)
3103 (join_inferior)
3104 (target_supports_non_stop)
3105 (target_async)
3106 (target_process_qsupported)
3107 (target_supports_catch_syscall)
3108 (target_get_ipa_tdesc_idx)
3109 (target_supports_tracepoints)
3110 (target_supports_fast_tracepoints)
3111 (target_get_min_fast_tracepoint_insn_len)
3112 (target_thread_stopped)
3113 (target_pause_all)
3114 (target_unpause_all)
3115 (target_stabilize_threads)
3116 (target_install_fast_tracepoint_jump_pad)
3117 (target_emit_ops)
3118 (target_supports_disable_randomization)
3119 (target_supports_agent)
3120 (target_enable_btrace)
3121 (target_disable_btrace)
3122 (target_read_btrace)
3123 (target_read_btrace_conf)
3124 (target_supports_range_stepping)
3125 (target_supports_stopped_by_sw_breakpoint)
3126 (target_stopped_by_sw_breakpoint)
3127 (target_supports_stopped_by_hw_breakpoint)
3128 (target_supports_hardware_single_step)
3129 (target_stopped_by_hw_breakpoint)
3130 (target_breakpoint_kind_from_pc)
3131 (target_breakpoint_kind_from_current_state)
3132 (target_supports_software_single_step)
3133 (target_core_of_thread)
3134 (target_thread_name)
3135 (target_thread_handle)
3136 * win32-low.cc (do_initial_child_stuff)
3137
3138 Rename target op default definitions listed below.
3139
3140 * target.cc (process_target::post_create_inferior): Rename as ...
3141 (process_stratum_target::post_create_inferior): ... this.
3142 (process_target::prepare_to_access_memory): Rename as ...
3143 (process_stratum_target::prepare_to_access_memory): ... this.
3144 (process_target::done_accessing_memory): Rename as ...
3145 (process_stratum_target::done_accessing_memory): ... this.
3146 (process_target::look_up_symbols): Rename as ...
3147 (process_stratum_target::look_up_symbols): ... this.
3148 (process_target::supports_read_auxv): Rename as ...
3149 (process_stratum_target::supports_read_auxv): ... this.
3150 (process_target::read_auxv): Rename as ...
3151 (process_stratum_target::read_auxv): ... this.
3152 (process_target::supports_z_point_type): Rename as ...
3153 (process_stratum_target::supports_z_point_type): ... this.
3154 (process_target::insert_point): Rename as ...
3155 (process_stratum_target::insert_point): ... this.
3156 (process_target::remove_point): Rename as ...
3157 (process_stratum_target::remove_point): ... this.
3158 (process_target::stopped_by_sw_breakpoint): Rename as ...
3159 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3160 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3161 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3162 (process_target::stopped_by_hw_breakpoint): Rename as ...
3163 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3164 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3165 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3166 (process_target::supports_hardware_single_step): Rename as ...
3167 (process_stratum_target::supports_hardware_single_step): ... this.
3168 (process_target::stopped_by_watchpoint): Rename as ...
3169 (process_stratum_target::stopped_by_watchpoint): ... this.
3170 (process_target::stopped_data_address): Rename as ...
3171 (process_stratum_target::stopped_data_address): ... this.
3172 (process_target::supports_read_offsets): Rename as ...
3173 (process_stratum_target::supports_read_offsets): ... this.
3174 (process_target::read_offsets): Rename as ...
3175 (process_stratum_target::read_offsets): ... this.
3176 (process_target::supports_get_tls_address): Rename as ...
3177 (process_stratum_target::supports_get_tls_address): ... this.
3178 (process_target::get_tls_address): Rename as ...
3179 (process_stratum_target::get_tls_address): ... this.
3180 (process_target::hostio_last_error): Rename as ...
3181 (process_stratum_target::hostio_last_error): ... this.
3182 (process_target::supports_qxfer_osdata): Rename as ...
3183 (process_stratum_target::supports_qxfer_osdata): ... this.
3184 (process_target::qxfer_osdata): Rename as ...
3185 (process_stratum_target::qxfer_osdata): ... this.
3186 (process_target::supports_qxfer_siginfo): Rename as ...
3187 (process_stratum_target::supports_qxfer_siginfo): ... this.
3188 (process_target::qxfer_siginfo): Rename as ...
3189 (process_stratum_target::qxfer_siginfo): ... this.
3190 (process_target::supports_non_stop): Rename as ...
3191 (process_stratum_target::supports_non_stop): ... this.
3192 (process_target::async): Rename as ...
3193 (process_stratum_target::async): ... this.
3194 (process_target::start_non_stop): Rename as ...
3195 (process_stratum_target::start_non_stop): ... this.
3196 (process_target::supports_multi_process): Rename as ...
3197 (process_stratum_target::supports_multi_process): ... this.
3198 (process_target::supports_fork_events): Rename as ...
3199 (process_stratum_target::supports_fork_events): ... this.
3200 (process_target::supports_vfork_events): Rename as ...
3201 (process_stratum_target::supports_vfork_events): ... this.
3202 (process_target::supports_exec_events): Rename as ...
3203 (process_stratum_target::supports_exec_events): ... this.
3204 (process_target::handle_new_gdb_connection): Rename as ...
3205 (process_stratum_target::handle_new_gdb_connection): ... this.
3206 (process_target::handle_monitor_command): Rename as ...
3207 (process_stratum_target::handle_monitor_command): ... this.
3208 (process_target::core_of_thread): Rename as ...
3209 (process_stratum_target::core_of_thread): ... this.
3210 (process_target::supports_read_loadmap): Rename as ...
3211 (process_stratum_target::supports_read_loadmap): ... this.
3212 (process_target::read_loadmap): Rename as ...
3213 (process_stratum_target::read_loadmap): ... this.
3214 (process_target::process_qsupported): Rename as ...
3215 (process_stratum_target::process_qsupported): ... this.
3216 (process_target::supports_tracepoints): Rename as ...
3217 (process_stratum_target::supports_tracepoints): ... this.
3218 (process_target::read_pc): Rename as ...
3219 (process_stratum_target::read_pc): ... this.
3220 (process_target::write_pc): Rename as ...
3221 (process_stratum_target::write_pc): ... this.
3222 (process_target::supports_thread_stopped): Rename as ...
3223 (process_stratum_target::supports_thread_stopped): ... this.
3224 (process_target::thread_stopped): Rename as ...
3225 (process_stratum_target::thread_stopped): ... this.
3226 (process_target::supports_get_tib_address): Rename as ...
3227 (process_stratum_target::supports_get_tib_address): ... this.
3228 (process_target::get_tib_address): Rename as ...
3229 (process_stratum_target::get_tib_address): ... this.
3230 (process_target::pause_all): Rename as ...
3231 (process_stratum_target::pause_all): ... this.
3232 (process_target::unpause_all): Rename as ...
3233 (process_stratum_target::unpause_all): ... this.
3234 (process_target::stabilize_threads): Rename as ...
3235 (process_stratum_target::stabilize_threads): ... this.
3236 (process_target::supports_fast_tracepoints): Rename as ...
3237 (process_stratum_target::supports_fast_tracepoints): ... this.
3238 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3239 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3240 (process_target::emit_ops): Rename as ...
3241 (process_stratum_target::emit_ops): ... this.
3242 (process_target::supports_disable_randomization): Rename as ...
3243 (process_stratum_target::supports_disable_randomization): ... this.
3244 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3245 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3246 (process_target::qxfer_libraries_svr4): Rename as ...
3247 (process_stratum_target::qxfer_libraries_svr4): ... this.
3248 (process_target::supports_agent): Rename as ...
3249 (process_stratum_target::supports_agent): ... this.
3250 (process_target::enable_btrace): Rename as ...
3251 (process_stratum_target::enable_btrace): ... this.
3252 (process_target::disable_btrace): Rename as ...
3253 (process_stratum_target::disable_btrace): ... this.
3254 (process_target::read_btrace): Rename as ...
3255 (process_stratum_target::read_btrace): ... this.
3256 (process_target::read_btrace_conf): Rename as ...
3257 (process_stratum_target::read_btrace_conf): ... this.
3258 (process_target::supports_range_stepping): Rename as ...
3259 (process_stratum_target::supports_range_stepping): ... this.
3260 (process_target::supports_pid_to_exec_file): Rename as ...
3261 (process_stratum_target::supports_pid_to_exec_file): ... this.
3262 (process_target::pid_to_exec_file): Rename as ...
3263 (process_stratum_target::pid_to_exec_file): ... this.
3264 (process_target::supports_multifs): Rename as ...
3265 (process_stratum_target::supports_multifs): ... this.
3266 (process_target::multifs_open): Rename as ...
3267 (process_stratum_target::multifs_open): ... this.
3268 (process_target::multifs_unlink): Rename as ...
3269 (process_stratum_target::multifs_unlink): ... this.
3270 (process_target::multifs_readlink): Rename as ...
3271 (process_stratum_target::multifs_readlink): ... this.
3272 (process_target::breakpoint_kind_from_pc): Rename as ...
3273 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3274 (process_target::breakpoint_kind_from_current_state): Rename as ...
3275 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3276 (process_target::thread_name): Rename as ...
3277 (process_stratum_target::thread_name): ... this.
3278 (process_target::thread_handle): Rename as ...
3279 (process_stratum_target::thread_handle): ... this.
3280 (process_target::supports_software_single_step): Rename as ...
3281 (process_stratum_target::supports_software_single_step): ... this.
3282 (process_target::supports_catch_syscall): Rename as ...
3283 (process_stratum_target::supports_catch_syscall): ... this.
3284 (process_target::get_ipa_tdesc_idx): Rename as ...
3285 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3286
478f9adf
PA
32872020-02-20 Pedro Alves <palves@redhat.com>
3288
3289 * target.cc (set_target_ops): Simply copy the given target pointer
3290 instead of creating a copy of the pointed object.
3291
d633e831
TBA
32922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3293
3294 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3295 of process_target.
3296
3297 * target.h (struct process_stratum_target): Remove the target op.
3298 (class process_target): Add the target op.
3299 (target_get_ipa_tdesc_idx): Update the macro.
3300 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3301
3302 Update the derived classes and callers below.
3303
3304 * linux-low.cc (linux_target_ops): Update.
3305 (linux_get_ipa_tdesc_idx): Turn into ...
3306 (linux_process_target::get_ipa_tdesc_idx): ... this.
3307 * linux-low.h (class linux_process_target): Update.
3308 * lynx-low.cc (lynx_target_ops): Update.
3309 * nto-low.cc (nto_target_ops): Update.
3310 * win32-low.cc (win32_target_ops): Update.
3311
bc8d3ae4
TBA
33122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3313
3314 Turn process_stratum_target's supports_catch_syscall op into a
3315 method of process_target.
3316
3317 * target.h (struct process_stratum_target): Remove the target op.
3318 (class process_target): Add the target op.
3319 (target_supports_catch_syscall): Update the macro.
3320 * target.cc (process_target::supports_catch_syscall): Define.
3321
3322 Update the derived classes and callers below.
3323
3324 * linux-low.cc (linux_target_ops): Update.
3325 (linux_supports_catch_syscall): Turn into ...
3326 (linux_process_target::supports_catch_syscall): ... this.
3327 * linux-low.h (class linux_process_target): Update.
3328 * lynx-low.cc (lynx_target_ops): Update.
3329 * nto-low.cc (nto_target_ops): Update.
3330 * win32-low.cc (win32_target_ops): Update.
3331
5303a34f
TBA
33322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3333
3334 Turn process_stratum_target's supports_software_single_step op
3335 into a method of process_target.
3336
3337 * target.h (struct process_stratum_target): Remove the target op.
3338 (class process_target): Add the target op.
3339 (target_supports_software_single_step): Update the macro.
3340 * target.cc (process_target::supports_software_single_step): Define.
3341
3342 Update the derived classes and callers below.
3343
3344 * linux-low.cc (linux_target_ops): Update.
3345 (linux_supports_software_single_step): Turn into ...
3346 (linux_process_target::supports_software_single_step): ... this.
3347 * linux-low.h (class linux_process_target): Update.
3348 * lynx-low.cc (lynx_target_ops): Update.
3349 * nto-low.cc (nto_target_ops): Update.
3350 * win32-low.cc (win32_target_ops): Update.
3351
7f63b89b
TBA
33522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3353
3354 Turn process_stratum_target's thread_name and thread_handle ops
3355 into methods of process_target.
3356
3357 * target.h (struct process_stratum_target): Remove the target ops.
3358 (class process_target): Add the target ops.
3359 (target_thread_name): Update the macro.
3360 (target_thread_handle): Update the macro.
3361 * target.cc (process_target::thread_name): Define.
3362 (process_target::thread_handle): Define.
3363
3364 Update the derived classes and callers below.
3365
3366 * linux-low.cc (linux_target_ops): Update.
3367 (linux_process_target::thread_name): Define.
3368 (linux_process_target::thread_handle): Define.
3369 * linux-low.h (class linux_process_target): Update.
3370 * lynx-low.cc (lynx_target_ops): Update.
3371 * nto-low.cc (nto_target_ops): Update.
3372 * win32-low.cc (win32_target_ops): Update.
3373
d367006f
TBA
33742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3375
3376 Turn process_stratum_target's breakpoint_kind_from_pc,
3377 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3378 ops into methods of process_target.
3379
3380 * target.h (struct process_stratum_target): Remove the target op.
3381 (class process_target): Add the target op.
3382 (target_breakpoint_kind_from_pc): Update the macro.
3383 (target_breakpoint_kind_from_current_state): Update the macro.
3384 (default_breakpoint_kind_from_pc): Remove declaration.
3385 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3386 (process_target::breakpoint_kind_from_pc): ... this.
3387 (process_target::breakpoint_kind_from_current_state): Define.
3388
3389 Update the derived classes and callers below.
3390
3391 * mem-break.cc (bp_size): Update.
3392 (bp_opcode): Update.
3393 * linux-low.cc (linux_target_ops): Update.
3394 (linux_wait_1): Update.
3395 (linux_breakpoint_kind_from_pc): Turn into ...
3396 (linux_process_target::breakpoint_kind_from_pc): ... this.
3397 (linux_sw_breakpoint_from_kind): Turn into ...
3398 (linux_process_target::sw_breakpoint_from_kind): ... this.
3399 (linux_breakpoint_kind_from_current_state): Turn into ...
3400 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3401 * linux-low.h (class linux_process_target): Update.
3402 * lynx-low.cc (lynx_target_ops): Update.
3403 (lynx_process_target::sw_breakpoint_from_kind): Define.
3404 * lynx-low.h (class lynx_process_target): Update.
3405 * nto-low.cc (nto_target_ops): Update.
3406 (nto_sw_breakpoint_from_kind): Turn into ...
3407 (nto_process_target::sw_breakpoint_from_kind): ... this.
3408 * nto-low.h (class nto_process_target): Update.
3409 * win32-low.cc (win32_target_ops): Update.
3410 (win32_sw_breakpoint_from_kind): Turn into ...
3411 (win32_process_target::sw_breakpoint_from_kind): ... this.
3412 * win32-low.h (class win32_process_target): Update.
3413
c9b7b804
TBA
34142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3415
3416 Turn process_stratum_target's multifs_open, multifs_readlink,
3417 multifs_unlink ops into methods of process_target.
3418
3419 * target.h (struct process_stratum_target): Remove the target ops.
3420 (class process_target): Add the target ops. Also add
3421 'supports_multifs'.
3422 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3423 "sys/stat.h".
3424 (process_target::supports_multifs): Define.
3425 (process_target::multifs_open): Define.
3426 (process_target::multifs_readlink): Define.
3427 (process_target::multifs_unlink): Define.
3428
3429 Update the derived classes and callers below.
3430
3431 * hostio.cc (handle_setfs): Update.
3432 (handle_open): Update.
3433 (handle_unlink): Update.
3434 (handle_readlink): Update.
3435 * linux-low.cc (linux_target_ops): Update.
3436 (linux_process_target::supports_multifs): Define.
3437 (linux_process_target::multifs_open): Define.
3438 (linux_process_target::multifs_readlink): Define.
3439 (linux_process_target::multifs_unlink): Define.
3440 * linux-low.h (class linux_process_target): Update.
3441 * lynx-low.cc (lynx_target_ops): Update.
3442 * nto-low.cc (nto_target_ops): Update.
3443 * win32-low.cc (win32_target_ops): Update.
3444
8247b823
TBA
34452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3446
3447 Turn process_stratum_target's pid_to_exec_file op into a method
3448 of process_target.
3449
3450 * target.h (struct process_stratum_target): Remove the target op.
3451 (class process_target): Add the target op. Also add
3452 'supports_pid_to_exec_file'.
3453 * target.cc (process_target::pid_to_exec_file): Define.
3454 (process_target::supports_pid_to_exec_file): Define.
3455
3456 Update the derived classes and callers below.
3457
3458 * server.cc (handle_qxfer_exec_file): Update.
3459 (handle_query): Update.
3460 * linux-low.cc (linux_target_ops): Update.
3461 (linux_process_target::supports_pid_to_exec_file): Define.
3462 (linux_process_target::pid_to_exec_file): Define.
3463 * linux-low.h (class linux_process_target): Update.
3464 * lynx-low.cc (lynx_target_ops): Update.
3465 * nto-low.cc (nto_target_ops): Update.
3466 * win32-low.cc (win32_target_ops): Update.
3467
2526e0cd
TBA
34682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3469
3470 Turn process_stratum_target's supports_range_stepping op into a
3471 method of process_target.
3472
3473 * target.h (struct process_stratum_target): Remove the target op.
3474 (class process_target): Add the target op.
3475 (target_supports_range_stepping): Update the macro.
3476 * target.cc (process_target::supports_range_stepping): Define.
3477
3478 Update the derived classes and callers below.
3479
3480 * linux-low.cc (linux_target_ops): Update.
3481 (linux_supports_range_stepping): Turn into ...
3482 (linux_process_target::supports_range_stepping): ... this.
3483 * linux-low.h (class linux_process_target): Update.
3484 * lynx-low.cc (lynx_target_ops): Update.
3485 * nto-low.cc (nto_target_ops): Update.
3486 * win32-low.cc (win32_target_ops): Update.
3487
79597bdd
TBA
34882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3489
3490 Turn process_stratum_target's btrace-related ops (enable_btrace,
3491 disable_btrace, read_btrace, read_btrace_conf) into methods of
3492 process_target.
3493
3494 * target.h (struct process_stratum_target): Remove the target ops.
3495 (class process_target): Add the target ops.
3496 (target_enable_btrace): Update.
3497 (target_disable_btrace): Update.
3498 (target_read_btrace): Update.
3499 (target_read_btrace_conf): Update.
3500 * target.cc (process_target::enable_btrace): Define.
3501 (process_target::disable_btrace): Define.
3502 (process_target::read_btrace): Define.
3503 (process_target::read_btrace_conf): Define.
3504
3505 Update the derived classes and callers below.
3506
3507 * linux-low.cc (linux_target_ops): Update.
3508 (linux_process_target:enable_btrace): Define as a wrapper around
3509 linux_enable_btrace.
3510 (linux_low_disable_btrace): Turn into ...
3511 (linux_process_target::disable_btrace): ... this.
3512 (linux_low_read_btrace): Turn into ...
3513 (linux_process_target::read_btrace): ... this.
3514 (linux_low_btrace_conf): Turn into ...
3515 (linux_process_target::read_btrace_conf): ... this.
3516 * linux-low.h (class linux_process_target): Update.
3517 * lynx-low.cc (lynx_target_ops): Update.
3518 * nto-low.cc (nto_target_ops): Update.
3519 * win32-low.cc (win32_target_ops): Update.
3520
c0245cb9
TBA
35212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3522
3523 Turn process_stratum_target's supports_agent op into a method of
3524 process_target.
3525
3526 * target.h (struct process_stratum_target): Remove the target op.
3527 (class process_target): Add the target op.
3528 (target_supports_agent): Update the macro.
3529 * target.cc (process_target::supports_agent): Define.
3530
3531 Update the derived classes and callers below.
3532
3533 * linux-low.cc (linux_target_ops): Update.
3534 (linux_supports_agent): Turn into ...
3535 (linux_process_target::supports_agent): ... this.
3536 * linux-low.h (class linux_process_target): Update.
3537 * lynx-low.cc (lynx_target_ops): Update.
3538 * nto-low.cc (nto_target_ops): Update.
3539 * win32-low.cc (win32_target_ops): Update.
3540
974387bb
TBA
35412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3542
3543 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3544 method of process_target.
3545
3546 * target.h (struct process_stratum_target): Remove the target op.
3547 (class process_target): Add the target op. Also add
3548 'supports_qxfer_libraries_svr4'.
3549 * target.cc (process_target::qxfer_libraries_svr4): Define.
3550 (process_target::supports_qxfer_libraries_svr4): Define.
3551
3552 Update the derived classes and callers below.
3553
3554 * server.cc (handle_qxfer_libraries_svr4): Update.
3555 (handle_query): Update.
3556 * linux-low.cc (linux_target_ops): Update.
3557 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3558 (linux_qxfer_libraries_svr4): Turn into ...
3559 (linux_process_target::qxfer_libraries_svr4): ... this.
3560 * linux-low.h (class linux_process_target): Update.
3561 * lynx-low.cc (lynx_target_ops): Update.
3562 * nto-low.cc (nto_target_ops): Update.
3563 * win32-low.cc (win32_target_ops): Update.
3564
c756403b
TBA
35652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3566
3567 Turn process_stratum_target's supports_disable_randomization op
3568 into a method of process_target.
3569
3570 * target.h (struct process_stratum_target): Remove the target op.
3571 (class process_target): Add the target op.
3572 (target_supports_disable_randomization): Update the macro.
3573 * target.cc (process_target::supports_disable_randomization): Define.
3574
3575 Update the derived classes and callers below.
3576
3577 * linux-low.cc (linux_target_ops): Update.
3578 (linux_supports_disable_randomization): Turn into ...
3579 (linux_process_target::supports_disable_randomization): ... this.
3580 * linux-low.h (class linux_process_target): Update.
3581 * lynx-low.cc (lynx_target_ops): Update.
3582 * nto-low.cc (nto_target_ops): Update.
3583 * win32-low.cc (win32_target_ops): Update.
3584
345dafad
TBA
35852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3586
3587 Turn process_stratum_target's emit_ops op into a method of
3588 process_target.
3589
3590 * target.h (struct process_stratum_target): Remove the target op.
3591 (class process_target): Add the target op.
3592 (target_emit_ops): Update the macro.
3593 * target.cc (process_target::emit_ops): Define.
3594
3595 Update the derived classes and callers below.
3596
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_emit_ops): Turn into ...
3599 (linux_process_target::emit_ops): ... this.
3600 * linux-low.h (class linux_process_target): Update.
3601 * lynx-low.cc (lynx_target_ops): Update.
3602 * nto-low.cc (nto_target_ops): Update.
3603 * win32-low.cc (win32_target_ops): Update.
3604
c23c9391
TBA
36052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3606
3607 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3608 and get_min_fast_tracepoint_insn_len ops into methods of
3609 process_target.
3610
3611 * target.h (struct process_stratum_target): Remove the target ops.
3612 (class process_target): Add the target ops. Also add
3613 'supports_fast_tracepoints'.
3614 (target_supports_fast_tracepoints): Update the macro.
3615 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3616 (install_fast_tracepoint_jump_pad): Update and rename the macro
3617 to ...
3618 (target_install_fast_tracepoint_jump_pad): ... this.
3619 * target.cc (process_target::supports_fast_tracepoints): Define.
3620 (process_target::install_fast_tracepoint_jump_pad): Define.
3621 (process_target::get_min_fast_tracepoint_insn_len): Define.
3622
3623 Update the derived classes and callers below.
3624
3625 * tracepoint.cc (install_fast_tracepoint): Update.
3626 * linux-low.cc (linux_target_ops): Update.
3627 (linux_process_target::supports_fast_tracepoints): Define.
3628 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3629 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3630 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3631 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3632 * linux-low.h (class linux_process_target): Update.
3633 * lynx-low.cc (lynx_target_ops): Update.
3634 * nto-low.cc (nto_target_ops): Update.
3635 * win32-low.cc (win32_target_ops): Update.
3636
5c9eb2f2
TBA
36372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3638
3639 Turn process_stratum_target's stabilize_threads op into a
3640 method of process_target.
3641
3642 * target.h (struct process_stratum_target): Remove the target op.
3643 (class process_target): Add the target op.
3644 (target_stabilize_threads): Update the macro.
3645 * target.cc (process_target::stabilize_threads): Define.
3646
3647 Update the derived classes and callers below.
3648
3649 * server.cc (handle_status): Update.
3650 * tracepoint.cc (cmd_qtdp): Update.
3651 (cmd_qtstart): Update.
3652 * linux-low.cc (linux_target_ops): Update.
3653 (linux_stabilize_threads): Turn into ...
3654 (linux_process_target::stabilize_threads): ... this.
3655 (linux_wait_1): Update.
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
29e8dc09
TBA
36612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3662
3663 Turn process_stratum_target's pause_all and unpause_all ops
3664 into methods of process_target.
3665
3666 * target.h (struct process_stratum_target): Remove the target ops.
3667 (class process_target): Add the target ops.
3668 (pause_all): Update the macro and rename to...
3669 (target_pause_all): ... this.
3670 (unpause_all): Update the macro and rename to...
3671 (target_unpause_all): ... this.
3672 * target.cc (process_target::pause_all): Define.
3673 (process_target::unpause_all): Define.
3674
3675 Update the derived classes and callers below.
3676
3677 * server.cc (handle_status): Update.
3678 * tracepoint.cc (clear_installed_tracepoints): Update.
3679 (cmd_qtdp): Update.
3680 (cmd_qtstart): Update.
3681 (stop_tracing): Update.
3682 (cmd_qtstatus): Update.
3683 (upload_fast_traceframes): Update.
3684 (run_inferior_command): Update.
3685 * linux-low.cc (linux_target_ops): Update.
3686 (linux_pause_all): Turn into ...
3687 (linux_process_target::pause_all): ... this.
3688 (linux_unpause_all): Turn into ...
3689 (linux_process_target::unpause_all): ... this.
3690 (linux_process_target::prepare_to_access_memory): Update.
3691 (linux_process_target::done_accessing_memory): Update.
3692 * linux-low.h (class linux_process_target): Update.
3693 * lynx-low.cc (lynx_target_ops): Update.
3694 * nto-low.cc (nto_target_ops): Update.
3695 * win32-low.cc (win32_target_ops): Update.
3696
4e2e869c
TBA
36972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3698
3699 Turn process_stratum_target's get_tib_address op into a method of
3700 process_target.
3701
3702 * target.h (struct process_stratum_target): Remove the target op.
3703 (class process_target): Add the target op. Also add
3704 'supports_get_tib_address'.
3705 * target.cc (process_target::get_tib_address): Define.
3706 (process_target::supports_get_tib_address): Define.
3707
3708 Update the derived classes and callers below.
3709
3710 * server.cc (handle_query): Update.
3711 * linux-low.cc (win32_target_ops): Update.
3712 * lynx-low.cc (lynx_target_ops): Update.
3713 * nto-low.cc (nto_target_ops): Update.
3714 * win32-low.cc (win32_target_ops): Update.
3715 (win32_process_target::supports_get_tib_address): Define.
3716 (win32_get_tib_address): Turn into ...
3717 (win32_process_target::get_tib_address): ... this.
3718 * win32-low.h (class win32_process_target): Update.
3719
68119632
TBA
37202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3721
3722 Turn process_stratum_target's thread_stopped op into a method of
3723 process_target.
3724
3725 * target.h (struct process_stratum_target): Remove the target op.
3726 (class process_target): Add the target op. Also add
3727 'supports_thread_stopped'.
3728 (target_thread_stopped): Update the macro.
3729 * target.cc (process_target::thread_stopped): Define.
3730 (process_target::supports_thread_stopped): Define.
3731 (prepare_to_access_memory): Update.
3732
3733 Update the derived classes and callers below.
3734
3735 * server.cc (queue_stop_reply_callback): Update.
3736 * linux-low.cc (linux_target_ops): Update.
3737 (linux_process_target::supports_thread_stopped): Define.
3738 (linux_thread_stopped): Turn into ...
3739 (linux_process_target::thread_stopped): ... this.
3740 * linux-low.h (class linux_process_target): Update.
3741 * lynx-low.cc (lynx_target_ops): Update.
3742 * nto-low.cc (nto_target_ops): Update.
3743 * win32-low.cc (win32_target_ops): Update.
3744
770d8f6a
TBA
37452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3746
3747 Turn process_stratum_target's read_pc and write_pc ops into
3748 methods of process_target.
3749
3750 * target.h (struct process_stratum_target): Remove the target ops.
3751 (class process_target): Add the target ops.
3752 * target.cc (process_target::read_pc): Define.
3753 (process_target::write_pc): Define.
3754
3755 Update the derived classes and callers below.
3756
3757 * regcache.cc (regcache_read_pc): Update.
3758 (regcache_write_pc): Update.
3759 * linux-low.cc (linux_target_ops): Update.
3760 (linux_read_pc): Turn into ...
3761 (linux_process_target::read_pc): ... this.
3762 (linux_write_pc): Turn into ...
3763 (linux_process_target::write_pc): ... this.
3764 * linux-low.h (class linux_process_target): Update.
3765 * lynx-low.cc (lynx_target_ops): Update.
3766 * nto-low.cc (nto_target_ops): Update.
3767 * win32-low.cc (win32_target_ops): Update.
3768
290732bf
TBA
37692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3770
3771 Turn process_stratum_target's supports_tracepoints op into a
3772 method of process_target.
3773
3774 * target.h (struct process_stratum_target): Remove the target op.
3775 (class process_target): Add the target op.
3776 (target_supports_tracepoints): Update the macro.
3777 * target.cc (process_target::supports_tracepoints): Define.
3778
3779 Update the derived classes and callers below.
3780
3781 * linux-low.cc (linux_target_ops): Update.
3782 (linux_supports_tracepoints): Turn into ...
3783 (linux_process_target::supports_tracepoints): ... this.
3784 * linux-low.h (class linux_process_target): Update.
3785 * lynx-low.cc (lynx_target_ops): Update.
3786 * nto-low.cc (nto_target_ops): Update.
3787 * win32-low.cc (win32_target_ops): Update.
3788
0df28b1b
TBA
37892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3790
3791 Turn process_stratum_target's process_qsupported op into a method
3792 of process_target.
3793
3794 * target.h (struct process_stratum_target): Remove the target op.
3795 (class process_target): Add the target op.
3796 (target_process_qsupported): Update the macro.
3797 * target.cc (process_target::process_qsupported): Define.
3798
3799 Update the derived classes and callers below.
3800
3801 * linux-low.cc (linux_target_ops): Update.
3802 (linux_process_qsupported): Turn into ...
3803 (linux_process_target::process_qsupported): ... this.
3804 * linux-low.h (class linux_process_target): Update.
3805 * lynx-low.cc (lynx_target_ops): Update.
3806 * nto-low.cc (nto_target_ops): Update.
3807 * win32-low.cc (win32_target_ops): Update.
3808
9da41fda
TBA
38092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3810
3811 Turn process_stratum_target's read_loadmap op into a method of
3812 process_target.
3813
3814 * target.h (struct process_stratum_target): Remove the target op.
3815 (class process_target): Add the target op. Also add
3816 'supports_read_loadmap'.
3817 * target.cc (process_target::read_loadmap): Define.
3818 (process_target::supports_read_loadmap): Define.
3819
3820 Update the derived classes and callers below.
3821
3822 * server.cc (handle_qxfer_fdpic): Update.
3823 (handle_query): Update.
3824 * linux-low.cc (linux_target_ops): Update.
3825 (linux_process_target::supports_read_loadmap): Define.
3826 (linux_read_loadmap): Turn into ...
3827 (linux_process_target::read_loadmap): ... this.
3828 * linux-low.h (class linux_process_target): Update.
3829 * lynx-low.cc (lynx_target_ops): Update.
3830 * nto-low.cc (nto_target_ops): Update.
3831 * win32-low.cc (win32_target_ops): Update.
3832
95a45fc1
TBA
38332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3834
3835 Turn process_stratum_target's core_of_thread op into a method of
3836 process_target.
3837
3838 * target.h (struct process_stratum_target): Remove the target op.
3839 (class process_target): Add the target op.
3840 (target_core_of_thread): Update the macro.
3841 * target.cc (process_target::core_of_thread): Define.
3842
3843 Update the derived classes and callers below.
3844
3845 * linux-low.cc (linux_target_ops): Update.
3846 (linux_process_target::core_of_thread): Define.
3847 * linux-low.h (class linux_process_target): Update.
3848 * lynx-low.cc (lynx_target_ops): Update.
3849 * nto-low.cc (nto_target_ops): Update.
3850 * win32-low.cc (win32_target_ops): Update.
3851
55cf3021
TBA
38522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3853
3854 Turn process_stratum_target's handle_monitor_command op into a
3855 method of process_target.
3856
3857 * target.h (struct process_stratum_target): Remove the target op.
3858 (class process_target): Add the target op.
3859 (target_handle_monitor_command): Update the macro.
3860 * target.cc (process_target::handle_monitor_command): Define.
3861
3862 Update the derived classes and callers below.
3863
3864 * server.cc (handle_query): Update.
3865 * linux-low.cc (linux_target_ops): Update.
3866 (linux_process_target::handle_monitor_command): Define.
3867 * linux-low.h (class linux_process_target): Update.
3868 * lynx-low.cc (lynx_target_ops): Update.
3869 * nto-low.cc (nto_target_ops): Update.
3870 * win32-low.cc (win32_target_ops): Update.
3871
fb00dfce
TBA
38722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3873
3874 Turn process_stratum_target's handle_new_gdb_connection op into a
3875 method of process_target.
3876
3877 * target.h (struct process_stratum_target): Remove the target op.
3878 (class process_target): Add the target op.
3879 (target_handle_new_gdb_connection): Update the macro.
3880 * target.cc (process_target::handle_new_gdb_connection): Define.
3881
3882 Update the derived classes and callers below.
3883
3884 * linux-low.cc (linux_target_ops): Update.
3885 (linux_handle_new_gdb_connection): Turn into ...
3886 (linux_process_target::handle_new_gdb_connection): ... this.
3887 * linux-low.h (class linux_process_target): Update.
3888 * lynx-low.cc (lynx_target_ops): Update.
3889 * nto-low.cc (nto_target_ops): Update.
3890 * win32-low.cc (win32_target_ops): Update.
3891
9690a72a
TBA
38922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3893
3894 Turn process_stratum_target's supports_fork_events,
3895 supports_vfork_events, and supports_exec_events ops into methods
3896 of process_target.
3897
3898 * target.h (struct process_stratum_target): Remove the target ops.
3899 (class process_target): Add the target ops.
3900 (target_supports_fork_events): Update the macro.
3901 (target_supports_vfork_events): Update the macro.
3902 (target_supports_exec_events): Update the macro.
3903 * target.cc (process_target::supports_fork_events): Define.
3904 (process_target::supports_vfork_events): Define.
3905 (process_target::supports_exec_events): Define.
3906
3907 Update the derived classes and callers below.
3908
3909 * linux-low.cc (linux_target_ops): Update.
3910 (linux_supports_fork_events): Turn into ...
3911 (linux_process_target::supports_fork_events): ... this.
3912 (linux_supports_vfork_events): Turn into ...
3913 (linux_process_target::supports_vfork_events): ... this.
3914 (linux_supports_exec_events): Turn into ...
3915 (linux_process_target::supports_exec_events): ... this.
3916 * linux-low.h (class linux_process_target): Update.
3917 * lynx-low.cc (lynx_target_ops): Update.
3918 * nto-low.cc (nto_target_ops): Update.
3919 * win32-low.cc (win32_target_ops): Update.
3920
652aef77
TBA
39212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3922
3923 Turn process_stratum_target's supports_multi_process op into a
3924 method of process_target.
3925
3926 * target.h (struct process_stratum_target): Remove the target op.
3927 (class process_target): Add the target op.
3928 * target.cc (process_target::supports_multi_process): Define.
3929 (target_supports_multi_process): Update.
3930
3931 Update the derived classes and callers below.
3932
3933 * linux-low.cc (linux_target_ops): Update.
3934 (linux_supports_multi_process): Turn into ...
3935 (linux_process_target::supports_multi_process): ... this.
3936 * linux-low.h (class linux_process_target): Update.
3937 * lynx-low.cc (lynx_target_ops): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 * win32-low.cc (win32_target_ops): Update.
3940
0dc587d4
TBA
39412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3942
3943 Turn process_stratum_target's supports_non_stop, async, and
3944 start_non_stop ops into methods of process_target.
3945
3946 * target.h (struct process_stratum_target): Remove the target ops.
3947 (class process_target): Add the target ops.
3948 (target_supports_non_stop): Update the macro.
3949 (target_async): Update the macro.
3950 (start_non_stop): Remove declaration.
3951 * target.cc (process_target::supports_non_stop): Define.
3952 (process_target::async): Define.
3953 (process_target::start_non_stop): Define.
3954 (start_non_stop): Remove.
3955
3956 Update the derived classes and callers below.
3957
3958 * server.cc (handle_qxfer_siginfo): Update.
3959 (handle_query): Update.
3960 * linux-low.cc (linux_target_ops): Update.
3961 (linux_supports_non_stop): Turn into ...
3962 (linux_process_target::supports_non_stop): ... this.
3963 (linux_async): Turn into ...
3964 (linux_process_target::async): ... this.
3965 (linux_start_non_stop): Turn into ...
3966 (linux_process_target::start_non_stop): ... this.
3967 * linux-low.h (class linux_process_target): Update.
3968 * lynx-low.cc (lynx_target_ops): Update.
3969 * nto-low.cc (nto_target_ops): Update.
3970 (nto_supports_non_stop): Remove; rely on the default behavior
3971 instead.
3972 * win32-low.cc (win32_target_ops): Update.
3973
d7abedf7
TBA
39742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3975
3976 Turn process_stratum_target's qxfer_siginfo op into a method of
3977 process_target.
3978
3979 * target.h (struct process_stratum_target): Remove the target op.
3980 (class process_target): Add the target op. Also add
3981 'supports_qxfer_siginfo'.
3982 * target.cc (process_target::qxfer_siginfo): Define.
3983 (process_target::supports_qxfer_siginfo): Define.
3984
3985 Update the derived classes and callers below.
3986
3987 * server.cc (handle_qxfer_siginfo): Update.
3988 (handle_query): Update.
3989 * linux-low.cc (linux_target_ops): Update.
3990 (linux_process_target::supports_qxfer_siginfo): Define.
3991 (linux_xfer_siginfo): Turn into ...
3992 (linux_process_target::qxfer_siginfo): ... this.
3993 * linux-low.h (class linux_process_target): Update.
3994 * lynx-low.cc (lynx_target_ops): Update.
3995 * nto-low.cc (nto_target_ops): Update.
3996 * win32-low.cc (win32_target_ops): Update.
3997
2d0795ee
TBA
39982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3999
4000 Turn process_stratum_target's qxfer_osdata op into a method of
4001 process_target.
4002
4003 * target.h (struct process_stratum_target): Remove the target op.
4004 (class process_target): Add the target op. Also add
4005 'supports_qxfer_osdata'.
4006 * target.cc (process_target::qxfer_osdata): Define.
4007 (process_target::supports_qxfer_osdata): Define.
4008
4009 Update the derived classes and callers below.
4010
4011 * server.cc (handle_qxfer_osdata): Update.
4012 (handle_query): Update.
4013 * linux-low.cc (linux_target_ops): Update.
4014 (linux_process_target::supports_qxfer_osdata): Define.
4015 (linux_qxfer_osdata): Turn into ...
4016 (linux_process_target::qxfer_osdata): ... this.
4017 * linux-low.h (class linux_process_target): Update.
4018 * lynx-low.cc (lynx_target_ops): Update.
4019 * nto-low.cc (nto_target_ops): Update.
4020 * win32-low.cc (win32_target_ops): Update.
4021
ea06bbaa
TBA
40222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4023
4024 Turn process_stratum_target's hostio_last_error op into a
4025 method of process_target.
4026
4027 * target.h (struct process_stratum_target): Remove the target op.
4028 (class process_target): Add the target op.
4029 * target.cc: Add "hostio.h" to includes.
4030 (process_target::hostio_last_error): Define.
4031
4032 Update the derived classes and callers below.
4033
4034 * hostio.cc (hostio_error): Update.
4035 * linux-low.cc: Remove "hostio.h" from includes.
4036 (linux_target_ops): Update.
4037 * lynx-low.cc (lynx_target_ops): Update.
4038 * nto-low.cc (nto_target_ops): Update.
4039 * win32-low.h (class win32_process_target): Update.
4040 * win32-low.cc (win32_target_ops): Update.
4041 (wince_hostio_last_error): Turn into ...
4042 (win32_process_target::hostio_last_error): ... this.
4043
6e3fd7e9
TBA
40442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4045
4046 Turn process_stratum_target's get_tls_address op into a method of
4047 process_target.
4048
4049 * target.h (struct process_stratum_target): Remove the target op.
4050 (class process_target): Add the target op. Also add
4051 'supports_get_tls_address'.
4052 * target.cc (process_target::get_tls_address): Define.
4053 (process_target::supports_get_tls_address): Define.
4054
4055 Update the derived classes and callers below.
4056
4057 * server.cc (handle_query): Update.
4058 * linux-low.cc (linux_target_ops): Update.
4059 (linux_process_target::supports_get_tls_address): Define.
4060 (linux_process_target::get_tls_address): Define.
4061 * linux-low.h (class linux_process_target): Update.
4062 * lynx-low.cc (lynx_target_ops): Update.
4063 * nto-low.cc (nto_target_ops): Update.
4064 * win32-low.cc (win32_target_ops): Update.
4065
5203ae1e
TBA
40662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4067
4068 Turn process_stratum_target's read_offsets op into a method of
4069 process_target.
4070
4071 * target.h (struct process_stratum_target): Remove the target op.
4072 (class process_target): Add the target op. Also add
4073 'supports_read_offsets'.
4074 * target.cc (process_target::read_offsets): Define.
4075 (process_target::supports_read_offsets): Define.
4076
4077 Update the derived classes and callers below.
4078
4079 * server.cc (handle_query): Update.
4080 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4081 (linux_target_ops): Update.
4082 (linux_process_target::supports_read_offsets): Define.
4083 (linux_read_offsets): Turn into ...
4084 (linux_process_target::read_offsets): ... this.
4085 * linux-low.h (class linux_process_target): Update.
4086 * lynx-low.cc (lynx_target_ops): Update.
4087 * nto-low.cc (nto_target_ops): Update.
4088 * win32-low.cc (win32_target_ops): Update.
4089
6eeb5c55
TBA
40902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4091
4092 Turn process_stratum_target's stopped_by_watchpoint and
4093 stopped_data_address ops into methods of process_target.
4094
4095 * target.h (struct process_stratum_target): Remove the target ops.
4096 (class process_target): Add the target ops.
4097 * target.cc (process_target::stopped_by_watchpoint): Define.
4098 (process_target::stopped_data_address): Define.
4099
4100 Update the derived classes and callers below.
4101
4102 * remote-utils.cc (prepare_resume_reply): Update.
4103 * linux-low.cc (linux_target_ops): Update.
4104 (linux_stopped_by_watchpoint): Turn into ...
4105 (linux_process_target::stopped_by_watchpoint): ... this.
4106 (linux_stopped_data_address): Turn into ...
4107 (linux_process_target::stopped_data_address): ... this.
4108 * linux-low.h (class linux_process_target): Update.
4109 * lynx-low.cc (lynx_target_ops): Update.
4110 * nto-low.cc (nto_target_ops): Update.
4111 (nto_stopped_by_watchpoint): Turn into ...
4112 (nto_process_target::stopped_by_watchpoint): ... this.
4113 (nto_stopped_data_address): Turn into ...
4114 (nto_process_target::stopped_data_address): ... this.
4115 * nto-low.h (class nto_process_target): Update.
4116 * win32-low.cc (win32_target_ops): Update.
4117 (win32_stopped_by_watchpoint): Turn into ...
4118 (win32_process_target::stopped_by_watchpoint): ... this.
4119 (win32_stopped_data_address): Turn into ...
4120 (win32_process_target::stopped_data_address): ... this.
4121 * win32-low.h (class win32_process_target): Update.
4122
22aa6223
TBA
41232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4124
4125 Turn process_stratum_target's supports_hardware_single_step op into
4126 a method of process_target.
4127
4128 * target.h (struct process_stratum_target): Remove the target op.
4129 (class process_target): Add the target op.
4130 (target_supports_hardware_single_step): Update the macro.
4131 (target_can_do_hardware_single_step): Remove declaration.
4132 * target.cc (process_target::supports_hardware_single_step): Define.
4133 (target_can_do_hardware_single_step): Remove.
4134
4135 Update the derived classes and callers below.
4136
4137 * linux-low.h (class linux_process_target): Update.
4138 * linux-low.cc (linux_target_ops): Update.
4139 (linux_supports_hardware_single_step): Turn into ...
4140 (linux_process_target::supports_hardware_single_step): ... this.
4141 * lynx-low.h (class lynx_process_target): Update.
4142 * lynx-low.cc (lynx_target_ops): Update.
4143 (lynx_process_target::supports_hardware_single_step): Define.
4144 * nto-low.h (class nto_process_target): Update.
4145 * nto-low.cc (nto_target_ops): Update.
4146 (nto_process_target::supports_hardware_single_step): Define.
4147 * win32-low.h (class win32_process_target): Update.
4148 * win32-low.cc (win32_target_ops): Update.
4149 (win32_process_target::supports_hardware_single_step): Define.
4150
93fe88b2
TBA
41512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4152
4153 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4154 ops into methods of process_target.
4155
4156 * target.h (struct process_stratum_target): Remove the target ops.
4157 (class process_target): Add the target ops.
4158 (target_stopped_by_hw_breakpoint): Update the macro.
4159 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4160 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4161 (process_target::supports_stopped_by_hw_breakpoint): Define.
4162
4163 Update the derived classes and callers below.
4164
4165 * linux-low.cc (linux_target_ops): Update.
4166 (linux_stopped_by_hw_breakpoint): Turn into ...
4167 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4168 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4169 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4170 * linux-low.h (class linux_process_target): Update.
4171 * lynx-low.cc (lynx_target_ops): Update.
4172 * nto-low.cc (nto_target_ops): Update.
4173 * win32-low.cc (win32_target_ops): Update.
4174
84320c4e
TBA
41752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4176
4177 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4178 ops into methods of process_target.
4179
4180 * target.h (struct process_stratum_target): Remove the target ops.
4181 (class process_target): Add the target ops.
4182 (target_stopped_by_sw_breakpoint): Update the macro.
4183 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4184 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4185 (process_target::supports_stopped_by_sw_breakpoint): Define.
4186
4187 Update the derived classes and callers below.
4188
4189 * linux-low.cc (linux_target_ops): Update.
4190 (linux_stopped_by_sw_breakpoint): Turn into ...
4191 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4192 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4193 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4194 * linux-low.h (class linux_process_target): Update.
4195 * lynx-low.cc (lynx_target_ops): Update.
4196 * nto-low.cc (nto_target_ops): Update.
4197 * win32-low.cc (win32_target_ops): Update.
4198
7e0bde70
TBA
41992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4200
4201 Turn process_stratum_target's insert_point and remove_point ops
4202 into methods of process_target.
4203
4204 * target.h (struct process_stratum_target): Remove the target ops.
4205 (class process_target): Add the target ops.
4206 * target.cc (process_target::insert_point): Define.
4207 (process_target::remove_point): Define.
4208
4209 Update the derived classes and callers below.
4210
4211 * mem-break.cc (set_raw_breakpoint_at): Update.
4212 (delete_raw_breakpoint): Update.
4213 (uninsert_raw_breakpoint): Update.
4214 (reinsert_raw_breakpoint): Update.
4215 * linux-low.cc (linux_target_ops): Update.
4216 (linux_insert_point): Turn into ...
4217 (linux_process_target::insert_point): ... this.
4218 (linux_remove_point): Turn into ...
4219 (linux_process_target::remove_point): ... this.
4220 * linux-low.h (class linux_process_target): Update.
4221 * lynx-low.cc (lynx_target_ops): Update.
4222 * nto-low.cc (nto_target_ops): Update.
4223 (nto_insert_point): Turn into ...
4224 (nto_process_target::insert_point): ... this.
4225 (nto_remove_point): Turn into ...
4226 (nto_process_target::remove_point): ... this.
4227 * nto-low.h (class nto_process_target): Update.
4228 * win32-low.cc (win32_target_ops): Update.
4229 (win32_insert_point): Turn into ...
4230 (win32_process_target::insert_point): ... this.
4231 (win32_remove_point): Turn into ...
4232 (win32_process_target::remove_point): ... this.
4233 * win32-low.h (class win32_process_target): Update.
4234
a2b2297a
TBA
42352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4236
4237 Turn process_stratum_target's supports_z_point_type op into a
4238 method of process_target.
4239
4240 * target.h (struct process_stratum_target): Remove the target op.
4241 (class process_target): Add the target op.
4242 * target.cc (process_target::supports_z_point_type): Define.
4243
4244 Update the derived classes and callers below.
4245
4246 * mem-break.cc (z_type_supported): Update.
4247 * linux-low.cc (linux_target_ops): Update.
4248 (linux_supports_z_point_type): Turn into ...
4249 (linux_process_target::supports_z_point_type): ... this.
4250 * linux-low.h (class linux_process_target): Update.
4251 * lynx-low.cc (lynx_target_ops): Update.
4252 * nto-low.cc (nto_target_ops): Update.
4253 (nto_supports_z_point_type): Turn into ...
4254 (nto_process_target::supports_z_point_type): ... this.
4255 * nto-low.h (class nto_process_target): Update.
4256 * win32-low.cc (win32_target_ops): Update.
4257 (win32_supports_z_point_type): Turn into ...
4258 (win32_process_target::supports_z_point_type): ... this.
4259 * win32-low.h (class win32_process_target): Update.
4260
eac215cc
TBA
42612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4262
4263 Turn process_stratum_target's read_auxv op into a method of
4264 process_target.
4265
4266 * target.h (class process_stratum_target): Remove the target op.
4267 (struct process_target): Add the target op. Also add
4268 'supports_read_auxv'.
4269 * target.cc (process_target::read_auxv): Define.
4270 (process_target::supports_read_auxv): Define.
4271
4272 Update the derived classes and callers below.
4273
4274 * server.cc (handle_qxfer_auxv): Update.
4275 (handle_query): Update.
4276 * linux-low.cc (linux_target_ops): Update.
4277 (linux_process_target::supports_read_auxv): Define.
4278 (linux_read_auxv): Turn into ...
4279 (linux_process_target::read_auxv): ... this.
4280 * linux-low.h (class linux_process_target): Update.
4281 * lynx-low.cc (lynx_target_ops): Update.
4282 * nto-low.cc (nto_target_ops): Update.
4283 (nto_process_target::supports_read_auxv): Define.
4284 (nto_read_auxv): Turn into ...
4285 (nto_process_target::read_auxv): ... this.
4286 * nto-low.h (class nto_process_target): Update.
4287 * win32-low.cc (win32_target_ops): Update.
4288
eb497a2a
TBA
42892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4290
4291 Turn process_stratum_target's request_interrupt op into a method of
4292 process_target.
4293
4294 * target.h (struct process_stratum_target): Remove the target op.
4295 (class process_target): Add the target op.
4296
4297 Update the derived classes and callers below.
4298
4299 * remote-utils.cc (putpkt_binary_1): Update.
4300 (input_interrupt): Update.
4301 (getpkt): Update.
4302 * server.cc (handle_v_requests): Update.
4303 * linux-low.cc (linux_target_ops): Update.
4304 (linux_request_interrupt): Turn into ...
4305 (linux_process_target::request_interrupt): ... this.
4306 * linux-low.h (class linux_process_target): Update.
4307 * lynx-low.cc (lynx_target_ops): Update.
4308 (lynx_request_interrupt): Turn into ...
4309 (lynx_process_target::request_interrupt): ... this.
4310 * lynx-low.h (class lynx_process_target): Update.
4311 * nto-low.cc (nto_target_ops): Update.
4312 (nto_request_interrupt): Turn into ...
4313 (nto_process_target::request_interrupt): ... this.
4314 * nto-low.h (class nto_process_target): Update.
4315 * win32-low.cc (win32_target_ops): Update.
4316 (win32_request_interrupt): Turn into ...
4317 (win32_process_target::request_interrupt): ... this.
4318 * win32-low.h (class win32_process_target): Update.
4319
2a31c7aa
TBA
43202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4321
4322 Turn process_stratum_target's look_up_symbols op into a method of
4323 process_target.
4324
4325 * target.h (struct process_stratum_target): Remove the target op.
4326 (class process_target): Add the target op.
4327 * target.cc (process_target::look_up_symbols): Define.
4328
4329 Update the derived classes and callers below.
4330
4331 * server.cc (handle_query): Update.
4332 * linux-low.cc (linux_target_ops): Update.
4333 (linux_look_up_symbols): Turn into ...
4334 (linux_process_target::look_up_symbols): ... this.
4335 * linux-low.h (class linux_process_target): Update.
4336 * lynx-low.cc (lynx_target_ops): Update.
4337 * nto-low.cc (nto_target_ops): Update.
4338 * win32-low.cc (win32_target_ops): Update.
4339
e2558df3
TBA
43402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4341
4342 Turn process_stratum_target's read_memory and write_memory
4343 ops into methods of process_target.
4344
4345 * target.h (struct process_stratum_target): Remove the target ops.
4346 (class process_target): Add the target ops.
4347
4348 Update the derived classes and callers below.
4349
4350 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4351 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4352 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4353 (arm_get_syscall_trapinfo): Update.
4354 * linux-cris-low.cc (cris_breakpoint_at): Update.
4355 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4356 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4357 * linux-mips-low.cc (mips_breakpoint_at): Update.
4358 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4359 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4360 * linux-sh-low.cc (sh_breakpoint_at): Update.
4361 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4362 (sparc_store_gregset_from_stack): Update.
4363 (sparc_breakpoint_at): Update.
4364 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4365 * linux-tile-low.cc (tile_breakpoint_at): Update.
4366 * linux-x86-low.cc (x86_breakpoint_at): Update.
4367 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4368 * mem-brea.cc (insert_memory_breakpoint): Update.
4369 (validate_inserted_breakpoint): Update.
4370 * target.cc (read_inferior_memory): Update.
4371 (target_write_memory): Update.
4372 * linux-low.cc (linux_target_ops): Update.
4373 (linux_read_memory): Make a wrapper around the read_memory target
4374 op call.
4375 (linux_process_target::read_memory): Rename from linux_read_memory.
4376 (linux_write_memory): Turn into ...
4377 (linux_process_target::write_memory): ... this.
4378 * linux-low.h (class linux_process_target): Update.
4379 * lynx-low.cc (lynx_target_ops): Update.
4380 (lynx_read_memory): Turn into ...
4381 (lynx_process_target::read_memory): ... this.
4382 (lynx_write_memory): Turn into ...
4383 (lynx_process_target::write_memory): ... this.
4384 * lynx-low.h (class lynx_process_target): Update.
4385 * nto-low.cc (nto_target_ops): Update.
4386 (nto_read_memory): Turn into ...
4387 (nto_process_target::read_memory): ... this.
4388 (nto_write_memory): Turn into ...
4389 (nto_process_target::write_memory): ... this.
4390 * nto-low.h (class nto_process_target): Update.
4391 * win32-low.cc (win32_target_ops): Update.
4392 (win32_read_inferior_memory): Turn into ...
4393 (win32_process_target::read_memory): ... this.
4394 (win32_write_inferior_memory): Turn into ...
4395 (win32_process_target::write_memory): ... this.
4396 * win32-low.h (class win32_process_target): Update.
4397
79b44087
TBA
43982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4399
4400 Turn process_stratum_target's prepare_to_access_memory and
4401 done_accessing_memory ops into methods of process_target.
4402
4403 * target.h (struct process_stratum_target): Remove the target ops.
4404 (class process_target): Add the target ops.
4405 * target.cc (process_target::prepare_to_access_memory): Define.
4406 (process_target::done_accessing_memory): Define.
4407 (prepare_to_access_memory): Update.
4408 (done_accessing_memory): Update.
4409
4410 Update the derived classes and callers below.
4411
4412 * linux-low.cc (linux_target_ops): Update.
4413 (linux_prepare_to_access_memory): Turn into ...
4414 (linux_process_target::prepare_to_access_memory): ... this.
4415 (linux_done_accessing_memory): Turn into ...
4416 (linux_process_target::done_accessing_memory): ... this.
4417 * linux-low.h (class linux_process_target): Update.
4418 * lynx-low.cc (lynx_target_ops): Update.
4419 * nto-low.cc (nto_target_ops): Update.
4420 * win32-low.cc (win32_target_ops): Update.
4421
a5a4d4cd
TBA
44222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4423
4424 Turn process_stratum_target's fetch_registers and store_registers
4425 ops into methods of process_target.
4426
4427 * target.h (struct process_stratum_target): Remove the target ops.
4428 (class process_target): Add the target ops.
4429 (fetch_inferior_registers): Update the macro.
4430 (store_inferior_registers): Update the macro.
4431
4432 Update the derived classes and callers below.
4433
4434 * linux-low.cc (linux_target_ops): Update.
4435 (linux_fetch_registers): Turn into ...
4436 (linux_process_target::fetch_registers): ... this.
4437 (linux_store_registers): Turn into ...
4438 (linux_process_target::store_registers): ... this.
4439 * linux-low.h (class linux_process_target): Update.
4440 * lynx-low.cc (lynx_target_ops): Update.
4441 (lynx_fetch_registers): Turn into ...
4442 (lynx_process_target::fetch_registers): ... this.
4443 (lynx_store_registers): Turn into ...
4444 (lynx_process_target::store_registers): ... this.
4445 * lynx-low.h (class lynx_process_target): Update.
4446 * nto-low.cc (nto_target_ops): Update.
4447 (nto_fetch_registers): Turn into ...
4448 (nto_process_target::fetch_registers): ... this.
4449 (nto_store_registers): Turn into ...
4450 (nto_process_target::store_registers): ... this.
4451 * nto-low.h (class nto_process_target): Update.
4452 * win32-low.cc (win32_target_ops): Update.
4453 (win32_fetch_inferior_registers): Turn into ...
4454 (win32_process_target::fetch_registers): ... this.
4455 (win32_store_inferior_registers): Turn into ...
4456 (win32_process_target::store_registers): ... this.
4457 * win32-low.h (class win32_process_target): Update.
4458
6532e7e3
TBA
44592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4460
4461 Turn process_stratum_target's wait op into a method of
4462 process_target.
4463
4464 * target.h (struct process_stratum_target): Remove the target op.
4465 (class process_target): Add the target op.
4466
4467 Update the derived classes and callers below.
4468
4469 * target.cc (target_wait): Update.
4470 * linux-low.cc (linux_target_ops): Update.
4471 (linux_wait): Turn into ...
4472 (linux_process_target::wait): ... this.
4473 * linux-low.h (class linux_process_target): Update.
4474 * lynx-low.cc (lynx_target_ops): Update.
4475 (lynx_wait): Turn into ...
4476 (lynx_process_target::wait): ... this.
4477 * lynx-low.h (class lynx_process_target): Update.
4478 * nto-low.cc (nto_target_ops): Update.
4479 (nto_wait): Turn into ...
4480 (nto_process_target::wait): ... this.
4481 * nto-low.h (class nto_process_target): Update.
4482 * win32-low.cc (win32_target_ops): Update.
4483 (win32_wait): Turn into ...
4484 (win32_process_target::wait): ... this.
4485 (do_initial_child_stuff): Update.
4486 * win32-low.h (class win32_process_target): Update.
4487
0e4d7e35
TBA
44882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4489
4490 Turn process_stratum_target's resume op into a method of
4491 process_target.
4492
4493 * target.h (struct process_stratum_target): Remove the target op.
4494 (class process_target): Add the target op.
4495
4496 Update the derived classes and callers below.
4497
4498 * server.cc (resume): Update.
4499 * target.cc (target_stop_and_wait): Update.
4500 (target_continue_no_signal): Update.
4501 (target_continue): Update.
4502 * linux-low.cc (linux_target_ops): Update.
4503 (linux_resume): Turn into ...
4504 (linux_process_target::resume): ... this.
4505 * linux-low.h (class linux_process_target): Update.
4506 * lynx-low.cc (lynx_target_ops): Update.
4507 (lynx_resume): Turn into ...
4508 (lynx_process_target::resume): ... this.
4509 * lynx-low.h (class lynx_process_target): Update.
4510 * nto-low.cc (nto_target_ops): Update.
4511 (nto_resume): Turn into ...
4512 (nto_process_target::resume): ... this.
4513 * nto-low.h (class nto_process_target): Update.
4514 * win32-low.cc (win32_target_ops): Update.
4515 (win32_resume): Turn into ...
4516 (win32_process_target::resume): ... this.
4517 (win32_process_target::detach): Update.
4518 (do_initial_child_stuff): Update.
4519 * win32-low.h (class win32_process_target): Update.
4520
13d3d99b
TBA
45212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4522
4523 Turn process_stratum_target's thread_alive op into a method of
4524 process_target.
4525
4526 * target.h (struct process_stratum_target): Remove the target op.
4527 (class process_target): Add the target op.
4528 (mythread_alive): Update the macro.
4529
4530 Update the derived classes and callers below.
4531
4532 * linux-low.cc (linux_target_ops): Update.
4533 (linux_thread_alive): Turn into ...
4534 (linux_process_target::thread_alive): ... this.
4535 (wait_for_sigstop): Update.
4536 * linux-low.h (class linux_process_target): Update.
4537 * lynx-low.cc (lynx_target_ops): Update.
4538 (lynx_thread_alive): Turn into ...
4539 (lynx_process_target::thread_alive): ... this.
4540 * lynx-low.h (class lynx_process_target): Update.
4541 * nto-low.cc (nto_target_ops): Update.
4542 (nto_thread_alive): Turn into ...
4543 (nto_process_target::thread_alive): ... this.
4544 * nto-low.h (class nto_process_target): Update.
4545 * win32-low.cc (win32_target_ops): Update.
4546 (win32_thread_alive): Turn into ...
4547 (win32_process_target::thread_alive): ... this.
4548 * win32-low.h (class win32_process_target): Update.
4549
95a49a39
TBA
45502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4551
4552 Turn process_stratum_target's join op into a method of
4553 process_target.
4554
4555 * target.h (struct process_stratum_target): Remove the target op.
4556 (class process_target): Add the target op.
4557 (join_inferior): Update the macro.
4558
4559 Update the derived classes and callers below.
4560
4561 * linux-low.cc (linux_target_ops): Update.
4562 (linux_join): Turn into ...
4563 (linux_process_target::join): ... this.
4564 * linux-low.h (class linux_process_target): Update.
4565 * lynx-low.cc (lynx_target_ops): Update.
4566 (lynx_join): Turn into ...
4567 (lynx_process_target::join): ... this.
4568 * lynx-low.h (class lynx_process_target): Update.
4569 * nto-low.cc (nto_target_ops): Update.
4570 (nto_process_target::join): Define.
4571 * nto-low.h (class nto_process_target): Update.
4572 * win32-low.cc (win32_target_ops): Update.
4573 (win32_join): Turn into ...
4574 (win32_process_target::join): ... this.
4575 * win32-low.h (class win32_process_target): Update.
4576
8adb37b9
TBA
45772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4578
4579 Turn process_stratum_target's mourn 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
4585 Update the derived classes and callers below.
4586
4587 * target.cc (target_mourn_inferior): Update.
4588 * linux-low.cc (linux_target_ops): Update.
4589 (linux_mourn): Turn into ...
4590 (linux_process_target::mourn): ... this.
4591 (handle_extended_wait): Update.
4592 (linux_process_target::kill): Update.
4593 (linux_process_target::detach): Update.
4594 * linux-low.h (class linux_process_target): Update.
4595 * lynx-low.cc (lynx_target_ops): Update.
4596 (lynx_mourn): Turn into ...
4597 (lynx_process_target::mourn): ... this.
4598 * lynx-low.h (class lynx_process_target): Update.
4599 * nto-low.cc (nto_target_ops): Update.
4600 (nto_mourn): Turn into ...
4601 (nto_process_target::mourn): ... this.
4602 * nto-low.h (class nto_process_target): Update.
4603 * win32-low.cc (win32_target_ops): Update.
4604 (win32_mourn): Turn into ...
4605 (win32_process_target::mourn): ... this.
4606 * win32-low.h (class win32_process_target): Update.
4607
9061c9cf
TBA
46082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4609
4610 Turn process_stratum_target's detach op into a method of
4611 process_target.
4612
4613 * target.h (struct process_stratum_target): Remove the target op.
4614 (class process_target): Add the target op.
4615 (detach_inferior): Update the macro.
4616
4617 Update the derived classes and callers below.
4618
4619 * linux-low.cc (linux_target_ops): Update.
4620 (linux_detach): Turn into ...
4621 (linux_process_target::detach): ... this.
4622 * linux-low.h (class linux_process_target): Update.
4623 * lynx-low.cc (lynx_target_ops): Update.
4624 (lynx_detach): Turn into ...
4625 (lynx_process_target::detach): ... this.
4626 * lynx-low.h (class lynx_process_target): Update.
4627 * nto-low.cc (nto_target_ops): Update.
4628 (nto_detach): Turn into ...
4629 (nto_process_target::detach): ... this.
4630 * nto-low.h (class nto_process_target): Update.
4631 * win32-low.cc (win32_target_ops): Update.
4632 (win32_detach): Turn into ...
4633 (win32_process_target::detach): ... this.
4634 * win32-low.h (class win32_process_target): Update.
4635
c6885a57
TBA
46362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4637
4638 Turn process_stratum_target's kill op into a method of
4639 process_target.
4640
4641 * target.h (struct process_stratum_target): Remove the target op.
4642 (class process_target): Add the target op.
4643
4644 Update the derived classes and callers below.
4645
4646 * target.cc (kill_inferior): Update.
4647 * linux-low.cc (linux_target_ops): Update.
4648 (linux_kill): Turn into ...
4649 (linux_process_target::kill): ... this.
4650 * linux-low.h (class linux_process_target): Update.
4651 * lynx-low.cc (lynx_target_ops): Update.
4652 (lynx_kill): Turn into ...
4653 (lynx_process_target::kill): ... this.
4654 * lynx-low.h (class lynx_process_target): Update.
4655 * nto-low.cc (nto_target_ops): Update.
4656 (nto_kill): Turn into ...
4657 (nto_process_target::kill): ... this.
4658 * nto-low.h (class nto_process_target): Update.
4659 * win32-low.cc (win32_target_ops): Update.
4660 (win32_kill): Turn into ...
4661 (win32_process_target::kill): ... this.
4662 * win32-low.h (class win32_process_target): Update.
4663
ef03dad8
TBA
46642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4665
4666 Turn process_stratum_target's attach 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 (myattach): Update the macro.
4672
4673 Update the derived classes and callers below.
4674
4675 * linux-low.cc (linux_target_ops): Update.
4676 (linux_attach): Turn into ...
4677 (linux_process_target::attach): ... this.
4678 * linux-low.h (class linux_process_target): Update.
4679 * lynx-low.cc (lynx_target_ops): Update.
4680 (lynx_attach): Turn into ...
4681 (lynx_process_target::attach): ... this.
4682 * lynx-low.h (class lynx_process_target): Update.
4683 * nto-low.cc (nto_target_ops): Update.
4684 (nto_attach): Turn into ...
4685 (nto_process_target::attach): ... this.
4686 * nto-low.h (class nto_process_target): Update.
4687 * win32-low.cc (win32_target_ops): Update.
4688 (win32_attach): Turn into ...
4689 (win32_process_target::attach): ... this.
4690 * win32-low.h (class win32_process_target): Update.
4691
6dee9afb
TBA
46922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4693
4694 Turn process_stratum_target's post_create_inferior op into a method
4695 of process_target.
4696
4697 * target.h (struct process_stratum_target): Remove the target op.
4698 (class process_target): Add the target op.
4699 (target_post_create_inferior): Update the macro.
4700 * target.cc (process_target::post_create_inferior): Define.
4701
4702 Update the derived classes and callers below.
4703
4704 * linux-low.cc (linux_target_ops): Update.
4705 (linux_post_create_inferior): Turn into ...
4706 (linux_process_target::post_create_inferior): ... this.
4707 * linux-low.h (class linux_process_target): Update.
4708 * lynx-low.cc (lynx_target_ops): Update.
4709 * nto-low.cc (nto_target_ops): Update.
4710 * win32-low.cc (win32_target_ops): Update.
4711
15295543
TBA
47122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4713
4714 Turn process_stratum_target's create_inferior op into a method of
4715 process_target.
4716
4717 * target.h (struct process_stratum_target): Remove the target op.
4718 (class process_target): Add the target op.
4719 (create_inferior): Rename the macro to ...
4720 (target_create_inferior): ... this.
4721
4722 Update the derived classes and callers below.
4723
4724 * server.cc (handle_v_run): Update.
4725 (captured_main): Update.
4726 (process_serial_event): Update.
4727 * linux-low.cc (linux_target_ops): Update.
4728 (linux_create_inferior): Turn into ...
4729 (linux_process_target::create_inferior): ... this.
4730 * linux-low.h (class linux_process_target): Update.
4731 * lynx-low.cc (lynx_target_ops): Update.
4732 (lynx_create_inferior): Turn into ...
4733 (lynx_process_target::create_inferior): ... this.
4734 * lynx-low.h (class lynx_process_target): Update.
4735 * nto-low.cc (nto_target_ops): Update.
4736 (nto_create_inferior): Turn into ...
4737 (nto_process_target::create_inferior): ... this.
4738 * nto-low.h (class nto_process_target): Update.
4739 * win32-low.cc (win32_target_ops): Update.
4740 (win32_create_inferior): Turn into ...
4741 (win32_process_target::create_inferior): ... this.
4742 * win32-low.h (class win32_process_target): Update.
4743
5ef9273d
TBA
47442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4745
4746 * target.h (class process_target): New class definition.
4747 (struct process_stratum_target) <pt>: New field with type
4748 'process_target*'.
4749 * linux-low.h (class linux_process_target): Define as a derived
4750 class of 'process_target'.
4751 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4752 as the 'pt' field.
4753 * lynx-low.h (class lynx_process_target): Define as a derived
4754 class of 'process_target'.
4755 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4756 as the 'pt' field.
4757 * nto-low.h (class nto_process_target): Define as a derived
4758 class of 'process_target'.
4759 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4760 as the 'pt' field.
4761 * win32-low.h (class win32_process_target): Define as a derived
4762 class of 'process_target'.
4763 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4764 as the 'pt' field.
4765
9f1528a1
AB
47662020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4767
4768 * configure: Regenerate.
4769
bf84f706
MR
47702020-02-19 Maciej W. Rozycki <macro@wdc.com>
4771 Andrew Burgess <andrew.burgess@embecosm.com>
4772
4773 * linux-riscv-low.cc: New file.
4774 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4775 and nat/riscv-linux-tdesc.c.
4776 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4777 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4778 Define.
4779
1a627e7e
TT
47802020-02-14 Tom Tromey <tom@tromey.com>
4781
4782 * acinclude.m4: Don't include acx_configure_dir.m4.
4783 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4784 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4785 (all, install-only, uninstall, clean-info, clean)
4786 (maintainer-clean): Don't recurse.
4787 (subdir_do, all-lib): Remove.
4788 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4789 (GNULIB_H): Remove.
4790 (generated_files): Update.
4791 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4792 * configure: Rebuild.
4793 * configure.ac: Don't configure gnulib or libiberty.
4794 (GNULIB): Update.
4795
a9b34532
EZ
47962020-02-14 Eli Zaretskii <eliz@gnu.org>
4797
4798 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4799 preparing the command line for CreateProcess.
4800 (win32_create_inferior): Reflect the program name in debugging
4801 output that shows the process and its command line.
4802
feacfcac
SM
48032020-02-13 Simon Marchi <simon.marchi@efficios.com>
4804
4805 * Makefile.in: Rename source files from .c to .cc.
4806 * %.c: Rename to %.cc.
4807 * configure.ac: Rename server.c to server.cc.
4808 * configure: Re-generate.
4809
06b3c5bd
SM
48102020-02-13 Simon Marchi <simon.marchi@efficios.com>
4811
4812 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4813
052793ad
HD
48142020-02-12 Hannes Domani <ssbssa@yahoo.de>
4815
4816 * win32-low.c (win32_create_inferior): Set signal_pid.
4817
f20e3e82
MR
48182020-02-12 Maciej W. Rozycki <macro@wdc.com>
4819 Pedro Alves <palves@redhat.com>
4820
4821 Skip building gdbserver in a cross-configuration.
4822 * configure.srv: Set $gdbserver_host depending on whether $target
4823 is $host. Use $gdbserver_host instead of $host.
4824
8ddd8e0e
SM
48252020-02-11 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * configure: Re-generate.
4828
898e7f60
SM
48292020-02-11 Simon Marchi <simon.marchi@efficios.com>
4830
4831 * configure: Re-generate.
4832
58df732b
SM
48332020-02-11 Simon Marchi <simon.marchi@efficios.com>
4834
4835 * acinclude.m4: Update warning.m4 path.
4836
7928d571
HD
48372020-02-09 Hannes Domani <ssbssa@yahoo.de>
4838
4839 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4840 (handle_exception): Set siginfo_er.
4841 (win32_xfer_siginfo): New function.
4842
919adfe8
TT
48432020-02-07 Tom Tromey <tom@tromey.com>
4844 Pedro Alves <palves@redhat.com>
4845
4846 * README: Update build documentation.
4847 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4848 host, not target.
4849 * configure.ac: Update paths.
4850 * configure: Rebuild.
4851 * acinclude.m4: Update paths.
4852 * Makefile.in: Update include paths.
4853 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4854 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4855 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4856 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4857 (%-generated.c): Update paths.
4858 * Move entire directory from ../gdb/gdbserver.
4859
287c844a
MR
48602020-01-29 Maciej W. Rozycki <macro@wdc.com>
4861
4862 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4863
548a204f
PFC
48642020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4865
4866 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4867 assignment instead of srv_linux_obj.
4868
a2236a08
HD
48692020-01-28 Hannes Domani <ssbssa@yahoo.de>
4870
4871 * server.c (handle_qxfer_libraries): Write segment-address with
4872 paddress.
4873
bdaed379
HD
48742020-01-24 Hannes Domani <ssbssa@yahoo.de>
4875
4876 * Makefile.in (install-strip): New target.
4877 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4878 * aclocal.m4: Regenerate.
4879 * configure: Regenerate.
4880 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4881
42cd72aa
MR
48822020-01-24 Maciej W. Rozycki <macro@wdc.com>
4883
4884 * Makefile.in (SFILES): Adjust paths to point to real files.
4885 (OBS): Move waitstatus.o to target/waitstatus.o.
4886 (TAGS): Transform paths appropriately.
4887 (%.o): Rename to...
4888 (nat/%.o): ... this pattern rule.
4889 (%.o): Rename to...
4890 (target/%.o): ... this pattern rule.
4891 * configure.srv: Adjust paths throughout to include nat/ prefix
4892 with the revant files.
4893 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4894 * configure: Regenerate.
4895
42ba50ec
MR
48962020-01-24 Maciej W. Rozycki <macro@wdc.com>
4897
4898 * Makefile.in (TAGS): Remove config files from the recipe.
4899
05ea2a05
TT
49002020-01-14 Tom Tromey <tom@tromey.com>
4901
4902 * configure: Rebuild.
4903 * configure.ac: Remove any checks that were added to common.m4.
4904 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4905 lib-link.m4.
4906
01027315
TT
49072020-01-14 Tom Tromey <tom@tromey.com>
4908
4909 * server.h: Include config.h.
4910 * gdbreplay.c: Include config.h.
4911 * configure: Rebuild.
4912 * configure.ac: Don't source common.host.
4913 * acinclude.m4: Update path.
4914 * Makefile.in (INCSUPPORT): New variable.
4915 (INCLUDE_CFLAGS): Add INCSUPPORT.
4916 (SFILES): Update paths.
4917 (version-generated.c): Update path to create-version.sh.
4918 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4919
b2ceabe8
TT
49202020-01-14 Tom Tromey <tom@tromey.com>
4921
4922 * configure.ac (LIBS): Use WIN32APILIBS.
4923 (USE_WIN32API): Don't define.
4924 * configure: Rebuild.
4925
25c51f71
TT
49262020-01-14 Tom Tromey <tom@tromey.com>
4927
4928 * configure: Rebuild.
4929
c0bd321d
SM
49302020-01-13 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * Makefile.in (%-generated.c): Remove rule for files from
4933 regformats/i386.
4934
bb564c58
SM
49352020-01-13 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * configure: Re-generate.
4938
6e37c371
SM
49392020-01-13 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4942 Define to static.
4943 * tracepoint.c (stop_tracing, flush_trace_buffer,
4944 about_to_request_buffer_space, get_trace_state_variable_value,
4945 set_trace_state_variable_value, gdb_collect): Add declaration.
4946
df4a0200
SM
49472020-01-13 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4950 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4951 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4952 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4953 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4954 static.
4955
89e94ec9
SM
49562020-01-13 Simon Marchi <simon.marchi@efficios.com>
4957
4958 * inferiors.c: Include gdbsupport/common-inferior.h.
4959
2552728a
SM
49602020-01-13 Simon Marchi <simon.marchi@efficios.com>
4961
4962 * hostio-errno.c: Include hostio.h.
4963
4025fa09
SM
49642020-01-13 Simon Marchi <simon.marchi@efficios.com>
4965
4966 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4967 prerequisite.
4968
c0b0a142
SM
49692020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4970
4971 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4972 * linux-arm-tdesc.h: Include arch/arm.h.
4973
bb1183e2
SM
49742020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4975
4976 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4977
f5df0b5f
SM
49782020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4979
4980 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4981 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4982
5b6d1e4f
PA
49832020-01-10 Pedro Alves <palves@redhat.com>
4984
4985 * fork-child.c (post_fork_inferior): Pass target down to
4986 startup_inferior.
4987 * inferiors.c (switch_to_thread): Add process_stratum_target
4988 parameter.
4989 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4990 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4991 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4992 * remote-utils.c (prepare_resume_reply): Pass the target to
4993 switch_to_thread.
4994 * target.c (the_target): Now a process_stratum_target.
4995 (done_accessing_memory): Pass the target to switch_to_thread.
4996 (set_target_ops): Ajust to use process_stratum_target.
4997 * target.h (struct target_ops): Rename to ...
4998 (struct process_stratum_target): ... this.
4999 (the_target, set_target_ops): Adjust.
5000 (prepare_to_access_memory): Adjust comment.
5001 * win32-low.c (child_xfer_memory): Adjust to use
5002 process_stratum_target.
5003 (win32_target_ops): Now a process_stratum_target.
5004
559e7e50
EZ
50052020-01-06 Eli Zaretskii <eliz@gnu.org>
5006 Pedro Alves <palves@redhat.com>
5007
5008 * win32-low.c (get_child_debug_event): Extract the fatal exception
5009 from the exit status and convert to the equivalent Posix signal
5010 number.
5011 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5012 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5013
48189bec
HD
50142020-01-01 Hannes Domani <ssbssa@yahoo.de>
5015
5016 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5017
5dd8bf88
JB
50182020-01-01 Joel Brobecker <brobecker@adacore.com>
5019
5020 * server.c (gdbserver_version): Change copyright year to 2020.
5021 * gdbreplay.c (gdbreplay_version): Likewise.
5022
0ad6b8ee
CB
50232019-12-19 Christian Biesinger <cbiesinger@google.com>
5024
5025 * configure: Regenerate.
5026 * configure.ac: Quote variable arguments of test.
5027
1ee7b812
BE
50282019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5029
5030 * Makefile.in: Fix build with GNU Make 3.81
5031
d9fa87f4
TT
50322019-12-16 Tom Tromey <tromey@adacore.com>
5033
5034 * server.c (get_exec_file): Constify result.
5035
ab7d13f0
CB
50362019-12-10 Christian Biesinger <cbiesinger@google.com>
5037
5038 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5039 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5040 * config.in: Regenerate.
5041 * configure: Regenerate.
5042 * configure.ac: Don't check for strerror.
5043 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5044 Call safe_strerror instead of strerror.
5045 * server.h (strerror): Remove this now-unnecessary declaration.
5046 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5047 strerror.
5048 (gdb_agent_helper_thread): Likewise.
5049 * utils.c (perror_with_name): Likewise.
5050
4da8c3a8
TT
50512019-11-26 Tom Tromey <tom@tromey.com>
5052
5053 * configure, config.in: Rebuild.
5054
21987b9c
TT
50552019-11-26 Tom Tromey <tom@tromey.com>
5056
5057 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5058 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5059 gdb_sigmask.
5060 * configure, config.in: Rebuild.
5061
5e030278
TT
50622019-11-26 Tom Tromey <tom@tromey.com>
5063
5064 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5065 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5066 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5067 * acinclude.m4: Include ax_pthread.m4.
5068 * config.in, configure: Rebuild.
5069
6d91ce9a
CB
50702019-11-26 Christian Biesinger <cbiesinger@google.com>
5071
5072 * debug.c (debug_set_output): Call safe_strerror instead of
5073 strerror.
5074 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5075 (linux_kill_one_lwp): Likewise.
5076 (linux_detach_one_lwp): Likewise.
5077 (linux_wait_for_event_filtered): Likewise.
5078 (store_register): Likewise.
5079 * lynx-low.c (lynx_attach): Likewise.
5080 * mem-break.c (insert_memory_breakpoint): Likewise.
5081 (remove_memory_breakpoint): Likewise.
5082 (delete_fast_tracepoint_jump): Likewise.
5083 (set_fast_tracepoint_jump): Likewise.
5084 (uninsert_fast_tracepoint_jumps_at): Likewise.
5085 (reinsert_fast_tracepoint_jumps_at): Likewise.
5086 * nto-low.c (nto_xfer_memory): Likewise.
5087 (nto_resume): Likewise.
5088
6cdd651f
LM
50892019-11-20 Luis Machado <luis.machado@linaro.org>
5090
5091 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5092 instead of register count.
5093 * tdesc.c (tdesc_contains_feature): New function.
5094 * tdesc.h (tdesc_contains_feature): New prototype.
5095
cd850b40
CB
50962019-11-15 Christian Biesinger <cbiesinger@google.com>
5097
5098 * Makefile.in: Add safe-strerror.c.
5099 * configure: Regenerate.
5100 * configure.ac: Don't source common.host.
5101
5abebf3c
CB
51022019-11-15 Christian Biesinger <cbiesinger@google.com>
5103
5104 * config.in: Regenerate.
5105 * configure: Regenerate.
5106
e06f3d6e
AB
51072019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5108
5109 * ax.c (ax_printf): Handle size_t_arg.
5110
ca3a04f6
CB
51112019-11-06 Christian Biesinger <cbiesinger@google.com>
5112
5113 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5114 * mi/mi-main.c (output_cores): Likewise.
5115 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5116 (linux_xfer_osdata_modules): Likewise.
5117 * remote.c (register_remote_support_xml): Likewise.
5118 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5119 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5120
e48f6033
CB
51212019-11-01 Christian Biesinger <cbiesinger@google.com>
5122
5123 * configure: Regenerate.
5124 * configure.ac: Remove check for strerror_r.
5125
e7e97a2e
CB
51262019-10-31 Christian Biesinger <cbiesinger@google.com>
5127
5128 * config.in: Regenerate.
5129 * configure: Regenerate.
5130 * configure.ac: Also check for strerror_r.
5131
75cafaa6
CB
51322019-10-31 Christian Biesinger <cbiesinger@google.com>
5133
5134 * ax.h (debug_agent): Remove duplicate declaration.
5135
30baf67b
TV
51362019-10-26 Tom de Vries <tdevries@suse.de>
5137
5138 * linux-aarch64-low.c: Fix typos in comments.
5139 * linux-arm-low.c: Same.
5140 * linux-low.c: Same.
5141 * linux-ppc-low.c: Same.
5142 * proc-service.c: Same.
5143 * regcache.h: Same.
5144 * server.c: Same.
5145 * tracepoint.c: Same.
5146 * win32-low.c: Same.
5147
52c64cf7
TT
51482019-10-25 Tom Tromey <tromey@adacore.com>
5149
5150 * utils.c (xstrdup): Remove.
5151
c12d372d
TT
51522019-10-23 Tom Tromey <tom@tromey.com>
5153
5154 * configure, config.in: Rebuild.
5155
4d0b984b
TT
51562019-10-23 Tom Tromey <tom@tromey.com>
5157
5158 * configure: Rebuild.
5159 * acinclude.m4: Use m4_include, not sinclude.
5160
c5adaa19
TT
51612019-10-17 Tom Tromey <tromey@adacore.com>
5162
5163 * configure: Rebuild.
5164 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5165 in AC_CONFIG_FILES invocation.
5166 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5167 invocation.
5168
fec4e896
CB
51692019-10-16 Christian Biesinger <cbiesinger@google.com>
5170
5171 * server.c: Include xml-builtin.h.
5172 (get_xml_features): Don't declare xml_builtins here.
5173
00975ff6
AB
51742019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5175
5176 * Makefile.in: Remove references to vec-ipa.o.
5177
0dc32745
AB
51782019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5179
5180 * Makefile.in: Remove references to vec.c.
5181
3e6ec53a
CB
51822019-10-02 Christian Biesinger <cbiesinger@google.com>
5183
5184 * server.c (server_waiting): Change to bool.
5185 (extended_protocol): Likewise.
5186 (response_needed): Likewise.
5187 (exit_requested): Likewise.
5188 (run_once): Likewise.
5189 (report_no_resumed): Likewise.
5190 (non_stop): Likewise.
5191 (disable_packet_vCont): Likewise.
5192 (disable_packet_Tthread): Likewise.
5193 (disable_packet_qC): Likewise.
5194 (disable_packet_qfThreadInfo): Likewise.
5195 (handle_general_set): Update.
5196 (handle_detach): Update.
5197 (handle_monitor_command): Update.
5198 (handle_query): Update.
5199 (captured_main): Update.
5200 (process_serial_event): Update.
5201 * server.h (server_waiting): Change to bool.
5202 (disable_packet_vCont): Likewise.
5203 (disable_packet_Tthread): Likewise.
5204 (disable_packet_qC): Likewise.
5205 (disable_packet_qfThreadInfo): Likewise.
5206 (run_once): Likewise.
5207 (non_stop): Likewise.
5208 * target.c (target_stop_and_wait): Update.
5209
80fd2826
TT
52102019-10-02 Tom Tromey <tromey@adacore.com>
5211
5212 * Makefile.in (SFILES): Add common-inferior.c.
5213 (OBS): Add common-inferior.o.
5214 * server.c (startup_with_shell): Don't define.
5215
46f29a9a
AB
52162019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5217
5218 * linux-low.c (linux_low_read_btrace): Update for change to
5219 std::vector.
5220
f9d949fb
CB
52212019-09-20 Christian Biesinger <cbiesinger@google.com>
5222
5223 * debug.c (debug_threads): Remove comment in favor of the header.
5224 * debug.h (using_threads): Add declaration.
5225 (debug_threads): Add comment.
5226 * linux-aarch64-low.c: Include debug.h and remove declaration of
5227 debug_threads.
5228 * nto-low.c: Likewise.
5229 * remote-utils.c: Likewise.
5230 * thread-db.c: Likewise.
5231
abf516c6
UW
52322019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5233
5234 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5235 and powerpc-cell64l-ipa.o.
5236 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5237 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5238 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5239 (spu*-*-*): Remove.
5240
5241 * spu-low.c: Remove file.
5242
5243 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5244 (parse_spufs_run): Remove.
5245 (ppc_get_pc): Remove Cell/B.E. support.
5246 (ppc_set_pc): Likewise.
5247 (ppc_breakpoint_at): Likewise.
5248 (ppc_arch_setup): Likewise.
5249 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5250 tdesc_powerpc_cell32l.
5251 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5252 or init_registers_powerpc_cell32l.
5253 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5254 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5255 or init_registers_powerpc_cell32l.
5256 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5257 (init_registers_powerpc_cell32l): Remove prototype.
5258 (init_registers_powerpc_cell64l): Likewise.
5259
5260 * target.h (struct target_ops): Remove qxfer_spu member.
5261 * server.c (handle_qxfer_spu): Remove.
5262 (qxfer_packets): Remove entry for "spu".
5263 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5264 * linux-low.c (SPUFS_MAGIC): Remove.
5265 (spu_enumerate_spu_ids): Remove.
5266 (linux_qxfer_spu): Remove.
5267 (linux_target_ops): Remove qxfer_spu member.
5268 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5269 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5270 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5271
2d41fa11
SDJ
52722019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5273
5274 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5275 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5276 * config.in: Regenerate.
5277 * configure: Regenerate.
5278
d59b55f0
TT
52792019-08-15 Tom Tromey <tromey@adacore.com>
5280
5281 * target.c (target_write_memory): Use gdb::byte_vector.
5282
4196ab2a
TT
52832019-08-15 Tom Tromey <tromey@adacore.com>
5284
5285 * tracepoint.c (write_inferior_data_pointer)
5286 (write_inferior_integer, write_inferior_int8)
5287 (write_inferior_uinteger, m_tracepoint_action_download)
5288 (r_tracepoint_action_download, x_tracepoint_action_download)
5289 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5290 (download_agent_expr, download_tracepoint_1)
5291 (download_trace_state_variables, upload_fast_traceframes): Update.
5292 * server.c (gdb_write_memory): Update.
5293 * remote-utils.c (relocate_instruction): Update.
5294 * proc-service.c (ps_pdwrite): Update.
5295 * mem-break.c (remove_memory_breakpoint)
5296 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5297 (uninsert_fast_tracepoint_jumps_at)
5298 (reinsert_fast_tracepoint_jumps_at): Update.
5299 * linux-x86-low.c (append_insns)
5300 (i386_install_fast_tracepoint_jump_pad)
5301 (amd64_write_goto_address, i386_write_goto_address): Update.
5302 * linux-s390-low.c (append_insns, s390_write_goto_address):
5303 Update.
5304 * linux-ppc-low.c (ppc_relocate_instruction)
5305 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5306 (ppc_write_goto_address): Update.
5307 * linux-aarch64-low.c (append_insns): Update.
5308 * target.h (struct target_ops): Update.
5309 (write_inferior_memory): Don't declare.
5310 * target.c (target_write_memory): Rename from
5311 write_inferior_memory. Remove old target_write_memory.
5312
c6778d00
TT
53132019-08-15 Tom Tromey <tromey@adacore.com>
5314
5315 * target.c (write_inferior_memory): Use std::vector.
5316
404f2902
FCE
53172019-08-06 Frank Ch. Eigler <fche@redhat.com>
5318
5319 PR build/24886
5320 * configure.ac: Drop enable-libmcheck support.
5321 * configure, config.in: Rebuild.
5322 * acinclude.m4: Don't include it.
5323
4c5aa8e0
AH
53242019-07-19 Alan Hayward <alan.hayward@arm.com>
5325
5326 * configure.srv: Remove Arm xml files.
5327
7cc17433
AH
53282019-07-19 Alan Hayward <alan.hayward@arm.com>
5329
5330 * configure.srv: Add new files. Remove xml generated files.
5331 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5332 registers.
5333 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5334 * linux-aarch32-tdesc.c: New file.
5335 * linux-aarch32-tdesc.h: New file.
5336 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5337 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5338 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5339 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5340 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5341 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5342 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5343 (arm_read_description): Call arm_linux_read_description.
5344 (initialize_low_arch): Don't init registers.
5345 * linux-arm-tdesc.c: New file.
5346 * linux-arm-tdesc.h: New file.
5347
166a82be
AH
53482019-07-10 Alan Hayward <alan.hayward@arm.com>
5349
5350 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5351 Move counter inside for.
5352 (arm_read_description): Check ptrace earlier.
5353 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5354
268a13a5
TT
53552019-07-09 Tom Tromey <tom@tromey.com>
5356
5357 * configure: Rebuild.
5358 * configure.ac: Change common to gdbsupport.
5359 * acinclude.m4: Change common to gdbsupport.
5360 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5361 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5362 common to gdbsupport.
5363 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5364 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5365 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5366 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5367 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5368 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5369 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5370 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5371 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5372 common to gdbsupport.
5373
350fab54
AH
53742019-07-04 Alan Hayward <alan.hayward@arm.com>
5375
5376 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5377 defines.
5378 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5379
2b40fda7
AH
53802019-07-04 Alan Hayward <alan.hayward@arm.com>
5381
5382 * configure.srv: Remove legacy xml.
5383 * linux-aarch64-low.c (initialize_low_arch): Remove
5384 initialize_low_tdesc call.
5385 * linux-aarch64-tdesc-selftest.c: Remove file.
5386 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5387 * linux-x86-low.c (initialize_low_arch): Remove
5388 initialize_low_tdesc call.
5389 * linux-x86-tdesc-selftest.c: Remove file.
5390 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5391
7d10623d
TV
53922019-06-20 Tom de Vries <tdevries@suse.de>
5393
5394 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5395 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5396
8d6a48df
TV
53972019-06-19 Tom de Vries <tdevries@suse.de>
5398
5399 * debug.h (debug_write): Change return type to ssize_t.
5400 * debug.c (debug_write): Same.
5401
73cc7272
TT
54022019-06-14 Tom Tromey <tom@tromey.com>
5403
5404 * configure.ac: Use new path to gnulib.
5405 * configure: Rebuild.
5406 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5407 to gnulib.
5408
08f10e02
TT
54092019-06-11 Tom Tromey <tom@tromey.com>
5410
5411 * Makefile.in (SFILES): Add alloc.c.
5412 (OBS): Add alloc.o.
5413 (IPA_OBJS): Add alloc-ipa.o.
5414 (alloc-ipa.o): New target.
5415 (%.o: ../%.c): New pattern rule.
5416
422186a9
TT
54172019-06-10 Tom Tromey <tromey@adacore.com>
5418
5419 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5420 end warning with a newline.
5421 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5422 newline.
5423 * thread-db.c (attach_thread): Don't end warning with a newline.
5424 (thread_db_notice_clone): Likewise.
5425 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5426 newline.
5427 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5428 end warning with a newline.
5429
b02f78f9
PA
54302019-06-04 Pedro Alves <palves@redhat.com>
5431
5432 * server.c (captured_main): Use make_unique_xstrdup.
5433
88ed7edb
TT
54342019-06-02 Tom Tromey <tom@tromey.com>
5435
5436 * gdbreplay.c (fromhex): Remove.
5437 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5438
33a6bc35
TT
54392019-05-29 Tom Tromey <tromey@adacore.com>
5440
5441 * configure: Rebuild.
5442
e90a813d
KB
54432019-05-06 Kevin Buettner <kevinb@redhat.com>
5444
5445 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5446 sign extension code on 32-bit builds.
5447
353ea2d1
EZ
54482019-05-03 Eli Zaretskii <eliz@gnu.org>
5449
5450 * remote-utils.c:
5451 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5452
b494cdff
TT
54532019-04-19 Tom Tromey <tom@tromey.com>
5454
5455 * server.c (struct vstop_notif): Derive from notif_event.
5456 <base>: Remove.
5457 (queue_stop_reply): Update.
5458 (remove_all_on_match_ptid): Change type. Rewrite.
5459 (discard_queued_stop_replies): Rewrite.
5460 (in_queued_stop_replies_ptid): Change type.
5461 (in_queued_stop_replies): Rewrite.
5462 (notif_stop): Update.
5463 (queue_stop_reply_callback): Update.
5464 (captured_main): Don't call initialize_notif.
5465 (push_stop_notification): Update.
5466 * notif.c (notif_write_event, handle_notif_ack)
5467 (notif_event_enque, notif_push): Update.
5468 (notif_event_xfree, initialize_notif): Remove.
5469 * notif.h (struct notif_event): Include <list>, not
5470 "common/queue.h".
5471 (struct notif_server) <queue>: Now a std::list.
5472 (notif_event_p): Remove typedef.
5473 (initialize_notif): Don't declare.
5474 (struct notif_event): Add virtual destructor.
5475
a7e559cc
AH
54762019-04-17 Alan Hayward <alan.hayward@arm.com>
5477
5478 * ax.c (ax_vdebug): Call debug_printf.
5479 * debug.c (debug_write): New function.
5480 * debug.h (debug_write): New declaration.
5481 * linux-low.c (sigchld_handler): Call debug_write.
5482
aeb2e706
AH
54832019-04-17 Alan Hayward <alan.hayward@arm.com>
5484
5485 * debug.c (debug_set_output): New function.
5486 (debug_vprintf): Send output to debug_file.
5487 (debug_flush): Likewise.
5488 * debug.h (debug_set_output): New declaration.
5489 * server.c (handle_monitor_command): Add debug-file option.
5490 (captured_main): Likewise.
5491
c1bc0935
AH
54922019-04-17 Alan Hayward <alan.hayward@arm.com>
5493
5494 * debug.c (remote_debug): Add definition.
5495 * debug.h (remote_debug): Add declaration.
5496 * hostio.c (remote_debug): Remove declaration.
5497 * remote-utils.c (struct ui_file): Likewise.
5498 (remote_debug): Likewise.
5499 * remote-utils.h (remote_debug): Likewise,
5500 * server.c (remote_debug): Remove definition.
5501
3f52fdbc
KB
55022019-04-10 Kevin Buettner <kevinb@redhat.com>
5503
5504 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5505 when using a 64-bit gdbserver.
5506
b0319eaa
TT
55072019-04-09 Tom Tromey <tromey@adacore.com>
5508
5509 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5510
eedc3f4f
TT
55112019-04-08 Tom Tromey <tom@tromey.com>
5512
5513 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5514 throw.
5515 (linux_resume_one_lwp): Likewise.
5516
230d2906
TT
55172019-04-08 Tom Tromey <tom@tromey.com>
5518
5519 * gdbreplay.c: Update.
5520 * linux-low.c: Update.
5521 * server.c: Update.
5522
a70b8144
TT
55232019-04-08 Tom Tromey <tom@tromey.com>
5524
5525 * server.c: Use C++ exception handling.
5526 * linux-low.c: Use C++ exception handling.
5527 * gdbreplay.c: Use C++ exception handling.
5528
3d6e9d23
TT
55292019-04-08 Tom Tromey <tom@tromey.com>
5530
5531 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5532 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5533 (captured_main, main): Update.
5534 * gdbreplay.c (main): Update.
5535
0570503d
PFC
55362019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5537
5538 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5539 value in argument pointer, return 1 if the entry is found and 0
5540 otherwise. Move comment.
5541 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5542 * linux-low.h (linux_get_auxv): Declare.
5543 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5544
227a9e65
TT
55452019-04-05 Tom Tromey <tromey@adacore.com>
5546
5547 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5548 variables.
5549
69f4c9cc
AH
55502019-03-28 Alan Hayward <alan.hayward@arm.com>
5551
5552 * linux-low.c (AT_HWCAP2): Add define if not already included.
5553
974c89e0
AH
55542019-03-26 Alan Hayward <alan.hayward@arm.com>
5555
5556 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5557 (aarch64_arch_setup): Call linux_get_hwcap.
5558 * linux-arm-low.c (arm_get_hwcap): Remove function.
5559 (arm_read_description): Call linux_get_hwcap.
5560 * linux-low.c (linux_get_auxv): New function.
5561 (linux_get_hwcap): Likewise.
5562 (linux_get_hwcap2): Likewise.
5563 * linux-low.h (linux_get_hwcap): New declaration.
5564 (linux_get_hwcap2): Likewise.
5565 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5566 (ppc_arch_setup): Call linux_get_hwcap.
5567 * linux-s390-low.c (s390_get_hwcap): Remove function.
5568 (s390_arch_setup): Call linux_get_hwcap.
5569
1ef53e6b
AH
55702019-03-22 Alan Hayward <alan.hayward@arm.com>
5571 Jiong Wang <jiong.wang@arm.com>
5572
5573 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5574 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5575 to fail.
5576 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5577
ee4fbcfa
AH
55782019-03-22 Alan Hayward <alan.hayward@arm.com>
5579 Jiong Wang <jiong.wang@arm.com>
5580
5581 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5582 (aarch64_get_hwcap): New function.
5583 (aarch64_arch_setup): Read APIA hwcap.
5584
6dc0ebde
AH
55852019-03-22 Alan Hayward <alan.hayward@arm.com>
5586 Jiong Wang <jiong.wang@arm.com>
5587
5588 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5589 (initialize_low_tracepoint): Likewise.
5590 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5591 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5592 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5593 (aarch64_linux_read_description): Likewise.
5594 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5595
1163a4b7
JB
55962019-03-12 John Baldwin <jhb@FreeBSD.org>
5597
5598 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5599 i386_create_target_description for 'segments' parameter.
5600 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5601 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5602 * win32-i386-low.c (i386_arch_setup): Likewise.
5603
d3a70e03
TT
56042019-03-12 Tom Tromey <tromey@adacore.com>
5605
5606 * linux-low.c (iterate_over_lwps): Update.
5607
37991b4f
TT
56082019-03-06 Tom Tromey <tom@tromey.com>
5609
5610 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5611 (captured_main): Use SCOPE_EXIT.
5612
45950eb6
SDJ
56132019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5614
5615 * configure.srv: Use '$enable_unittest' instead of '$development'
5616 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5617 case.
5618
43ac54fc
TT
56192019-02-27 Tom Tromey <tromey@adacore.com>
5620
5621 * gdbreplay.c (logchar): Handle \r\n.
5622
df0da8a2
AH
56232019-02-07 Alan Hayward <alan.hayward@arm.com>
5624
5625 * linux-low.c (linux_attach): Add process before lwp.
5626 * server.c (attach_inferior): Check if already attached.
5627
1a5c2598
TT
56282019-02-07 Tom Tromey <tom@tromey.com>
5629
5630 * x86-tdesc.h: Rename include guard.
5631 * x86-low.h: Add include guard.
5632 * wincecompat.h: Rename include guard.
5633 * win32-low.h: Add include guard.
5634 * utils.h: Rename include guard.
5635 * tracepoint.h: Rename include guard.
5636 * tdesc.h: Rename include guard.
5637 * target.h: Rename include guard.
5638 * server.h: Rename include guard.
5639 * remote-utils.h: Rename include guard.
5640 * regcache.h: Rename include guard.
5641 * nto-low.h: Rename include guard.
5642 * notif.h: Add include guard.
5643 * mem-break.h: Rename include guard.
5644 * lynx-low.h: Add include guard.
5645 * linux-x86-tdesc.h: Add include guard.
5646 * linux-s390-tdesc.h: Add include guard.
5647 * linux-ppc-tdesc-init.h: Add include guard.
5648 * linux-low.h: Add include guard.
5649 * linux-aarch64-tdesc.h: Add include guard.
5650 * linux-aarch32-low.h: Add include guard.
5651 * inferiors.h: Rename include guard.
5652 * i387-fp.h: Rename include guard.
5653 * hostio.h: Rename include guard.
5654 * gdbthread.h: Rename include guard.
5655 * gdb_proc_service.h: Rename include guard.
5656 * event-loop.h: Rename include guard.
5657 * dll.h: Rename include guard.
5658 * debug.h: Rename include guard.
5659 * ax.h: Rename include guard.
5660
956cc47c
SN
56612018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5662
5663 PR gdb/23985
5664 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5665 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5666
a0707f3c
TT
56672019-01-25 Tom Tromey <tom@tromey.com>
5668
5669 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5670
0747795c
TT
56712019-01-25 Tom Tromey <tom@tromey.com>
5672
5673 * win32-low.c: Fix common/ includes.
5674 * win32-i386-low.c: Fix common/ includes.
5675 * tracepoint.c: Fix common/ includes.
5676 * thread-db.c: Fix common/ includes.
5677 * target.h: Fix common/ includes.
5678 * symbol.c: Fix common/ includes.
5679 * spu-low.c: Fix common/ includes.
5680 * server.h: Fix common/ includes.
5681 * server.c: Fix common/ includes.
5682 * remote-utils.c: Fix common/ includes.
5683 * regcache.h: Fix common/ includes.
5684 * regcache.c: Fix common/ includes.
5685 * nto-x86-low.c: Fix common/ includes.
5686 * notif.h: Fix common/ includes.
5687 * mem-break.h: Fix common/ includes.
5688 * lynx-low.c: Fix common/ includes.
5689 * lynx-i386-low.c: Fix common/ includes.
5690 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5691 * linux-x86-low.c: Fix common/ includes.
5692 * linux-low.c: Fix common/ includes.
5693 * inferiors.h: Fix common/ includes.
5694 * i387-fp.c: Fix common/ includes.
5695 * hostio.c: Fix common/ includes.
5696 * hostio-errno.c: Fix common/ includes.
5697 * gdbthread.h: Fix common/ includes.
5698 * gdbreplay.c: Fix common/ includes.
5699 * fork-child.c: Fix common/ includes.
5700 * event-loop.c: Fix common/ includes.
5701 * ax.c:
5702 (enum gdb_agent_op): Fix common/ includes.
5703
be6d4f74
TT
57042019-01-21 Tom Tromey <tom@tromey.com>
5705
5706 * tracepoint.c: Fix includes.
5707 * remote-utils.c: Fix includes.
5708 * linux-x86-low.c: Fix includes.
5709
66d91b39
JB
57102019-01-01 Joel Brobecker <brobecker@adacore.com>
5711
5712 * gdbreplay.c (gdbreplay_version): Update copyright year in
5713 version message.
5714 * server.c (gdbserver_version): Likewise.
5715
754e3168
AH
57162018-12-05 Alan Hayward <alan.hayward@arm.com>
5717
5718 * linux-low.c (add_lwp): Switch ordering.
5719
d105de22
TT
57202018-11-29 Tom Tromey <tom@tromey.com>
5721
5722 * win32-low.c (win32_join): Take pid, not process.
5723 * target.h (struct target_ops) <join>: Change argument type.
5724 (join_inferior): Change argument name.
5725 * spu-low.c (spu_join): Take pid, not process.
5726 * server.c (handle_detach): Preserve pid before destroying
5727 process.
5728 * lynx-low.c (lynx_join): Take pid, not process.
5729 * linux-low.c (linux_join): Take pid, not process.
5730
50138245
AH
57312018-11-23 Alan Hayward <alan.hayward@arm.com>
5732
5733 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5734 (aarch64_cannot_fetch_register): Likewise.
5735 (struct linux_target_ops): Update references.
5736
64f57f3d
PFC
57372018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5738
5739 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5740
8d619c01
EBM
57412018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5742
5743 * configure.srv (ipa_ppc_linux_regobj): Add
5744 powerpc-isa207-htm-vsx32l-ipa.o and
5745 powerpc-isa207-htm-vsx64l-ipa.o.
5746 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5747 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5748 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5749 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5750 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5751 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5752 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5753 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5754 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5755 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5756 (init_registers_powerpc_isa207_htm_vsx32l)
5757 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5758 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5759 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5760 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5761 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5762 (ppc_store_tm_ctarregset): New functions.
5763 (ppc_regsets): Add entries for HTM regsets.
5764 (ppc_arch_setup): Set htm in features struct when needed. Set
5765 sizes for the HTM regsets.
5766 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5767 (initialize_low_arch): Call
5768 init_registers_powerpc_isa207_htm_vsx32l and
5769 init_registers_powerpc_isa207_htm_vsx64l.
5770 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5771 PPC_TDESC_ISA207_HTM_VSX.
5772 (initialize_low_tracepoint): Call
5773 init_registers_powerpc_isa207_htm_vsx32l and
5774 init_registers_powerpc_isa207_htm_vsx64l.
5775
232bfb86
EBM
57762018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5777
5778 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5779 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5780 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5781 (ppc_store_pmuregset): New functions.
5782 (ppc_regsets): Add entries for ebb and pmu regsets.
5783 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5784 pmu regsets are available. Set sizes for these regsets.
5785
f2cf6173
EBM
57862018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5787
5788 * configure.srv (ipa_ppc_linux_regobj): Add
5789 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5790 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5791 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5792 rs6000/powerpc-isa207-vsx32l.xml, and
5793 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5794 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5795 <PPC_TDESC_ISA207_VSX>: New enum value.
5796 (init_registers_powerpc_isa207_vsx32l): Declare.
5797 (init_registers_powerpc_isa207_vsx64l): Declare.
5798 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5799 (ppc_store_tarregset): New function.
5800 (ppc_regsets): Add entry for the TAR regset.
5801 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5802 size for the TAR regsets.
5803 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5804 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5805 and init_registers_powerpc_isa207_vsx64l.
5806 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5807 (initialize_low_tracepoint): Call
5808 init_registers_powerpc_isa207_vsx32l and
5809 init_registers_powerpc_isa207_vsx64l.
5810
7ca18ed6
EBM
58112018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5812 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5813
5814 * configure.srv (ipa_ppc_linux_regobj): Add
5815 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5816 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5817 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5818 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5819 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5820 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5821 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5822 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5823 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5824 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5825 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5826 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5827 (ppc_hwcap): Add comment.
5828 (ppc_hwcap2): New global.
5829 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5830 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5831 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5832 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5833 when needed. Set sizes for the the DSCR and PPR regsets.
5834 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5835 (initialize_low_arch): Call
5836 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5837 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5838 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5839 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5840 (initialize_low_tracepoint): Call
5841 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5842 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5843
5c849b22
PFC
58442018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5845
5846 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5847
8ecfd7bd
SDJ
58482018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5849 Simon Marchi <simark@simark.ca>
5850
5851 * acinclude.m4: Include "../selftest.m4".
5852 * configure: Regenerate.
5853 * configure.ac: Use "GDB_AC_SELFTEST".
5854 * configure.srv: Use "$enable_unittests" instead of
5855 "$development" when checking whether unit tests have been
5856 enabled.
5857 * server.c (captured_main): Update message informing that
5858 selftests have been disabled.
5859
96643e35
TT
58602018-10-04 Tom Tromey <tom@tromey.com>
5861
5862 * configure: Rebuild.
5863
da4ae14a
TT
58642018-10-04 Tom Tromey <tom@tromey.com>
5865
5866 * server.c (handle_status): Rename inner "thread".
5867 (process_serial_event): Declare "res" in 'm' case.
5868 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5869 (iterate_over_lwps): Rename inner "thread".
5870 (linux_qxfer_libraries_svr4): Rename inner "len".
5871 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5872
7c619dbd
GB
58732018-10-01 Gary Benson <gbenson@redhat.com>
5874
5875 * gdb_proc_service.h: Moved common code to
5876 common/gdb_proc_service.h.
5877
3795e814
GB
58782018-10-01 Gary Benson <gbenson@redhat.com>
5879
5880 * gdb_proc_service.h: Synchronize comments and whitespace with
5881 GDB's version of this file.
5882
49b036f1
TT
58832018-09-25 Tom Tromey <tom@tromey.com>
5884
5885 * configure: Rebuild.
5886 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5887
8ff03f0b
SM
58882018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5889
5890 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5891 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5892 ($(IPA_LIB)): Sort IPA_OBJS.
5893
a1cd91dc
SM
58942018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5895
5896 * Makefile.in: Remove references to $(ADD_DEPS).
5897
752312ba
TT
58982018-09-16 Tom Tromey <tom@tromey.com>
5899
5900 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5901 variables.
5902 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5903 variables.
5904
f1628857
TT
59052018-09-05 Tom Tromey <tom@tromey.com>
5906
5907 * configure: Rebuild.
5908
ad202fcc
SM
59092018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5910
5911 PR build/23399
5912 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5913
d3d8724a
TT
59142018-08-27 Tom Tromey <tom@tromey.com>
5915
5916 PR build/23087:
5917 * configure: Rebuild.
5918
b4f183d2
TT
59192018-08-27 Tom Tromey <tom@tromey.com>
5920
5921 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5922 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5923 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5924 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5925 (s390x_emit_stack_adjust): Add casts to unsigned char.
5926
4e2aa472
SM
59272018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5928
5929 PR gdb/23374
5930 PR gdb/23375
5931 * server.h (struct client_state) <disable_randomization>:
5932 Initialize to 1.
5933
cf4088a9
SM
59342018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5935
5936 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5937 variable.
5938 (mips_supply_ptrace_register): Likewise.
5939
a0de763e
TT
59402018-07-22 Tom Tromey <tom@tromey.com>
5941
5942 * configure: Rebuild.
5943
b0a7723d
TT
59442018-07-22 Tom Tromey <tom@tromey.com>
5945
5946 * win32-low.c (win32_create_inferior): Remove unused variables.
5947 * gdbreplay.c (remote_open): Remove unused variable.
5948 * remote-utils.c (remote_prepare): Remove unused variable.
5949 * x86-tdesc.h (X86_TDESC_H): Define.
5950 (amd64_expedite_regs): Define conditionally.
5951 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5952 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5953 * remote-utils.c (readchar): Remove unused variable.
5954
a780ef4f
PA
59552018-07-13 Pedro Alves <palves@redhat.com>
5956
5957 * linux-low.c (linux_kill): Change parameter to process_info
5958 pointer instead of pid. Adjust.
5959 * lynx-low.c (lynx_kill): Likewise.
5960 * nto-low.c (nto_kill): Likewise.
5961 * spu-low.c (spu_kill): Likewise.
5962 * win32-low.c (win32_kill): Likewise.
5963 * server.c (handle_v_kill, kill_inferior_callback)
5964 (detach_or_kill_for_exit): Adjust.
5965 * target.c (kill_inferior): Change parameter to process_info
5966 pointer instead of pid. Adjust.
5967 * target.h (struct target_ops) <kill>: Change parameter to
5968 process_info pointer instead of pid. Adjust all implementations
5969 and callers.
5970 (kill_inferior): Likewise.
5971
ef2ddb33
PA
59722018-07-13 Pedro Alves <palves@redhat.com>
5973
5974 * linux-low.c (linux_detach, linux_join): Change parameter to
5975 process_info pointer instead of pid. Adjust.
5976 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5977 * nto-low.c (nto_detach): Likewise.
5978 * spu-low.c (spu_detach, spu_join): Likewise.
5979 * win32-low.c (win32_detach, win32_join): Likewise.
5980 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5981 * target.h (struct target_ops) <detach, join>: Change parameter to
5982 process_info pointer instead of pid. Adjust all implementations
5983 and callers.
5984 (detach_inferior, join_inferior): Rename 'pid' parameter to
5985 'proc'.
5986
c7ab0aef
SDJ
59872018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5988 Jan Kratochvil <jan.kratochvil@redhat.com>
5989 Paul Fertser <fercerpav@gmail.com>
5990 Tsutomu Seki <sekiriki@gmail.com>
5991
5992 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5993 (OBS): Add 'common/netstuff.o'.
5994 (GDBREPLAY_OBS): Likewise.
5995 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5996 (remote_open): Implement support for IPv6
5997 connections.
5998 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5999 and 'wspiapi.h'.
6000 (handle_accept_event): Accept connections from IPv6 sources.
6001 (remote_prepare): Handle IPv6-style hostnames; implement
6002 support for IPv6 connections.
6003 (remote_open): Implement support for printing connections from
6004 IPv6 sources.
6005
31445d10
PA
60062018-07-11 Pedro Alves <palves@redhat.com>
6007
6008 PR gdb/23377
6009 * mem-break.c (any_persistent_commands): Add process_info
6010 parameter and use it instead of relying on the current process.
6011 Change return type to bool.
6012 * mem-break.h (any_persistent_commands): Add process_info
6013 parameter and change return type to bool.
6014 * server.c (handle_detach): Remove require_running_or_return call.
6015 Look up the process_info for the process we're about to detach.
6016 If not found, return back error to GDB. Adjust
6017 any_persistent_commands call to pass down a process pointer.
6018
cb197132
PA
60192018-07-11 Pedro Alves <palves@redhat.com>
6020
6021 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6022 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6023 instead of collect_register_by_name.
6024 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6025 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6026
1b919490
VB
60272018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6028 Pedro Alves <palves@redhat.com>
6029
6030 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6031
d7e15655
TT
60322018-07-03 Tom Tromey <tom@tromey.com>
6033
6034 * linux-low.c: Update.
6035 * lynx-low.c: Update.
6036 * mem-break.c: Update.
6037 * nto-low.c: Update.
6038 * remote-utils.c: Update.
6039 * server.c: Update.
6040 * spu-low.c: Update.
6041 * target.c: Update.
6042 * win32-low.c: Update.
6043
26a57c92
TT
60442018-07-03 Tom Tromey <tom@tromey.com>
6045
6046 * server.c: Update.
6047
0e998d96
TT
60482018-07-03 Tom Tromey <tom@tromey.com>
6049
6050 * linux-low.c: Update.
6051
cc6bcb54
TT
60522018-07-03 Tom Tromey <tom@tromey.com>
6053
6054 * target.c: Update.
6055
e38504b3
TT
60562018-07-03 Tom Tromey <tom@tromey.com>
6057
6058 * linux-low.c: Update.
6059 * linux-mips-low.c: Update.
6060 * lynx-low.c: Update.
6061 * nto-low.c: Update.
6062 * remote-utils.c: Update.
6063 * server.c: Update.
6064 * spu-low.c: Update.
6065 * target.c: Update.
6066 * thread-db.c: Update.
6067
e99b03dc
TT
60682018-07-03 Tom Tromey <tom@tromey.com>
6069
6070 * linux-low.c: Update.
6071 * linux-mips-low.c: Update.
6072 * lynx-low.c: Update.
6073 * mem-break.c: Update.
6074 * nto-low.c: Update.
6075 * remote-utils.c: Update.
6076 * server.c: Update.
6077 * spu-low.c: Update.
6078 * target.c: Update.
6079 * tracepoint.c: Update.
6080
f2907e49
TT
60812018-07-03 Tom Tromey <tom@tromey.com>
6082
6083 * linux-low.c: Update.
6084 * linux-ppc-low.c: Update.
6085 * linux-x86-low.c: Update.
6086 * proc-service.c: Update.
6087 * server.c: Update.
6088 * spu-low.c: Update.
6089 * thread-db.c: Update.
6090 * win32-low.c: Update.
6091
fd79271b
TT
60922018-07-03 Tom Tromey <tom@tromey.com>
6093
6094 * linux-low.c: Update.
6095 * lynx-low.c: Update.
6096 * nto-low.c: Update.
6097 * remote-utils.c: Update.
6098 * spu-low.c: Update.
6099 * thread-db.c: Update.
6100 * win32-low.c: Update.
6101
c0867626
SDJ
61022018-06-29 Joel Brobecker <brobecker@adacore.com>
6103
6104 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6105 parameter in call to 'amd64_create_target_description'.
6106
2512d7ef
JK
61072018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6108
6109 * x86-tdesc.h: Remove executable permission flag.
6110
d0ac1c44
SM
61112018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6112
6113 * configure.ac: Remove AC_PREREQ, add missing quoting.
6114 * configure: Re-generate.
6115 * config.in: Re-generate.
6116 * aclocal.m4: Re-generate.
6117
c4eb05ff
SM
61182018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6119
6120 * tracepoint.h (current_traceframe): Remove declaration.
6121
02895270
AH
61222018-06-18 Alan Hayward <alan.hayward@arm.com>
6123
6124 * linux-aarch64-low.c (is_sve_tdesc): New function.
6125 (aarch64_sve_regs_copy_to_regcache): Likewise.
6126 (aarch64_sve_regs_copy_from_regcache): Likewise.
6127 (aarch64_regs_info): Add SVE checks.
6128 (initialize_low_arch): Initialize SVE.
6129
e9902bfc
AH
61302018-06-18 Alan Hayward <alan.hayward@arm.com>
6131
6132 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6133
fefa175e
AH
61342018-06-11 Alan Hayward <alan.hayward@arm.com>
6135
6136 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6137 (initialize_low_tracepoint): Likewise
6138 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6139 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6140 param.
6141 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6142 checks.
6143 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6144
b91ad3ff
AH
61452018-06-11 Alan Hayward <alan.hayward@arm.com>
6146
6147 * server.h (PBUFSIZ): Increase size
6148
f868386e
AH
61492018-06-11 Alan Hayward <alan.hayward@arm.com>
6150
6151 * regcache.c (regcache::raw_compare): New function.
6152 * regcache.h (regcache::raw_compare): New declaration.
6153
9c861883
AH
61542018-06-11 Alan Hayward <alan.hayward@arm.com>
6155
6156 * regcache.c (new_register_cache): Use new.
6157 (free_register_cache): Use delete.
6158 (register_data): Use const.
6159 (supply_register): Move body inside regcache.
6160 (regcache::raw_supply): New override function.
6161 (collect_register): Move body inside regcache.
6162 (regcache::raw_collect): New override function.
6163 (regcache::get_register_status): New override function.
6164 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6165
40591844
TT
61662018-06-09 Tom Tromey <tom@tromey.com>
6167
6168 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6169 declare queue.
6170 (event_queue): Use std::queue.
6171 (gdb_event_xfree): Remove.
6172 (initialize_event_loop, process_event, wait_for_event): Update.
6173
6341380d
SC
61742018-06-08 Stan Cox <scox@redhat.com>
6175
6176 * win32-low.c (win32_create_inferior): last_ptid and last_status
6177 moved to client_state.
6178
03349c93
PA
61792018-06-08 Pedro Alves <palves@redhat.com>
6180
6181 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6182 common/common-exceptions.o, common/common-utils.o,
6183 common/errors.o, common/print-utils.o and utils.o.
6184 * gdbreplay.c: Include "common-defs.h" instead of the two
6185 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6186 string.h or alloca.h.
6187 (perror_with_name): Delete.
6188 (remote_open): Use xstrdup instead of strdup.
6189 (main): Rename to ...
6190 (captured_main): ... this.
6191 (main): New.
6192
8dcc53b3
TT
61932018-06-08 Tom Tromey <tom@tromey.com>
6194
6195 * linux-low.c (linux_low_read_btrace): Update.
6196
c12a5089
SC
61972018-06-04 Stan Cox <scox@redhat.com>
6198
6199 * server.h (struct client_state): New.
6200 * server.c (cont_thread, general_thread, multi_process)
6201 (report_fork_events, report_vfork_events, report_exec_events)
6202 (report_thread_events, swbreak_feature, hwbreak_feature)
6203 (vCont_supported, disable_randomization, pass_signals)
6204 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6205 Moved to client_state.
6206 * remote-utils.c (remote_debug, noack_mode)
6207 (transport_is_reliable): Moved to client_state.
6208 * tracepoint.c (current_traceframe): Moved to client_state.
6209
6210 Update all callers.
6211 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6212 linux-low.c, remote-utils.h, target.c: Use client_state.
6213
122394f1
AH
62142018-05-31 Alan Hayward <alan.hayward@arm.com>
6215
6216 * configure.srv: Add new c/h file.
6217
95228a0d
AH
62182018-05-31 Alan Hayward <alan.hayward@arm.com>
6219
6220 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6221 null VQ.
6222
d8dab6c3
MR
62232018-05-25 Maciej W. Rozycki <macro@mips.com>
6224
6225 * gdb.arch/mips-fpregset-core.exp: New test.
6226 * gdb.arch/mips-fpregset-core.c: New test source.
6227
81e25b7c
EK
62282018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6229
6230 PR server/23198
6231 * hostio.c (require_int): Do not report overflow for integers
6232 between 0xfffffff and 0x7fffffff.
6233
7e947ad3
MR
62342018-05-22 Maciej W. Rozycki <macro@mips.com>
6235
6236 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6237 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6238 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6239 functions.
6240 (the_low_target): Wire them.
6241
1d75a658
PFC
62422018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6243
6244 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6245 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6246 mode. Call collect_register_by_name with vscr using
6247 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6248 (ppc_store_vrregset): Add and set vscr_offset variable as in
6249 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6250 vscr_offset.
6251
d078308a
PFC
62522018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6253
6254 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6255 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6256 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6257
7273b5fc
PFC
62582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6259
6260 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6261 (ppc_store_vsxregset): Likewise.
6262 (ppc_fill_vrregset): Likewise.
6263 (ppc_store_vrregset): Likewise.
6264 (ppc_fill_evrregset): Likewise.
6265 (ppc_store_evrregset): Likewise.
6266 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6267 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6268 needed.
6269
2e077f5e
PFC
62702018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6271
6272 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6273 wordsize of the inferior. Call ppc_linux_target_wordsize.
6274
bd64614e
PFC
62752018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6276
6277 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6278 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6279 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6280 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6281 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6282 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6283 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6284 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6285 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6286 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6287 (tdesc_powerpc_e500l): Remove.
6288 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6289 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6290 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6291 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6292 linux-ppc-tdesc.h.
6293 (ppc_arch_setup): Remove target description matching code. Fill a
6294 ppc_linux_features struct and call ppc_linux_match_description
6295 with it.
6296
75d74cca
MR
62972018-05-22 Maciej W. Rozycki <macro@mips.com>
6298
6299 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6300 width of the requested register exceeds the width of the
6301 `ptrace' data type.
6302 (mips_cannot_store_register): Likewise.
6303
e4439e43
MR
63042018-05-21 Maciej W. Rozycki <macro@mips.com>
6305
6306 * linux-mips-low.c (mips_fetch_register): New function. Update
6307 preceding comment.
6308 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6309 (the_low_target): Wire `mips_fetch_register'.
6310
55271bf9
JB
63112018-05-10 Joel Brobecker <brobecker@adacore.com>
6312
6313 * lynx-i386-low.c (LYNXOS_178): New macro.
6314 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6315 the layout on LynxOS-178.
6316 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6317 handle floating point registers that are not supported by
6318 LynxOS-178.
6319
1a34f210
TT
63202018-05-10 Tom Tromey <tom@tromey.com>
6321
6322 * configure: Rebuild.
6323
190852c8
JB
63242018-05-10 Joel Brobecker <brobecker@adacore.com>
6325
6326 PR server/23158:
6327 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6328 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6329 Use it to set the expedite_regs field in the given tdesc.
6330 * x86-tdesc.h: New file.
6331 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6332 Adjust following the addition of the new expedite_regs parameter
6333 to init_target_desc.
6334 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6335 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6336 (i386_linux_read_description, amd64_linux_read_description):
6337 Adjust following the addition of the new expedite_regs parameter
6338 to init_target_desc.
6339 * lynx-i386-low.c: #include "x86-tdesc.h".
6340 (lynx_i386_arch_setup): Adjust following the addition of the new
6341 expedite_regs parameter to init_target_desc.
6342 * nto-x86-low.c: #include "x86-tdesc.h".
6343 (nto_x86_arch_setup): Adjust following the addition of the new
6344 expedite_regs parameter to init_target_desc.
6345 * win32-i386-low.c: #include "x86-tdesc.h".
6346 (i386_arch_setup): Adjust following the addition of the new
6347 expedite_regs parameter to init_target_desc.
6348
7dbac825
JB
63492018-05-10 Joel Brobecker <brobecker@adacore.com>
6350
6351 PR server/23158:
6352 * win32-low.c (win32_create_inferior): Add call to my_wait
6353 setting last_status global.
6354
906994d9
JB
63552018-05-10 Joel Brobecker <brobecker@adacore.com>
6356
6357 PR server/23158:
6358 * win32-low.c (create_process): Only call gdb_tilde_expand if
6359 inferior_cwd is not NULL.
6360
8ee22052
AB
63612018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6362
6363 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6364 registers to the cache if their values have changed.
6365 (i387_xsave_to_cache): Provide default values for x87 control
6366 registers when these features are available, but disabled.
6367 * regcache.c (supply_register_by_name_zeroed): New function.
6368 * regcache.h (supply_register_by_name_zeroed): Declare new
6369 function.
6370
aff689d3
TT
63712018-05-07 Tom Tromey <tom@tromey.com>
6372
6373 * configure: Rebuild.
6374
85e26832
TT
63752018-05-04 Tom Tromey <tom@tromey.com>
6376
6377 * configure: Rebuild.
6378
a3b60e45
JK
63792018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6380 Pedro Alves <palves@redhat.com>
6381
6382 * linux-aarch64-low.c (aarch64_stopped_data_address):
6383 Likewise.
6384
632e107b
TT
63852018-04-27 Tom Tromey <tom@tromey.com>
6386
6387 * configure: Rebuild.
6388
458412c3
TT
63892018-04-23 Tom Tromey <tom@tromey.com>
6390
6391 * configure: Rebuild.
6392
f31c089e
SM
63932018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6394
6395 * Makefile.in (depcomp): Add "..".
6396 (all_deps_files): New and use it.
6397
b319b098
AH
63982018-04-18 Alan Hayward <alan.hayward@arm.com>
6399
6400 * configure.srv (aarch64*-*-linux*): Don't include xml.
6401 (i[34567]86-*-cygwin*): Likewise.
6402 (i[34567]86-*-linux*): Likewise.
6403 (i[34567]86-*-lynxos*): Likewise.
6404 (i[34567]86-*-mingw32ce*): Likewise.
6405 (i[34567]86-*-mingw*): Likewise.
6406 (i[34567]86-*-nto*): Likewise.
6407 (tic6x-*-uclinux): Likewise.
6408 (x86_64-*-linux*): Likewise.
6409 (x86_64-*-mingw*): Likewise.
6410 (x86_64-*-cygwin*): Likewise.
6411
3b74854b
AH
64122018-04-18 Alan Hayward <alan.hayward@arm.com>
6413
6414 * tdesc.c: Remove xml parameter.
6415
e98577a9
AH
64162018-04-18 Alan Hayward <alan.hayward@arm.com>
6417
6418 * server.c (get_features_xml): Remove cast.
6419 * tdesc.c (void target_desc::accept): Fill in function.
6420 (tdesc_get_features_xml): Remove old xml creation.
6421 (print_xml_feature::visit_pre): Add xml vistor.
6422 * tdesc.h (struct target_desc): Make xmltarget mutable.
6423 (tdesc_get_features_xml): Remove declaration.
6424
d278f585
AH
64252018-04-18 Alan Hayward <alan.hayward@arm.com>
6426
6427 * tdesc.c (tdesc_architecture_name): Add new function.
6428 (tdesc_osabi_name): Likewise.
6429 (tdesc_get_features_xml): Use new functions.
6430
eee8a18d
AH
64312018-04-18 Alan Hayward <alan.hayward@arm.com>
6432
6433 * tdesc.c (tdesc_create_flags): Remove.
6434 (tdesc_add_flag): Likewise.
6435 (tdesc_named_type): Likewise.
6436 (tdesc_create_union): Likewise.
6437 (tdesc_create_struct): Likewise.
6438 (tdesc_create_vector): Likewise.
6439 (tdesc_add_bitfield): Likewise.
6440 (tdesc_add_field): Likewise.
6441 (tdesc_set_struct_size): Likewise.
6442
82ec9bc7
AH
64432018-04-18 Alan Hayward <alan.hayward@arm.com>
6444
6445 * tdesc.c (~target_desc): Remove implictly deleted items.
6446 (init_target_desc): Iterate all features.
6447 (tdesc_get_features_xml): Use vector.
6448 (tdesc_create_feature): Create feature.
6449 * tdesc.h (tdesc_feature) Remove
6450 (target_desc): Add features.
6451
ea3e7d71
AH
64522018-04-18 Alan Hayward <alan.hayward@arm.com>
6453
6454 * Makefile.in: Add common/tdesc.c
6455 * tdesc.c (init_target_desc): init all reg_defs from register
6456 vector.
6457 (tdesc_create_reg): Create tdesc_reg.
6458 * tdesc.h (tdesc_feature): Add register vector.
6459
17d08cd4
SM
64602018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6461
6462 * tdesc.h (struct target_desc) <features>: Change type to
6463 std::vector<std::string>.
6464 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6465 changes.
6466 (tdesc_get_features_xml): Likewise.
6467 (tdesc_create_feature): Likewise.
6468
5cd3e386
AH
64692018-03-26 Alan Hayward <alan.hayward@arm.com>
6470
6471 * regcache.c (find_register_by_number): Return a ref.
6472 (find_regno): Use references.
6473 (register_size): Likewise.
6474 (register_data): Likewise.
6475 * tdesc.c (target_desc::~target_desc): Remove free calls.
6476 (target_desc::operator==): Use std::vector compare.
6477 (init_target_desc): Use reference.
6478 (tdesc_create_reg): Use reg constructors.
6479 * tdesc.h (struct target_desc): Replace pointer with object.
6480
dff7492c
AH
64812018-03-23 Alan Hayward <alan.hayward@arm.com>
6482
6483 * regcache.c (find_register_by_number): Make static.
6484 (find_regno): Use find_register_by_number
6485 * regcache.h (struct reg): Remove declaration.
6486
d80e5242
AH
64872018-03-23 Alan Hayward <alan.hayward@arm.com>
6488
6489 * tdesc.c (target_desc::~target_desc): Move to here.
6490 (target_desc::operator==): Likewise.
6491 * tdesc.h (target_desc::~target_desc): Move from here.
6492 (target_desc::operator==): Likewise.
6493
f69c5afb
AA
64942018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6495
6496 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6497
ce29f843
AA
64982018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6499
6500 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6501 S390_TDESC_GS.
6502 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6503 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6504 and init_registers_s390_gs_linux64.
6505
c49bd90b
AA
65062018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6507
6508 * linux-s390-low.c (s390_fill_gs): Remove function.
6509 (s390_fill_gsbc): Remove function.
6510 (s390_regsets): Set fill functions for the guarded storage regsets
6511 to NULL.
6512
7edb9bd3
AA
65132018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6514
6515 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6516 the word size. Add comment.
6517 (s390_get_wordsize): New function.
6518 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6519 pswm with it. Instead, use s390_get_wordsize to determine the
6520 word size first and derive the correct tdesc from that directly.
6521
39be3c7e
SM
65222018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6523
6524 * Makefile.in: Include silent-rules.mk.
6525 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6526 (COMPILE): Add ECHO_CXX.
6527 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6528 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6529 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6530 (version-generated.c): Add ECHO_GEN.
6531 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6532 (IPAGENT_COMPILE): Add ECHO_CXX.
6533 (%-generated.c): Add ECHO_REGDAT.
6534
3ae9ce5d
TT
65352018-03-14 Tom Tromey <tom@tromey.com>
6536
6537 PR cli/14977:
6538 * ax.c (ax_printf): Special case for NULL.
6539
e6a58aa8
SM
65402018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6541
6542 * linux-low.c (linux_qxfer_libraries_svr4): Use
6543 xml_escape_text_append.
6544
f6e8a41e
SM
65452018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6546
6547 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6548
b9671caf
SM
65492018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6550
6551 * server.c (handle_general_set): Remove unnecessary xstrdup.
6552
e80aaf61
SM
65532018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6554
6555 * server.c (parse_debug_format_options): Adjust to
6556 delim_string_to_char_ptr_vec changes.
6557 * thread-db.c (thread_db_load_search): Adjust to
6558 dirnames_to_char_ptr_vec changes.
6559
b1223e78
MM
65602018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6561
6562 * target.h (target_enable_btrace, target_disable_btrace)
6563 (target_read_btrace, target_read_btrace_conf): Turn macro into
6564 inline function. Throw error if target method is not defined.
6565 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6566 check for btrace target method. Be prepared to handle exceptions
6567 from btrace target methods.
6568
81561546
SDJ
65692018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6570
6571 * server.c (captured_main): Change order of error message printed
6572 when the current working directory cannot be found.
6573
25e3c82c
SDJ
65742018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6575
6576 * server.c: Include "filenames.h" and "pathstuff.h".
6577 (program_name): Delete variable.
6578 (program_path): New anonymous class.
6579 (get_exec_wrapper): Use "program_path" instead of
6580 "program_name".
6581 (handle_v_run): Likewise.
6582 (captured_main): Likewise.
6583 (process_serial_event): Likewise.
6584
b4987c95
SDJ
65852018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6586
6587 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6588 (OBJS): Add "pathstuff.o".
6589 * server.c (current_directory): New global variable.
6590 (captured_main): Initialize "current_directory".
6591
f46cd62a
AH
65922018-02-26 Alan Hayward <alan.hayward@arm.com>
6593
6594 * tdesc.c: Use common/tdesc.h.
6595 * tdesc.h: Likewise.
6596
a543c5ca
AH
65972018-02-20 Alan Hayward <alan.hayward@arm.com>
6598 Simon Marchi <simon.marchi@ericsson.com>
6599
6600 * Makefile.in: Switch order of make rules.
6601
b5884fa7
AH
66022018-02-19 Alan Hayward <alan.hayward@arm.com>
6603
6604 * Makefile.in: Add common directory in build.
6605 * configure.ac: Add common reference.
6606 * configure: Regenerate.
6607
de6242d3
MM
66082018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6609
6610 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6611 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6612 * spu-low.c (spu_target_ops): Likewise.
6613 * win32-low.c (win32_target_ops): Likewise.
6614 * server.c (supported_btrace_packets): Report packets unconditionally.
6615 * target.h (target_ops) <supports_btrace>: Remove.
6616 (target_supports_btrace): Remove.
6617
9ee23a85
MM
66182018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6619
6620 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6621 (handle_btrace_disable): Change return type to void. Use exceptions
6622 to report errors.
6623 (handle_btrace_general_set): Catch exception and copy message to
6624 return message.
6625
8ce47547
TT
66262018-02-08 Tom Tromey <tom@tromey.com>
6627
6628 * linux-low.c (install_software_single_step_breakpoints): Use
6629 make_scoped_restore.
6630 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6631 (do_restore_current_thread_cleanup): Remove.
6632 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6633 declare.
6634
45dd3607
TT
66352018-02-08 Tom Tromey <tom@tromey.com>
6636
6637 * mem-break.c (set_raw_breakpoint_at): Use
6638 gdb::unique_xmalloc_ptr.
6639
e671cd59
PA
66402018-01-30 Pedro Alves <palves@redhat.com>
6641
6642 PR gdb/13211
6643 * target.c (target_terminal::terminal_state): Rename to ...
6644 (target_terminal::m_terminal_state): ... this.
6645
a0aad537
JC
66462018-01-19 James Clarke <jrtc27@jrtc27.com>
6647
6648 * linux-low.c (handle_extended_wait): Surround call to
6649 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6650
4d9b86e1
SM
66512018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6652
6653 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6654 linux_ptrace_attach_fail_reason_string now returning an
6655 std::string.
6656 (linux_attach): Likewise.
6657 * thread-db.c (attach_thread): Likewise.
6658
f517c180
EA
66592018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6660
6661 PR gdb/21559
6662 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6663 checking for fs_base/gs_base fields in struct user_regs_struct.
6664 * configure: Regenerate.
6665
9a70f35c
YQ
66662018-01-16 Yao Qi <yao.qi@linaro.org>
6667
6668 PR gdb/18749
6669 * linux-low.c (fetch_register): Call supply_register instead of
6670 error.
6671
605fd3c6
YQ
66722018-01-08 Yao Qi <yao.qi@linaro.org>
6673 Simon Marchi <simon.marchi@ericsson.com>
6674
6675 * Makefile.in (OBS): Remove selftest.o.
6676 * configure.ac: Set srv_selftest_objs if $development is true.
6677 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6678 * configure: Re-generated.
6679 * server.c (captured_main): Wrap variable selftest_filter with
6680 GDB_SELF_TEST.
6681
2cc05030
SM
66822018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6683
6684 * server.c (parse_debug_format_options): Return std::string.
6685 (handle_monitor_command, captured_main): Adjust.
6686
e379cee6
PA
66872018-01-05 Pedro Alves <palves@redhat.com>
6688
6689 PR gdb/18653
6690 * server.c (captured_main): Pass quiet=false to
6691 save_original_signals_state.
6692
82e1e79a
JB
66932018-01-01 Joel Brobecker <brobecker@adacore.com>
6694
6695 * gdbreplay.c (gdbreplay_version): Update copyright year in
6696 version message.
6697 * server.c (gdbserver_version): Likewise.
6698
8e481c3b
TT
66992017-12-08 Tom Tromey <tom@tromey.com>
6700
6701 * ax.c (ax_printf): Update.
6702
a8806230
YQ
67032017-12-07 Yao Qi <yao.qi@linaro.org>
6704
6705 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6706 aarch64_linux_read_description.
6707 * linux-amd64-ipa.c (idx2mask): New array.
6708 (get_ipa_tdesc): Move idx2mask out.
6709 (initialize_low_tracepoint): Initialize target descriptions.
6710 * linux-i386-ipa.c (idx2mask): New array.
6711 (get_ipa_tdesc): Move idx2mask out.
6712 (initialize_low_tracepoint): Initialize target descriptions.
6713
d4a0e8b5
SM
67142017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6715
6716 * tdesc.c (struct tdesc_type): Change return type.
6717 (tdesc_add_flag): Change parameter type.
6718 (tdesc_add_bitfield): Likewise.
6719 (tdesc_add_field): Likewise.
6720 (tdesc_set_struct_size): Likewise.
6721
798a7429
SM
67222017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6723
6724 * regcache.c (registers_to_string): Remove unused variable.
6725
c0e15c9b
SM
67262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6727
6728 * inferiors.c (for_each_inferior_with_data): Remove.
6729 * inferiors.h (for_each_inferior_with_data): Remove.
6730 * server.c (handle_qxfer_threads_worker): Change parameter type.
6731 (handle_qxfer_threads_proper): Use for_each_thread.
6732
f0045347
SM
67332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6734
6735 * inferiors.c (for_each_inferior): Remove.
6736 (clear_inferiors): Use for_each_thread.
6737 * inferiors.h (for_each_inferior): Remove.
6738 * linux-low.c (linux_wait_for_event_filtered): Use
6739 for_each_thread.
6740 (linux_stabilize_threads): Likewise.
6741 * regcache.c (regcache_release): Likewise.
6742 * server.c (gdb_wants_all_threads_stopped): Likewise.
6743 (clear_pending_status_callback): Remove.
6744 (handle_status): Use for_each_thread.
6745 (captured_main): Likewise.
6746 * win32-low.c (child_init_thread_list): Likewise.
6747 (win32_clear_inferiors): Likewise.
6748 (fake_breakpoint_event): Likewise.
6749
9521758b
SM
67502017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6751
6752 * inferiors.h (find_inferior): Remove.
6753 * inferiors.c (find_inferior): Remove.
6754
8f86d7aa
SM
67552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6756
6757 * linux-low.c (resume_status_pending_p): Update comment.
6758 (need_step_over_p): Update comment.
6759
e2b44075
SM
67602017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6761
6762 * linux-low.c (proceed_one_lwp): Return void, change parameter
6763 type.
6764 (unsuspend_and_proceed_one_lwp): Likewise.
6765 (proceed_all_lwps): Use for_each_thread.
6766 (unstop_all_lwps): Likewise.
6767
c80825ff
SM
67682017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6769
6770 * linux-low.c (linux_resume_one_thread): Return void, take
6771 parameter directly.
6772 (linux_resume): Use for_each_thread.
6773
df3e4dbe
SM
67742017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6775
6776 * linux-low.c (send_sigstop_callback): Return void, change
6777 parameter type. Rename to...
6778 (send_sigstop): ... this.
6779 (suspend_and_send_sigstop_callback): Return void, change parameter
6780 type. Rename to...
6781 (suspend_and_send_sigstop): ... this.
6782 (stop_all_lwps): Use for_each_thread.
6783
5a6b0a41
SM
67842017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6785
6786 * linux-low.c (lwp_running): Return bool, remove unused
6787 argument.
6788 (linux_stabilize_threads): Use find_thread.
6789
39a64da5
SM
67902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6791
6792 * linux-low.c (select_singlestep_lwp_callback): Remove.
6793 (count_events_callback): Remove.
6794 (select_event_lwp_callback): Remove.
6795 (select_event_lwp): Use find_thread/for_each_thread.
6796
a1385b7b
SM
67972017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * linux-low.c (not_stopped_callback): Return bool, take filter
6800 argument directly.
6801 (linux_wait_for_event_filtered): Use find_thread.
6802 (linux_wait_1): Likewise.
6803
454296a2
SM
68042017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6805
6806 * linux-low.c (same_lwp): Remove.
6807 (find_lwp_pid): Use find_thread.
6808
6b2a85da
SM
68092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6810
6811 * linux-low.c (delete_lwp_callback): Remove.
6812 (linux_mourn): Use for_each_thread.
6813
798a38e8
SM
68142017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6815
6816 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6817 args parameter, don't check for pid.
6818 (linux_detach): Use for_each_thread.
6819
e4eb0dec
SM
68202017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6821
6822 * linux-low.c (struct counter): Remove.
6823 (second_thread_of_pid_p): Remove.
6824 (last_thread_of_process_p): Use find_thread.
6825
83e1b6c1
SM
68262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6827
6828 * inferiors.c (find_inferior_in_random): Remove.
6829 * inferiors.h (find_inferior_in_random): Remove.
6830 * linux-low.c (status_pending_p_callback): Return bool, accept
6831 parameter ptid directly.
6832 (linux_wait_for_event_filtered): Use find_thread_in_random.
6833 (linux_wait_1): Likewise.
6834
8dc7b443
SM
68352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6836
6837 * inferiors.c (find_inferior_id): Remove.
6838 (find_thread_ptid): Move implemention from find_inferior_id to
6839 here.
6840 * inferiors.h (find_inferior_id): Remove.
6841 * server.c (handle_status): Use find_thread_ptid.
6842 (process_serial_event): Likewise.
6843 * thread-db.c (find_one_thread): Likewise.
6844 (thread_db_thread_handle): Likewise.
6845 * win32-low.c (thread_rec): Likewise.
6846 (child_delete_thread): Likewise.
6847 (win32_thread_alive): Likewise.
6848 (get_child_debug_event): Likewise.
6849
da25033c
SM
68502017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6851
6852 * linux-mips-low.c (update_watch_registers_callback): Return
6853 void, remove pid_p parameter, don't check for pid.
6854 (mips_insert_point, mips_remove_point): Use for_each_thread.
6855
c91bb56b
SM
68562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6857
6858 * lynx.low (lynx_delete_thread_callback): Remove.
6859 (lynx_mourn): Use for_each_thread.
6860
634a3254
SM
68612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6862
6863 * regcache.c (regcache_invalidate_one): Remove.
6864 (regcache_invalidate_pid): use for_each_thread.
6865
41272101
TT
68662017-11-26 Tom Tromey <tom@tromey.com>
6867
6868 * linux-low.c (linux_create_inferior): Update.
6869
f5291a6f
UW
68702017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6871
6872 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6873
6654d750
AH
68742017-11-24 Alan Hayward <alan.hayward@arm.com>
6875
6876 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6877 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6878 * linux-aarch64-tdesc-selftest.c: New file.
6879 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6880
68812017-11-24 Alan Hayward <alan.hayward@arm.com>
6882
6883 * configure.srv: Add new file.
6884 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6885 * linux-aarch64-tdesc-selftest.c: New file.
6886 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6887
49bdb7ee
AH
68882017-11-24 Alan Hayward <alan.hayward@arm.com>
6889
6890 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6891 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6892 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6893
d6d7ce56
AH
68942017-11-24 Alan Hayward <alan.hayward@arm.com>
6895
6896 * configure.srv: Add new files.
6897 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6898 aarch64_linux_read_description.
6899 * linux-aarch64-low.c (aarch64_linux_read_description):
6900 Merge with aarch64_arch_setup.
6901 (aarch64_arch_setup): Call aarch64_linux_read_description.
6902 * linux-aarch64-tdesc.c: New file.
6903 * linux-aarch64-tdesc.h: New file.
6904
506fe5f4
YQ
69052017-11-24 Yao Qi <yao.qi@linaro.org>
6906
6907 * configure.srv: Set $srv_regobj for tic6x-linux.
6908 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6909 (tic6x_read_description): Move some code to tic6x_arch_setup.
6910 (tic6x_tdesc_test): New function.
6911 (initialize_low_arch): Call selftests::register_test.
6912
29f9a567
YQ
69132017-11-22 Yao Qi <yao.qi@linaro.org>
6914
6915 * remote-utils.c (prepare_resume_reply): Use memcpy.
6916
578290ec
SM
69172017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6918
6919 * linux-low.c (kill_one_lwp_callback): Return void, take
6920 argument directly, don't filter on pid.
6921 (linux_kill): Use for_each_thread.
6922
eca55aec
SM
69232017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6924
6925 * linux-low.c (need_step_over_p): Return bool, remove dummy
6926 argument.
6927 (linux_resume, proceed_all_lwps): Use find_thread.
6928
25c28b4d
SM
69292017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6930
6931 * linux-low.c (resume_status_pending_p): Return bool, remove
6932 flag_p argument.
6933 (linux_resume): Use find_thread.
6934
5fdda392
SM
69352017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6936
6937 * linux-low.c (struct thread_resume_array): Remove.
6938 (linux_set_resume_request): Return void, take arguments
6939 directly.
6940 (linux_resume): Use for_each_thread.
6941
fcb056a5
SM
69422017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6943
6944 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6945 return bool, remove data argument.
6946 (linux_stabilize_threads): Use find_thread.
6947
139720c5
SM
69482017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6949
6950 * linux-low.c (unsuspend_one_lwp): Remove.
6951 (unsuspend_all_lwps): Use for_each_thread, inline code from
6952 unsuspend_one_lwp.
6953
6d1e5673
SM
69542017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6955
6956 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6957 * linux-low.c (struct iterate_over_lwps_args): Remove.
6958 (iterate_over_lwps_filter): Remove.
6959 (iterate_over_lwps): Use find_thread.
6960
bbf550d5
SM
69612017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6962
6963 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6964 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6965 code from reset_lwp_ptrace_options_callback.
6966
00192f77
SM
69672017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6968
6969 * linux-arm-low.c (struct update_registers_data): Remove.
6970 (update_registers_callback): Return void, take arguments
6971 directly, don't check thread's pid.
6972 (arm_insert_point, arm_remove_point): Use for_each_thread.
6973
2bee2b6c
SM
69742017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6975
6976 * win32-low.c (continue_one_thread): Return void, take argument
6977 directly.
6978 (child_continue): Use for_each_thread.
6979
0b360f19
SM
69802017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6981
6982 * win32-i386-low.c (update_debug_registers_callback): Rename
6983 to ...
6984 (update_debug_registers): ... this, return void, remove pid_p arg.
6985 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6986
f27866ba
SM
69872017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6988
6989 * inferiors.h (struct process_info): Add constructor, initialize
6990 fields..
6991 <syscalls_to_catch>: Change type to std::vector<int>.
6992 * inferiors.c (add_process): Allocate process_info with new.
6993 (remove_process): Free process_info with delete.
6994 * linux-low.c (handle_extended_wait): Adjust.
6995 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6996 * server.c (handle_general_set): Adjust.
6997
e849ea89
PA
69982017-11-16 Pedro Alves <palves@redhat.com>
6999
7000 * remote-utils.c (remote_close): Block SIGIO signals instead of
7001 uninstalling the SIGIO handler.
7002
1d0aa65c
AH
70032017-11-16 Alan Hayward <alan.hayward@arm.com>
7004
7005 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
7006
3491a34c
YQ
70072017-11-16 Yao Qi <yao.qi@linaro.org>
7008
7009 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
7010 (tic6x_store_gregset): Likewise.
7011 (tic6x_usrregs_info): Move it up.
7012
a602f924
AH
70132017-11-15 Alan Hayward <alan.hayward@arm.com>
7014
7015 * Makefile.in: Update arch rules.
7016 * configure.srv: Explicitly mark arch/ files.
7017
5616b6c3
AS
70182017-11-13 Andreas Schwab <schwab@suse.de>
7019
7020 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7021 function.
7022 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7023
d1928160
PA
70242017-11-06 Pedro Alves <palves@redhat.com>
7025
7026 * config.in, configure: Regenerate.
7027
bac608e7
SM
70282017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7029
7030 * target.c (struct thread_search): Remove.
7031 (thread_search_callback): Remove.
7032 (prepare_to_access_memory): Use for_each_thread instead of
7033 find_inferior. Inline code from thread_search_callback.
7034
eaddb425
SM
70352017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7036
7037 * server.c (struct visit_actioned_threads_data): Remove.
7038 (visit_actioned_threads): Change prototype to take arguments
7039 directly.
7040 (resume): Use find_thread instead of find_inferior.
7041
99078d34
SM
70422017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7043
7044 * server.c (queue_stop_reply_callback): Change prototype, return
7045 void.
7046 (find_status_pending_thread_callback): Remove.
7047 (handle_status): Replace find_inferior with find_thread and
7048 for_each_thread.
7049
cc628f3d
AH
70502017-10-25 Alan Hayward <alan.hayward@arm.com>
7051
7052 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7053 with REGNO.
7054 (aarch64_store_gregset): Likewise.
7055 (aarch64_fill_fpregset): Likewise.
7056 (aarch64_store_fpregset): Likewise.
7057
4d3bb80e
SM
70582017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7059
7060 * gdbthread.h (find_thread, for_each_thread): New functions.
7061 * inferiors.c (thread_of_pid): Remove.
7062 (find_any_thread_of_pid): Use find_thread.
7063 * linux-low.c (num_lwps): Use for_each_thread.
7064
7a7cdfa0
YQ
70652017-10-17 Yao Qi <yao.qi@linaro.org>
7066
7067 * Makefile.in: Remove one rule.
7068 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7069
e675d170
YQ
70702017-10-17 Yao Qi <yao.qi@linaro.org>
7071
7072 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7073 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7074
7eb4e0f9
YQ
70752017-10-17 Yao Qi <yao.qi@linaro.org>
7076
7077 * configure.srv: Rename arm.o with arch/arm.o.
7078
60d6cfc9
YQ
70792017-10-17 Yao Qi <yao.qi@linaro.org>
7080
7081 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7082 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7083 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7084 (arch-i386.o, arch-amd64.o): Remove rules.
7085 (arch/%.o): New rule.
7086 Update POSTCOMPILE and COMPILE.pre.
7087 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7088 * configure: Re-generated.
7089 * configure.srv: Replace arch-i386.o with arch/i386.o.
7090 Replace arch-amd64.o with arch/amd64.o.
7091
5bfda255
YQ
70922017-10-16 Yao Qi <yao.qi@linaro.org>
7093
7094 * configure: Regenerated.
7095
9c80ecd6
SM
70962017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7097
7098 * inferiors.h: (struct inferior_list): Remove.
7099 (struct inferior_list_entry); Remove.
7100 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7101 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7102 get_first_inferior): Remove.
7103 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7104 find_inferior_id, find_inferior_in_random): Change signature.
7105 * inferiors.c (all_threads): Change type to
7106 std::list<thread_info *>.
7107 (get_thread): Remove macro.
7108 (find_inferior, find_inferior_id): Change signature, implement
7109 using find_thread.
7110 (find_inferior_in_random): Change signature, implement using
7111 find_thread_in_random.
7112 (for_each_inferior, for_each_inferior_with_data): Change
7113 signature, implement using for_each_thread.
7114 (add_inferior_to_list, remove_inferior): Remove.
7115 (add_thread, get_first_thread, thread_of_pid,
7116 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7117 (get_first_inferior, one_inferior_p, clear_inferior_list):
7118 Remove.
7119 (clear_inferiors, get_thread_process): Update.
7120 * gdbthread.h: Include <list>.
7121 (struct thread_info) <entry>: Remove field.
7122 <id>: New field.
7123 (all_threads): Change type to std::list<thread_info *>.
7124 (get_first_inferior): Add doc.
7125 (find_thread, for_each_thread, find_thread_in_random): New
7126 functions.
7127 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7128 * linux-arm-low.c (update_registers_callback): Update.
7129 * linux-low.c (second_thread_of_pid_p): Update.
7130 (kill_one_lwp_callback, linux_detach_lwp_callback,
7131 delete_lwp_callback, status_pending_p_callback, same_lwp,
7132 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7133 iterate_over_lwps, not_stopped_callback,
7134 resume_stopped_resumed_lwps, count_events_callback,
7135 select_singlestep_lwp_callback, select_event_lwp_callback,
7136 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7137 suspend_and_send_sigstop_callback, wait_for_sigstop,
7138 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7139 lwp_running, linux_set_resume_request, resume_status_pending_p,
7140 need_step_over_p, start_step_over, linux_resume_one_thread,
7141 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7142 reset_lwp_ptrace_options_callback): Update.
7143 * linux-mips-low.c (update_watch_registers_callback): Update.
7144 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7145 Update.
7146 (free_register_cache_thread_one): Remove.
7147 (regcache_release): Update.
7148 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7149 handle_qxfer_threads_worker): Update.
7150 (handle_query): Update, use list iterator.
7151 (visit_actioned_threads, handle_pending_status,
7152 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7153 clear_pending_status_callback, set_pending_status_callback,
7154 find_status_pending_thread_callback, handle_status,
7155 process_serial_event): Update.
7156 * target.c (thread_search_callback): Update.
7157 * thread-db.c (thread_db_get_tls_address): Update.
7158 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7159 Update.
7160 * win32-i386-low.c (update_debug_registers_callback): Update.
7161 * win32-low.c (delete_thread_info, child_delete_thread,
7162 continue_one_thread, suspend_one_thread,
7163 get_child_debug_event): Adjust.
7164
9179355e
SM
71652017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7166
7167 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7168 * inferiors.h: Include <list>.
7169 (struct process_info) <entry>: Remove field.
7170 <pid>: New field.
7171 (pid_of): Change macro to function.
7172 (ptid_of, lwpid_of): Remove macro.
7173 (all_processes): Change type to std::list<process_info *>.
7174 (ALL_PROCESSES): Remove macro.
7175 (for_each_process, find_process): New function.
7176 * inferiors.c (all_processes): Change type to
7177 std::list<process_info *>.
7178 (find_thread_process): Adjust.
7179 (add_process): Likewise.
7180 (remove_process): Likewise.
7181 (find_process_pid): Likewise.
7182 (get_first_process): Likewise.
7183 (started_inferior_callback): Remove.
7184 (have_started_inferiors_p): Adjust.
7185 (attached_inferior_callback): Remove.
7186 (have_attached_inferiors_p): Adjust.
7187 * linux-low.c (check_zombie_leaders): Likewise.
7188 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7189 (x86_linux_update_xmltarget): Adjust.
7190 * server.c (handle_query): Likewise.
7191 (gdb_reattached_process): Remove.
7192 (handle_status): Adjust.
7193 (kill_inferior_callback): Likewise.
7194 (detach_or_kill_inferior): Remove.
7195 (print_started_pid): Likewise.
7196 (print_attached_pid): Likewise.
7197 (detach_or_kill_for_exit): Update.
7198 (process_serial_event): Likewise.
7199 * linux-arm-low.c (arm_new_fork): Likewise.
7200
c9cb8905
SM
72012017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7202
7203 * dll.h: Include <list>.
7204 (struct dll_info): Add constructor.
7205 <entry>: Remove field.
7206 (all_dlls): Change type to std::list<dll_info>.
7207 * dll.c: Include <algorithm>.
7208 (get_dll): Remove macro.
7209 (all_dlls): Change type to std::list<dll_info *>.
7210 (free_one_dll): Remove.
7211 (match_dll): Likewise.
7212 (loaded_dll): Adjust.
7213 (unloaded_dll): Adjust to all_dlls type change, use
7214 std::find_if. Inline code from match_dll.
7215 (clear_dlls): Adjust to all_dlls type change.
7216 * server.c (emit_dll_description): Remove.
7217 (handle_qxfer_libraries): Adjust to all_dlls type change,
7218 integrate emit_dll_description's functionality.
7219
04ec7890
SM
72202017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7221
7222 * linux-low.h (struct linux_target_ops) <delete_process>: New
7223 field.
7224 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7225 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7226 (struct linux_target_ops): Add delete_process callback.
7227 * linux-arm-low.c (arm_delete_process): New.
7228 (struct linux_target_ops): Add delete_process callback.
7229 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7230 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7231 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7232 * linux-mips-low.c (mips_linux_delete_process): New.
7233 (struct linux_target_ops): Add delete_process callback.
7234 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7235 * linux-s390-low.c (struct linux_target_ops): Likewise.
7236 * linux-sh-low.c (struct linux_target_ops): Likewise.
7237 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7238 * linux-tile-low.c (struct linux_target_ops): Likewise.
7239 * linux-x86-low.c (x86_linux_delete_process): New.
7240 (struct linux_target_ops): Add delete_process callback.
7241 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7242
466eecee
SM
72432017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7244
7245 * linux-aarch64-low.c (the_low_target): Add thread delete
7246 callback.
7247 * linux-arm-low.c (arm_delete_thread): New function.
7248 (the_low_target): Add thread delete callback.
7249 * linux-bfin-low.c (the_low_target): Likewise.
7250 * linux-crisv32-low.c (the_low_target): Likewise.
7251 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7252 set.
7253 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7254 field.
7255 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7256 * linux-mips-low.c (mips_linux_delete_thread): New function.
7257 (the_low_target): Add thread delete callback.
7258 * linux-ppc-low.c (the_low_target): Likewise.
7259 * linux-s390-low.c (the_low_target): Likewise.
7260 * linux-sh-low.c (the_low_target): Likewise.
7261 * linux-tic6x-low.c (the_low_target): Likewise.
7262 * linux-tile-low.c (the_low_target): Likewise.
7263 * linux-x86-low.c (the_low_target): Likewise.
7264 * linux-xtensa-low.c (the_low_target): Likewise.
7265
b79f7801
YZ
72662017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7267
7268 * win32-low.c: Include "common-inferior.h".
7269
bc3b087d
SDJ
72702017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7271
7272 * inferiors.c (set_inferior_cwd): New function.
7273 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7274 (handle_query): Inform that QSetWorkingDir is supported.
7275 * win32-low.c (create_process): Pass the inferior's cwd to
7276 CreateProcess.
7277
d092c5a2
SDJ
72782017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7279
7280 * inferiors.c (current_inferior_cwd): New global variable.
7281 (get_inferior_cwd): New function.
7282 * inferiors.h (struct process_info) <cwd>: New field.
7283
7da0a886
SDJ
72842017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7285
7286 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7287 (OBS): Add gdb_tilde_expand.o.
7288
289a6840
SM
72892017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7290
7291 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7292 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7293
256642e8
PA
72942017-09-29 Pedro Alves <palves@redhat.com>
7295
7296 * ax.c (gdb_parse_agent_expr): Constify.
7297 * ax.h (gdb_parse_agent_expr): Constify.
7298 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7299 Constify.
7300 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7301 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7302 * remote-utils.h (read_ptid): Constify.
7303 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7304 (process_point_options, process_serial_event): Constify.
7305 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7306 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7307 (cmd_qtbuffer): Constify.
7308
5b9ca4d4
PA
73092017-09-29 Pedro Alves <palves@redhat.com>
7310
7311 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7312 fails.
7313
94c207e0
PA
73142017-09-29 Pedro Alves <palves@redhat.com>
7315
7316 * linux-low.c (handle_extended_wait): Pass parent thread instead
7317 of process to thread_db_notice_clone.
7318 * linux-low.h (thread_db_notice_clone): Replace parent process
7319 parameter with parent thread parameter.
7320 * thread-db.c (find_one_thread): Add comment.
7321 (thread_db_notice_clone): Replace parent process parameter with
7322 parent thread parameter. Temporarily switch to the parent thread.
7323
75352e28
SDJ
73242017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7325
7326 * gdbthread.h: Include "common-gdbthread.h".
7327 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7328 "if" when validating the ptid.
7329 * remote-utils.c: Include "gdbthread.h".
7330 (prepare_resume_reply): Use "switch_to_thread".
7331 * target.c (done_accessing_memory): Likewise.
7332
ad339634
AA
73332017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7334
7335 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7336 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7337 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7338 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7339 s390x-gs-linux64-ipa.o to ipa_obj.
7340 * linux-s390-low.c (HWCAP_S390_GS): New define.
7341 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7342 New functions.
7343 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7344 (s390_arch_setup): Check for guarded-storage support and choose
7345 appropriate tdesc.
7346 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7347 init_registers_s390x_gs_linux64.
7348 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7349 enum value.
7350 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7351 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7352
cc4d742f
SM
73532017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7354
7355 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7356
f6327dcb
KB
73572017-09-21 Kevin Buettner <kevinb@redhat.com>
7358
7359 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7360 (thread_db_thread_handle): Declare.
7361 * linux-low.c (linux_target_ops): Initialize thread_handle.
7362 * server.c (handle_qxfer_threads_worker): Add support for
7363 "handle" attribute.
7364 * target.h (struct target_ops): Add new function pointer,
7365 thread_handle.
7366 (target_thread_handle): Define.
7367 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7368 field in lwp.
7369 (thread_db_thread_handle): New function.
7370
86299109
KB
73712017-09-21 Kevin Buettner <kevinb@redhat.com>
7372
7373 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7374 * linux-low.h (thread_db_notice_clone): Declare.
7375 * thread-db.c (thread_db_notice_clone): New function.
7376
f557a88a
PA
73772017-09-21 Pedro Alves <palves@redhat.com>
7378
7379 * server.c (gdb_read_memory, handle_status, process_serial_event)
7380 (handle_serial_event, handle_target_event): Adjust to
7381 set_desired_thread prototype change.
7382 * target.c (set_desired_thread): Remove 'use_general' parameter
7383 and adjust.
7384 * target.h (set_desired_thread): Remove 'use_general' parameter.
7385
223ffa71
TT
73862017-09-20 Tom Tromey <tom@tromey.com>
7387
7388 * target.c (target_terminal::terminal_state): Define.
7389 (target_terminal::init): Rename from target_terminal_init.
7390 (target_terminal::inferior): Rename from
7391 target_terminal_inferior.
7392 (target_terminal::ours): Rename from target_terminal_ours.
7393 (target_terminal::ours_for_output, target_terminal::info): New.
7394
04fd3ba9
SM
73952017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7396
7397 * server.c (accumulate_file_name_length): Remove.
7398 (emit_dll_description): Adjust to std::string change.
7399 (handle_qxfer_libraries): Use std::string to hold document.
7400
5e187554
SM
74012017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7402
7403 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7404 return type of xml_escape_text.
7405 * server.c (emit_dll_description): Likewise.
7406
1526853e
SM
74072017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7408
7409 * server.c (captured_main): Accept argument for --selftest.
7410 Update run_tests call.
7411 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7412 when registering selftests.
7413
c4dfafab
SDJ
74142017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7415
7416 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7417 instead of "VEC" for "target_desc.reg_defs".
7418 (regcache_cpy): Likewise.
7419 (registers_to_string): Likewise.
7420 (registers_from_string): Likewise.
7421 (find_regno): Likewise.
7422 (supply_regblock): Likewise.
7423 (regcache_raw_read_unsigned): Likewise.
7424 * tdesc.c (init_target_desc): Likewise.
7425 (tdesc_create_reg): Likewise.
7426 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7427 (struct target_desc) <reg_defs>: Convert to "std::vector".
7428 (target_desc): Do not initialize "reg_defs".
7429 (~target_desc): Update code to use "std::vector" instead of "VEC"
7430 for "target_desc.reg_defs".
7431 (operator==): Likewise.
7432
124aceb4
SM
74332017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7434
7435 * inferiors.h (thread_to_gdb_id): Remove.
7436 * inferiors.c (thread_to_gdb_id): Remove.
7437 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7438 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7439 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7440 Likewise.
7441 * nto-low.c (nto_fetch_registers, nto_store_registers,
7442 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7443
96cde54f
SM
74442017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7445
7446 * inferiors.h (gdb_id_to_thread_id): Remove.
7447 * inferiors.c (gdb_id_to_thread_id): Remove.
7448 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7449 removal. Move pid declaration closer to where it's used.
7450
e8ca139e
SM
74512017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7452
7453 * server.c (handle_detach): New function.
7454 (process_serial_event): Move code out, call handle_detach.
7455
f8a4e119
SM
74562017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7457
7458 * server.c (require_running): Rename to ...
7459 (require_running_or_return): ... this ...
7460 (require_running_or_break): ... and this.
7461 (handle_query, process_serial_event): Adjust.
7462
0eb0a407
SM
74632017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7464
7465 * linux-low.c (linux_set_resume_request): Remove unused
7466 variables.
7467
785922a5
SM
74682017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7469
7470 * server.c (first_thread_of): Remove.
7471 (process_serial_event): Replace usage of first_thread_of with
7472 find_any_thread_of_pid.
7473 * tracepoint.c (same_process_p): Remove.
7474 (gdb_agent_about_to_close): Replace usage of same_process_p with
7475 find_any_thread_of_pid.
7476 * linux-x86-low.c (same_process_callback): Remove.
7477 (x86_arch_setup_process_callback): Replace usage of
7478 same_process_callback with find_any_thread_of_pid.
7479 * thread-db.c (any_thread_of): Remove.
7480 (switch_to_process): Replace usage of any_thread_of with
7481 find_any_thread_of_pid.
7482 * inferiors.c (thread_pid_matches_callback): Remove.
7483 (find_thread_process): Adjust to use find_any_thread_of_pid.
7484
a059f00c
SDJ
74852017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7486
7487 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7488 with "!VEC_empty".
a059f00c 7489
cc397f3a
SDJ
74902017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7491
7492 * linux-low.c (handle_extended_wait): Use
7493 "allocate_target_description" instead of "XNEW".
7494 * linux-x86-low.c (initialize_low_arch): Likewise.
7495
22916b07
YQ
74962017-09-05 Yao Qi <yao.qi@linaro.org>
7497
7498 * configure.srv (srv_i386_regobj): Remove.
7499 (srv_amd64_regobj): Remove.
7500 (srv_regobj): Set it to "" for x86 non-linux targets.
7501 * linux-x86-tdesc.c (i386_linux_read_description):
7502 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7503 (init_registers_i386): Remove the declaration.
7504 (tdesc_i386): Remove the declaration.
7505 (lynx_i386_arch_setup): Call i386_create_target_description.
7506 * nto-x86-low.c: Likewise.
7507 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7508 [!__x86_64__]: include arch/i386.h.
7509 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7510
38602d55
YQ
75112017-09-05 Yao Qi <yao.qi@linaro.org>
7512
7513 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7514 i386/amd64-XXX-linux from it.
7515
44b886ff
YQ
75162017-09-05 Yao Qi <yao.qi@linaro.org>
7517
7518 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7519 false.
7520 (ipa_amd64_linux_regobj): Remove.
7521 (ipa_x32_linux_regobj): Remove.
7522
b4570e4b
YQ
75232017-09-05 Yao Qi <yao.qi@linaro.org>
7524
7525 * Makefile.in (arch-amd64.o): New rule.
7526 * configure.srv: Append arch-amd64.o.
7527 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7528 (get_ipa_tdesc): Call amd64_linux_read_description.
7529 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7530 and init_registers_amd64_XXX.
7531 * linux-x86-low.c (x86_linux_read_description): Call
7532 amd64_linux_read_description.
7533 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7534 (initialize_low_arch): Don't call init_registers_x32_XXX and
7535 init_registers_amd64_XXX.
7536 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7537 and tdesc_amd64_XXX.
7538 [__x86_64__] (amd64_tdesc_test): New function.
7539 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7540 and init_registers_amd64_XXX.
7541 * linux-x86-tdesc.c: Include arch/amd64.h.
7542 (xcr0_to_tdesc_idx): New function.
7543 (i386_linux_read_description): New function.
7544 (amd64_get_ipa_tdesc_idx): New function.
7545 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7546 (amd64_get_ipa_tdesc): Declare.
7547
d1f28ea2
YQ
75482017-09-05 Yao Qi <yao.qi@linaro.org>
7549
7550 * configure.srv (srv_i386_linux_xmlfiles): Remove
7551 i386/i386-XXX-linux.xml from it.
7552
25a93583
YQ
75532017-09-05 Yao Qi <yao.qi@linaro.org>
7554
7555 * configure.srv: Set srv_i386_linux_regobj empty if $development
7556 is false.
7557 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7558 initialize_low_tdesc.
7559 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7560 with #if initialize_low_tdesc.
7561 * linux-x86-tdesc-selftest.c: New file.
7562 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7563
5f035c07
YQ
75642017-09-05 Yao Qi <yao.qi@linaro.org>
7565
7566 * Makefile.in (arch-i386.o): New rule.
7567 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7568 (x86_64-*-linux*): Likewise.
7569 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7570 include arch/i386.h.
7571 (i386_linux_read_description): Remove code and call
7572 i386_create_target_description.
7573 * tdesc.c (allocate_target_description): New function.
7574 * tdesc.h (set_tdesc_architecture): Remove declaration.
7575 (set_tdesc_osabi): Likewise.
7576
0abe8a89
YQ
75772017-09-05 Yao Qi <yao.qi@linaro.org>
7578
7579 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7580 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7581 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7582 .xmltarget.
7583 * server.c (get_features_xml): Call tdesc_get_features_xml.
7584 * tdesc.c (set_tdesc_architecture): New function.
7585 (set_tdesc_osabi): New function.
7586 (tdesc_get_features_xml): New function.
7587 (tdesc_create_feature): Add an argument.
7588 * tdesc.h (struct target_desc) <features>: New field.
7589 <arch, osabi>: New field.
7590 (~target_desc): xfree features, arch, and osabi.
7591 (target_desc::oerator==): Don't compare .xmltarget.
7592 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7593 (set_tdesc_osabi): Likewise.
7594 (tdesc_get_features_xml): Likewise.
7595
0a188386
YQ
75962017-09-05 Yao Qi <yao.qi@linaro.org>
7597
7598 * linux-x86-tdesc.c: Include selftest.h.
7599 (i386_tdesc_test): New function.
7600 (initialize_low_tdesc): Call selftests::register_test.
7601 * tdesc.h: Include regdef.h.
7602 (target_desc): Override operator == and !=.
7603
f49ff000
YQ
76042017-09-05 Yao Qi <yao.qi@linaro.org>
7605
7606 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7607 (ipa_obj): Likewise.
7608 * linux-i386-ipa.c: Include common/x86-xstate.h
7609 (get_ipa_tdesc): Call i386_linux_read_description.
7610 (initialize_low_tracepoint): Don't call init_registers_XXX
7611 functions, call initialize_low_tdesc instead.
7612 * linux-x86-low.c (x86_linux_read_description): Call
7613 i386_linux_read_description.
7614 (initialize_low_arch): Don't call init_registers_i386_XXX
7615 functions, call initialize_low_tdesc.
7616 * linux-x86-tdesc.c: New file.
7617 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7618 (i386_get_ipa_tdesc_idx): Declare.
7619 (i386_get_ipa_tdesc): Declare.
7620 (initialize_low_tdesc): Declare.
7621
2b68ef2f
YQ
76222017-09-05 Yao Qi <yao.qi@linaro.org>
7623
7624 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7625 instead of 0.
7626
f7000548
YQ
76272017-09-05 Yao Qi <yao.qi@linaro.org>
7628
7629 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7630 * regcache.c (get_thread_regcache): Use VEC_length.
7631 (init_register_cache): Likewise.
7632 (regcache_cpy): Likewise.
7633 (registers_to_string): Iterate reg_defs via VEC_iterate.
7634 (find_regno): Likewise.
7635 (find_register_by_number): Use VEC_index.
7636 (register_size): Call find_register_by_number.
7637 (register_data): Call find_register_by_number.
7638 (supply_regblock): Use VEC_length.
7639 (regcache_raw_read_unsigned): Likewise.
7640 * tdesc.c (init_target_desc): Iterate reg_defs via
7641 VEC_iterate.
7642 (default_description): Update initializer.
7643 (copy_target_description): Don't update field num_registers.
7644 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7645 <num_registers>: Remove.
7646
50a421ac
SM
76472017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7648
7649 * Makefile.in (.SECONDARY): Define target.
7650
23fdd69e
SM
76512017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7652
7653 * linux-low.c (linux_wait_1): Adjust.
7654 * server.c (queue_stop_reply_callback): Adjust.
7655
0a2dde4a
SDJ
76562017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7657
7658 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7659 QEnvironmentUnset and QEnvironmentReset packets.
7660 (handle_query): Inform remote that QEnvironmentHexEncoded,
7661 QEnvironmentUnset and QEnvironmentReset are supported.
7662
6afd337d
SM
76632017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7664
7665 * inferiors.h (inferior_target_data): Rename to ...
7666 (thread_target_data): ... this.
7667 (inferior_regcache_data): Rename to ...
7668 (thread_regcache_data): ... this.
7669 (set_inferior_regcache_data): Rename to ...
7670 (set_thread_regcache_data): ... this.
7671 * inferiors.c (inferior_target_data): Rename to ...
7672 (thread_target_data): ... this.
7673 (inferior_regcache_data): Rename to ...
7674 (thread_regcache_data): ... this.
7675 (set_inferior_regcache_data): Rename to ...
7676 (set_thread_regcache_data): ... this.
7677 (free_one_thread): Update.
7678 * linux-low.h (get_thread_lwp): Update.
7679 * regcache.c (get_thread_regcache): Update.
7680 (regcache_invalidate_thread): Update.
7681 (free_register_cache_thread): Update.
7682 * win32-i386-low.c (update_debug_registers_callback): Update.
7683 (win32_get_current_dr): Update.
7684 * win32-low.c (thread_rec): Update.
7685 (delete_thread_info): Update.
7686 (continue_one_thread): Update.
7687 (suspend_one_thread): Update.
7688
a160cc46
SM
76892017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7690
7691 * inferiors.c (set_inferior_target_data): Remove.
7692 * inferiors.h (set_inferior_target_data): Remove.
7693
6d580b63
YQ
76942017-08-18 Yao Qi <yao.qi@linaro.org>
7695
7696 * Makefile.in (OBS): Add selftest.o.
7697 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7698 * configure, config.in: Re-generated.
7699 * server.c: Include common/sefltest.h.
7700 (captured_main): Handle option --selftest.
7701
f5a29eb0
YQ
77022017-08-09 Yao Qi <yao.qi@linaro.org>
7703
7704 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7705 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7706 i386-avx-mpx.o and i386-mmx.o.
7707 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7708 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7709 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7710 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7711 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7712 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7713 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7714 i386/amd64-avx-mpx.xml.
7715
57757c2f
YQ
77162017-08-09 Yao Qi <yao.qi@linaro.org>
7717
7718 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7719 and x32-avx-avx512.o.
7720 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7721 i386/x32-avx-avx512.xml.
7722
229d26fc
SM
77232017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7724
7725 * tracepoint.h (enum class fast_tpoint_collect_result): New
7726 enumeration.
7727 (fast_tracepoint_collecting): Change return type to
7728 fast_tpoint_collect_result.
7729 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7730 * linux-low.h: Include tracepoint.h.
7731 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7732 fast_tpoint_collect_result.
7733 * linux-low.c (handle_tracepoints): Adjust.
7734 (linux_fast_tracepoint_collecting): Change return type to
7735 fast_tpoint_collect_result.
7736 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7737 linux_wait_1, stuck_in_jump_pad_callback,
7738 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7739 proceed_one_lwp): Adjust to type change.
7740
2e1e43e1
YQ
77412017-07-10 Yao Qi <yao.qi@linaro.org>
7742
7743 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7744
adc764e7
YQ
77452017-06-29 Yao Qi <yao.qi@linaro.org>
7746
7747 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7748 Remove.
7749 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7750
a206891a
SM
77512017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7752
7753 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7754
9a6c7d9c
SDJ
77552017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7756
7757 * linux-low.c (linux_create_inferior): Adjust code to access the
7758 environment information via 'gdb_environ' class.
7759 * lynx-low.c (lynx_create_inferior): Likewise.
7760 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7761 (get_environ): Return a pointer to 'our_environ'.
7762 (captured_main): Initialize 'our_environ'.
7763 * server.h (get_environ): Adjust prototype.
7764 * spu-low.c (spu_create_inferior): Adjust code to access the
7765 environment information via 'gdb_environ' class.
7766
ae3e2ccf
SM
77672017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7768
7769 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7770 usage of "register" keyword.
7771
3e019bdc
SM
77722017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7773
7774 * configure: Re-generate.
7775
8465943a
SM
77762017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7777
7778 * configure: Re-generate.
7779
cf0dd6f0
SM
77802017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7781
7782 * Makefile.in (COMPILE.pre): Add "-x c++".
7783
9845682b
SDJ
77842017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7785
7786 * fork-child.c: Conditionally include <signal.h>.
7787
aefd8b33
SDJ
77882017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7789
7790 * server.c (handle_general_set): Handle new packet
7791 "QStartupWithShell".
7792 (handle_query): Add "QStartupWithShell" to the list of supported
7793 packets.
7794 (gdbserver_usage): Add help text explaining the
7795 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7796 options.
7797 (captured_main): Recognize and act upon the presence of the new
7798 CLI options.
7799
2090129c
SDJ
78002017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7801 Pedro Alves <palves@redhat.com>
7802
7803 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7804 * configure: Regenerate.
7805 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7806 "fork-inferior.o".
7807 (i[34567]86-*-lynxos*): Likewise.
7808 (spu*-*-*): Likewise.
7809 * fork-child.c: New file.
7810 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7811 and "environ.h".
7812 (linux_ptrace_fun): New function.
7813 (linux_create_inferior): Adjust function prototype to reflect
7814 change on "target.h". Adjust function code to use
7815 "fork_inferior".
7816 (linux_request_interrupt): Delete "signal_pid".
7817 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7818 (lynx_ptrace_fun): New function.
7819 (lynx_create_inferior): Adjust function prototype to reflect
7820 change on "target.h". Adjust function code to use
7821 "fork_inferior".
7822 * nto-low.c (nto_create_inferior): Adjust function prototype and
7823 code to reflect change on "target.h". Update comments.
7824 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7825 "common-terminal.h" and "environ.h".
7826 (terminal_fd): Moved to fork-child.c.
7827 (old_foreground_pgrp): Likewise.
7828 (restore_old_foreground_pgrp): Likewise.
7829 (last_status): Make it global.
7830 (last_ptid): Likewise.
7831 (our_environ): New variable.
7832 (startup_with_shell): Likewise.
7833 (program_name): Likewise.
7834 (program_argv): Rename to...
7835 (program_args): ...this.
7836 (wrapper_argv): New variable.
7837 (start_inferior): Delete function.
7838 (get_exec_wrapper): New function.
7839 (get_exec_file): Likewise.
7840 (get_environ): Likewise.
7841 (prefork_hook): Likewise.
7842 (post_fork_inferior): Likewise.
7843 (postfork_hook): Likewise.
7844 (postfork_child_hook): Likewise.
7845 (handle_v_run): Update code to deal with arguments coming from the
7846 remote host. Update calls from "start_inferior" to
7847 "create_inferior".
7848 (captured_main): Likewise. Initialize environment variable. Call
7849 "have_job_control".
7850 * server.h (post_fork_inferior): New prototype.
7851 (get_environ): Likewise.
7852 (last_status): Declare.
7853 (last_ptid): Likewise.
7854 (signal_pid): Likewise.
7855 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7856 (spu_ptrace_fun): New function.
7857 (spu_create_inferior): Adjust function prototype to reflect change
7858 on "target.h". Adjust function code to use "fork_inferior".
7859 * target.c (target_terminal_init): New function.
7860 (target_terminal_inferior): Likewise.
7861 (target_terminal_ours): Likewise.
7862 * target.h: Include <vector>.
7863 (struct target_ops) <create_inferior>: Update prototype.
7864 (create_inferior): Update macro.
7865 * utils.c (gdb_flush_out_err): New function.
7866 * win32-low.c (win32_create_inferior): Adjust function prototype
7867 and code to reflect change on "target.h".
7868
043a4934
SDJ
78692017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7870
7871 * inferiors.c (switch_to_thread): New function.
7872
15652511
SDJ
78732017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7874
7875 * Makefile.in (SFILE): Add "common/job-control.c".
7876 (OBS): Add "job-control.o".
7877
21ea5acd
SDJ
78782017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7879
7880 * Makefile: Remove "@host_makefile_frag@".
7881
e13cb306
PA
78822017-05-05 Pedro Alves <palves@redhat.com>
7883
7884 * configure: Regenerate.
7885
c94fee56
SDJ
78862017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7887
7888 * configure: Regenerate.
7889
a0ff9e1a
SM
78902017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7891
7892 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7893 software_single_step change of return type to
7894 std::vector<CORE_ADDR>.
7895 * linux-low.c (install_software_single_step_breakpoints):
7896 Likewise.
7897 * linux-low.h (install_software_single_step_breakpoints):
7898 Likewise.
7899
be628ab8
SDJ
79002017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7901
7902 * remote-utils.c: Include "gdb_termios.h" instead of
7903 "terminal.h".
7904 * terminal.h: Delete file.
7905
7c5ded6a
SDJ
79062017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7907
7908 * server.c: Include <vector>.
7909 <program_argv, wrapper_argv>: Convert to std::vector.
7910 (start_inferior): Rewrite function to use C++.
7911 (handle_v_run): Likewise. Update code that calculates the argv
7912 based on the vRun packet; use C++.
7913 (captured_main): Likewise.
7914
436252de
SM
79152017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7916
7917 * server.c (handle_v_cont): Initialize thread_resume::thread
7918 with null_ptid.
7919
9bf2a700
PA
79202017-04-05 Pedro Alves <palves@redhat.com>
7921
7922 * configure: Regenerate.
7923
a121b7c1
PA
79242017-04-05 Pedro Alves <palves@redhat.com>
7925
7926 * gdbreplay.c (sync_error): Constify.
7927 * linux-x86-low.c (push_opcode): Constify.
7928
21c8a587
PA
79292017-04-05 Pedro Alves <palves@redhat.com>
7930
7931 * win32-low.c (get_child_debug_event)
7932 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7933 Report TARGET_WAITKIND_SPURIOUS instead.
7934
fb32b4f7
PA
79352017-04-05 Pedro Alves <palves@redhat.com>
7936
e79be6e5
SM
7937 * remote-utils.c (remote_prepare, remote_open): Constify.
7938 * remote-utils.h (remote_prepare, remote_open): Constify.
7939 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7940
65dd1e59
SM
79412017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7942
7943 * Makefile.in (clean): Clear .deps.
7944
8fa5b777
SM
79452017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7946
7947 * .gitignore: Remove generated files, replace with wildcard.
7948 * (clean): Replace removal of generated files with wildcard.
7949 (version.c): Replace with...
7950 (version-generated.c): ...this.
7951 (xml-builtin.c): Replace with...
7952 (xml-builtin-generated.c): ...this.
7953 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7954 (%.c: *regformats*): Replace with...
7955 (%-generated.c: *regformats*): ...this.
7956
a12e714b
MF
79572017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7958
7959 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7960 (xtensa_fill_gregset): Call collect_register_by_name for
7961 threadptr register.
7962 (xtensa_store_gregset): Call supply_register_by_name for
7963 threadptr register.
7964
1a09b50a
MF
79652017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7966
7967 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7968 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7969 (xtensa_store_gregset): Call supply_register for all registers in
7970 a0_regnum..a0_regnum + C0_NREGS range.
7971
1a01e7c6
SM
79722017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7973
7974 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7975 (ax-ipa.o: ax.c): Remove.
7976 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7977 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7978 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7979 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7980 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7981
36bc18a8
SM
79822017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7983
7984 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7985 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7986 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7987 (errors-ipa.o: ../common/errors.c): Remove.
7988 (format-ipa.o: ../common/format.c): Remove.
7989 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7990
a8ebe3d5
SM
79912017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7992
7993 * Makefile.in (%-ipa.o: %.c): New rule.
7994 (tracepoint-ipa.o: tracepoint.c): Remove.
7995 (utils-ipa.o: utils.c): Remove.
7996 (remote-utils-ipa.o: remote-utils.c): Remove.
7997 (regcache-ipa.o: regcache.c): Remove.
7998 (i386-linux-ipa.o: i386-linux.c): Remove.
7999 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
8000 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
8001 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
8002 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
8003 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
8004 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
8005 (amd64-linux-ipa.o: amd64-linux.c): Remove.
8006 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
8007 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
8008 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
8009 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
8010 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
8011 (aarch64-ipa.o: aarch64.c): Remove.
8012 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8013 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8014 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8015 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8016 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8017 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8018 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8019 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8020 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8021 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8022 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8023 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8024 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8025 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8026 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8027 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8028 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8029 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8030 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8031 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8032 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8033 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8034 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8035 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8036 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8037 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8038 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8039 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8040 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8041 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8042 (tdesc-ipa.o: tdesc.c): Remove.
8043 (x32-linux-ipa.o: x32-linux.c): Remove.
8044 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8045 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8046
50cfacb7
SM
80472017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8048
8049 * Makefile.in (%.o: ../arch/%.c): New rule.
8050 (arm.o: ../arch/arm.c): Remove.
8051 (arm-linux.o: ../arch/arm-linux.c): Remove.
8052 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8053 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8054
c5a22423
SM
80552017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8056
8057 * Makefile.in (%.o: ../nat/%.c): New rule.
8058 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8059 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8060 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8061 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8062 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8063 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8064 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8065 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8066 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8067 (linux-personality.o: ../nat/linux-personality.c): Remove.
8068 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8069 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8070 (x86-linux.o: ../nat/x86-linux.c): Remove.
8071 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8072 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8073
6bda016b
SM
80742017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8075
8076 * Makefile.in (%.o: ../common/%.c): New rule.
8077 (signals.o: ../common/signals.c): Remove.
8078 (print-utils.o: ../common/print-utils.c): Remove.
8079 (rsp-low.o: ../common/rsp-low.c): Remove.
8080 (common-utils.o: ../common/common-utils.c): Remove.
8081 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8082 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8083 (vec.o: ../common/vec.c): Remove.
8084 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8085 (xml-utils.o: ../common/xml-utils.c): Remove.
8086 (ptid.o: ../common/ptid.c): Remove.
8087 (buffer.o: ../common/buffer.c): Remove.
8088 (format.o: ../common/format.c): Remove.
8089 (filestuff.o: ../common/filestuff.c): Remove.
8090 (agent.o: ../common/agent.c): Remove.
8091 (errors.o: ../common/errors.c): Remove.
8092 (environ.o: ../common/environ.c): Remove.
8093 (common-debug.o: ../common/common-debug.c): Remove.
8094 (cleanups.o: ../common/cleanups.c): Remove.
8095 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8096 (fileio.o: ../common/fileio.c): Remove.
8097 (common-regcache.o: ../common/common-regcache.c): Remove.
8098 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8099 (new-op.o: ../common/new-op.c): Remove.
8100 (btrace-common.o: ../common/btrace-common.c): Remove.
8101
21122961
SM
81022017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8103
8104 * Makefile.in (%.o: ../target/%.c): New rule.
8105 (waitstatus.o: ../target/waitstatus.c): Remove.
8106
c362e621
SM
81072017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8108
8109 * Makefile.in
8110 (%.c: ../regformats/%.dat,
8111 (%.c: ../regformats/arm/%.dat,
8112 (%.c: ../regformats/i386/%.dat,
8113 (%.c: ../regformats/rs6000/%.dat): New rules.
8114 (aarch64.c): Remove.
8115 (reg-arm.c): Remove.
8116 (arm-with-iwmmxt.c): Remove.
8117 (arm-with-vfpv2.c): Remove.
8118 (arm-with-vfpv3.c): Remove.
8119 (arm-with-neon.c): Remove.
8120 (reg-bfin.c): Remove.
8121 (reg-cris.c): Remove.
8122 (reg-crisv32.c): Remove.
8123 (i386.c): Remove.
8124 (i386-linux.c): Remove.
8125 (i386-avx.c): Remove.
8126 (i386-avx-linux.c): Remove.
8127 (i386-avx-avx512.c): Remove.
8128 (i386-avx-avx512-linux.c): Remove.
8129 (i386-mpx.c): Remove.
8130 (i386-mpx-linux.c): Remove.
8131 (i386-avx-mpx-avx512-pku.c): Remove.
8132 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8133 (i386-avx-mpx.c): Remove.
8134 (i386-avx-mpx-linux.c): Remove.
8135 (i386-mmx.c): Remove.
8136 (i386-mmx-linux.c): Remove.
8137 (reg-ia64.c): Remove.
8138 (reg-m32r.c): Remove.
8139 (reg-m68k.c): Remove.
8140 (reg-cf.c): Remove.
8141 (mips-linux.c): Remove.
8142 (mips-dsp-linux.c): Remove.
8143 (mips64-linux.c): Remove.
8144 (mips64-dsp-linux.c): Remove.
8145 (nios2-linux.c): Remove.
8146 (powerpc-32.c): Remove.
8147 (powerpc-32l.c): Remove.
8148 (powerpc-altivec32l.c): Remove.
8149 (powerpc-cell32l.c): Remove.
8150 (powerpc-vsx32l.c): Remove.
8151 (powerpc-isa205-32l.c): Remove.
8152 (powerpc-isa205-altivec32l.c): Remove.
8153 (powerpc-isa205-vsx32l.c): Remove.
8154 (powerpc-e500l.c): Remove.
8155 (powerpc-64l.c): Remove.
8156 (powerpc-altivec64l.c): Remove.
8157 (powerpc-cell64l.c): Remove.
8158 (powerpc-vsx64l.c): Remove.
8159 (powerpc-isa205-64l.c): Remove.
8160 (powerpc-isa205-altivec64l.c): Remove.
8161 (powerpc-isa205-vsx64l.c): Remove.
8162 (s390-linux32.c): Remove.
8163 (s390-linux32v1.c): Remove.
8164 (s390-linux32v2.c): Remove.
8165 (s390-linux64.c): Remove.
8166 (s390-linux64v1.c): Remove.
8167 (s390-linux64v2.c): Remove.
8168 (s390-te-linux64.c): Remove.
8169 (s390-vx-linux64.c): Remove.
8170 (s390-tevx-linux64.c): Remove.
8171 (s390x-linux64.c): Remove.
8172 (s390x-linux64v1.c): Remove.
8173 (s390x-linux64v2.c): Remove.
8174 (s390x-te-linux64.c): Remove.
8175 (s390x-vx-linux64.c): Remove.
8176 (s390x-tevx-linux64.c): Remove.
8177 (tic6x-c64xp-linux.c): Remove.
8178 (tic6x-c64x-linux.c): Remove.
8179 (tic6x-c62x-linux.c): Remove.
8180 (reg-sh.c): Remove.
8181 (reg-sparc64.c): Remove.
8182 (reg-spu.c): Remove.
8183 (amd64.c): Remove.
8184 (amd64-linux.c): Remove.
8185 (amd64-avx.c): Remove.
8186 (amd64-avx-linux.c): Remove.
8187 (amd64-avx-avx512.c): Remove.
8188 (amd64-avx-avx512-linux.c): Remove.
8189 (amd64-mpx.c): Remove.
8190 (amd64-mpx-linux.c): Remove.
8191 (amd64-avx-mpx-avx512-pku.c): Remove.
8192 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8193 (amd64-avx-mpx.c): Remove.
8194 (amd64-avx-mpx-linux.c): Remove.
8195 (x32.c): Remove.
8196 (x32-linux.c): Remove.
8197 (x32-avx.c): Remove.
8198 (x32-avx-linux.c): Remove.
8199 (x32-avx-avx512.c): Remove.
8200 (x32-avx-avx512-linux.c): Remove.
8201 (reg-xtensa.c): Remove.
8202 (reg-tilegx.c): Remove.
8203 (reg-tilegx32.c): Remove.
8204
1672e0d9
SDJ
82052017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8206
8207 * Makefile.in (SFILES): Add "common/environ.c".
8208 (OBJS): Add "common/environ.h".
8209
239b6d10
WT
82102017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8211
8212 * configure.ac: Check if the fs_base and gs_base members of
8213 `struct user_regs_struct' exist.
8214 * config.in: Regenerated.
8215 * configure: Likewise.
8216
694b382c
AT
82172017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8218
8219 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8220 target_read_memory.
8221 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8222 (get_next_pcs_syscall_next_pc): Likewise.
8223
7dc53023
LM
82242016-12-23 Luis Machado <lgustavo@codesourcery.com>
8225
8226 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8227 * nto-x86-low.c: Likewise.
8228
ad02e4fe
SM
82292016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8230
8231 * Makefile.in: Include disable-implicit-rules.mk.
8232
dcb07cfa
PA
82332016-11-23 Pedro Alves <palves@redhat.com>
8234
8235 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8236 (debug_vprintf): Use std::chrono::steady_clock instead of
8237 gettimeofday. Use '.' instead of ':'.
8238 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8239 (get_timestamp): Use std::chrono::steady_clock instead of
8240 gettimeofday.
8241
8629c02c
SM
82422016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8243
8244 * Makefile.in: Fix whitespace formatting.
8245
b593ecca
SM
82462016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8247
8248 * Makefile.in (SFILES, OBS): Flatten list and order
8249 alphabetically.
8250
9986ba08
PA
82512016-11-23 Pedro Alves <palves@redhat.com>
8252
8253 * event-loop.c (handle_file_event): Use warning.
8254 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8255 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8256 Use warning.
8257
4eefa7bc
PA
82582016-11-23 Pedro Alves <palves@redhat.com>
8259
8260 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8261 output.
8262 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8263 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8264 debug_printf and debug_flush for debug output.
8265 * server.c (handle_general_set): Likewise.
8266 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8267 output.
8268
5443506e
SM
82692016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8270
8271 * Makefile.in (.c.o): Replace rule with ...
8272 (%.o: %.c): ... this one.
8273
3b165252
SM
82742016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8275
8276 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8277 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8278 make.
8279 * configure.ac: Remove checks for the make program.
8280 * configure: Re-generate.
8281
0bcda685
PA
82822016-10-28 Pedro Alves <palves@redhat.com>
8283
8284 * Makefile.in (CXX_DIALECT): Get from configure.
8285 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8286 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8287 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8288 * config.in: Regenerate.
8289 * configure: Regenerate.
8290
c3805894
YQ
82912016-10-27 Yao Qi <yao.qi@linaro.org>
8292
8293 * linux-low.c (linux_supports_range_stepping): Return true if
8294 can_software_single_step return true.
8295
89342618
YQ
82962016-10-27 Yao Qi <yao.qi@linaro.org>
8297
8298 * inferiors.c (find_inferior_in_random): New function.
8299 * inferiors.h (find_inferior_in_random): Declare.
8300 * linux-low.c (linux_wait_for_event_filtered): Call
8301 find_inferior_in_random instead of find_inferior.
8302
e3652c84
YQ
83032016-10-27 Yao Qi <yao.qi@linaro.org>
8304
8305 * linux-low.c (linux_wait_1): If single-step breakpoints are
8306 inserted, remove them.
8307
5a04c4cf
PA
83082016-10-26 Pedro Alves <palves@redhat.com>
8309
8310 * linux-low.c (handle_extended_wait): Link parent/child fork
8311 threads.
8312 (linux_wait_1): Unlink them.
8313 (linux_set_resume_request): Ignore resume requests for
8314 already-resumed and unhandled fork child threads.
8315 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8316 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8317 New functions.
8318 (handle_v_requests) <vCont>: Don't call require_running.
8319 * server.h (in_queued_stop_replies): New declaration.
8320
cb93dc7f
YQ
83212016-10-24 Yao Qi <yao.qi@linaro.org>
8322
8323 PR server/20733
8324 * linux-aarch64-low.c (append_insns): Cast the return value to
8325 'uint32_t *'.
8326
a1078bea
YQ
83272016-10-10 Yao Qi <yao.qi@linaro.org>
8328
8329 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8330
1fb77080
SDJ
83312016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8332
8333 * target.c (target_supports_multi_process): New function, moved
8334 from...
8335 * target.h (target_supports_multi_process): ... here. Remove
8336 macro.
8337
39b5a3b9
TT
83382016-10-05 Tom Tromey <tom@tromey.com>
8339
8340 PR remote/20655:
8341 * tracepoint.c (handle_tracepoint_bkpts): Check
8342 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8343
c1d0b70a
YQ
83442016-10-05 Yao Qi <yao.qi@linaro.org>
8345
8346 * configure.srv: Update the path of arm-*.xml files.
8347
0a69eedb
YQ
83482016-10-05 Terry Guo <terry.guo@arm.com>
8349 Yao Qi <yao.qi@linaro.org>
8350
8351 * Makefile.in: Adjust the path of rules.
8352 * configure.srv: Update the path of xml files.
8353 * regformats/arm-with-iwmmxt.dat: Regenerated.
8354 * regformats/arm-with-neon.dat: Likewise.
8355 * regformats/arm-with-vfpv2.dat: Likewise.
8356 * regformats/arm-with-vfpv3.dat Likewise.
8357
17e16485
YQ
83582016-09-30 Yao Qi <yao.qi@linaro.org>
8359
8360 PR gdbserver/20627
8361 * target.c (target_stop_and_wait): Don't call
8362 target_continue_no_signal, use resume_stop instead.
8363
edeeb602
YQ
83642016-09-26 Yao Qi <yao.qi@linaro.org>
8365
8366 * linux-low.c (linux_wait_1): Call debug_exit.
8367
503b1c39
PA
83682016-09-23 Pedro Alves <palves@redhat.com>
8369
8370 * Makefile.in (SFILES): Add common/new-op.c.
8371 (OBS): Add common/new-op.o.
8372 (new-op.o): New rule.
8373
74172ecf
SM
83742016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8375
8376 * .gitinore: Ignore more files.
8377
fc6cda2e
YQ
83782016-09-21 Yao Qi <yao.qi@linaro.org>
8379
8380 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8381 23.
8382
bc1e6c81
SDJ
83832016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8384
8385 * server.c (start_inferior): Call target_mourn_inferior instead of
8386 mourn_inferior; pass ptid_t argument to it.
8387 (resume): Likewise.
8388 (handle_target_event): Likewise.
8389 * target.c (target_mourn_inferior): New function.
8390 * target.h (mourn_inferior): Delete macro.
8391
0e00e962
AA
83922016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8393
8394 * linux-low.c (lwp_is_stepping): New function.
8395
1d8cb77d
CL
83962016-09-06 Carl Love <cel@us.ibm.com>
8397
8398 * server.c (start_inferior): Fixed comment, requested comment change
8399 didn't get updated correctly. Removed reference to ptrace () call as
8400 it is only true on Linux systems.
8401
7313bced
CL
84022016-09-06 Carl Love <cel@us.ibm.com>
8403
8404 * server.c (start_inferior): Do not call
8405 function target_post_create_inferior () if the
8406 inferior process has already exited.
8407
cf6de44d
PA
84082016-09-05 Pedro Alves <palves@redhat.com>
8409
8410 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8411 (COMPILE.pre, CC_LD): Use CXX directly.
8412 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8413 * acinclude.m4: Don't include build-with-cxx.m4.
8414 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8415 * configure: Regenerate.
8416
c1da6748
AT
84172016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8418
8419 PR gdb/19495
8420 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8421 call writing data to own_buf.
8422
f2b9e3df
SDJ
84232016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8424
8425 * target.c (mywait): Call target_wait instead of
8426 the_target->wait.
8427 (target_wait): New function.
8428
049a8570
SDJ
84292016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8430
8431 * server.c (start_inferior): New variable 'ptid'. Replace calls
8432 to the_target->resume by target_continue{,_no_signal}, depending
8433 on the case.
8434 * target.c (target_stop_and_wait): Call target_continue_no_signal
8435 instead of the_target->resume.
8436 (target_continue): New function.
8437
3aa5cfa0
AT
84382016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8439
8440 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8441
754653a7
AZ
84422016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8443
8444 PR server/20491
8445 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8446 ps_prochandle.
8447 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8448 * linux-arm-low.c (ps_get_thread_area): Likewise.
8449 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8450 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8451 * linux-mips-low.c (ps_get_thread_area): Likewise.
8452 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8453 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8454 * linux-x86-low.c (ps_get_thread_area): Likewise.
8455 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8456
ed036b40
PA
84572016-08-19 Pedro Alves <palves@redhat.com>
8458
8459 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8460
c8ef42ee
PA
84612016-08-19 Pedro Alves <palves@redhat.com>
8462
8463 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8464 comment. Use memcpy instead of casting through unsigned long.
8465
9c235a72
PA
84662016-08-19 Pedro Alves <palves@redhat.com>
8467
8468 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8469 allocating around 0x80000000.
8470
201506da
PA
84712016-08-19 Pedro Alves <palves@redhat.com>
8472
8473 PR gdb/20415
8474 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8475 (x32-avx512-linux-ipa.o): New rules.
8476 * configure.ac (x86_64-*-linux*): New x32 check.
8477 * configure.srv (ipa_x32_linux_regobj): New.
8478 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8479 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8480 descriptions.
8481 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8482 descriptions.
8483 * configure: Regenerate.
8484
f348d89a
PA
84852016-08-09 Pedro Alves <palves@redhat.com>
8486
8487 PR gdb/18653
8488 * Makefile.in (OBS): Add signals-state-save-restore.o.
8489 (signals-state-save-restore.o): New rule.
8490 * config.in: Regenerate.
8491 * configure: Regenerate.
8492 * linux-low.c: Include "signals-state-save-restore.h".
8493 (linux_create_inferior): Call
8494 restore_original_signals_state.
8495 * server.c: Include "dispositions-save-restore.h".
8496 (captured_main): Call save_original_signals_state.
8497
1baf5149
PA
84982016-08-05 Pedro Alves <palves@redhat.com>
8499
8500 * configure: Regenerate.
8501
fcd4a73d
YQ
85022016-08-04 Yao Qi <yao.qi@linaro.org>
8503
8504 * linux-low.c (regsets_fetch_inferior_registers): Check
8505 errno is ESRCH or not.
8506
979659d0
YQ
85072016-08-02 Yao Qi <yao.qi@linaro.org>
8508
8509 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8510 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8511 (thread_db_load_search): Update.
8512 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8513 td_ta_set_event and td_ta_event_getmsg.
8514
6598661d
PA
85152016-07-26 Pedro Alves <palves@redhat.com>
8516
8517 PR server/20414
8518 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8519 of unsigned long for 64-bit registers and use uint32_t instead of
8520 unsigned int for 32-bit registers.
8521
9cf12d57
PA
85222016-07-26 Pedro Alves <palves@redhat.com>
8523
8524 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8525 to 'ptrace'.
8526
305450ed
TT
85272016-07-21 Tom Tromey <tom@tromey.com>
8528
8529 * configure: Rebuild.
8530
2583da7c
YQ
85312016-07-21 Yao Qi <yao.qi@linaro.org>
8532
8533 * mem-break.c (find_gdb_breakpoint): Cast bp to
8534 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8535
21536b36
YQ
85362016-07-21 Yao Qi <yao.qi@linaro.org>
8537
8538 * server.c (handle_v_requests): Support s and S actions
8539 if target_supports_software_single_step return true.
8540
8901d193
YQ
85412016-07-21 Yao Qi <yao.qi@linaro.org>
8542
8543 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8544 is resume_step, call maybe_hw_step.
8545 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8546 and unstop them.
8547 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8548 breakpoints or not.
8549 (proceed_one_lwp): If resume request is resume_step, install
8550 reinsert breakpoints and call maybe_hw_step.
8551
0e9a339e
YQ
85522016-07-21 Yao Qi <yao.qi@linaro.org>
8553
8554 * linux-low.c (proceed_one_lwp): Declare.
8555 (linux_resume_one_thread): Remove local variable 'step'.
8556 Lift code enqueue signal. Call proceed_one_lwp instead of
8557 linux_resume_one_lwp.
8558
4281b351
YQ
85592016-07-21 Yao Qi <yao.qi@linaro.org>
8560
8561 * linux-low.c (linux_resume_one_thread): Call
8562 enqueue_pending_signal.
8563
984a2c04
YQ
85642016-07-21 Yao Qi <yao.qi@linaro.org>
8565
8566 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8567 * inferiors.c (do_restore_current_thread_cleanup): New function.
8568 (make_cleanup_restore_current_thread): Likewise.
8569 * linux-low.c (install_software_single_step_breakpoints): Call
8570 make_cleanup_restore_current_thread. Switch current_thread to
8571 thread.
8572
bec903c9
YQ
85732016-07-21 Yao Qi <yao.qi@linaro.org>
8574
8575 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8576 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8577 (clone_one_breakpoint): Likewise.
8578 (delete_reinsert_breakpoints): Change parameter to thread.
8579 Callers updated.
8580 (has_reinsert_breakpoints): Likewise.
8581 (uninsert_reinsert_breakpoints): Likewise.
8582 (reinsert_reinsert_breakpoints): Likewise.
8583 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8584 (delete_reinsert_breakpoints): Likewise.
8585 (reinsert_reinsert_breakpoints): Likewise.
8586 (uninsert_reinsert_breakpoints): Likewise.
8587 (has_reinsert_breakpoints): Likewise.
8588
63c40ec7
YQ
85892016-07-21 Yao Qi <yao.qi@linaro.org>
8590
8591 * inferiors.c (get_thread_process): Make parameter const.
8592 * inferiors.h (get_thread_process): Update declaration.
8593 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8594 Add new parameters child_thread and parent_thread. Callers
8595 updated.
8596 * mem-break.h (clone_all_breakpoints): Update declaration.
8597
9aa76cd0
YQ
85982016-07-21 Yao Qi <yao.qi@linaro.org>
8599
8600 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8601 <command_list, handler>: Remove.
8602 (struct gdb_breakpoint): New.
8603 (struct other_breakpoint): New.
8604 (struct reinsert_breakpoint): New.
8605 (is_gdb_breakpoint): New function.
8606 (any_persistent_commands): Update command_list if
8607 is_gdb_breakpoint returns true.
8608 (set_breakpoint): Create breakpoints according to their types.
8609 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8610 (set_gdb_breakpoint_1): Likewise.
8611 (set_gdb_breakpoint): Likewise.
8612 (clear_breakpoint_conditions): Change parameter type to
8613 'struct gdb_breakpoint *'.
8614 (clear_breakpoint_commands): Likewise.
8615 (clear_breakpoint_conditions_and_commands): Likewise.
8616 (add_condition_to_breakpoint): Likewise.
8617 (add_breakpoint_condition): Likewise.
8618 (add_commands_to_breakpoint): Likewise.
8619 (check_breakpoints): Check other_breakpoint.
8620 (clone_one_breakpoint): Clone breakpopint according to its type.
8621 * mem-break.h (struct gdb_breakpoint): Declare.
8622 (set_gdb_breakpoint): Update declaration.
8623 (clear_breakpoint_conditions_and_commands): Likewise.
8624 (add_breakpoint_condition): Likewise.
8625 (add_breakpoint_commands): Likewise.
8626 * server.c (process_point_options): Change parameter type to
8627 'struct gdb_breakpoint *'.
8628
811f8301
YQ
86292016-07-21 Yao Qi <yao.qi@linaro.org>
8630
8631 * mem-break.c (set_breakpoint_at): Rename it to ...
8632 (set_breakpoint_type_at): ... it.
8633 (set_breakpoint_at): Call set_breakpoint_type_at.
8634 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8635 * mem-break.h (set_breakpoint_at): Update comments.
8636
b1c51e36
CLT
86372016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8638
8639 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8640 to buf parameter.
8641 (nios2_store_gregset): Likewise.
8642
ced2dffb
PA
86432016-07-01 Pedro Alves <palves@redhat.com>
8644 Antoine Tremblay <antoine.tremblay@ericsson.com>
8645
8646 * linux-low.c: Change interface to take the target lwp_info
8647 pointer directly and return void. Handle detaching from a zombie
8648 thread.
8649 (linux_detach_lwp_callback): New function.
8650 (linux_detach): Detach from the leader thread after detaching from
8651 the clone threads.
8652
2ac09a5b
YQ
86532016-06-28 Yao Qi <yao.qi@linaro.org>
8654
8655 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8656 for variable new_offset.
8657 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8658 (aarch64_ftrace_insn_reloc_cb): Likewise.
8659 (aarch64_ftrace_insn_reloc_tb): Likewise.
8660 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8661 PRIx64 instead of PRIx32.
8662
79e7fd4f
YQ
86632016-06-28 Yao Qi <yao.qi@linaro.org>
8664
8665 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8666 (the_low_target): Install arm_get_syscall_trapinfo.
8667
061fc021
YQ
86682016-06-28 Yao Qi <yao.qi@linaro.org>
8669
8670 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8671 function.
8672 (the_low_target): Install aarch64_get_syscall_trapinfo.
8673
4cc32bec
YQ
86742016-06-28 Yao Qi <yao.qi@linaro.org>
8675
8676 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8677 Callers updated.
8678 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8679 Remove parameter sysno.
8680 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8681 sysret.
8682
782c1122
AA
86832016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8684
8685 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8686 (s390_emit_ne_goto): Likewise.
8687 (s390_emit_lt_goto): Likewise.
8688 (s390_emit_le_goto): Likewise.
8689 (s390_emit_gt_goto): Likewise.
8690 (s390_emit_ge_goto): Likewise.
8691 (s390x_emit_eq_goto): Likewise.
8692 (s390x_emit_ne_goto): Likewise.
8693 (s390x_emit_lt_goto): Likewise.
8694 (s390x_emit_le_goto): Likewise.
8695 (s390x_emit_gt_goto): Likewise.
8696 (s390x_emit_ge_goto): Likewise.
8697 (s390_emit_ops_impl): Mark variable static.
8698 (s390x_emit_ops): Likewise.
8699
2e7b624b
YQ
87002016-06-17 Yao Qi <yao.qi@linaro.org>
8701
8702 * linux-low.c (handle_extended_wait): Call
8703 uninsert_reinsert_breakpoints for the parent process. Remove
8704 reinsert breakpoints from the child process. Reinsert them to
8705 the parent process when vfork is done.
8706 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8707 (reinsert_reinsert_breakpoints): New function.
8708 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8709 (reinsert_reinsert_breakpoints): Declare.
8710
8a81c5d7
YQ
87112016-06-17 Yao Qi <yao.qi@linaro.org>
8712
8713 * linux-low.c (handle_extended_wait): If the parent is doing
8714 step-over, remove the reinsert breakpoints from the forked child.
8715
f50bf8e5
YQ
87162016-06-17 Yao Qi <yao.qi@linaro.org>
8717
8718 * linux-low.c (unsuspend_all_lwps): Declare.
8719 (linux_low_filter_event): If thread exited, call finish_step_over.
8720 If step-over is finished, unsuspend other threads.
8721
8376a3cb
YQ
87222016-06-17 Yao Qi <yao.qi@linaro.org>
8723
8724 * linux-low.c (linux_resume_one_lwp_throw): Assert
8725 has_reinsert_breakpoints returns false.
8726 * mem-break.c (delete_disabled_breakpoints): Assert
8727 bp type isn't reinsert_breakpoint.
8728
f79b145d
YQ
87292016-06-17 Yao Qi <yao.qi@linaro.org>
8730
8731 * linux-low.c (maybe_hw_step): New function.
8732 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8733 (finish_step_over): Switch current_thread to lwp temporarily,
8734 and assert has_reinsert_breakpoints returns true.
8735 (proceed_one_lwp): Call maybe_hw_step.
8736 * mem-break.c (has_reinsert_breakpoints): New function.
8737 * mem-break.h (has_reinsert_breakpoints): Declare.
8738
0ae534d2
JT
87392016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8740
8741 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8742
fcdad592
YQ
87432016-05-17 Yao Qi <yao.qi@linaro.org>
8744
8745 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8746 instead of find_inferior.
8747
9e784964
YQ
87482016-05-05 Yao Qi <yao.qi@linaro.org>
8749
8750 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8751 Initialize res to zero.
8752
cf2ebb6e
YQ
87532016-05-05 Yao Qi <yao.qi@linaro.org>
8754
8755 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8756 to uint32_t.
8757
c1aebf87
UW
87582016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8759
8760 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8761 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8762 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8763
35fd2deb 87642016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8765 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8766
8767 * tracepoint.c (write_inferior_int8): New function.
8768 (cmd_qtenable_disable): Write enable flag using
8769 write_inferior_int8.
8770
484b3c32
YQ
87712016-04-25 Yao Qi <yao.qi@linaro.org>
8772
8773 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8774 (need_step_over_p): Return zero if the LWP has pending signals
8775 can be delivered on software single step target.
8776
85ba7d86
YQ
87772016-04-25 Yao Qi <yao.qi@linaro.org>
8778
8779 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8780 return instead of error.
8781
3539aa13
YQ
87822016-04-22 Yao Qi <yao.qi@linaro.org>
8783
8784 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8785 to 23.
8786
5b061e98
YQ
87872016-04-22 Yao Qi <yao.qi@linaro.org>
8788
8789 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8790 signal when stepping over breakpoint with software single
8791 step.
8792
3451269c
PA
87932016-04-21 Pedro Alves <palves@redhat.com>
8794
8795 * linux-s390-low.c (s390_collect_ptrace_register)
8796 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8797 add casts.
8798 (s390_check_regset): Use void * instead of gdb_byte *.
8799
a2358508
PA
88002016-04-20 Pedro Alves <palves@redhat.com>
8801
8802 * configure: Renegerate.
8803
6885166d
YQ
88042016-04-20 Yao Qi <yao.qi@linaro.org>
8805
8806 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8807 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8808 number 16.
8809 (arm_store_gregset): Likewise.
8810
2b863f51
WT
88112016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8812
8813 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8814 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8815 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8816 (amd64-avx-mpx-linux.c): New rules.
8817 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8818 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8819 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8820 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8821 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8822 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8823 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8824 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8825 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8826 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8827 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8828 * linux-x86-low.c (x86_linux_read_description): Add case for
8829 X86_XSTATE_AVX_MPX_MASK.
8830 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8831 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8832 init_registers_i386_avx_mpx_linux.
8833 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8834 (initialize_low_tracepoint): Call
8835 init_registers_i386_avx_mpx_linux.
8836 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8837 (initialize_low_tracepoint): Call
8838 init_registers_amd64_avx_mpx_linux.
8839 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8840 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8841 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8842 declarations.
8843
9b30624b
PA
88442016-04-18 Pedro Alves <palves@redhat.com>
8845
8846 * configure: Regenerate.
8847
45e3745e
AT
88482016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8849
8850 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8851 (aarch64_emit_sub): Likewise.
8852
2afc13ff
PA
88532016-04-12 Pedro Alves <palves@redhat.com>
8854
8855 * utils.c (prepare_to_throw_exception): Delete.
8856
6e774b13
SM
88572016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8858
8859 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8860
4dca19f8
MK
88612016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8862
8863 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8864
d0a9981f
MK
88652016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8866
8867 * linux-aarch64-ipa.c: Add <elf.h> include.
8868 * linux-ppc-ipa.c: Add <elf.h> include.
8869 * linux-s390-ipa.c: Add <elf.h> include.
8870
252db07e
MK
88712016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8872
8873 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8874 (get_raw_reg_ptr): Likewise.
8875 (get_trace_state_variable_value_ptr): Likewise.
8876 (set_trace_state_variable_value_ptr): Likewise.
8877 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8878 char *.
8879
14e2b6d9
MK
88802016-03-31 Wei-cheng Wang <cole945@gmail.com>
8881 Marcin Kościelnicki <koriakin@0x04.net>
8882
8883 PR/17221
8884 * linux-ppc-low.c (emit_insns): New function.
8885 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8886 (ppc_emit_prologue): New function.
8887 (ppc_emit_epilogue): New function.
8888 (ppc_emit_add): New function.
8889 (ppc_emit_sub): New function.
8890 (ppc_emit_mul): New function.
8891 (ppc_emit_lsh): New function.
8892 (ppc_emit_rsh_signed): New function.
8893 (ppc_emit_rsh_unsigned): New function.
8894 (ppc_emit_ext): New function.
8895 (ppc_emit_zero_ext): New function.
8896 (ppc_emit_log_not): New function.
8897 (ppc_emit_bit_and): New function.
8898 (ppc_emit_bit_or): New function.
8899 (ppc_emit_bit_xor): New function.
8900 (ppc_emit_bit_not): New function.
8901 (ppc_emit_equal): New function.
8902 (ppc_emit_less_signed): New function.
8903 (ppc_emit_less_unsigned): New function.
8904 (ppc_emit_ref): New function.
8905 (ppc_emit_const): New function.
8906 (ppc_emit_reg): New function.
8907 (ppc_emit_pop): New function.
8908 (ppc_emit_stack_flush): New function.
8909 (ppc_emit_swap): New function.
8910 (ppc_emit_stack_adjust): New function.
8911 (ppc_emit_call): New function.
8912 (ppc_emit_int_call_1): New function.
8913 (ppc_emit_void_call_2): New function.
8914 (ppc_emit_if_goto): New function.
8915 (ppc_emit_goto): New function.
8916 (ppc_emit_eq_goto): New function.
8917 (ppc_emit_ne_goto): New function.
8918 (ppc_emit_lt_goto): New function.
8919 (ppc_emit_le_goto): New function.
8920 (ppc_emit_gt_goto): New function.
8921 (ppc_emit_ge_goto): New function.
8922 (ppc_write_goto_address): New function.
8923 (ppc_emit_ops_impl): New static variable.
8924 (ppc64v1_emit_prologue): New function.
8925 (ppc64v2_emit_prologue): New function.
8926 (ppc64_emit_epilogue): New function.
8927 (ppc64_emit_add): New function.
8928 (ppc64_emit_sub): New function.
8929 (ppc64_emit_mul): New function.
8930 (ppc64_emit_lsh): New function.
8931 (ppc64_emit_rsh_signed): New function.
8932 (ppc64_emit_rsh_unsigned): New function.
8933 (ppc64_emit_ext): New function.
8934 (ppc64_emit_zero_ext): New function.
8935 (ppc64_emit_log_not): New function.
8936 (ppc64_emit_bit_and): New function.
8937 (ppc64_emit_bit_or): New function.
8938 (ppc64_emit_bit_xor): New function.
8939 (ppc64_emit_bit_not): New function.
8940 (ppc64_emit_equal): New function.
8941 (ppc64_emit_less_signed): New function.
8942 (ppc64_emit_less_unsigned): New function.
8943 (ppc64_emit_ref): New function.
8944 (ppc64_emit_const): New function.
8945 (ppc64v1_emit_reg): New function.
8946 (ppc64v2_emit_reg): New function.
8947 (ppc64_emit_pop): New function.
8948 (ppc64_emit_stack_flush): New function.
8949 (ppc64_emit_swap): New function.
8950 (ppc64v1_emit_call): New function.
8951 (ppc64v2_emit_call): New function.
8952 (ppc64v1_emit_int_call_1): New function.
8953 (ppc64v2_emit_int_call_1): New function.
8954 (ppc64v1_emit_void_call_2): New function.
8955 (ppc64v2_emit_void_call_2): New function.
8956 (ppc64_emit_if_goto): New function.
8957 (ppc64_emit_eq_goto): New function.
8958 (ppc64_emit_ne_goto): New function.
8959 (ppc64_emit_lt_goto): New function.
8960 (ppc64_emit_le_goto): New function.
8961 (ppc64_emit_gt_goto): New function.
8962 (ppc64_emit_ge_goto): New function.
8963 (ppc64v1_emit_ops_impl): New static variable.
8964 (ppc64v2_emit_ops_impl): New static variable.
8965 (ppc_emit_ops): New function.
8966 (linux_low_target): Wire in ppc_emit_ops.
8967
a2174ba4
MK
89682016-03-31 Wei-cheng Wang <cole945@gmail.com>
8969 Marcin Kościelnicki <koriakin@0x04.net>
8970
8971 PR/17221
8972 * Makefile.in: Add powerpc-*-ipa.o
8973 * configure.srv: Add ipa_obj for powerpc*-linux.
8974 * linux-ppc-ipa.c: New file.
8975 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8976 includes.
8977 (PPC_FIELD): New macro.
8978 (PPC_SEXT): New macro.
8979 (PPC_OP6): New macro.
8980 (PPC_BO): New macro.
8981 (PPC_LI): New macro.
8982 (PPC_BD): New macro.
8983 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8984 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8985 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8986 (ppc_get_thread_area): New function.
8987 (is_elfv2_inferior): New function.
8988 (gen_ds_form): New function.
8989 (GEN_STD): New macro.
8990 (GEN_STDU): New macro.
8991 (GEN_LD): New macro.
8992 (GEN_LDU): New macro.
8993 (gen_d_form): New function.
8994 (GEN_ADDI): New macro.
8995 (GEN_ADDIS): New macro.
8996 (GEN_LI): New macro.
8997 (GEN_LIS): New macro.
8998 (GEN_ORI): New macro.
8999 (GEN_ORIS): New macro.
9000 (GEN_LWZ): New macro.
9001 (GEN_STW): New macro.
9002 (GEN_STWU): New macro.
9003 (gen_xfx_form): New function.
9004 (GEN_MFSPR): New macro.
9005 (GEN_MTSPR): New macro.
9006 (GEN_MFCR): New macro.
9007 (GEN_MTCR): New macro.
9008 (GEN_SYNC): New macro.
9009 (GEN_LWSYNC): New macro.
9010 (gen_x_form): New function.
9011 (GEN_OR): New macro.
9012 (GEN_MR): New macro.
9013 (GEN_LWARX): New macro.
9014 (GEN_STWCX): New macro.
9015 (GEN_CMPW): New macro.
9016 (gen_md_form): New function.
9017 (GEN_RLDICL): New macro.
9018 (GEN_RLDICR): New macro.
9019 (gen_i_form): New function.
9020 (GEN_B): New macro.
9021 (GEN_BL): New macro.
9022 (gen_b_form): New function.
9023 (GEN_BNE): New macro.
9024 (GEN_LOAD): New macro.
9025 (GEN_STORE): New macro.
9026 (gen_limm): New function.
9027 (gen_atomic_xchg): New function.
9028 (gen_call): New function.
9029 (ppc_relocate_instruction): New function.
9030 (ppc_install_fast_tracepoint_jump_pad): New function.
9031 (ppc_get_min_fast_tracepoint_insn_len): New function.
9032 (ppc_get_ipa_tdesc_idx): New function.
9033 (the_low_target): Wire in the new functions.
9034 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9035 tdescs.
9036 * linux-ppc-tdesc.h: New file.
9037
a13c4696
MK
90382016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9039
9040 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9041 (alloc_jump_pad_buffer): New function.
9042 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9043 (alloc_jump_pad_buffer): New function.
9044 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9045 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9046 (alloc_jump_pad_buffer): New function.
9047 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9048 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9049 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9050 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9051
1cda1512
MK
90522016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9053
9054 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9055 * linux-amd64-ipa.c: Likewise.
9056 * linux-i386-ipa.c: Likewise.
9057 * linux-s390-ipa.c: Likewise.
9058 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9059 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9060 set_trace_state_variable_value_ptr.
9061 (struct ipa_sym_addresses): Likewise.
9062 (symbol_list): Likewise.
9063 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9064 accessing gdb_collect directly.
9065 (gdb_collect_ptr_type): New typedef.
9066 (get_raw_reg_ptr_type): New typedef.
9067 (get_trace_state_variable_value_ptr_type): New typedef.
9068 (set_trace_state_variable_value_ptr_type): New typedef.
9069 (gdb_collect_ptr): New global.
9070 (get_raw_reg_ptr): New global.
9071 (get_trace_state_variable_value_ptr): New global.
9072 (set_trace_state_variable_value_ptr): New global.
9073 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9074 accessing get_raw_reg directly.
9075 (get_get_tsv_func_addr): Likewise for
9076 get_trace_state_variable_value_ptr.
9077 (get_set_tsv_func_addr): Likewise for
9078 set_trace_state_variable_value_ptr.
9079 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9080
72fb5488
SM
90812016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9082
9083 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9084
28170b88
MK
90852016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9086
9087 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9088 packets.
9089 (relocate_instruction): Remove own_buf.
9090 * server.c (own_buf): Make global.
9091 (handle_v_requests): Make global.
9092 * server.h (own_buf): New declaration.
9093 (handle_v_requests): New prototype.
9094
f39e8743
MK
90952016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9096
9097 PR 18377
9098 * linux-s390-low.c (add_insns): New function.
9099 (s390_emit_prologue): New function.
9100 (s390_emit_epilogue): New function.
9101 (s390_emit_add): New function.
9102 (s390_emit_sub): New function.
9103 (s390_emit_mul): New function.
9104 (s390_emit_lsh): New function.
9105 (s390_emit_rsh_signed): New function.
9106 (s390_emit_rsh_unsigned): New function.
9107 (s390_emit_ext): New function.
9108 (s390_emit_log_not): New function.
9109 (s390_emit_bit_and): New function.
9110 (s390_emit_bit_or): New function.
9111 (s390_emit_bit_xor): New function.
9112 (s390_emit_bit_not): New function.
9113 (s390_emit_equal): New function.
9114 (s390_emit_less_signed): New function.
9115 (s390_emit_less_unsigned): New function.
9116 (s390_emit_ref): New function.
9117 (s390_emit_if_goto): New function.
9118 (s390_emit_goto): New function.
9119 (s390_write_goto_address): New function.
9120 (s390_emit_litpool): New function.
9121 (s390_emit_const): New function.
9122 (s390_emit_call): New function.
9123 (s390_emit_reg): New function.
9124 (s390_emit_pop): New function.
9125 (s390_emit_stack_flush): New function.
9126 (s390_emit_zero_ext): New function.
9127 (s390_emit_swap): New function.
9128 (s390_emit_stack_adjust): New function.
9129 (s390_emit_set_r2): New function.
9130 (s390_emit_int_call_1): New function.
9131 (s390_emit_void_call_2): New function.
9132 (s390_emit_eq_goto): New function.
9133 (s390_emit_ne_goto): New function.
9134 (s390_emit_lt_goto): New function.
9135 (s390_emit_le_goto): New function.
9136 (s390_emit_gt_goto): New function.
9137 (s390_emit_ge_goto): New function.
9138 (s390x_emit_prologue): New function.
9139 (s390x_emit_epilogue): New function.
9140 (s390x_emit_add): New function.
9141 (s390x_emit_sub): New function.
9142 (s390x_emit_mul): New function.
9143 (s390x_emit_lsh): New function.
9144 (s390x_emit_rsh_signed): New function.
9145 (s390x_emit_rsh_unsigned): New function.
9146 (s390x_emit_ext): New function.
9147 (s390x_emit_log_not): New function.
9148 (s390x_emit_bit_and): New function.
9149 (s390x_emit_bit_or): New function.
9150 (s390x_emit_bit_xor): New function.
9151 (s390x_emit_bit_not): New function.
9152 (s390x_emit_equal): New function.
9153 (s390x_emit_less_signed): New function.
9154 (s390x_emit_less_unsigned): New function.
9155 (s390x_emit_ref): New function.
9156 (s390x_emit_if_goto): New function.
9157 (s390x_emit_const): New function.
9158 (s390x_emit_call): New function.
9159 (s390x_emit_reg): New function.
9160 (s390x_emit_pop): New function.
9161 (s390x_emit_stack_flush): New function.
9162 (s390x_emit_zero_ext): New function.
9163 (s390x_emit_swap): New function.
9164 (s390x_emit_stack_adjust): New function.
9165 (s390x_emit_int_call_1): New function.
9166 (s390x_emit_void_call_2): New function.
9167 (s390x_emit_eq_goto): New function.
9168 (s390x_emit_ne_goto): New function.
9169 (s390x_emit_lt_goto): New function.
9170 (s390x_emit_le_goto): New function.
9171 (s390x_emit_gt_goto): New function.
9172 (s390x_emit_ge_goto): New function.
9173 (s390_emit_ops): New function.
9174 (struct linux_target_ops): Fill in emit_ops hook.
9175
abd9baf9
MK
91762016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9177
9178 PR 18377
9179 * Makefile.in: Add s390 IPA files.
9180 * configure.srv: Build IPA for s390.
9181 * linux-s390-ipa.c: New file.
9182 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9183 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9184 (tdesc_s390_linux32): Likewise.
9185 (init_registers_s390_linux32v1): Likewise.
9186 (tdesc_s390_linux32v1): Likewise.
9187 (init_registers_s390_linux32v2): Likewise.
9188 (tdesc_s390_linux32v2): Likewise.
9189 (init_registers_s390_linux64): Likewise.
9190 (tdesc_s390_linux64): Likewise.
9191 (init_registers_s390_linux64v1): Likewise.
9192 (tdesc_s390_linux64v1): Likewise.
9193 (init_registers_s390_linux64v2): Likewise.
9194 (tdesc_s390_linux64v2): Likewise.
9195 (init_registers_s390_te_linux64): Likewise.
9196 (tdesc_s390_te_linux64): Likewise.
9197 (init_registers_s390_vx_linux64): Likewise.
9198 (tdesc_s390_vx_linux64): Likewise.
9199 (init_registers_s390_tevx_linux64): Likewise.
9200 (tdesc_s390_tevx_linux64): Likewise.
9201 (init_registers_s390x_linux64): Likewise.
9202 (tdesc_s390x_linux64): Likewise.
9203 (init_registers_s390x_linux64v1): Likewise.
9204 (tdesc_s390x_linux64v1): Likewise.
9205 (init_registers_s390x_linux64v2): Likewise.
9206 (tdesc_s390x_linux64v2): Likewise.
9207 (init_registers_s390x_te_linux64): Likewise.
9208 (tdesc_s390x_te_linux64): Likewise.
9209 (init_registers_s390x_vx_linux64): Likewise.
9210 (tdesc_s390x_vx_linux64): Likewise.
9211 (init_registers_s390x_tevx_linux64): Likewise.
9212 (tdesc_s390x_tevx_linux64): Likewise.
9213 (have_hwcap_s390_vx): New static variable.
9214 (s390_arch_setup): Fill have_hwcap_s390_vx.
9215 (s390_get_thread_area): New function.
9216 (s390_ft_entry_gpr_esa): New const.
9217 (s390_ft_entry_gpr_zarch): New const.
9218 (s390_ft_entry_misc): New const.
9219 (s390_ft_entry_fr): New const.
9220 (s390_ft_entry_vr): New const.
9221 (s390_ft_main_31): New const.
9222 (s390_ft_main_64): New const.
9223 (s390_ft_exit_fr): New const.
9224 (s390_ft_exit_vr): New const.
9225 (s390_ft_exit_misc): New const.
9226 (s390_ft_exit_gpr_esa): New const.
9227 (s390_ft_exit_gpr_zarch): New const.
9228 (append_insns): New function.
9229 (s390_relocate_instruction): New function.
9230 (s390_install_fast_tracepoint_jump_pad): New function.
9231 (s390_get_min_fast_tracepoint_insn_len): New function.
9232 (s390_get_ipa_tdesc_idx): New function.
9233 (struct linux_target_ops): Wire in the above functions.
9234 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9235 * linux-s390-tdesc.h: New file.
9236
a4105d04
MK
92372016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9238
9239 * linux-s390-low.c (s390_supports_tracepoints): New function.
9240 (struct linux_target_ops): Fill supports_tracepoints hook.
9241
35ac8b3e
YQ
92422016-03-18 Yao Qi <yao.qi@linaro.org>
9243
9244 * linux-low.c (lwp_signal_can_be_delivered): New function.
9245 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9246
94610ec4
YQ
92472016-03-18 Yao Qi <yao.qi@linaro.org>
9248
9249 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9250 0 if signal is enqueued. Remove 'signal' from one debugging
9251 message. Move one debugging message to some lines below.
9252 Remove code setting 'signal' to 0.
9253
80aea927
YQ
92542016-03-18 Yao Qi <yao.qi@linaro.org>
9255
9256 * linux-low.c (linux_low_filter_event): Remove redundant
9257 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9258
b04fd3be
MK
92592016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9260
9261 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9262 (struct linux_target_ops): Wire in the above.
9263
c40c8d4b
YQ
92642016-03-03 Yao Qi <yao.qi@linaro.org>
9265
9266 * linux-low.c: Update comments to start_step_over.
9267
0f8288ae
YQ
92682016-03-03 Yao Qi <yao.qi@linaro.org>
9269
9270 PR server/19736
9271 * linux-low.c (handle_extended_wait): Set child suspended
9272 if event_lwp->bp_reinsert isn't zero.
9273
fdbd04a8
YQ
92742016-03-02 Yao Qi <yao.qi@linaro.org>
9275
9276 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9277 enqueue_pending_signal.
9278
6896a8fa
MK
92792016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9280
9281 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9282 is actually loaded.
9283
ab503087
MK
92842016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9285
9286 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9287 (s390_regmap_3264) [!__s390x__]: New global.
9288 (s390_collect_ptrace_register): Skip map entries containing -1.
9289 (s390_supply_ptrace_register): Ditto.
9290 (s390_fill_gprs_high): New function.
9291 (s390_store_gprs_high): New function.
9292 (s390_regsets): Add NT_S390_HIGH_GPRS.
9293 (s390_get_hwcap): Enable on 31-bit.
9294 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9295 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9296 Detect NT_S390_HIGH_GPRS.
9297 (s390_usrregs_info_3264): Enable on 31-bit.
9298 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9299 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9300
ae91f625
MK
93012016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9302
9303 PR gdb/13808
9304 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9305 * configure.srv: Ditto.
9306 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9307 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9308 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9309 (init_registers_amd64_linux): Remove prototype.
9310 (tdesc_amd64_linux): Remove declaration.
9311 (get_ipa_tdesc): New function.
9312 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9313 initialize remaining tdescs.
9314 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9315 (init_registers_i386_linux): Remove prototype.
9316 (tdesc_i386_linux): Remove declaration.
9317 (get_ipa_tdesc): New function.
9318 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9319 initialize remaining tdescs.
9320 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9321 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9322 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9323 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9324 (x86_get_ipa_tdesc_idx): New function.
9325 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9326 * linux-x86-tdesc.h: New file.
9327 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9328 (target_get_ipa_tdesc_idx): New macro.
9329 * tracepoint.c (ipa_tdesc_idx): New macro.
9330 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9331 (symbol_list): Add ipa_tdesc_idx.
9332 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9333 (ipa_tdesc): Remove.
9334 (ipa_tdesc_idx): New variable.
9335 (get_context_regcache): Use get_ipa_tdesc.
9336 (gdb_collect): Ditto.
9337 (gdb_probe): Ditto.
9338 * tracepoint.h (get_ipa_tdesc): New prototype.
9339 (ipa_tdesc): Remove.
9340
e7ad2f14
PA
93412016-02-24 Pedro Alves <palves@redhat.com>
9342
9343 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9344 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9345 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9346 Factor out common code between the USE_SIGTRAP_SIGINFO and
9347 !USE_SIGTRAP_SIGINFO blocks.
9348 (linux_low_filter_event): Call save_stop_reason instead of
9349 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9350 Update comments.
9351 (linux_wait_1): Update comments.
9352
657f9cde
WW
93532016-02-24 Wei-cheng Wang <cole945@gmail.com>
9354
9355 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9356 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9357 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9358 ppc_insert_point, ppc_remove_point.
9359
b00b61e1
MK
93602016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9361
9362 * linux-s390-low.c (s390_supports_z_point_type): New function.
9363 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9364
553cb527
YQ
93652016-02-16 Yao Qi <yao.qi@linaro.org>
9366
9367 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9368 PC. Get pc from regcache_read_pc.
9369
a5652c21
YQ
93702016-02-12 Yao Qi <yao.qi@linaro.org>
9371
9372 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9373 or linux_get_pc_32bit.
9374 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9375
ed443b61
YQ
93762016-02-12 Yao Qi <yao.qi@linaro.org>
9377
9378 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9379 arm_linux_get_next_pcs_fixup.
9380
020ecd38
MK
93812016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9382
9383 * tracepoint.c (x_tracepoint_action_download): Change
9384 write_inferior_data_ptr to write_inferior_data_pointer.
9385 (cmd_qtstart): Likewise.
9386 (write_inferior_data_ptr): Remove.
9387 (download_agent_expr): Change write_inferior_data_ptr to
9388 write_inferior_data_pointer.
9389 (download_tracepoint_1): Likewise.
9390 (download_tracepoint): Likewise.
9391 (download_trace_state_variables): Likewise.
9392
7cae9051
WW
93932016-02-11 Wei-cheng Wang <cole945@gmail.com>
9394 Marcin Kościelnicki <koriakin@0x04.net>
9395
9396 * tracepoint.c (struct tracepoint_action_ops): Remove.
9397 (struct tracepoint_action): Remove ops.
9398 (m_tracepoint_action_download, r_tracepoint_action_download)
9399 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9400 size and offset accordingly.
9401 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9402 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9403 (tracepoint_action_send, tracepoint_action_download): New functions.
9404 Helpers for trace action handlers.
9405 (add_tracepoint_action): Remove setup actions ops.
9406 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9407
9f6a71b4
YQ
94082016-02-10 Yao Qi <yao.qi@linaro.org>
9409
9410 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9411
1e94266c
SM
94122016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9413
9414 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9415 to AC_OUTPUT.
9416 * configure: Regenerate.
9417
8adce034
SM
94182016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9419
9420 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9421 void * to gdb_byte *.
9422 * linux-low.c (siginfo_fixup): Likewise.
9423 (linux_xfer_siginfo): Likewise.
9424 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9425 Likewise.
9426 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9427
93813b37
WT
94282016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9429
9430 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9431 to srv_tgtobj.
9432 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9433 to srv_tgtobj.
9434 * linux-x86-low.c [__x86_64__]: Include
9435 "nat/amd64-linux-siginfo.h".
9436 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9437 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9438 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9439 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9440 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9441 (cpt_si_fd, si_timerid, si_overrun): Move from
9442 nat/amd64-linux-siginfo.c.
9443 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9444
8424cc97
SM
94452016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9446
9447 * server.c (skip_to_semicolon): Remove.
9448 (process_point_options): Use strchrnul instead of
9449 skip_to_semicolon.
9450
4d18591b
YQ
94512016-01-26 Yao Qi <yao.qi@linaro.org>
9452
9453 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9454 * linux-low.c (install_software_single_step_breakpoints): Don't
9455 call regcache_read_pc.
9456 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9457 argument pc.
9458
d8020970
YQ
94592016-01-26 Yao Qi <yao.qi@linaro.org>
9460
9461 * linux-low.c (install_software_single_step_breakpoints): Call
9462 regcache_read_pc instead of get_pc.
9463
8b207339
YQ
94642016-01-26 Yao Qi <yao.qi@linaro.org>
9465
9466 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9467 (unblock_async_io): Rename to ...
9468 (block_unblock_async_io): ... it. New function.
9469 (enable_async_io): Don't install SIGIO handler. Unblock it
9470 instead.
9471 (disable_async_io): Don't ignore SIGIO. Block it instead.
9472 (initialize_async_io): Install SIGIO handler. Don't call
9473 unblock_async_io.
9474
18879fef
YQ
94752016-01-26 Yao Qi <yao.qi@linaro.org>
9476
9477 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9478 first character is '\003', call *the_target->request_interrupt.
9479
a0f8e08a
YQ
94802016-01-25 Yao Qi <yao.qi@linaro.org>
9481
9482 * remote-utils.c (new_thread_notify): Remove.
9483 (dead_thread_notify): Likewise.
9484 * remote-utils.h (new_thread_notify): Remove declaration.
9485 (dead_thread_notify): Likewise.
9486
cc5fd9ab
MK
94872016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9488
9489 * gdb.trace/pending.exp: Fix expected message on continue.
9490
99e8eb11
MK
94912016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9492
9493 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9494 it works properly on big-endian machines where sizeof (CORE_ADDR)
9495 != sizeof (void *).
9496
a994041d
PA
94972016-01-21 Pedro Alves <palves@redhat.com>
9498
9499 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9500 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9501 * configure: Regenerate.
9502
f7a6a40d
YQ
95032016-01-21 Yao Qi <yao.qi@linaro.org>
9504
9505 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9506 is_thumb and set it according to CPSR saved on the stack.
9507 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9508 arm_sigreturn_next_pc.
9509
6f69e520
YQ
95102016-01-18 Yao Qi <yao.qi@linaro.org>
9511
9512 * linux-low.c (linux_set_pc_64bit): New function.
9513 (linux_get_pc_64bit): New function.
9514 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9515 Declare.
9516 * linux-sparc-low.c (debug_threads): Remove declaration.
9517 (sparc_get_pc): Remove.
9518 (the_low_target): Use linux_get_pc_64bit instead of
9519 sparc_get_pc.
9520 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9521 (the_low_target): Use linux_get_pc_64bit and
9522 linux_set_pc_64bit.
9523
276d4552
YQ
95242016-01-18 Yao Qi <yao.qi@linaro.org>
9525
9526 * linux-arm-low.c (debug_threads): Remove declaration.
9527 (arm_get_pc, arm_set_pc): Remove.
9528 (the_low_target): Use linux_get_pc_32bit and
9529 linux_set_pc_32bit.
9530 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9531 (the_low_target): Use linux_get_pc_32bit and
9532 linux_set_pc_32bit.
9533 * linux-cris-low.c (debug_threads): Remove declaration.
9534 (cris_get_pc, cris_set_pc,): Remove.
9535 (the_low_target): Use linux_get_pc_32bit and
9536 linux_set_pc_32bit.
9537 * linux-crisv32-low.c (debug_threads): Remove declaration.
9538 (cris_get_pc, cris_set_pc): Remove.
9539 (the_low_target): Use linux_get_pc_32bit and
9540 linux_set_pc_32bit.
9541 * linux-low.c: Include inttypes.h.
9542 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9543 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9544 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9545 (the_low_target): Use linux_get_pc_32bit and
9546 linux_set_pc_32bit.
9547 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9548 (the_low_target): Use linux_get_pc_32bit and
9549 linux_set_pc_32bit.
9550 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9551 (the_low_target): Use linux_get_pc_32bit and
9552 linux_set_pc_32bit.
9553 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9554 (the_low_target): Use linux_get_pc_32bit and
9555 linux_set_pc_32bit.
9556 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9557 (the_low_target): Use linux_get_pc_32bit and
9558 linux_set_pc_32bit.
9559
eb0edac8
GB
95602016-01-18 Gary Benson <gbenson@redhat.com>
9561
9562 * configure.ac (AC_FUNC_FORK): New check.
9563 * config.in: Regenerate.
9564 * configure: Likewise.
9565
1b451dda
YQ
95662016-01-14 Yao Qi <yao.qi@linaro.org>
9567
9568 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9569 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9570 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9571 arm_get_next_pcs_ctor.
9572
82075af2
JS
95732016-01-12 Josh Stone <jistone@redhat.com>
9574 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9575
9576 * inferiors.h: Include "gdb_vecs.h".
9577 (struct process_info): Add syscalls_to_catch.
9578 * inferiors.c (remove_process): Free syscalls_to_catch.
9579 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9580 syscall_return stops.
9581 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9582 * server.c (handle_general_set): Handle QCatchSyscalls.
9583 (handle_query): Report support for QCatchSyscalls.
9584 * target.h (struct target_ops): Add supports_catch_syscall.
9585 (target_supports_catch_syscall): New macro.
9586 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9587 (struct lwp_info): Add syscall_state.
9588 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9589 Maintain syscall_state and syscalls_to_catch across exec.
9590 (get_syscall_trapinfo): New function, proxy to the_low_target.
9591 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9592 (linux_low_filter_event): Toggle syscall_state entry/return for
9593 syscall traps, and set it ignored for all others.
9594 (gdb_catching_syscalls_p): New function.
9595 (gdb_catch_this_syscall_p): New function.
9596 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9597 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9598 (linux_supports_catch_syscall): New function.
9599 (linux_target_ops): Install it.
9600 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9601 (the_low_target): Install it.
9602
8f13a3ce
MF
96032016-01-12 Mike Frysinger <vapier@gentoo.org>
9604
9605 * acinclude.m4: Include new ../warning.m4 file.
9606 * configure: Regenerated.
9607 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9608
5b3da067
MF
96092016-01-12 Mike Frysinger <vapier@gentoo.org>
9610
9611 * ax.c (is_goto_target): Mark static.
9612 * linux-low.c (register_addr): Likewise.
9613 (linux_fetch_registers, linux_store_registers): Likewise.
9614 * mem-break.c (any_persistent_commands): Fix old prototype.
9615 (add_commands_to_breakpoint): Mark static.
9616 * regcache.c (find_register_by_name): Delete unused func.
9617 * remote-utils.c (hex_or_minus_one): Mark static.
9618 * server.c (monitor_show_help): Mark static.
9619 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9620 handle_v_requests): Likewise.
9621
bc504a31
PA
96222016-01-12 Pedro Alves <palves@redhat.com>
9623
9624 Remove use of the registered trademark symbol throughout.
9625
5a0dd67a
YQ
96262016-01-08 Yao Qi <yao.qi@linaro.org>
9627
9628 * remote-utils.c (getpkt): If c is '\003', call target hook
9629 request_interrupt.
9630
b2ca446f
YQ
96312016-01-06 Yao Qi <yao.qi@linaro.org>
9632
9633 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9634 linux-aarch32-low.c.
9635 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9636 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9637 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9638 (thumb2_breakpoint): Declare.
9639 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9640 linux-aarch32-low.h.
9641 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9642 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9643 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9644
edd88788
JB
96452016-01-01 Joel Brobecker <brobecker@adacore.com>
9646
9647 * gdbreplay.c (gdbreplay_version): Change copyright year in
9648 version message.
9649 * server.c (gdbserver_version): Likewise.
9650
65da7f14
PP
96512015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9652
9653 * server.c (crc32_table): Delete.
9654 (crc32): Use libiberty's xcrc32 function.
9655
4abd5ed2
JB
96562015-12-22 Joel Brobecker <brobecker@adacore.com>
9657
9658 * lynx-low.c (lynx_delete_thread_callback): New function.
9659 (lynx_mourn): Properly delete our process and all of its
9660 threads. Remove call to clear_inferiors.
9661
0e50fe5c
JB
96622015-12-22 Joel Brobecker <brobecker@adacore.com>
9663
9664 * target.c (thread_search_callback): Add check that
9665 the thread_stopped target callback is not NULL before
9666 calling it.
9667
35adc03f
YQ
96682015-12-21 Yao Qi <yao.qi@linaro.org>
9669
9670 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9671 arm breakpoint.
9672
bd2b2909
AT
96732015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9674
9675 * server.c (handle_query): Call target_supports_software_single_step.
9676
7fe5e27e
AT
96772015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9678
9679 * linux-low.c (single_step): New function.
9680 (linux_resume_one_lwp_throw): Call single_step.
9681 (start_step_over): Likewise.
9682
d9311bfa
AT
96832015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9684
9685 * Makefile.in (SFILES): Append arch/arm-linux.c,
9686 arch/arm-get-next-pcs.c.
9687 (arm-linux.o): New rule.
9688 (arm-get-next-pcs.o): New rule.
9689 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9690 arm-linux.o.
9691 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9692 to linux-aarch32-low.c.
9693 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9694 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9695 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9696 (thumb2_breakpoint_len): Likewise.
9697 (arm_is_thumb_mode): Make non-static.
9698 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9699 from linux-aarch32-low.c.
9700 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9701 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9702 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9703 (thumb2_breakpoint_len): Likewise.
9704 (arm_is_thumb_mode): New declaration.
9705 * linux-arm-low.c: Include arch/arm-linux.h
9706 aarch/arm-get-next-pcs.h, sys/syscall.h.
9707 (get_next_pcs_ops): New struct.
9708 (get_next_pcs_addr_bits_remove): New function.
9709 (get_next_pcs_is_thumb): New function.
9710 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9711 (arm_sigreturn_next_pc): Likewise.
9712 (get_next_pcs_syscall_next_pc): Likewise.
9713 (arm_gdbserver_get_next_pcs): Likewise.
9714 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9715 Initialize.
9716 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9717 * server.h: Include gdb_vecs.h.
9718
68ce2059
AT
97192015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9720
9721 * Makefile.in (SFILES): Append common/common-regcache.c.
9722 (OBS): Append common-regcache.o.
9723 (common-regcache.o): New rule.
9724 * regcache.c (init_register_cache): Initialize cache to
9725 REG_UNAVAILABLE.
9726 (regcache_raw_read_unsigned): New function.
9727 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9728 register_status enum.
9729
fa5308bd
AT
97302015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9731
9732 * linux-aarch64-low.c (the_low_targets): Rename
9733 breakpoint_reinsert_addr to get_next_pcs.
9734 * linux-arm-low.c (the_low_targets): Likewise.
9735 * linux-bfin-low.c (the_low_targets): Likewise.
9736 * linux-cris-low.c (the_low_targets): Likewise.
9737 * linux-crisv32-low.c (the_low_targets): Likewise.
9738 * linux-low.c (can_software_single_step): Likewise.
9739 (install_software_single_step_breakpoints): New function.
9740 (start_step_over): Use install_software_single_step_breakpoints.
9741 * linux-low.h: New CORE_ADDR vector.
9742 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9743 get_next_pcs.
9744 * linux-mips-low.c (the_low_targets): Likewise.
9745 * linux-nios2-low.c (the_low_targets): Likewise.
9746 * linux-sparc-low.c (the_low_targets): Likewise.
9747
4a6ed09b
PA
97482015-12-17 Pedro Alves <palves@redhat.com>
9749
9750 * linux-low.c (linux_kill_one_lwp): Remove references to
9751 LinuxThreads.
9752 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9753 to 'kill'.
9754 (linux_init_signals): Delete.
9755 (initialize_low): Adjust.
9756 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9757
7544db95
PA
97582015-12-16 Pedro Alves <palves@redhat.com>
9759
9760 * configure.ac (compiler warning flags): When testing a
9761 -Wno-foo option, check whether -Wfoo works instead.
9762 * configure: Regenerate.
9763
8020350c
DB
97642015-12-11 Don Breazeal <donb@codesourcery.com>
9765
9766 * server.c (process_serial_event): Don't exit from gdbserver
9767 in remote mode if there are still active inferiors.
9768
db91f502
YQ
97692015-12-11 Yao Qi <yao.qi@linaro.org>
9770
9771 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9772 arm_breakpoint_at if the process is 32-bit.
9773
b37a6290
YQ
97742015-12-11 Yao Qi <yao.qi@linaro.org>
9775
9776 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9777 arm breakpoint.
9778
17b1509a
YQ
97792015-12-07 Yao Qi <yao.qi@linaro.org>
9780
9781 * configure.srv: Append arm.o to srv_tgtobj for
9782 aarch64*-*-linux* target.
9783 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9784 from linux-arm-low.c.
9785 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9786 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9787 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9788 (thumb2_breakpoint_len): Likewise.
9789 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9790 (arm_breakpoint_kinds): Likewise.
9791 (arm_breakpoint_kind_from_pc): Likewise.
9792 (arm_sw_breakpoint_from_kind): Likewise.
9793 (arm_breakpoint_kind_from_current_state): Likewise.
9794 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9795 (arm_sw_breakpoint_from_kind): Declare.
9796 (arm_breakpoint_kind_from_current_state): Declare.
9797 (arm_breakpoint_at): Declare.
9798 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9799 arm_sw_breakpoint_from_kind if process is 32-bit.
9800 (aarch64_breakpoint_kind_from_pc): New function.
9801 (aarch64_breakpoint_kind_from_current_state): New function.
9802 (the_low_target): Initialize fields breakpoint_kind_from_pc
9803 and breakpoint_kind_from_current_state.
9804 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9805 linux-aarch32-low.c.
9806 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9807 (arm_breakpoint, arm_breakpoint_len): Likewise.
9808 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9809 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9810 (arm_is_thumb_mode): Likewise.
9811 (arm_breakpoint_at): Likewise.
9812 (arm_breakpoint_kind_from_pc): Likewise.
9813 (arm_sw_breakpoint_from_kind): Likewise.
9814 (arm_breakpoint_kind_from_current_state): Likewise.
9815
9816 Revert:
9817 2015-08-04 Yao Qi <yao.qi@linaro.org>
9818
9819 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9820 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9821 * server.c (extended_protocol): Remove "static".
9822 * server.h (extended_protocol): Declare it.
9823
ece66d65
JS
98242015-12-04 Josh Stone <jistone@redhat.com>
9825
9826 * target.h (struct target_ops) <arch_setup>: Rename to ...
9827 (struct target_ops) <post_create_inferior>: ... this.
9828 (target_arch_setup): Rename to ...
9829 (target_post_create_inferior): ... this, calling post_create_inferior.
9830 * server.c (start_inferior): Update target_arch_setup calls to
9831 target_post_create_inferior.
9832 * linux-low.c (linux_low_ptrace_options): Forward declare.
9833 (linux_arch_setup): Update its comment for general use.
9834 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9835 (struct linux_target_ops): Use linux_post_create_inferior.
9836 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9837 to post_create_inferior.
9838 * nto-low.c (struct nto_target_ops): Likewise.
9839 * spu-low.c (struct spu_target_ops): Likewise.
9840 * win32-low.c (struct win32_target_ops): Likewise.
9841
e58c48b4
AT
98422015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9843
9844 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9845
fbec8956
AT
98462015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9847
9848 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9849 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9850 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9851 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9852 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9853 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9854 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9855 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9856 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9857 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9858 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9859 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9860
9b4c5f87
AT
98612015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9862
9863 * linux-low.c (linux_look_up_symbols): Don't call
9864 linux_supports_traceclone.
9865 * linux-low.h (thread_db_init): Remove use_events argument.
9866 * thread-db.c (thread_db_use_event): Remove global variable.
9867 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9868 (struct thread_db) <td_create_bp>: Remove field.
9869 (thread_db_create_event): Remove function.
9870 (thread_db_enable_reporting): Likewise.
9871 (find_one_thread): Don't check for thread_db_use_events.
9872 (attach_thread): Likewise.
9873 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9874 (try_thread_db_load_1): Don't check for thread_db_use_events.
9875 (thread_db_init): Remove use_events argument and thread events
9876 handling.
9877 (remove_thread_event_breakpoints): Remove function.
9878 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9879
7d00775e
AT
98802015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9881
9882 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9883 New function.
9884 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9885 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9886 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9887 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9888 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9889 Initialize.
9890 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9891 New function.
9892 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9893 * linux-low.c (can_hardware_single_step): Use
9894 supports_hardware_single_step.
9895 (can_software_single_step): New function.
9896 (start_step_over): Call can_software_single_step.
9897 (linux_supports_hardware_single_step): New function.
9898 (struct target_ops) <supports_software_single_step>: Initialize.
9899 * linux-low.h (struct linux_target_ops)
9900 <supports_hardware_single_step>: Initialize.
9901 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9902 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9903 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9904 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9905 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9906 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9907 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9908 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9909 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9910 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9911 Initialize.
9912 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9913 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9914 Initialize.
9915 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9916 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9917 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9918 New function.
9919 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9920 * target.h (struct target_ops): <supports_software_single_step>:
9921 New field.
9922 (target_supports_software_single_step): New macro.
9923
2d97cd35
AT
99242015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9925
9926 * linux-low.c (linux_wait_1): Fix pc advance condition.
9927 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9928 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9929
769ef81f
AT
99302015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9931
9932 * linux-arm-low.c (arm_is_thumb_mode): New function.
9933 (arm_breakpoint_at): Use arm_is_thumb_mode.
9934 (arm_breakpoint_kind_from_current_state): New function.
9935 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9936 Initialize.
9937 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9938 (linux_breakpoint_kind_from_current_state): New function.
9939 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9940 * linux-low.h (struct linux_target_ops)
9941 <breakpoint_kind_from_current_state>: New field.
9942 * target.h (struct target_ops): Likewise.
9943 (target_breakpoint_kind_from_current_state): New macro.
9944
1bebeeca
PA
99452015-11-30 Pedro Alves <palves@redhat.com>
9946
9947 * linux-low.c (linux_resume): Wake up the event loop before
9948 returning.
9949
a67a9fae
PA
99502015-11-30 Pedro Alves <palves@redhat.com>
9951
9952 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9953 check.
9954 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9955 to -1.
9956 * target.c (struct thread_search): New structure.
9957 (thread_search_callback): New function.
9958 (prev_general_thread): New global.
9959 (prepare_to_access_memory, done_accessing_memory): New functions.
9960 * target.h (prepare_to_access_memory, done_accessing_memory):
9961 Replace macros with function declarations.
9962
f2faf941
PA
99632015-11-30 Pedro Alves <palves@redhat.com>
9964
9965 PR 14618
9966 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9967 report TARGET_WAITKIND_NO_RESUMED.
9968 * remote-utils.c (prepare_resume_reply): Handle
9969 TARGET_WAITKIND_NO_RESUMED.
9970 * server.c (report_no_resumed): New global.
9971 (handle_query) <qSupported>: Handle "no-resumed+". Report
9972 "no-resumed+" support.
9973 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9974 return error if the client doesn't support no-resumed events.
9975 (push_stop_notification): New function.
9976 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9977 events if the client supports them.
9978
a681f9c9
PA
99792015-11-30 Pedro Alves <palves@redhat.com>
9980
9981 * linux-low.c (thread_still_has_status_pending_p): Don't check
9982 vCont;t here.
9983 (lwp_resumed): New function.
9984 (status_pending_p_callback): Return early if the LWP is not
9985 supposed to be resumed.
9986
65706a29
PA
99872015-11-30 Pedro Alves <palves@redhat.com>
9988
9989 * linux-low.c (handle_extended_wait): Assert that the LWP's
9990 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9991 thread create events, leave the new child's status pending.
9992 (linux_low_filter_event): If GDB wants to hear about thread exit
9993 events, leave the LWP marked dead and don't delete it.
9994 (linux_wait_for_event_filtered): Don't check for thread exit.
9995 (filter_exit_event): New function.
9996 (linux_wait_1): Use it, when returning an exit event.
9997 (linux_resume_one_lwp_throw): Assert that the LWP's
9998 waitstatus is TARGET_WAITKIND_IGNORE.
9999 * remote-utils.c (prepare_resume_reply): Handle
10000 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
10001 * server.c (report_thread_events): New global.
10002 (handle_general_set): Handle QThreadEvents.
10003 (handle_query) <qSupported>: Handle and report QThreadEvents+;
10004 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
10005 TARGET_WAITKIND_THREAD_EXITED.
10006 * server.h (report_thread_events): Declare.
10007
56cf4bed
PA
100082015-11-30 Pedro Alves <palves@redhat.com>
10009
10010 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
10011 the thread's last_resume_kind was resume_stop.
10012
500c1d85
PA
100132015-11-30 Pedro Alves <palves@redhat.com>
10014
10015 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10016 before returning.
10017
de979965
PA
100182015-11-30 Pedro Alves <palves@redhat.com>
10019
10020 * server.c (handle_v_requests): Handle vCtrlC.
10021
34c65914
PA
100222015-11-30 Pedro Alves <palves@redhat.com>
10023
10024 * gdbthread.h (find_any_thread_of_pid): Declare.
10025 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10026 functions.
10027 * server.c (handle_query): If current_thread is NULL, look for
10028 another thread of the selected process.
10029
79efa585 100302015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 10031 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
10032
10033 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10034 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10035 name in reply.
10036 * target.h (struct target_ops) <thread_name>: New field.
10037 (target_thread_name): New macro.
10038
80d82c19
JB
100392015-11-23 Joel Brobecker <brobecker@adacore.com>
10040
10041 * regcache.h (regcache_invalidate_pid): Add declaration.
10042 * regcache.c (regcache_invalidate_pid): New function, extracted
10043 from regcache_invalidate.
10044 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10045 Add trivial documentation comment.
10046 * lynx-low.c: Use regcache_invalidate_pid instead of
10047 regcache_invalidate.
10048
64da5dd5
JB
100492015-11-23 Joel Brobecker <brobecker@adacore.com>
10050
10051 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10052 and Elf64_auxv_t if the target is Android.
10053
37ce4055
DE
100542015-11-22 Doug Evans <xdje42@gmail.com>
10055
10056 * target.h: #include <sys/types.h>.
10057
06e03fff
PA
100582015-11-19 Pedro Alves <palves@redhat.com>
10059
10060 * linux-low.c (linux_process_qsupported): Change prototype.
10061 Adjust.
10062 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10063 Change prototype.
10064 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10065 and adjust to loop over all features.
10066 * server.c (handle_query) <qSupported>: Adjust to call
10067 target_process_qsupported once, passing it a vector of unprocessed
10068 features.
10069 * target.h (struct target_ops) <process_qsupported>: Change
10070 prototype.
10071 (target_process_qsupported): Adjust.
10072
9a084706
PA
100732015-11-19 Pedro Alves <palves@redhat.com>
10074
10075 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10076 mode.
10077 * configure: Regenerate.
10078
dad44a1f
PA
100792015-11-19 Pedro Alves <palves@redhat.com>
10080
10081 * configure: Regenerate.
10082
231c0592
YQ
100832015-11-19 Yao Qi <yao.qi@linaro.org>
10084
10085 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10086 type to uint32_t.
10087
6c1c9a8b
YQ
100882015-11-19 Yao Qi <yao.qi@linaro.org>
10089
10090 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10091 (struct aarch64_operand): Move enum out.
10092
9caa3311
YQ
100932015-11-19 Yao Qi <yao.qi@linaro.org>
10094
10095 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10096 struct user_fpsimd_state *.
10097 (aarch64_store_fpregset): Likewise.
10098
6a69a054
YQ
100992015-11-19 Yao Qi <yao.qi@linaro.org>
10100
10101 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10102 struct user_pt_regs *.
10103 (aarch64_store_gregset): Likewise.
10104
1798301e
PA
101052015-11-18 Pedro Alves <palves@redhat.com>
10106
10107 * Makefile.in (all_object_files): Add $IPA_OBJS.
10108
ce7715e2
PA
101092015-11-17 Pedro Alves <palves@redhat.com>
10110
10111 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10112 GDB_SIGNAL_0 and gdb_signal_to_string.
10113
c0879059
PA
101142015-11-17 Pedro Alves <palves@redhat.com>
10115
10116 * win32-low.c (handle_output_debug_string): Remove parameter.
10117 (win32_kill): Remove our_status local and adjust call to
10118 handle_output_debug_string.
10119 (get_child_debug_event): Adjust call to
10120 handle_output_debug_string.
10121
1996e237
SM
101222015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10123
10124 * linux-mips-low.c (mips_fill_gregset): Add cast.
10125 (mips_store_gregset): Likewise.
10126 (mips_fill_fpregset): Likewise.
10127 (mips_store_fpregset): Likewise.
10128
cbec665b
SM
101292015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10130
10131 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10132 priv.
10133
eb3e3c67
SM
101342015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10135
10136 * linux-mips-low.c (mips_linux_new_thread): Change type of
10137 watch_type to enum target_hw_bp_type.
10138
171de4b8
SM
101392015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10140
10141 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10142 Change return type to arm_hwbp_type.
10143
04248ead
SM
101442015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10145
10146 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10147 (arm_store_gregset): Likewise.
10148 * linux-arm-low.c (arm_get_hwcap): Likewise.
10149 (arm_read_description): Likewise.
10150
04b3479c
SM
101512015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10152
10153 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10154
2bc84e8a
SM
101552015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10156
10157 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10158 (ppc_fill_vsxregset): Likewise.
10159 (ppc_store_vsxregset): Likewise.
10160 (ppc_fill_vrregset): Likewise.
10161 (ppc_store_vrregset): Likewise.
10162 (ppc_fill_evrregset): Likewise.
10163 (ppc_store_evrregset): Likewise.
10164
e6c5bb05
SM
101652015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10166
10167 * linux-ppc-low.c (ppc_usrregs_info): Remove
10168 forward-declaration.
10169 (ppc_arch_setup): Move lower in file.
10170
7ea45d72
SM
101712015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10172
10173 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10174 (ps_pdwrite): Likewise.
10175
69291610
HW
101762015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10177
10178 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10179 to after assert checks.
10180
b42945fd
SM
101812015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10182
10183 * proc-service.c (ps_pdread): Add/adjust casts.
10184 (ps_pdwrite): Add/adjust casts.
10185
d6f85c84
SM
101862015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10187
10188 * server.c (handle_search_memory_1): Cast return value of
10189 memmem.
10190
f98cd059
SM
101912015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10192
10193 * server.c (write_qxfer_response): Change type of data to
10194 gdb_byte *.
10195
d2412fa5
PA
101962015-10-29 Pedro Alves <palves@redhat.com>
10197
10198 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10199
c17414a2
PA
102002015-10-29 Pedro Alves <palves@redhat.com>
10201
10202 * tracepoint.c (clear_installed_tracepoints): Add casts.
10203
e053fbc4
PA
102042015-10-29 Pedro Alves <palves@redhat.com>
10205
10206 * server.c (handle_v_cont, process_serial_event): Add enum
10207 gdb_signal casts to signal parsing code.
10208
add67df8
PA
102092015-10-29 Pedro Alves <palves@redhat.com>
10210
10211 * linux-low.h (NULL_REGSET): Define.
10212 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10213 * linux-arm-low.c (arm_regsets): Likewise.
10214 * linux-crisv32-low.c (cris_regsets): Likewise.
10215 * linux-m68k-low.c (m68k_regsets): Likewise.
10216 * linux-mips-low.c (mips_regsets): Likewise.
10217 * linux-nios2-low.c (nios2_regsets): Likewise.
10218 * linux-ppc-low.c (ppc_regsets): Likewise.
10219 * linux-s390-low.c (s390_regsets): Likewise.
10220 * linux-sh-low.c (sh_regsets): Likewise.
10221 * linux-sparc-low.c (sparc_regsets): Likewise.
10222 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10223 * linux-tile-low.c (tile_regsets): Likewise.
10224 * linux-x86-low.c (x86_regsets): Likewise.
10225 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10226
50bc912a
PA
102272015-10-29 Pedro Alves <palves@redhat.com>
10228
10229 * linux-low.h (NULL_REGSET): Define.
10230 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10231 * linux-arm-low.c (arm_regsets): Likewise.
10232 * linux-crisv32-low.c (cris_regsets): Likewise.
10233 * linux-m68k-low.c (m68k_regsets): Likewise.
10234 * linux-mips-low.c (mips_regsets): Likewise.
10235 * linux-nios2-low.c (nios2_regsets): Likewise.
10236 * linux-ppc-low.c (ppc_regsets): Likewise.
10237 * linux-s390-low.c (s390_regsets): Likewise.
10238 * linux-sh-low.c (sh_regsets): Likewise.
10239 * linux-sparc-low.c (sparc_regsets): Likewise.
10240 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10241 * linux-tile-low.c (tile_regsets): Likewise.
10242 * linux-x86-low.c (x86_regsets): Likewise.
10243 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10244
682b2546
DE
102452015-10-26 Doug Evans <dje@google.com>
10246
10247 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10248
963843d4
DE
102492015-10-26 Doug Evans <dje@google.com>
10250
10251 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10252
d41401ac
DE
102532015-10-26 Doug Evans <dje@google.com>
10254
10255 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10256 for debug_printf.
10257 (attach_thread, find_new_threads_callback): Ditto.
10258
3db28855
AT
102592015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10260
10261 * mem-break.h (set_breakpoint_data): Remove.
10262
fb78e89c
AT
102632015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10264
10265 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10266 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10267 (initialize_low): Remove set_breakpoint_data call.
10268 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10269 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10270 (initialize_low): Remove set_breakpoint_data call.
10271 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10272 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10273 (initialize_low): Remove set_breakpoint_data call.
10274
2e6ee069
AT
102752015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10276
10277 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10278 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10279 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10280 * target.h (target_breakpoint_kind_from_pc): New macro.
10281
1652a986
AT
102822015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10283
10284 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10285 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10286 the default breakpoint kind.
10287
abeead09
AT
102882015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10289
10290 * linux-arm-low.c (arm_supports_z_point_type): Add software
10291 breakpoint support.
10292
b0b4b501
AT
102932015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10294
10295 * linux-arm-low.c: Refactor breakpoint definitions.
10296 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10297 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10298
8689682c
AT
102992015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10300
10301 * Makefile.in: Add arm.c/o.
10302 * configure.srv: Likewise.
10303 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10304 (arm_breakpoint_kind_from_pc): New function.
10305 (arm_sw_breakpoint_from_kind): Return proper kind.
10306 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10307
27165294
AT
103082015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10309
10310 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10311 removal.
10312 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10313 (struct raw_breakpoint) <size>: Remove.
10314 (struct raw_breakpoint) <kind>: Add.
10315 (bp_size): New function.
10316 (bp_opcode): Likewise.
10317 (find_raw_breakpoint_at): Adjust for kind.
10318 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10319 (remove_memory_breakpoint): Adjust for kind call bp_size.
10320 (set_raw_breakpoint_at): Adjust for kind.
10321 (set_breakpoint): Likewise.
10322 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10323 (delete_raw_breakpoint): Adjust for kind.
10324 (delete_breakpoint): Likewise.
10325 (find_gdb_breakpoint): Likewise.
10326 (set_gdb_breakpoint_1): Likewise.
10327 (set_gdb_breakpoint): Likewise.
10328 (delete_gdb_breakpoint_1): Likewise.
10329 (delete_gdb_breakpoint): Likewise.
10330 (uninsert_raw_breakpoint): Likewise.
10331 (reinsert_raw_breakpoint): Likewise.
10332 (set_breakpoint_data): Remove.
10333 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10334 (check_mem_read): Adjust for kind call bp_size.
10335 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10336 (clone_one_breakpoint): Adjust for kind.
10337 * mem-break.h (set_gdb_breakpoint): Likewise.
10338 (delete_gdb_breakpoint): Likewise.
10339 * server.c (process_serial_event): Likewise.
10340
dd373349
AT
103412015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10342
10343 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10344 (struct linux_target_ops) <breakpoint>: Remove.
10345 (struct linux_target_ops) <breakpoint_len>: Remove.
10346 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10347 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10348 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10349 (arm_sw_breakpoint_from_kind): New function.
10350 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10351 (struct linux_target_ops) <breakpoint>: Remove.
10352 (struct linux_target_ops) <breakpoint_len>: Remove.
10353 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10354 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10355 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10356 (struct linux_target_ops) <breakpoint>: Remove.
10357 (struct linux_target_ops) <breakpoint_len>: Remove.
10358 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10359 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10360 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10361 (struct linux_target_ops) <breakpoint>: Remove.
10362 (struct linux_target_ops) <breakpoint_len>: Remove.
10363 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10364 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10365 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10366 and sw_breakpoint_from_kind to increment the pc.
10367 (linux_breakpoint_kind_from_pc): New function.
10368 (linux_sw_breakpoint_from_kind): New function.
10369 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10370 (initialize_low): Call breakpoint_kind_from_pc and
10371 sw_breakpoint_from_kind to replace breakpoint_data/len.
10372 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10373 New field.
10374 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10375 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10376 (struct linux_target_ops) <breakpoint>: Remove.
10377 (struct linux_target_ops) <breakpoint_len>: Remove.
10378 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10379 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10380 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10381 (struct linux_target_ops) <breakpoint>: Remove.
10382 (struct linux_target_ops) <breakpoint_len>: Remove.
10383 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10384 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10385 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10386 (struct linux_target_ops) <breakpoint>: Remove.
10387 (struct linux_target_ops) <breakpoint_len>: Remove.
10388 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10389 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10390 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10391 (struct linux_target_ops) <breakpoint>: Remove.
10392 (struct linux_target_ops) <breakpoint_len>: Remove.
10393 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10394 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10395 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10396 (struct linux_target_ops) <breakpoint>: Remove.
10397 (struct linux_target_ops) <breakpoint_len>: Remove.
10398 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10399 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10400 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10401 (struct linux_target_ops) <breakpoint>: Remove.
10402 (struct linux_target_ops) <breakpoint_len>: Remove.
10403 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10404 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10405 * linux-sh-low.c (sh_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-sparc-low.c (sparc_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-tic6x-low.c (tic6x_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-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10421 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10422 (struct linux_target_ops) <breakpoint>: Remove.
10423 (struct linux_target_ops) <breakpoint_len>: Remove.
10424 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10425 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10426 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10427 (struct linux_target_ops) <breakpoint>: Remove.
10428 (struct linux_target_ops) <breakpoint_len>: Remove.
10429 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10430 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10431
4cd98a19
AT
104322015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10433
10434 * linux-cris-low.c (cris_get_pc): Remove void arg.
10435
774ee6d2
AR
104362015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10437
10438 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10439 variable name.
10440
833dcd29
AR
104412015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10442
10443 * inferiors.c (thread_pid_matches_callback): New function.
10444 (find_thread_process): New function.
10445 (remove_thread): Reset current_thread.
10446 (remove_process): Assert threads have been removed first.
10447
8d689ee5
YQ
104482015-10-15 Yao Qi <yao.qi@linaro.org>
10449
10450 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10451 if it is 3.
10452 (aarch64_remove_point): Likewise.
10453 * regcache.c (regcache_register_size): New function.
10454
1c2e1515
YQ
104552015-10-12 Yao Qi <yao.qi@linaro.org>
10456
10457 * linux-aarch64-low.c: Update all callers as emit_load_store
10458 is renamed to aarch64_emit_load_store.
10459
e1c587c3
YQ
104602015-10-12 Yao Qi <yao.qi@linaro.org>
10461
10462 * linux-aarch64-low.c: Update all callers of function renaming
10463 from emit_insn to aarch64_emit_insn.
10464
b6542f81
YQ
104652015-10-12 Yao Qi <yao.qi@linaro.org>
10466
10467 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10468 arch/aarch64-insn.h.
10469 (struct aarch64_memory_operand): Likewise.
10470 (ENCODE): Likewise.
10471 (emit_insn): Move to arch/aarch64-insn.c.
10472 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10473 (emit_load_store): Move to arch/aarch64-insn.c.
10474 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10475 (can_encode_int32): Remove.
10476
246994ce
YQ
104772015-10-12 Yao Qi <yao.qi@linaro.org>
10478
10479 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10480 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10481 (aarch64_relocate_instruction): Likewise.
10482 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10483 (struct aarch64_insn_visitor): Likewise.
10484
0badd99f
YQ
104852015-10-12 Yao Qi <yao.qi@linaro.org>
10486
10487 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10488 (struct aarch64_insn_visitor): New.
10489 (struct aarch64_insn_relocation_data): New.
10490 (aarch64_ftrace_insn_reloc_b): New function.
10491 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10492 (aarch64_ftrace_insn_reloc_cb): Likewise.
10493 (aarch64_ftrace_insn_reloc_tb): Likewise.
10494 (aarch64_ftrace_insn_reloc_adr): Likewise.
10495 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10496 (aarch64_ftrace_insn_reloc_others): Likewise.
10497 (visitor): New.
10498 (aarch64_relocate_instruction): Use visitor.
10499
dfaffe9d
YQ
105002015-10-12 Yao Qi <yao.qi@linaro.org>
10501
10502 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10503 int. Add argument buf.
10504 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10505 aarch64_relocate_instruction.
10506
70b439f0
YQ
105072015-10-12 Yao Qi <yao.qi@linaro.org>
10508
10509 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10510 argument insn. Remove local variable insn. Don't call
10511 target_read_uint32.
10512 (aarch64_install_fast_tracepoint_jump_pad): Call
10513 target_read_uint32.
10514
7781c06f
YQ
105152015-09-30 Yao Qi <yao.qi@linaro.org>
10516
10517 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10518 (emit_load_store_pair): Likewise.
10519
9a3c8263
SM
105202015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10521
10522 * dll.c (match_dll): Add cast(s).
10523 (unloaded_dll): Likewise.
10524 * linux-low.c (second_thread_of_pid_p): Likewise.
10525 (delete_lwp_callback): Likewise.
10526 (count_events_callback): Likewise.
10527 (select_event_lwp_callback): Likewise.
10528 (linux_set_resume_request): Likewise.
10529 * server.c (accumulate_file_name_length): Likewise.
10530 (emit_dll_description): Likewise.
10531 (handle_qxfer_threads_worker): Likewise.
10532 (visit_actioned_threads): Likewise.
10533 * thread-db.c (any_thread_of): Likewise.
10534 * tracepoint.c (same_process_p): Likewise.
10535 (match_blocktype): Likewise.
10536 (build_traceframe_info_xml): Likewise.
10537
224c3ddb
SM
105382015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10539
10540 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10541 assignment.
10542 (gdb_unparse_agent_expr): Likewise.
10543 * hostio.c (require_data): Likewise.
10544 (handle_pread): Likewise.
10545 * linux-low.c (disable_regset): Likewise.
10546 (fetch_register): Likewise.
10547 (store_register): Likewise.
10548 (get_dynamic): Likewise.
10549 (linux_qxfer_libraries_svr4): Likewise.
10550 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10551 (set_fast_tracepoint_jump): Likewise.
10552 (uninsert_fast_tracepoint_jumps_at): Likewise.
10553 (reinsert_fast_tracepoint_jumps_at): Likewise.
10554 (validate_inserted_breakpoint): Likewise.
10555 (clone_agent_expr): Likewise.
10556 * regcache.c (init_register_cache): Likewise.
10557 * remote-utils.c (putpkt_binary_1): Likewise.
10558 (decode_M_packet): Likewise.
10559 (decode_X_packet): Likewise.
10560 (look_up_one_symbol): Likewise.
10561 (relocate_instruction): Likewise.
10562 (monitor_output): Likewise.
10563 * server.c (handle_search_memory): Likewise.
10564 (handle_qxfer_exec_file): Likewise.
10565 (handle_qxfer_libraries): Likewise.
10566 (handle_qxfer): Likewise.
10567 (handle_query): Likewise.
10568 (handle_v_cont): Likewise.
10569 (handle_v_run): Likewise.
10570 (captured_main): Likewise.
10571 * target.c (write_inferior_memory): Likewise.
10572 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10573 * tracepoint.c (init_trace_buffer): Likewise.
10574 (add_tracepoint_action): Likewise.
10575 (add_traceframe): Likewise.
10576 (add_traceframe_block): Likewise.
10577 (cmd_qtdpsrc): Likewise.
10578 (cmd_qtdv): Likewise.
10579 (cmd_qtstatus): Likewise.
10580 (response_source): Likewise.
10581 (response_tsv): Likewise.
10582 (cmd_qtnotes): Likewise.
10583 (gdb_collect): Likewise.
10584 (initialize_tracepoint): Likewise.
10585
afbe19f8
PL
105862015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10587
10588 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10589 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10590 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10591 <NOP>: New.
10592 (enum aarch64_condition_codes): New enum.
10593 (w0): New static global.
10594 (fp): Likewise.
10595 (lr): Likewise.
10596 (struct aarch64_memory_operand) <type>: New
10597 MEMORY_OPERAND_POSTINDEX type.
10598 (postindex_memory_operand): New helper function.
10599 (emit_ret): New function.
10600 (emit_load_store_pair): New function, factored out of emit_stp
10601 with support for MEMORY_OPERAND_POSTINDEX.
10602 (emit_stp): Rewrite using emit_load_store_pair.
10603 (emit_ldp): New function.
10604 (emit_load_store): Likewise.
10605 (emit_ldr): Mention post-index instruction in comment.
10606 (emit_ldrh): New function.
10607 (emit_ldrb): New function.
10608 (emit_ldrsw): Mention post-index instruction in comment.
10609 (emit_str): Likewise.
10610 (emit_subs): New function.
10611 (emit_cmp): Likewise.
10612 (emit_and): Likewise.
10613 (emit_orr): Likewise.
10614 (emit_orn): Likewise.
10615 (emit_eor): Likewise.
10616 (emit_mvn): Likewise.
10617 (emit_lslv): Likewise.
10618 (emit_lsrv): Likewise.
10619 (emit_asrv): Likewise.
10620 (emit_mul): Likewise.
10621 (emit_sbfm): Likewise.
10622 (emit_sbfx): Likewise.
10623 (emit_ubfm): Likewise.
10624 (emit_ubfx): Likewise.
10625 (emit_csinc): Likewise.
10626 (emit_cset): Likewise.
10627 (emit_nop): Likewise.
10628 (emit_ops_insns): New helper function.
10629 (emit_pop): Likewise.
10630 (emit_push): Likewise.
10631 (aarch64_emit_prologue): New function.
10632 (aarch64_emit_epilogue): Likewise.
10633 (aarch64_emit_add): Likewise.
10634 (aarch64_emit_sub): Likewise.
10635 (aarch64_emit_mul): Likewise.
10636 (aarch64_emit_lsh): Likewise.
10637 (aarch64_emit_rsh_signed): Likewise.
10638 (aarch64_emit_rsh_unsigned): Likewise.
10639 (aarch64_emit_ext): Likewise.
10640 (aarch64_emit_log_not): Likewise.
10641 (aarch64_emit_bit_and): Likewise.
10642 (aarch64_emit_bit_or): Likewise.
10643 (aarch64_emit_bit_xor): Likewise.
10644 (aarch64_emit_bit_not): Likewise.
10645 (aarch64_emit_equal): Likewise.
10646 (aarch64_emit_less_signed): Likewise.
10647 (aarch64_emit_less_unsigned): Likewise.
10648 (aarch64_emit_ref): Likewise.
10649 (aarch64_emit_if_goto): Likewise.
10650 (aarch64_emit_goto): Likewise.
10651 (aarch64_write_goto_address): Likewise.
10652 (aarch64_emit_const): Likewise.
10653 (aarch64_emit_call): Likewise.
10654 (aarch64_emit_reg): Likewise.
10655 (aarch64_emit_pop): Likewise.
10656 (aarch64_emit_stack_flush): Likewise.
10657 (aarch64_emit_zero_ext): Likewise.
10658 (aarch64_emit_swap): Likewise.
10659 (aarch64_emit_stack_adjust): Likewise.
10660 (aarch64_emit_int_call_1): Likewise.
10661 (aarch64_emit_void_call_2): Likewise.
10662 (aarch64_emit_eq_goto): Likewise.
10663 (aarch64_emit_ne_goto): Likewise.
10664 (aarch64_emit_lt_goto): Likewise.
10665 (aarch64_emit_le_goto): Likewise.
10666 (aarch64_emit_gt_goto): Likewise.
10667 (aarch64_emit_ge_got): Likewise.
10668 (aarch64_emit_ops_impl): New static global variable.
10669 (aarch64_emit_ops): New target function, return
10670 &aarch64_emit_ops_impl.
10671 (struct linux_target_ops): Install it.
10672
bb903df0
PL
106732015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10674
10675 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10676 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10677 aarch64-ipa.o.
10678 * linux-aarch64-ipa.c: New file.
10679 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10680 and endian.h.
10681 (aarch64_get_thread_area): New target method.
10682 (extract_signed_bitfield): New helper function.
10683 (aarch64_decode_ldr_literal): New function.
10684 (enum aarch64_opcodes): New enum.
10685 (struct aarch64_register): New struct.
10686 (struct aarch64_operand): New struct.
10687 (x0): New static global.
10688 (x1): Likewise.
10689 (x2): Likewise.
10690 (x3): Likewise.
10691 (x4): Likewise.
10692 (w2): Likewise.
10693 (ip0): Likewise.
10694 (sp): Likewise.
10695 (xzr): Likewise.
10696 (aarch64_register): New helper function.
10697 (register_operand): Likewise.
10698 (immediate_operand): Likewise.
10699 (struct aarch64_memory_operand): New struct.
10700 (offset_memory_operand): New helper function.
10701 (preindex_memory_operand): Likewise.
10702 (enum aarch64_system_control_registers): New enum.
10703 (ENCODE): New macro.
10704 (emit_insn): New helper function.
10705 (emit_b): New function.
10706 (emit_bcond): Likewise.
10707 (emit_cb): Likewise.
10708 (emit_tb): Likewise.
10709 (emit_blr): Likewise.
10710 (emit_stp): Likewise.
10711 (emit_ldp_q_offset): Likewise.
10712 (emit_stp_q_offset): Likewise.
10713 (emit_load_store): Likewise.
10714 (emit_ldr): Likewise.
10715 (emit_ldrsw): Likewise.
10716 (emit_str): Likewise.
10717 (emit_ldaxr): Likewise.
10718 (emit_stxr): Likewise.
10719 (emit_stlr): Likewise.
10720 (emit_data_processing_reg): Likewise.
10721 (emit_data_processing): Likewise.
10722 (emit_add): Likewise.
10723 (emit_sub): Likewise.
10724 (emit_mov): Likewise.
10725 (emit_movk): Likewise.
10726 (emit_mov_addr): Likewise.
10727 (emit_mrs): Likewise.
10728 (emit_msr): Likewise.
10729 (emit_sevl): Likewise.
10730 (emit_wfe): Likewise.
10731 (append_insns): Likewise.
10732 (can_encode_int32_in): New helper function.
10733 (aarch64_relocate_instruction): New function.
10734 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10735 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10736 (struct linux_target_ops): Install aarch64_get_thread_area,
10737 aarch64_install_fast_tracepoint_jump_pad and
10738 aarch64_get_min_fast_tracepoint_insn_len.
10739
787749ea
PL
107402015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10741
10742 * Makefile.in (aarch64-insn.o): New rule.
10743 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10744
9812b2e6
YQ
107452015-09-21 Yao Qi <yao.qi@linaro.org>
10746
10747 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10748
18fe412b
YQ
107492015-09-21 Yao Qi <yao.qi@linaro.org>
10750
10751 * tracepoint.c (max_jump_pad_size): Remove.
10752
a0cc84cd
YQ
107532015-09-18 Yao Qi <yao.qi@linaro.org>
10754
10755 * linux-aarch64-low.c: Don't include sys/uio.h.
10756 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10757
d78908cf
WW
107582015-09-16 Wei-cheng Wang <cole945@gmail.com>
10759
10760 * tracepoint.c (eval_result_type): Change prototype.
10761 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10762
d57e0d50
PA
107632015-09-15 Pedro Alves <palves@redhat.com>
10764
10765 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10766 Check whether to report exec events instead of checking whether
10767 multiprocess is enabled.
10768
5a676acc
PA
107692015-09-15 Pedro Alves <palves@redhat.com>
10770
10771 PR remote/18965
10772 * remote-utils.c (prepare_resume_reply): Merge
10773 TARGET_WAITKIND_VFORK_DONE switch case with the
10774 TARGET_WAITKIND_FORKED case.
10775
7c5d0fad
YQ
107762015-09-15 Yao Qi <yao.qi@linaro.org>
10777
10778 * server.c (handle_query): Check string comparison using
10779 "else if" instead of "if".
10780
750ce8d1
YQ
107812015-09-15 Yao Qi <yao.qi@linaro.org>
10782
10783 * server.c (vCont_supported): New global variable.
10784 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10785 matches. Append ";vContSupported+" to own_buf.
10786 (handle_v_requests): Append ";s;S" to own_buf if target supports
10787 hardware single step or vCont_supported is false.
10788 (capture_main): Set vCont_supported to zero.
10789
70b90b91
YQ
107902015-09-15 Yao Qi <yao.qi@linaro.org>
10791
10792 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10793 it to ...
10794 (linux_supports_hardware_single_step): ... New function.
10795 (linux_target_ops): Update.
10796 * lynx-low.c (lynx_target_ops): Set field
10797 supports_hardware_single_step to target_can_do_hardware_single_step.
10798 * nto-low.c (nto_target_ops): Likewise.
10799 * spu-low.c (spu_target_ops): Likewise.
10800 * win32-low.c (win32_target_ops): Likewise.
10801 * target.c (target_can_do_hardware_single_step): New function.
10802 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10803 Remove. <supports_hardware_single_step>: New field.
10804 (target_supports_conditional_breakpoints): Remove.
10805 (target_supports_hardware_single_step): New macro.
10806 (target_can_do_hardware_single_step): Declare.
10807 * server.c (handle_query): Use target_supports_hardware_single_step
10808 instead of target_supports_conditional_breakpoints.
10809
ade90bde
YQ
108102015-09-15 Yao Qi <yao.qi@linaro.org>
10811
10812 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10813 function.
10814 (struct linux_target_ops the_low_target): Install
10815 aarch64_linux_siginfo_fixup.
10816
94585166
DB
108172015-09-11 Don Breazeal <donb@codesourcery.com>
10818 Luis Machado <lgustavo@codesourcery.com>
10819
10820 * linux-low.c (linux_mourn): Static declaration.
10821 (linux_arch_setup): Move in front of
10822 handle_extended_wait.
10823 (linux_arch_setup_thread): New function.
10824 (handle_extended_wait): Handle exec events. Call
10825 linux_arch_setup_thread. Make event_lwp argument a
10826 pointer-to-a-pointer.
10827 (check_zombie_leaders): Do not check stopped threads.
10828 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10829 (linux_low_filter_event): Add lwp and thread for exec'ing
10830 non-leader thread if leader thread has been deleted.
10831 Refactor code into linux_arch_setup_thread and call it.
10832 Pass child lwp pointer by reference to handle_extended_wait.
10833 (linux_wait_for_event_filtered): Update comment.
10834 (linux_wait_1): Prevent clobbering exec event status.
10835 (linux_supports_exec_events): New function.
10836 (linux_target_ops) <supports_exec_events>: Initialize new member.
10837 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10838 new member.
10839 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10840 * server.c (report_exec_events): New global variable.
10841 (handle_query): Handle qSupported query for exec-events feature.
10842 (captured_main): Initialize report_exec_events.
10843 * server.h (report_exec_events): Declare new global variable.
10844 * target.h (struct target_ops) <supports_exec_events>: New
10845 member.
10846 (target_supports_exec_events): New macro.
10847 * win32-low.c (win32_target_ops) <supports_exec_events>:
10848 Initialize new member.
10849
0568462b
MM
108502015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10851
10852 * linux-low.c (linux_low_enable_btrace): Remove.
10853 (linux_target_ops): Replace linux_low_enable_btrace with
10854 linux_enable_btrace.
10855
39edd165
YQ
108562015-09-03 Yao Qi <yao.qi@linaro.org>
10857
10858 * linux-aarch64-low.c (aarch64_insert_point): Call
10859 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10860 returns true.
10861
1db33b5a
UW
108622015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10863
10864 * linux-low.c (check_stopped_by_breakpoint): Use
10865 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10866
ab290430
PA
108672015-08-27 Pedro Alves <palves@redhat.com>
10868
10869 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10870
8d749320
SM
108712015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10872
6711b7f8
SM
10873 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10874 the XNEW-family equivalent.
8d749320
SM
10875 (compile_bytecodes): Likewise.
10876 * dll.c (loaded_dll): Likewise.
10877 * event-loop.c (append_callback_event): Likewise.
10878 (create_file_handler): Likewise.
10879 (create_file_event): Likewise.
10880 * hostio.c (handle_open): Likewise.
10881 * inferiors.c (add_thread): Likewise.
10882 (add_process): Likewise.
10883 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10884 * linux-arm-low.c (arm_new_process): Likewise.
10885 (arm_new_thread): Likewise.
10886 * linux-low.c (add_to_pid_list): Likewise.
10887 (linux_add_process): Likewise.
10888 (handle_extended_wait): Likewise.
10889 (add_lwp): Likewise.
10890 (enqueue_one_deferred_signal): Likewise.
10891 (enqueue_pending_signal): Likewise.
10892 (linux_resume_one_lwp_throw): Likewise.
10893 (linux_resume_one_thread): Likewise.
10894 (linux_read_memory): Likewise.
10895 (linux_write_memory): Likewise.
10896 * linux-mips-low.c (mips_linux_new_process): Likewise.
10897 (mips_linux_new_thread): Likewise.
10898 (mips_add_watchpoint): Likewise.
10899 * linux-x86-low.c (initialize_low_arch): Likewise.
10900 * lynx-low.c (lynx_add_process): Likewise.
10901 * mem-break.c (set_raw_breakpoint_at): Likewise.
10902 (set_breakpoint): Likewise.
10903 (add_condition_to_breakpoint): Likewise.
10904 (add_commands_to_breakpoint): Likewise.
10905 (clone_agent_expr): Likewise.
10906 (clone_one_breakpoint): Likewise.
10907 * regcache.c (new_register_cache): Likewise.
10908 * remote-utils.c (look_up_one_symbol): Likewise.
10909 * server.c (queue_stop_reply): Likewise.
10910 (start_inferior): Likewise.
10911 (queue_stop_reply_callback): Likewise.
10912 (handle_target_event): Likewise.
10913 * spu-low.c (fetch_ppc_memory): Likewise.
10914 (store_ppc_memory): Likewise.
10915 * target.c (set_target_ops): Likewise.
10916 * thread-db.c (thread_db_load_search): Likewise.
10917 (try_thread_db_load_1): Likewise.
10918 * tracepoint.c (add_tracepoint): Likewise.
10919 (add_tracepoint_action): Likewise.
10920 (create_trace_state_variable): Likewise.
10921 (cmd_qtdpsrc): Likewise.
10922 (cmd_qtro): Likewise.
10923 (add_while_stepping_state): Likewise.
10924 * win32-low.c (child_add_thread): Likewise.
10925 (get_image_name): Likewise.
10926
ed8b7b42
YQ
109272015-08-25 Yao Qi <yao.qi@linaro.org>
10928
10929 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10930
db3cb7cb
YQ
109312015-08-25 Yao Qi <yao.qi@linaro.org>
10932
10933 * Makefile.in (aarch64-linux.o): New rule.
10934 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10935 srv_tgtobj.
10936 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10937 (aarch64_init_debug_reg_state): Make it extern.
10938 (aarch64_linux_prepare_to_resume): Remove.
10939
f6011a1c
YQ
109402015-08-25 Yao Qi <yao.qi@linaro.org>
10941
10942 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10943 lwp_arch_private_info and ptid_of_lwp.
10944
88e2cf7e
YQ
109452015-08-25 Yao Qi <yao.qi@linaro.org>
10946
10947 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10948 Find proc_info by find_process_pid. All callers updated.
10949
5e35436e
YQ
109502015-08-25 Yao Qi <yao.qi@linaro.org>
10951
10952 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10953 Remove.
10954 (debug_reg_change_callback): Remove.
10955 (aarch64_notify_debug_reg_change): Remove.
10956
4a8a7965
YQ
109572015-08-25 Yao Qi <yao.qi@linaro.org>
10958
10959 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10960 Call current_lwp_ptid.
10961
32a271ee
YQ
109622015-08-25 Yao Qi <yao.qi@linaro.org>
10963
10964 * linux-aarch64-low.c (debug_reg_change_callback): Use
10965 debug_printf.
10966
0d51c8d7
YQ
109672015-08-25 Yao Qi <yao.qi@linaro.org>
10968
10969 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10970
31a43dd5
YQ
109712015-08-25 Yao Qi <yao.qi@linaro.org>
10972
10973 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10974
8ee52567
YQ
109752015-08-25 Yao Qi <yao.qi@linaro.org>
10976
10977 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10978 the code.
10979
ff3f0f45
YQ
109802015-08-25 Yao Qi <yao.qi@linaro.org>
10981
10982 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10983 Remove.
10984 (debug_reg_change_callback): Remove argument entry and add argument
10985 lwp. Remove local variable thread. Don't print thread id in the
10986 debugging output. Don't check whether pid of thread equals to pid.
10987 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10988 iterate_over_lwps instead find_inferior.
10989
3d40fbb5
PA
109902015-08-24 Pedro Alves <palves@redhat.com>
10991
10992 * inferiors.c (get_first_process): New function.
10993 * inferiors.h (get_first_process): New declaration.
10994 * remote-utils.c (read_ptid): Default to the first process in the
10995 list, instead of to the current thread's process.
10996
438e1e42
PA
109972015-08-24 Pedro Alves <palves@redhat.com>
10998
10999 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
11000 * event-loop.c: Likewise.
11001 * remote-utils.c: Likewise.
11002 * tracepoint.c: Likewise.
11003
a8c6d4fc
PA
110042015-08-24 Pedro Alves <palves@redhat.com>
11005
11006 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
11007 ptid_get_lwp.
11008
99b0bb12
PA
110092015-08-21 Pedro Alves <palves@redhat.com>
11010
11011 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11012 instead of literal 1.
11013
f8904751
PA
110142015-08-21 Pedro Alves <palves@redhat.com>
11015
11016 * tdesc.c (default_description): Explicitly zero-initialize.
11017
465a859e
PA
110182015-08-21 Pedro Alves <palves@redhat.com>
11019
11020 PR gdb/18749
11021 * inferiors.c (remove_thread): Discard any pending stop reply for
11022 this thread.
11023 * server.c (remove_all_on_match_pid): Rename to ...
11024 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11025 instead of a pid.
11026 (discard_queued_stop_replies): Change parameter to a ptid. Now
11027 extern.
11028 (handle_v_kill, kill_inferior_callback, captured_main)
11029 (process_serial_event): Adjust.
11030 * server.h (discard_queued_stop_replies): Declare.
11031
f0db101d
PA
110322015-08-21 Pedro Alves <palves@redhat.com>
11033
11034 * linux-low.c (wait_for_sigstop): Always switch to no thread
11035 selected if the previously current thread dies.
11036 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11037 process instead of the current thread's.
11038 * remote-utils.c (input_interrupt): Don't check if there's no
11039 current thread.
11040 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11041 current thread to the general thread fails, error out.
11042 (handle_qxfer_auxv, handle_qxfer_libraries)
11043 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11044 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11045 (handle_query): Check if there's a thread selected instead of
11046 checking whether there's any thread in the thread list.
11047 (handle_qxfer_threads, handle_qxfer_btrace)
11048 (handle_qxfer_btrace_conf): Don't error out early if there's no
11049 thread in the thread list.
11050 (handle_v_cont, myresume): Don't set the current thread to the
11051 continue thread.
11052 (process_serial_event) <Hg handling>: Also set thread_id if the
11053 previous general thread is still alive.
11054 (process_serial_event) <g/G handling>: If setting the current
11055 thread to the general thread fails, error out.
11056 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11057 thread's lwp instead of the current thread's.
11058 * target.c (set_desired_thread): If the desired thread was not
11059 found, leave the current thread pointing to NULL. Return an int
11060 (boolean) indicating success.
11061 * target.h (set_desired_thread): Change return type to int.
11062
40045d91
MF
110632015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11064
11065 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11066 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11067 #includes.
11068 (ps_get_thread_area): New function.
11069
45face3b
GB
110702015-08-19 Gary Benson <gbenson@redhat.com>
11071
11072 * hostio.c (handle_pread): Do not attempt to read more data
11073 than hostio_reply_with_data can fit in a packet.
11074
16d5f642
JB
110752015-08-18 Joel Brobecker <brobecker@adacore.com>
11076
11077 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11078
a738da3a
MF
110792015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11080
11081 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11082
33ebda9d
PA
110832015-08-06 Pedro Alves <palves@redhat.com>
11084
11085 * tracepoint.c (expr_eval_result): Now an int.
11086
a44892be
PA
110872015-08-06 Pedro Alves <palves@redhat.com>
11088
11089 * gdbthread.h (struct regcache): Forward declare.
11090 (struct thread_info) <regcache_data>: Now a struct regcache
11091 pointer.
11092 * inferiors.c (inferior_regcache_data)
11093 (set_inferior_regcache_data): Now work with struct regcache
11094 pointers.
11095 * inferiors.h (struct regcache): Forward declare.
11096 (inferior_regcache_data, set_inferior_regcache_data): Now work
11097 with struct regcache pointers.
11098 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11099 (free_register_cache_thread): Remove struct regcache pointer
11100 casts.
11101
608a1e46
PA
111022015-08-06 Pedro Alves <palves@redhat.com>
11103
11104 * server.c (captured_main): On error, print the exception message
11105 to stderr, and if run_once is set, throw a quit.
11106
f0ce0d3a
PA
111072015-08-06 Pedro Alves <palves@redhat.com>
11108
11109 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11110 the current thread.
11111
bf47e248
PA
111122015-08-06 Pedro Alves <palves@redhat.com>
11113
11114 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11115 reading beyond the passed in buffer length.
11116
b6b9ffcc
PL
111172015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11118
11119 * tracepoint.c (symbol_list) <required>: Remove.
11120
863d01bd
PA
111212015-08-06 Pedro Alves <palves@redhat.com>
11122
11123 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11124 count if stopping and suspending threads.
11125 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11126 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11127 (linux_detach): Complete an ongoing step-over.
11128 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11129 throughout.
11130 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11131 (linux_wait_1): If passing a signal to the inferior after
11132 finishing a step-over, unsuspend and re-resume all lwps. If we
11133 see a single-step event but the thread should be continuing, don't
11134 pass the trap to gdb.
11135 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11136 internal_error instead of gdb_assert.
11137 (enqueue_pending_signal): New function.
11138 (check_ptrace_stopped_lwp_gone): Add debug output.
11139 (start_step_over): Use internal_error instead of gdb_assert.
11140 (complete_ongoing_step_over): New function.
11141 (linux_resume_one_thread): Don't resume a suspended thread.
11142 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11143 it stepping.
11144
00db26fa
PA
111452015-08-06 Pedro Alves <palves@redhat.com>
11146
11147 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11148 (linux_thread_alive): Use lwp_is_marked_dead.
11149 (extended_event_reported): Delete.
11150 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11151 instead of extended_event_reported.
11152 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11153 as well.
11154 (lwp_is_marked_dead): New function.
11155 (lwp_running): Use lwp_is_marked_dead.
11156 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11157 comment.
11158
ad071a30
PA
111592015-08-06 Pedro Alves <palves@redhat.com>
11160
11161 * linux-low.c (linux_wait_1): Move fork event output out of the
11162 !report_to_gdb check. Pass event_child->waitstatus to
11163 target_waitstatus_to_string instead of ourstatus.
11164
524b57e6
YQ
111652015-08-04 Yao Qi <yao.qi@linaro.org>
11166
11167 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11168 if current_thread is 32 bit.
11169
6085d6f6
YQ
111702015-08-04 Yao Qi <yao.qi@linaro.org>
11171
11172 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11173 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11174 * server.c (extended_protocol): Remove "static".
11175 * server.h (extended_protocol): Declare it.
11176
8a7e4587
YQ
111772015-08-04 Yao Qi <yao.qi@linaro.org>
11178
11179 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11180 both aarch64 and aarch32.
11181 (aarch64_set_pc): Likewise.
11182
3b53ae99
YQ
111832015-08-04 Yao Qi <yao.qi@linaro.org>
11184
11185 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11186 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11187 arm-with-neon.xml to srv_xmlfiles.
11188 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11189 (is_64bit_tdesc): New function.
11190 (aarch64_linux_read_description): New function.
11191 (aarch64_arch_setup): Call aarch64_linux_read_description.
11192 (regs_info): Rename to regs_info_aarch64.
11193 (aarch64_regs_info): Return right regs_info.
11194 (initialize_low_arch): Call initialize_low_arch_aarch32.
11195
bd9e6534
YQ
111962015-08-04 Yao Qi <yao.qi@linaro.org>
11197
11198 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11199 * linux-aarch32-low.c: New file.
11200 * linux-aarch32-low.h: New file.
11201 * linux-arm-low.c (arm_fill_gregset): Move it to
11202 linux-aarch32-low.c.
11203 (arm_store_gregset): Likewise.
11204 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11205 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11206 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11207 (regs_info): Rename to regs_info_arm.
11208 (arm_regs_info): Return regs_info_aarch32 if
11209 have_ptrace_getregset is 1 and target description is
11210 arm_with_neon or arm_with_vfpv3.
11211 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11212 Call initialize_low_arch_aarch32 instead.
11213
ded48a5e
YQ
112142015-08-04 Yao Qi <yao.qi@linaro.org>
11215
11216 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11217 * linux-low.c: ... here.
11218 * linux-low.h (have_ptrace_getregset): Declare it.
11219
96e9210f
PA
112202015-08-04 Pedro Alves <palves@redhat.com>
11221
11222 * thread-db.c (struct thread_db): Use new typedefs.
11223 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11224 CHK calls.
11225 (disable_thread_event_reporting): Cast result of dlsym to
11226 destination function pointer type.
11227 (thread_db_mourn): Use td_ta_delete_ftype.
11228
af60a1ef
SL
112292015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11230
11231 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11232 arch variant.
11233 (CDX_BREAKPOINT): Define for R2.
11234 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11235 (the_low_target): Add comments.
11236
e8b41681
YQ
112372015-07-30 Yao Qi <yao.qi@linaro.org>
11238
11239 * linux-arm-low.c (arm_hwcap): Remove it.
11240 (arm_read_description): New local variable arm_hwcap. Don't
11241 set arm_hwcap to zero.
11242
89abb039
YQ
112432015-07-30 Yao Qi <yao.qi@linaro.org>
11244
11245 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11246 Use regcache->tdesc instead.
11247 (arm_store_wmmxregset): Likewise.
11248 (arm_fill_vfpregset): Likewise.
11249 (arm_store_vfpregset): Likewise.
11250
deca266c
YQ
112512015-07-30 Yao Qi <yao.qi@linaro.org>
11252
11253 * linux-arm-low.c: Include arch/arm.h.
11254 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11255 (arm_store_gregset): Likewise.
11256
aa58a496
SM
112572015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11258
11259 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11260 ptrace's 4th parameter.
11261
50904b25
YQ
112622015-07-27 Yao Qi <yao.qi@linaro.org>
11263
11264 * configure.srv (case aarch64*-*-linux*): Don't set
11265 srv_linux_usrregs.
11266
5826e159
PA
112672015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11268
11269 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11270 sys/ptrace.h.
11271 * linux-arm-low.c: Likewise.
11272 * linux-cris-low.c: Likewise.
11273 * linux-crisv32-low.c: Likewise.
11274 * linux-low.c: Likewise.
11275 * linux-m68k-low.c: Likewise.
11276 * linux-mips-low.c: Likewise.
11277 * linux-nios2-low.c: Likewise.
11278 * linux-s390-low.c: Likewise.
11279 * linux-sparc-low.c: Likewise.
11280 * linux-tic6x-low.c: Likewise.
11281 * linux-tile-low.c: Likewise.
11282 * linux-x86-low.c: Likewise.
11283
54019719
PA
112842015-07-24 Pedro Alves <palves@redhat.com>
11285
11286 * config.in: Regenerate.
11287 * configure: Regenerate.
11288
eb7aa561
PA
112892015-07-24 Pedro Alves <palves@redhat.com>
11290
11291 * acinclude.m4: Include ../ptrace.m4.
11292 * configure.ac: Call GDB_AC_PTRACE.
11293 * config.in, configure: Regenerate.
11294
55d7b841
YQ
112952015-07-24 Yao Qi <yao.qi@linaro.org>
11296
11297 * linux-low.c (linux_create_inferior): Remove setting to
11298 proc->priv->new_inferior.
11299 (linux_attach): Likewise.
11300 (linux_low_filter_event): Likewise.
11301 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11302
c06cbd92
YQ
113032015-07-24 Yao Qi <yao.qi@linaro.org>
11304
11305 * linux-low.c (linux_arch_setup): New function.
11306 (linux_low_filter_event): If proc->tdesc is NULL and
11307 proc->attached is true, call the_low_target.arch_setup.
11308 Otherwise, keep status pending, and return.
11309 (linux_resume_one_lwp_throw): Don't call get_pc if
11310 thread->while_stepping isn't NULL. Don't call
11311 get_thread_regcache if proc->tdesc is NULL.
11312 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11313 (linux_target_ops): Install arch_setup.
11314 * server.c (start_inferior): Call the_target->arch_setup.
11315 * target.h (struct target_ops) <arch_setup>: New field.
11316 (target_arch_setup): New marco.
11317 * lynx-low.c (lynx_target_ops): Update.
11318 * nto-low.c (nto_target_ops): Update.
11319 * spu-low.c (spu_target_ops): Update.
11320 * win32-low.c (win32_target_ops): Update.
11321
5ae3ebba
YQ
113222015-07-24 Yao Qi <yao.qi@linaro.org>
11323
11324 * linux-low.c (linux_add_process): Don't set
11325 proc->priv->new_inferior.
11326 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11327 (linux_attach): Likewise.
11328
eb97750b
YQ
113292015-07-24 Yao Qi <yao.qi@linaro.org>
11330
11331 * server.c (start_inferior): Code refactor.
11332
51aee833
YQ
113332015-07-24 Yao Qi <yao.qi@linaro.org>
11334
11335 * server.c (process_serial_event): Set general_thread.
11336
af1b22f3
YQ
113372015-07-21 Yao Qi <yao.qi@linaro.org>
11338
11339 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11340 aarch64_linux_get_debug_reg_capacity.
11341
554717a3
YQ
113422015-07-17 Yao Qi <yao.qi@linaro.org>
11343
11344 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11345 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11346 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11347 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11348 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11349 (AARCH64_HWP_ALIGNMENT): Likewise.
11350 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11351 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11352 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11353 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11354 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11355 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11356 (struct aarch64_debug_reg_state): Likewise.
11357 (struct arch_lwp_info): Likewise.
11358 (aarch64_align_watchpoint): Likewise.
11359 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11360 (aarch64_watchpoint_length): Likewise.
11361 (aarch64_point_encode_ctrl_reg): Likewise
11362 (aarch64_point_is_aligned): Likewise.
11363 (aarch64_align_watchpoint): Likewise.
11364 (aarch64_linux_set_debug_regs):
11365 (aarch64_dr_state_insert_one_point): Likewise.
11366 (aarch64_dr_state_remove_one_point): Likewise.
11367 (aarch64_handle_breakpoint): Likewise.
11368 (aarch64_handle_aligned_watchpoint): Likewise.
11369 (aarch64_handle_unaligned_watchpoint): Likewise.
11370 (aarch64_handle_watchpoint): Likewise.
11371
c67ca4de
YQ
113722015-07-17 Yao Qi <yao.qi@linaro.org>
11373
11374 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11375 and don't aarch64_get_debug_reg_state. All callers update.
11376 (aarch64_handle_aligned_watchpoint): Likewise.
11377 (aarch64_handle_unaligned_watchpoint): Likewise.
11378 (aarch64_handle_watchpoint): Likewise.
11379 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11380 (aarch64_remove_point): Likewise.
11381
25abf979
YQ
113822015-07-17 Yao Qi <yao.qi@linaro.org>
11383
11384 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11385 debug_printf.
11386 (aarch64_handle_unaligned_watchpoint): Likewise.
11387
db1ff28b
JK
113882015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11389
11390 Revert the previous 3 commits:
11391 Move gdb_regex* to common/
11392 Move linux_find_memory_regions_full & co.
11393 gdbserver build-id attribute generator
11394
700ca40f
JK
113952015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11396 Jan Kratochvil <jan.kratochvil@redhat.com>
11397
11398 gdbserver build-id attribute generator.
11399 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11400 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11401 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11402 (find_phdr): New.
11403 (get_dynamic): Use find_pdhr to traverse program headers.
11404 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11405 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11406 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11407 (get_hex_build_id): New.
11408 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11409 to reply XML document.
11410
9904185c
JK
114112015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11412 Jan Kratochvil <jan.kratochvil@redhat.com>
11413
11414 * target.c: Include target/target-utils.h and fcntl.h.
11415 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11416 (target_fileio_read_stralloc): New functions.
11417
6e5b4429
JK
114182015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11419
11420 * Makefile.in (OBS): Add gdb_regex.o.
11421 (gdb_regex.o): New.
11422 * config.in: Rebuilt.
11423 * configure: Rebuilt.
11424
ddc98fbf
JK
114252015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11426 Jan Kratochvil <jan.kratochvil@redhat.com>
11427
11428 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11429 * Makefile.in (OBS): Add target-utils.o.
11430 (linux-maps.o, target-utils.o): New.
11431 * configure.srv (srv_linux_obj): Add linux-maps.o.
11432
e57bb7a0
PL
114332015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11434
11435 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11436 function, return 1.
11437 (the_low_target): Install it.
11438
586b02a9
PA
114392015-07-14 Pedro Alves <palves@redhat.com>
11440
11441 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11442 Instead, ignore ECHILD, and throw an error for other errnos.
11443
58c1b36c
PA
114442015-07-10 Pedro Alves <palves@redhat.com>
11445
11446 * event-loop.c (struct callback_event) <data>: Change type to
11447 gdb_client_data instance instead of gdb_client_data pointer.
11448 (append_callback_event): Adjust.
11449
421530db
PL
114502015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11451
11452 * linux-aarch64-low.c: Add comments for each linux_target_ops
11453 method. Remove comments already covered in target_ops and
11454 linux_target_ops definitions.
11455 (the_low_target): Add comments for each unimplemented method.
11456
c2d65f38
YQ
114572015-07-09 Yao Qi <yao.qi@linaro.org>
11458
11459 * linux-aarch64-low.c (aarch64_regmap): Remove.
11460 (aarch64_usrregs_info): Remove.
11461 (regs_info): Set field usrregs to NULL.
11462
b20a6524
MM
114632015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11464
11465 * linux-low.c: Include "rsp-low.h"
11466 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11467 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11468 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11469 (handle_btrace_enable_pt): New.
11470 (handle_btrace_general_set): Support "pt".
11471 (handle_btrace_conf_general_set): Support "pt:size".
11472
96c97461
PL
114732015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11474
11475 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11476 Z_PACKET_SW_BP.
11477
37d66942
PL
114782015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11479
11480 * linux-aarch64-low.c: Remove comment about endianness.
11481 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11482 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11483 memcmp.
11484
dc06243f
GB
114852015-06-24 Gary Benson <gbenson@redhat.com>
11486
11487 * linux-i386-ipa.c (stdint.h): Do not include.
11488 * lynx-i386-low.c (stdint.h): Likewise.
11489 * lynx-ppc-low.c (stdint.h): Likewise.
11490 * mem-break.c (stdint.h): Likewise.
11491 * thread-db.c (stdint.h): Likewise.
11492 * tracepoint.c (stdint.h): Likewise.
11493 * win32-low.c (stdint.h): Likewise.
11494
124e13d9
SM
114952015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11496
11497 * server.c (write_qxfer_response): Update call to
11498 remote_escape_output.
11499
909c2cda
JK
115002015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11501 Jan Kratochvil <jan.kratochvil@redhat.com>
11502
11503 Merge multiple hex conversions.
11504 * gdbreplay.c (tohex): Rename to 'fromhex'.
11505 (logchar): Use fromhex.
11506
24c05f46
JK
115072015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11508
11509 * server.c (handle_qxfer_libraries): Set `version' attribute for
11510 <library-list>.
11511
14d2069a
GB
115122015-06-10 Gary Benson <gbenson@redhat.com>
11513
11514 * target.h (struct target_ops) <multifs_open>: New field.
11515 <multifs_unlink>: Likewise.
11516 <multifs_readlink>: Likewise.
11517 * linux-low.c (nat/linux-namespaces.h): New include.
11518 (linux_target_ops): Initialize the_target->multifs_open,
11519 the_target->multifs_unlink and the_target->multifs_readlink.
11520 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11521 * hostio.c (hostio_fs_pid): New static variable.
11522 (hostio_handle_new_gdb_connection): New function.
11523 (handle_setfs): Likewise.
11524 (handle_open): Use the_target->multifs_open as appropriate.
11525 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11526 (handle_readlink): Use the_target->multifs_readlink as
11527 appropriate.
11528 (handle_vFile): Handle vFile:setfs packets.
11529 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11530 after target_handle_new_gdb_connection.
11531
4b8b5e72
GB
115322015-06-10 Gary Benson <gbenson@redhat.com>
11533
11534 * configure.ac (AC_CHECK_FUNCS): Add setns.
11535 * config.in: Regenerate.
11536 * configure: Likewise.
11537 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11538 (linux-namespaces.o): New rule.
11539 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11540
3ac2e371
GB
115412015-06-09 Gary Benson <gbenson@redhat.com>
11542
11543 * hostio.c (handle_open): Process mode argument with
11544 fileio_to_host_mode.
11545
ca9b78ce
YQ
115462015-06-01 Yao Qi <yao.qi@linaro.org>
11547
11548 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11549 * linux-x86-low.c: Likewise.
11550
bfacd19d
DB
115512015-05-28 Don Breazeal <donb@codesourcery.com>
11552
11553 * linux-low.c (handle_extended_wait): Initialize
11554 thread_info.last_resume_kind for new fork children.
11555
452003ef
PA
115562015-05-15 Pedro Alves <palves@redhat.com>
11557
11558 * target.h (target_handle_new_gdb_connection): Rewrite using if
11559 wrapped in do/while.
11560
1041a03c
JB
115612015-05-14 Joel Brobecker <brobecker@adacore.com>
11562
11563 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11564 * configure, config.in: Regenerate.
11565 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11566 Declare typedef.
11567
c269dbdb
DB
115682015-05-12 Don Breazeal <donb@codesourcery.com>
11569
11570 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11571 PTRACE_EVENT_VFORK_DONE.
11572 (linux_low_ptrace_options, extended_event_reported): Add vfork
11573 events.
11574 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11575 and "vforkdone" for RSP 'T' Stop Reply Packet.
11576 * server.h (report_vfork_events): Declare
11577 global variable.
11578
3a8a0396
DB
115792015-05-12 Don Breazeal <donb@codesourcery.com>
11580
11581 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11582 (the_low_target) <new_fork>: Initialize new member.
11583 * linux-arm-low.c (arm_new_fork): New function.
11584 (the_low_target) <new_fork>: Initialize new member.
11585 * linux-low.c (handle_extended_wait): Call new target function
11586 new_fork.
11587 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11588 * linux-mips-low.c (mips_add_watchpoint): New function
11589 extracted from mips_insert_point.
11590 (the_low_target) <new_fork>: Initialize new member.
11591 (mips_linux_new_fork): New function.
11592 (mips_insert_point): Call mips_add_watchpoint.
11593 * linux-x86-low.c (x86_linux_new_fork): New function.
11594 (the_low_target) <new_fork>: Initialize new member.
11595
de0d863e
DB
115962015-05-12 Don Breazeal <donb@codesourcery.com>
11597
11598 * linux-low.c (handle_extended_wait): Implement return value,
11599 rename argument 'event_child' to 'event_lwp', handle
11600 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11601 (linux_low_ptrace_options): New function.
11602 (linux_low_filter_event): Call linux_low_ptrace_options,
11603 use different argument fo linux_enable_event_reporting,
11604 use return value from handle_extended_wait.
11605 (extended_event_reported): New function.
11606 (linux_wait_1): Call extended_event_reported and set
11607 status to report fork events.
11608 (linux_write_memory): Add pid to debug message.
11609 (reset_lwp_ptrace_options_callback): New function.
11610 (linux_handle_new_gdb_connection): New function.
11611 (linux_target_ops): Initialize new structure member.
11612 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11613 * lynx-low.c: Initialize new structure member.
11614 * remote-utils.c (prepare_resume_reply): Implement stop reason
11615 "fork" for "T" stop message.
11616 * server.c (handle_query): Call handle_new_gdb_connection.
11617 * server.h (report_fork_events): Declare global flag.
11618 * target.h (struct target_ops) <handle_new_gdb_connection>:
11619 New member.
11620 (target_handle_new_gdb_connection): New macro.
11621 * win32-low.c: Initialize new structure member.
11622
ddcbc397
DB
116232015-05-12 Don Breazeal <donb@codesourcery.com>
11624
11625 * mem-break.c (APPEND_TO_LIST): Define macro.
11626 (clone_agent_expr): New function.
11627 (clone_one_breakpoint): New function.
11628 (clone_all_breakpoints): New function.
11629 * mem-break.h: Declare new functions.
11630
89245bc0
DB
116312015-05-12 Don Breazeal <donb@codesourcery.com>
11632
11633 * linux-low.c (linux_supports_fork_events): New function.
11634 (linux_supports_vfork_events): New function.
11635 (linux_target_ops): Initialize new structure members.
11636 (initialize_low): Call linux_check_ptrace_features.
11637 * lynx-low.c (lynx_target_ops): Initialize new structure
11638 members.
11639 * server.c (report_fork_events, report_vfork_events):
11640 New global flags.
11641 (handle_query): Add new features to qSupported packet and
11642 response.
11643 (captured_main): Initialize new global variables.
11644 * target.h (struct target_ops) <supports_fork_events>:
11645 New member.
11646 <supports_vfork_events>: New member.
11647 (target_supports_fork_events): New macro.
11648 (target_supports_vfork_events): New macro.
11649 * win32-low.c (win32_target_ops): Initialize new structure
11650 members.
11651
835205d0
GB
116522015-05-12 Gary Benson <gbenson@redhat.com>
11653
11654 * server.c (handle_qxfer_exec_file): Use current process
11655 if annex is empty.
11656
21e94bd9
SL
116572015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11658
11659 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11660 Remove HAVE_PTRACE_GETREGS conditionals.
11661 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11662 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11663
45614f15
YQ
116642015-05-08 Yao Qi <yao.qi@linaro.org>
11665
11666 * linux-low.c (linux_supports_conditional_breakpoints): New
11667 function.
11668 (linux_target_ops): Install new target method.
11669 * lynx-low.c (lynx_target_ops): Install NULL hook for
11670 supports_conditional_breakpoints.
11671 * nto-low.c (nto_target_ops): Likewise.
11672 * spu-low.c (spu_target_ops): Likewise.
11673 * win32-low.c (win32_target_ops): Likewise.
11674 * server.c (handle_query): Check
11675 target_supports_conditional_breakpoints.
11676 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11677 New field.
11678 (target_supports_conditional_breakpoints): New macro.
11679
80ad801e
PA
116802015-05-06 Pedro Alves <palves@redhat.com>
11681
11682 PR server/18081
11683 * server.c (start_inferior): If the process exits, mourn it.
11684
819843c7
GB
116852015-04-21 Gary Benson <gbenson@redhat.com>
11686
11687 * hostio.c (fileio_open_flags_to_host): Factored out to
11688 fileio_to_host_openflags in common/fileio.c. Single use
11689 updated.
11690
a2d5a9d7
MF
116912015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11692
11693 * linux-xtensa-low.c (xtensa_fill_gregset)
11694 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11695 XCHAL_HAVE_LOOP.
11696
deb44829
MF
116972015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11698
11699 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11700 (regs_info): Replace usrregs pointer with NULL.
11701
e57f1de3
GB
117022015-04-17 Gary Benson <gbenson@redhat.com>
11703
11704 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11705 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11706 * server.c (handle_qxfer_exec_file): New function.
11707 (qxfer_packets): Add exec-file entry.
11708 (handle_query): Report qXfer:exec-file:read as supported packet.
11709
62828379
RN
117102015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11711
11712 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11713
b88bb450
GB
117142015-04-09 Gary Benson <gbenson@redhat.com>
11715
11716 * hostio-errno.c (errno_to_fileio_error): Remove function.
11717 Update caller to use remote_fileio_to_fio_error.
11718
c8f4bfdd
YQ
117192015-04-09 Yao Qi <yao.qi@linaro.org>
11720
11721 * linux-low.c (linux_insert_point): Call
11722 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11723 (linux_remove_point): Call remove_memory_breakpoint if type is
11724 raw_bkpt_type_sw.
11725 * linux-x86-low.c (x86_insert_point): Don't call
11726 insert_memory_breakpoint.
11727 (x86_remove_point): Don't call remove_memory_breakpoint.
11728
41f98f02
PA
117292015-04-01 Pedro Alves <palves@redhat.com>
11730 Cleber Rosa <crosa@redhat.com>
11731
11732 * server.c (gdbserver_usage): Reorganize and extend the usage
11733 message.
11734
2bf6fb9d
PA
117352015-03-24 Pedro Alves <palves@redhat.com>
11736
11737 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11738 output. Also dump TRAP_TRACE.
11739 (linux_low_filter_event): In debug output, distinguish a
11740 resume_stop SIGSTOP from a delayed SIGSTOP.
11741
369f6daa
GB
117422015-03-24 Gary Benson <gbenson@redhat.com>
11743
11744 * linux-x86-low.c (x86_linux_new_thread): Moved to
11745 nat/x86-linux.c.
11746 (x86_linux_prepare_to_resume): Likewise.
11747
8e5d4070
GB
117482015-03-24 Gary Benson <gbenson@redhat.com>
11749
11750 * Makefile.in (x86-linux-dregs.o): New rule.
11751 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11752 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11753 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11754 (x86_linux_dr_get): Likewise.
11755 (x86_linux_dr_set): Likewise.
11756 (update_debug_registers_callback): Likewise.
11757 (x86_linux_dr_set_addr): Likewise.
11758 (x86_linux_dr_get_addr): Likewise.
11759 (x86_linux_dr_set_control): Likewise.
11760 (x86_linux_dr_get_control): Likewise.
11761 (x86_linux_dr_get_status): Likewise.
11762 (x86_linux_update_debug_registers): Likewise.
11763
2b95d440
GB
117642015-03-24 Gary Benson <gbenson@redhat.com>
11765
11766 * linux-x86-low.c (x86_linux_update_debug_registers):
11767 New function, factored out from...
11768 (x86_linux_prepare_to_resume): ...this.
11769
14b0bc68
GB
117702015-03-24 Gary Benson <gbenson@redhat.com>
11771
11772 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11773 (x86_linux_dr_set): Likewise.
11774 (update_debug_registers_callback): Likewise.
11775 (x86_linux_dr_set_addr): Likewise.
11776 (x86_linux_dr_get_addr): Likewise.
11777 (x86_linux_dr_set_control): Likewise.
11778 (x86_linux_dr_get_control): Likewise.
11779 (x86_linux_dr_get_status): Likewise.
11780 (x86_linux_prepare_to_resume): Likewise.
11781
5dfe6ca8
GB
117822015-03-24 Gary Benson <gbenson@redhat.com>
11783
11784 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11785 Use perror_with_name. Pass string through gettext.
11786 (x86_linux_dr_set): Likewise.
11787
d33472ad
GB
117882015-03-24 Gary Benson <gbenson@redhat.com>
11789
11790 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11791 (x86_linux_dr_set_addr): ...this.
11792 (x86_dr_low_get_addr): Rename to...
11793 (x86_linux_dr_get_addr): ...this.
11794 (x86_dr_low_set_control): Rename to...
11795 (x86_linux_dr_set_control): ...this.
11796 (x86_dr_low_get_control): Rename to...
11797 (x86_linux_dr_get_control): ...this.
11798 (x86_dr_low_get_status): Rename to...
11799 (x86_linux_dr_get_status): ...this.
11800 (x86_dr_low): Update with new function names.
11801
4b134ca1
GB
118022015-03-24 Gary Benson <gbenson@redhat.com>
11803
11804 * Makefile.in (x86-linux.o): New rule.
11805 * configure.srv: Add x86-linux.o to relevant targets.
11806 * linux-low.c (lwp_set_arch_private_info): New function.
11807 (lwp_arch_private_info): Likewise.
11808 * linux-x86-low.c: Include nat/x86-linux.h.
11809 (arch_lwp_info): Removed structure.
11810 (update_debug_registers_callback):
11811 Use lwp_set_debug_registers_changed.
11812 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11813 and lwp_set_debug_registers_changed.
11814 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11815
34c703da
GB
118162015-03-24 Gary Benson <gbenson@redhat.com>
11817
11818 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11819 * linux-arm-low.c (arm_new_thread): Likewise.
11820 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11821 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11822 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11823 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11824
cff068da
GB
118252015-03-24 Gary Benson <gbenson@redhat.com>
11826
11827 * linux-low.c (ptid_of_lwp): New function.
11828 (lwp_is_stopped): Likewise.
11829 (lwp_stop_reason): Likewise.
11830 * linux-x86-low.c (update_debug_registers_callback):
11831 Use lwp_is_stopped.
11832 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11833 lwp_stop_reason.
11834
b2f7c7e8
GB
118352015-03-24 Gary Benson <gbenson@redhat.com>
11836
11837 * linux-low.h (linux_stop_lwp): Remove declaration.
11838
6d4ee8c6
GB
118392015-03-24 Gary Benson <gbenson@redhat.com>
11840
11841 * linux-low.h: Include nat/linux-nat.h.
11842 * linux-low.c (iterate_over_lwps_args): New structure.
11843 (iterate_over_lwps_filter): New function.
11844 (iterate_over_lwps): Likewise.
11845 * linux-x86-low.c (update_debug_registers_callback):
11846 Update signature to what iterate_over_lwps expects.
11847 Remove PID check that iterate_over_lwps now performs.
11848 (x86_dr_low_set_addr): Use iterate_over_lwps.
11849 (x86_dr_low_set_control): Likewise.
11850
70a0bb6b
GB
118512015-03-24 Gary Benson <gbenson@redhat.com>
11852
11853 * linux-x86-low.c (x86_debug_reg_state): New function.
11854 (x86_linux_prepare_to_resume): Use the above.
11855
7b669087
GB
118562015-03-24 Gary Benson <gbenson@redhat.com>
11857
11858 * linux-low.c (current_lwp_ptid): New function.
11859 * linux-x86-low.c: Include nat/linux-nat.h.
11860 (x86_dr_low_get_addr): Use current_lwp_ptid.
11861 (x86_dr_low_get_control): Likewise.
11862 (x86_dr_low_get_status): Likewise.
11863
eef49a3d
PA
118642015-03-20 Pedro Alves <palves@redhat.com>
11865
11866 * tracepoint.c (cmd_qtstatus): Make "str" const.
11867
b2333d22
PA
118682015-03-20 Pedro Alves <palves@redhat.com>
11869
11870 * server.c (handle_general_set): Make "req_str" const.
11871
23f238d3
PA
118722015-03-19 Pedro Alves <palves@redhat.com>
11873
11874 * linux-low.c (linux_resume_one_lwp): Rename to ...
11875 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11876 instead call perror_with_name.
11877 (check_ptrace_stopped_lwp_gone): New function.
11878 (linux_resume_one_lwp): Reimplement as wrapper around
11879 linux_resume_one_lwp_throw that swallows errors if the LWP is
11880 gone.
11881
91baf43f
PA
118822015-03-19 Pedro Alves <palves@redhat.com>
11883
11884 * linux-low.c (count_events_callback, select_event_lwp_callback):
11885 No longer check whether the thread has resume_stop as last resume
11886 kind.
11887
8bf3b159
PA
118882015-03-19 Pedro Alves <palves@redhat.com>
11889
11890 * linux-low.c (count_events_callback, select_event_lwp_callback):
11891 Use the lwp's status_pending_p field, not the thread's.
11892
b90fc188
PA
118932015-03-19 Pedro Alves <palves@redhat.com>
11894
11895 * linux-low.c (select_event_lwp_callback): Update comments to
11896 no longer mention SIGTRAP.
11897
464b0089
GB
118982015-03-18 Gary Benson <gbenson@redhat.com>
11899
11900 * server.c (handle_query): Do not report vFile:fstat as supported.
11901
aa9e327f
GB
119022015-03-11 Gary Benson <gbenson@redhat.com>
11903
11904 * hostio.c (sys/types.h): New include.
11905 (sys/stat.h): Likewise.
11906 (common-remote-fileio.h): Likewise.
11907 (handle_fstat): New function.
11908 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11909
791c0056
GB
119102015-03-11 Gary Benson <gbenson@redhat.com>
11911
11912 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11913 struct stat.st_blocks and struct stat.st_blksize.
11914 * configure: Regenerate.
11915 * config.in: Likewise.
11916 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11917 (OBS): Add common-remote-fileio.o.
11918 (common-remote-fileio.o): New rule.
11919
9a9df970
PA
119202015-03-09 Pedro Alves <palves@redhat.com>
11921
11922 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11923 'struct sockaddr' pointer in 'accept' call.
11924
9eb1356e
PA
119252015-03-09 Pedro Alves <palves@redhat.com>
11926
11927 Revert:
11928 2015-03-07 Pedro Alves <palves@redhat.com>
11929 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11930 or <winsock2.h> here. Instead include "gdb_socket.h".
11931 (remote_open): Use union gdb_sockaddr_u.
11932 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11933 or <winsock2.h> here. Instead include "gdb_socket.h".
11934 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11935 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11936 or <sys/un.h>.
11937 (init_named_socket, gdb_agent_helper_thread): Use union
11938 gdb_sockaddr_u.
11939
aac331e4
PA
119402015-03-07 Pedro Alves <palves@redhat.com>
11941
11942 * configure.ac (build_warnings): Move
11943 -Wdeclaration-after-statement to the C-specific set.
11944 * configure: Regenerate.
11945
366c75fc
PA
119462015-03-07 Pedro Alves <palves@redhat.com>
11947
11948 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11949 or <winsock2.h> here. Instead include "gdb_socket.h".
11950 (remote_open): Use union gdb_sockaddr_u.
11951 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11952 or <winsock2.h> here. Instead include "gdb_socket.h".
11953 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11954 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11955 or <sys/un.h>.
11956 (init_named_socket, gdb_agent_helper_thread): Use union
11957 gdb_sockaddr_u.
11958
492d29ea
PA
119592015-03-07 Pedro Alves <palves@redhat.com>
11960
11961 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11962 instead.
11963
60a191ed
YQ
119642015-03-06 Yao Qi <yao.qi@linaro.org>
11965
11966 * linux-aarch64-low.c (aarch64_insert_point): Use
11967 show_debug_regs as a boolean.
11968 (aarch64_remove_point): Likewise.
11969
f5771b1d
PA
119702015-03-05 Pedro Alves <palves@redhat.com>
11971
11972 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11973 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11974 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11975 * nto-low.c (nto_target_ops): Likewise.
11976 * spu-low.c (spu_target_ops): Likewise.
11977 * win32-low.c (win32_target_ops): Likewise.
11978
3e572f71
PA
119792015-03-04 Pedro Alves <palves@redhat.com>
11980
72f4393d 11981 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11982 Decide whether a breakpoint triggered based on the SIGTRAP's
11983 siginfo.si_code.
72f4393d
L
11984 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11985 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11986 (linux_low_filter_event): Check for breakpoints before checking
11987 watchpoints.
11988 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11989 siginfo.si_code.
72f4393d
L
11990 (linux_stopped_by_sw_breakpoint)
11991 (linux_supports_stopped_by_sw_breakpoint)
11992 (linux_stopped_by_hw_breakpoint)
11993 (linux_supports_stopped_by_hw_breakpoint): New functions.
11994 (linux_target_ops): Install new target methods.
3e572f71 11995
1ec68e26
PA
119962015-03-04 Pedro Alves <palves@redhat.com>
11997
11998 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11999 * server.c (swbreak_feature, hwbreak_feature): New globals.
12000 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
12001 (captured_main): Clear swbreak_feature and hwbreak_feature.
12002 * server.h (swbreak_feature, hwbreak_feature): Declare.
12003 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
12004 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
12005 supports_stopped_by_hw_breakpoint>: New fields.
12006 (target_supports_stopped_by_sw_breakpoint)
12007 (target_stopped_by_sw_breakpoint)
12008 (target_supports_stopped_by_hw_breakpoint)
12009 (target_stopped_by_hw_breakpoint): Declare.
12010
15c66dd6
PA
120112015-03-04 Pedro Alves <palves@redhat.com>
12012
12013 enum lwp_stop_reason -> enum target_stop_reason
12014 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12015 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12016 (linux_wait_1, stuck_in_jump_pad_callback)
12017 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12018 (linux_stopped_by_watchpoint):
12019 * linux-low.h (enum lwp_stop_reason): Delete.
12020 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12021 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12022
98fc70d6
YQ
120232015-03-04 Yao Qi <yao.qi@linaro.org>
12024
12025 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12026
dd2ac174
GB
120272015-03-03 Gary Benson <gbenson@redhat.com>
12028
12029 * hostio.c (handle_vFile): Fix prefix lengths.
12030
d68e53f4
MM
120312015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12032
12033 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12034 ptr_bits.
12035
bf2d68ab
AA
120362015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12037
12038 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12039 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12040 (clean): Add "rm -f" for above C files.
12041 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12042 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12043 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12044 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12045 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12046 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12047 (init_registers_s390x_vx_linux64)
12048 (init_registers_s390x_tevx_linux64)
12049 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12050 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12051 declarations.
12052 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12053 (s390_store_vxrs_high): New functions.
12054 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12055 NT_S390_VXRS_HIGH.
12056 (s390_arch_setup): Add logic for selecting one of the new target
12057 descriptions. Activate the new vector regsets if applicable.
12058 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12059 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12060 and init_registers_s390x_tevx_linux64.
12061
c966a859
PA
120622015-03-01 Pedro Alves <palves@redhat.com>
12063
12064 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12065 parameter.
12066
4180215b
PA
120672015-02-27 Pedro Alves <palves@redhat.com>
12068
12069 * linux-x86-low.c (u_debugreg_offset): New function.
12070 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12071
749bab01
PA
120722015-02-27 Pedro Alves <palves@redhat.com>
12073
12074 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12075 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12076 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12077 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12078 (ps_lsetfpregs, ps_getpid)
12079 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12080 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12081 (ps_lsetxregs, ps_plog): Declare.
12082
3c14e5a3
PA
120832015-02-27 Pedro Alves <palves@redhat.com>
12084
12085 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12086 IP_AGENT_EXPORT_FUNC.
12087 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12088 IP_AGENT_EXPORT_FUNC.
12089 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12090 (IP_AGENT_EXPORT): Delete.
12091 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12092 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12093 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12094 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12095 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12096 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12097 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12098 (traceframe_read_count, traceframe_write_count)
12099 (traceframes_created, trace_state_variables, get_raw_reg)
12100 (get_trace_state_variable_value, set_trace_state_variable_value)
12101 (ust_loaded, helper_thread_id, cmd_buf): Use
12102 IPA_SYM_EXPORTED_NAME.
12103 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12104 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12105 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12106 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12107 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12108 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12109 EXTERN_C_PUSH/EXTERN_C_POP.
12110 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12111 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12112 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12113 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12114 (traceframe_write_count, traceframe_read_count)
12115 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12116 (about_to_request_buffer_space, get_trace_state_variable_value)
12117 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12118 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12119 EXTERN_C_PUSH/EXTERN_C_POP.
12120 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12121 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12122 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12123 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12124 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12125 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12126 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12127 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12128 Define.
12129 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12130 (IP_AGENT_EXPORT_VAR_DECL): Define.
12131 (tracing): Declare.
12132 (gdb_agent_get_raw_reg): Declare.
12133
fe978cb0
PA
121342015-02-27 Tom Tromey <tromey@redhat.com>
12135 Pedro Alves <palves@redhat.com>
12136
12137 Rename symbols whose names are reserved C++ keywords throughout.
12138
3bc3d82a
PA
121392015-02-27 Pedro Alves <palves@redhat.com>
12140
12141 * Makefile.in (COMPILER): New, get it from autoconf.
12142 (CXX): Get from autoconf instead.
12143 (COMPILE.pre): Use COMPILER.
12144 (CC-LD): Rename to ...
12145 (CC_LD): ... this. Use COMPILER.
12146 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12147 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12148 * acinclude.m4: Include build-with-cxx.m4.
12149 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12150 Disable -Werror by default if building in C++ mode.
12151 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12152 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12153 the C++ compiler. Save/restore CXXFLAGS too.
12154 * configure: Regenerate.
12155
07697489
PA
121562015-02-27 Pedro Alves <palves@redhat.com>
12157
12158 * acinclude.m4: Include libiberty.m4.
12159 * configure.ac: Call libiberty_INIT.
12160 * config.in, configure: Regenerate.
12161
9beb7c4e
PA
121622015-02-26 Pedro Alves <palves@redhat.com>
12163
12164 * linux-low.c (linux_wait_1): When incrementing the PC past a
12165 program breakpoint always use the_low_target.breakpoint_len as
12166 increment, rather than the maximum between that and
12167 the_low_target.decr_pc_after_break.
12168
8090aef2
PA
121692015-02-23 Pedro Alves <palves@redhat.com>
12170
12171 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12172 thread was doing a step-over; always adjust the PC if
12173 we stepped over a permanent breakpoint.
12174 (linux_wait_1): If we stepped over breakpoint that was on top of a
12175 permanent breakpoint, manually advance the PC past it.
12176
bc9540e8
PA
121772015-02-23 Pedro Alves <palves@redhat.com>
12178
12179 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12180 modes.
12181 (x86_fill_gregset, x86_store_gregset): Use it when handling
12182 $orig_eax.
12183
2db9a427
PA
121842015-02-20 Pedro Alves <palves@redhat.com>
12185
12186 * thread-db.c: Include "nat/linux-procfs.h".
12187 (thread_db_init): Skip listing new threads if the kernel supports
12188 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12189
afa8d396
PA
121902015-02-20 Pedro Alves <palves@redhat.com>
12191
12192 * linux-low.c (status_pending_p_callback): Use ptid_match.
12193
c9587f88
AT
121942015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12195
12196 PR breakpoints/16812
12197 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12198 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12199 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12200
b05ec7a5
AT
122012015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12202
12203 PR breakpoints/15956
12204 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12205
d33501a5
MM
122062015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12207
12208 * linux-low.c (linux_low_btrace_conf): Print size.
12209 * server.c (handle_btrace_conf_general_set): New.
12210 (hanle_general_set): Call handle_btrace_conf_general_set.
12211 (handle_query): Report Qbtrace-conf:bts:size as supported.
12212
f4abbc16
MM
122132015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12214
12215 * linux-low.c (linux_low_enable_btrace): Update parameters.
12216 (linux_low_btrace_conf): New.
12217 (linux_target_ops)<to_btrace_conf>: Initialize.
12218 * server.c (current_btrace_conf): New.
12219 (handle_btrace_enable): Rename to ...
12220 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12221 to target_enable_btrace. Update comment. Update users.
12222 (handle_qxfer_btrace_conf): New.
12223 (qxfer_packets): Add btrace-conf entry.
12224 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12225 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12226 (target_ops)<read_btrace_conf>: New.
12227 (target_enable_btrace): Update parameters.
12228 (target_read_btrace_conf): New.
12229
043c3577
MM
122302015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12231
12232 * server.c (handle_btrace_general_set): Remove call to
12233 target_supports_btrace.
12234 (supported_btrace_packets): New.
12235 (handle_query): Call supported_btrace_packets.
12236 * target.h: include btrace-common.h.
12237 (btrace_target_info): Removed.
12238 (supports_btrace, target_supports_btrace): Update parameters.
12239
734b0e4b
MM
122402015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12241
12242 * Makefile.in (SFILES): Add common/btrace-common.c.
12243 (OBS): Add common/btrace-common.o.
12244 (btrace-common.o): Add build rules.
12245 * linux-low: Include btrace-common.h.
12246 (linux_low_read_btrace): Use struct btrace_data. Call
12247 btrace_data_init and btrace_data_fini.
12248
d6c146e9
PA
122492015-02-06 Pedro Alves <palves@redhat.com>
12250
12251 * thread-db.c (find_new_threads_callback): Add debug output.
12252
20ba1ce6
PA
122532015-02-04 Pedro Alves <palves@redhat.com>
12254
12255 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12256 (resume_stopped_resumed_lwps): New function.
12257 (linux_wait_for_event_filtered): Use it.
12258
8cc73a39
SDJ
122592015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12260
12261 * Makefile.in (SFILES): Add linux-personality.c.
12262 (linux-personality.o): New rule.
12263 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12264 list of objects to be built.
12265 * linux-low.c: Include nat/linux-personality.h.
12266 (linux_create_inferior): Remove code to disable address space
12267 randomization (moved to ../nat/linux-personality.c). Create
12268 cleanup to disable address space randomization.
12269
fb23d554
SDJ
122702015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12271
12272 * Makefile.in (posix-strerror.o): New rule.
12273 (mingw-strerror.o): Likewise.
12274 * configure: Regenerated.
12275 * configure.ac: Source file ../common/common.host. Initialize new
12276 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12277
cdf43629
YQ
122782015-01-14 Yao Qi <yao@codesourcery.com>
12279
12280 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12281 (ppc-linux.o): New rule.
12282 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12283 * configure.ac: AC_CHECK_FUNCS(getauxval).
12284 * config.in: Re-generated.
12285 * configure: Re-generated.
12286 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12287 ppc64_64bit_inferior_p
12288
514c5338
YQ
122892015-01-14 Yao Qi <yao@codesourcery.com>
12290
12291 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12292 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12293 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12294 (PT_ORIG_R3, PT_TRAP): Likewise.
12295 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12296 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12297 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12298
3368c1e5
JB
122992015-01-10 Joel Brobecker <brobecker@adacore.com>
12300
12301 * i387-fp.c (i387_cache_to_xsave): In look over
12302 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12303 zmmh_low_space field by use of zmmh_high_space.
12304
582511be
PA
123052015-01-09 Pedro Alves <palves@redhat.com>
12306
12307 * linux-low.c (step_over_bkpt): Move higher up in the file.
12308 (handle_extended_wait): Don't store the stop_pc here.
12309 (get_stop_pc): Adjust comments and rename to ...
12310 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12311 stopped for a software breakpoint or hardware breakpoint.
12312 (thread_still_has_status_pending_p): New function.
12313 (status_pending_p_callback): Use
12314 thread_still_has_status_pending_p. If the event is no longer
12315 interesting, resume the LWP.
12316 (handle_tracepoints): Add assert.
12317 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12318 (wstatus_maybe_breakpoint): New function.
12319 (cancel_breakpoint): Delete function.
12320 (check_stopped_by_watchpoint): New function, factored out from
12321 linux_low_filter_event.
12322 (lp_status_maybe_breakpoint): Delete function.
12323 (linux_low_filter_event): Remove filter_ptid argument.
12324 Leave thread group exits pending here. Store the LWP's stop PC.
12325 Always leave events pending.
12326 (linux_wait_for_event_filtered): Pull all events out of the
12327 kernel, and leave them all pending.
12328 (count_events_callback, select_event_lwp_callback): Consider all
12329 events.
12330 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12331 (select_event_lwp): Only give preference to the stepping LWP in
12332 all-stop mode. Adjust comments.
12333 (ignore_event): New function.
12334 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12335 references to cancel_breakpoints. Adjust to renames. Also give
12336 equal priority to all LWPs that have had events in non-stop mode.
12337 If reporting a software breakpoint event, unadjust the LWP's PC.
12338 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12339 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12340 Adjust.
12341 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12342 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12343 (linux_stopped_by_watchpoint): Adjust.
12344 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12345 * linux-low.h (enum lwp_stop_reason): New.
12346 (struct lwp_info) <stop_pc>: Adjust comment.
12347 <stopped_by_watchpoint>: Delete field.
12348 <stop_reason>: New field.
12349 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12350 * mem-break.c (software_breakpoint_inserted_here)
12351 (hardware_breakpoint_inserted_here): New function.
12352 * mem-break.h (software_breakpoint_inserted_here)
12353 (hardware_breakpoint_inserted_here): Declare.
12354 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12355 (cancel_breakpoints): Delete.
12356 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12357 (upload_fast_traceframes): Remove references to
12358 cancel_breakpoints.
12359
a33e3959
PA
123602015-01-09 Pedro Alves <palves@redhat.com>
12361
12362 * thread-db.c (find_new_threads_callback): Ignore thread if the
12363 kernel thread ID is -1.
12364
8784d563
PA
123652015-01-09 Pedro Alves <palves@redhat.com>
12366
12367 * linux-low.c (linux_attach_fail_reason_string): Move to
12368 nat/linux-ptrace.c, and rename.
12369 (linux_attach_lwp): Update comment.
12370 (attach_proc_task_lwp_callback): New function.
12371 (linux_attach): Adjust to rename and use
12372 linux_proc_attach_tgid_threads.
12373 (linux_attach_fail_reason_string): Delete declaration.
12374
76f2b779
JB
123752015-01-01 Joel Brobecker <brobecker@adacore.com>
12376
12377 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12378 * server.c (gdbserver_version): Likewise.
12379
fafcc06a
SDJ
123802014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12381
12382 * remote-utils.c: Include ctype.h.
12383 (input_interrupt): Explicitly handle the case when the char
12384 received is the NUL byte. Improve the printing of non-ASCII
12385 characters.
12386
beed38b8
JB
123872014-12-16 Joel Brobecker <brobecker@adacore.com>
12388
12389 * linux-low.c (linux_low_filter_event): Update call to
12390 linux_enable_event_reporting following the addition of
12391 a new parameter to that function.
12392
bf330350
CU
123932014-12-16 Catalin Udma <catalin.udma@freescale.com>
12394
12395 PR server/17457
12396 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12397 (AARCH64_FPCR_REGNO): Likewise.
12398 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12399 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12400 (aarch64_store_fpregset): Likewise.
12401
5227d625
JB
124022014-12-15 Joel Brobecker <brobecker@adacore.com>
12403
12404 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12405 Remove FIXME comment about assumption about N.
12406
f93b65a0
JB
124072014-12-13 Joel Brobecker <brobecker@adacore.com>
12408
12409 * configure.ac: If large-file support is disabled in GDBserver,
12410 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12411 * configure: Regenerate.
12412
e5a9158d
AA
124132014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12414
12415 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12416 warning upon ENODATA from ptrace.
12417 * linux-s390-low.c (s390_store_tdb): New.
12418 (s390_regsets): Add regset for NT_S390_TDB.
12419
feea5f36
AA
124202014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12421
12422 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12423 without a fill_function.
12424 * linux-s390-low.c (s390_fill_last_break): Remove.
12425 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12426 (s390_arch_setup): Use regset's size instead of fill_function for
12427 loop end condition.
12428
098dbe61
AA
124292014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12430
12431 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12432 the regset's store function when ptrace returned an error.
12433 * regcache.c (get_thread_regcache): Invalidate register cache
12434 before fetching inferior's registers.
12435
28eef672
AA
124362014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12437
12438 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12439 while-loop as for-loop.
12440 (regsets_store_inferior_registers): Likewise.
12441
bdca27a2
YQ
124422014-11-28 Yao Qi <yao@codesourcery.com>
12443
12444 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12445 * config.in, configure: Re-generate.
12446 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12447 is defined.
12448
9c232dda
YQ
124492014-11-21 Yao Qi <yao@codesourcery.com>
12450
12451 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12452 (AC_CHECK_HEADERS): Remove malloc.h.
12453 * configure: Re-generated.
12454 * config.in: Re-generated.
12455 * server.h: Don't include alloca.h and malloc.h.
12456 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12457 Don't include malloc.h.
12458
43968415
JB
124592014-11-17 Joel Brobecker <brobecker@adacore.com>
12460
12461 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12462 corresponding ERRNO check in same block.
12463
40e91bc7
PA
124642014-11-12 Pedro Alves <palves@redhat.com>
12465
12466 * server.c (cont_thread): Update comment.
12467 (start_inferior, attach_inferior): No longer clear cont_thread.
12468 (handle_v_cont): No longer set cont_thread.
12469 (captured_main): Clear cont_thread each time a GDB connects.
12470
c2c118cf
PA
124712014-11-12 Pedro Alves <palves@redhat.com>
12472
12473 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12474 thread, and don't resume all threads if the Hc thread has exited.
12475
78708b7c
PA
124762014-11-12 Pedro Alves <palves@redhat.com>
12477
12478 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12479 the process group instead of to a specific LWP.
12480
a2abc7de
PA
124812014-10-15 Pedro Alves <palves@redhat.com>
12482
12483 PR server/17487
12484 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12485 parameter.
12486 (arm_set_thread_context): Delete.
12487 (the_low_target): Adjust.
12488 * win32-i386-low.c (debug_registers_changed)
12489 (debug_registers_used): Delete.
12490 (update_debug_registers_callback): New function.
12491 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12492 needing to update their debug registers.
12493 (win32_get_current_dr): New function.
12494 (x86_dr_low_get_addr, x86_dr_low_get_control)
12495 (x86_dr_low_get_status): Fetch the debug register from the thread
12496 record's context.
12497 (i386_initial_stuff): Adjust.
12498 (i386_get_thread_context): Remove current_event parameter. Don't
12499 clear debug_registers_changed nor copy DR values to
12500 debug_reg_state.
12501 (i386_set_thread_context): Delete.
12502 (i386_prepare_to_resume): New function.
12503 (i386_thread_added): Mark the thread as needing to update irs
12504 debug registers.
12505 (the_low_target): Remove i386_set_thread_context and install
12506 i386_prepare_to_resume.
12507 * win32-low.c (win32_get_thread_context): Adjust.
12508 (win32_set_thread_context): Use SetThreadContext
12509 directly.
12510 (win32_prepare_to_resume): New function.
12511 (win32_require_context): New function, factored out from ...
12512 (thread_rec): ... this.
12513 (continue_one_thread): Call win32_prepare_to_resume on each thread
12514 we're about to continue.
12515 (win32_resume): Call win32_prepare_to_resume on the event thread.
12516 * win32-low.h (struct win32_thread_info)
12517 <debug_registers_changed>: New field.
12518 (struct win32_target_ops): Change prototype of set_thread_context,
12519 delete set_thread_context and add prepare_to_resume.
12520 (win32_require_context): New declaration.
12521
a442d071
GB
125222014-10-08 Gary Benson <gbenson@redhat.com>
12523
12524 * server.h: Do not include common-exceptions.h.
12525
6f1947e8
GB
125262014-10-08 Gary Benson <gbenson@redhat.com>
12527
12528 * server.h: Do not include cleanups.h.
12529
63b434a4
JH
125302014-09-30 James Hogan <james.hogan@imgtec.com>
12531
12532 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12533 mips64-dsp-linux.c.
12534
c4d9ceb6
YQ
125352014-09-23 Yao Qi <yao@codesourcery.com>
12536
12537 * linux-low.c (lp_status_maybe_breakpoint): New function.
12538 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12539 (count_events_callback): Likewise.
12540 (select_event_lwp_callback): Likewise.
12541 (cancel_breakpoints_callback): Likewise.
12542
89a5711c
DB
125432014-09-19 Don Breazeal <donb@codesourcery.com>
12544
12545 * linux-low.c (handle_extended_wait): Call
12546 linux_ptrace_get_extended_event.
12547 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12548 linux_is_extended_waitstatus.
12549
bffc0964
JB
125502014-09-16 Joel Brobecker <brobecker@adacore.com>
12551
12552 * Makefile.in (CPPFLAGS): Define.
12553 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12554 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12555
0bfdf32f
GB
125562014-09-16 Gary Benson <gbenson@redhat.com>
12557
12558 * inferiors.h (current_inferior): Renamed as...
12559 (current_thread): New variable. All uses updated.
12560 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12561 (maybe_move_out_of_jump_pad): Likewise.
12562 (cancel_breakpoint): Likewise.
12563 (linux_low_filter_event): Likewise.
12564 (wait_for_sigstop): Likewise.
12565 (linux_resume_one_lwp): Likewise.
12566 (need_step_over_p): Likewise.
12567 (start_step_over): Likewise.
12568 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12569 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12570 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12571 and save_inferior as saved_thread.
12572 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12573 saved_thread.
12574 (regcache_invalidate_thread): Likewise.
12575 * remote-utils.c (prepare_resume_reply): Likewise.
12576 * thread-db.c (thread_db_get_tls_address): Likewise.
12577 (disable_thread_event_reporting): Likewise.
12578 (remove_thread_event_breakpoints): Likewise.
12579 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12580 as saved_thread.
12581 * target.h (set_desired_inferior): Renamed as...
12582 (set_desired_thread): New declaration. All uses updated.
12583 * server.c (myresume): Updated comment to reference thread instead
12584 of inferior.
12585 (handle_serial_event): Likewise.
12586 (handle_target_event): Likewise.
12587
361c8ade
GB
125882014-09-12 Tom Tromey <tromey@redhat.com>
12589 Gary Benson <gbenson@redhat.com>
12590
12591 * regcache.h: Include common-regcache.h.
12592 (regcache_read_pc): Don't declare.
12593 * regcache.c (get_thread_regcache_for_ptid): New function.
12594
bd9269f7
GB
125952014-09-11 Tom Tromey <tromey@redhat.com>
12596 Gary Benson <gbenson@redhat.com>
12597
12598 * symbol.c: New file.
12599 * Makefile.in (SFILES): Add symbol.c.
12600 (OBS): Add symbol.o.
12601
f8c1d06b
GB
126022014-09-11 Gary Benson <gbenson@redhat.com>
12603
12604 * target.c (target_stop_ptid, target_continue_ptid): New
12605 functions.
12606
721ec300
GB
126072014-09-11 Tom Tromey <tromey@redhat.com>
12608 Gary Benson <gbenson@redhat.com>
12609
12610 * target.h: Include target/target.h.
12611 * target.c (target_read_memory, target_read_uint32)
12612 (target_write_memory): New functions.
12613
c5e92cca
GB
126142014-09-11 Gary Benson <gbenson@redhat.com>
12615
12616 * server.h (debug_hw_points): Don't declare.
12617 * server.c (debug_hw_points): Don't define. Replace all uses
12618 with show_debug_regs.
12619 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12620 all uses with show_debug_regs.
12621
2e4bb98a
EBM
126222014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12623
12624 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12625 endianness into account.
12626 (ppc_supply_ptrace_register): Likewise.
12627
ac740bc7
JH
126282014-09-03 James Hogan <james.hogan@imgtec.com>
12629
12630 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12631 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12632
97ea6506
GB
126332014-09-03 Gary Benson <gbenson@redhat.com>
12634
12635 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12636 ALL_DEBUG_ADDRESS_REGISTERS.
12637
df7e5265
GB
126382014-09-02 Gary Benson <gbenson@redhat.com>
12639
12640 * i386-low.h: Renamed as...
12641 * x86-low.h: New file. All type, function and variable name
12642 prefixes changed from "i386_" to "x86_". All references updated.
12643 * i386-low.c: Renamed as...
12644 * x86-low.c: New file. All type, function and variable name
12645 prefixes changed from "i386_" to "x86_". All references updated.
12646
ed859da7
GB
126472014-09-02 Gary Benson <gbenson@redhat.com>
12648
12649 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12650 (x86_linux_new_thread): Likewise.
12651
860789c7
GB
126522014-08-29 Gary Benson <gbenson@redhat.com>
12653
12654 * server.h (setjmp.h): Do not include.
12655 (toplevel): Do not declare.
12656 (common-exceptions.h): Include.
12657 (cleanups.h): Likewise.
12658 * server.c (toplevel): Do not define.
12659 (exit_code): New static global.
12660 (detach_or_kill_for_exit_cleanup): New function.
12661 (main): New function. Original main renamed to...
12662 (captured_main): New function.
12663 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12664
ff55e1b5
GB
126652014-08-29 Gary Benson <gbenson@redhat.com>
12666
12667 * Makefile.in (SFILES): Add common/common-exceptions.c.
12668 (OBS): Add common-exceptions.o.
12669 (common-exceptions.o): New rule.
12670 * utils.c (prepare_to_throw_exception): New function.
12671
e9bcb658
GB
126722014-08-29 Gary Benson <gbenson@redhat.com>
12673
12674 * config.in: Regenerate.
12675 * configure: Likewise.
12676
e3180625
GB
126772014-08-29 Gary Benson <gbenson@redhat.com>
12678
12679 * Makefile.in (SFILES): Add common/cleanups.c.
12680 (OBS): cleanups.o.
12681 (cleanups.o): New rule.
12682
e3d6ba5d
GB
126832014-08-29 Gary Benson <gbenson@redhat.com>
12684
12685 * utils.c (internal_vwarning): New function.
12686
7096e886
GB
126872014-08-28 Gary Benson <gbenson@redhat.com>
12688
12689 * utils.h (fatal): Remove declaration.
12690 * utils.c (fatal): Remove function.
12691
14ce3192
GB
126922014-08-28 Gary Benson <gbenson@redhat.com>
12693
12694 * tracepoint.c (gdb_agent_init): Replace fatal with
12695 perror_with_name.
12696 (initialize_tracepoint): Likewise.
12697
50278d59
GB
126982014-08-28 Gary Benson <gbenson@redhat.com>
12699
12700 * remote-utils.c (remote_prepare): Replace fatal with error.
12701
aa96c426
GB
127022014-08-28 Gary Benson <gbenson@redhat.com>
12703
12704 * linux-low.c (linux_async): Replace fatal with warning.
12705 Tidy up and return.
12706 (linux_start_non_stop): Return -1 if linux_async failed.
12707
f7160e97
GB
127082014-08-28 Gary Benson <gbenson@redhat.com>
12709
12710 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12711 gdb_assert.
12712 (i386_dr_low_get_addr): Remove vague comment.
12713 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12714 gdb_assert.
12715
38e08fca
GB
127162014-08-28 Gary Benson <gbenson@redhat.com>
12717
12718 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12719 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12720 internal_error.
12721 (linux_resume_one_lwp): Likewise.
12722 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12723 gdb_assert.
12724 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12725 with internal_error.
12726 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12727 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12728 (find_register_by_name): Replace fatal with internal_error.
12729 (find_regno): Likewise.
12730 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12731 * thread-db.c (thread_db_create_event): Likewise.
12732 (thread_db_load_search): Likewise.
12733 (try_thread_db_load_1): Likewise.
12734 * tracepoint.c (get_jump_space_head): Replace fatal with
12735 internal_error.
12736 (claim_trampoline_space): Likewise.
12737 (have_fast_tracepoint_trampoline_buffer): Likewise.
12738 (cmd_qtstart): Likewise.
12739 (stop_tracing): Likewise.
12740 (fast_tracepoint_collecting): Likewise.
12741 (target_malloc): Likewise.
12742 (download_tracepoint): Likewise.
12743 (download_trace_state_variables): Replace check with gdb_assert.
12744 (upload_fast_traceframes): Replace fatal with internal_error.
12745
34abf635
GB
127462014-08-19 Tom Tromey <tromey@redhat.com>
12747 Gary Benson <gbenson@redhat.com>
12748
12749 * Makefile.in (SFILES): Add common/common-debug.c.
12750 (OBS): Add common-debug.o.
12751 (common-debug.o): New rule.
12752 * debug.h (debug_printf): Don't declare.
12753 * debug.c (debug_printf): Renamed and rewritten as...
12754 (debug_vprintf): New function.
12755
f6e94d78
GB
127562014-08-19 Gary Benson <gbenson@redhat.com>
12757
12758 * utils.h: Do not include print-utils.h.
12759
9239eeab
GB
127602014-08-19 Tom Tromey <tromey@redhat.com>
12761 Gary Benson <gbenson@redhat.com>
12762
12763 * server.h: Add static assertion.
12764 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12765
ef87c8bb
GB
127662014-08-19 Tom Tromey <tromey@redhat.com>
12767 Gary Benson <gbenson@redhat.com>
12768
12769 * Makefile.in (SFILES): Add common/errors.c.
12770 (OBS): Add errors.o.
12771 (IPA_OBS): Add errors-ipa.o.
12772 (errors.o): New rule.
12773 (errors-ipa.o): Likewise.
12774 * utils.h (perror_with_name, error, warning): Don't declare.
12775 * utils.c (warning): Renamed and rewritten as...
12776 (vwarning): New function.
12777 (error): Renamed and rewritten as...
12778 (verror): New function.
12779 (internal_error): Renamed and rewritten as...
12780 (internal_verror): New function.
12781
bb974a24
GB
127822014-08-07 Gary Benson <gbenson@redhat.com>
12783
12784 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12785 * configure: Regenerate.
12786 * config.in: Likewise.
12787 * server.h: Do not include errno.h.
12788 * event-loop.c: Likewise.
12789 * hostio-errno.c: Likewise.
12790 * linux-low.c: Likewise.
12791 * remote-utils.c: Likewise.
12792 * spu-low.c: Likewise.
12793 * utils.c: Likewise.
12794 * gdbreplay.c: Unconditionally include errno.h.
12795
6d3d12eb
GB
127962014-08-07 Gary Benson <gbenson@redhat.com>
12797
12798 * server.h: Do not include string.h.
12799 * event-loop.c: Likewise.
12800 * linux-low.c: Likewise.
12801 * regcache.c: Likewise.
12802 * remote-utils.c: Likewise.
12803 * spu-low.c: Likewise.
12804 * utils.c: Likewise.
12805
dccbb609
GB
128062014-08-07 Gary Benson <gbenson@redhat.com>
12807
12808 * server.h: Do not include gdb_assert.h.
12809
e76df0d0
GB
128102014-08-07 Gary Benson <gbenson@redhat.com>
12811
12812 * server.h: Do not include common-utils.h.
12813
4cb9c816
GB
128142014-08-07 Gary Benson <gbenson@redhat.com>
12815
12816 * server.h: Do not include ptid.h.
12817 * notif.h: Likewise.
12818
3995eeee
GB
128192014-08-07 Gary Benson <gbenson@redhat.com>
12820
12821 * server.h: Do not include gdb_locale.h.
12822
cb9f1a9b
GB
128232014-08-07 Gary Benson <gbenson@redhat.com>
12824
12825 * server.h: Do not include gdb/signals.h.
12826 * win32-low.c: Likewise.
12827
a5fceff8
GB
128282014-08-07 Gary Benson <gbenson@redhat.com>
12829
12830 * server.h: Do not include pathmax.h.
12831
b9391142
GB
128322014-08-07 Gary Benson <gbenson@redhat.com>
12833
12834 * server.h: Do not include libiberty.h.
12835 * linux-bfin-low.c: Likewise.
12836
0e443c87
GB
128372014-08-07 Gary Benson <gbenson@redhat.com>
12838
12839 * server.h: Do not include ansidecl.h.
12840
8ebb3f56
GB
128412014-08-07 Gary Benson <gbenson@redhat.com>
12842
12843 * linux-x86-low.c: Do not include stddef.h.
12844 * lynx-ppc-low.c: Likewise.
12845 * tracepoint.c: Likewise.
12846
8980bdf6
GB
128472014-08-07 Gary Benson <gbenson@redhat.com>
12848
12849 * server.h: Do not include stdarg.h.
12850 * nto-low.c: Likewise.
12851
d7096f71
GB
128522014-08-07 Gary Benson <gbenson@redhat.com>
12853
12854 * server.h: Do not include stdlib.h.
12855 * inferiors.c: Likewise.
12856 * linux-low.c: Likewise.
12857 * regcache.c: Likewise.
12858 * spu-low.c: Likewise.
12859 * tracepoint.c: Likewise.
12860 * utils.c: Likewise.
12861
d02f550d
GB
128622014-08-07 Gary Benson <gbenson@redhat.com>
12863
12864 * server.h: Do not include stdio.h.
12865 * linux-low.c: Likewise.
12866 * remote-utils.c: Likewise.
12867 * spu-low.c: Likewise.
12868 * utils.c: Likewise.
12869 * wincecompat.c: Likewise.
12870
87f6c4e3
GB
128712014-08-06 Gary Benson <gbenson@redhat.com>
12872
12873 * regcache.c (init_register_cache): Move conditionals inside if.
12874
7089dca4
GB
128752014-08-06 Gary Benson <gbenson@redhat.com>
12876
12877 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12878
462f517e
GB
128792014-07-31 Gary Benson <gbenson@redhat.com>
12880
12881 * ax.h: Do not include server.h.
12882 * gdbthread.h: Likewise.
12883 * lynx-low.h: Likewise.
12884 * notif.h: Likewise.
12885
976411d6
GB
128862014-07-30 Gary Benson <gbenson@redhat.com>
12887
12888 * server.h: Include common-defs.h.
12889 Do not include config.h or build-gnulib-gdbserver/config.h.
12890
d41f6d8e
GB
128912014-07-30 Gary Benson <gbenson@redhat.com>
12892
12893 * hostio-errno.c: Move server.h to top of includes list.
12894 * inferiors.c: Likewise.
12895 * linux-x86-low.c: Likewise.
12896 * notif.c: Include server.h.
12897
314c6a35
TT
128982014-07-24 Tom Tromey <tromey@redhat.com>
12899 Gary Benson <gbenson@redhat.com>
12900
12901 * server.h (CORE_ADDR): Now unsigned.
12902
69ff6be5
PA
129032014-07-16 Pedro Alves <palves@redhat.com>
12904
12905 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12906
ce9e3fe7
PA
129072014-07-15 Pedro Alves <palves@redhat.com>
12908
12909 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12910 copy.
12911
e76126e8
PA
129122014-07-11 Pedro Alves <palves@redhat.com>
12913
12914 * linux-low.c (kill_wait_lwp): New function, based on
12915 kill_one_lwp_callback, but use my_waitpid directly.
12916 (kill_one_lwp_callback, linux_kill): Use it.
12917
8e9db26e
PA
129182014-06-23 Pedro Alves <palves@redhat.com>
12919
12920 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12921 before setting DR0..DR3.
12922
698b3e08
GB
129232014-06-20 Gary Benson <gbenson@redhat.com>
12924
12925 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12926 * configure: Regenerated.
12927 * config.in: Likewise.
12928
125f8a3d
GB
129292014-06-20 Gary Benson <gbenson@redhat.com>
12930
12931 * Makefile.in (SFILES): Update locations for files moved
12932 from common to nat.
12933 (object file files): Reordered.
12934
42995dbd
GB
129352014-06-20 Gary Benson <gbenson@redhat.com>
12936
12937 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12938 (i386_dr_low_set_addr): Likewise.
12939 (i386_dr_low_get_addr): Likewise.
12940 (i386_dr_low_can_set_control): Likewise.
12941 (i386_dr_low_set_control): Likewise.
12942 (i386_dr_low_get_control): Likewise.
12943 (i386_dr_low_get_status): Likewise.
12944 (i386_get_debug_register_length): Likewise.
12945 * linux-x86-low.c (i386_dr_low_set_addr):
12946 Changed signature. Made static.
12947 (i386_dr_low_get_addr): Likewise.
12948 (i386_dr_low_set_control): Likewise.
12949 (i386_dr_low_get_control): Likewise.
12950 (i386_dr_low_get_status): Likewise.
12951 (i386_dr_low): New global variable.
12952 * win32-i386-low.c (i386_dr_low_set_addr):
12953 Changed signature. Made static.
12954 (i386_dr_low_get_addr): Likewise.
12955 (i386_dr_low_set_control): Likewise.
12956 (i386_dr_low_get_control): Likewise.
12957 (i386_dr_low_get_status): Likewise.
12958 (i386_dr_low): New global variable.
12959
e1d2394b
MS
129602014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12961
12962 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12963 * Makefile.in (AR, AR_FLAGS): Define.
12964 * configure: Regenerate.
12965
3a8ee006
GB
129662014-06-19 Gary Benson <gbenson@redhat.com>
12967
12968 * Makefile.in (i386-dregs.o): New rule.
12969 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12970 * i386-low.c (target.h): Remove include.
12971 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12972 (DR_CONTROL_SHIFT): Likewise.
12973 (DR_CONTROL_SIZE): Likewise.
12974 (DR_RW_EXECUTE): Likewise.
12975 (DR_RW_WRITE): Likewise.
12976 (DR_RW_READ): Likewise.
12977 (DR_RW_IORW): Likewise.
12978 (DR_LEN_1): Likewise.
12979 (DR_LEN_2): Likewise.
12980 (DR_LEN_4): Likewise.
12981 (DR_LEN_8): Likewise.
12982 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12983 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12984 (DR_ENABLE_SIZE): Likewise.
12985 (DR_LOCAL_SLOWDOWN): Likewise.
12986 (DR_GLOBAL_SLOWDOWN): Likewise.
12987 (DR_CONTROL_RESERVED): Likewise.
12988 (I386_DR_CONTROL_MASK): Likewise.
12989 (I386_DR_VACANT): Likewise.
12990 (I386_DR_LOCAL_ENABLE): Likewise.
12991 (I386_DR_GLOBAL_ENABLE): Likewise.
12992 (I386_DR_DISABLE): Likewise.
12993 (I386_DR_SET_RW_LEN): Likewise.
12994 (I386_DR_GET_RW_LEN): Likewise.
12995 (I386_DR_WATCH_HIT): Likewise.
12996 (i386_wp_op_t): Likewise.
12997 (i386_show_dr): Likewise.
12998 (i386_length_and_rw_bits): Likewise.
12999 (i386_insert_aligned_watchpoint): Likewise.
13000 (i386_remove_aligned_watchpoint): Likewise.
13001 (i386_handle_nonaligned_watchpoint): Likewise.
13002 i386_update_inferior_debug_regs(): Likewise.
13003 (i386_dr_insert_watchpoint): Likewise.
13004 (i386_dr_remove_watchpoint): Likewise.
13005 (i386_dr_region_ok_for_watchpoint): Likewise.
13006 (i386_dr_stopped_data_address): Likewise.
13007 (i386_dr_stopped_by_watchpoint): Likewise.
13008
8f26655c
GB
130092014-06-19 Gary Benson <gbenson@redhat.com>
13010
13011 * i386-low.c (i386_dr_show): Renamed to
13012 i386_show_dr and made static. All uses updated.
13013 (i386_dr_length_and_rw_bits): Renamed to
13014 i386_length_and_rw_bits and made static.
13015 All uses updated.
13016 (i386_dr_insert_aligned_watchpoint): Renamed to
13017 i386_insert_aligned_watchpoint and made static.
13018 All uses updated.
13019 (i386_dr_remove_aligned_watchpoint): Renamed to
13020 i386_remove_aligned_watchpoint and made static.
13021 All uses updated.
13022 (i386_dr_update_inferior_debug_regs): Renamed to
13023 i386_update_inferior_debug_regs and made static.
13024 All uses updated.
13025
b9228891
GB
130262014-06-18 Gary Benson <gbenson@redhat.com>
13027
5171def3
GB
13028 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13029 (i386_dr_low_can_set_control): Likewise.
13030 (i386_get_debug_register_length): Likewise.
13031 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13032 (i386_dr_low_can_set_control): Likewise.
13033 (i386_get_debug_register_length): Likewise.
13034
130352014-06-17 Gary Benson <gbenson@redhat.com>
13036
b9228891
GB
13037 * i386-low.h (i386-dregs.h): New include.
13038 (DR_FIRSTADDR): Now in i386-dregs.h.
13039 (DR_LASTADDR): Likewise.
13040 (DR_NADDR): Likewise.
13041 (DR_STATUS): Likewise.
13042 (DR_CONTROL): Likewise.
13043 (i386_debug_reg_state): Likewise.
13044 (i386_dr_insert_watchpoint): Likewise.
13045 (i386_dr_remove_watchpoint): Likewise.
13046 (i386_dr_region_ok_for_watchpoint): Likewise.
13047 (i386_dr_stopped_data_address): Likewise.
13048 (i386_dr_stopped_by_watchpoint): Likewise.
13049 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13050
4be83cc2
GB
130512014-06-18 Gary Benson <gbenson@redhat.com>
13052
13053 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13054 i386_dr_insert_watchpoint.
13055 (i386_low_remove_watchpoint): Renamed to
13056 i386_dr_remove_watchpoint.
13057 (i386_low_region_ok_for_watchpoint): Renamed to
13058 i386_dr_region_ok_for_watchpoint.
13059 (i386_low_stopped_data_address): Renamed to
13060 i386_dr_stopped_data_address.
13061 (i386_low_stopped_by_watchpoint): Renamed to
13062 i386_dr_stopped_by_watchpoint.
13063 * i386-low.c (i386_show_dr): Renamed to
13064 i386_dr_show and made nonstatic. All uses updated.
13065 (i386_length_and_rw_bits): Renamed to
13066 i386_dr_length_and_rw_bits and made nonstatic.
13067 All uses updated.
13068 (i386_insert_aligned_watchpoint): Renamed to
13069 i386_dr_insert_aligned_watchpoint and made nonstatic.
13070 All uses updated.
13071 (i386_remove_aligned_watchpoint): Renamed to
13072 i386_dr_remove_aligned_watchpoint and made nonstatic.
13073 All uses updated.
13074 (i386_update_inferior_debug_regs): Renamed to
13075 i386_dr_update_inferior_debug_regs and made nonstatic.
13076 All uses updated.
13077 (i386_low_insert_watchpoint): Renamed to
13078 i386_dr_insert_watchpoint. All uses updated.
13079 (i386_low_remove_watchpoint): Renamed to
13080 i386_dr_remove_watchpoint. All uses updated.
13081 (i386_low_region_ok_for_watchpoint): Renamed to
13082 i386_dr_region_ok_for_watchpoint. All uses updated.
13083 (i386_low_stopped_data_address): Renamed to
13084 i386_dr_stopped_data_address. All uses updated.
13085 (i386_low_stopped_by_watchpoint): Renamed to
13086 i386_dr_stopped_by_watchpoint. All uses updated.
13087
131aa0d4
GB
130882014-06-18 Gary Benson <gbenson@redhat.com>
13089
13090 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13091 (i386_dr_low_can_set_control): Likewise.
13092 (i386_insert_aligned_watchpoint): New check.
13093
d9305f7f
GB
130942014-06-18 Gary Benson <gbenson@redhat.com>
13095
13096 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13097 Renamed to state.
13098
e927c9fc
GB
130992014-06-18 Gary Benson <gbenson@redhat.com>
13100
13101 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13102 instead of fatal and error.
13103 (i386_handle_nonaligned_watchpoint): Likewise.
13104
1b6d4134
GB
131052014-06-18 Gary Benson <gbenson@redhat.com>
13106
13107 * i386-low.c (i386_get_debug_register_length): New macro.
13108 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13109 (i386_show_dr): Use debug_printf instead of fprintf. Use
13110 phex to format values.
13111
6e62758f
GB
131122014-06-18 Gary Benson <gbenson@redhat.com>
13113
13114 * i386-low.h: Comment changes.
13115 * i386-low.c: Likewise.
13116
fc6e2f03
GB
131172014-06-18 Gary Benson <gbenson@redhat.com>
13118
13119 * i386-low.c: Whitespace changes.
13120
f9d1eeed
TT
131212014-06-12 Tom Tromey <tromey@redhat.com>
13122
13123 * utils.c (freeargv): Remove.
13124
0b04e523
TT
131252014-06-12 Tom Tromey <tromey@redhat.com>
13126
13127 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13128 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13129 (parse_debug_format_options): Likewise.
13130 (gdbserver_usage): Likewise.
13131 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13132 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13133 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13134 against libiberty.
13135 ($(LIBGNU)): Depend on libiberty.
13136 (all-lib): Recurse into all subdirs.
13137 (install-only): Invoke "install" target in subdirs.
13138 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13139 targets.
13140 * configure: Rebuild.
13141 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13142 for vasprintf, vsnprintf, or gettimeofday.
13143 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13144 srv_tgtobj.
13145
270c9937
JB
131462014-06-05 Joel Brobecker <brobecker@adacore.com>
13147
13148 * development.sh: Delete.
13149 * Makefile.in (config.status): Adjust dependency on development.sh.
13150 * configure.ac: Adjust development.sh source call.
13151 * configure: Regenerate.
13152
0a261ed8
PA
131532014-06-02 Pedro Alves <palves@redhat.com>
13154
13155 * ax.c (gdb_free_agent_expr): New function.
13156 * ax.h (gdb_free_agent_expr): New declaration.
13157 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13158 list.
13159 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13160 static.
13161 (clear_breakpoint_conditions_and_commands): New function.
13162 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13163 (clear_breakpoint_conditions_and_commands): New declaration.
13164
e9dae05e
RR
131652014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13166
13167 * linux-aarch64-low.c (asm/ptrace.h): Include.
13168
5876f503
JK
131692014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13170
13171 Fix TLS access for -static -pthread.
13172 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13173 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13174 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13175
802e8e6d
PA
131762014-05-20 Pedro Alves <palves@redhat.com>
13177
13178 * linux-aarch64-low.c (aarch64_insert_point)
13179 (aarch64_remove_point): No longer check whether the type is
13180 supported here. Adjust to new interface.
13181 (the_low_target): Install aarch64_supports_z_point_type as
13182 supports_z_point_type method.
13183 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13184 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13185 instead of a Z packet char. Adjust.
13186 (arm_supports_z_point_type): New function.
13187 (arm_insert_point, arm_remove_point): Adjust to new interface.
13188 (the_low_target): Install arm_supports_z_point_type.
13189 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13190 (cris_insert_point, cris_remove_point): Adjust to new interface.
13191 Don't check whether the type is supported here.
13192 (the_low_target): Install cris_supports_z_point_type.
13193 * linux-low.c (linux_supports_z_point_type): New function.
13194 (linux_insert_point, linux_remove_point): Adjust to new interface.
13195 * linux-low.h (struct linux_target_ops) <insert_point,
13196 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13197 raw_breakpoint pointer parameter.
13198 <supports_z_point_type>: New method.
13199 * linux-mips-low.c (mips_supports_z_point_type): New function.
13200 (mips_insert_point, mips_remove_point): Adjust to new interface.
13201 Use mips_supports_z_point_type.
13202 (the_low_target): Install mips_supports_z_point_type.
13203 * linux-ppc-low.c (the_low_target): Install NULL as
13204 supports_z_point_type method.
13205 * linux-s390-low.c (the_low_target): Install NULL as
13206 supports_z_point_type method.
13207 * linux-sparc-low.c (the_low_target): Install NULL as
13208 supports_z_point_type method.
13209 * linux-x86-low.c (x86_supports_z_point_type): New function.
13210 (x86_insert_point): Adjust to new insert_point interface. Use
13211 insert_memory_breakpoint. Adjust to new
13212 i386_low_insert_watchpoint interface.
13213 (x86_remove_point): Adjust to remove_point interface. Use
13214 remove_memory_breakpoint. Adjust to new
13215 i386_low_remove_watchpoint interface.
13216 (the_low_target): Install x86_supports_z_point_type.
13217 * lynx-low.c (lynx_target_ops): Install NULL as
13218 supports_z_point_type callback.
13219 * nto-low.c (nto_supports_z_point_type): New.
13220 (nto_insert_point, nto_remove_point): Adjust to new interface.
13221 (nto_target_ops): Install nto_supports_z_point_type.
13222 * mem-break.c: Adjust intro comment.
13223 (struct raw_breakpoint) <raw_type, size>: New fields.
13224 <inserted>: Update comment.
13225 <shlib_disabled>: Delete field.
13226 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13227 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13228 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13229 (raw_bkpt_type_to_target_hw_bp_type): New function.
13230 (find_enabled_raw_code_breakpoint_at): New function.
13231 (find_raw_breakpoint_at): New type and size parameters. Use them.
13232 (insert_memory_breakpoint): New function, based off
13233 set_raw_breakpoint_at.
13234 (remove_memory_breakpoint): New function.
13235 (set_raw_breakpoint_at): Reimplement.
13236 (set_breakpoint): New, based on set_breakpoint_at.
13237 (set_breakpoint_at): Reimplement.
13238 (delete_raw_breakpoint): Go through the_target->remove_point
13239 instead of assuming memory breakpoints.
13240 (find_gdb_breakpoint_at): Delete.
13241 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13242 (find_gdb_breakpoint): New function.
13243 (set_gdb_breakpoint_at): Delete.
13244 (z_type_supported): New function.
13245 (set_gdb_breakpoint_1): New function, loosely based off
13246 set_gdb_breakpoint_at.
13247 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13248 (delete_gdb_breakpoint_at): Delete.
13249 (delete_gdb_breakpoint_1): New function, loosely based off
13250 delete_gdb_breakpoint_at.
13251 (delete_gdb_breakpoint): New function.
13252 (clear_gdb_breakpoint_conditions): Rename to ...
13253 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13254 breakpoint.
13255 (add_condition_to_breakpoint): Make static.
13256 (add_breakpoint_condition): Take a struct breakpoint pointer
13257 instead of an address. Adjust.
13258 (gdb_condition_true_at_breakpoint): Rename to ...
13259 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13260 z_type parameter.
13261 (gdb_condition_true_at_breakpoint): Reimplement.
13262 (add_breakpoint_commands): Take a struct breakpoint pointer
13263 instead of an address. Adjust.
13264 (gdb_no_commands_at_breakpoint): Rename to ...
13265 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13266 parameter. Return true if no breakpoint was found. Change debug
13267 output.
13268 (gdb_no_commands_at_breakpoint): Reimplement.
13269 (run_breakpoint_commands): Rename to ...
13270 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13271 and change return type to boolean.
13272 (run_breakpoint_commands): New function.
13273 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13274 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13275 breakpoint. Go through the_target->remove_point instead of
13276 assuming memory breakpoint.
13277 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13278 software and hardware breakpoints.
13279 (reinsert_raw_breakpoint): Go through the_target->insert_point
13280 instead of assuming memory breakpoint.
13281 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13282 software and hardware breakpoints.
13283 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13284 Check both software and hardware breakpoints.
13285 (validate_inserted_breakpoint): Assert the breakpoint is a
13286 software breakpoint. Set the inserted flag to -1 instead of
13287 setting shlib_disabled.
13288 (delete_disabled_breakpoints): Adjust.
13289 (validate_breakpoints): Only validate software breakpoints.
13290 Adjust to inserted flag change.
13291 (check_mem_read, check_mem_write): Skip breakpoint types other
13292 than software breakpoints. Adjust to inserted flag change.
13293 * mem-break.h (enum raw_bkpt_type): New enum.
13294 (raw_breakpoint, struct process_info): Forward declare.
13295 (Z_packet_to_target_hw_bp_type): Delete declaration.
13296 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13297 (set_gdb_breakpoint, delete_gdb_breakpoint)
13298 (clear_breakpoint_conditions): New declarations.
13299 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13300 (breakpoint_inserted_here): Update comment.
13301 (add_breakpoint_condition, add_breakpoint_commands): Replace
13302 address parameter with a breakpoint pointer parameter.
13303 (gdb_breakpoint_here): Update comment.
13304 (delete_gdb_breakpoint_at): Delete.
13305 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13306 * server.c (process_point_options): Take a struct breakpoint
13307 pointer instead of an address. Adjust.
13308 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13309 delete_gdb_breakpoint.
13310 * spu-low.c (spu_target_ops): Install NULL as
13311 supports_z_point_type method.
13312 * target.h: Include mem-break.h.
13313 (struct target_ops) <prepare_to_access_memory>: Update comment.
13314 <supports_z_point_type>: New field.
13315 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13316 instead of a char. Also take a raw breakpoint pointer.
13317 * win32-arm-low.c (the_low_target): Install NULL as
13318 supports_z_point_type.
13319 * win32-i386-low.c (i386_supports_z_point_type): New function.
13320 (i386_insert_point, i386_remove_point): Adjust to new interface.
13321 (the_low_target): Install i386_supports_z_point_type.
13322 * win32-low.c (win32_supports_z_point_type): New function.
13323 (win32_insert_point, win32_remove_point): Adjust to new interface.
13324 (win32_target_ops): Install win32_supports_z_point_type.
13325 * win32-low.h (struct win32_target_ops):
13326 <supports_z_point_type>: New method.
13327 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13328 instead of a char. Also take a raw breakpoint pointer.
13329
932539e3
PA
133302014-05-20 Pedro Alves <palves@redhat.com>
13331
13332 * mem-break.h: Include break-common.h.
13333 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13334 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13335 (Z_packet_to_target_hw_bp_type): New declaration.
13336 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13337 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13338 (Z_PACKET_ACCESS_WP): Delete macros.
13339 (Z_packet_to_hw_type): Delete function.
13340 * i386-low.h: Don't include break-common.h here.
13341 (Z_packet_to_hw_type): Delete declaration.
13342 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13343 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13344 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13345 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13346 * linux-aarch64-low.c: Don't include break-common.h here.
13347 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13348 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13349 (Z_packet_to_target_hw_bp_type): Delete function.
13350 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13351 function.
13352 (mips_insert_point, mips_remove_point): Use
13353 Z_packet_to_target_hw_bp_type.
13354
4ff0d3d8
PA
133552014-05-20 Pedro Alves <palves@redhat.com>
13356
13357 * linux-aarch64-low.c: Include break-common.h.
13358 (enum target_point_type): Delete.
13359 (Z_packet_to_point_type): Rename to ...
13360 (Z_packet_to_target_hw_bp_type): ... this, and return a
13361 target_hw_bp_type instead.
13362 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13363 instead of an enum target_point_type.
13364 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13365 breakpoint type.
13366 (aarch64_dr_state_insert_one_point)
13367 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13368 (aarch64_handle_aligned_watchpoint)
13369 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13370 Take an enum target_hw_bp_type instead of an enum
13371 target_point_type.
13372 (aarch64_supports_z_point_type): New function.
13373 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13374 use Z_packet_to_target_hw_bp_type.
13375
786dc519
JB
133762014-05-20 Joel Brobecker <brobecker@adacore.com>
13377
13378 * configure.ac: Only use -Werror by default when DEVELOPMENT
13379 is true.
13380 * configure: Regenerate.
13381
9e0aa64f
JK
133822014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13383
13384 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13385 * linux-x86-low.c (X86_64_USER_REGS): New.
13386 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13387
2b577b92
YQ
133882014-04-28 Yao Qi <yao@codesourcery.com>
13389
13390 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13391 name.
13392
94611da2
PA
133932014-04-25 Pedro Alves <palves@redhat.com>
13394
13395 PR server/16255
13396 * linux-low.c (linux_attach_fail_reason_string): New function.
13397 (linux_attach_lwp): Delete.
13398 (linux_attach_lwp_1): Rename to ...
13399 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13400 argument. Remove "initial" parameter. Return int instead of
13401 void. Don't error or warn here.
13402 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13403 failure to attach to the tgid. Call warning when failing to
13404 attach to an lwp.
13405 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13406 argument. Remove "initial" parameter. Return int instead of
13407 void. Don't error or warn here.
13408 (linux_attach_fail_reason_string): New declaration.
13409 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13410 interface change. Use linux_attach_fail_reason_string.
13411
01f9f808
MS
134122014-04-24 Michael Sturm <michael.sturm@mintel.com>
13413 Walfred Tedeschi <walfred.tedeschi@intel.com>
13414
13415 * Makefile.in: Added rules to handle new files
13416 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13417 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13418 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13419 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13420 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13421 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13422 x32-avx512-linux.o.
13423 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13424 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13425 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13426 i386/x32-avx512.xml.
13427 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13428 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13429 i386/x32-avx512-linux.xml.
13430 * i387-fp.c (num_avx512_k_registers): New constant for number
13431 of K registers.
13432 (num_avx512_zmmh_low_registers): New constant for number of
13433 lower ZMM registers (0-15).
13434 (num_avx512_zmmh_high_registers): New constant for number of
13435 higher ZMM registers (16-31).
13436 (num_avx512_ymmh_registers): New contant for number of higher
13437 YMM registers (ymm16-31 added by avx521 on x86_64).
13438 (num_avx512_xmm_registers): New constant for number of higher
13439 XMM registers (xmm16-31 added by AVX512 on x86_64).
13440 (struct i387_xsave): Add space for AVX512 registers.
13441 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13442 Add code to handle AVX512 registers.
13443 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13444 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13445 prototypei from generated file.
13446 (tdesc_amd64_avx512_linux): Likewise.
13447 (init_registers_x32_avx512_linux): Likewise.
13448 (tdesc_x32_avx512_linux): Likewise.
13449 (init_registers_i386_avx512_linux): Likewise.
13450 (tdesc_i386_avx512_linux): Likewise.
13451 (x86_64_regmap): Add AVX512 registers.
13452 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13453 mask.
13454 (initialize_low_arch): Add code to initialize AVX512 registers.
13455
51aa91f9
PA
134562014-04-23 Pedro Alves <palves@redhat.com>
13457
13458 * mem-break.c (find_gdb_breakpoint_at): Make static.
13459 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13460
a4165e94
PA
134612014-04-23 Pedro Alves <palves@redhat.com>
13462
13463 * i386-low.c: Don't include break-common.h here.
13464 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13465 prototype to take target_hw_bp_type as argument instead of a Z
13466 packet char.
13467 * i386-low.h: Include break-common.h here.
13468 (Z_packet_to_hw_type): Declare.
13469 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13470 prototypes.
13471 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13472 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13473 (x86_remove_point): Convert the packet number to a
13474 target_hw_bp_type before calling i386_low_remove_watchpoint.
13475 * win32-i386-low.c (i386_insert_point): Convert the packet number
13476 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13477 (i386_remove_point): Convert the packet number to a
13478 target_hw_bp_type before calling i386_low_remove_watchpoint.
13479
b8acf843
PA
134802014-04-23 Pedro Alves <palves@redhat.com>
13481
13482 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13483
d708bcd1
PA
134842014-04-10 Pedro Alves <palves@redhat.com>
13485
13486 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13487 Check if the condition or command is NULL before checking if the
13488 breakpoint is known. On success, return true.
13489 * mem-break.h (add_breakpoint_condition): Document return.
13490 (add_breakpoint_commands): Add describing comment.
13491 * server.c (skip_to_semicolon): New function.
13492 (process_point_options): Use it.
13493
2eec7d5b
PA
134942014-04-09 Pedro Alves <palves@redhat.com>
13495
13496 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13497 to lwpid_of.
13498
fa96cb38
PA
134992014-02-27 Pedro Alves <palves@redhat.com>
13500
13501 PR 12702
13502 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13503 macros.
13504 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13505 output.
13506 (last_thread_of_process_p): Take a PID argument instead of a
13507 thread pointer.
13508 (linux_wait_for_lwp): Delete.
13509 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13510 functions.
13511 (linux_low_filter_event): New function, party factored out from
13512 linux_wait_for_event.
13513 (linux_wait_for_event): Rename to ...
13514 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13515 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13516 sigsuspend. Check for zombie leaders.
13517 (linux_wait_for_event): Reimplement as wrapper around
13518 linux_wait_for_event_filtered.
13519 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13520 a normal or signal exit is seen, it's the whole process exiting.
13521 (wait_for_sigstop): No longer a for_each_inferior callback.
13522 Rewrite on top of linux_wait_for_event_filtered.
13523 (stop_all_lwps): Call wait_for_sigstop directly.
13524 * server.c (resume, handle_target_event): Handle
13525 TARGET_WAITKIND_NO_RESUMED.
13526
d763de10
JB
135272014-02-26 Joel Brobecker <brobecker@adacore.com>
13528
13529 * win32-low.c (psapi_get_dll_name,
13530 * win32_CreateToolhelp32Snapshot): Delete.
13531 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13532 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13533 Delete.
13534 (handle_load_dll): Add function description.
13535 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13536
850a0f76
JB
135372014-02-26 Joel Brobecker <brobecker@adacore.com>
13538
13539 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13540 Add comment.
13541 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13542 base address when calling win32_add_one_solib.
13543 (handle_load_dll): Delete local variable load_addr.
13544 Remove 0x1000 offset applied to DLL base address when calling
13545 win32_add_one_solib.
13546 (handle_unload_dll): Add comment.
13547
f25b3fc3
JB
135482014-02-26 Joel Brobecker <brobecker@adacore.com>
13549
13550 * win32-low.c (win32_add_all_dlls): Renames
13551 win32_ensure_ntdll_loaded. Rewrite function documentation.
13552 Adjust implementation to always load all DLLs.
13553 Add 0x1000 offset to DLL base address when calling
13554 win32_add_one_solib.
13555 (child_initialization_done): New static global.
13556 (do_initial_child_stuff): Set child_initialization_done to
13557 zero during child initialization, and 1 after. Replace call
13558 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13559 Add comment.
13560 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13561 (handle_unload_dll): Add function documentation.
13562 (get_child_debug_event): Ignore load and unload DLL events
13563 during child initialization.
13564
d86d4aaf
DE
135652014-02-20 Doug Evans <dje@google.com>
13566
3bc32da3 13567 Remove global all_lwps.
d86d4aaf
DE
13568 * inferiors.h (ptid_of): Move here from linux-low.h.
13569 (pid_of, lwpid_of): Ditto.
13570 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13571 parameter is a struct thread_info * now.
13572 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13573 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13574 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13575 directly.
13576 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13577 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13578 * linux-arm-low.c (update_registers_callback): Update, "entry"
13579 parameter is a struct thread_info * now.
13580 Fetch lwpid from current_inferior directly.
13581 (arm_insert_point): Pass &all_threads to find_inferior instead of
13582 &all_lwps.
13583 (arm_remove_point): Ditto.
13584 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13585 (arm_prepare_to_resume): Fetch pid from thread.
13586 (arm_read_description): Fetch lwpid from current_inferior directly.
13587 * linux-low.c (all_lwps): Delete.
13588 (delete_lwp): Delete call to remove_inferior.
13589 (handle_extended_wait): Fetch lwpid from thread.
13590 (add_lwp): Don't set lwp->entry.id. Remove call to
13591 add_inferior_to_list.
13592 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13593 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13594 (kill_one_lwp_callback): Ditto.
13595 (linux_kill): Don't dereference NULL pointer.
13596 Fetch ptid,lwpid from thread.
13597 (get_detach_signal): Fetch ptid from thread.
13598 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13599 Simplify call to regcache_invalidate_thread.
13600 (delete_lwp_callback): Update, "entry" parameter is a
13601 struct thread_info * now. Fetch pid from thread.
13602 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13603 (status_pending_p_callback): Update, "entry" parameter is a
13604 struct thread_info * now. Fetch ptid from thread.
13605 (find_lwp_pid): Update, "entry" parameter is a
13606 struct thread_info * now.
13607 (linux_wait_for_lwp): Fetch pid from thread.
13608 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13609 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13610 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13611 (dequeue_one_deferred_signal): Ditto.
13612 (cancel_breakpoint): Fetch ptid from current_inferior.
13613 (linux_wait_for_event): Pass &all_threads to find_inferior,
13614 not &all_lwps. Fetch ptid, lwpid from thread.
13615 (count_events_callback): Update, "entry" parameter is a
13616 struct thread_info * now.
13617 (select_singlestep_lwp_callback): Ditto.
13618 (select_event_lwp_callback): Ditto.
13619 (cancel_breakpoints_callback): Ditto.
13620 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13621 not &all_lwps.
13622 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13623 (unsuspend_one_lwp): Update, "entry" parameter is a
13624 struct thread_info * now.
13625 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13626 not &all_lwps.
13627 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13628 Fetch lwpid from thread, not lwp.
13629 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13630 Pass &all_threads to find_inferior, not &all_lwps.
13631 (send_sigstop): Fetch lwpid from thread, not lwp.
13632 (send_sigstop_callback): Update, "entry" parameter is a
13633 struct thread_info * now.
13634 (suspend_and_send_sigstop_callback): Ditto.
13635 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13636 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13637 struct thread_info * now.
13638 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13639 from thread, lwp.
13640 (lwp_running): Update, "entry" parameter is a
13641 struct thread_info * now.
13642 (stop_all_lwps): Fetch ptid from thread.
13643 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13644 (linux_resume_one_lwp): Fetch lwpid from thread.
13645 (linux_set_resume_request): Update, "entry" parameter is a
13646 struct thread_info * now. Fetch pid, lwpid from thread.
13647 (resume_status_pending_p): Update, "entry" parameter is a
13648 struct thread_info * now.
13649 (need_step_over_p): Ditto. Fetch lwpid from thread.
13650 (start_step_over): Fetch lwpid from thread.
13651 (linux_resume_one_thread): Update, "entry" parameter is a
13652 struct thread_info * now. Fetch lwpid from thread.
13653 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13654 (proceed_one_lwp): Update, "entry" parameter is a
13655 struct thread_info * now. Fetch lwpid from thread.
13656 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13657 struct thread_info * now.
13658 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13659 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13660 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13661 directly.
13662 (regsets_store_inferior_registers): Ditto.
13663 (fetch_register, store_register): Ditto.
13664 (linux_read_memory, linux_write_memory): Ditto.
13665 (linux_request_interrupt): Ditto.
13666 (linux_read_auxv): Ditto.
13667 (linux_xfer_siginfo): Ditto.
13668 (linux_qxfer_spu): Ditto.
13669 (linux_qxfer_libraries_svr4): Ditto.
13670 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13671 moved to inferiors.h.
13672 (get_lwp): Delete.
13673 (get_thread_lwp): Update.
13674 (struct lwp_info): Delete member "entry". Simplify comment for
13675 member "thread".
13676 (all_lwps): Delete.
13677 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13678 current_inferior directly.
13679 (update_watch_registers_callback): Update, "entry" parameter is a
13680 struct thread_info * now. Fetch pid from thread.
13681 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13682 (mips_insert_point): Fetch lwpid from current_inferior.
13683 Pass &all_threads to find_inferior, not &all_lwps.
13684 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13685 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13686 directly.
13687 (mips_stopped_data_address): Ditto.
13688 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13689 directly.
13690 * linux-tile-low.c (tile_arch_setup): Ditto.
13691 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13692 (update_debug_registers_callback): Update, "entry" parameter is a
13693 struct thread_info * now. Fetch pid from thread.
13694 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13695 Pass &all_threads to find_inferior, not &all_lwps.
13696 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13697 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13698 Pass &all_threads to find_inferior, not &all_lwps.
13699 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13700 (i386_dr_low_get_status): Ditto.
13701 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13702 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13703 (x86_linux_read_description): Ditto.
13704 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13705
3b8361aa
DE
137062014-02-20 Doug Evans <dje@google.com>
13707
13708 * inferiors.c (get_first_inferior): Fix buglet.
13709
f7667f0d
DE
137102014-02-19 Doug Evans <dje@google.com>
13711
13712 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13713 * inferiors.c (add_thread): Change result type to struct thread_info *.
13714 All callers updated.
13715 (add_lwp): Call add_thread here instead of in callers.
13716 All callers updated.
13717 * linux-low.h (get_lwp_thread): Rewrite.
13718 (struct lwp_info): New member "thread".
13719
b3312d80
DE
137202014-02-19 Doug Evans <dje@google.com>
13721
13722 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13723 All callers updated.
13724
ecc6f45c
DE
137252014-02-19 Doug Evans <dje@google.com>
13726
13727 * inferiors.c (add_thread): Fix whitespace.
13728
649ebbca
DE
137292014-02-19 Doug Evans <dje@google.com>
13730
13731 * dll.c (clear_dlls): Replace accessing list implemention details
13732 with API function.
13733 * gdbthread.h (get_first_thread): Declare.
13734 * inferiors.c (for_each_inferior_with_data): New function.
13735 (get_first_thread): New function.
13736 (find_thread_ptid): Simplify.
13737 (get_first_inferior): New function.
13738 (clear_list): Delete.
13739 (one_inferior_p): New function.
13740 (clear_inferior_list): New function.
13741 (clear_inferiors): Update.
13742 * inferiors.h (for_each_inferior_with_data): Declare.
13743 (clear_inferior_list): Declare.
13744 (one_inferior_p): Declare.
13745 (get_first_inferior): Declare.
13746 * linux-low.c (linux_wait_for_event): Replace accessing list
13747 implemention details with API function.
13748 * server.c (target_running): Ditto.
13749 (accumulate_file_name_length): New function.
13750 (emit_dll_description): New function.
13751 (handle_qxfer_libraries): Replace accessing list implemention
13752 details with API function.
13753 (handle_qxfer_threads_worker): New function.
13754 (handle_qxfer_threads_proper): Replace accessing list implemention
13755 details with API function.
13756 (handle_query): Ditto.
13757 (visit_actioned_threads_callback_ftype): New typedef.
13758 (visit_actioned_threads_data): New struct.
13759 (visit_actioned_threads): Rewrite to be find_inferior callback.
13760 (resume): Call find_inferior.
13761 (handle_status): Replace accessing list implemention
13762 details with API function.
13763 (process_serial_event): Replace accessing list implemention details
13764 with API function.
13765 * target.c (set_desired_inferior): Replace accessing list implemention
13766 details with API function.
13767 * tracepoint.c (same_process_p): New function.
13768 (gdb_agent_about_to_close): Replace accessing list implemention
13769 details with API function.
13770 * win32-low.c (child_delete_thread): Replace accessing list
13771 implemention details with API function.
13772 (match_dll_by_basename): New function.
13773 (dll_is_loaded_by_basename): New function.
13774 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13775 details call to dll_is_loaded_by_basename.
13776
80894984
DE
137772014-02-19 Doug Evans <dje@google.com>
13778
13779 * dll.h (struct dll_info): Add comment.
13780 * gdbthread.h (struct thread_info): Add comment.
13781 (current_ptid): Simplify.
13782 * inferiors.c (add_process): Update.
13783 (remove_process): Update.
13784 * inferiors.h (struct process_info): Rename member "head" to "entry".
13785 * linux-low.c (delete_lwp): Update.
13786 (add_lwp): Update.
13787 (last_thread_of_process_p): Update.
13788 (kill_one_lwp_callback, linux_kill): Update.
13789 (status_pending_p_callback): Update.
13790 (wait_for_sigstop): Update. Simplify read of ptid.
13791 (start_step_over): Update.
13792 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13793 (get_lwp_thread): Update.
13794 (struct lwp_info): Rename member "head" to "entry".
13795 * regcache.h (inferior_list_entry): Delete.
13796 * server.c (kill_inferior_callback): Update.
13797 (detach_or_kill_inferior_callback): Update.
13798 (print_started_pid): Update.
13799 (print_attached_pid): Update.
13800 (process_serial_event): Simplify read of ptid.
13801 * thread-db.c (thread_db_create_event): Update.
13802 (thread_db_get_tls_address): Update.
13803 * win32-low.c (current_inferior_ptid): Simplify.
13804
46917d26
TT
138052014-02-19 Tom Tromey <tromey@redhat.com>
13806
13807 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13808 argument.
13809 (target_supports_btrace): Update.
13810
0759a81e
YQ
138112014-02-14 Yao Qi <yao@codesourcery.com>
13812
13813 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13814 (rsp-low-ipa.o): New target.
13815
a7191e8b
TT
138162014-02-12 Tom Tromey <tromey@redhat.com>
13817
13818 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13819 convert_ascii_to_int.
13820 * regcache.c (registers_to_string): Likewise.
13821 * remote-utils.c (decode_M_packet): Likewise.
13822 * server.c (process_serial_event): Likewise.
13823
ff0e980e
TT
138242014-02-12 Tom Tromey <tromey@redhat.com>
13825
13826 * server.c (handle_query, handle_v_run): Use hex2bin, not
13827 unhexify.
13828 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13829
e9371aff
TT
138302014-02-12 Tom Tromey <tromey@redhat.com>
13831
13832 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13833 convert_int_to_ascii.
13834 * regcache.c (registers_to_string, collect_register_as_string):
13835 Likewise.
13836 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13837 Likewise.
13838 * server.c (process_serial_event): Likewise.
13839 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13840 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13841
971dc0b8
TT
138422014-02-12 Tom Tromey <tromey@redhat.com>
13843
13844 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13845 bin2hex, not hexify.
13846 * tracepoint.c (cmd_qtstatus): Likewise.
13847
0a822afb
TT
138482014-02-12 Tom Tromey <tromey@redhat.com>
13849
13850 * remote-utils.c (monitor_output): Pass explicit length to
13851 hexify.
13852
9c3d6531
TT
138532014-02-12 Tom Tromey <tromey@redhat.com>
13854
13855 * tracepoint.c: Include rsp-low.h.
13856 * server.c: Include rsp-low.h.
13857 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13858 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13859 declare.
13860 * remote-utils.c: Include rsp-low.h.
13861 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13862 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13863 (convert_int_to_ascii, convert_ascii_to_int): Move to
13864 common/rsp-low.c.
13865 * regcache.c: Include rsp-low.h.
13866 * ax.c: Include rsp-low.h.
13867 * Makefile.in (SFILES): Add common/rsp-low.c.
13868 (OBS): Add rsp-low.o.
13869 (rsp-low.o): New target.
13870
01fd3ea5
TT
138712014-02-12 Tom Tromey <tromey@redhat.com>
13872
13873 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13874 Include print-utils.h.
13875 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13876 (plongest, thirty_two, phex_nz): Remove.
13877 * Makefile.in (SFILES): Add common/print-utils.c.
13878 (OBS): Add print-utils.o.
13879 (print-utils-ipa.o): New target.
13880 (print-utils.o): New target.
13881 (IPA_OBJS): Add print-utils-ipa.o.
13882
e99dc820
TT
138832014-02-06 Tom Tromey <tromey@redhat.com>
13884
13885 * Makefile.in (SFILES): Fix indentation.
13886
ee1e2d4f
DE
138872014-02-05 Doug Evans <dje@google.com>
13888
13889 * linux-low.c (linux_wait_for_event): Improve comment.
13890 (linux_wait_1): Keep current_inferior in sync with event_child.
13891
f5a02773
DE
138922014-01-22 Doug Evans <dje@google.com>
13893
13894 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13895
87ce2a04
DE
138962014-01-22 Doug Evans <dje@google.com>
13897
13898 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13899 * configure: Regenerate.
13900 * config.in: Regenerate.
13901 * Makefile.in (SFILES): Add debug.c.
13902 (OBS): Add debug.o.
13903 * debug.c: New file.
13904 * debug.h: New file.
13905 * linux-aarch64-low.c (*): Update all debugging printfs to use
13906 debug_printf instead of fprintf.
13907 * linux-arm-low.c (*): Ditto.
13908 * linux-cris-low.c (*): Ditto.
13909 * linux-crisv32-low.c (*): Ditto.
13910 * linux-m32r-low.c (*): Ditto.
13911 * linux-sparc-low.c (*): Ditto.
13912 * linux-x86.c (*): Ditto.
13913 * linux-low.c (*): Ditto.
13914 (linux_wait_1): Add calls to debug_enter, debug_exit.
13915 (linux_wait): Remove redundant debugging printf.
13916 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13917 (linux_resume, unstop_all_lwps): Ditto.
13918 * mem-break.c (*): Update all debugging printfs to use
13919 debug_printf instead of fprintf.
13920 * remote-utils.c (*): Ditto.
13921 * thread-db.c (*): Ditto.
13922 * server.c #include <ctype.h>, "gdb_vecs.h".
13923 (debug_threads): Moved to debug.c.
13924 (*): Update all debugging printfs to use debug_printf instead of
13925 fprintf.
13926 (start_inferior): Replace call to fflush with call to debug_flush.
13927 (monitor_show_help): Mention set debug-format.
13928 (parse_debug_format_options): New function.
13929 (handle_monitor_command): Handle "monitor set debug-format".
13930 (gdbserver_usage): Mention --debug-format.
13931 (main): Parse --debug-format.
13932 * server.h (debug_threads): Declaration moved to debug.h.
13933 #include "debug.h".
13934 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13935 trace_debug_1 that uses debug_printf.
13936 (tracepoint_look_up_symbols): Update all debugging printfs to use
13937 debug_printf instead of fprintf.
13938
e671835b
BS
139392014-01-20 Baruch Siach <baruch@tkos.co.il>
13940
13941 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13942 sys/ptrace.h.
13943
b5737fa9
PA
139442014-01-17 Pedro Alves <palves@redhat.com>
13945
ea38d2a9 13946 PR build/16445
c7faa97a
PA
13947 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13948 defined after including gdb_proc_service.h.
b5737fa9 13949
40ed484e
DE
139502014-01-16 Doug Evans <dje@google.com>
13951
13952 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13953 (match_dll): Use it.
13954
969c39fb
MM
139552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13956
13957 * target.h (target_ops) <read_btrace>: Change parameters and
13958 return type to allow error reporting.
13959 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13960 trace reading errors on.
13961 * linux-low.c (linux_low_read_btrace): Pass trace reading
13962 errors on.
13963 (linux_low_disable_btrace): New.
13964
ab7f45ba
DE
139652014-01-15 Doug Evans <dje@google.com>
13966
13967 * inferiors.c (thread_id_to_gdb_id): Delete.
13968 * inferiors.h (thread_id_to_gdb_id): Delete.
13969
66af0f44
EZ
139702014-01-13 Eli Zaretskii <eliz@gnu.org>
13971
13972 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13973 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13974 versions.
13975
9939e131
PA
139762014-01-08 Pedro Alves <palves@redhat.com>
13977
13978 * server.c (handle_status): Don't discard previous queued stop
13979 replies or thread's pending status here.
13980 (main) <disconnection>: Do it here instead.
13981
b7ea362b
PA
139822014-01-08 Pedro Alves <palves@redhat.com>
13983
13984 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13985 * server.c (visit_actioned_threads, handle_pending_status): New
13986 function.
13987 (handle_v_cont): Factor out parts to ...
13988 (resume): ... this new function. If in all-stop, and a thread
13989 being resumed has a pending status, report it without actually
13990 resuming.
13991 (myresume): Adjust to use the new 'resume' function.
13992 (clear_pending_status_callback, set_pending_status_callback)
13993 (find_status_pending_thread_callback): New functions.
13994 (handle_status): Handle the case of multiple threads having
13995 interesting statuses to report. Report threads' real last signal
13996 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13997 with an interesting thread to report the status for, instead of
13998 always reporting the status of the first thread.
13999
28498c42
JB
140002014-01-01 Joel Brobecker <brobecker@adacore.com>
14001
14002 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
14003 * gdbreplay.c (gdbreplay_version): Likewise.
14004
f45c82da
YZ
140052013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
14006
14007 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
14008 iov.iov_len with the real length in use.
14009
379a5e2d
JB
140102013-12-13 Joel Brobecker <brobecker@adacore.com>
14011
14012 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14013 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14014 for all targets that use win32-low.c.
14015 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14016 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14017
4210d83e
PA
140182013-12-13 Pedro Alves <palves@redhat.com>
14019
14020 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14021 if equal to TARGET_WAITKIND_LOADED.
14022 * win32-low.c (cached_status): New static global.
14023 (win32_wait): Add declaration.
14024 (do_initial_child_stuff): Flush all initial pending debug events
14025 up to the initial breakpoint.
14026 (win32_wait): If CACHED_STATUS was set, return that instead
14027 of doing a real wait. Remove the code resuming the execution
14028 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14029 during the initial phase. Also remove the code changing
14030 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14031 TARGET_WAITKIND_STOPPED.
14032
e7f0d979
YQ
140332013-12-11 Yao Qi <yao@codesourcery.com>
14034
14035 * notif.c (handle_notif_ack): Return 0 if no notification
14036 matches.
14037
ebcf782c
DE
140382013-11-20 Doug Evans <dje@google.com>
14039
14040 * linux-low.c (linux_set_resume_request): Fix comment.
14041
20ad9378
DE
140422013-11-20 Doug Evans <dje@google.com>
14043
14044 * linux-low.c (resume_status_pending_p): Tweak comment.
14045
a196ebeb
WT
140462013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14047
14048 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14049 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14050 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14051 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14052 (srv_amd64_regobj): Add amd64-mpx.o.
14053 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14054 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14055 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14056 * i387-fp.c (num_pl_bnd_register) Added constant.
14057 (num_pl_bnd_cfg_registers) Added constant.
14058 (struct i387_xsave) Added reserved area and MPX fields.
14059 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14060 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14061 function.
14062 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14063 (init_registers_amd64_mpx_linux): Declare new function.
14064 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14065 (x86_64_regmap): Add MPX registers.
14066 (x86_linux_read_description): Add MPX case.
14067 (initialize_low_arch): Initialize MPX targets.
14068
0080a2f6
TT
140692013-11-18 Tom Tromey <tromey@redhat.com>
14070
14071 * configure: Rebuild.
14072 * configure.ac: Don't check for stdlib.h.
14073 * gdbreplay.c: Unconditionally include stdlib.h.
14074
2978b111
TT
140752013-11-18 Tom Tromey <tromey@redhat.com>
14076
14077 * config.in: Rebuild.
14078 * configure: Rebuild.
14079 * configure.ac: Don't use AC_HEADER_DIRENT.
14080
a3d08894
TT
140812013-11-18 Tom Tromey <tromey@redhat.com>
14082
14083 * server.h: Don't check HAVE_STRING_H.
14084 * gdbreplay.c: Don't check HAVE_STRING_H.
14085 * configure: Rebuild.
14086
0a5dd17d
TT
140872013-11-18 Tom Tromey <tromey@redhat.com>
14088
14089 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14090 LIBGNU.
14091
1bd2f0ba
TT
140922013-11-08 Tom Tromey <tromey@redhat.com>
14093
14094 * configure, config.in: Rebuild.
14095 * configure.ac: Remove unused configury.
14096
3266f10b
TT
140972013-11-08 Tom Tromey <tromey@redhat.com>
14098
14099 * acinclude.m4: Include common.m4, codeset.m4.
14100 * configure, config.in: Rebuild.
14101 * configure.ac: Use GDB_AC_COMMON.
14102
6682d959
AA
141032013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14104
14105 * linux-s390-low.c (HWCAP_S390_TE): New define.
14106 (s390_arch_setup): Consider the TE field in the HWCAP for
14107 determining 'have_regset_tdb'.
14108
fd0a4d76
SDJ
141092013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14110
14111 PR gdb/16014
14112 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14113 call to sizeof.
14114
1a3d890b
PA
141152013-10-02 Pedro Alves <palves@redhat.com>
14116
14117 * server.c (process_serial_event): Don't output "GDBserver
14118 exiting" if GDB is connected through stdio.
14119 * target.c (mywait): Likewise, be silent if GDB is connected
14120 through stdio.
14121
97ad4581
JB
141222013-10-01 Joel Brobecker <brobecker@adacore.com>
14123
14124 * lynx-low.c (lynx_add_threads_after_attach): New function.
14125 (lynx_attach): Remove call to add_thread. Add call to
14126 lynx_add_threads_after_attach instead.
14127
5b4e221c
MF
141282013-09-28 Mike Frysinger <vapier@gentoo.org>
14129
14130 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14131 * config.in, configure: Regenerated.
14132
ee47b2f8
YQ
141332013-09-18 Yao Qi <yao@codesourcery.com>
14134
14135 PR server/15959
14136 * server.c (start_inferior): Clear 'resume_info'.
14137
d6707650 141382013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14139
d6707650
JW
14140 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14141 for each register.
14142
9243dd0e 141432013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14144
9243dd0e
JW
14145 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14146 linux-tile-low.o to srv_tgtobj.
14147
c623a6ef
WN
141482013-09-16 Will Newton <will.newton@linaro.org>
14149
14150 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14151 out regs.
14152
fb71d39e
PA
141532013-09-06 Pedro Alves <palves@redhat.com>
14154
14155 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14156 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14157 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14158 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14159 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14160 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14161
8e7e9910
PA
141622013-09-06 Pedro Alves <palves@redhat.com>
14163
14164 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14165 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14166
7c3a12ca
PA
141672013-09-06 Pedro Alves <palves@redhat.com>
14168
14169 * linux-amd64-ipa.c: Include tracepoint.h.
14170 * linux-i386-ipa.c: Include tracepoint.h.
14171
8eb3d7b6
RW
141722013-09-06 Ricard Wanderlof <ricardw@axis.com>
14173
14174 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14175 (ps_get_thread_area): New function.
14176
eddddb9d
RW
141772013-09-06 Ricard Wanderlof <ricardw@axis.com>
14178
14179 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14180 (initialize_low_arch): Call init_registers_crisv32 rather than
14181 init_register_crisv32.
14182
533b0600
PA
141832013-09-05 Pedro Alves <palves@redhat.com>
14184
14185 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14186 to ...
14187 * hostio.h: ... this new file.
14188 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14189 win32-low.c: Include hostio.h.
14190
0ce3d3b5
PA
141912013-09-05 Pedro Alves <palves@redhat.com>
14192
14193 * server.h (gdb_client_data, handler_func, callback_handler_func)
14194 (delete_file_handler, add_file_handler, append_callback_event)
14195 (delete_callback_event, start_event_loop, initialize_event_loop):
14196 Move to event-loop.h and include it.
14197 * event-loop.h: New file.
14198
799cdc37
PA
141992013-09-05 Pedro Alves <palves@redhat.com>
14200
14201 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14202 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14203 (loaded_dll, unloaded_dll): Move to ...
14204 * dll.h: ... this new file.
14205 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14206
6a6bbd9d
PA
142072013-09-05 Pedro Alves <palves@redhat.com>
14208
14209 * server.h (current_process, get_thread_process, all_processes)
14210 (add_inferior_to_list, for_each_inferior, current_inferior)
14211 (remove_inferior, add_process, remove_process, find_process_pid)
14212 (have_started_inferiors_p, have_attached_inferiors_p)
14213 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14214 (clear_inferiors, find_inferior, find_inferior_id)
14215 (inferior_target_data, set_inferior_target_data)
14216 (inferior_regcache_data, set_inferior_regcache_data): Move to
14217 inferiors.h, and include it.
14218 * inferiors.h: New file.
14219
f699aaba
PA
142202013-09-05 Pedro Alves <palves@redhat.com>
14221
14222 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14223 Move ...
72f4393d 14224 * ax.h: ... here.
f699aaba 14225
c144c7a0
PA
142262013-09-05 Pedro Alves <palves@redhat.com>
14227
14228 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14229 tracepoint.h.
14230 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14231 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14232 (handle_tracepoint_general_set, handle_tracepoint_query)
14233 (tracepoint_finished_step, tracepoint_was_hit)
14234 (release_while_stepping_state_list, current_traceframe)
14235 (in_readonly_region, traceframe_read_mem)
14236 (fetch_traceframe_registers, traceframe_read_sdata)
14237 (traceframe_read_info, struct fast_tpoint_collect_status)
14238 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14239 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14240 (supply_fast_tracepoint_registers)
14241 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14242 (ipa_tdesc, claim_trampoline_space)
14243 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14244 (agent_mem_read, agent_get_trace_state_variable_value)
14245 (agent_set_trace_state_variable_value, agent_tsv_read)
14246 (agent_mem_read_string, get_raw_reg_func_addr)
14247 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14248 * tracepoint.h: ... this new file.
14249
ff42e6ab
PA
142502013-09-05 Pedro Alves <palves@redhat.com>
14251
14252 * server.h (perror_with_name, error, fatal, warning, paddress)
14253 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14254 include it.
14255 * utils.h: New file.
14256
541af0f4
PA
142572013-09-05 Pedro Alves <palves@redhat.com>
14258
14259 * server.h (remote_debug, noack_mode, transport_is_reliable)
14260 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14261 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14262 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14263 (write_enn, initialize_async_io, enable_async_io)
14264 (disable_async_io, check_remote_input_interrupt_request)
14265 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14266 (dead_thread_notify, prepare_resume_reply)
14267 (decode_address_to_semicolon, decode_address, decode_m_packet)
14268 (decode_M_packet, decode_X_packet, decode_xfer_write)
14269 (decode_search_memory_packet, unhexify, hexify)
14270 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14271 (look_up_one_symbol, relocate_instruction)
14272 (monitor_output): Move to remote-utils.h, and include it.
14273 * remote-utils.h: New file.
14274
eebdf26b
PA
142752013-09-05 Pedro Alves <palves@redhat.com>
14276
14277 * server.h (_): Delete.
14278
3aafd2ff
PA
142792013-09-02 Pedro Alves <palves@redhat.com>
14280
14281 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14282 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14283 allocated.
14284 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14285
cee83bcb
PM
142862013-09-02 Pierre Muller <muller@sourceware.org>
14287
14288 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14289 or WriteProcessMemory complete successfully and handle
14290 ERROR_PARTIAL_COPY error.
14291
9a13b2fa
PA
142922013-09-02 Pedro Alves <palves@redhat.com>
14293
14294 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14295 error instead of EIO.
14296
602e3198
JK
142972013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14298
14299 PR server/15604
14300 * linux-low.c: Include filestuff.h.
14301 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14302 * lynx-low.c: Include filestuff.h.
14303 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14304 * server.c: Include filestuff.h.
14305 (main): Call notice_open_fds.
14306 * spu-low.c: Include filestuff.h.
14307 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14308
96d7229d
LM
143092013-08-22 Luis Machado <lgustavo@codesourcery.com>
14310
14311 * Makefile.in: Explain why ../target and ../nat are not
14312 listed as include file search paths.
14313 (linux-waitpid.o): New object file rule.
14314 * configure.srv (srv_native_linux_obj): New variable.
14315 Replace all occurrences of linux native object files with
14316 $srv_native_linux_obj.
14317 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14318 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14319 (linux_enable_event_reporting): Remove declaration.
14320 (my_waitpid): Moved to common/linux-waitpid.c.
14321 (linux_wait_for_event): Pass ptid when calling
14322 linux_enable_event_reporting.
14323 (linux_supports_tracefork_flag): Remove.
14324 (linux_enable_event_reporting): Likewise.
14325 (linux_tracefork_grandchild): Remove.
14326 (STACK_SIZE): Moved to common/linux-ptrace.c.
14327 (linux_tracefork_child): Remove.
14328 (linux_test_for_tracefork): Remove.
14329 (linux_look_up_symbols): Call linux_supports_traceclone.
14330 (initialize_low): Remove call to linux_test_for_tracefork.
14331 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14332 common/linux-ptrace.h.
14333 (PTRACE_TYPE_ARG4): Likewise.
14334 Include linux-ptrace.h.
14335
32940073
PA
143362013-08-21 Pedro Alves <palves@redhat.com>
14337
14338 * config.in: Renegerate.
14339
33b60d58 143402013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14341
33b60d58
LM
14342 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14343 (SFILES): Remove $(srcdir)/common/target-common.c and
14344 add $(srcdir)/target/waitstatus.c.
14345 (OBS): Remove target-common.o and add waitstatus.o.
14346 (server_h): Remove $(srcdir)/../common/target-common.h and
14347 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14348 and $(srcdir)/../target/waitstatus.h.
14349 (target-common.o): Remove.
14350 (waitstatus.o): New target object file.
14351 * target.h: Do not include target-common.h and
14352 include target/resume.h, target/wait.h and
14353 target/waitstatus.h.
14354
b8e1b30e
LM
143552013-08-13 Luis Machado <lgustavo@codesourcery.com>
14356
14357 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14358 to PTRACE_TYPE_ARG3.
14359 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14360 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14361 PTRACE_TYPE_ARG4.
14362 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14363 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14364
7a60ad40
YQ
143652013-07-27 Jie Zhang <jie@codesourcery.com>
14366 Daniel Jacobowitz <dan@codesourcery.com>
14367 Yao Qi <yao@codesourcery.com>
14368
14369 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14370 (mips-linux-watch.o): New rule.
14371 (mips_linux_watch_h): New variable.
14372 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14373 srv_tgtobj.
14374 * linux-mips-low.c: Include mips-linux-watch.h.
14375 (struct arch_process_info, struct arch_lwp_info): New.
14376 (update_watch_registers_callback): New function.
14377 (mips_linux_new_process, mips_linux_new_thread) New functions.
14378 (mips_linux_prepare_to_resume, mips_insert_point): New
14379 functions.
14380 (mips_remove_point, mips_stopped_by_watchpoint): New
14381 functions.
14382 (rsp_bp_type_to_target_hw_bp_type): New function.
14383 (mips_stopped_data_address): New function.
14384 (the_low_target): Add watchpoint support functions.
14385
de6f69ad
YQ
143862013-07-27 Yao Qi <yao@codesourcery.com>
14387
14388 * i386-low.c: Include break-common.h.
14389 (enum target_hw_bp_type): Remove.
14390
3360c0bf
LM
143912013-07-24 Luis Machado <lgustavo@codesourcery.com>
14392
14393 * Makefile.in (SFILES): /common/target-common.c.
14394 (OBS): Add target-common.o.
14395 (server_h): Add $(srcdir)/../common/target-common.h.
14396 (target-common.o): New target.
14397 * server.c (queue_stop_reply_callback): Free
14398 status string after use.
14399 * target.c (target_waitstatus_to_string): Remove.
14400 * target.h: Include target-common.h.
14401 (resume_kind): Likewise.
14402 (target_waitkind): Likewise.
14403 (target_waitstatus): Likewise.
14404 (TARGET_WNOHANG): Likewise.
14405
bd885420
YQ
144062013-07-04 Yao Qi <yao@codesourcery.com>
14407
14408 * Makefile.in (host_alias): Use @host_noncanonical@.
14409 (target_alias): Use @target_noncanonical@.
14410 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14411 ACX_NONCANONICAL_HOST.
14412 * configure: Regenerated.
14413
14414 Revert:
14415 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14416
14417 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14418 * configure: Rebuild.
14419 * Makefile.in (version_host, version_target): Get from configure.
14420 (version.c): Use $(version_host) and $(version_target).
14421
17ef446e
PA
144222013-07-03 Pedro Alves <palves@redhat.com>
14423
14424 * Makefile.in (config.status): Depend on development.sh.
14425 * acinclude.m4: Include libmcheck.m4.
14426 * configure: Regenerate.
14427
7a9a7487
MG
144282013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14429
14430 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14431 attribute inside the parentheses.
14432 (winapi_DebugSetProcessKillOnExit): Ditto.
14433 (winapi_DebugBreakProcess): Ditto.
14434 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14435
49b64de6
MG
144362013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14437
14438 * notif.h (notif_event): Add a dummy member to avoid compiler
14439 errors.
14440
d5749ee7
PA
144412013-07-01 Pedro Alves <palves@redhat.com>
14442
14443 * hostio.c (HOSTIO_PATH_MAX): Define.
14444 (require_filename, handle_open, handle_unlink, handle_readlink):
14445 Use it.
14446
d8d2a3ee
PA
144472013-07-01 Pedro Alves <palves@redhat.com>
14448
14449 * server.h: Include "pathmax.h".
14450 * linux-low.c: Don't include sys/param.h.
14451 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14452 MAXPATHLEN.
14453 * win32-low.c: Don't include sys/param.h.
14454 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14455
bc7dea8d
PA
144562013-07-01 Pedro Alves <palves@redhat.com>
14457
14458 * event-loop.c: Don't check HAVE_UNISTD_H before including
14459 <unistd.h>.
14460 * gdbreplay.c: Likewise.
14461 * remote-utils.c: Likewise.
14462 * server.c: Likewise.
14463 * configure.ac: Don't check for unistd.h.
14464 * configure: Regenerate.
14465
d6c2da54
TT
144662013-06-28 Tom Tromey <tromey@redhat.com>
14467
14468 * Makefile.in (version.c): Use version.in, not
14469 common/version.in.
14470
257b6bec
MG
144712013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14472
14473 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14474 * configure: Rebuild.
14475 * Makefile.in (version_host, version_target): Get from configure.
14476 (version.c): Use $(version_host) and $(version_target).
14477
86ebe149
DK
144782013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14479
14480 Fix trace-status to output user name without trailing colon.
14481 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14482
f30aa5af
DK
144832013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14484
14485 Fix trace-status to output proper start-time and stop-time.
14486 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14487 output start time and stop time in hex as gdb expects.
14488
28a93511
YQ
144892013-06-26 Pedro Alves <pedro@codesourcery.com>
14490
14491 * tracepoint.c (build_traceframe_info_xml): Output trace state
14492 variables present in the trace buffer.
14493
01208463
TT
144942013-06-24 Tom Tromey <tromey@redhat.com>
14495
14496 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14497 create-version.sh.
14498 (version.o): Remove.
14499 * gdbreplay.c: Include version.h.
14500 (version, host_name): Don't declare.
14501 * server.h: Include version.h.
14502 (version, host_name): Don't declare.
14503
760256f9
PA
145042013-06-12 Pedro Alves <palves@redhat.com>
14505
14506 * linux-x86-low.c (linux_is_elf64): Delete global.
14507 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14508 with local linux_pid_exe_is_elf_64_file use.
14509
030031ee
PA
145102013-06-11 Pedro Alves <palves@redhat.com>
14511
14512 * linux-low.c (regset_disabled, disable_regset): New functions.
14513 (regsets_fetch_inferior_registers)
14514 (regsets_store_inferior_registers): Use them.
14515 (initialize_regsets_info); Don't allocate the disabled_regsets
14516 array here.
14517 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14518 comment.
14519
5da6eb0a
PA
145202013-06-11 Pedro Alves <palves@redhat.com>
14521
14522 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14523 xmalloc.
14524
7e5aaa09
PA
145252013-06-11 Pedro Alves <palves@redhat.com>
14526
14527 * linux-x86-low.c (initialize_low_arch): Call
14528 init_registers_x32_avx_linux.
14529
d878444c
JK
145302013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14531
14532 Fix compatibility with Android Bionic.
14533 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14534 it is not empty.
14535
3aee8918
PA
145362013-06-07 Pedro Alves <palves@redhat.com>
14537
5f2b57b5 14538 PR server/14823
3aee8918
PA
14539 * Makefile.in (OBS): Add tdesc.o.
14540 (IPA_OBJS): Add tdesc-ipa.o.
14541 (tdesc-ipa.o): New rule.
14542 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14543 interface.
14544 * linux-low.c (new_inferior): Delete.
14545 (disabled_regsets, num_regsets): Delete.
14546 (linux_add_process): Adjust to set the new per-process
14547 new_inferior flag.
14548 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14549 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14550 was a stop. When calling arch_setup, switch the current inferior
14551 to the thread that got an event.
14552 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14553 (regsets_fetch_inferior_registers)
14554 (regsets_store_inferior_registers): New regsets_info parameter.
14555 Adjust to use it.
14556 (linux_register_in_regsets): New regs_info parameter. Adjust to
14557 use it.
14558 (register_addr, fetch_register, store_register): New usrregs_info
14559 parameter. Adjust to use it.
14560 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14561 parameter regs_info. Adjust to use it.
14562 (linux_fetch_registers): Get the current inferior's regs_info, and
14563 adjust to use it.
14564 (linux_store_registers): Ditto.
14565 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14566 (initialize_low): Don't initialize the target_regsets here. Call
14567 initialize_low_arch.
14568 * linux-low.h (target_regsets): Delete declaration.
14569 (struct regsets_info): New.
14570 (struct usrregs_info): New.
14571 (struct regs_info): New.
14572 (struct process_info_private) <new_inferior>: New field.
14573 (struct linux_target_ops): Delete the num_regs, regmap, and
14574 regset_bitmap fields. New field regs_info.
14575 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14576 * i387-fp.c (num_xmm_registers): Delete.
14577 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14578 calls to new interface.
14579 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14580 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14581 Infer the number of xmm registers from the regcache's target
14582 description.
14583 * i387-fp.h (num_xmm_registers): Delete.
14584 * inferiors.c (add_thread): Don't install the thread's regcache
14585 here.
14586 * proc-service.c (gregset_info): Fetch the current inferior's
14587 regs_info. Adjust to use it.
14588 * regcache.c: Include tdesc.h.
14589 (register_bytes, reg_defs, num_registers)
14590 (gdbserver_expedite_regs): Delete.
14591 (get_thread_regcache): If the thread doesn't have a regcache yet,
14592 create one, instead of aborting gdbserver.
14593 (regcache_invalidate_one): Rename to ...
14594 (regcache_invalidate_thread): ... this.
14595 (regcache_invalidate_one): New.
14596 (regcache_invalidate): Only invalidate registers of the current
14597 process.
14598 (init_register_cache): Add target_desc parameter, and use it.
14599 (new_register_cache): Ditto. Assert the target description has a
14600 non zero registers_size.
14601 (regcache_cpy): Add assertions. Adjust.
14602 (realloc_register_cache, set_register_cache): Delete.
14603 (registers_to_string, registers_from_string): Adjust.
14604 (find_register_by_name, find_regno, find_register_by_number)
14605 (register_cache_size): Add target_desc parameter, and use it.
14606 (free_register_cache_thread, free_register_cache_thread_one)
14607 (regcache_release, register_cache_size): New.
14608 (register_size): Add target_desc parameter, and use it.
14609 (register_data, supply_register, supply_register_zeroed)
14610 (supply_regblock, supply_register_by_name, collect_register)
14611 (collect_register_as_string, collect_register_by_name): Adjust.
14612 * regcache.h (struct target_desc): Forward declare.
14613 (struct regcache) <tdesc>: New field.
14614 (init_register_cache, new_register_cache): Add target_desc
14615 parameter.
14616 (regcache_invalidate_thread): Declare.
14617 (regcache_invalidate_one): Delete declaration.
14618 (regcache_release): Declare.
14619 (find_register_by_number, register_cache_size, register_size)
14620 (find_regno): Add target_desc parameter.
14621 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14622 declarations.
14623 * remote-utils.c: Include tdesc.h.
14624 (outreg, prepare_resume_reply): Adjust.
14625 * server.c: Include tdesc.h.
14626 (gdbserver_xmltarget): Delete declaration.
14627 (get_features_xml, process_serial_event): Adjust.
14628 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14629 declare.
14630 (struct process_info) <tdesc>: New field.
14631 (ipa_tdesc): Declare.
14632 * tdesc.c: New file.
14633 * tdesc.h: New file.
14634 * tracepoint.c: Include tdesc.h.
14635 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14636 (get_context_regcache): Adjust to pass ipa_tdesc down.
14637 (do_action_at_tracepoint): Adjust to get the register cache size
14638 from the context regcache's description.
14639 (traceframe_walk_blocks): Adjust to get the register cache size
14640 from the current trace frame's description.
14641 (traceframe_get_pc): Adjust to get current trace frame's
14642 description and pass it down.
14643 (gdb_collect): Adjust to get the register cache size from the
14644 IPA's description.
14645 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14646 (gdbserver_xmltarget): Delete.
14647 (initialize_low_tracepoint): Set the ipa's target description.
14648 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14649 (initialize_low_tracepoint): Set the ipa's target description.
14650 * linux-x86-low.c: Include tdesc.h.
14651 [__x86_64__] (is_64bit_tdesc): New.
14652 (ps_get_thread_area, x86_get_thread_area): Use it.
14653 (i386_cannot_store_register): Rename to ...
14654 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14655 (i386_cannot_fetch_register): Rename to ...
14656 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14657 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14658 to new interface.
14659 (target_regsets): Rename to ...
14660 (x86_regsets): ... this.
14661 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14662 interface.
14663 (x86_siginfo_fixup): Use is_64bit_tdesc.
14664 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14665 (tdesc_x32_avx_linux, tdesc_x32_linux)
14666 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14667 Declare.
14668 (x86_linux_update_xmltarget): Delete.
14669 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14670 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14671 (AMD64_LINUX_USER64_CS): New.
14672 (x86_linux_read_description): New, based on
14673 x86_linux_update_xmltarget.
14674 (same_process_callback): New.
14675 (x86_arch_setup_process_callback): New.
14676 (x86_linux_update_xmltarget): New.
14677 (x86_regsets_info): New.
14678 (amd64_linux_regs_info): New.
14679 (i386_linux_usrregs_info): New.
14680 (i386_linux_regs_info): New.
14681 (x86_linux_regs_info): New.
14682 (x86_arch_setup): Reimplement.
14683 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14684 (x86_emit_ops): Ditto.
14685 (the_low_target): Adjust. Install x86_linux_regs_info,
14686 x86_cannot_fetch_register, and x86_cannot_store_register.
14687 (initialize_low_arch): New.
14688 * linux-ia64-low.c (tdesc_ia64): Declare.
14689 (ia64_fetch_register): Adjust.
14690 (ia64_usrregs_info, regs_info): New globals.
14691 (ia64_regs_info): New function.
14692 (the_low_target): Adjust.
14693 (initialize_low_arch): New function.
14694 * linux-sparc-low.c (tdesc_sparc64): Declare.
14695 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14696 Adjust.
14697 (sparc_arch_setup): New function.
14698 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14699 (the_low_target): Adjust.
14700 (initialize_low_arch): New function.
14701 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14702 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14703 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14704 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14705 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14706 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14707 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14708 (tdesc_powerpc_isa205_vsx64l): Declare.
14709 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14710 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14711 (ppc_set_pc, ppc_get_hwcap): Adjust.
14712 (ppc_usrregs_info): Forward declare.
14713 (!__powerpc64__) ppc_regmap_adjusted: New global.
14714 (ppc_arch_setup): Adjust to the current process'es target
14715 description.
14716 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14717 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14718 (ppc_store_evrregset): Adjust.
14719 (target_regsets): Rename to ...
14720 (ppc_regsets): ... this, and make static.
14721 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14722 (ppc_regs_info): New function.
14723 (the_low_target): Adjust.
14724 (initialize_low_arch): New function.
14725 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14726 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14727 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14728 (tdesc_s390x_linux64v2): Declare.
14729 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14730 (s390_fill_gregset, s390_store_last_break): Adjust.
14731 (target_regsets): Rename to ...
14732 (s390_regsets): ... this, and make static.
14733 (s390_get_pc, s390_set_pc): Adjust.
14734 (s390_get_hwcap): New target_desc parameter, and use it.
14735 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14736 (s390_arch_setup): Adjust to set the current process'es target
14737 description. Don't adjust the regmap.
14738 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14739 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14740 (regs_info_3264): New globals.
14741 (s390_regs_info): New function.
14742 (the_low_target): Adjust.
14743 (initialize_low_arch): New function.
14744 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14745 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14746 [__mips64] (init_registers_mips_linux)
14747 (init_registers_mips_dsp_linux): Delete defines.
14748 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14749 (have_dsp): New global.
14750 (mips_read_description): New, based on mips_arch_setup.
14751 (mips_arch_setup): Reimplement.
14752 (get_usrregs_info): New function.
14753 (mips_cannot_fetch_register, mips_cannot_store_register)
14754 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14755 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14756 (target_regsets): Rename to ...
14757 (mips_regsets): ... this, and make static.
14758 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14759 (dsp_regs_info, regs_info): New globals.
14760 (mips_regs_info): New function.
14761 (the_low_target): Adjust.
14762 (initialize_low_arch): New function.
14763 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14764 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14765 Declare.
14766 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14767 (arm_read_description): New, with bits factored from
14768 arm_arch_setup.
14769 (arm_arch_setup): Reimplement.
14770 (target_regsets): Rename to ...
14771 (arm_regsets): ... this, and make static.
14772 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14773 (arm_regs_info): New function.
14774 (the_low_target): Adjust.
14775 (initialize_low_arch): New function.
14776 * linux-m68k-low.c (tdesc_m68k): Declare.
14777 (target_regsets): Rename to ...
14778 (m68k_regsets): ... this, and make static.
14779 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14780 (m68k_regs_info): New function.
14781 (m68k_arch_setup): New function.
14782 (the_low_target): Adjust.
14783 (initialize_low_arch): New function.
14784 * linux-sh-low.c (tdesc_sharch): Declare.
14785 (target_regsets): Rename to ...
14786 (sh_regsets): ... this, and make static.
14787 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14788 (sh_regs_info, sh_arch_setup): New functions.
14789 (the_low_target): Adjust.
14790 (initialize_low_arch): New function.
14791 * linux-bfin-low.c (tdesc_bfin): Declare.
14792 (bfin_arch_setup): New function.
14793 (bfin_usrregs_info, regs_info): New globals.
14794 (bfin_regs_info): New function.
14795 (the_low_target): Adjust.
14796 (initialize_low_arch): New function.
14797 * linux-cris-low.c (tdesc_cris): Declare.
14798 (cris_arch_setup): New function.
14799 (cris_usrregs_info, regs_info): New globals.
14800 (cris_regs_info): New function.
14801 (the_low_target): Adjust.
14802 (initialize_low_arch): New function.
14803 * linux-cris-low.c (tdesc_crisv32): Declare.
14804 (cris_arch_setup): New function.
14805 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14806 (cris_regs_info): New function.
14807 (the_low_target): Adjust.
14808 (initialize_low_arch): New function.
14809 * linux-m32r-low.c (tdesc_m32r): Declare.
14810 (m32r_arch_setup): New function.
14811 (m32r_usrregs_info, regs_info): New globals.
14812 (m32r_regs_info): Adjust.
14813 (initialize_low_arch): New function.
14814 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14815 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14816 (tic6x_usrregs_info): Forward declare.
14817 (tic6x_read_description): New function, based on ...
14818 (tic6x_arch_setup): ... this. Reimplement.
14819 (target_regsets): Rename to ...
14820 (tic6x_regsets): ... this, and make static.
14821 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14822 (tic6x_regs_info): New function.
14823 (the_low_target): Adjust.
14824 (initialize_low_arch): New function.
14825 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14826 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14827 (target_regsets): Rename to ...
14828 (xtensa_regsets): ... this, and make static.
14829 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14830 globals.
14831 (xtensa_arch_setup, xtensa_regs_info): New functions.
14832 (the_low_target): Adjust.
14833 (initialize_low_arch): New function.
14834 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14835 (nios2_arch_setup): Set the current process'es tdesc.
14836 (target_regsets): Rename to ...
14837 (nios2_regsets): ... this.
14838 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14839 (nios2_regs_info): New function.
14840 (the_low_target): Adjust.
14841 (initialize_low_arch): New function.
a261b8f5
PA
14842 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14843 (aarch64_arch_setup): Set the current process'es tdesc.
14844 (target_regsets): Rename to ...
14845 (aarch64_regsets): ... this.
14846 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14847 (aarch64_regs_info): New function.
14848 (the_low_target): Adjust.
14849 (initialize_low_arch): New function.
3aee8918
PA
14850 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14851 globals.
14852 (target_regsets): Rename to ...
14853 (tile_regsets): ... this.
14854 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14855 (tile_regs_info): New function.
14856 (tile_arch_setup): Set the current process'es tdesc.
14857 (the_low_target): Adjust.
14858 (initialize_low_arch): New function.
14859 * spu-low.c (tdesc_spu): Declare.
14860 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14861 * win32-arm-low.c (tdesc_arm): Declare.
14862 (arm_arch_setup): New function.
14863 (the_low_target): Install arm_arch_setup instead of
14864 init_registers_arm.
14865 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14866 (init_windows_x86): Rename to ...
14867 (i386_arch_setup): ... this. Set `win32_tdesc'.
14868 (the_low_target): Adjust.
14869 * win32-low.c (win32_tdesc): New global.
14870 (child_add_thread): Don't create the thread cache here.
14871 (do_initial_child_stuff): Set the new process'es tdesc.
14872 * win32-low.h (struct target_desc): Forward declare.
14873 (win32_tdesc): Declare.
14874 * lynx-i386-low.c (tdesc_i386): Declare global.
14875 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14876 * lynx-low.c (lynx_tdesc): New global.
14877 (lynx_add_process): Set the new process'es tdesc.
14878 * lynx-low.h (struct target_desc): Forward declare.
14879 (lynx_tdesc): Declare global.
14880 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14881 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14882 * nto-low.c (nto_tdesc): New global.
14883 (do_attach): Set the new process'es tdesc.
14884 * nto-low.h (struct target_desc): Forward declare.
14885 (nto_tdesc): Declare.
14886 * nto-x86-low.c (tdesc_i386): Declare.
14887 (nto_x86_arch_setup): Set `nto_tdesc'.
14888
b1fbec62
GB
148892013-06-04 Gary Benson <gbenson@redhat.com>
14890
14891 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14892 to qSupported response when appropriate.
14893 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14894 with nonzero-length annex.
14895 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14896 arguments supplied in annex.
14897
d1ec4ce7
DE
148982013-05-31 Doug Evans <dje@google.com>
14899
ac44adcb 14900 PR server/15594
d1ec4ce7
DE
14901 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14902 64 bits in 64-cross-32 environment.
14903
9b25f2d3
PA
149042013-05-28 Pedro Alves <palves@redhat.com>
14905
14906 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14907 (aarch64-without-fpu.c): Delete rule.
14908 * configure.srv (aarch64*-*-linux*): Remove references to
14909 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14910 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14911 declaration.
14912
6740dc9c
PA
149132013-05-24 Pedro Alves <palves@redhat.com>
14914
14915 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14916 instead of strchr/decode_address. Error if the range isn't split
14917 with a ','. Don't assume there's be a ':' in the action.
14918
c2d6af84
PA
149192013-05-23 Yao Qi <yao@codesourcery.com>
14920 Pedro Alves <palves@redhat.com>
14921
14922 * linux-low.c (lwp_in_step_range): New function.
14923 (linux_wait_1): If the thread was range stepping and stopped
14924 outside the stepping range, report the stop to GDB. Otherwise,
14925 continue stepping. Add range stepping debug output.
14926 (linux_set_resume_request): Copy the step range from the resume
14927 request to the lwp.
14928 (linux_supports_range_stepping): New.
14929 (linux_target_ops) <supports_range_stepping>: Set to
14930 linux_supports_range_stepping.
14931 * linux-low.h (struct linux_target_ops)
14932 <supports_range_stepping>: New field.
14933 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14934 * linux-x86-low.c (x86_supports_range_stepping): New.
14935 (the_low_target) <supports_range_stepping>: Set to
14936 x86_supports_range_stepping.
14937 * server.c (handle_v_cont): Handle 'r' action.
14938 (handle_v_requests): Append ";r" if the target supports range
14939 stepping.
14940 * target.h (struct thread_resume) <step_range_start,
14941 step_range_end>: New fields.
14942 (struct target_ops) <supports_range_stepping>:
14943 New field.
14944 (target_supports_range_stepping): New macro.
14945
58794e1a
JB
149462013-05-17 Joel Brobecker <brobecker@adacore.com>
14947
14948 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14949 confusion in comment.
14950
d631c5a7
JB
149512013-05-17 Joel Brobecker <brobecker@adacore.com>
14952
14953 * lynx-low.c (struct process_info_private): New type.
14954 (lynx_add_process): New function.
14955 (lynx_create_inferior, lynx_attach): Replace calls to
14956 add_process by calls to lynx_add_process.
14957 (lynx_resume): If PTID is null, then try using
14958 current_process()->private->last_wait_event_ptid.
14959 Add comments.
14960 (lynx_clear_inferiors): Delete. The contents of that function
14961 has been inlined in lynx_mourn;
14962 (lynx_wait_1): Save the ptid in the process's private data.
14963 (lynx_mourn): Free the process' private data. Replace call
14964 to lynx_clear_inferiors by call to clear_inferiors.
14965
96f7a20f
YQ
149662013-05-17 Yao Qi <yao@codesourcery.com>
14967
14968 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14969 the right place.
14970
db0dfaa0
LM
149712013-05-16 Luis Machado <lgustavo@codesourcery.com>
14972
14973 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14974 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14975 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14976 PT_TEXT_END_ADDR guards. Update comments.
14977 (linux_target_op) <read_offsets>: Conditionally define to
14978 linux_read_offsets if the target is UCLIBC and if it defines
14979 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14980
68f5f838
SL
149812013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14982 Andrew Jenner <andrew@codesourcery.com>
14983
14984 * Makefile.in (SFILES): Add linux-nios2-low.c.
14985 (clean): Add action to delete nios2-linux.c.
14986 (nios2-linux.c): New rule.
14987 * configure.srv: Add nios2*-*-linux*.
14988 * linux-nios2-low.c: New.
14989
1ebff1fd
HAQ
149902013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14991
14992 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14993
f6150862
HZ
149942013-04-25 Hui Zhu <hui@codesourcery.com>
14995
14996 PR gdb/15186
f6150862
HZ
14997 * ax.c (ax_printf): Add fflush.
14998
614c279d
TT
149992013-04-22 Tom Tromey <tromey@redhat.com>
15000
15001 * Makefile.in (SFILES): Add filestuff.c.
15002 (OBS): Add filestuff.o.
15003 (filestuff.o): New target.
15004 * config.in, configure: Rebuild.
15005 * configure.ac: Check for fdwalk, pipe2.
15006
7d4e5717
PA
150072013-04-17 Pedro Alves <palves@redhat.com>
15008
15009 * configure.ac (USE_THREAD_DB): Delete variable.
15010 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
15011 Don't AC_SUBST USE_THREAD_DB.
15012 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15013 * config.in, configure: Regenerate.
15014
d5c93e41
PA
150152013-04-16 Pedro Alves <palves@redhat.com>
15016
15017 * linux-low.h (struct lwp_info) <thread_known>: Move under
15018 the USE_THREAD_DB #ifdef.
15019
04f5fe89
PA
150202013-04-16 Pedro Alves <palves@redhat.com>
15021
15022 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15023 (linux-low.o): Delete rule.
15024 * linux-low.h: Always include "gdb_thread_db.h" instead of
15025 conditionally including thread_db.h.
15026 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15027 HAVE_THREAD_DB_H.
15028
480b27bf
JK
150292013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15030
15031 * Makefile.in (install-only): Fix make install regression.
15032
43662968
JK
150332013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15034
15035 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15036 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15037 installation.
15038 * gdbserver.1: Remove.
15039
3e74e146
PA
150402013-03-22 Pedro Alves <palves@redhat.com>
15041
15042 * linux-low.c (handle_extended_wait): Don't call
15043 linux_enable_event_reporting.
15044
a8347a2a
TT
150452013-03-15 Tony Theodore <tonyt@logyst.com>
15046
15047 PR build/9098:
15048 * Makefile.in (SHELL): Use @SHELL@.
15049
eeb56fa7
SDJ
150502013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15051
15052 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15053 compiler warning.
15054
4fa7e2ff
JB
150552013-03-13 Joel Brobecker <brobecker@adacore.com>
15056
15057 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15058 Remove extraneous NULL element.
15059
8ddb1965
YQ
150602013-03-13 Yao Qi <yao@codesourcery.com>
15061
15062 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15063 'V' block in trace frame.
15064
9accd112
MM
150652013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15066
15067 * target.h (struct target_ops): Add btrace ops.
15068 (target_supports_btrace): New macro.
15069 (target_enable_btrace): New macro.
15070 (target_disable_btrace): New macro.
15071 (target_read_btrace): New macro.
15072 * gdbthread.h (struct thread_info): Add btrace field.
15073 * server.c: Include btrace-common.h.
15074 (handle_btrace_general_set): New function.
15075 (handle_btrace_enable): New function.
15076 (handle_btrace_disable): New function.
15077 (handle_general_set): Call handle_btrace_general_set.
15078 (handle_qxfer_btrace): New function.
15079 (struct qxfer qxfer_packets[]): Add btrace entry.
15080 * inferiors.c (remove_thread): Disable btrace.
15081 * linux-low: Include linux-btrace.h.
15082 (linux_low_enable_btrace): New function.
15083 (linux_low_read_btrace): New function.
15084 (linux_target_ops): Add btrace ops.
15085 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15086 Add srv_linux_btrace=yes.
15087 (x86_64-*-linux*): Add linux-btrace.o.
15088 Add srv_linux_btrace=yes.
15089 * configure.ac: Define HAVE_LINUX_BTRACE.
15090 * config.in: Regenerated.
15091 * configure: Regenerated.
15092
5cc22e4c
MM
150932013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15094
15095 * server.c (handle_qxfer): Preserve error message if -3 is
15096 returned.
15097 (qxfer): Document the -3 return value.
15098
7c97f91e
MM
150992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15100
15101 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15102 (linux_btrace_h): New variable.
15103 (linux-btrace.o): New rule.
15104
be9a119c 151052013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
15106 Hafiz Abid Qadeer <abidh@codesourcery.com>
15107
15108 * tracepoint.c (trace_buffer_size): New global.
15109 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15110 (init_trace_buffer): Change to one-argument function. Allocate
15111 trace buffer memory.
15112 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15113 handle QTBuffer:size packet.
15114 (cmd_bigqtbuffer_size): New function.
15115 (initialize_tracepoint): Call init_trace_buffer with
15116 DEFAULT_TRACE_BUFFER_SIZE.
15117 * server.c (handle_query): Add QTBuffer:size in the
15118 supported packets.
15119
e64f7499
YQ
151202013-03-07 Yao Qi <yao@codesourcery.com>
15121
15122 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15123 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15124 of -1.
15125 (cmd_qtsp): Adjust condition. Do post increment.
15126 Set cur_action and cur_step_action back to 0.
15127
f0ae6fc3
PA
151282013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15129
15130 PR server/15236
15131 * linux-low.c (linux_write_memory): Return early success if LEN is
15132 zero.
15133
b5b0b0af
CV
151342013-03-05 Corinna Vinschen <vinschen@redhat.de>
15135
334ad4a8 15136 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 15137
589bc927
TT
151382013-02-28 Tom Tromey <tromey@redhat.com>
15139
15140 * configure.ac: Invoke AC_SYS_LARGEFILE.
15141 * configure, config.in: Rebuild.
15142
dfe07582
CV
151432013-02-28 Corinna Vinschen <vinschen@redhat.com>
15144
15145 * win32-low.c: Throughout, fix format strings and casts of
15146 printf-like functions to avoid type related warnings on all
15147 platforms.
15148 (get_child_debug_event): Print dwDebugEventCode as hex since
15149 that's how it's usually documented.
15150
736cd585
YQ
151512013-02-28 Yao Qi <yao@codesourcery.com>
15152
15153 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15154 pulongest.
15155
e1f58301
JW
151562013-02-27 Jiong Wang <jiwang@tilera.com>
15157
15158 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15159 (reg-tilegx32.c): New rule.
15160 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15161 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15162 different register info initializer according to elf class.
15163 (init_registers_tilgx32): New function. The tilegx32 register info
15164 initializer.
15165 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15166 (tile_store_gregset): Likewise.
15167
d171ca78
YQ
151682013-02-27 Yao Qi <yao@codesourcery.com>
15169
15170 * server.c (process_point_options): Print debug message when
15171 debug_threads is true.
15172
282bbdf3
YQ
151732013-02-26 Yao Qi <yao@codesourcery.com>
15174
15175 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15176
aca22551
PA
151772013-02-19 Pedro Alves <palves@redhat.com>
15178 Kai Tietz <ktietz@redhat.com>
15179
15180 PR gdb/15161
15181
15182 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15183 instead of strtoul to extract address from packet.
15184 (process_serial_event) <'z'>: Likewise.
15185
4f3cee1c
YQ
151862013-02-18 Yao Qi <yao@codesourcery.com>
15187
15188 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15189
8e1d55a3
PA
151902013-02-14 Pedro Alves <palves@redhat.com>
15191
15192 Plug memory leak.
15193
15194 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15195 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15196
458820da
PA
151972013-02-14 Pedro Alves <palves@redhat.com>
15198
15199 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15200
baea0dae
PA
152012013-02-14 Pedro Alves <palves@redhat.com>
15202
15203 * tracepoint.c (save_string): Delete.
15204 (add_tracepoint_action): Use savestring instead of save_string.
15205
0b1afbb3
PA
152062013-02-12 Pedro Alves <palves@redhat.com>
15207
15208 * linux-xtensa-low.c: Ditto.
15209 * xtensa-xtregs.c: Ditto.
15210
8a4ac37e
PA
152112013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15212
15213 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15214 thread_db.
15215
148de6bb
MS
152162013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15217
15218 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15219 aarch64_num_wp_regs and aarch64_num_bp_regs to
15220 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15221
55fac6e0
MS
152222013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15223
15224 * linux-aarch64-low.c (ps_get_thread_area): Replace
15225 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15226
176eb98c
MS
152272013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15228 Marcus Shawcroft <marcus.shawcroft@arm.com>
15229 Nigel Stephens <nigel.stephens@arm.com>
15230 Yufeng Zhang <yufeng.zhang@arm.com>
15231
15232 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15233 (aarch64.c, aarch64-without-fpu.c): New targets.
15234 * configure.srv (aarch64*-*-linux*): New.
15235 * linux-aarch64-low.c: New file.
15236
56f7af9c
MS
152372013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15238
43aaf8b6 15239 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
15240 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15241 (dequeue_one_deferred_signal, linux_resume_one_thread)
15242 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15243 (linux_tracefork_grandchild, linux_test_for_tracefork)
15244 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15245 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15246 where the argument is 0.
15247
60f662b0
YQ
152482013-01-25 Yao Qi <yao@codesourcery.com>
15249
15250 * event-loop.c: Include "queue.h".
15251 (gdb_event_p): New typedef.
15252 (struct gdb_event) <next_event>: Remove.
15253 (event_queue): Change to QUEUE(gdb_event_p).
15254 (async_queue_event): Remove.
15255 (gdb_event_xfree): New.
15256 (initialize_event_loop): New.
15257 (process_event): Use API from QUEUE.
15258 (wait_for_event): Likewise.
15259 * server.c (main): Call initialize_event_loop.
15260 * server.h (initialize_event_loop): Declare.
15261
5ae4861a
YQ
152622013-01-18 Yao Qi <yao@codesourcery.com>
15263
15264 * ax.h (struct eval_agent_expr_context): New.
15265 (gdb_eval_agent_expr): Update declaration.
15266 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15267 TFRAME. Add new argument CTX.
15268 * server.h (struct eval_agent_expr_context): Declare.
15269 (agent_mem_read, agent_tsv_read): Update declaration.
15270 (agent_mem_read_string): Likewise.
15271 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15272 (add_traceframe_block): Add new argument TPOINT.
15273 Increase TPOINT->traceframe_usage.
15274 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15275 eval_tracepoint_agent_expr.
15276 (condition_true_at_tracepoint): Likewise.
15277 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15278 (agent_mem_read_string, agent_tsv_read): Likewise.
15279
85e00e85
YQ
152802013-01-16 Yao Qi <yao@codesourcery.com>
15281
15282 * linux-low.c (linux_resume_one_lwp): Don't check
15283 'lwp->bp_reinsert != 0'.
15284
4039cf45
JB
152852013-01-07 Joel Brobecker <brobecker@adacore.com>
15286 Pedro Alves <palves@redhat.com>
15287
15288 * lynx-low.c (ptrace_request_to_str): Define a temporary
15289 macro and use it to simplify this function's implementation.
15290
9044dee2
JB
152912013-01-07 Joel Brobecker <brobecker@adacore.com>
15292
15293 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15294 sets errno.
15295
e6352c8f
JB
152962013-01-07 Joel Brobecker <brobecker@adacore.com>
15297
15298 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15299
50681a27
JB
153002013-01-07 Joel Brobecker <brobecker@adacore.com>
15301
15302 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15303
3f6e77ef
JB
153042013-01-07 Joel Brobecker <brobecker@adacore.com>
15305
15306 * lynx-low.c (lynx_resume): Use the resume_info parameter
15307 to determine the ptid for the lynx_ptrace call, unless
15308 it is equal to minus_one_ptid, in which case we use the
15309 ptid of the current_inferior.
15310 (lynx_wait_1): After having received a thread create/exit
15311 event, resume the inferior's execution using the signaling
15312 thread's ptid, rather than the old ptid.
15313
7fda33ae
JB
153142013-01-07 Joel Brobecker <brobecker@adacore.com>
15315
15316 * lynx-low.c (lynx_resume): Delete variable ret.
15317
b9786c74
JB
153182013-01-01 Joel Brobecker <brobecker@adacore.com>
15319
15320 * gdbreplay.c (gdbreplay_version): Update copyright year.
15321 * server.c (gdbserver_version): Likewise.
15322
8b93d60f
JB
153232012-12-17 Joel Brobecker <brobecker@adacore.com>
15324
15325 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15326 new thread.
15327
037335a7
JB
153282012-12-17 Joel Brobecker <brobecker@adacore.com>
15329
15330 * lynx-low.c (ptrace_request_to_str): Add handling for
15331 PTRACE_GETTRACESIG.
15332
52d4cbd8
JB
153332012-12-17 Joel Brobecker <brobecker@adacore.com>
15334
15335 * lynx-low.c (lynx_attach): Delete variable new_process.
15336
ab8f6ca9
JB
153372012-12-17 Joel Brobecker <brobecker@adacore.com>
15338
15339 * lynx-low.c (lynx_create_inferior): Delete variable
15340 new_process.
15341
78cbc024
JB
153422012-12-17 Joel Brobecker <brobecker@adacore.com>
15343
15344 * lynx-low.c (ptrace_request_to_str): Do not handle
15345 PTRACE_GETTHREADLIST if this macro does not exist.
15346
14a00470
YQ
153472012-12-15 Yao Qi <yao@codesourcery.com>
15348
15349 * Makefile.in (OBS): Add notif.o.
15350 * notif.c, notif.h: New.
15351 * server.c: Include "notif.h".
15352 (struct vstop_notif) <next>: Remove.
15353 <base>: New field.
15354 (queue_stop_reply): Update.
15355 (push_event, send_next_stop_reply): Remove.
15356 (discard_queued_stop_replies): Update.
15357 (notif_stop): New variable.
15358 (handle_v_stopped): Remove.
15359 (handle_v_requests): Don't call handle_v_stopped. Call
15360 handle_ack_notif instead.
15361 (queue_stop_reply_callback): Call notif_event_enque instead
15362 of queue_stop_reply.
15363 (handle_status): Don't call send_next_stop_reply, call
15364 notif_write_event instead.
15365 (kill_inferior_callback): Likewise.
15366 (detach_or_kill_inferior_callback): Likewise.
15367 (main): Call initialize_notif.
15368 (process_serial_event): Call QUEUE_is_empty.
15369 (handle_target_event): Call notif_push instead of push event.
15370 * server.h (push_event): Remove declaration.
15371
61c125b9
TT
153722012-12-10 Tom Tromey <tromey@redhat.com>
15373
15374 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15375 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15376 macros.
15377 (.c.o): Rewrite.
15378 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15379 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15380 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15381 (amd64-linux-ipa.o, ax.o): Rewrite.
15382 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15383 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15384 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15385 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15386 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15387 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15388 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15389 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15390 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15391 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15392 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15393 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15394 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15395 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15396 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15397 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15398 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15399 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15400 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15401 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15402 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15403 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15404 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15405 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15406 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15407 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15408 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15409 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15410 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15411 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15412 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15413 (reg-tilegx.o): Remove.
15414 (all_object_files): New macro.
15415 Include .deps files.
15416 * aclocal.m4, configure: Rebuild.
15417 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15418 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15419 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15420
e90e9ad9
TT
154212012-12-05 Tom Tromey <tromey@redhat.com>
15422
15423 PR gdb/14917:
15424 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15425
02d403bf 154262012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15427
15428 * configure.ac: Check for linux/perf_event.h.
15429 * config.in: Regenerated.
15430 * configure: Regenerated.
15431
0270a750
PA
154322012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15433
15434 * hostio.c (handle_readlink): Decrease buffer size
15435 parameter passed to readlink by one byte.
15436
8c29b58e
YQ
154372012-11-26 Yao Qi <yao@codesourcery.com>
15438
15439 * configure.ac (build_warnings): Append '-Wempty-body'.
15440 * configure: Regenerated.
15441 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15442 body.
15443
8bdce1ff
PM
154442012-11-15 Pierre Muller <muller@sourceware.org>
15445
15446 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15447 * config.in: Regenerate.
15448 * configure: Regenerate.
15449 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15450 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15451 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15452 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15453 header.
15454 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15455 instead of <sys/wait.h> header.
15456 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15457
02d403bf 154582012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15459
15460 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15461 (various make rules): Remove -DGDBSERVER
15462
fbd5db48
YQ
154632012-11-09 Yao Qi <yao@codesourcery.com>
15464
15465 * spu-low.c (current_ptid): Move it to ..
15466 * gdbthread.h: ... here. New.
15467 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15468 * server.c (myresume, process_serial_event): Likewise.
15469 * thread-db.c (thread_db_find_new_threads): Likewise.
15470 * tracepoint.c (run_inferior_command): Likewise.
15471
b3dc46ff
AB
154722012-10-01 Andrew Burgess <aburgess@broadcom.com>
15473
15474 * server.c (handle_search_memory_1): Include access length in
15475 warning message.
15476
07c04788
HPN
154772012-09-05 Michael Brandt <michael.brandt@axis.com>
15478
15479 * linux-crisv32-low.c: Fix compile errors.
15480
918d227b
YQ
154812012-09-04 Yao Qi <yao@codesourcery.com>
15482
15483 * tracepoint.c (cmd_qtsv): Adjust debug message.
15484 Don't check CUR_TPOINT.
15485
18c1b81a
YQ
154862012-08-28 Yao Qi <yao@codesourcery.com>
15487
15488 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15489 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15490 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15491 Remove declarations of xmalloc, xreallloc, xstrdup and
15492 freeargv.
15493 * Makefile.in (libiberty_h): New.
15494 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15495 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15496
dc82f37b
YQ
154972012-08-23 Yao Qi <yao@codesourcery.com>
15498
15499 * server.h: Remove declaration of 'xsnprintf'.
15500
406b1477
KS
155012012-08-22 Keith Seitz <keiths@redhat.com>
15502
15503 * server.h: Include build-gnulib-gbserver/config.h.
15504 * gdbreplay.c: Likewise.
15505
e6712ff1
DE
155062012-08-08 Doug Evans <dje@google.com>
15507
15508 * Makefile.in (SFILES): Add gdb_vecs.c.
15509 (OBS): Add gdb_vecs.o.
15510 (gdb_vecs_h, host_defs_h): New variables.
15511 (thread-db.o): Add $(gdb_vecs_h) dependency.
15512 (gdb_vecs.o): New rule.
15513 * thread-db.c: #include "gdb_vecs.h".
15514 (thread_db_load_search): Use a vector to iterate over path elements.
15515 Handle text appearing after "$pdir".
15516
15517 * configure.ac: Add check for strstr.
15518 * config.in: Regenerate.
15519 * configure: Regenerate.
15520
7c3270ae
UW
155212012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15522
15523 * hostio.c (handle_pread): If pread fails, fall back to attempting
15524 lseek/read.
15525 (handle_pwrite): Likewise for pwrite.
15526
b62e2b27
UW
155272012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15528
15529 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15530 between unsupported TYPE and unimplementable ADDR/LEN combination.
15531 (arm_insert_point): Act on new return value.
15532
78a99e91
PA
155332012-07-31 Pedro Alves <palves@redhat.com>
15534
15535 * server.c (process_point_options): Only skip tokens if we find
15536 one that is unrecognized. Don't treat 'X' specially while
15537 skipping unrecognized tokens.
15538
fcf303ab
UW
155392012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15540
15541 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15542 to 4-byte-align HW breakpoint addresses for Thumb.
15543
7255706c
YQ
155442012-07-27 Yao Qi <yao@codesourcery.com>
15545
15546 PR remote/14161.
15547
15548 * server.h: Declare gdb_agent_about_to_close.
15549 * target.c (kill_inferior): Include "agent.h".
15550 New. Send command 'kill'.
15551 * target.h (kill_inferior): Removed macro.
15552 * tracepoint.c (gdb_agent_about_to_close): New.
15553 (gdb_agent_helper_thread): Handle command 'close'.
15554 Wait endlessly until the inferior stops.
15555 Install gdb_agent_remove_socket to atexit hook.
15556 (agent_socket_name): New static variable.
15557 (gdb_agent_socket_init): Replace local variable 'name' with
15558 'agent_socket_name'.
15559 (gdb_agent_remove_socket): New.
15560
5a3f286f
YQ
155612012-07-27 Yao Qi <yao@codesourcery.com>
15562
15563 * server.c (process_point_options): Stop at 'X' when parsing.
15564
961bd387
ME
155652012-07-19 Michael Eager <eager@eagercon.com>
15566
a261b8f5 15567 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15568 to hw_execute.
15569 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15570 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15571 hardware breakpoint.
15572
aa7c7447
JK
155732012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15574
15575 * gdbserver/linux-low.c (initialize_low): Call
15576 linux_ptrace_init_warnings.
15577
7f216e7c
DE
155782012-07-02 Doug Evans <dje@google.com>
15579
15580 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15581 pointer to int.
15582
d3ce09f5
SS
155832012-07-02 Stan Shebs <stan@codesourcery.com>
15584
15585 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15586 (ax.o): Add it to build rule.
15587 (ax-ipa.o): Ditto.
15588 (OBS): Add format.o.
15589 (IPA_OBS): Add format.o.
15590 * server.c (handle_query): Claim support for breakpoint commands.
15591 (process_point_options): Add command case.
15592 (process_serial_event): Leave running if there are printfs in
15593 effect.
15594 * mem-break.h (any_persistent_commands): Declare.
15595 (add_breakpoint_commands): Declare.
15596 (gdb_no_commands_at_breakpoint): Declare.
15597 (run_breakpoint_commands): Declare.
15598 * mem-break.c (struct point_command_list): New struct.
15599 (struct breakpoint): New field command_list.
15600 (any_persistent_commands): New function.
15601 (add_commands_to_breakpoint): New function.
15602 (add_breakpoint_commands): New function.
15603 (gdb_no_commands_at_breakpoint): New function.
15604 (run_breakpoint_commands): New function.
15605 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15606 locally.
15607 * ax.c: Include format.h.
15608 (ax_printf): New function.
15609 (gdb_eval_agent_expr): Add printf opcode.
15610
2f8f6aed
YQ
156112012-06-13 Yao Qi <yao@codesourcery.com>
15612
15613 * server.c (start_inferior): Remove duplicated writes to fields
15614 'last_resume_kind' and 'last_status' of 'current_inferior'.
15615
0c9070b3
YQ
156162012-06-12 Yao Qi <yao@codesourcery.com>
15617 Pedro Alves <palves@redhat.com>
15618
15619 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15620 comment.
15621 * server.c (handle_v_cont): Extend comment.
15622
c52daf70
YQ
156232012-06-11 Yao Qi <yao@codesourcery.com>
15624
15625 * linux-low.c (linux_attach): Add 'static'.
15626
d38bbb0a
YQ
156272012-06-06 Yao Qi <yao@codesourcery.com>
15628
15629 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15630
89dc0afd
JK
156312012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15632
15633 Fix gcc -flto compilation warning.
15634 * server.c (main): Make variable multi_mode and attach volatile.
15635
75f62ce7
TJB
156362012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15637
15638 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15639 if the platform doesn't know about it.
15640
65f479b6
PA
156412012-05-30 Jeff Kenton <jkenton@tilera.com>
15642
15643 * Makefile.in (SFILES): Add linux-tile-low.c.
15644 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15645 * configure.srv: Handle tilegx-*-linux*.
15646 * linux-tile-low.c: New file.
15647
0c5bf5a9
JK
156482012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15649
15650 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15651
a493e3e2
PA
156522012-05-24 Pedro Alves <palves@redhat.com>
15653
15654 PR gdb/7205
15655
43aaf8b6 15656 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15657
2ea28649
PA
156582012-05-24 Pedro Alves <palves@redhat.com>
15659
15660 PR gdb/7205
15661
15662 Replace target_signal with gdb_signal throughout.
15663
8d409d16
MR
156642012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15665
15666 * linux-low.c (linux_store_registers): Avoid the copying sequence
15667 when no data has been retrieved by ptrace.
15668
23512c01
MGD
156692012-05-22 Will Deacon <will.deacon@arm.com>
15670
15671 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15672 Include asm/ptrace.h.
15673 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15674 already defined.
15675
4934b29e
MR
156762012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15677
15678 * linux-low.c (linux_store_registers): Don't re-retrieve data
15679 with ptrace that has already been obtained from /proc. Always
15680 copy any data retrieved with ptrace to the buffer supplied.
15681
bde24c0a
PA
156822012-05-11 Yao Qi <yao@codesourcery.com>
15683 Pedro Alves <palves@redhat.com>
15684
15685 * linux-low.c (enum stopping_threads_kind): New.
15686 (stopping_threads): Change type to `enum stopping_threads_kind'.
15687 (handle_extended_wait): If stopping and suspending threads, leave
15688 the new_lwp suspended too.
15689 (linux_wait_for_event): Adjust.
15690 (stop_all_lwps): Set `stopping_threads' to
15691 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15692 whether we're suspending threads or just stopping them. Assert no
15693 recursion happens.
15694
623b6bdf
YQ
156952012-04-29 Yao Qi <yao@codesourcery.com>
15696
15697 * server.h: Move some code to ...
15698 * gdbthread.h: ... here. New.
15699 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15700 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15701 (nto-low.o, win32-low.o): Likewise.
15702 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15703 * regcache.c, remote-utils.c, server.c: Likewise.
15704 * target.c, tracepoint.c, win32-low.c: Likewise.
15705
f15f9948
TJB
157062012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15707
15708 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15709 (PTRACE_ARG4_TYPE): Likewise.
15710 (PTRACE_XFER_TYPE): Likewise.
15711 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15712 ptrace to PTRACE_ARG3_TYPE.
15713 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15714 (PTRACE_ARG4_TYPE): Likewise.
15715 (PTRACE_XFER_TYPE): Likewise.
15716 (linux_detach_one_lwp): Cast fourth argument of
15717 ptrace to long then PTRACE_ARG4_TYPE.
15718 (regsets_fetch_inferior_registers): Cast third argument of
15719 ptrace to long then PTRACE_ARG3_TYPE.
15720 (regsets_store_inferior_registers): Likewise.
15721
38ea300a
PA
157222012-04-20 Pedro Alves <palves@redhat.com>
15723
15724 * configure: Regenerate.
15725
c971b7fa
PA
157262012-04-19 Pedro Alves <palves@redhat.com>
15727
43aaf8b6 15728 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15729 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15730 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15731 (all, install-only, uninstall, clean-info, all-lib, clean): No
15732 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15733 (maintainer-clean realclean distclean): Use subdir_do.
15734 (subdir_do): New.
15735 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15736 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15737 * acinclude.m4: Include acx_configure_dir.m4.
15738 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15739 calls. Call AC_PROG_RANLIB. Configure gnulib using
15740 ACX_CONFIGURE_DIR.
15741 (GNULIB): New.
15742 (GNULIB_STDINT_H): Adjust.
15743 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15744 * gdbreplay.c: Include build-gnulib/config.h.
15745 * server.h: Likewise.
15746 * aclocal.m4: Regenerate.
15747 * config.in: Regenerate.
15748 * configure: Regenerate.
c971b7fa 15749
809277f8
PA
157502012-04-19 Pedro Alves <palves@redhat.com>
15751
15752 * Makefile.in (LIBGNU, INCGNU): Adjust.
15753 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15754 (all, install-only, uninstall, clean-info, all-lib, clean)
15755 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15756 * configure.ac: Adjust AC_OUTPUT output.
15757 * aclocal.m4: Regenerate.
15758 * configure: Regenerate.
15759
fd9bb8b8
PA
157602012-04-19 Pedro Alves <palves@redhat.com>
15761
15762 * Makefile.in (generated_files): New.
15763 (server_h): Remove the explicit dependency on config.h, and depend
15764 on $generated_files.
15765
1c298c66
PA
157662012-04-19 Pedro Alves <palves@redhat.com>
15767
15768 * Makefile.in (INCGNU): Add -Ignulib.
15769
57c4b50b
PA
157702012-04-19 Pedro Alves <palves@redhat.com>
15771
15772 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15773 (INCGNU): ... this, and spell out -I here.
15774 (GNULIB_LIB): Rename to ...
15775 (LIBGNU): ... this.
15776 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15777
1030e047
PA
157782012-04-19 Pedro Alves <palves@redhat.com>
15779
15780 * config.in: Regenerate.
15781
447d4319
PA
157822012-04-19 Pedro Alves <palves@redhat.com>
15783
15784 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15785 * server.h (memmem): Remove declaration.
15786 * config.in: Regenerate.
15787 * configure: Regenerate.
15788
aad9eab9
YQ
157892012-04-19 Yao Qi <yao@codesourcery.com>
15790
15791 * Makefile.in (SFILES): Add common/vec.c.
15792 (OBS): Add vec.o.
15793 (vec.o): New rule.
15794
3e10640f
YQ
157952012-04-19 Yao Qi <yao@codesourcery.com>
15796
15797 * remote-utils.c (prepare_resume_reply): Replace with macro
15798 target_core_of_thread.
15799 * server.c (handle_qxfer_threads_proper): Likewise.
15800 * target.h (traget_core_of_thread): New macro.
15801
71622373
PA
158022012-04-18 Pedro Alves <palves@redhat.com>
15803
15804 * aclocal.m4: Regenerate.
15805 * configure: Regenerate.
15806
80d26939
YQ
158072012-04-16 Yao Qi <yao@codesourcery.com>
15808
15809 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15810 duplicated on address.
15811
42476b70
YQ
158122012-04-16 Yao Qi <yao@codesourcery.com>
15813
15814 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15815 (struct tracepoint_action_ops) <send>: New field.
15816 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15817 (agent_expr_send, x_tracepoint_action_send): New.
15818 (l_tracepoint_action_send): New.
15819 (cmd_qtdp): Download and install tracepoint
15820 according to `use_agent'.
15821 (run_inferior_command): Add one more parameter `len'.
15822 Update callers.
15823 (tracepoint_send_agent): New.
15824 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15825
7bc83639
YQ
158262012-04-16 Yao Qi <yao@codesourcery.com>
15827
15828 * tracepoint.c (download_tracepoints): Moved to ...
15829 (cmd_qtstart): ... here.
15830
5f18041e
YQ
158312012-04-14 Yao Qi <yao@codesourcery.com>
15832
15833 * tracepoint.c: Include inttypes.h.
15834 (struct collect_memory_action): Use sized types.
15835 (struct tracepoint): Likewise.
15836 (cmd_qtdp, stop_tracing): Update print specifiers.
15837 (cmd_qtp, response_tracepoint): Likewise.
15838 (collect_data_at_tracepoint): Likewise.
15839 (collect_data_at_step): Likewise.
15840
55a8c076
YQ
158412012-04-14 Yao Qi <yao@codesourcery.com>
15842
15843 Import gnulib module inttypes.
15844 * aclocal.m4, config.in, configure: Regenerated.
15845
dc750257
YQ
158462012-04-14 Yao Qi <yao@codesourcery.com>
15847
15848 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15849 Makefile and config.status at last.
15850
0ab5faf9
YQ
158512012-04-13 Yao Qi <yao@codesourcery.com>
15852
15853 * tracepoint.c: Include stdint.h unconditionally.
15854
18f5fd81
TJB
158552012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15856
15857 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15858 on BFD_HAVE_SYS_PROCFS_TYPE.
15859 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15860 * configure: Regenerate.
15861 * config.in: Likewise.
15862
4d47af5c
L
158632012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15864
15865 * Makefile.in (clean): Also remove x32.c x32-linux.c
15866 x32-avx.c x32-avx-linux.c.
15867 (x32.o): New target.
15868 (x32.c): Likewise.
15869 (x32-linux.o): Likewise.
15870 (x32-linux.c): Likewise.
15871 (x32-avx.o): Likewise.
15872 (x32-avx.c): Likewise.
15873 (x32-avx-linux.o): Likewise.
15874 (x32-avx-linux.c): Likewise.
15875
15876 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15877 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15878 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15879 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15880 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15881 i386/x32-avx-linux.xml.
15882
15883 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15884 (init_registers_x32_avx_linux): Likwise.
15885 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15886 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15887
ecedbe58
PA
158882012-04-13 Pedro Alves <palves@redhat.com>
15889
15890 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15891 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15892 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15893 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15894 the sub-make.
15895
c92b5177
L
158962012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15897
15898 * linux-x86-low.c (compat_x32_clock_t): New.
15899 (compat_x32_siginfo_t): Likewise.
15900 (compat_x32_siginfo_from_siginfo): Likewise.
15901 (siginfo_from_compat_x32_siginfo): Likewise.
15902 (linux_is_elf64): Likewise.
15903 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15904 and siginfo_from_compat_x32_siginfo for x32.
15905 (x86_arch_setup): Set linux_is_elf64.
15906
214d508e
L
159072012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15908
15909 PR gdb/13969
15910 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15911 e_machine field.
15912 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15913 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15914 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15915 compatible with process.
15916
c9a1864a
YQ
159172012-04-12 Yao Qi <yao@codesourcery.com>
15918
15919 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15920 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15921 (install-only, install-info, clean): Handle sub dir gnulib.
15922 (all-lib, am--refresh): New targets.
15923 (memmem.o): Remove target.
15924 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15925 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15926 (AC_REPLACE_FUNCS): Remove memmem.
15927 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15928 (AC_OUTPUT): Generate Makefile in gnulib/.
15929 * aclocal.m4, config.in, configure: Regenerated.
15930
367ba2c2
MR
159312012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15932
15933 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15934
9d236627
PA
159352012-04-05 Pedro Alves <palves@redhat.com>
15936
15937 -Werror=strict-aliasing
15938
15939 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15940 pointer.
15941
111217b3
PA
159422012-04-04 Pedro Alves <palves@redhat.com>
15943
15944 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15945 (sparc_store_gregset_from_stack, sparc_store_gregset)
15946 (sparc_breakpoint_at): Fix formatting.
15947
8365dcf5
TJB
159482012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15949
15950 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15951 are available.
15952 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15953 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15954 * config.in: Regenerate.
15955 * configure: Likewise.
15956
689cc2ae
PA
159572012-03-29 Pedro Alves <palves@redhat.com>
15958
15959 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15960 Correct ptrace arguments.
15961
c14dfd32
PA
159622012-03-28 Pedro Alves <palves@redhat.com>
15963
15964 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15965 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15966 (IA64_FR1_REGNUM): New defines.
15967 (ia64_fetch_register): New.
15968 (the_low_target): Install it.
15969 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15970 field.
15971 * linux-low.c (linux_fetch_registers): Try the
15972 the_low_target.fetch_register hook first.
15973
15974 * linux-arm-low.c (the_low_target): Adjust.
15975 * linux-bfin-low.c (the_low_target): Adjust.
15976 * linux-cris-low.c (the_low_target): Adjust.
15977 * linux-crisv32-low.c (the_low_target): Adjust.
15978 * linux-m32r-low.c (the_low_target): Adjust.
15979 * linux-m68k-low.c (the_low_target): Adjust.
15980 * linux-mips-low.c (the_low_target): Adjust.
15981 * linux-ppc-low.c (the_low_target): Adjust.
15982 * linux-s390-low.c (the_low_target): Adjust.
15983 * linux-sh-low.c (the_low_target): Adjust.
15984 * linux-sparc-low.c (the_low_target): Adjust.
15985 * linux-tic6x-low.c (the_low_target): Adjust.
15986 * linux-x86-low.c (the_low_target): Adjust.
15987 * linux-xtensa-low.c (the_low_target): Adjust.
15988
63c88e13
PA
159892012-03-26 Pedro Alves <palves@redhat.com>
15990
15991 * server.c (handle_qxfer_libraries): Don't bail early if
15992 the_target->qxfer_libraries_svr4 is not NULL.
15993
fb723180
PA
159942012-03-26 Pedro Alves <palves@redhat.com>
15995
15996 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15997
0afae3cf
PA
159982012-03-23 Pedro Alves <palves@redhat.com>
15999
16000 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
16001 "library-list-svr4" element's start tag when the the DSO list is
16002 empty.
16003
485f1ee4
PA
160042012-03-23 Pedro Alves <palves@redhat.com>
16005
16006 * linux-low.c (read_one_ptr): Read the inferior's pointer through
16007 a variable whose type size is the same as the inferior's pointer
16008 size.
16009
a5362b9a
TS
160102012-03-21 Thomas Schwinge <thomas@codesourcery.com>
16011
16012 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16013 struct siginfo.
16014 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16015 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16016 * linux-low.h: Include <signal.h>.
16017 (struct siginfo): Remove forward declaration.
16018 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16019 struct siginfo.
16020
d226c142
MF
160212012-03-21 Mike Frysinger <vapier@gentoo.org>
16022
16023 * .gitignore: Ignore more files.
16024
122f36ef
PA
160252012-03-19 Pedro Alves <palves@redhat.com>
16026 Jan Kratochvil <jan.kratochvil@redhat.com>
16027
16028 * server.c (cont_thread, general_thread): Add describing comments.
16029 (start_inferior): Clear `cont_thread'.
16030 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16031 of a process.
16032
fc3e5175
YQ
160332012-03-15 Yao Qi <yao@codesourcery.com>
16034
16035 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16036 handling to ...
16037 (cmd_qtdp): ... here.
16038
8d0d92cd
YQ
160392012-03-15 Yao Qi <yao@codesourcery.com>
16040
16041 * tracepoint.c (struct tracepoint_action_ops): New.
16042 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16043 (m_tracepoint_action_download): New.
16044 (r_tracepoint_action_download): New.
16045 (x_tracepoint_action_download): New.
16046 (l_tracepoint_action_download): New.
16047 (add_tracepoint_action): Install `action->ops' according type.
16048 (download_tracepoint_1): Move code `download' function pointer
16049 of various tracepoint_action_ops.
16050
87b0bb13
JK
160512012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16052
16053 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16054 linux_ptrace_attach_warnings.
16055
5f572dec
JK
160562012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16057
16058 * Makefile.in (linux-ptrace.o): New.
16059 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16060 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16061 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16062 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16063 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16064 of these targets.
16065 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16066
f4647387
YQ
160672012-03-08 Yao Qi <yao@codesourcery.com>
16068 Pedro Alves <palves@redhat.com>
16069
16070 Fix PR server/13392.
16071 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16072 offset of JMP insn.
16073 * tracepoint.c (remove_tracepoint): New.
16074 (cmd_qtdp): Call remove_tracepoint when failed to install.
16075
9b224c5e
PA
160762012-03-07 Pedro Alves <palves@redhat.com>
16077
16078 * linux-low.c (get_detach_signal): New.
16079 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16080 Pass on pending signals to PTRACE_DETACH. Check the result of the
16081 ptrace call.
16082 * server.c (program_signals, program_signals_p): New.
16083 (handle_general_set): Handle QProgramSignals.
16084 * server.h (program_signals, program_signals_p): Declare.
16085
e237a7e2
JK
160862012-03-05 Pedro Alves <palves@redhat.com>
16087 Jan Kratochvil <jan.kratochvil@redhat.com>
16088
16089 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16090 New comment why.
16091
5808517f
YQ
160922012-03-03 Yao Qi <yao@codesourcery.com>
16093
16094 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16095 agent_look_up_symbols.
16096
58b4daa5
YQ
160972012-03-03 Yao Qi <yao@codesourcery.com>
16098
16099 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16100 (linux-x86-low.o): Likewise.
16101 * server.h: Remove in_process_agent_loaded.
16102 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16103 common/agent.c.
16104 Update callers.
16105
8ffcbaaf
YQ
161062012-03-03 Yao Qi <yao@codesourcery.com>
16107
16108 * tracepoint.c (gdb_agent_capability): New global.
16109 (in_process_agent_loaded_ust): Renamed to
16110 `in_process_agent_supports_ust'.
16111 Update callers.
16112 (in_process_agent_supports_ust): Call agent_capability_check.
16113 (clear_installed_tracepoints): Assert that agent supports
16114 agent.
16115
d1feda86
YQ
161162012-03-03 Yao Qi <yao@codesourcery.com>
16117
16118 * linux-low.c (linux_supports_agent): New.
16119 (linux_target_ops): Initialize field `supports_agent' with
16120 linux_supports_agent.
16121 * target.h (struct target_ops) <supports_agent>: New.
16122 (target_supports_agent): New macro.
16123 * server.c (handle_general_set): Handle packet 'QAgent'.
16124 (handle_query): Send `QAgent+'.
16125 * Makefile.in (server.o): Depends on agent.h.
16126
2fa291ac
YQ
161272012-03-03 Yao Qi <yao@codesourcery.com>
16128
16129 * Makefile.in (OBS): Add agent.o.
16130 Add new rule for agent.o.
16131 Track dependence of tracepoint.c on agent.h.
16132 * tracepoint.c (run_inferior_command_1):
16133 (run_inferior_command): Call agent_run_command.
16134 (gdb_ust_connect_sync_socket): Deleted. Move it to
16135 common/agent.c.
16136 (resume_thread, stop_thread): Likewise.
16137 (gdb_ust_socket_init): Renamed to ...
16138 (gdb_agent_socket_init): ... New.
16139 (gdb_ust_thread): Renamed to ...
16140 (gdb_agent_helper_thread): ... New.
16141 (gdb_ust_init): Move some code to ...
16142 (gdb_agent_init): ... here. New.
16143 [HAVE_UST]: Call gdb_ust_init.
16144 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16145 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16146 * config.in, configure: Regenerated.
16147
05044653
PA
161482012-03-02 Pedro Alves <palves@redhat.com>
16149
16150 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16151 * linux-low.c (struct simple_pid_list): New.
16152 (stopped_pids): New a struct simple_pid_list pointer.
16153 (add_to_pid_list, pull_pid_from_list): New.
16154 (handle_extended_wait): Don't assume the first signal new children
16155 report is SIGSTOP. Adjust call to pull_pid_from_list.
16156 (linux_wait_for_lwp): Adjust.
16157
8d00225b
YQ
161582012-03-02 Yao Qi <yao@codesourcery.com>
16159
16160 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16161 debug log.
16162
19560ba5
YQ
161632012-03-02 Yao Qi <yao@codesourcery.com>
16164
16165 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16166 `stop_pc' and `tpoint'. Update caller.
16167
1faeff08
MR
161682012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16169
16170 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16171 * linux-low.c (use_linux_regsets): New macro.
16172 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16173 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16174 (linux_register_in_regsets): New function.
16175 (usr_fetch_inferior_registers): Skip registers covered by
16176 regsets.
16177 (usr_store_inferior_registers): Likewise.
16178 (usr_fetch_inferior_registers): New macro.
16179 (usr_store_inferior_registers): Likewise.
16180 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16181 (linux_store_registers): Likewise.
16182 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16183 prototype.
16184 (init_registers_mips64_dsp_linux): Likewise.
16185 (init_registers_mips_linux): New macro.
16186 (init_registers_mips_dsp_linux): Likewise.
16187 (mips_dsp_num_regs): Likewise.
16188 (DSP_BASE, DSP_CONTROL): New fallback macros.
16189 (mips_base_regs): New macro.
16190 (mips_regmap): Use it. Fix the size.
16191 (mips_dsp_regmap): New variable.
16192 (mips_dsp_regset_bitmap): Likewise.
16193 (mips_arch_setup): New function.
16194 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16195 than mips_regmap.
16196 (mips_cannot_store_register): Likewise.
16197 (the_low_target): Update .arch_setup, .num_regs and .regmap
16198 initializers. Add .regset_bitmap initializer.
16199 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16200 initializer.
16201 * linux-bfin-low.c (the_low_target): Likewise.
16202 * linux-cris-low.c (the_low_target): Likewise.
16203 * linux-crisv32-low.c (the_low_target): Likewise.
16204 * linux-ia64-low.c (the_low_target): Likewise.
16205 * linux-m32r-low.c (the_low_target): Likewise.
16206 * linux-m68k-low.c (the_low_target): Likewise.
16207 * linux-ppc-low.c (the_low_target): Likewise.
16208 * linux-s390-low.c (the_low_target): Likewise.
16209 * linux-sh-low.c (the_low_target): Likewise.
16210 * linux-sparc-low.c (the_low_target): Likewise.
16211 * linux-tic6x-low.c (the_low_target): Likewise.
16212 * linux-x86-low.c (the_low_target): Likewise.
16213 * linux-xtensa-low.c (the_low_target): Likewise.
16214 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16215 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16216 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16217 srv_xmlfiles.
16218 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16219 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16220
c03e6ccc
YQ
162212012-02-29 Yao Qi <yao@codesourcery.com>
16222 Pedro Alves <palves@redhat.com>
16223
16224 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16225 `step_over_finished' is true.
16226
644cebc9
PA
162272012-02-27 Pedro Alves <palves@redhat.com>
16228
16229 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16230 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16231
c14d7ab2
PA
162322012-02-27 Pedro Alves <palves@redhat.com>
16233
16234 PR server/9684
16235 * linux-low.c (pid_is_stopped): New.
16236 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16237
412c89dd
LM
162382012-02-25 Luis Machado <lgustavo@codesourcery.com>
16239
16240 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16241 of conditions.
16242
b745defe
MR
162432012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16244
16245 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16246
9f3a5c85
LM
162472012-02-24 Luis Machado <lgustavo@codesourcery>
16248
16249 * server.c (handle_query): Advertise support for target-side
16250 breakpoint condition evaluation.
16251 (process_point_options): New function.
16252 (process_serial_event): When inserting a breakpoint, check for
16253 a target-side condition that should be evaluated.
16254
16255 * mem-break.c: Include regcache.h and ax.h.
16256 (point_cond_list_t): New data structure.
16257 (breakpoint) <cond_list>: New field.
16258 (find_gdb_breakpoint_at): Make non-static.
16259 (delete_gdb_breakpoint_at): Clear any target-side
16260 conditions.
16261 (clear_gdb_breakpoint_conditions): New function.
16262 (add_condition_to_breakpoint): Likewise.
16263 (add_breakpoint_condition): Likewise.
16264 (gdb_condition_true_at_breakpoint): Likewise.
16265 (gdb_breakpoint_here): Return result directly instead
16266 of going through a local variable.
16267
16268 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16269 (clear_gdb_breakpoint_conditions): Likewise.
16270 (add_breakpoint_condition): Likewise.
16271 (gdb_condition_true_at_breakpoint): Likewise.
16272
16273 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16274 (need_step_over_p): Take target-side breakpoint condition into
16275 consideration.
16276
5e1dc496
LM
162772012-02-24 Luis Machado <lgustavo@codesourcery>
16278
16279 * server.h: Include tracepoint.h.
16280 (agent_mem_read, agent_get_trace_state_variable_value,
16281 agent_set_trace_state_variable_value,
16282 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16283 get_set_tsv_func_addr): New prototypes.
16284
16285 * ax.h: New include file.
16286 * ax.c: New source file.
16287
16288 * tracepoint.c: Include ax.h.
16289 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16290 agent_expr, eval_result_type): Move to ax.h.
16291 (parse_agent_expr): Rename to ...
16292 (gdb_parse_agent_expr): ... this, make it non-static and move
16293 to ax.h.
16294 (unparse_agent_expr) Rename to ...
16295 (gdb_unparse_agent_expr): ... this, make it non-static and move
16296 to ax.h.
16297 (eval_agent_expr): Rename to ...
16298 (eval_tracepoint_agent_expr): ... this.
16299 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16300 forward declarations.
16301 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16302 (agent_get_trace_state_variable_value): New function.
16303 (agent_set_trace_state_variable_value): New function.
16304 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16305 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16306 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16307 (condition_true_at_tracepoint): Likewise.
16308 (parse_agent_expr): Rename to ...
16309 (gdb_parse_agent_expr): ... this and move to ax.c.
16310 (unparse_agent_expr): Rename to ...
16311 (gdb_unparse_agent_expr): ... this and move to ax.c.
16312 (gdb_agent_op_name): Move to ax.c.
16313 (eval_agent_expr): Rename to ...
16314 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16315 and move to ax.c.
16316 (eval_tracepoint_agent_expr): New function.
16317 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16318 non-static.
5e1dc496
LM
16319 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16320 ax.c.
16321 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16322 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16323 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16324 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16325 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16326 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16327 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16328 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16329 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16330 (compile_bytecodes): Remove forward declaration.
16331 (is_goto_target): Move to ax.c.
16332 (compile_bytecodes): Move to ax.c and call
16333 agent_get_trace_state_variable_value (...) and
16334 agent_set_trace_state_variable_value (...).
16335
16336 * Makefile.in: Update ax.c and IPA dependencies.
16337
277e4e52
PA
163382012-02-24 Pedro Alves <palves@redhat.com>
16339
16340 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16341 (cmd_bigqtbuffer_circular): ... this. Only handle
16342 'QTBuffer:circular:'.
16343 (handle_tracepoint_general_set): Adjust.
16344
bf4c19f7
YQ
163452012-02-16 Yao Qi <yao@codesourcery.com>
16346
16347 * inferiors.c: Move code to ...
16348 * dll.c: .... here. New.
16349 * server.h: Declare clear_dlls.
16350 * Makefile.in (SFILES): Add dll.c.
16351 (OBS): Add dll.o
16352 (dll.o): New rule.
16353
d73f2619
YQ
163542012-02-11 Yao Qi <yao@codesourcery.com>
16355
16356 * server.c: (handle_monitor_command): Add a new parameter
16357 `own_buf'.
16358 (handle_query): Update caller.
16359
f8255c2a
JB
163602012-02-09 Joel Brobecker <brobecker@adacore.com>
16361
16362 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16363 * configure, config.in: Regenerate.
16364 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16365 is not defined.
16366
da84f473
PA
163672012-02-02 Pedro Alves <palves@redhat.com>
16368
16369 Try SIGKILL first, then PTRACE_KILL.
16370 * linux-low.c (linux_kill_one_lwp): New.
16371 (linux_kill_one_lwp): Rename to ...
16372 (kill_one_lwp_callback): ... this. Use the new
16373 linux_kill_one_lwp.
16374
e886a173
PA
163752012-02-02 Pedro Alves <palves@redhat.com>
16376
16377 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16378 inferior.
16379
be07f1a2
PA
163802012-01-27 Pedro Alves <palves@redhat.com>
16381
16382 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16383 (elf_64_file_p): Make static.
16384 (linux_pid_exe_is_elf_64_file): New.
16385 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16386 Delete declarations.
16387 (linux_pid_exe_is_elf_64_file): Declare.
16388 * linux-x86-low.c (x86_arch_setup): Use
16389 linux_pid_exe_is_elf_64_file.
16390
d8301ad1
JK
163912012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16392
16393 * linux-low.c (linux_wait_for_event_1): Rename to ...
16394 (linux_wait_for_event): ... here and merge it with former
16395 linux_wait_for_event - new variable wait_ptid, use it.
16396 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16397
01b17894
PA
163982012-01-23 Pedro Alves <palves@redhat.com>
16399
16400 * server.c (main): Avoid yet another case of infinite loop while
16401 detaching/killing after a longjmp.
16402
e825046f
JK
164032012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16404
16405 Code cleanup.
16406 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16407
b9e7b9c3
UW
164082012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16409
16410 * hostio.c (handle_readlink): New function.
16411 (handle_vFile): Call it to handle "vFile:readlink" packets.
16412
901f9912
UW
164132012-01-20 Pedro Alves <palves@redhat.com>
16414 Ulrich Weigand <ulrich.weigand@linaro.org>
16415
16416 * server.c (handle_v_requests): Only support vAttach and vRun to
16417 start multiple processes when in extended protocol mode.
16418
fc1ab1a0
PA
164192012-01-17 Pedro Alves <palves@redhat.com>
16420
16421 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16422 memalign plus mprotect to allocate the scratch buffer.
16423
7d5d4e98
PA
164242012-01-13 Pedro Alves <palves@redhat.com>
16425
16426 * server.c (attach_inferior): Clear `cont_thread'.
16427
f128d5e9
PA
164282012-01-13 Pedro Alves <palves@redhat.com>
16429
16430 * server.c (main): Avoid infinite loop while detaching/killing
16431 after a longjmp.
16432
06db92f0
DE
164332012-01-09 Doug Evans <dje@google.com>
16434
16435 * server.c (start_inferior): Set last_ptid in --wrapper case.
16436
32d92999
YQ
164372012-01-06 Yao Qi <yao@codesourcery.com>
16438
16439 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16440 defined.
16441 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16442
5e0a92a9
YQ
164432012-01-04 Yao Qi <yao@codesourcery.com>
16444
16445 * tracepoint.c (cmd_qtdp): Print debug message
16446 for static tracepoint.
16447
ae639e8c
YQ
164482012-01-04 Yao Qi <yao@codesourcery.com>
16449
16450 * tracepoint.c (trace_vdebug): Differentiate debug message
16451 between gdbserver and IPA.
16452
f72429c5
YQ
164532012-01-03 Yao Qi <yao@codesourcery.com>
16454
16455 * tracepoint.c (tracepoint_was_hit): Don't collect for
16456 static tracepoint.
16457
12c3e59c
JB
164582012-01-02 Joel Brobecker <brobecker@adacore.com>
16459
16460 * terminal.h: Reformat copyright header.
16461
67827812
JB
164622012-01-02 Joel Brobecker <brobecker@adacore.com>
16463
16464 * server.c (gdbserver_version): Update copyright year.
16465 * gdbreplay.c (gdbreplay_version): Likewise.
16466
3e52c33d
JK
164672011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16468
16469 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16470
16471 Revert:
16472 2011-12-18 Hui Zhu <teawater@gmail.com>
16473 * linux-low.c (linux_create_inferior): Save return value to ret.
16474
66f1260e
HZ
164752011-12-18 Hui Zhu <teawater@gmail.com>
16476
16477 * linux-low.c (linux_create_inferior): Save return value to ret.
16478
e77616d7
DE
164792011-12-16 Doug Evans <dje@google.com>
16480
e7b06c57
DE
16481 * linux-low.c (linux_create_inferior): If stdio connection,
16482 redirect stdin from /dev/null, stdout to stderr.
16483 * remote-utils.c (remote_is_stdio): New static global.
16484 (remote_connection_is_stdio): New function.
16485 (remote_prepare): Handle stdio connection.
16486 (remote_open): Ditto.
16487 (remote_close): Don't close stdin for stdio connections.
16488 (read_prim,write_prim): New functions. Replace all calls to
16489 read/write to these.
16490 * server.c (main): Watch for "-" argument. Move call to
16491 remote_prepare before start_inferior.
16492 * server.h (STDIO_CONNECTION_NAME): New macro.
16493 (remote_connection_is_stdio): Declare.
16494
e77616d7
DE
16495 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16496 in debugging output.
16497
82067193
YQ
164982011-12-15 Yao Qi <yao@codesourcery.com>
16499
16500 * tracepoint.c: Include sys/syscall.h.
16501 (gdb_ust_thread): Remove preprocessor conditional.
16502
82bfbe7e
PA
165032011-12-14 Pedro Alves <pedro@codesourcery.com>
16504
16505 * linux-low.c (linux_detach_one_lwp): Call
16506 the_low_target.prepare_to_resume before detaching.
16507
712c6575
YQ
165082011-12-14 Yao Qi <yao@codesourcery.com>
16509
16510 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16511 of write.
16512
d54d1edf
YQ
165132011-12-14 Yao Qi <yao@codesourcery.com>
16514
16515 * i386-low.c (i386_low_stopped_data_address): Initialize local
16516 variable `control'.
16517
6210a125
PA
165182011-12-13 Pedro Alves <pedro@codesourcery.com>
16519
16520 PR remote/13492
16521
16522 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16523 DR_CONTROL unless necessary. Extend comments.
16524 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16525 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16526
2ece8244
YQ
165272011-12-13 Yao Qi <yao@codesourcery.com>
16528
16529 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16530 macros.
16531 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16532
784867a5
JK
165332011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16534
16535 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16536 Print new debug message for such case.
16537
6bf36717
JK
165382011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16539
16540 Fix overlapping memcpy.
16541 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16542 the read_inferior_memory transfer.
16543 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16544 write_inferior_memory transfer.
16545 (set_fast_tracepoint_jump): New variable buf. Use it for the
16546 read_inferior_memory and write_inferior_memory transfers.
16547 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16548 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16549 Use it for the write_inferior_memory transfer.
16550 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16551 buffers.
16552
50275556
MR
165532011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16554
16555 * linux-low.c (fetch_register, store_register): Make code
16556 consistent, fix formatting.
16557
7325beb4
MR
165582011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16559
16560 * linux-low.c (usr_store_inferior_registers): Factor out code
16561 to handle individual registers into...
16562 (store_register): ... this new function.
16563
c642a434
UW
165642011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16565
16566 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16567 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16568 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16569 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16570 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16571 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16572 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16573 (srv_xmlfiles): Add new XML files.
16574
16575 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16576 and <sys/uio.h>.
16577 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16578 (init_registers_s390_linux32v1): Add prototype.
16579 (init_registers_s390_linux32v2): Likewise.
16580 (init_registers_s390_linux64v1): Likewise.
16581 (init_registers_s390_linux64v2): Likewise.
16582 (init_registers_s390x_linux64v1): Likewise.
16583 (init_registers_s390x_linux64v2): Likewise.
16584 (s390_num_regs): Increment to 52.
16585 (s390_regmap): Add orig_r2 register.
16586 (s390_num_regs_3264): Increment to 68.
16587 (s390_regmap_3264): Add orig_r2 register.
16588 (s390_collect_ptrace_register): Handle orig_r2 register.
16589 (s390_supply_ptrace_register): Likewise.
16590 (s390_fill_last_break): New function.
16591 (s390_store_last_break): Likewise.
16592 (s390_fill_system_call): New function.
16593 (s390_store_system_call): Likewise.
16594 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16595 register sets.
16596 (s390_check_regset): New function.
16597 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16598 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16599 Update target_regsets for available register sets.
16600
2268b414
JK
166012011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16602 Jan Kratochvil <jan.kratochvil@redhat.com>
16603
16604 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16605 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16606 New.
16607 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16608 * linux-low.h (struct process_info_private): New member r_debug.
16609 * server.c (handle_qxfer_libraries): Call
16610 the_target->qxfer_libraries_svr4.
16611 (handle_qxfer_libraries_svr4): New function.
16612 (qxfer_packets): New entry "libraries-svr4".
16613 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16614 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16615 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16616 PACKET_qXfer_libraries_svr4.
16617
d6db1fab
UW
166182011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16619
16620 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16621 PSW address/mask between 8-byte and 16-byte formats.
16622 (s390_supply_ptrace_register): Likewise.
16623 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16624 basic addressing mode bit.
16625
242f5f1c
SS
166262011-11-24 Stan Shebs <stan@codesourcery.com>
16627
16628 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16629
f196051f
SS
166302011-11-17 Stan Shebs <stan@codesourcery.com>
16631
16632 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16633 (tracing_start_time): New global.
16634 (tracing_stop_time): New global.
16635 (tracing_user_name): New global.
16636 (tracing_notes): New global.
16637 (tracing_stop_note): New global.
16638 (cmd_qtstart): Set traceframe_usage, start_time.
16639 (stop_tracing): Set stop_time.
16640 (cmd_qtstatus): Report additional status.
16641 (cmd_qtp): New function.
16642 (handle_tracepoint_query): Call it.
16643 (cmd_qtnotes): New function.
16644 (handle_tracepoint_general_set): Call it.
16645 (get_timestamp): Rename from tsv_get_timestamp.
16646
405f8e94
SS
166472011-11-14 Stan Shebs <stan@codesourcery.com>
16648 Kwok Cheung Yeung <kcy@codesourcery.com>
16649
16650 * linux-x86-low.c (small_jump_insn): New.
16651 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16652 trampoline and error message, build a trampoline and issue a small
16653 jump instruction to it.
16654 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16655 trampoline and error message.
16656 (x86_get_min_fast_tracepoint_insn_len): New.
16657 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16658 * linux-low.h (struct linux_target_ops): Add arguments to
16659 install_fast_tracepoint_jump_pad operation, add new operation.
16660 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16661 arguments.
16662 (linux_get_min_fast_tracepoint_insn_len): New function.
16663 (linux_target_op): Add new operation.
16664 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16665 (gdb_trampoline_buffer_end): Ditto.
16666 (gdb_trampoline_buffer_error): Ditto.
16667 (struct ipa_sym_addresses): Add fields for new IPA variables.
16668 (symbol_list): Add entries for new IPA variables.
16669 (struct tracepoint): Add fields to hold the address range of the
16670 trampoline used by the tracepoint.
16671 (trampoline_buffer_head): New static variable.
16672 (trampoline_buffer_tail): Ditto.
16673 (claim_trampoline_space): New function.
16674 (have_fast_tracepoint_trampoline_buffer): New function.
16675 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16676 structure.
16677 (install_fast_tracepoint): Ditto, also add error buffer argument.
16678 (cmd_qtminftpilen): New function.
16679 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16680 (fast_tracepoint_from_trampoline_address): New function.
16681 (fast_tracepoint_collecting): Handle trampoline as part of jump
16682 pad space.
16683 (set_trampoline_buffer_space): New function.
16684 (initialize_tracepoint): Initialize new IPA variables.
16685 * target.h (struct target_ops): Add arguments to
16686 install_fast_tracepoint_jump_pad operation, add new
16687 get_min_fast_tracepoint_insn_len operation.
16688 (target_get_min_fast_tracepoint_insn_len): New.
16689 (install_fast_tracepoint_jump_pad): Add arguments.
16690 * server.h (IPA_BUFSIZ): Define.
16691 * linux-i386-ipa.c: Include extra header files.
16692 (initialize_fast_tracepoint_trampoline_buffer): New function.
16693 (initialize_low_tracepoint): Call it.
16694 * server.h (set_trampoline_buffer_space): Declare.
16695 (claim_trampoline_space): Ditto.
16696 (have_fast_tracepoint_trampoline_buffer): Ditto.
16697
1e4d1764
YQ
166982011-11-14 Yao Qi <yao@codesourcery.com>
16699
16700 * server.c (handle_query): Handle InstallInTrace for qSupported.
16701 * tracepoint.c (add_tracepoint): Sort list.
16702 (install_tracepoint, download_tracepoint): New.
16703 (cmd_qtdp): Call them to install and download tracepoints.
16704 (sort_tracepoints): Removed.
16705 (cmd_qtstart): Update.
16706
5c73ff4e
YQ
167072011-11-14 Yao Qi <yao@codesourcery.com>
16708
16709 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16710 * mem-break.h: Declare.
16711 * tracepoint.c (cmd_qtstart): Move some code to ...
16712 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16713 New.
16714 (download_tracepoints): Move some code to ...
16715 (download_tracepoint_1): ... here. New.
16716
86a30030
YQ
167172011-11-08 Yao Qi <yao@codesourcery.com>
16718
16719 * remote-utils.c (relocate_instruction): A comment fix.
16720
8d26e50c
JB
167212011-11-07 Joel Brobecker <brobecker@adacore.com>
16722
16723 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16724 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16725 dr_status_mirror and dr_control_mirror from debug_reg_state.
16726 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16727 (i386_initial_stuff): Remove use of deleted globals.
16728 (i386_get_thread_context, i386_set_thread_context,
16729 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16730 from debug_reg_state.
16731
a59306a3
YQ
167322011-11-05 Yao Qi <yao@codesourcery.com>
16733
16734 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16735 address as TPOINT's.
16736
3065dfb6
SS
167372011-11-02 Stan Shebs <stan@codesourcery.com>
16738
16739 * tracepoint.c (agent_mem_read_string): New function.
16740 (eval_agent_expr): Call it for tracenz.
16741 * server.c (handle_query): Report support for tracenz.
16742
fd0d8c7c
YQ
167432011-11-02 Yao Qi <yao@codesourcery.com>
16744
16745 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16746
609086b1
YQ
167472011-11-02 Yao Qi <yao@codesourcery.com>
16748
16749 * target.h: Fix a typo in comment.
16750
b9fd1791
PA
167512011-10-31 Pedro Alves <pedro@codesourcery.com>
16752
16753 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16754 clobber the breakpoints' shadows with fast tracepoint jumps.
16755 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16756 * target.c (write_inferior_memory): Also pass MYADDR down to
16757 check_mem_write.
16758
03583c20
UW
167592011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16760
16761 * configure.ac: Check support for personality routine.
16762 * configure: Regenerate.
16763 * config.in: Likewise.
16764 * linux-low.c: Include <sys/personality.h>.
16765 Define ADDR_NO_RANDOMIZE if necessary.
16766 (linux_create_inferior): Disable address space randomization when
16767 forking inferior, if requested.
16768 (linux_supports_disable_randomization): New function.
16769 (linux_target_ops): Install it.
16770 * server.h (disable_randomization): Declare.
16771 * server.c (disable_randomization): New global variable.
16772 (handle_general_set): Handle QDisableRandomization.
16773 (handle_query): Likewise for qSupported.
16774 (main): Support --disable-randomization and --no-disable-randomization
16775 command line arguments.
16776 * target.h (struct target_ops): Add supports_disable_randomization.
16777 (target_supports_disable_randomization): New macro.
16778
723b724b
MF
167792011-09-29 Mike Frysinger <vapier@gentoo.org>
16780
16781 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16782 ifdef check.
16783 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16784 [!PT_GETDSBT] (target_loadmap): New definition.
16785 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16786 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16787 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16788 and PT_GETDSBT to LINUX_LOADMAP.
16789 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16790 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16791
55329a5c 167922011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16793
16794 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16795 (arm_linux_hwbp_cap): New static variable.
16796 (arm_linux_get_hwbp_cap): Replace by ...
16797 (arm_linux_init_hwbp_cap): ... this new function.
16798 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16799 (arm_linux_get_hw_watchpoint_count): Likewise.
16800 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16801 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16802 (arm_prepare_to_resume): Use perror_with_name instead of error.
16803
55329a5c 168042011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16805
16806 * linux-arm-low.c: Include <signal.h>.
16807 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16808 (struct arm_linux_hwbp_cap): New data type.
16809 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16810 (struct arm_linux_hw_breakpoint): New data type.
16811 (MAX_BPTS, MAX_WPTS): Define.
16812 (struct arch_process_info, struct arch_lwp_info): New data types.
16813 (arm_linux_get_hwbp_cap): New function.
16814 (arm_linux_get_hw_breakpoint_count): Likewise.
16815 (arm_linux_get_hw_watchpoint_count): Likewise.
16816 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16817 (arm_hwbp_control_initialize): Likewise.
16818 (arm_hwbp_control_is_enabled): Likewise.
16819 (arm_hwbp_control_is_initialized): Likewise.
16820 (arm_hwbp_control_disable): Likewise.
16821 (arm_linux_hw_breakpoint_equal): Likewise.
16822 (arm_linux_hw_point_initialize): Likewise.
16823 (struct update_registers_data): New data structure.
16824 (update_registers_callback: New function.
16825 (arm_insert_point): Likewise.
16826 (arm_remove_point): Likewise.
16827 (arm_stopped_by_watchpoint): Likewise.
16828 (arm_stopped_data_address): Likewise.
16829 (arm_new_process): Likewise.
16830 (arm_new_thread): Likewise.
16831 (arm_prepare_to_resume): Likewise.
16832 (the_low_target): Register arm_insert_point, arm_remove_point,
16833 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16834 arm_new_thread, and arm_prepare_to_resume.
16835
6b9801d4
SS
168362011-09-15 Stan Shebs <stan@codesourcery.com>
16837
16838 * server.h (struct emit_ops): Add compare-goto fields.
16839 * tracepoint.c (gdb_agent_op_sizes): New table.
16840 (emit_eq_goto): New function.
16841 (emit_ne_goto): New function.
16842 (emit_lt_goto): New function.
16843 (emit_le_goto): New function.
16844 (emit_gt_goto): New function.
16845 (emit_ge_goto): New function.
16846 (is_goto_target): New function.
16847 (compile_bytecodes): Recognize special cases of compare-goto
16848 combinations and call specialized emitters for them.
16849 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16850 (amd64_emit_ne_goto): New function.
16851 (amd64_emit_lt_goto): New function.
16852 (amd64_emit_le_goto): New function.
16853 (amd64_emit_gt_goto): New function.
16854 (amd64_emit_ge_goto): New function.
16855 (amd64_emit_ops): Add the new functions.
16856 (i386_emit_eq_goto): New function.
16857 (i386_emit_ne_goto): New function.
16858 (i386_emit_lt_goto): New function.
16859 (i386_emit_le_goto): New function.
16860 (i386_emit_gt_goto): New function.
16861 (i386_emit_ge_goto): New function.
16862 (i386_emit_ops): Add the new functions.
16863
bf15cbda
SS
168642011-09-08 Stan Shebs <stan@codesourcery.com>
16865
16866 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16867 (i386_emit_epilogue): Restore %ebx.
16868
943ca1dd
JZ
168692011-08-31 Jie Zhang <jzhang918@gmail.com>
16870
16871 * server.c (step_thread): Remove definition.
16872 (process_serial_event): Don't handle Hs.
16873 * server.h (step_thread): Remove declaration.
16874 * target.c (set_desired_inferior): Remove use of step_thread.
16875
e3deef73
LM
168762011-08-24 Luis Machado <lgustavo@codesourcery.com>
16877
16878 * linux-low.c: Include linux-procfs.h.
16879 (linux_attach_lwp_1): Update comments.
16880 (linux_attach): Scan for existing threads when attaching to a
16881 process that is the tgid.
16882 * Makefile.in: Update dependencies.
16883
13da1c97
LM
168842011-08-24 Luis Machado <lgustavo@codesourcery.com>
16885
16886 * configure.srv: Add linux-procfs.o dependencies.
16887
881127c9
YQ
168882011-08-14 Yao Qi <yao@codesourcery.com>
16889
16890 * target.h (struct target_ops): Fix indent.
16891 * win32-low.c (win32_target_ops): Fix comment.
16892
58dbd541
YQ
168932011-08-14 Andrew Jenner <andrew@codesourcery.com>
16894 Yao Qi <yao@codesourcery.com>
16895
16896 * Makefile.in (clean): Remove tic6x-*.c files.
16897 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16898 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16899 (tic6x-c64xp-linux.c): Likewise.
16900 * configure.srv: Add support for tic6x-*-uclinux.
16901 * linux-tic6x-low.c: New.
16902 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16903
78d85199
YQ
169042011-08-14 Andrew Stubbs <ams@codesourcery.com>
16905 Yao Qi <yao@codesourcery.com>
16906
16907 * target.h (struct target_ops): Add read_loadmap.
16908 * linux-low.c (struct target_loadseg): New type.
16909 (struct target_loadmap): New type.
16910 (linux_read_loadmap): New function.
16911 (linux_target_ops): Add linux_read_loadmap.
16912 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16913 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16914 to NULL.
78d85199 16915
a959a88d
EZ
169162011-08-05 Eli Zaretskii <eliz@gnu.org>
16917
16918 * win32-low.c: Include <stdint.h>.
16919
1ced966e
PA
169202011-07-22 Pedro Alves <pedro@codesourcery.com>
16921
16922 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16923 to the inferior here.
16924 (i386_remove_aligned_watchpoint): Ditto.
16925 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16926 fit part of the watchpoint in the debug registers.
16927 (i386_update_inferior_debug_regs): New.
16928 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16929 registers, and only update the inferior on success.
16930 (i386_low_remove_watchpoint): Ditto.
16931
d26e3629
KY
169322011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16933
16934 * linux-low.c (compare_ints, unique, list_threads, show_process,
16935 linux_core_of_thread): Delete.
16936 (linux_target_ops): Change linux_core_of_thread to
16937 linux_common_core_of_thread.
16938 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16939 * utils.c (malloc_failure): Change type of argument.
16940 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16941 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16942 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16943 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16944 (IPA_OBJS): Add common-utils-ipa.o.
16945 (ptid_h, linux_osdata_h): New macros.
16946 (server_h): Add common/common-utils.h, common/xml-utils.h,
16947 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16948 common/ptid.h.
16949 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16950 ptid.o, buffer.o): New rules.
16951 (linux-low.o): Add common/linux-osdata.h as a dependency.
16952 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16953 * configure.ac: Add AC_HEADER_DIRENT check.
16954 * config.in: Regenerate.
16955 * configure: Regenerate.
16956 * remote-utils.c (xml_escape_text): Delete.
16957 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16958 buffer_xml_printf): Move to common/buffer.c.
16959 * server.c (main): Remove call to initialize_inferiors.
16960 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16961 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16962 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16963 internal_error, gdb_assert, gdb_assert_fail): Delete.
16964 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16965 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16966 common/buffer.h.
16967 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16968 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16969 initialize_inferiors): Delete.
16970
2275a1a7
PA
169712011-07-20 Pedro Alves <pedro@codesourcery.com>
16972
16973 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16974 symbol error.
16975
0a5b1e09
PA
169762011-05-31 Pedro Alves <pedro@codesourcery.com>
16977
16978 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16979 assertion.
16980 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16981
6938fd34
YQ
169822011-05-26 Yao Qi <yao@codesourcery.com>
16983
16984 * Makefile.in (thread-db.o): Track dependence to
16985 common/gdb_thread_db.h.
16986 * thread-db.c: include gdb_thread_db.h from right place.
16987
b481f9e0
TT
169882011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16989
16990 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16991 __FILE__ and __LINE__ to internal_error.
16992
98a5dd13
DE
169932011-05-13 Doug Evans <dje@google.com>
16994
16995 * thread-db.c (try_thread_db_load_from_sdir): New function.
16996 (try_thread_db_load_from_dir): New function.
16997 (thread_db_load_search): Handle $sdir, ignore $pdir.
16998 Remove trying of system directories if search of
16999 libthread-db-search-path fails, that is now done via $sdir.
17000
d248b706
KY
170012011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
17002
17003 * server.c (handle_query): Add EnableDisableTracepoints to the list
17004 of supported features.
43aaf8b6 17005 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 17006 tracepoints.
43aaf8b6
PA
17007 (cmd_qtenable_disable): New.
17008 (cmd_qtstart): Install tracepoints even if disabled.
17009 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
17010 receiving a QTEnable or QTDisable packet.
17011 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17012 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17013 tracepoints.
17014 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 17015
84e578fb
DE
170162011-05-10 Doug Evans <dje@google.com>
17017
17018 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17019
71f55dd8
DE
170202011-05-04 Doug Evans <dje@google.com>
17021
17022 * linux-low.c (linux_join): Skip process lookup.
17023 * spu-low.c (spu_join): Ditto.
17024 * server.c (join_inferiors_callback): Delete.
17025 (process_serial_event): For 'D' packet (detach) call join_inferior
17026 directly.
17027
4d393d60
JM
170282011-05-04 Joseph Myers <joseph@codesourcery.com>
17029
17030 * README: Don't mention xscale*-*-linux*.
17031 * configure.srv (xscale*-*-linux*): Don't handle target.
17032
b00ad6ff
NF
170332011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17034
17035 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17036 casting pointers.
17037 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17038 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17039 (i386_emit_void_call_2): Likewise.
17040
af96c192
YQ
170412011-04-26 Yao Qi <yao@codesourcery.com>
17042
43aaf8b6
PA
17043 * linux-low.c: Move common macros to linux-ptrace.h.
17044 Include linux-ptrace.h.
af96c192
YQ
17045 * Makefile.in (linux_ptrace_h): New.
17046 (linux-low.o): Depends on linux-ptrace.h.
17047
03f2bd59
JK
170482011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17049
17050 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17051 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17052 (remote_prepare): New function with most of the TCP code from ...
17053 (remote_open): ... here. Detect PORT here unconditionally. Move also
17054 setting transport_is_reliable.
17055 * server.c (run_once): New variable.
17056 (gdbserver_usage): Document it.
17057 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17058 the first run if RUN_ONCE.
17059 * server.h (run_once, remote_prepare): New declarations.
17060
7a9dd1b2
TT
170612011-04-19 Tom Tromey <tromey@redhat.com>
17062
17063 * win32-low.c (handle_load_dll): Remove duplicate "the".
17064
81239425
PM
170652011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17066
17067 Remove support for old Cygwin 1.5 versions.
17068 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17069 function to avoid warning.
17070 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17071 warning.
17072
9e0627f1
PM
170732011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17074
17075 * gdbserver/server.h (Macro _): Define it if not available.
17076
588eebee
MS
170772011-03-14 Michael Snyder <msnyder@vmware.com>
17078
348af9f7 17079 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 17080
43f70d4c
JB
170812011-03-10 Joel Brobecker <brobecker@adacore.com>
17082
17083 * Makefile.in (maintainer-clean realclean distclean): Remove
17084 "make ... subdir_do" command.
17085
348af9f7
MS
170862011-03-10 Michael Snyder <msnyder@vmware.com>
17087
17088 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17089
17090 * server.c (handle_v_run): Free alloced buffer on early return.
17091
e637a4f5
YQ
170922011-03-09 Yao Qi <yao@codesourcery.com>
17093
17094 Revert:
17095 2011-03-04 Yao Qi <yao@codesourcery.com>
17096
17097 * Makefile.in: Remove GNU make feature --directory.
17098
17099 2011-03-05 Yao Qi <yao@codesourcery.com>
17100
17101 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17102 (subdir_do): New make target. Copied from gdb/Makefile.
17103 (maintainer-clean, realclean, distclean, clean): Call corresponding
17104 make targets in common/Makefile.
17105
17106 2011-02-11 Yao Qi <yao@codesourcery.com>
17107
17108 * configure.ac: Call AC_PROG_RANLIB.
17109 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17110 * configure: Regenerate.
17111
e6edda56
JK
171122011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17113
17114 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17115
e5141119
JB
171162011-03-06 Yao Qi <yao@codesourcery.com>
17117
17118 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17119
64794aa4
JB
171202011-03-05 Yao Qi <yao@codesourcery.com>
17121
17122 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17123 (subdir_do): New make target. Copied from gdb/Makefile.
17124 (maintainer-clean, realclean, distclean, clean): Call corresponding
17125 make targets in common/Makefile.
17126
7a762829
YQ
171272011-03-04 Yao Qi <yao@codesourcery.com>
17128
17129 * Makefile.in: Remove GNU make feature --directory.
17130
348af9f7
MS
171312011-03-04 Michael Snyder <msnyder@vmware.com>
17132
17133 * server.c (queue_stop_reply): Call xmalloc not malloc.
17134
171352011-03-02 Michael Snyder <msnyder@vmware.com>
17136
17137 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17138
9f72fee2
MS
171392011-02-28 Michael Snyder <msnyder@vmware.com>
17140
588eebee
MS
17141 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17142 (cmd_qtframe): Ditto.
17143 (cmd_qtbuffer): Ditto.
17144 (cmd_bigqtbuffer): Ditto.
17145
9f72fee2
MS
17146 * utils.c (decimal2str): Initialize 'width' to nine, then
17147 don't mess with it.
17148
8040bd49
UW
171492011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17150
17151 * hostio.c (require_data): Free *data, not data.
17152
7e52cbd0
JK
171532011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17154
17155 * hostio.c (require_data): Use free, not xfree.
17156
9130f83e
MS
171572011-02-27 Michael Snyder <msnyder@vmware.com>
17158
4b812f4e
MS
17159 * server.c (handle_query): Discard unused value.
17160
9130f83e
MS
17161 * hostio.c (require_data): Free malloc memory before returning
17162 error.
17163
69d37113
MS
171642011-02-26 Michael Snyder <msnyder@vmware.com>
17165
17166 * linux-low.c (list_threads): Call closedir for dirent.
17167
35f5825a
MS
171682011-02-27 Michael Snyder <msnyder@vmware.com>
17169
2a589cef
MS
17170 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17171 a case statement falls through.
17172
0adea5f7
MS
17173 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17174
35f5825a
MS
17175 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17176 in comparison.
17177
238f1c74
MS
171782011-02-26 Michael Snyder <msnyder@vmware.com>
17179
17180 * utils.c (decimal2str): Eliminate dead code and dead param.
17181 (pulongest): Drop dead param from call to decimal2str.
17182 (plongest): Ditto.
17183
633ff500
JB
171842011-02-24 Joel Brobecker <brobecker@adacore.com>
17185
17186 Revert the following patch (not approved yet):
17187 2011-02-21 Hui Zhu <teawater@gmail.com>
17188 * tracepoint.c (tp_printf): New function.
17189 (eval_agent_expr): Handle gdb_agent_op_printf.
17190
f9c6ff72
HZ
171912011-02-21 Hui Zhu <teawater@gmail.com>
17192
17193 * tracepoint.c (tp_printf): New function.
17194 (eval_agent_expr): Handle gdb_agent_op_printf.
17195
94d5e490
TT
171962011-02-18 Tom Tromey <tromey@redhat.com>
17197
17198 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17199 (tracepoint.o): Likewise.
17200 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17201 (gdb_agent_op_names): Likewise.
17202
c7f96d2b
TT
172032011-02-18 Tom Tromey <tromey@redhat.com>
17204
17205 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17206 gdb_agent_op_rot>: New constants.
17207 (gdb_agent_op_names): Add pick and roll.
17208 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17209 cases.
17210
0feedb2c
JK
172112011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17212
17213 * aclocal.m4: Regenerated with aclocal-1.11.1.
17214
b3b9301e
PA
172152011-02-14 Pedro Alves <pedro@codesourcery.com>
17216
17217 * server.c (handle_qxfer_traceframe_info): New.
17218 (qxfer_packets): Register "traceframe-info".
17219 (handle_query): Report support for qXfer:traceframe-info:read+.
17220 * tracepoint.c (match_blocktype): New.
17221 (traceframe_find_block_type): Rename to ...
17222 (traceframe_walk_blocks): ... this. Add callback filter argument,
17223 and use it.
17224 (traceframe_find_block_type): New, reimplemented on top of
17225 traceframe_walk_blocks.
17226 (build_traceframe_info_xml): New.
17227 (traceframe_read_info): New.
17228 * server.h (traceframe_read_info): Declare.
17229
4f3e6fb7
YQ
172302011-02-11 Yao Qi <yao@codesourcery.com>
17231
17232 * configure.ac: Call AC_PROG_RANLIB.
17233 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17234 * configure: Regenerate.
17235
764880b7
PA
172362011-02-07 Pedro Alves <pedro@codesourcery.com>
17237
17238 * server.c (gdb_read_memory): Change return semantics to allow
17239 partial transfers.
17240 (handle_search_memory_1): Adjust.
17241 (process_serial_event) <'m' packet>: Handle partial transfers.
17242 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17243
1c79eb8a
PA
172442011-01-28 Pedro Alves <pedro@codesourcery.com>
17245
17246 * regcache.c (init_register_cache): Initialize
17247 regcache->register_status.
17248 (free_register_cache): Release regcache->register_status.
17249 (regcache_cpy): Copy register_status.
17250 (registers_to_string): Print 'x's for unavailable registers.
17251 (supply_register): Mark the register's status valid or
17252 unavailable, depending on whether a buffer was passed in or not.
17253 (supply_register_zeroed): New.
17254 (supply_regblock): Mark the registers' status valid or
17255 unavailable, depending on whether a buffer was passed in or not.
17256 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17257 (struct regcache): New `register_status' field.
17258 (supply_register_zeroed): Declare.
17259 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17260 supply_register_zeroed, rather than passing a NULL buffer to
17261 supply_register.
17262 * tracepoint.c (fetch_traceframe_registers): Update comment.
17263
85724a0e
PA
172642011-01-28 Pedro Alves <pedro@codesourcery.com>
17265
17266 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17267 buffer explicit.
17268
d08aafef
PA
172692011-01-25 Pedro Alves <pedro@codesourcery.com>
17270
17271 * server.h (decode_xfer_write): Change prototype.
17272 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17273 and don't extract the annex here.
17274 * server.c (decode_xfer_read): Remove `annex' parameter,
17275 and don't extract the annex here.
17276 (decode_xfer): New.
17277 (struct qxfer): New.
17278 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17279 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17280 (handle_qxfer_statictrace): New functions, abstracted out from
17281 handle_query, and made to use the struct qxfer interface.
17282 (handle_threads_qxfer_proper): Rename to ...
17283 (handle_qxfer_threads_proper): ... this.
17284 (handle_threads_qxfer): Rename to ...
17285 (handle_qxfer_threads): ... this. Adjust.
17286 (qxfer_packets): New array.
17287 (handle_qxfer): New function.
17288 (handle_query): Use handle_qxfer.
17289
493e2a69
MS
172902011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17291
17292 * gdbreplay.c: Shorten lines of >= 80 columns.
17293 * linux-low.c: Ditto.
17294 * linux-ppc-low.c: Ditto.
17295 * linux-s390-low.c: Ditto.
17296 * linux-sparc-low.c: Ditto.
17297 * linux-x86-low.c: Ditto.
17298 * linux-xtensa-low.c: Ditto.
17299 * mem-break.c: Ditto.
17300 * nto-low.c: Ditto.
17301 * regcache.h: Ditto.
17302 * remote-utils.c: Ditto.
17303 * server.c: Ditto.
17304 * server.h: Ditto.
17305 * thread-db.c: Ditto.
17306 * tracepoint.c: Ditto.
17307 * utils.c: Ditto.
17308 * win32-low.h: Ditto.
17309
44944448
JB
173102011-01-05 Joel Brobecker <brobecker@adacore.com>
17311
17312 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17313 update.
17314
71ce852c
JB
173152011-01-01 Joel Brobecker <brobecker@adacore.com>
17316
17317 * server.c (gdbserver_version): Update copyright year in version
17318 output.
17319 * gdbreplay.c (gdbreplay_version): Ditto.
17320
eb826dc6
MF
173212010-12-29 Jie Zhang <jie.zhang@analog.com>
17322
17323 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17324 * linux-bfin-low.c: New file.
17325 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17326 PT_DATA_ADDR for BFIN targets.
17327 * Makefile.in (SFILES): Add linux-bfin-low.c.
17328 (clean): Remove reg-bfin.c.
17329 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17330 * README: Mention supported Blackfin targets.
17331
39ab222a
MF
173322010-12-23 Mike Frysinger <vapier@gentoo.org>
17333
17334 * .gitignore: New file.
17335
a1f2ce7d
MF
173362010-11-16 Mike Frysinger <vapier@gentoo.org>
17337
17338 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17339
f474844c
JZ
173402010-10-22 Jie Zhang <jie@codesourcery.com>
17341
17342 * Makefile.in: Add FLAGS_TO_PASS variable.
17343 (install): Remove dependency of install-only and recursively
17344 invoke make for install-only.
17345
f1048712
DE
173462010-10-04 Doug Evans <dje@google.com>
17347
17348 * Makefile.in (uninstall): Use $(DESTDIR).
17349
b53a1623
PA
173502010-09-24 Pedro Alves <pedro@codesourcery.com>
17351
e6ee044d
PA
17352 PR gdb/11842
17353
b53a1623
PA
17354 * linux-x86-low.c (compat_siginfo_from_siginfo)
17355 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17356 si_code is < 0. Check for si_code == SI_TIMER before checking for
17357 si_code < 0.
17358
fa1bd1e4
JB
173592010-09-13 Joel Brobecker <brobecker@adacore.com>
17360
17361 * lynx-i386-low.c: New file.
17362 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17363
47fac8f8
JB
173642010-09-13 Joel Brobecker <brobecker@adacore.com>
17365
17366 * lynx-low.c (ptrace_request_to_str): Remove handling for
17367 request values that have been removed in LynxOS 5.x.
17368
1adfc54d
JB
173692010-09-13 Joel Brobecker <brobecker@adacore.com>
17370
17371 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17372 <ptrace.h>
17373
c2a66c29
NS
173742010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17375
17376 * configure.ac: Add --enable-inprocess-agent option.
17377 * configure: Rebuilt.
17378
32fcada3
YQ
173792010-09-06 Yao Qi <yao@codesourcery.com>
17380
17381 * linux-low.c (linux_kill): Remove unused variable.
17382 (linux_stabilize_threads): Likewise.
17383 * server.c (start_inferior): Likewise.
17384 (queue_stop_reply_callback): Likewise.
17385 * tracepoint.c (do_action_at_tracepoint): Likewise.
17386
0cccb683
YQ
173872010-09-06 Yao Qi <yao@codesourcery.com>
17388
17389 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17390 on return.
17391
423ec54c
JK
173922010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17393
17394 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17395
12ac6819
PA
173962010-09-06 Pedro Alves <pedro@codesourcery.com>
17397
17398 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17399 "$(IPA_DEPFILES)".
17400
8ed54b31
JB
174012010-09-01 Joel Brobecker <brobecker@adacore.com>
17402
17403 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17404 gdbserver/lynx-ppc-low.c: New files.
17405 * Makefile.in (lynx_low_h): New variable.
17406 (lynx-low.o, lynx-ppc-low.o): New rules.
17407 * configure.ac: On LynxOS, link with -lnetinet.
17408 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17409 * configure: regenerate.
17410
bb0116a4
JB
174112010-09-01 Joel Brobecker <brobecker@adacore.com>
17412
17413 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17414 * configure.ac: Add check for vasprintf and vsnprintf.
17415 * configure, config.in: Regenerate.
17416 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17417
a778ab81 174182010-09-01 Joel Brobecker <brobecker@adacore.com>
17419
17420 * gdbreplay.c: Move include of alloca.h up, next to include of
17421 malloc.h.
17422 * server.h: Add include of malloc.h.
17423 * mem-break.c: Remove include of malloc.h.
17424 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17425
8b034a19 174262010-09-01 Joel Brobecker <brobecker@adacore.com>
17427
17428 * Makefile.in (memmem.o): Build with -Wno-error.
17429
174302010-09-01 Joel Brobecker <brobecker@adacore.com>
17431
17432 * utils.c (xsnprintf): Make non-static.
17433 * server.h: Add xsnprintf declaration.
17434 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17435 replace calls to snprintf by calls to xsnprintf throughout.
17436
174372010-09-01 Joel Brobecker <brobecker@adacore.com>
17438
17439 * configure.ac: Add configure check for alloca.
17440 * configure, config.in: Regenerate.
17441 * server.h: Include alloca.h if it exists.
17442 * gdbreplay.c: Include alloca.h if it exists.
17443
1a981360
PA
174442010-08-28 Pedro Alves <pedro@codesourcery.com>
17445
17446 * linux-low.c (__SIGRTMIN): Define if not already defined.
17447 (linux_create_inferior): Check for __ANDROID__ rather than
17448 __SIGRTMIN.
17449 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17450 are already deferred.
17451 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17452 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17453 stopped and already has a pending signal to report.
17454 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17455 a pending signal to report or is moving out of a jump pad.
17456 (linux_init_signals): Check for __ANDROID__ rather than
17457 __SIGRTMIN.
17458
b4d51a55
PA
174592010-08-28 Pedro Alves <pedro@codesourcery.com>
17460
17461 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17462 debug_threads check. Avoid a linear search when not doing debug
17463 output.
17464
ec48365d
PA
174652010-08-27 Pedro Alves <pedro@codesourcery.com>
17466
17467 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17468 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17469 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17470 (process_event): Change local fd's type to gdb_fildes_t.
17471 (create_file_handler): Adjust prototype.
17472 (delete_file_handler): Adjust prototype.
17473 (handle_file_event): Adjust prototype. Use pfildes.
17474 (create_file_event): Adjsut prototype.
17475 * remote-utils.c (remote_desc, listen_desc): Change type to
17476 gdb_fildes_t.
17477 * server.h: New gdb_fildes_t typedef.
17478 [USE_WIN32API]: Include winsock2.h.
17479 (delete_file_handler, add_file_handler): Adjust prototypes.
17480 (pfildes): Declare.
17481 * utils.c (pfildes): New.
17482
854d88f0
PA
174832010-08-27 Pedro Alves <pedro@codesourcery.com>
17484
17485 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17486 * configure: Regenerate.
17487
0146f85b
PA
174882010-08-27 Pedro Alves <pedro@codesourcery.com>
17489
17490 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17491 (linux_done_accessing_memory): ... this.
17492 (linux_target_ops): Adjust.
17493 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17494 * nto-low.c (nto_target_ops): Adjust comment.
17495 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17496 * spu-low.c (spu_target_ops): Adjust comment.
17497 * target.h (target_ops): Rename unprepare_to_access_memory field
17498 to done_accessing_memory.
17499 (unprepare_to_access_memory): Rename to ...
17500 (done_accessing_memory): ... this.
17501
90d74c30
PA
175022010-08-26 Pedro Alves <pedro@codesourcery.com>
17503
17504 * linux-low.c (linux_prepare_to_access_memory): New.
17505 (linux_unprepare_to_access_memory): New.
17506 (linux_target_ops): Install them.
17507 * server.c (read_memory): Rename to ...
17508 (gdb_read_memory): ... this. Use
17509 prepare_to_access_memory/prepare_to_access_memory.
17510 (write_memory): Rename to ...
17511 (gdb_write_memory): ... this. Use
17512 prepare_to_access_memory/prepare_to_access_memory.
17513 (handle_search_memory_1): Adjust.
17514 (process_serial_event): Adjust.
17515 * target.h (struct target_ops): New fields
17516 prepare_to_access_memory and unprepare_to_access_memory.
17517 (prepare_to_access_memory, unprepare_to_access_memory): New.
17518 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17519 prepare_to_access_memory/prepare_to_access_memory.
17520 * nto-low.c (nto_target_ops): Adjust.
17521 * spu-low.c (spu_target_ops): Adjust.
17522 * win32-low.c (win32_target_ops): Adjust.
17523
fd467969
PA
175242010-08-26 Pedro Alves <pedro@codesourcery.com>
17525
17526 * Makefile.in (WARN_CFLAGS): Get it from configure.
17527 (WERROR_CFLAGS): New.
17528 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17529 * configure.ac: Introduce --enable-werror, which adds -Werror to
17530 the compiler command line. Enabled by default. Disable with
17531 --disable-werror. Add -Wdeclaration-after-statement
17532 Wpointer-arith and -Wformat-nonliteral to warning flags.
17533 * configure: Regenerate.
17534
331e2f5f
PA
175352010-08-26 Pedro Alves <pedro@codesourcery.com>
17536
17537 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17538
e581f2b4
PA
175392010-08-26 Pedro Alves <pedro@codesourcery.com>
17540
17541 * gdbreplay.c (remote_error): New.
17542 (gdbchar): New.
17543 (expect): Use gdbchar. Check for error reading from GDB.
17544 Clarify sync error output.
17545 (play): Check for errors writing to GDB.
17546 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17547 * remote-utils.c (getpkt): Check for errors writing to the remote
17548 descriptor.
17549
3c11dd79
PA
175502010-08-25 Pedro Alves <pedro@codesourcery.com>
17551
17552 * linux-low.c (linux_wait_1): Move non-debugging code out of
17553 `debug_threads' control.
17554
d20a8ad9
PA
175552010-08-25 Pedro Alves <pedro@codesourcery.com>
17556
17557 * linux-low.c (linux_wait_1): Don't set last_status here.
17558 * server.c (push_event, queue_stop_reply_callback): Assert we're
17559 not pushing a TARGET_WAITKIND_IGNORE event.
17560 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17561 (myresume, handle_target_event): Set the thread's last_resume_kind
17562 and last_status from the target returned status.
17563
964e4306
PA
175642010-08-25 Pedro Alves <pedro@codesourcery.com>
17565
17566 PR threads/10729
17567
17568 * linux-x86-low.c (update_debug_registers_callback): New.
17569 (i386_dr_low_set_addr): Use it.
17570 (i386_dr_low_get_addr): New.
17571 (i386_dr_low_set_control): Use update_debug_registers_callback.
17572 (i386_dr_low_get_control): New.
17573 (i386_dr_low_get_status): Adjust.
17574 * linux-low.c (linux_stop_lwp): New.
17575 * linux-low.h (linux_stop_lwp): Declare.
17576
17577 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17578 argument instead of a i386_debug_reg_state.
17579 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17580 a i386_debug_reg_state.
17581 (i386_insert_aligned_watchpoint): Adjust.
17582 (i386_remove_aligned_watchpoint): Adjust.
17583 (i386_low_stopped_data_address): Read the debug registers from the
17584 inferior instead of from the mirrors.
17585 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17586 (i386_dr_low_get_addr): Declare.
17587 (i386_dr_low_get_control): Declare.
17588 (i386_dr_low_get_status): Change prototype.
17589
17590 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17591 (i386_dr_low_get_addr): New.
17592 (i386_dr_low_get_control): New.
17593 (i386_dr_low_get_status): Adjust prototype. Return
17594 dr_status_mirror.
17595 (i386_initial_stuff): Clear dr_status_mirror and
17596 dr_control_mirror.
17597 (i386_get_thread_context): Adjust.
17598 (i386_set_thread_context): Adjust.
17599 (i386_thread_added): Adjust.
17600
5f21a75b
PA
176012010-08-24 Pedro Alves <pedro@codesourcery.com>
17602
17603 * linux-low.h (linux_thread_area): Delete declaration.
17604
3e4c1235
TS
176052010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17606
17607 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17608 after its termination.
17609
1971b033
PA
176102010-08-09 Pedro Alves <pedro@codesourcery.com>
17611
17612 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17613 (gdb_wants_all_stopped): Delete.
17614 (linux_wait_1): Don't call them.
17615 * server.c (handle_v_cont): Tag all threads as want-stopped.
17616 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17617 stopped as "client-wants-stopped".
17618
310444ac
PA
176192010-07-31 Pedro Alves <pedro@codesourcery.com>
17620
17621 * Makefile.in (signals_h): New.
17622 (server_h): Depend on it.
17623 (server.o): Don't depend on $(signals_def).
17624 (signals.o): Depend on $(signals_def).
17625
a19cae16
JK
176262010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17627
17628 * Makefile.in (signals_def): New.
17629 (server_h): Append include/gdb/signals.h and signals_def.
17630 (server.o): Append signals_def.
17631
30d50328
JK
176322010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17633
17634 * server.c (handle_target_event): Use target_signal_to_host for
17635 resume_info.sig initialization.
17636 * target.h (struct thread_resume) <sig>: New comment.
17637
5c3216e2
OS
176382010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17639
c6f46ca0
OS
17640 * server.c (handle_query): strcpy() the returned string from paddress()
17641 instead of sprintf().
5c3216e2
OS
17642 * utils.c (paddress): Return phex_nz().
17643
6bd31874
JB
176442010-07-07 Joel Brobecker <brobecker@adacore.com>
17645
17646 * server.c (handle_v_cont): Call mourn_inferior if process
17647 just exited.
17648 (myresume): Likewise.
17649
0fb4aa4b
PA
176502010-07-01 Pedro Alves <pedro@codesourcery.com>
17651
17652 Static tracepoints, and integration with UST.
17653
17654 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17655 * mem-break.c (uninsert_all_breakpoints)
17656 (reinsert_all_breakpoints): New.
17657 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17658 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17659 (gdb_agent_ust_loaded, helper_thread_id)
17660 (gdb_agent_helper_thread_id): New macros.
17661 (struct ipa_sym_addresses): Add addr_ust_loaded,
17662 addr_helper_thread_id, addr_cmd_buf.
17663 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17664 (in_process_agent_loaded_ust): New.
17665 (write_e_ust_not_loaded): New.
17666 (maybe_write_ipa_ust_not_loaded): New.
17667 (struct collect_static_trace_data_action): New.
17668 (enum tracepoint_type) <static_tracepoint>: New.
17669 (struct tracepoint) <handle>: Mention static tracepoints.
17670 (struct static_tracepoint_ctx): New.
17671 (CMD_BUF_SIZE): New.
17672 (add_tracepoint_action): Handle static tracepoint actions.
17673 (unprobe_marker_at): New.
17674 (clear_installed_tracepoints): Handle static tracepoints.
17675 (cmd_qtdp): Handle static tracepoints.
17676 (probe_marker_at): New.
17677 (cmd_qtstart): Handle static tracepoints.
17678 (response_tracepoint): Handle static tracepoints.
17679 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17680 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17681 (get_context_regcache): Handle static tracepoints.
17682 (do_action_at_tracepoint): Handle static tracepoint actions.
17683 (traceframe_find_block_type): Handle static trace data blocks.
17684 (traceframe_read_sdata): New.
17685 (download_tracepoints): Download static tracepoint actions.
17686 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17687 (GDB_PROBE_NAME): New.
17688 (ust_ops): New.
17689 (GET_UST_SYM): New.
17690 (USTF): New.
17691 (dlsym_ust): New.
17692 (ust_marker_to_static_tracepoint): New.
17693 (gdb_probe): New.
17694 (collect_ust_data_at_tracepoint): New.
17695 (gdb_ust_probe): New.
17696 (UNIX_PATH_MAX, SOCK_DIR): New.
17697 (gdb_ust_connect_sync_socket): New.
17698 (resume_thread, stop_thread): New.
17699 (run_inferior_command): New.
17700 (init_named_socket): New.
17701 (gdb_ust_socket_init): New.
17702 (cstr_to_hexstr): New.
17703 (next_st): New.
17704 (first_marker, next_marker): New.
17705 (response_ust_marker): New.
17706 (cmd_qtfstm, cmd_qtsstm): New.
17707 (unprobe_marker_at, probe_marker_at): New.
17708 (cmd_qtstmat, gdb_ust_thread): New.
17709 (gdb_ust_init): New.
17710 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17711 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17712 (ST_REGENTRY): New.
17713 (x86_64_st_collect_regmap): New.
17714 (X86_64_NUM_ST_COLLECT_GREGS): New.
17715 (AMD64_RIP_REGNUM): New.
17716 (supply_static_tracepoint_registers): New.
17717 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17718 (ST_REGENTRY): New.
17719 (i386_st_collect_regmap): New.
17720 (i386_NUM_ST_COLLECT_GREGS): New.
17721 (supply_static_tracepoint_registers): New.
17722 * server.c (handle_query): Handle qXfer:statictrace:read.
17723 <qSupported>: Report support for StaticTracepoints, and
17724 qXfer:statictrace:read features.
17725 * server.h (traceframe_read_sdata)
17726 (supply_static_tracepoint_registers): Declare.
17727 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17728 (unpack_varlen_hex): Include in IPA build.
17729 * Makefile.in (ustlibs, ustinc): New.
17730 (IPA_OBJS): Add remote-utils-ipa.o.
17731 ($(IPA_LIB)): Link -ldl and -lpthread.
17732 (UST_CFLAGS): New.
17733 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17734 * config.in, configure: Regenerate.
17735
9e4344e5
PA
177362010-06-20 Ian Lance Taylor <iant@google.com>
17737 Pedro Alves <pedro@codesourcery.com>
17738
17739 * linux-x86-low.c (always_true): Delete.
17740 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17741 trying to fool the compiler with always_true.
17742
c6beb2cb
PA
177432010-06-20 Pedro Alves <pedro@codesourcery.com>
17744
17745 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17746 conditions in gdbserver.
17747
d2ed6730
UW
177482010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17749
17750 * spu-low.c (spu_read_memory): Wrap around local store limit.
17751 (spu_write_memory): Likewise.
17752
4e29fb54
PA
177532010-06-15 Pedro Alves <pedro@codesourcery.com>
17754
17755 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17756 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17757 LONGEST uses.
17758 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17759 uses.
17760 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17761 uses with LONGEST uses.
17762
6a271cae
PA
177632010-06-14 Stan Shebs <stan@codesourcery.com>
17764 Pedro Alves <pedro@codesourcery.com>
17765
17766 Bytecode compiler.
17767
17768 * linux-x86-low.c: Include limits.h.
17769 (add_insns): New.
17770 (always_true): New.
17771 (EMIT_ASM): New.
17772 (EMIT_ASM32): New.
17773 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17774 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17775 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17776 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17777 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17778 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17779 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17780 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17781 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17782 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17783 (amd64_emit_void_call_2): New.
17784 (amd64_emit_ops): New.
17785 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17786 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17787 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17788 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17789 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17790 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17791 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17792 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17793 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17794 (i386_emit_stack_adjust, i386_emit_int_call_1)
17795 (i386_emit_void_call_2): New.
17796 (i386_emit_ops): New.
17797 (x86_emit_ops): New.
17798 (the_low_target): Install x86_emit_ops.
17799 * server.h (struct emit_ops): New.
17800 (get_raw_reg_func_addr): Declare.
17801 (current_insn_ptr, emit_error): Declare.
17802 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17803 (set_trace_state_variable_value): New defines.
17804 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17805 addr_get_trace_state_variable_value and
17806 addr_set_trace_state_variable_value.
17807 (symbol_list): New fields for get_raw_reg,
17808 get_trace_state_variable_value and set_trace_state_variable_value.
17809 (condfn): New typedef.
17810 (struct tracepoint): New field `compiled_cond'.
17811 (do_action_at_tracepoint): Clear compiled_cond.
17812 (get_trace_state_variable_value, set_trace_state_variable_value):
17813 Export in the IPA.
17814 (condition_true_at_tracepoint): If there's a compiled condition,
17815 run that.
17816 (current_insn_ptr, emit_error): New globals.
17817 (struct bytecode_address): New.
17818 (get_raw_reg_func_addr): New.
17819 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17820 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17821 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17822 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17823 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17824 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17825 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17826 (compile_tracepoint_condition, compile_bytecodes): New.
17827 * target.h (emit_ops): Forward declare.
17828 (struct target_ops): New field emit_ops.
17829 (target_emit_ops): New.
17830 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17831 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17832 * linux-low.c (linux_emit_ops): New.
17833 (linux_target_ops): Install it.
17834 * linux-low.h (struct linux_target_ops): New field emit_ops.
17835
92b72907
UW
178362010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17837
17838 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17839 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17840
fa593d66
PA
178412010-06-01 Pedro Alves <pedro@codesourcery.com>
17842 Stan Shebs <stan@codesourcery.com>
17843
17844 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17845 (all): Depend on $(extra_libraries).
17846 (install-only): Install the IPA.
17847 (IPA_OBJS, IPA_LIB): New.
17848 (clean): Remove the IPA lib.
17849 (IPAGENT_CFLAGS): New.
17850 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17851 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17852 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17853 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17854 * configure.ac: Check for atomic builtins support in the compiler.
17855 (IPA_DEPFILES, extra_libraries): Define.
17856 * configure.srv (ipa_obj): Add description.
17857 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17858 (i[34567]86-*-linux*): Set ipa_obj.
17859 (x86_64-*-linux*): Set ipa_obj.
17860 * linux-low.c (stabilizing_threads): New.
17861 (supports_fast_tracepoints): New.
17862 (linux_detach): Stabilize threads before detaching.
17863 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17864 the lwp is either not stabilizing, or is moving out of a jump pad.
17865 (linux_fast_tracepoint_collecting): New.
17866 (maybe_move_out_of_jump_pad): New.
17867 (enqueue_one_deferred_signal): New.
17868 (dequeue_one_deferred_signal): New.
17869 (linux_wait_for_event_1): If moving out of a jump pad, defer
17870 pending signals to later.
17871 (linux_stabilize_threads): New.
17872 (linux_wait_1): Check if threads need moving out of jump pads, and
17873 do it if so.
17874 (stuck_in_jump_pad_callback): New.
17875 (move_out_of_jump_pad_callback): New.
17876 (lwp_running): New.
17877 (linux_resume_one_lwp): Handle moving out of jump pads.
17878 (linux_set_resume_request): Dequeue deferred signals.
17879 (need_step_over_p): Also step over fast tracepoint jumps.
17880 (start_step_over): Also uninsert fast tracepoint jumps.
17881 (finish_step_over): Also reinsert fast tracepoint jumps.
17882 (linux_install_fast_tracepoint_jump): New.
17883 (linux_target_ops): Install linux_stabilize_threads and
17884 linux_install_fast_tracepoint_jump_pad.
17885 * linux-low.h (linux_target_ops) <get_thread_area,
17886 install_fast_tracepoint_jump_pad>: New fields.
17887 (struct lwp_info) <collecting_fast_tracepoint,
17888 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17889 (linux_get_thread_area): Declare.
17890 * linux-x86-low.c (jump_insn): New.
17891 (x86_get_thread_area): New.
17892 (append_insns): New.
17893 (push_opcode): New.
17894 (amd64_install_fast_tracepoint_jump_pad): New.
17895 (i386_install_fast_tracepoint_jump_pad): New.
17896 (x86_install_fast_tracepoint_jump_pad): New.
17897 (the_low_target): Install x86_get_thread_area and
17898 x86_install_fast_tracepoint_jump_pad.
17899 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17900 (struct fast_tracepoint_jump): New.
17901 (fast_tracepoint_jump_insn): New.
17902 (fast_tracepoint_jump_shadow): New.
17903 (find_fast_tracepoint_jump_at): New.
17904 (fast_tracepoint_jump_here): New.
17905 (delete_fast_tracepoint_jump): New.
17906 (set_fast_tracepoint_jump): New.
17907 (uninsert_fast_tracepoint_jumps_at): New.
17908 (reinsert_fast_tracepoint_jumps_at): New.
17909 (set_breakpoint_at): Use write_inferior_memory.
17910 (uninsert_raw_breakpoint): Use write_inferior_memory.
17911 (check_mem_read): Mask out fast tracepoint jumps.
17912 (check_mem_write): Mask out fast tracepoint jumps.
17913 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17914 (set_fast_tracepoint_jump): Declare.
17915 (delete_fast_tracepoint_jump)
17916 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17917 (reinsert_fast_tracepoint_jumps_at): Declare.
17918 * regcache.c: Don't compile many functions when building the
17919 in-process agent library.
17920 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17921 the register buffer in the heap.
17922 (free_register_cache): If the register buffer isn't owned by the
17923 regcache, don't free it.
17924 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17925 pre-existing register caches.
17926 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17927 type.
17928 (convert_ascii_to_int): : Constify `from' parameter type.
17929 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17930 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17931 the needed buffer in-place.
17932 (relocate_instruction): New.
17933 * server.c (handle_query) <qSymbols>: If the target supports
17934 tracepoints, give it a chance of looking up symbols. Report
17935 support for fast tracepoints.
17936 (handle_status): Stabilize threads.
17937 (process_serial_event): Adjust.
17938 * server.h (struct fast_tracepoint_jump): Forward declare.
17939 (struct process_info) <fast_tracepoint_jumps>: New field.
17940 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17941 (decode_X_packet, decode_M_packet): Adjust.
17942 (relocate_instruction): Declare.
17943 (in_process_agent_loaded): Declare.
17944 (tracepoint_look_up_symbols): Declare.
17945 (struct fast_tpoint_collect_status): Declare.
17946 (fast_tracepoint_collecting): Declare.
17947 (force_unlock_trace_buffer): Declare.
17948 (handle_tracepoint_bkpts): Declare.
17949 (initialize_low_tracepoint)
17950 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17951 * target.h (struct target_ops) <stabilize_threads,
17952 install_fast_tracepoint_jump_pad>: New fields.
17953 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17954 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17955 [HAVE_STDINT_H]: Include stdint.h.
17956 (trace_debug_1): Rename to ...
17957 (trace_vdebug): ... this.
17958 (trace_debug): Rename to ...
17959 (trace_debug_1): ... this. Add `level' parameter.
17960 (trace_debug): New.
17961 (ATTR_USED, ATTR_NOINLINE): New.
17962 (IP_AGENT_EXPORT): New.
17963 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17964 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17965 (about_to_request_buffer_space, trace_buffer_is_full)
17966 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17967 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17968 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17969 (traceframe_write_count, traceframes_created)
17970 (trace_state_variables)
17971 New renaming defines.
17972 (struct ipa_sym_addresses): New.
17973 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17974 (symbol_list): New.
17975 (ipa_sym_addrs): New.
17976 (all_tracepoint_symbols_looked_up): New.
17977 (in_process_agent_loaded): New.
17978 (write_e_ipa_not_loaded): New.
17979 (maybe_write_ipa_not_loaded): New.
17980 (tracepoint_look_up_symbols): New.
17981 (debug_threads) [IN_PROCESS_AGENT]: New.
17982 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17983 (UNKNOWN_SIDE_EFFECTS): New.
17984 (stop_tracing): New.
17985 (flush_trace_buffer): New.
17986 (stop_tracing_bkpt): New.
17987 (flush_trace_buffer_bkpt): New.
17988 (read_inferior_integer): New.
17989 (read_inferior_uinteger): New.
17990 (read_inferior_data_pointer): New.
17991 (write_inferior_data_pointer): New.
17992 (write_inferior_integer): New.
17993 (write_inferior_uinteger): New.
17994 (struct collect_static_trace_data_action): Delete.
17995 (enum tracepoint_type): New.
17996 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17997 <actions_str, step_actions, step_actions_str>: Only include in
17998 GDBserver.
fa593d66
PA
17999 <orig_size, obj_addr_on_target, adjusted_insn_addr>
18000 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
18001 (tracepoints): Use IP_AGENT_EXPORT.
18002 (last_tracepoint): Don't include in the IPA.
18003 (stopping_tracepoint): Use IP_AGENT_EXPORT.
18004 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
18005 (alloced_trace_state_variables): New.
18006 (trace_state_variables): Use IP_AGENT_EXPORT.
18007 (traceframe_t): Delete unused variable.
18008 (circular_trace_buffer): Don't include in the IPA.
18009 (trace_buffer_start): Delete.
18010 (struct trace_buffer_control): New.
18011 (trace_buffer_free): Delete.
18012 (struct ipa_trace_buffer_control): New.
18013 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18014 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18015 New.
18016 (trace_buffer_ctrl): New.
18017 (TRACE_BUFFER_CTRL_CURR): New.
18018 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18019 Reimplement as macros.
18020 (trace_buffer_wrap): Delete.
18021 (traceframe_write_count, traceframe_read_count)
18022 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18023 (struct tracepoint_hit_ctx) <type>: New field.
18024 (struct fast_tracepoint_ctx): New.
18025 (memory_barrier): New.
18026 (cmpxchg): New.
18027 (record_tracepoint_error): Update atomically in the IPA.
18028 (clear_inferior_trace_buffer): New.
18029 (about_to_request_buffer_space): New.
18030 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18031 updating the same buffer.
18032 (add_tracepoint): Default the tracepoint's type to trap
18033 tracepoint, and orig_size to -1.
18034 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18035 internal variables.
18036 (create_trace_state_variable): New parameter `gdb'. Handle it.
18037 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18038 (cmd_qtdp): Handle fast tracepoints.
18039 (cmd_qtdv): Adjust.
18040 (max_jump_pad_size): New.
18041 (gdb_jump_pad_head): New.
18042 (get_jump_space_head): New.
18043 (claim_jump_space): New.
18044 (sort_tracepoints): New.
18045 (MAX_JUMP_SIZE): New.
18046 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18047 IPA.
18048 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18049 support. Upload fast traceframes, and delete internal IPA
18050 breakpoints.
18051 (stop_tracing_handler): New.
18052 (flush_trace_buffer_handler): New.
18053 (cmd_qtstop): Upload fast tracepoints.
18054 (response_tracepoint): Handle fast tracepoints.
18055 (tracepoint_finished_step): Upload fast traceframes. Set the
18056 tracepoint hit context's tracepoint type.
18057 (handle_tracepoint_bkpts): New.
18058 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18059 type. Add comment about fast tracepoints.
18060 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18061 non-existing action_str field.
18062 (get_context_regcache): Handle fast tracepoints.
18063 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18064 to the regcache.
18065 (fast_tracepoint_from_jump_pad_address): New.
18066 (fast_tracepoint_from_ipa_tpoint_address): New.
18067 (collecting_t): New.
18068 (force_unlock_trace_buffer): New.
18069 (fast_tracepoint_collecting): New.
18070 (collecting): New.
18071 (gdb_collect): New.
18072 (write_inferior_data_ptr): New.
18073 (target_tp_heap): New.
18074 (target_malloc): New.
18075 (download_agent_expr): New.
18076 (UALIGN): New.
18077 (download_tracepoints): New.
18078 (download_trace_state_variables): New.
18079 (upload_fast_traceframes): New.
18080 (IPA_FIRST_TRACEFRAME): New.
18081 (IPA_NEXT_TRACEFRAME_1): New.
18082 (IPA_NEXT_TRACEFRAME): New.
18083 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18084 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18085 (gdb_jump_pad_buffer_end): New.
18086 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18087 (initialize_tracepoint): Adjust.
18088 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18089 buffer. Initialize the low module.
18090 * utils.c (PREFIX, TOOLNAME): New.
18091 (malloc_failure): Use PREFIX.
18092 (error): In the IPA, an error causes an exit.
18093 (fatal, warning): Use PREFIX.
18094 (internal_error): Use TOOLNAME.
18095 (NUMCELLS): Increase to 10.
18096 * configure, config.in: Regenerate.
18097
d149dd1d
PA
180982010-06-01 Pedro Alves <pedro@codesourcery.com>
18099
18100 * server.c (handle_query) <qSupported>: Do two passes over the
18101 qSupported string to avoid nesting strtok.
18102
f6528abd
JK
181032010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18104
18105 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18106 (CDEPS): New.
18107 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18108 -Wl,--dynamic-list.
18109 * configure: Regenerate.
18110 * proc-service.list: New.
18111
ca2a87a0
JK
181122010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18113
18114 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18115 New comment.
18116
363a6e9f
OS
181172010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18118
18119 * gdbreplay.c (remote_open): Check error return from socket() call by
18120 its equality to -1 not by it being negative.
18121 * remote-utils.c (remote_open): Likewise.
18122
d23b6cb1
PA
181232010-05-23 Pedro Alves <pedro@codesourcery.com>
18124
18125 * config.h: Regenerate.
18126
28d3cf85
MK
181272010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18128
18129 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18130 doesn't provide PTRACE_GET_THREAD_AREA.
18131
fea36a59
MK
181322010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18133
18134 * linux-m68k-low.c: Include <asm/ptrace.h>
18135 (ps_get_thread_area): Implement.
18136
24b066ba
DE
181372010-05-03 Doug Evans <dje@google.com>
18138
18139 * event-loop.c (struct callback_event): New struct.
18140 (callback_list): New global.
18141 (append_callback_event, delete_callback_event): New functions.
18142 (process_callback): New function.
18143 (start_event_loop): Call it.
18144 * remote-utils.c (NOT_SCHEDULED): Define.
18145 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18146 moved out of readchar.
18147 (readchar): Rewrite. Call reschedule before returning.
18148 (reset_readchar): New function.
18149 (remote_close): Call it.
18150 (process_remaining, reschedule): New functions.
18151 * server.h (callback_handler_func): New typedef.
18152 (append_callback_event, delete_callback_event): Declare.
18153
9836d6ea
PA
181542010-05-03 Pedro Alves <pedro@codesourcery.com>
18155
18156 * proc-service.c (ps_pglobal_lookup): Use
18157 thread_db_look_up_one_symbol.
18158 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18159 parameter. Use it instead of all_symbols_looked_up.
18160 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18161 field.
18162 (all_symbols_looked_up): Don't declare.
18163 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18164 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18165 field.
18166 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18167 Set all_symbols_looked_up here.
18168 (thread_db_look_up_one_symbol): New.
18169 (thread_db_get_tls_address): Adjust.
18170 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18171 thread_db object on the heap, and tentatively set it in the
18172 process structure.
18173 (thread_db_init): Don't set all_symbols_looked_up here.
18174 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18175
7984d532
PA
181762010-05-03 Pedro Alves <pedro@codesourcery.com>
18177
18178 * linux-low.c (linux_kill, linux_detach): Adjust.
18179 (status_pending_p_callback): Remove redundant statement. Check
18180 for !TARGET_WAITIKIND_IGNORE, instead of
18181 TARGET_WAITKIND_STOPPED.
18182 (handle_tracepoints): Make sure LWP is locked. Adjust.
18183 (linux_wait_for_event_1): Adjust.
18184 (linux_cancel_breakpoints): New.
18185 (unsuspend_one_lwp): New.
18186 (unsuspend_all_lwps): New.
18187 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18188 (send_sigstop_callback): Change return type to int, add new
18189 `except' parameter and handle it.
18190 (suspend_and_send_sigstop_callback): New.
18191 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18192 pass them down. If SUSPEND, also increment the lwp's suspend
18193 count.
18194 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18195 (need_step_over_p): Don't consider suspended LWPs.
18196 (start_step_over): Adjust.
18197 (proceed_one_lwp): Change return type to int, add new `except'
18198 parameter and handle it.
18199 (unsuspend_and_proceed_one_lwp): New.
18200 (proceed_all_lwps): Use find_inferior instead of
18201 for_each_inferior.
18202 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18203 also decrement the suspend count of LWPs. Pass `except' down,
18204 instead of hacking its suspend count.
18205 (linux_pause_all): Add `freeze' parameter. Adjust.
18206 (linux_unpause_all): New.
18207 (linux_target_ops): Install linux_unpause_all.
18208 * server.c (handle_status): Adjust.
18209 * target.h (struct target_ops): New fields `unpause_all' and
18210 `cancel_breakpoints'. Add new parameter to `pause_all'.
18211 (pause_all): Add new `freeze' parameter.
18212 (unpause_all): New.
18213 (cancel_breakpoints): New.
18214 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18215 cancel breakpoints.
18216 (cmd_qtstart): Pause threads.
18217 (stop_tracing): Pause threads, and cancel breakpoints.
18218 * win32-low.c (win32_target_ops): Adjust.
18219
e471f25b
PA
182202010-05-03 Pedro Alves <pedro@codesourcery.com>
18221
18222 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18223 the inferior right away from here...
18224 (linux_wait_1): ... to here, and adjust to check the thread's
18225 last_resume_kind instead of the lwp's step or stop_expected flags.
18226
1915ef4f
PA
182272010-05-02 Pedro Alves <pedro@codesourcery.com>
18228
18229 * README: Use consistent `GDB' and `GDBserver' spellings.
18230
f9e39928
PA
182312010-05-02 Pedro Alves <pedro@codesourcery.com>
18232
18233 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18234 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18235 (linux_detach_one_lwp): Assume the lwp is stopped.
18236 (any_thread_of): Delete.
18237 (linux_detach): Stop all lwps here. Don't blindly delete all
18238 breakpoints.
18239 (delete_lwp_callback): New.
18240 (linux_mourn): Delete all lwps of the process that is gone.
18241 (linux_wait_1): Don't delete the last lwp of the process here.
18242 * mem-break.h (mark_breakpoints_out): Declare.
18243 * mem-break.c (mark_breakpoints_out): New.
18244 (free_all_breakpoints): Use it.
18245 * server.c (handle_target_event): If the process is gone, mark
18246 breakpoints out.
18247 * thread-db.c (struct thread_db) <create_bp>: New field.
18248 (thread_db_enable_reporting): Fix prototype. Store a thread event
18249 breakpoint reference in the thread_db struct.
18250 (thread_db_load_search): Clear the thread_db object.
18251 (try_thread_db_load_1): Ditto.
18252 (switch_to_process): New.
18253 (disable_thread_event_reporting): Use it.
18254 (remove_thread_event_breakpoints): New.
18255 (thread_db_detach, thread_db_mourn): Use it.
18256
1e7fc18c
PA
182572010-05-01 Pedro Alves <pedro@codesourcery.com>
18258
18259 * linux-low.c (linux_enable_event_reporting): New.
18260 (linux_wait_for_event_1, handle_extended_wait): Use it.
18261
02fc4de7
PA
182622010-04-30 Pedro Alves <pedro@codesourcery.com>
18263
18264 * linux-low.c (linux_kill_one_lwp, linux_kill)
18265 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18266 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18267 SIGSTOP even if the LWP is stopped.
18268 (send_sigstop_callback): New.
18269 (stop_all_lwps): Use send_sigstop_callback instead.
18270 (linux_resume_one_thread): Adjust.
18271 (proceed_one_lwp): Still proceed an LWP that the client has
18272 requested to stop, if we haven't reported it as stopped yet. Make
18273 sure that LWPs the client want stopped, have a pending SIGSTOP.
18274
bc3b5632
DE
182752010-04-26 Doug Evans <dje@google.com>
18276
ae1ada35
DE
18277 * server.c (handle_general_set): Make static.
18278
bc3b5632
DE
18279 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18280 Print received char after testing for error/eof instead of before.
18281 (input_interrupt): Tweak comment.
18282
65730243
DE
182832010-04-23 Doug Evans <dje@google.com>
18284
18285 * server.c (start_inferior): Print inferior argv if --debug.
18286
a8ae7dc0
AR
182872010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18288
18289 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18290 * nto-x86-low.c: Include server.h
18291
1c07cc19
PM
182922010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18293
18294 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18295 be consistent with other sources of this directory.
18296 (init_registers_amd64): Correct name of source file of this function
18297 in the comment.
18298
e0a61e09
PM
182992010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18300
18301 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18302 64-bit executables.
18303
54709339
PM
183042010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18305
18306 * win32-i386-low.c: Add 64-bit support.
18307 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18308 (init_registers_amd64): Declare.
18309 (mappings): Add 64-bit version of array.
18310 (init_windows_x86): New function.
18311 (the_low_target): Change init_arch field to init_windows_x86.
18312
e8f0053d
PM
183132010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18314
18315 * win32-low.c: Adapt to support also 64-bit architecture.
18316 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18317 (get_image_name): Use SIZE_T type for local variable `done'.
18318 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18319 (toolhelp_get_dll_name): Idem.
18320 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18321 Use uintptr_t typecast to avoid warning.
18322 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18323 (handle_exception): Use phex_nz to avoid warning.
18324 (win32_wait): Remove unused local variable `process'.
18325
c481e77e
PM
183262010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18327
18328 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18329 `amd64-avx.o'.
18330
12ea4b69
PM
183312010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18332
18333 * configure.ac: Use `ws2_32' library for srv_mingw.
18334 * configure: Regenerate.
18335 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18336 * remote-utils.c: Likewise.
18337
f6d1620c
L
183382010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18339
18340 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18341 if __x86_64__ is defined.
18342
8e642873
PM
183432010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18344
18345 * configure: Regenerate.
18346
711e434b
PM
183472010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18348
18349 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18350 * target.h (target_ops): New get_tib_address field.
18351 * win32-low.h (win32_thread_info): Add thread_local_base field.
18352 * win32-low.c (child_add_thread): Add tlb argument.
18353 Set thread_local_base field to TLB.
18354 (get_child_debug_event): Adapt to child_add_thread change.
18355 (win32_get_tib_address): New function.
18356 (win32_target_ops): Set get_tib_address field to
18357 win32_get_tib_address.
18358 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18359
505106cd
PA
183602010-04-12 Pedro Alves <pedro@codesourcery.com>
18361
505106cd
PA
18362 * linux-low.c (linux_mourn): Also remove the process.
18363 * server.c (handle_target_event): Don't remove the process here.
18364 * nto-low.c (nto_mourn): New.
18365 (nto_target_ops): Install it.
18366 * spu-low.c (spu_mourn): New.
18367 (spu_target_ops): Install it.
18368 * win32-low.c (win32_mourn): New.
18369 (win32_target_ops): Install it.
18370
e8470a06
PA
183712010-04-12 Pedro Alves <pedro@codesourcery.com>
18372
18373 * server.h (buffer_xml_printf): Remove redundant `;'.
18374
45ba0d02
PA
183752010-04-12 Pedro Alves <pedro@codesourcery.com>
18376
18377 * regcache.c (set_register_cache): Invalidate regcaches before
18378 changing the register cache layout.
18379 (regcache_invalidate_one): Allow a NULL regcache.
18380 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18381 regcaches before changing the register cache layout or the target
18382 regsets.
18383
59e04013
L
183842010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18385
18386 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18387 variable warning on Linux/x86-64.
18388
8336d594
PA
183892010-04-11 Pedro Alves <pedro@codesourcery.com>
18390
18391 GDBserver disconnected tracing support.
18392
18393 * linux-low.c (linux_remove_process): Delete.
18394 (add_lwp): Don't set last_resume_kind here.
18395 (linux_kill): Use `mourn'.
18396 (linux_detach): Use `thread_db_detach', and `mourn'.
18397 (linux_mourn): New.
18398 (linux_attach_lwp_1): Adjust comment.
18399 (linux_attach): last_resume_kind moved the thread_info; adjust.
18400 (status_pending_p_callback): Adjust.
18401 (linux_wait_for_event_1): Adjust.
18402 (count_events_callback, select_singlestep_lwp_callback)
18403 (select_event_lwp_callback, cancel_breakpoints_callback)
18404 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18405 (proceed_one_lwp): Adjust.
18406 (linux_async): Add debug output.
18407 (linux_thread_stopped): New.
18408 (linux_pause_all): New.
18409 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18410 linux_pause_all.
18411 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18412 (thread_db_free): Delete declaration.
18413 (thread_db_detach, thread_db_mourn): Declare.
18414 * thread-db.c (thread_db_init): Use thread_db_mourn.
18415 (thread_db_free): Delete, split in two.
18416 (disable_thread_event_reporting): New.
18417 (thread_db_detach): New.
18418 (thread_db_mourn): New.
18419
18420 * server.h (struct thread_info) <last_resume_kind>: New field.
18421 <attached>: Add comment.
18422 <gdb_detached>: New field.
18423 (handler_func): Change return type to int.
18424 (handle_serial_event, handle_target_event): Ditto.
18425 (gdb_connected): Declare.
18426 (tracing): Delete.
18427 (disconnected_tracing): Declare.
18428 (stop_tracing): Declare.
18429
18430 * server.c (handle_query) <qSupported>: Report support for
18431 disconnected tracing.
18432 (queue_stop_reply_callback): Account for running threads.
18433 (gdb_wants_thread_stopped): New.
18434 (gdb_wants_all_threads_stopped): New.
18435 (gdb_reattached_process): New.
18436 (handle_status): Clear the `gdb_detached' flag of all processes.
18437 In all-stop, stop all threads.
18438 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18439 (process_serial_event): If the remote connection breaks, or if an
18440 exit was forced with "monitor exit", force an event loop exit.
18441 Handle disconnected tracing on detach.
18442 (handle_serial_event): Adjust.
18443 (handle_target_event): If GDB isn't connected, forward events back
18444 to the inferior, unless the last process exited, in which case,
18445 exit gdbserver. Adjust interface.
18446
18447 * remote-utils.c (remote_open): Don't block in accept. Instead
18448 register an event loop source on the listen socket file
18449 descriptor. Refactor bits into ...
18450 (listen_desc): ... this new global.
18451 (gdb_connected): ... this new function.
18452 (enable_async_notification): ... this new function.
18453 (handle_accept_event): ... this new function.
18454 (remote_close): Clear remote_desc.
18455
18456 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18457
18458 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18459 New fields.
18460 (mourn_inferior): Define.
18461 (target_process_qsupported): Avoid the dangling else problem.
18462 (thread_stopped): Define.
18463 (pause_all): Define.
18464 (target_waitstatus_to_string): Declare.
18465 * target.c (target_waitstatus_to_string): New.
18466
18467 * tracepoint.c (tracing): Make extern.
18468 (disconnected_tracing): New.
18469 (stop_tracing): Make extern. Handle tracing stops due to GDB
18470 disconnecting.
18471 (cmd_qtdisconnected): New.
18472 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18473 (handle_tracepoint_general_set): Handle QTDisconnected.
18474
18475 * event-loop.c (event_handler_func): Change return type to int.
18476 (process_event): Bail out if the event handler wants the event
18477 loop to stop.
18478 (handle_file_event): Ditto.
18479 (start_event_loop): Bail out if the event handler wants the event
18480 loop to stop.
18481
18482 * nto-low.c (nto_target_ops): Adjust.
18483 * spu-low.c (spu_wait): Don't remove the process here.
18484 (spu_target_ops): Adjust.
18485 * win32-low.c (win32_wait): Don't remove the process here.
18486 (win32_target_ops): Adjust.
18487
5d267c4c
PA
184882010-04-11 Pedro Alves <pedro@codesourcery.com>
18489
18490 * regcache.c (realloc_register_cache): Invalidate inferior's
18491 regcache before recreating it.
18492
623ccd72
PA
184932010-04-09 Pedro Alves <pedro@codesourcery.com>
18494
18495 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18496
219f2f23
PA
184972010-04-09 Stan Shebs <stan@codesourcery.com>
18498 Pedro Alves <pedro@codesourcery.com>
18499
18500 * server.h (LONGEST): New.
18501 (struct thread_info) <while_stepping>: New field.
18502 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18503 Declare.
18504 (initialize_tracepoint, handle_tracepoint_general_set)
18505 (handle_tracepoint_query, tracepoint_finished_step)
18506 (tracepoint_was_hit, release_while_stepping_state_list):
18507 (current_traceframe): Declare.
18508 * server.c (handle_general_set): Handle tracepoint packets.
18509 (read_memory): New.
18510 (write_memory): New.
18511 (handle_search_memory_1): Use read_memory.
18512 (handle_query): Report support for conditional tracepoints, trace
18513 state variables, and tracepoint sources. Handle tracepoint
18514 queries.
18515 (main): Initialize the tracepoints module.
18516 (process_serial_event): Handle traceframe reads/writes.
18517
18518 * linux-low.c (handle_tracepoints): New.
18519 (linux_wait_1): Call it.
18520 (linux_resume_one_lwp): Handle while-stepping.
18521 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18522 (linux_target_ops): Install them.
18523 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18524 New field.
18525 * linux-x86-low.c (x86_supports_tracepoints): New.
18526 (the_low_target). Install it.
18527
18528 * mem-break.h (delete_breakpoint): Declare.
18529 * mem-break.c (delete_breakpoint): Make external.
18530
18531 * target.h (struct target_ops): Add `supports_tracepoints',
18532 `read_pc', and `write_pc' fields.
18533 (target_supports_tracepoints): Define.
18534 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18535 (phex_nz): New.
18536
18537 * regcache.h (struct regcache) <registers_owned>: New field.
18538 (init_register_cache, regcache_cpy): Declare.
18539 (regcache_read_pc, regcache_write_pc): Declare.
18540 (register_cache_size): Declare.
18541 (supply_regblock): Declare.
18542 * regcache.c (init_register_cache): New.
18543 (new_register_cache): Use it.
18544 (regcache_cpy): New.
18545 (register_cache_size): New.
18546 (supply_regblock): New.
18547 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18548
219f2f23
PA
18549 * tracepoint.c: New.
18550
18551 * Makefile.in (OBS): Add tracepoint.o.
18552 (tracepoint.o): New rule.
18553
3a13a53b
L
185542010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18555
18556 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18557 (i386-mmx.o): New.
18558 (i386-mmx.c): Likewise.
18559 (i386-mmx-linux.o): Likewise.
18560 (i386-mmx-linux.c): Likewise.
18561
18562 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18563 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18564 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18565 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18566
18567 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18568 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18569 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18570
1570b33e
L
185712010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18572
18573 * Makefile.in (clean): Updated.
18574 (i386-avx.o): New.
18575 (i386-avx.c): Likewise.
18576 (i386-avx-linux.o): Likewise.
18577 (i386-avx-linux.c): Likewise.
18578 (amd64-avx.o): Likewise.
18579 (amd64-avx.c): Likewise.
18580 (amd64-avx-linux.o): Likewise.
18581 (amd64-avx-linux.c): Likewise.
18582
18583 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18584 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18585 (srv_amd64_regobj): Add amd64-avx.o.
18586 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18587 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18588 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18589 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18590 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18591 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18592 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18593
18594 * i387-fp.c: Include "i386-xstate.h".
18595 (i387_xsave): New.
18596 (i387_cache_to_xsave): Likewise.
18597 (i387_xsave_to_cache): Likewise.
18598 (x86_xcr0): Likewise.
18599
18600 * i387-fp.h (i387_cache_to_xsave): Likewise.
18601 (i387_xsave_to_cache): Likewise.
18602 (x86_xcr0): Likewise.
18603
18604 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18605 * linux-crisv32-low.c (target_regsets): Likewise.
18606 * linux-m68k-low.c (target_regsets): Likewise.
18607 * linux-mips-low.c (target_regsets): Likewise.
18608 * linux-ppc-low.c (target_regsets): Likewise.
18609 * linux-s390-low.c (target_regsets): Likewise.
18610 * linux-sh-low.c (target_regsets): Likewise.
18611 * linux-sparc-low.c (target_regsets): Likewise.
18612 * linux-xtensa-low.c (target_regsets): Likewise.
18613
18614 * linux-low.c: Include <sys/uio.h>.
18615 (regsets_fetch_inferior_registers): Support nt_type.
18616 (regsets_store_inferior_registers): Likewise.
18617 (linux_process_qsupported): New.
18618 (linux_target_ops): Add linux_process_qsupported.
18619
18620 * linux-low.h (regset_info): Add nt_type.
18621 (linux_target_ops): Add process_qsupported.
18622
18623 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18624 and <sys/uio.h>.
18625 (init_registers_i386_avx_linux): New.
18626 (init_registers_amd64_avx_linux): Likewise.
18627 (xmltarget_i386_linux_no_xml): Likewise.
18628 (xmltarget_amd64_linux_no_xml): Likewise.
18629 (PTRACE_GETREGSET): Likewise.
18630 (PTRACE_SETREGSET): Likewise.
18631 (x86_fill_xstateregset): Likewise.
18632 (x86_store_xstateregset): Likewise.
18633 (use_xml): Likewise.
18634 (x86_linux_update_xmltarget): Likewise.
18635 (x86_linux_process_qsupported): Likewise.
18636 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18637 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18638 init_registers_i386_linux here. Call
18639 x86_linux_update_xmltarget.
18640 (the_low_target): Add x86_linux_process_qsupported.
18641
18642 * server.c (handle_query): Call target_process_qsupported.
18643
18644 * target.h (target_ops): Add process_qsupported.
18645 (target_process_qsupported): New.
18646
fc7238bb
PA
186472010-04-03 Pedro Alves <pedro@codesourcery.com>
18648
18649 * inferiors.c (add_thread): Set last_status kind to
18650 TARGET_WAITKIND_IGNORE.
18651 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18652 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18653 (linux_wait_1): Move `thread' local definition to block that uses
18654 it. Don't NULL initialize `event_child'.
18655 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18656 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18657 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18658
bdabb078
PA
186592010-04-01 Pedro Alves <pedro@codesourcery.com>
18660
18661 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18662 an extended waitstatus, or by a watchpoint.
18663 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18664 thread was stepping or has been stopped by a watchpoint.
18665
d3bbe7a0
PA
186662010-04-01 Pedro Alves <pedro@codesourcery.com>
18667
18668 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18669 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18670 of another, then delete the previous, and validate all
18671 breakpoints.
18672 (validate_inserted_breakpoint): New.
18673 (delete_disabled_breakpoints): New.
18674 (validate_breakpoints): New.
18675 (check_mem_read): Validate breakpoints before trusting their
18676 shadow. Delete disabled breakpoints.
18677 (check_mem_write): Validate breakpoints before trusting they
18678 should be inserted. Delete disabled breakpoints.
18679 * mem-break.h (validate_breakpoints):
18680 * server.c (handle_query): Validate breakpoints when we see a
18681 qSymbol query.
18682
8b07ae33
PA
186832010-04-01 Pedro Alves <pedro@codesourcery.com>
18684
18685 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18686 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18687 if we could tell there's a GDB breakpoint at stop_pc.
18688 (need_step_over_p): Don't do a step over if we find a GDB
18689 breakpoint at the resume PC.
18690
18691 * mem-break.c (struct raw_breakpoint): New.
18692 (enum bkpt_type): New type `gdb_breakpoint'.
18693 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18694 fields. New field `raw'.
18695 (find_raw_breakpoint_at): New.
18696 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18697 breakpoint instead.
18698 (set_breakpoint_at): Adjust.
18699 (delete_raw_breakpoint): New.
18700 (release_breakpoint): New.
18701 (delete_breakpoint): Rename to...
18702 (delete_breakpoint_1): ... this. Add proc parameter. Use
18703 release_breakpoint. Return ENOENT.
18704 (delete_breakpoint): Reimplement.
18705 (find_breakpoint_at): Delete.
18706 (find_gdb_breakpoint_at): New.
18707 (delete_breakpoint_at): Delete.
18708 (set_gdb_breakpoint_at): New.
18709 (delete_gdb_breakpoint_at): New.
18710 (gdb_breakpoint_here): New.
18711 (set_reinsert_breakpoint): Use release_breakpoint.
18712 (uninsert_breakpoint): Rename to ...
18713 (uninsert_raw_breakpoint): ... this.
18714 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18715 (reinsert_raw_breakpoint): Change parameter type to
18716 raw_breakpoint.
18717 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18718 instead.
18719 (check_breakpoints): Adjust. Use release_breakpoint.
18720 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18721 (breakpoint_inserted_here): Ditto.
18722 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18723 Don't trust the breakpoint's shadow if it is not inserted.
18724 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18725 (delete_all_breakpoints): Adjust.
18726 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18727 use delete_breakpoint_1.
18728
18729 * mem-break.h (breakpoints_supported): Delete declaration.
18730 (set_gdb_breakpoint_at): Declare.
18731 (gdb_breakpoint_here): Declare.
18732 (delete_breakpoint_at): Delete.
18733 (delete_gdb_breakpoint_at): Declare.
18734
18735 * server.h (struct raw_breakpoint): Forward declare.
18736 (struct process_info): New field `raw_breakpoints'.
18737
18738 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18739 breakpoints.
18740
6bf5e0ba
PA
187412010-03-24 Pedro Alves <pedro@codesourcery.com>
18742
18743 * linux-low.c (status_pending_p_callback): Fix comment.
18744 (linux_wait_for_event_1): Move most of the internal breakpoint
18745 handling from here...
18746 (linux_wait_1): ... to here.
18747 (count_events_callback): New.
18748 (select_singlestep_lwp_callback): New.
18749 (select_event_lwp_callback): New.
18750 (cancel_breakpoints_callback): New.
18751 (select_event_lwp): New.
18752 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18753 priority to all LWPs that have had events that should be reported
18754 to the client. Cancel breakpoints when about to reporting the
18755 event to the client, not while stopping lwps. No longer cancel
18756 finished single-steps here.
18757 (cancel_finished_single_step): Delete.
18758 (cancel_finished_single_steps): Delete.
18759
414a389f
PA
187602010-03-24 Pedro Alves <pedro@codesourcery.com>
18761
18762 * mem-break.c (enum bkpt_type): New.
18763 (struct breakpoint): New field `type'.
18764 (set_breakpoint_at): Change return type to struct breakpoint
18765 pointer. Set type to `other_breakpoint' by default.
18766 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18767 in the breakpoint list.
18768 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18769 (reinsert_breakpoint): Rename to ...
18770 (reinsert_raw_breakpoint): ... this.
18771 (reinsert_breakpoints_at): Adjust.
18772 * mem-break.h (struct breakpoint): Declare.
18773 (set_breakpoint_at): Change return type to struct breakpoint
18774 pointer.
18775
2280c721
PA
187762010-03-24 Pedro Alves <pedro@codesourcery.com>
18777
18778 * server.c (handle_query): Assign, not compare.
18779
d50171e4
PA
187802010-03-24 Pedro Alves <pedro@codesourcery.com>
18781
18782 Teach linux gdbserver to step-over-breakpoints.
18783
18784 * linux-low.c (can_hardware_single_step): New.
18785 (supports_breakpoints): New.
18786 (handle_extended_wait): If stopping threads, read the stop pc of
18787 the new cloned LWP.
18788 (get_pc): New.
18789 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18790 low target doesn't support retrieving the PC.
18791 (add_lwp): Set last_resume_kind to resume_continue.
18792 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18793 (linux_attach): Don't clear stop_expected. Set the lwp's
18794 last_resume_kind to resume_stop.
18795 (linux_detach_one_lwp): Don't check for removed breakpoints.
18796 (check_removed_breakpoint): Delete.
18797 (status_pending_p): Rename to ...
18798 (status_pending_p_callback): ... this. Don't check for removed
18799 breakpoints. Don't consider threads that are stopped from GDB's
18800 perspective.
18801 (linux_wait_for_lwp): Always read the stop_pc here.
18802 (cancel_breakpoint): New.
18803 (step_over_bkpt): New global.
18804 (linux_wait_for_event_1): Implement stepping over breakpoints.
18805 (gdb_wants_lwp_stopped): New.
18806 (gdb_wants_all_stopped): New.
18807 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18808 single-step traps here. Store the thread's last reported target
18809 wait status.
18810 (send_sigstop): Don't clear stop_expected. Always set it,
18811 instead.
18812 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18813 (cancel_finished_single_step): New.
18814 (cancel_finished_single_steps): New.
18815 (wait_for_sigstop): Don't cancel finished single-step traps here.
18816 (linux_resume_one_lwp): Don't check for removed breakpoints.
18817 Don't set `step' on non-hardware step archs.
18818 (linux_set_resume_request): Ignore resume_stop requests if already
18819 stopping or stopped. Set the lwp's last_resume_kind.
18820 (resume_status_pending_p): Don't check for removed breakpoints.
18821 (need_step_over_p): New.
18822 (start_step_over): New.
18823 (finish_step_over): New.
18824 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18825 requests. Clear the thread's last reported target waitstatus.
18826 Don't use the `suspended' flag. Don't consider pending breakpoints.
18827 (linux_resume): Start a step-over if necessary.
18828 (proceed_one_lwp): New.
18829 (proceed_all_lwps): New.
18830 (unstop_all_lwps): New.
18831 * linux-low.h (struct lwp_info): Rewrite comment for the
18832 `suspended' flag. Add the `stop_pc' field. Delete the
18833 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18834 Add `'last_resume_kind' and `need_step_over' fields.
18835 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18836 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18837 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18838 (set_raw_breakpoint_at): New.
18839 (set_breakpoint_at): Rewrite to use it.
18840 (reinsert_breakpoint_handler): Delete.
18841 (set_reinsert_breakpoint): New.
18842 (reinsert_breakpoint_by_bp): Delete.
18843 (delete_reinsert_breakpoints): New.
18844 (uninsert_breakpoint): Rewrite.
18845 (uninsert_breakpoints_at): New.
18846 (reinsert_breakpoint): Rewrite.
18847 (reinsert_breakpoints_at): New.
18848 (check_breakpoints): Rewrite.
18849 (breakpoint_here): New.
18850 (breakpoint_inserted_here): New.
18851 (check_mem_read): Adjust.
18852 * mem-break.h (breakpoints_supported, breakpoint_here)
18853 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18854 (reinsert_breakpoint_by_bp): Delete declaration.
18855 (delete_reinsert_breakpoints): Declare.
18856 (reinsert_breakpoint): Delete declaration.
18857 (reinsert_breakpoints_at): Declare.
18858 (uninsert_breakpoint): Delete declaration.
18859 (uninsert_breakpoints_at): Declare.
18860 (check_breakpoints): Adjust prototype.
18861 * server.h: Adjust include order.
18862 (struct thread_info): Declare here. Add a `last_status' field.
18863
30ba68cb
MS
188642010-03-23 Michael Snyder <msnyder@vmware.com>
18865
18866 * server.c (crc32): New function.
18867 (handle_query): Add handling for 'qCRC:' request.
18868
b9a881c2
PA
188692010-03-23 Pedro Alves <pedro@codesourcery.com>
18870
18871 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18872 lwp had been stopped by a watchpoint.
18873
e92d13d5
PA
188742010-03-16 Pedro Alves <pedro@codesourcery.com>
18875
18876 * server.h (internal_error): Declare.
18877 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18878 * utils.c (internal_error): New function.
18879
64daa791
AS
188802010-03-15 Andreas Schwab <schwab@redhat.com>
18881
18882 * configure.srv: Fix typo setting srv_regobj.
18883
f52cd8cd
PA
188842010-03-15 Pedro Alves <pedro@codesourcery.com>
18885
18886 * linux-low.c (fetch_register): Avoid passing a non string literal
18887 format to `error'.
18888 (usr_store_inferior_registers): Ditto.
18889
93ae6fdc
PA
188902010-03-14 Pedro Alves <pedro@codesourcery.com>
18891
18892 * linux-low.c (linux_write_memory): Bail out early if peeking
18893 memory failed.
18894
c3adc08c
PA
188952010-03-14 Pedro Alves <pedro@codesourcery.com>
18896
18897 * linux-low.h (struct lwp_info): New fields
18898 `stopped_by_watchpoint' and `stopped_data_address'.
18899 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18900 here, and cache them in the lwp object.
18901 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18902 directly.
18903 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18904 field.
18905 (linux_stopped_by_watchpoint): Rewrite.
18906 (linux_stopped_data_address): Rewrite.
18907
bce522a2
PA
189082010-03-06 Simo Melenius <simo.melenius@iki.fi>
18909
18910 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18911 switching the current inferior, not before.
18912
90884b2b
L
189132010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18914
18915 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18916 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18917 i386-linux.c and amd64-linux.c.
18918 (reg-i386.o): Removed.
18919 (reg-i386.c): Likewise.
18920 (reg-i386-linux.o): Likewise.
18921 (reg-i386-linux.c): Likewise.
18922 (reg-x86-64.o): Likewise.
18923 (reg-x86-64.c): Likewise.
18924 (reg-x86-64-linux.o): Likewise.
18925 (reg-x86-64-linux.c): Likewise.
18926 (i386.o): New.
18927 (i386.c): Likewise.
18928 (i386-linux.o): Likewise.
18929 (i386-linux.c): Likewise.
18930 (amd64.o): Likewise.
18931 (amd64.c): Likewise.
18932 (amd64-linux.o): Likewise.
18933 (amd64-linux.c): Likewise.
18934
18935 * configure.srv (srv_i386_regobj): New.
18936 (srv_i386_linux_regobj): Likewise.
18937 (srv_amd64_regobj): Likewise.
18938 (srv_amd64_linux_regobj): Likewise.
18939 (srv_i386_32bit_xmlfiles): Likewise.
18940 (srv_i386_64bit_xmlfiles): Likewise.
18941 (srv_i386_xmlfiles): Likewise.
18942 (srv_amd64_xmlfiles): Likewise.
18943 (srv_i386_linux_xmlfiles): Likewise.
18944 (srv_amd64_linux_xmlfiles): Likewise.
18945 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18946 srv_xmlfiles to $srv_i386_xmlfiles.
18947 (i[34567]86-*-mingw32ce*): Likewise.
18948 (i[34567]86-*-mingw*): Likewise.
18949 (i[34567]86-*-nto*): Likewise.
18950 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18951 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18952 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18953 (x86_64-*-linux*): Likewise.
18954
18955 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18956 (init_registers_amd64_linux): New.
18957 (x86_arch_setup): Replace init_registers_x86_64_linux with
18958 init_registers_amd64_linux.
18959
193f13e6
MK
189602010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18961
18962 * configure.ac: Check for libdl. If it is not available link against
18963 static libthread_db.
18964 * configure: Regenerate.
18965
85d721b8
PA
189662010-02-22 Pedro Alves <pedro@codesourcery.com>
18967
18968 PR9605
18969
18970 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18971 handing a read watchpoint.
18972 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18973
6076632b
DE
189742010-02-12 Doug Evans <dje@google.com>
18975
18976 * linux-low.c (linux_supports_tracefork_flag): Document.
18977 (linux_look_up_symbols): Add comment.
18978
3327ccf7
L
189792010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18980
18981 * regcache.c (supply_register): Clear regcache if buf is NULL.
18982
0718675c 189832010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18984 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18985
18986 * inferiors.c (find_inferior): Add function documentation.
18987 (unloaded_dll): Handle the case where the unloaded dll has not
18988 been previously registered in the dll list.
18989
177321bd
DJ
189902010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18991
18992 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18993 (thumb2_breakpoint): New.
18994 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18995
2b009048
DJ
189962010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18997
18998 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18999 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
19000 breakpoints.
19001
3be029c7
PA
190022010-01-21 Pedro Alves <pedro@codesourcery.com>
19003
19004 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
19005
18f5de3b
JK
190062010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19007
19008 * linux-s390-low.c (s390_collect_ptrace_register)
19009 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
19010
3743bb4f
DE
190112010-01-21 Doug Evans <dje@google.com>
19012
14ce3065
DE
19013 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19014 (PTRACE_ARG4_TYPE): New macro.
19015 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19016 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19017 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19018 (usr_store_inferior_registers): Ditto.
19019 (linux_read_memory, linux_write_memory): Ditto.
19020 (linux_test_for_tracefork): Ditto.
19021
3743bb4f
DE
19022 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19023 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19024
8b315be5
PA
190252010-01-21 Pedro Alves <pedro@codesourcery.com>
19026
19027 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19028 target.
19029
85492558
PA
190302010-01-21 Pedro Alves <pedro@codesourcery.com>
19031
19032 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19033 prototype to take a regcache. Adjust.
19034
442ea881
PA
190352010-01-20 Pedro Alves <pedro@codesourcery.com>
19036
19037 * regcache.h (struct thread_info): Forward declare.
19038 (struct regcache): New.
19039 (new_register_cache): Adjust prototype.
19040 (get_thread_regcache): Declare.
19041 (free_register_cache): Adjust prototype.
19042 (registers_to_string, registers_from_string): Ditto.
19043 (supply_register, supply_register_by_name, collect_register)
19044 (collect_register_as_string, collect_register_by_name): Ditto.
19045 * regcache.c (struct inferior_regcache_data): Delete.
19046 (get_regcache): Rename to ...
19047 (get_thread_regcache): ... this. Adjust. Switch inferior before
19048 fetching registers.
19049 (regcache_invalidate_one): Adjust.
19050 (regcache_invalidate): Fix prototype.
19051 (new_register_cache): Return the new register cache.
19052 (free_register_cache): Change prototype.
19053 (realloc_register_cache): Adjust.
19054 (registers_to_string): Change prototype to take a regcache. Adjust.
19055 (registers_from_string): Ditto.
19056 (register_data): Ditto.
19057 (supply_register): Ditto.
19058 (supply_register_by_name): Ditto.
19059 (collect_register): Ditto.
19060 (collect_register_as_string): Ditto.
19061 (collect_register_by_name): Ditto.
19062 * server.c (process_serial_event): Adjust.
19063 * linux-low.h (regset_fill_func, regset_store_func): Change
19064 prototype.
19065 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19066 Change prototype.
19067 * linux-low.c (get_stop_pc): Adjust.
19068 (check_removed_breakpoint): Adjust.
19069 (linux_wait_for_event): Adjust.
19070 (linux_resume_one_lwp): Adjust.
19071 (fetch_register): Add regcache parameter. Adjust.
19072 (usr_store_inferior_registers): Ditto.
19073 (regsets_fetch_inferior_registers): Ditto.
19074 (regsets_store_inferior_registers): Ditto.
19075 (linux_fetch_registers, linux_store_registers): Ditto.
19076 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19077 regcache. Adjust.
43aaf8b6
PA
19078 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19079 Ditto.
442ea881
PA
19080 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19081 prototype to take a regcache.
19082 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19083 * remote-utils.c (convert_ascii_to_int, outreg)
19084 (prepare_resume_reply): Change prototype to take a regcache.
19085 Adjust.
19086 * target.h (struct target_ops) <fetch_registers, store_registers>:
19087 Change prototype to take a regcache.
19088 (fetch_inferior_registers, store_inferior_registers): Change
19089 prototype to take a regcache. Adjust.
19090 * proc-service.c (ps_lgetregs): Adjust.
19091 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19092 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19093 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19094 take a regcache. Adjust.
19095 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19096 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19097 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19098 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19099 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19100 (cris_cannot_fetch_register):
19101 (cris_breakpoint_at): Change prototype to take a regcache.
19102 Adjust.
19103 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19104 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19105 to take a regcache. Adjust.
19106 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19107 Adjust.
19108 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19109 take a regcache. Adjust.
19110 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19111 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19112 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19113 * linux-mips-low.c (mips_get_pc):
19114 (mips_set_pc): Change prototype to take a regcache. Adjust.
19115 (mips_reinsert_addr): Adjust.
19116 (mips_collect_register): Change prototype to take a regcache.
19117 Adjust.
19118 (mips_supply_register):
19119 (mips_collect_register_32bit, mips_supply_register_32bit)
19120 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19121 (mips_store_fpregset): Ditto.
43aaf8b6
PA
19122 * linux-ppc-low.c (ppc_supply_ptrace_register)
19123 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
19124 (parse_spufs_run): Adjust.
19125 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19126 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19127 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19128 take a regcache. Adjust.
19129 * linux-s390-low.c (s390_collect_ptrace_register)
19130 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19131 (s390_set_pc): Change prototype to take a regcache. Adjust.
19132 (s390_arch_setup): Adjust.
19133 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19134 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19135 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19136 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19137 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19138 regcache. Adjust.
19139 (sparc_breakpoint_at): Adjust.
19140 * linux-xtensa-low.c (xtensa_fill_gregset):
19141 (xtensa_store_gregset):
19142 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19143 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19144 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19145 prototype to take a regcache. Adjust.
19146 * win32-arm-low.c (arm_fetch_inferior_register)
19147 (arm_store_inferior_register): Change prototype to take a
19148 regcache. Adjust.
19149 * win32-i386-low.c (i386_fetch_inferior_register)
19150 (i386_store_inferior_register): Change prototype to take a
19151 regcache. Adjust.
19152 * win32-low.c (child_fetch_inferior_registers)
19153 (child_store_inferior_registers): Change prototype to take a
19154 regcache. Adjust.
19155 (win32_wait): Adjust.
19156 (win32_fetch_inferior_registers): Change prototype to take a
19157 regcache. Adjust.
19158 (win32_store_inferior_registers): Adjust.
19159 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19160 store_inferior_register>: Change prototype to take a regcache.
19161
60c3d7b0
DE
191622010-01-20 Doug Evans <dje@google.com>
19163
19164 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19165 #ifdef.
19166 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 19167 (W_STOPCODE): Provide definition if missing.
60c3d7b0 19168
dc146f7c
VP
191692010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19170
19171 * linux-low.c (linux_core_of_thread): New.
19172 (compare_ints, show_process, list_threads): New.
19173 (linux_qxfer_osdata): Report threads and cores.
19174 (linux_target_op): Register linux_core_of_thread.
19175 * remote-utils.c (prepare_resume_reply): Report the core.
19176 (buffer_xml_printf): Support %d specifier.
19177 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19178 New.
19179 (handle_query): Handle qXfer:threads. Announce availability
19180 thereof.
19181 * target.h (struct target_ops): New field core_of_thread.
19182
7803799a
UW
191832010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19184
19185 * Makefile.in (clean): Remove new generated files.
19186 (reg-s390.o, reg-s390.c): Remove rules.
19187 (reg-s390x.o, reg-s390x.c): Likewise.
19188 (s390-linux32.o, s390-linux32.c): Add rules.
19189 (s390-linux64.o, s390-linux64.c): Likewise.
19190 (s390x-linux64.o, s390x-linux64.c): Likewise.
19191 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19192 * linux-s390-low.c: Include <elf.h>.
19193 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19194 (init_registers_s390): Remove prototype.
19195 (init_registers_s390x): Likewise.
19196 (init_registers_s390_linux32): Add prototype.
19197 (init_registers_s390_linux64): Likewise.
19198 (init_registers_s390x_linux64): Likewise.
19199 (s390_num_regs_3264): New define.
19200 (s390_regmap_3264): New global variable.
19201 (s390_cannot_fetch_register): Remove obsolete check.
19202 (s390_cannot_store_register): Likewise.
19203 (s390_collect_ptrace_register): Handle upper/lower register halves.
19204 (s390_supply_ptrace_register): Likewise.
19205 (s390_fill_gregset): Update to register number changes.
19206 (s390_get_hwcap): New routine.
19207 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19208 Install appropriate regmap and register set.
19209
6e7ffa39
JB
192102010-01-01 Joel Brobecker <brobecker@adacore.com>
19211
19212 * server.c (gdbserver_version): Update copyright year to 2010.
19213 * gdbreplay.c (gdbreplay_version): Likewise.
19214
957f3f49
DE
192152009-12-28 Doug Evans <dje@google.com>
19216
19217 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19218 elf/external.h. Include <elf.h> instead but only if necessary.
19219
ca5c370d
PA
192202009-12-28 Pedro Alves <pedro@codesourcery.com>
19221
19222 * linux-low.c (linux_remove_process): Remove `detaching'
19223 parameter. Don't release/detach from thread_db here.
19224 (linux_kill): Release/detach from thread_db here, ...
19225 (linux_detach): ... and here, before actually detaching.
19226 (linux_wait_1): ... and here, when a process exits.
19227 * thread-db.c (any_thread_of): New.
19228 (thread_db_free): Switch the current inferior to a thread of the
19229 passed in process.
19230
4ee62156
DE
192312009-12-21 Doug Evans <dje@google.com>
19232
d90e6a88
DE
19233 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19234
c5f62d5f
DE
19235 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19236 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19237 warning ifndef __NR_tkill. Move setting of errno there too.
19238 Delete unnecessary resetting of errno after syscall.
19239 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19240
10e86dd7
DE
19241 * configure.ac: Check for dladdr.
19242 * config.in: Regenerate.
19243 * configure: Regenerate.
19244 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19245 (try_thread_db_load): Update.
19246
4ee62156
DE
19247 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19248
00f515da
DE
192492009-12-18 Doug Evans <dje@google.com>
19250
e9464885
DE
19251 * event-loop.c: Include unistd.h if it exists.
19252
07d4f67e
DE
19253 * linux-low.c (my_waitpid): Move definition away from being in
19254 between linux_tracefork_child/linux_test_for_tracefork.
19255
00f515da
DE
19256 * gdb_proc_service.h (psaddr_t): Fix type.
19257 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19258 signature to match glibc.
19259
1de1badb
DE
192602009-12-16 Doug Evans <dje@google.com>
19261
19262 * linux-low.c (linux_read_memory): Fix argument to read.
19263
aeeb81d1
PA
192642009-11-26 Pedro Alves <pedro@codesourcery.com>
19265
19266 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19267 events, don't leave current_inferior pointing at null.
19268
10357975
PA
192692009-11-26 Pedro Alves <pedro@codesourcery.com>
19270
19271 * win32-low.c (LOG): Delete.
19272 (OUTMSG): Output to stderr.
19273 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19274 on compile time LOG macro.
19275 (win32_wait): Fix debug output.
19276
cf6e3471
PA
192772009-11-26 Pedro Alves <pedro@codesourcery.com>
19278
19279 * win32-low.c (win32_add_one_solib): If the dll name is
19280 "ntdll.dll", prepend the system directory to the dll path.
19281
0c85e18e
MK
192822009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19283
19284 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19285
9ac544ce 192862009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 19287 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
19288
19289 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19290 * configure.ac: Check for __mcoldfire__ and set
19291 gdb_cv_m68k_is_coldfire.
19292 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19293 reg-cf.o and reg-m68k.o.
19294 * configure: Regenerated.
19295
fd7dd3e6
PA
192962009-11-16 Pedro Alves <pedro@codesourcery.com>
19297
19298 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19299 Pass it to thread_db_free.
19300 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19301 proper `detaching' argument to linux_remove_process.
19302 * linux-low.h (thread_db_free): Add `detaching' parameter.
19303 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19304 to thread_db_free.
19305 (thread_db_free): Add `detaching' parameter. Only
19306 call td_ta_clear_event if detaching from process.
19307
75aa492e
MK
193082009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19309
19310 * thread-db.c (thread_db_free): Fix typo.
19311
21e1bee4
PP
193122009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19313
19314 PR gdb/10838
19315 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19316
8838b45e
NS
193172009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19318
19319 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19320 with an i686 compiler.
19321 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19322 needed.
19323 * configure: Rebuilt.
19324
8a35fb51
SL
193252009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19326
19327 PR gdb/10783
19328
19329 * server.c (handle_search_memory_1): Correct read_addr initialization
19330 in loop for searching subsequent chunks.
19331
96f15937
PP
193322009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19333
19334 * configure.ac: New --with-libthread-db option.
19335 * thread-db.c: Allow direct dependence on libthread_db.
19336 (thread_db_free): Adjust.
19337 * config.in: Regenerate.
19338 * configure: Likewise.
889bf7c5 19339
5f7d1694
PP
193402009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19341
19342 PR gdb/10757
19343 * thread-db.c (attach_thread): New function.
19344 (maybe_attach_thread): Return success/failure.
19345 (find_new_threads_callback): Adjust.
889bf7c5
PA
19346 (thread_db_find_new_threads): Loop until no new threads.
19347
88e3b899
PA
193482009-10-13 Pedro Alves <pedro@codesourcery.com>
19349
19350 * proc-service.c (ps_lgetregs): Formatting.
19351
cdbfd419
PP
193522009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19353
19354 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19355 * configure.ac: Adjust.
19356 * linux-low.h (struct process_info_private): Move members to struct
19357 thread_db.
19358 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19359 * linux-low.c (linux_remove_process): Adjust.
19360 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19361 * server.c (handle_query): Move code ...
19362 (handle_monitor_command): ... here. New function.
19363 * target.h (struct target_ops): New member.
19364 * thread-db.c (struct thread_db): New.
19365 (libthread_db_search_path): New variable.
19366 (thread_db_create_event, thread_db_enable_reporting)
19367 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19368 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19369 (try_thread_db_load_1, dladdr_to_soname): New functions.
19370 (try_thread_db_load, thread_db_load_search): New functions.
19371 (thread_db_init): Search for libthread_db.
19372 (thread_db_free): New function.
19373 (thread_db_handle_monitor_command): Likewise.
19374 * config.in: Regenerate.
19375 * configure: Regenerate.
889bf7c5 19376
4168d2d6
UW
193772009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19378
19379 * spu-low.c (spu_kill): Wait for inferior to terminate.
19380 Call clear_inferiors.
19381 (spu_detach): Call clear_inferiors.
19382
81ecdfbb
RW
193832009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19384
19385 * aclocal.m4: Regenerate.
19386 * config.in: Likewise.
19387 * configure: Likewise.
19388
0b9ff2c0
UW
193892009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19390
19391 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19392 (parse_spufs_run): New function.
19393 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19394 (ppc_breakpoint_at): Handle SPU breakpoints.
19395
efcbbd14
UW
193962009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19397
19398 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19399 (SPUFS_MAGIC): Define.
19400 (spu_enumerate_spu_ids): New function.
19401 (linux_qxfer_spu): New function.
19402 (linux_target_ops): Install linux_qxfer_spu.
19403
f4d9bade
UW
194042009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19405
19406 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19407 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19408 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19409 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19410 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19411 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19412 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19413 (init_registers_powerpc_cell32l): Add prototype.
19414 (init_registers_powerpc_cell64l): Likewise.
19415 (ppc_arch_setup): Detect Cell/B.E. architecture.
19416
96e946ca
RW
194172009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19418
19419 * Makefile.in (datarootdir): New variable.
19420
58d6951d
DJ
194212009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19422
19423 * linux-low.c (linux_write_memory): Update debugging output.
19424 * Makefile.in (clean): Add new descriptions.
19425 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19426 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19427 * configure.srv: Add new files for arm*-*-linux*.
19428 * linux-arm-low.c: Add new declarations.
19429 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19430 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19431 (HWCAP_VFPv3D16): New.
19432 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19433 instead of __IWMMXT__.
19434 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19435 (arm_arch_setup): New.
19436 (target_regsets): Remove #ifdef. Add VFP regset.
19437 (the_low_target): Use arm_arch_setup.
19438
12b42a12
DJ
194392009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19440
19441 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19442 the main thread again.
19443
ac8c974e
AR
194442009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19445
19446 Adding Neutrino gdbserver.
19447 * configure: Regenerated.
19448 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19449 * configure.srv (i[34567]86-*-nto*): New target.
19450 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19451 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19452 (nto_comctrl) [__QNX__]: New function.
19453 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19454
4424e0c3 194552009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19456
19457 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19458 srv_tgtobj.
19459
912cf4ba
PA
194602009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19461 Pedro Alves <pedro@codesourcery.com>
19462
19463 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19464 don't support CONTEXT_EXTENDED_REGISTERS.
19465 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19466 (the_low_target): Install them.
19467 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19468 failing with ERROR_PIPE_NOT_CONNECTED.
19469
aa5ca48f
DE
194702009-06-30 Doug Evans <dje@google.com>
19471 Pierre Muller <muller@ics.u-strasbg.fr>
19472
19473 Add h/w watchpoint support to x86-linux, win32-i386.
19474 * Makefile.in (SFILES): Add i386-low.c
19475 (i386_low_h): Define.
19476 (i386-low.o): Add dependencies.
19477 (linux-x86-low.o): Add i386-low.h dependency.
19478 (win32-i386-low.o): Ditto.
19479 * i386-low.c: New file.
19480 * i386-low.h: New file.
19481 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19482 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19483 * linux-low.c (linux_add_process): Initialize arch_private.
19484 (linux_remove_process): Free arch_private.
19485 (add_lwp): Initialize arch_private.
19486 (delete_lwp): Free arch_private.
19487 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19488 provided.
19489 * linux-low.h (process_info_private): New member arch_private.
19490 (lwp_info): New member arch_private.
19491 (linux_target_ops): New members new_process, new_thread,
19492 prepare_to_resume.
19493 (ptid_of): New macro.
19494 * linux-x86-low.c: Include stddef.h, i386-low.h.
19495 (arch_process_info): New struct.
19496 (arch_lwp_info): New struct.
19497 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19498 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19499 (i386_dr_low_get_status): New function.
19500 (x86_insert_point, x86_remove_point): New functions.
19501 (x86_stopped_by_watchpoint): New function.
19502 (x86_stopped_data_address): New function.
19503 (x86_linux_new_process, x86_linux_new_thread): New functions.
19504 (x86_linux_prepare_to_resume): New function.
19505 (the_low_target): Add entries for insert_point, remove_point,
19506 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19507 prepare_to_resume.
19508 * server.c (debug_hw_points): New global.
19509 (monitor_show_help): Document set debug-hw-points.
19510 (handle_query): Process "set debug-hw-points".
19511 * server.h (debug_hw_points): Declare.
19512 (paddress): Declare.
19513 * utils.c (NUMCELLS, CELLSIZE): New macros.
19514 (get_sell, xsnprintf, paddress): New functions.
19515 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19516 remove_point, stopped_by_watchpoint, stopped_data_address.
19517 * win32-i386-low.c: Include i386-low.h.
19518 (debug_reg_state): Replaces dr.
19519 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19520 (i386_dr_low_get_status): New function.
19521 (i386_insert_point, i386_remove_point): New functions.
19522 (i386_stopped_by_watchpoint): New function.
19523 (i386_stopped_data_address): New function.
19524 (i386_initial_stuff): Update.
19525 (get_thread_context,set_thread_context,i386_thread_added): Update.
19526 (the_low_target): Add entries for insert_point,
19527 remove_point, stopped_by_watchpoint, stopped_data_address.
19528 * win32-low.c (win32_insert_watchpoint): New function.
19529 (win32_remove_watchpoint): New function.
19530 (win32_stopped_by_watchpoint): New function.
19531 (win32_stopped_data_address): New function.
19532 (win32_target_ops): Add entries for insert_watchpoint,
19533 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19534 * win32-low.h (win32_target_ops): New members insert_point,
19535 remove_point, stopped_by_watchpoint, stopped_data_address.
19536
d993e290
PA
195372009-06-25 Pedro Alves <pedro@codesourcery.com>
19538
19539 * server.c (process_serial_event): Re-return unsupported, not
19540 error, if the type isn't recognized. Re-allow supporting only
19541 insert or remove packets. Also call require_running for
19542 breakpoints. Add missing break statement to default case. Tidy.
19543 * target.h (struct target_ops): Rename insert_watchpoint to
19544 insert_point, and remove_watchpoint to remove_point.
19545
19546 * linux-low.h (struct linux_target_ops): Likewise.
19547 * linux-low.c (linux_insert_watchpoint): Rename to ...
19548 (linux_insert_point): ... this. Adjust.
19549 (linux_remove_watchpoint): Rename to ...
19550 (linux_remove_point): ... this. Adjust.
19551 (linux_target_ops): Adjust.
19552 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19553 (cris_insert_point): ... this.
19554 (cris_remove_watchpoint): Rename to ...
19555 (cris_remove_point): ... this.
19556 (the_low_target): Adjust.
19557
0f54c268
PM
195582009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19559
19560 * server.c (handle_v_kill): Pass signal_pid to
19561 kill_inferior if multi_process is zero.
19562
c6314022
AR
195632009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19564
19565 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19566 * target.h (target_ops): Comment for *_watchpoint to make it clear
19567 the functions can get types '0' and '1'.
19568
4463ce24
AR
195692009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19570
19571 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19572 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19573 * regcache.c (get_regcache): Likewise.
19574 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19575 * win32-low.c (child_fetch_inferior_registers): Remove check for
19576 regno 0.
19577
cf8fd78b
PA
195782009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19579 Pedro Alves <pedro@codesourcery.com>
19580
19581 * target.h (struct target_ops) <supports_multi_process>: New
19582 callback.
19583 (target_supports_multi_process): New.
19584 * server.c (handle_query): Even if GDB reports support, only
19585 enable multi-process if the target also supports it. Report
19586 multi-process support only if the target backend supports it.
19587 * linux-low.c (linux_supports_multi_process): New function.
19588 (linux_target_ops): Install it as target_supports_multi_process
19589 callback.
19590
47c0c975
DE
195912009-05-24 Doug Evans <dje@google.com>
19592
e09875d4
DE
19593 Global renaming of find_thread_pid to find_thread_ptid.
19594 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19595 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19596 All callers updated.
19597
e27d73f6
DE
19598 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19599 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19600 directly.
19601
47c0c975
DE
19602 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19603 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19604 (linux_resume_one_lwp): Ditto.
19605
2acc282a
DE
196062009-05-23 Doug Evans <dje@google.com>
19607
19608 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19609 from struct inferior_list_entry * to struct lwp_info *.
19610 All callers updated.
19611
9f1036c1
DE
196122009-05-13 Doug Evans <dje@google.com>
19613
19614 * linux-x86-low.c: Don't include assert.h.
19615 (x86_siginfo_fixup): Use fatal, not assert.
19616 (x86_arch_setup): Fix comment.
19617
d0722149
DE
196182009-05-12 Doug Evans <dje@google.com>
19619
19620 Biarch support for i386/amd64 gdbserver.
19621 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19622 Add linux-x86-low.c.
19623 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19624 (linux-x86-low.o): Add.
19625 * linux-x86-64-low.c: Delete.
19626 * linux-i386-low.c: Delete.
19627 * linux-x86-low.c: New file.
19628 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19629 linux-x86-low.o.
19630 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19631 linux-x86-low.o.
19632 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19633 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19634 (linux_child_pid_to_exec_file): New function.
19635 (elf_64_header_p, elf_64_file_p): New functions.
19636 (siginfo_fixup): New function.
19637 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19638 give target a chance to convert layout.
19639 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19640 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19641
fdeb2a12
DE
196422009-05-07 Doug Evans <dje@google.com>
19643
19644 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19645 (regsets_store_inferior_registers): Ditto.
19646
a6dbe5df
PA
196472009-05-06 Pedro Alves <pedro@codesourcery.com>
19648
19649 PR server/10048
19650
19651 * linux-low.c (must_set_ptrace_flags): Delete.
19652 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19653 of the global.
19654 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19655 `lwp->must_set_ptrace_flags' instead.
ba42693b 19656 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19657 (linux_wait_1): ... not here.
19658
5091eb23
DE
196592009-04-30 Doug Evans <dje@google.com>
19660
9f767825
DE
19661 * inferiors.c (started_inferior_callback): New function.
19662 (attached_inferior_callback): New function.
19663 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19664 * server.c (print_started_pid, print_attached_pid): New functions.
19665 (detach_or_kill_for_exit): New function.
19666 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19667 * server.h (have_started_inferiors_p): Declare.
19668 (have_attached_inferiors_p): Declare.
19669
5091eb23
DE
19670 * inferiors.c (remove_process): Fix memory leak, free process.
19671 * linux-low.c (linux_remove_process): New function.
19672 (linux_kill): Call it instead of remove_process.
19673 (linux_detach, linux_wait_1): Ditto.
19674
155c8968
PA
196752009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19676
19677 * configure.srv: Add x86 Windows CE target.
19678
7fe519cb
UW
196792009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19680
19681 * inferiors.c (get_thread_process): Make global.
19682 * server.h (get_thread_process): Add prototype.
19683 * thread-db.c (find_one_thread): Use get_thread_process
19684 instead of current_process.
19685 (thread_db_get_tls_address): Do not crash if called when
19686 thread layer is not yet initialized.
19687
5472f405
UW
196882009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19689
19690 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19691 * spu-low.c (current_tid): Rename to ...
19692 (current_ptid): ... this.
19693 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19694 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19695 ptid_get_lwp (current_ptid) instead of current_tid.
19696 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19697 instead of current_tid. Use find_process_pid to verify pid
19698 argument is valid. Pass proper argument to remove_process.
19699 (spu_thread_alive): Compare current_ptid instead of current_tid.
19700 (spu_resume): Likewise.
19701
55ac2b99
PA
197022009-04-02 Pedro Alves <pedro@codesourcery.com>
19703
19704 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19705 variable.
19706
95954743
PA
197072009-04-01 Pedro Alves <pedro@codesourcery.com>
19708
19709 Implement the multiprocess extensions, and add linux multiprocess
19710 support.
19711
19712 * server.h (ULONGEST): Declare.
19713 (struct ptid, ptid_t): New.
19714 (minus_one_ptid, null_ptid): Declare.
19715 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19716 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19717 (struct inferior_list_entry): Change `id' type from unsigned from
19718 to ptid_t.
19719 (struct sym_cache, struct breakpoint, struct
19720 process_info_private): Forward declare.
19721 (struct process_info): Declare.
19722 (current_process): Declare.
19723 (all_processes): Declare.
19724 (initialize_inferiors): Declare.
19725 (add_thread): Adjust to use ptid_t.
19726 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19727 (add_process, remove_process, find_thread_pid): Declare.
19728 (find_inferior_id): Adjust to use ptid_t.
19729 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19730 (multi_process): Declare.
19731 (push_event): Adjust to use ptid_t.
19732 (read_ptid, write_ptid): Declare.
19733 (prepare_resume_reply): Adjust to use ptid_t.
19734 (clear_symbol_cache): Declare.
19735 * inferiors.c (all_processes): New.
19736 (null_ptid, minus_one_ptid): New.
19737 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19738 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19739 (add_thread): Change unsigned long to ptid. Remove gdb_id
19740 parameter. Adjust.
19741 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19742 (gdb_id_to_thread): Rename to ...
19743 (find_thread_pid): ... this. Change unsigned long to ptid.
19744 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19745 (loaded_dll, pull_pid_from_list): Adjust.
19746 (add_process, remove_process, find_process_pid)
19747 (get_thread_process, current_process, initialize_inferiors): New.
19748 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19749 (struct target_waitstatus) <related_pid>: Ditto.
19750 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19751 return type to int.
19752 (struct target_ops) <join>: Add `pid' argument.
19753 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19754 (struct target_ops) <wait>: Add `ptid' field. Change return type
19755 to ptid.
19756 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19757 (mywait): Add `ptid' argument. Change return type to ptid_t.
19758 (target_pid_to_str): Declare.
19759 * target.c (set_desired_inferior): Adjust to use ptids.
19760 (mywait): Add new `ptid' argument. Adjust.
19761 (target_pid_to_str): New.
19762 * mem-break.h (free_all_breakpoints): Declare.
19763 * mem-break.c (breakpoints): Delelete.
19764 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19765 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19766 to use per-process breakpoint list.
19767 (free_all_breakpoints): New.
19768 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19769 (symbol_cache, all_symbols_looked_up): Delete.
19770 (hexchars): New.
19771 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19772 read_ptid): New.
19773 (prepare_resume_reply): Change ptid argument's type from unsigned
19774 long to ptid_t. Adjust. Implement W;process and X;process.
19775 (free_sym_cache, clear_symbol_cache): New.
19776 (look_up_one_symbol): Adjust to per-process symbol cache. *
19777 * server.c (cont_thread, general_thread, step_thread): Change type
19778 to ptid_t.
19779 (attached): Delete.
19780 (multi_process): New.
19781 (last_ptid): Change type to ptid_t.
19782 (struct vstop_notif) <ptid>: Change type to ptid_t.
19783 (queue_stop_reply, push_event): Change `ptid' argument's type to
19784 ptid_t.
19785 (discard_queued_stop_replies): Add `pid' argument.
19786 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19787 changes. Don't reference the `attached' global.
19788 (attach_inferior): Adjust to mywait interface changes.
19789 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19790 features. Handle and report "multiprocess+". Handle
19791 "qAttached:PID".
19792 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19793 changes.
19794 (handle_v_kill): New.
19795 (handle_v_stopped): Adjust to use target_pid_to_str.
19796 (handle_v_requests): Allow multiple attaches and runs when
19797 multiprocess extensions are in effect. Handle "vKill".
19798 (myresume): Adjust to use ptids.
19799 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19800 (handle_status): Adjust to discard_queued_stop_replies interface
19801 change.
19802 (first_thread_of, kill_inferior_callback)
19803 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19804 (main): Call initialize_inferiors. Adjust to use ptids, killing
19805 and detaching from all inferiors. Handle multiprocess packet
19806 variants.
19807 * linux-low.h: Include gdb_proc_service.h.
19808 (struct process_info_private): New.
19809 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19810 <lwpid_of>: Use ptid_get_lwp.
19811 (get_lwp_thread): Adjust.
19812 (struct lwp_info): Add `dead' member.
19813 (find_lwp_pid): Declare.
19814 * linux-low.c (thread_db_active): Delete.
19815 (new_inferior): Adjust comment.
19816 (inferior_pid): Delete.
19817 (linux_add_process): New.
19818 (handle_extended_wait): Adjust.
19819 (add_lwp): Change unsigned long to ptid.
19820 (linux_create_inferior): Add process to processes table. Adjust
19821 to use ptids. Don't set new_inferior here.
19822 (linux_attach_lwp): Rename to ...
19823 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19824 it. Adjust to use ptids.
19825 (linux_attach_lwp): New.
19826 (linux_attach): Add process to processes table. Don't set
19827 new_inferior here.
19828 (struct counter): New.
19829 (second_thread_of_pid_p, last_thread_of_process_p): New.
19830 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19831 multiple processes.
19832 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19833 processes. Remove process from process table.
19834 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19835 to multiple processes.
19836 (any_thread_of): New.
19837 (linux_detach): Add `pid' argument, and handle it. Remove process
19838 from processes table.
19839 (linux_join): Add `pid' argument. Handle it.
19840 (linux_thread_alive): Change unsighed long argument to ptid_t.
19841 Consider dead lwps as not being alive.
19842 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19843 threads we're not interested in.
19844 (same_lwp, find_lwp_pid): New.
19845 (linux_wait_for_lwp): Change `pid' argument's type from int to
19846 ptid_t. Adjust.
19847 (linux_wait_for_event): Rename to ...
19848 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19849 from int to ptid_t. Adjust.
19850 (linux_wait_for_event): New.
19851 (linux_wait_1): Add `ptid' argument. Change return type to
19852 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19853 that exit from the process table.
19854 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19855 Adjust.
19856 (mark_lwp_dead): New.
19857 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19858 stopping all threads, mark its main lwp as dead.
19859 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19860 ptids.
19861 (fetch_register, usr_store_inferior_registers)
19862 (regsets_fetch_inferior_registers)
19863 (regsets_store_inferior_registers, linux_read_memory)
19864 (linux_write_memory): Inline `inferior_pid'.
19865 (linux_look_up_symbols): Adjust to use per-process
19866 `thread_db_active'.
19867 (linux_request_interrupt): Adjust to use ptids.
19868 (linux_read_auxv): Inline `inferior_pid'.
19869 (initialize_low): Don't reference thread_db_active.
19870 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19871 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19872 (ps_getpid): Return the pid of the current inferior.
19873 * thread-db.c (proc_handle, thread_agent): Delete.
19874 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19875 per-process data.
19876 (find_one_thread): Change argument type to ptid_t. Adjust to
19877 per-process data.
19878 (maybe_attach_thread): Adjust to per-process data and ptids.
19879 (thread_db_find_new_threads): Ditto.
19880 (thread_db_init): Ditto.
19881 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19882 processes table. Adjust to use ptids.
19883 (spu_kill, spu_detach): Adjust interface. Remove process from
19884 processes table.
19885 (spu_join, spu_thread_alive): Adjust interface.
19886 (spu_wait): Adjust interface. Remove process from processes
19887 table. Adjust to use ptids.
19888 * win32-low.c (current_inferior_tid): Delete.
19889 (current_inferior_ptid): New.
19890 (debug_event_ptid): New.
19891 (thread_rec): Take a ptid. Adjust.
19892 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19893 (child_delete_thread): Ditto.
19894 (do_initial_child_stuff): Add `attached' argument. Add process to
19895 processes table.
19896 (child_fetch_inferior_registers, child_store_inferior_registers):
19897 Adjust.
19898 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19899 (win32_attach): Pass 1 to do_initial_child_stuff.
19900 (win32_kill): Adjust interface. Remove process from processes
19901 table.
19902 (win32_detach): Ditto.
19903 (win32_join): Adjust interface.
19904 (win32_thread_alive): Take a ptid.
19905 (win32_resume): Adjust to use ptids.
19906 (get_child_debug_event): Ditto.
19907 (win32_wait): Adjust interface. Remove exiting process from
19908 processes table.
19909
bd99dc85
PA
199102009-04-01 Pedro Alves <pedro@codesourcery.com>
19911
19912 Non-stop mode support.
19913
19914 * server.h (non_stop): Declare.
19915 (gdb_client_data, handler_func): Declare.
19916 (delete_file_handler, add_file_handler, start_event_loop):
19917 Declare.
19918 (handle_serial_event, handle_target_event, push_event)
19919 (putpkt_notif): Declare.
19920 * target.h (enum resume_kind): New.
19921 (struct thread_resume): Replace `step' field by `kind' field.
19922 (TARGET_WNOHANG): Define.
19923 (struct target_ops) <wait>: Add `options' argument.
19924 <supports_non_stop, async, start_non_stop>: New fields.
19925 (target_supports_non_stop, target_async): New.
19926 (start_non_stop): Declare.
19927 (mywait): Add `options' argument.
19928 * target.c (mywait): Add `options' argument. Print child exit
19929 notifications here.
19930 (start_non_stop): New.
19931 * server.c (non_stop, own_buf, mem_buf): New globals.
19932 (struct vstop_notif): New.
19933 (notif_queue): New global.
19934 (queue_stop_reply, push_event, discard_queued_stop_replies)
19935 (send_next_stop_reply): New.
19936 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19937 interface changes.
19938 (attach_inferior): In non-stop mode, don't wait for the target
19939 here.
19940 (handle_general_set): Handle QNonStop.
19941 (handle_query): When handling qC, return the current general
19942 thread, instead of the first thread of the list.
19943 (handle_query): If the backend supports non-stop mode, include
19944 QNonStop+ in the qSupported query response.
19945 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19946 and non-stop mode.
19947 (handle_v_attach, handle_v_run): Handle non-stop mode.
19948 (handle_v_stopped): New.
19949 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19950 (myresume): Adjust to use resume_kind. Handle non-stop.
19951 (queue_stop_reply_callback): New.
19952 (handle_status): Handle non-stop mode.
19953 (main): Clear non_stop flag on reconnection. Use the event-loop.
19954 Refactor serial protocol handling from here ...
19955 (process_serial_event): ... to this new function. When GDB
19956 selects any thread, select one here. In non-stop mode, wait until
19957 GDB acks all pending events before exiting.
19958 (handle_serial_event, handle_target_event): New.
19959 * remote-utils.c (remote_open): Install remote_desc in the event
19960 loop.
19961 (remote_close): Remove remote_desc from the event loop.
19962 (putpkt_binary): Rename to...
19963 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19964 (putpkt_binary): New as wrapper around putpkt_binary_1.
19965 (putpkt_notif): New.
19966 (prepare_resume_reply): In non-stop mode, don't change the
19967 general_thread.
19968 * event-loop.c: New.
19969 * Makefile.in (OBJ): Add event-loop.o.
19970 (event-loop.o): New rule.
19971
19972 * linux-low.h (pid_of): Moved here.
19973 (lwpid_of): New.
19974 (get_lwp_thread): Use lwpid_of.
19975 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19976 * linux-low.c (pid_of): Delete.
19977 (inferior_pid): Use lwpid_of.
19978 (linux_event_pipe): New.
19979 (target_is_async_p): New.
19980 (delete_lwp): New.
19981 (handle_extended_wait): Use lwpid_of.
19982 (add_lwp): Don't set lwpid field.
19983 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19984 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19985 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19986 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19987 first. Adjust to linux_wait_for_event interface changes. Use
19988 lwpid_of.
19989 (linux_detach): Don't delete the main lwp here.
19990 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19991 (status_pending_p): Don't consider explicitly suspended lwps.
19992 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19993 pointer. Add OPTIONS argument. Change return type to int. Use
19994 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19995 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19996 pointer. Add status pointer argument. Return a pid instead of a
19997 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19998 changes. In non-stop mode, don't switch to a random thread.
19999 (linux_wait): Rename to...
20000 (linux_wait_1): ... this. Add target_options argument, and handle
20001 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
20002 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
20003 clean exit and signal exit code. Don't stop all threads in
20004 non-stop mode. In all-stop mode, only stop all threads when
20005 reporting a stop to GDB. Handle explicit thread stop requests.
20006 (async_file_flush, async_file_mark): New.
20007 (linux_wait): New.
20008 (send_sigstop): Use lwpid_of.
20009 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
20010 interface changes. In non-stop mode, don't switch to a random
20011 thread.
20012 (linux_resume_one_lwp): Use lwpid_of.
20013 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20014 (linux_resume_one_thread): ... this. Handle resume_stop. In
20015 non-stop mode, don't look for pending flag in all threads.
20016 (resume_status_pending_p): Don't consider explicitly suspended
20017 threads.
20018 (my_waitpid): Reimplement. Emulate __WALL.
20019 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20020 Use lwpid_of.
20021 (sigchld_handler, linux_supports_non_stop, linux_async)
20022 (linux_start_non_stop): New.
20023 (linux_target_ops): Register linux_supports_non_stop, linux_async
20024 and linux_start_non_stop.
20025 (initialize_low): Install SIGCHLD handler.
20026 * thread-db.c (thread_db_create_event, find_one_thread)
20027 (thread_db_get_tls_address): Use lwpid_of.
20028 * win32-low.c (win32_detach): Adjust to use resume_kind.
20029 (win32_wait): Add `options' argument.
20030 * spu-low.c (spu_resume): Adjust to use resume_kind.
20031 (spu_wait): Add `options' argument.
20032
5b1c542e
PA
200332009-04-01 Pedro Alves <pedro@codesourcery.com>
20034
20035 Decouple target code from remote protocol.
20036
20037 * target.h (enum target_waitkind): New.
20038 (struct target_waitstatus): New.
20039 (struct target_ops) <wait>: Return an unsigned long. Take a
20040 target_waitstatus pointer instead of a char pointer.
20041 (mywait): Likewise.
20042 * target.c (mywait): Change prototype to return an unsigned long.
20043 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20044 * server.h (thread_from_wait, old_thread_from_wait): Delete
20045 declarations.
20046 (prepare_resume_reply): Change prototype to take a
20047 target_waitstatus.
20048 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20049 (last_status, last_ptid): New.
20050 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20051 pid instead of a signal.
20052 (attach_inferior): Remove "status" and "signal" parameters.
20053 Adjust.
20054 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20055 not as an address.
20056 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20057 (handle_v_requests, myresume): Remove "status" and "signal"
20058 parameters. Adjust.
20059 (handle_status): New.
20060 (main): Delete local `status'. Adjust.
20061 * remote-utils.c: Include target.h.
20062 (prepare_resume_reply): Change prototype to take a
20063 target_waitstatus. Adjust.
20064
20065 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20066 interface.
20067 * spu-low.c (spu_wait): Adjust.
20068 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20069 Delete.
20070 (win32_wait): Adjust.
20071
2bd7c093
PA
200722009-04-01 Pedro Alves <pedro@codesourcery.com>
20073
20074 * target.h (struct thread_resume): Delete leave_stopped member.
20075 (struct target_ops): Add a `n' argument to the `resume' callback.
20076 * server.c (start_inferior): Adjust.
20077 (handle_v_cont, myresume): Adjust.
20078 * linux-low.c (check_removed_breakpoint): Adjust to resume
20079 interface change, and to removed leave_stopped field.
20080 (resume_ptr): Delete.
20081 (struct thread_resume_array): New.
20082 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20083 resume interface change.
20084 (linux_continue_one_thread, linux_queue_one_thread)
20085 (resume_status_pending_p): Check if the resume field is NULL
20086 instead of checking the leave_stopped member.
20087 (linux_resume): Adjust to the target resume interface change.
20088 * spu-low.c (spu_resume): Adjust to the target resume interface
20089 change.
20090 * win32-low.c (win32_detach, win32_resume): Ditto.
20091
c35fafde
PA
200922009-04-01 Pedro Alves <pedro@codesourcery.com>
20093
20094 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20095 flag.
20096 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20097 pending.
20098 (linux_continue_one_thread): Only preserve the stepping flag if
20099 there's a pending breakpoint.
20100
0a59d50b
PA
201012009-03-31 Pedro Alves <pedro@codesourcery.com>
20102
20103 * server.c (main): After the inferior having exited, call
20104 remote_close before exiting gdbserver.
20105
f04c6d38
TJB
201062009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20107
20108 Fix size of FPSCR in Power 7 processors.
20109 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20110 (PPC_FEATURE_HAS_DFP): New #define.
20111 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20112 size of the FPSCR.
20113
78e5cee6
PA
201142009-03-23 Pedro Alves <pedro@codesourcery.com>
20115
20116 * server.c (handle_query) Whitespace and formatting.
20117
1b3f6016
PA
201182009-03-22 Pedro Alves <pedro@codesourcery.com>
20119
20120 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20121 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20122 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20123 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20124 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20125 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20126 Makefile.in, configure.ac: Fix whitespace throughout.
20127 * configure: Regenerate.
20128
a07b2135
PA
201292009-03-22 Pedro Alves <pedro@codesourcery.com>
20130
20131 * inferiors.c (find_inferior): Make it safe for the callback
20132 function to delete the currently iterated inferior.
20133
67cc2626
PA
201342009-03-22 Pedro Alves <pedro@codesourcery.com>
20135
20136 * Makefile.in (linuw_low_h): Move higher.
20137 (thread-db.o): Depend on $(linux_low_h).
20138
54a0b537
PA
201392009-03-17 Pedro Alves <pedro@codesourcery.com>
20140
20141 Rename "process" to "lwp" throughout.
20142
20143 * linux-low.c (all_processes): Rename to...
20144 (all_lwps): ... this.
20145 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20146 (add_process): Rename to ...
20147 (add_lwp): ... this. Adjust.
20148 (linux_create_inferior): Adjust.
20149 (linux_attach_lwp): Adjust.
20150 (linux_attach): Adjust.
20151 (linux_kill_one_process): Rename to ...
20152 (linux_kill_one_lwp): ... this. Adjust.
20153 (linux_kill): Adjust.
20154 (linux_detach_one_process): Rename to ...
20155 (linux_detach_one_lwp): ... this. Adjust.
20156 (linux_detach): Adjust.
20157 (check_removed_breakpoint): Adjust.
20158 (status_pending_p): Adjust.
20159 (linux_wait_for_process): Rename to ...
20160 (linux_wait_for_lwp): ... this. Adjust.
20161 (linux_wait_for_event): Adjust.
20162 (send_sigstop): Adjust.
20163 (wait_for_sigstop): Adjust.
20164 (stop_all_processes): Rename to ...
20165 (stop_all_lwps): ... this.
20166 (linux_resume_one_process): Rename to ...
20167 (linux_resume_one_lwp): ... this. Adjust.
20168 (linux_set_resume_request, linux_continue_one_thread)
20169 (linux_queue_one_thread, resume_status_pending_p)
20170 (usr_store_inferior_registers, regsets_store_inferior_registers)
20171 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20172 Adjust.
20173 * linux-low.h (get_process): Rename to ...
20174 (get_lwp): ... this. Adjust.
20175 (get_thread_process): Rename to ...
20176 (get_thread_lwp): ... this. Adjust.
20177 (get_process_thread): Rename to ...
20178 (get_lwp_thread): ... this. Adjust.
20179 (struct process_info): Rename to ...
20180 (struct lwp_info): ... this.
20181 (all_processes): Rename to ...
20182 (all_lwps): ... this.
20183 * proc-service.c (ps_lgetregs): Adjust.
20184 * thread-db.c (thread_db_create_event, find_one_thread)
20185 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20186
0b16c5cf
PA
201872009-03-14 Pedro Alves <pedro@codesourcery.com>
20188
20189 * server.c (handle_query): Handle "qAttached".
20190
32de4b9d
NS
201912009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20192
20193 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20194 GPLv3, update license URL.
20195
2aecd87f
DE
201962009-03-01 Doug Evans <dje@google.com>
20197
93efd302 20198 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
20199 (server_h): Add gdb_signals.h.
20200 (signals.o): Update.
20201 * server.h (target_signal_from_host,target_signal_to_host_p)
20202 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20203
86b1f9c5
PM
202042009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20205
20206 * remote-utils.c (getpkt): Also generate remote-debug
20207 information if noack_mode is set.
20208
4aa995e1
PA
202092009-02-06 Pedro Alves <pedro@codesourcery.com>
20210
20211 * server.c (handle_query): Report qXfer:siginfo:read and
20212 qXfer:siginfo:write as supported and handle them.
20213 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20214 * linux-low.c (linux_xfer_siginfo): New.
20215 (linux_target_ops): Set it.
20216
62709adf
PA
202172009-01-26 Pedro Alves <pedro@codesourcery.com>
20218
20219 * server.c (gdbserver_usage): Mention --remote-debug.
20220 (main): Accept '--remote-debug' switch.
20221
aef93bd7
DE
202222009-01-18 Doug Evans <dje@google.com>
20223
20224 * regcache.c (new_register_cache): No need to check result of xcalloc.
20225 * server.c (handle_search_memory): Back out calls to xmalloc,
20226 result is checked and error is returned to user upon failure.
20227 (handle_query): Ditto. Add more checks for result of malloc.
20228 (handle_v_cont): Check result of malloc, report error back to
20229 user upon failure.
20230 (handle_v_run): Ditto. Call freeargv.
20231 * server.h (freeargv): Declare.
20232 * utils.c (freeargv): New fn.
20233
54363045
DE
202342009-01-15 Doug Evans <dje@google.com>
20235
f626972c
DE
20236 * gdbreplay.c (perror_with_name): Make arg const char *.
20237 * server.h (target_signal_to_name): Make return type const char *.
0842e787 20238 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 20239 * utils.c (perror_with_name): Make arg const char *.
54363045 20240
18aae699
PA
202412009-01-14 Pedro Alves <pedro@codesourcery.com>
20242
20243 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20244 when handling a EXIT_PROCESS_DEBUG_EVENT.
20245
ff703abe
JB
202462009-01-06 Joel Brobecker <brobecker@adacore.com>
20247
20248 * gdbreplay.c (gdbreplay_version): Update copyright year.
20249 * server.c (gdbserver_version): Likewise.
20250
f21cc1a2 202512009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
20252
20253 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 20254 (handle_extended_wait): Improve comment.
0e21c1ec 20255
bca929d3
DE
202562008-12-13 Doug Evans <dje@google.com>
20257
20258 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20259 * server.h (ATTR_MALLOC): New macro.
20260 (xmalloc,xcalloc,xstrdup): Declare.
20261 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20262 * inferiors.c: Ditto.
20263 * linux-low.c: Ditto.
20264 * mem-break.c: Ditto.
20265 * regcache.c: Ditto.
20266 * remote-utils.c: Ditto.
20267 * server.c: Ditto.
20268 * target.c: Ditto.
20269 * win32-low.c: Ditto.
20270
97438e3f
DE
202712008-12-12 Doug Evans <dje@google.com>
20272
896c7fbb
DE
20273 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20274 in debugging printf.
20275
97438e3f
DE
20276 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20277
e3b886f8
DE
202782008-12-09 Doug Evans <dje@google.com>
20279
20280 * linux-low.h (struct process_info): Delete member tid, unused.
20281 * thread-db.c (find_one_thread): Update.
20282 (maybe_attach_thread): Update.
20283
07e059b5
VP
202842008-12-02 Pedro Alves <pedro@codesourcery.com>
20285
889bf7c5
PA
20286 * target.h (struct target_ops): Add qxfer_osdata member.
20287 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20288 and dirent.h.
20289 (linux_qxfer_osdata): New functions.
20290 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20291 callback.
20292 * server.c (handle_query): Handle "qXfer:osdata:read:".
20293 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20294 (buffer_xml_printf): New functions.
20295 * server.h (struct buffer): New.
20296 (buffer_grow_str, buffer_grow_str0): New macros.
20297 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20298 (buffer_xml_printf): Declare.
07e059b5 20299
4cab47ab
DE
203002008-11-24 Doug Evans <dje@google.com>
20301
20302 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20303
f142445f
DJ
203042008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20305
20306 * server.c (handle_v_run): Always use the supplied argument list.
20307
d0107bb6 203082008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20309
d0107bb6
BW
20310 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20311 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20312
2c4ad781
TJB
203132008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20314
20315 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20316 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20317 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20318 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20319 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20320 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20321 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20322 XML target descriptions.
20323 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20324 when inferior is running on an ISA 2.05 or later processor. Add
20325 special case to return offset for full 64-bit slot of FPSCR when
20326 in 32-bits.
20327
dfb64f85
DJ
203282008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20329
20330 * Makefile.in (SFILES, clean): Added sparc64 files.
20331 (reg-sparc64.o, reg-sparc64.c): New.
20332 * configure.srv (sparc*-*-linux*): New configuration.
20333 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20334 syscall arguments for SPARC.
20335 (regsets_store_inferior_registers): Likewise.
20336 * linux-sparc-low.c: New file.
20337
66b6e1dd
DE
203382008-10-21 Doug Evans <dje@google.com>
20339
20340 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20341 (READLINE_DIR,READLINE_DEP): Delete.
20342 (INTERNAL_CFLAGS): Update.
20343 (LINTFLAGS): Update.
20344
9b710a42
PA
203452008-10-10 Pedro Alves <pedro@codesourcery.com>
20346
20347 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20348 whole argv from the last run, not just argv[0].
20349
5822d809
PA
203502008-09-08 Pedro Alves <pedro@codesourcery.com>
20351
20352 * regcache.c (new_register_cache): Return NULL if the register
20353 cache size isn't known yet.
20354 (free_register_cache): Avoid dereferencing a NULL regcache.
20355
74aac56f
DJ
203562008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20357
20358 * configure.srv: Merge MIPS and MIPS64.
20359
400b20f5
MR
203602008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20361
20362 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20363
677c5bb1
LM
203642008-08-18 Luis Machado <luisgpm@br.ibm.com>
20365
20366 * Makefile.in: Add required vsx dependencies.
20367
20368 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20369 Declare init_registers_powerpc_vsx32l.
20370 Declare init_registers_powerpc_vsx64l.
20371 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20372 (ppc_arch_setup): Check for VSX in hwcap.
20373 (ppc_fill_vsxregset): New function.
20374 (ppc_store_vsxregset): New function.
20375 Add new VSX entry in regset_info target_regsets.
20376
20377 * configure.srv: Add new VSX dependencies.
20378
a6f3e723
SL
203792008-08-12 Pedro Alves <pedro@codesourcery.com>
20380
20381 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20382 (remote_open): Set or clear transport_is_reliable.
20383 (putpkt_binary): Don't expect acks in noack mode.
20384 (getpkt): Don't send ack/nac in noack mode.
20385 * server.c (handle_general_set): Handle QStartNoAckMode.
20386 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20387 qSupported.
20388 (main): Reset noack_mode on every connection.
20389 * server.h (noack_mode): Declare.
20390
a417dc56
RW
203912008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20392
20393 * Makefile.in (GDBREPLAY_OBS): New variable.
20394 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20395
3221518c
UW
203962008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20397 Daniel Jacobowitz <dan@codesourcery.com>
20398
20399 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20400 (usr_store_inferior_registers): Likewise.
20401 (regsets_store_inferior_registers): Likewise.
20402
ec56be1b
PA
204032008-07-31 Rolf Jansen <rj@surtec.com>
20404 Pedro Alves <pedro@codesourcery.com>
20405
20406 * configure.ac: Check for memmem declaration.
20407 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20408 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20409 (disable_packet_qfThreadInfo): Unconditionally compile.
20410 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20411 * configure, config.in: Regenerate.
20412
2fe5e3ff
DE
204132008-07-28 Doug Kwan <dougkwan@google.com>
20414
20415 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20416 (linux_write_memory): Remove declaration of errno.
20417
836acd6d
UW
204182008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20419
20420 * linux-low.c (handle_extended_wait): Do not use "status"
20421 variable uninitialized.
20422
aeba519e
PA
204232008-07-07 Pedro Alves <pedro@codesourcery.com>
20424
20425 * server.c (handle_v_attach): Inhibit reporting dll changes.
20426
db42f210
PA
204272008-06-27 Pedro Alves <pedro@codesourcery.com>
20428
20429 * remote-utils.c (prepare_resume_reply): If requested, don't
20430 output "thread:TID" in the T stop reply.
20431
20432 * server.c (disable_packet_vCont, disable_packet_Tthread)
20433 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20434 (handle_query): If requested, disable support for qC, qfThreadInfo
20435 and qsThreadInfo.
20436 (handle_v_requests): If requested, disable support for vCont.
20437 (gdbserver_show_disableable): New.
20438 (main): Handle --disable-packet and --disable-packet=LIST.
20439
20440 * server.h (disable_packet_vCont, disable_packet_Tthread)
20441 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20442
8e4c5421
CD
204432008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20444
20445 * server.c (gdbserver_usage): Mention --version.
20446
6e23a804
DJ
204472008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20448
20449 * Makefile.in (gdbreplay.o): New rule.
20450
90aa6a40
JM
204512008-06-06 Joseph Myers <joseph@codesourcery.com>
20452
20453 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20454 message, not gdbserver.
20455
c16158bc 204562008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20457 Nathan Sidwell <nathan@codesourcery.com>
20458 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20459
20460 * acinclude.m4: Include ../../config/acx.m4.
20461 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20462 * configure, config.in: Regenerate.
20463 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20464 * server.c (gdbserver_version): Print PKGVERSION.
20465 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20466 (main): Adjust gdbserver_usage calls.
20467 * gdbreplay.c (version, host_name): Add declarations.
20468 (gdbreplay_version, gdbreplay_usage): New.
20469 (main): Accept --version and --help options.
20470
aeb75bf5
DJ
204712008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20472
20473 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20474 (arm_breakpoint_at): Handle Thumb.
20475 (the_low_target): Add comment.
20476
76b233dd
UW
204772008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20478
20479 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20480
08388c79
DE
204812008-05-09 Doug Evans <dje@google.com>
20482
a3c83fae
DE
20483 * server.h (decode_search_memory_packet): Declare.
20484 * remote-utils.c (decode_search_memory_packet): New fn.
20485 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20486 (handle_search_memory): New fn.
20487 (handle_query): Process qSearch:memory packets.
20488
bb9c3d36
UW
204892008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20490
20491 * regcache.c (registers_length): Remove.
20492 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20493 full register packet.
20494 * regcache.h (registers_length): Remove prototype.
20495 * server.h (PBUFSIZ): Define to 16384.
20496
7284e1be
UW
204972008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20498
20499 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20500 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20501 powerpc-64l.o, and powerpc-altivec64l.o.
20502 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20503 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20504 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20505 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20506 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20507 to srv_xmlfiles.
20508
20509 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20510 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20511 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20512 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20513 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20514 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20515 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20516 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20517 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20518 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20519 (clean): Update.
20520
20521 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20522 (init_registers_powerpc_32l): ... this new prototype.
20523 (init_registers_powerpc_32): Remove, replace by ...
20524 (init_registers_powerpc_altivec32l): ... this new prototype.
20525 (init_registers_powerpc_e500): Remove, replace by ...
20526 (init_registers_powerpc_e500l): ... this new prototype.
20527 (init_registers_ppc64): Remove, replace by ...
20528 (init_registers_powerpc_64l): ... this new prototype.
20529 (init_registers_powerpc_64): Remove, replace by ...
20530 (init_registers_powerpc_altivec64l): ... this new prototype.
20531 (ppc_num_regs): Set to 73.
20532 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20533 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20534 (ppc_cannot_store_register): Handle orig_r3 and trap.
20535 (ppc_arch_setup): Update init_registers_... calls.
20536 (ppc_fill_gregset): Handle orig_r3 and trap.
20537
20538 * inferiors.c (clear_inferiors): Reset current_inferior.
20539
fdc59709
PB
205402008-04-23 Paolo Bonzini <bonzini@gnu.org>
20541
889bf7c5
PA
20542 * acinclude.m4: Add override.m4.
20543 * configure: Regenerate.
fdc59709 20544
c9b2f845
UW
205452008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20546
20547 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20548 initial call to init_register_ppc64.
20549
550512b8
UW
205502008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20551
43aaf8b6
PA
20552 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20553 single powerpc*-*-linux* case.
550512b8
UW
20554 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20555
b6430ec3
UW
205562008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20557
20558 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20559 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20560 from reg_xmlfiles.
20561 * linux-ppc-low.c: Include <elf.h>.
20562 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20563 (ppc_hwcap): New global variable.
20564 (ppc_regmap): Remove __SPE__ #ifdef sections.
20565 (ppc_regmap_e500): New global variable.
20566 (ppc_cannot_store_register): Update __SPE__ special case.
20567 (ppc_get_hwcap): New function.
20568 (ppc_arch_setup): Use it to determine whether inferior supports
20569 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20570 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20571 Do not access registers if target does not support AltiVec.
20572 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20573 Do not access registers if target does not support SPE.
20574 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20575
52fa2412
UW
205762008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20577
20578 * linux-low.c (disabled_regsets, num_regsets): New.
20579 (use_regsets_p): Delete.
20580 (linux_wait_for_process): Clear disabled_regsets.
20581 (regsets_fetch_inferior_registers): Check and set it.
20582 (regsets_store_inferior_registers): Likewise.
20583 (linux_fetch_registers, linux_store_registers): Do not use
20584 use_regsets_p.
20585 (initialize_low): Allocate disabled_regsets.
20586
e28b3332
DJ
205872008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20588
20589 * Makefile.in (LIBOBJS): New.
20590 (OBS): Use LIBOBJS.
20591 (memmem.o): New rule.
20592 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20593 * configure: Regenerated.
20594
4536995d
UW
205952008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20596
20597 * server.c (handle_query): Never return "unsupported" for
20598 qXfer:features:read queries.
20599
221c031f
UW
206002008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20601
20602 * server.c (get_features_xml): Fix inverted condition.
20603 (handle_query): Always support qXfer:feature:read.
20604
ccd213ac
DJ
206052008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20606
20607 * server.c (wrapper_argv): New.
20608 (start_inferior): Handle wrapper_argv. If set, expect an extra
20609 trap.
20610 (gdbserver_usage): Document --wrapper.
20611 (main): Parse --wrapper.
20612
6fe305f7
UW
206132008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20614
20615 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20616 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20617 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20618 (ppc_set_pc): Likewise.
20619 (ppc_arch_setup): New function.
20620 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20621 of collect_register.
889bf7c5 20622 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20623
5b0a002e
UW
206242008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20625
20626 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20627 instead of linux-ppc64-low.o.
20628 * linux-ppc64-low.c: Remove file.
20629 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20630 (linux-ppc64-low.o): Remove rule.
20631
20632 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20633 (init_registers_powerpc_64): Likewise.
20634 (ppc_regmap): Conditionally define depending on __powerpc64__.
20635 (ppc_cannot_store_register): Do not special-case "fpscr" when
20636 compiled on __powerpc64__.
20637 (ppc_collect_ptrace_register): New function.
20638 (ppc_supply_ptrace_register): New function.
20639 (ppc_breakpoint): Change type to "unsigned int".
20640 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20641 (the_low_target): Conditionally provide initializers for the
889bf7c5 20642 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20643 collect_ptrace_register and supply_ptrace_register members.
20644
9b4b61c8
UW
206452008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20646
20647 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20648 * server.c (gdbserver_xmltarget): Define.
20649 (get_features_xml): Use it to replace "target.xml" and arch_string.
20650
20651 * configure.srv: Remove srv_xmltarget. Add XML files that were
20652 mentioned there to srv_xmlfiles instead. Remove conditional tests
20653 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20654 srv_xmlfiles and srv_regobj to include all possible choices.
20655 * configure.ac (srv_xmltarget): Remove.
20656 (srv_xmlfiles): Do not add "target.xml".
20657 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20658 checks for supplementary target information.
20659 * configure: Regenerate.
20660 * Makefile.in (XML_TARGET): Remove.
20661 (target.xml): Remove rule.
20662 (clean): Do not clean up target.xml.
20663 (.PRECIOUS): Do not mention target.xml.
20664
20665 * target.h (struct target_ops): Remove arch_string member.
20666 * linux-low.c (linux_arch_string): Remove.
20667 (linux_target_ops): Remove arch_string initializer.
20668 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20669 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20670 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20671 * spu-low.c (spu_arch_string): Remove.
20672 (spu_target_ops): Remove arch_string initializer.
20673 * win32-low.c (win32_arch_string): Remove.
20674 (win32_target_ops): Remove arch_string initializer.
20675 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20676 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20677 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20678
ee1a7ae4
UW
206792008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20680
20681 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20682 by collect_ptrace_register and supply_ptrace_register hooks.
20683 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20684 instead of checking for the_low_target.left_pad_xfer.
20685 (usr_store_inferior_registers): Use collect_ptrace_register callback
20686 instead of checking for the_low_target.left_pad_xfer.
20687
20688 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20689 (s390_supply_ptrace_register): Likewise.
20690 (s390_fill_gregset): Call s390_collect_ptrace_register.
20691 (the_low_target): Update.
20692
20693 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20694 (ppc_supply_ptrace_register): Likewise.
20695 (the_low_target): Update.
20696
20697 * linux-i386-low.c (the_low_target): Update.
20698 * linux-x86-64-low.c (the_low_target): Update.
20699
d61ddec4
UW
207002008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20701
20702 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20703 reg-s390.o and reg-s390x.o.
20704
20705 * linux-low.c (new_inferior): New global variable.
20706 (linux_create_inferior, linux_attach): Set it.
20707 (linux_wait_for_process): Call the_low_target.arch_setup after the
20708 target has stopped for the first time.
20709 (initialize_low): Do not call the_low_target.arch_setup.
20710
20711 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20712 (s390_set_pc): Likewise.
20713 (s390_arch_setup): New function.
20714 (the_low_target): Use s390_arch_setup as arch_setup routine.
20715
20716 * regcache.c (realloc_register_cache): New function.
20717 (set_register_cache): Call it for each existing regcache.
20718
d05b4ac3
UW
207192008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20720
20721 * server.h (init_registers): Remove prototype.
20722
20723 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20724 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20725 instead of init_registers ().
20726 * linux-arm-low.c (init_registers_arm): Add prototype.
20727 (init_registers_arm_with_iwmmxt): Likewise.
20728 (the_low_target): Add initializer for arch_setup field.
20729 * linux-cris-low.c (init_registers_cris): Add prototype.
20730 (the_low_target): Add initializer for arch_setup field.
20731 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20732 (the_low_target): Add initializer for arch_setup field.
20733 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20734 (the_low_target): Add initializer for arch_setup field.
20735 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20736 (the_low_target): Add initializer for arch_setup field.
20737 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20738 (the_low_target): Add initializer for arch_setup field.
20739 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20740 (the_low_target): Add initializer for arch_setup field.
20741 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20742 (init_registers_mips64_linux): Likewise.
20743 (the_low_target): Add initializer for arch_setup field.
20744 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20745 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20746 (the_low_target): Add initializer for arch_setup field.
20747 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20748 (init_registers_powerpc_64): Likewise.
20749 (the_low_target): Add initializer for arch_setup field.
20750 * linux-s390-low.c (init_registers_s390): Add prototype.
20751 (init_registers_s390x): Likewise.
20752 (the_low_target): Add initializer for arch_setup field.
20753 * linux-sh-low.c (init_registers_sh): Add prototype.
20754 (the_low_target): Add initializer for arch_setup field.
20755 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20756 (the_low_target): Add initializer for arch_setup field.
20757 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20758 (the_low_target): Add initializer for arch_setup field.
20759
20760 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20761 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20762 instead of init_registers ().
20763 * win32-arm-low.c (init_registers_arm): Add prototype.
20764 (the_low_target): Add initializer for arch_setup field.
20765 * win32-i386-low.c (init_registers_i386): Add prototype.
20766 (the_low_target): Add initializer for arch_setup field.
20767
20768 * spu-low.c (init_registers_spu): Add prototype.
20769 (initialize_low): Call initialie_registers_spu () instead of
20770 initialize_registers ().
20771
fd96d250
PA
207722008-02-19 Pedro Alves <pedro@codesourcery.com>
20773
20774 * server.c (handle_v_requests): When handling the vRun and vAttach
20775 packets, if already debugging a process, don't kill it. Return an
20776 error instead.
20777
d41b6bb4
DJ
207782008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20779
20780 * server.c (handle_query): Correct length check.
20781
5ac588cf
PA
207822008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20783
20784 * win32-low.c (do_initial_child_stuff): Add process handle
20785 parameter. Set current_process_handle and current_process_id from the
20786 parameters. Clear globals.
20787 (win32_create_inferior): Don't set current_process_handle and
20788 current_process_id here. Instead pass them on the call to
20789 do_initial_child_stuff.
20790 (win32_attach): Likewise.
20791 (win32_clear_inferiors): New.
20792 (win32_kill): Don't close the current process handle or the
20793 current thread handle here. Instead call win32_clear_inferiors.
20794 (win32_detach): Don't open a new handle to the process. Call
20795 win32_clear_inferiors.
20796 (win32_join): Don't rely on current_process_handle; open a new
20797 handle using the process id.
20798 (win32_wait): Call win32_clear_inferiors when the inferior process
20799 has exited.
20800
ecd7ecbc
DJ
208012008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20802
20803 * server.c (monitor_show_help): Add "exit".
20804
1525d545
MG
208052008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20806
ecd7ecbc 20807 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20808 (clean): Add reg-xtensa.c.
20809 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20810 * configure.srv (xtensa*-*-linux*) New target.
20811 * linux-xtensa-low.c: New.
20812 * xtensa-xtregs.c: New.
1525d545 20813
59a016f0
PA
208142008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20815
20816 * hostio.c: Don't include errno.h.
20817 (errno_to_fileio_errno): Move to hostio-errno.
20818 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20819 error number outputting to the target->hostio_last_error callback.
20820 (hostio_packet_error): Use FILEIO_EINVAL directly.
20821 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20822 calls to hostio_error.
20823 * hostio-errno.c: New.
20824 * server.h (hostio_last_error_from_errno): Declare.
20825 * target.h (target_ops): Add hostio_last_error member.
20826 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20827 as hostio_last_error handler.
889bf7c5 20828 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20829 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20830 (wince_hostio_last_error): New functions.
20831 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20832 as hostio_last_error handler.
20833 (win32_target_ops) [!_WIN32_WCE]: Register
20834 hostio_last_error_from_errno as hostio_last_error handler.
20835 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20836 (hostio-errno.o): New rule.
20837 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20838 * configure.srv (srv_hostio_err_objs): New variable. Default to
20839 hostio-errno.o.
20840 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20841 * configure: Regenerate.
20842
2d717e4f
DJ
208432008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20844
20845 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20846 (linux_kill, linux_detach): Clean up the process list.
20847 * remote-utils.c (remote_open): Improve port number parsing.
20848 (putpkt_binary, input_interrupt): Only send interrupts if the target
20849 is running.
20850 * server.c (extended_protocol): Make static.
20851 (attached): Define earlier.
20852 (exit_requested, response_needed, program_argv): New variables.
20853 (target_running): New.
20854 (start_inferior): Clear attached here.
20855 (attach_inferior): Set attached here.
20856 (require_running): Define.
20857 (handle_query): Use require_running and target_running. Implement
20858 "monitor exit".
20859 (handle_v_attach, handle_v_run): New.
20860 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20861 (gdbserver_usage): Update.
20862 (main): Redo argument parsing. Handle --debug and --multi. Handle
20863 --attach along with other options or after the port. Save
20864 program_argv. Support no initial program. Resynchronize
20865 communication with GDB after an error. Handle "monitor exit".
20866 Use require_running and target_running. Always allow the extended
20867 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20868 restart in extended mode.
20869 * README: Refer to the GDB manual. Update --attach usage.
20870
7407e2de
AS
208712007-12-20 Andreas Schwab <schwab@suse.de>
20872
20873 * linux-low.c (STACK_SIZE): Define.
20874 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20875 (linux_test_for_tracefork): Likewise.
20876
b65d95c5
DJ
208772007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20878
20879 * linux-low.c (linux_wait_for_event): Update messages. Do not
20880 reinsert auto-delete breakpoints.
20881 * mem-break.c (struct breakpoint): Change return type of handler to
20882 int.
20883 (set_breakpoint_at): Update handler type.
20884 (reinsert_breakpoint_handler): Return 1 instead of calling
20885 delete_breakpoint.
20886 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20887 setting a new one.
20888 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20889 * mem-break.h (set_breakpoint_at): Update handler type.
20890 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20891 * win32-low.c (auto_delete_breakpoint): New.
20892 (get_child_debug_event): Use it.
20893
4e799345
DJ
208942007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20895
20896 * configure.ac: Check for pread and pwrite.
20897 * hostio.c (handle_pread): Fall back to lseek and read.
20898 (handle_pwrite): Fall back to lseek and write.
20899 * config.in, configure: Regenerated.
20900
27524b67
DJ
209012007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20902
20903 * server.c (myresume): Add own_buf argument.
20904 (main): Update calls.
20905
a20d5e98
DJ
209062007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20907
20908 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20909 * remote-utils.c (remote_open): Do not call disable_async_io.
20910 (block_async_io): Delete.
20911 (unblock_async_io): Make static.
20912 (initialize_async_io): New.
20913 * server.c (handle_v_cont): Handle async I/O here.
20914 (myresume): Likewise. Move other common resume tasks here...
20915 (main): ... from here. Call initialize_async_io. Disable async
20916 I/O before the main loop.
20917 * server.h (initialize_async_io): Declare.
20918 (block_async_io, unblock_async_io): Delete prototypes.
20919 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20920
b79d787e
DJ
209212007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20922
20923 * remote-utils.c (readchar): Allow binary data in received messages.
20924
d97903b2
PA
209252007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20926
20927 * win32-low.c (attaching): New global.
20928 (win32_create_inferior): Clear the `attaching' global.
20929 (win32_attach): Set the `attaching' global.
20930 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20931 attaching. Only set a breakpoint at the entry point if not
20932 attaching.
20933
311de423
PA
209342007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20935
20936 * server.c (main): Don't report dll events on the initial
20937 connection on attaches.
20938
6c2d16d2
PA
209392007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20940
20941 * server.c (main): Relax numerical bases supported for the pid of
20942 the --attach command line argument.
20943
5ca906e6
PA
209442007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20945
20946 * win32-low.c (win32_attach): Call OpenProcess before
20947 DebugActiveProcess, not after. Add last error output to error
20948 call.
20949
9c6c8194
PA
209502007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20951
20952 * win32-low.c (win32_get_thread_context)
20953 (win32_set_thread_context): New functions.
20954 (thread_rec): Use win32_get_thread_context.
20955 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20956 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20957 field.
20958
4d5d1aaa
PA
209592007-12-03 Leo Zayas
20960 Pedro Alves <pedro_alves@portugalmail.pt>
20961
20962 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20963 global variables.
20964 (child_add_thread): Minor cleanup.
20965 (child_continue): Resume artificially suspended threads before
20966 calling ContinueDebugEvent.
20967 (suspend_one_thread): New.
20968 (fake_breakpoint_event): New.
20969 (get_child_debug_event): Change return type to int. Check here if
20970 gdb sent an interrupt request. If a soft interrupt was requested,
20971 fake a breakpoint event. Return 0 if there is no event to handle,
20972 and 1 otherwise.
20973 (win32_wait): Don't check here if gdb sent an interrupt request.
20974 Ensure there is a valid event to handle.
20975 (win32_request_interrupt): Add soft interruption method as last
20976 resort.
20977
c436e841
PA
209782007-12-03 Leo Zayas
20979 Pedro Alves <pedro_alves@portugalmail.pt>
20980
20981 * win32-low.h (win32_thread_info): Add descriptions to the
20982 structure members. Replace `suspend_count' counter by a
20983 `suspended' flag.
20984 * win32-low.c (thread_rec): Update condition of when to get the
20985 context from the inferior. Rely on ContextFlags being set if it
20986 has already been retrieved. Only suspend the inferior thread if
20987 we haven't already. Warn if that fails.
20988 (continue_one_thread): s/suspend_count/suspended/. Only call
20989 ResumeThread once. Warn if that fails.
20990
e7b5fa67
PA
209912007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20992
20993 * win32-low.c (win32_wait): Don't read from the inferior when it
20994 has already exited.
20995
a385171d
PA
209962007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20997
20998 * Makefile.in (win32_low_h): New variable.
20999 (win32-low.o): Add dependency on $(win32_low_h).
21000 (win32-arm-low.o, win32-i386-low.o): New rules.
21001
f80c84b3
DJ
210022007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21003
21004 * hostio.c: Correct copyright year.
21005
a6b151f1
DJ
210062007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21007
21008 * Makefile.in (OBS): Add hostio.o.
21009 (hostio.o): New rule.
21010 * server.h (handle_vFile): Declare.
21011 * hostio.c: New file.
21012 * server.c (handle_v_requests): Take packet_len and new_packet_len
21013 for binary packets. Call handle_vFile.
21014 (main): Update call to handle_v_requests.
21015
f9387fc3
DJ
210162007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21017
21018 * linux-low.c: Include <sched.h>.
21019
51c2684e
DJ
210202007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21021
21022 * linux-low.c (linux_tracefork_grandchild): New.
21023 (linux_tracefork_child): Use clone.
21024 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21025
75f83163
JB
210262007-10-31 Joel Brobecker <brobecker@adacore.com>
21027
21028 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21029
da5898ce
DJ
210302007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21031
21032 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21033
24a09b5f
DJ
210342007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21035
21036 * inferiors.c (change_inferior_id): Delete.
21037 (add_pid_to_list, pull_pid_from_list): New.
21038 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21039 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21040 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21041 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21042 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21043 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21044 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21045 (using_threads): Always set to 1.
21046 (handle_extended_wait): New.
21047 (add_process): Do not set TID.
21048 (linux_create_inferior): Set must_set_ptrace_flags.
21049 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21050 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21051 (linux_thread_alive): Rename TID argument to LWPID.
21052 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21053 (linux_wait_for_event): Do not use TID or check using_threads. Update
21054 call to dead_thread_notify. Call handle_extended_wait.
21055 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21056 (send_sigstop): Delete sigstop_sent.
21057 (wait_for_sigstop): Avoid TID.
21058 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21059 (linux_test_for_tracefork): New.
21060 (linux_lookup_signals): Use thread_db_active and
21061 linux_supports_tracefork_flag.
21062 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21063 * linux-low.h (get_process_thread): Avoid TID.
21064 (struct process_ifo): Move thread_known and tid to the end. Remove
21065 sigstop_sent.
21066 (linux_attach_lwp, thread_db_init): Update prototypes.
21067 * server.h (change_inferior_id): Delete prototype.
21068 (add_pid_to_list, pull_pid_from_list): New prototypes.
21069 * thread-db.c (thread_db_use_events): New.
21070 (find_first_thread): Rename to...
21071 (find_one_thread): ...this. Update callers and messages. Do not
21072 call fatal. Check thread_db_use_events. Do not call
21073 change_inferior_id or new_thread_notify.
21074 (maybe_attach_thread): Update. Do not call new_thread_notify.
21075 (thread_db_init): Set thread_db_use_events. Check use_events.
21076 * utils.c (fatal, warning): Correct message prefix.
21077
30ed0a8f
DJ
210782007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21079
21080 * Makefile.in (clean): Remove new files.
21081 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21082 (powerpc-64.o, powerpc-64.c): New rules.
21083 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21084 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21085 with SPE.
21086 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21087 SPE targets.
21088 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21089 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21090 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21091 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21092 (target_regsets): Add AltiVec and SPE register sets.
21093 * configure.ac: Check for AltiVec and SPE.
21094 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21095 (ppc_fill_vrregset, ppc_store_vrregset): New.
21096 (target_regsets): Add AltiVec register set.
21097 * configure: Regenerated.
21098
fd462a61
DJ
210992007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21100
21101 * linux-low.c (O_LARGEFILE): Define.
21102 (linux_read_memory): Use /proc/PID/mem.
21103 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21104 * configure, config.in: Regenerated.
21105
69f223ed
DJ
211062007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21107
21108 * linux-low.c (linux_wait_for_event): Do not pass signals while
21109 single-stepping.
21110
aec18585
PA
211112007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21112
21113 * win32-low.c (create_process): New.
21114 (win32_create_inferior): Use create_process instead of
21115 CreateProcess. If create_process failed retry appending an ".exe"
21116 suffix. Store the GetLastError result immediatelly after
21117 create_process calls and use it on the call to error.
21118
34d86ddd
PA
211192007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21120
21121 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21122
5a0e3bd0
JB
211232007-08-23 Joel Brobecker <brobecker@adacore.com>
21124
21125 * configure.ac: Switch license to GPLv3.
21126
f88c79e6
MS
211272007-08-01 Michael Snyder <msnyder@access-company.com>
21128
21129 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21130
6b3d9b83
PA
211312007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21132
21133 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21134 typedef.
21135 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21136 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21137 CloseToolhelp32Snapshot.
21138 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21139 CloseToolhelp32Snapshot.
21140
c588c53c
MS
211412007-07-27 Michael Snyder <michael.snyder@access-company.com>
21142
21143 * server.c (main): Check for inferior exit before main loop.
21144
aa0403d9
PA
211452007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21146
21147 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21148 instead of on tmp_desc.
21149
255e7678
DJ
211502007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21151 Daniel Jacobowitz <dan@codesourcery.com>
21152
21153 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21154 (add_thread): Minor cleanups.
21155 (clear_inferiors): Move lower in the file. Clear the DLL
21156 list.
21157 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21158 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21159 (xml_escape_text): New.
21160 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21161 for qSupported.
21162 (handle_v_cont): Report errors.
21163 (gdbserver_version): Update.
21164 (main): Correct size of own_buf. Do not report initial DLL events.
21165 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21166 (unloaded_dll, xml_escape_text): New.
21167 * win32-low.c (enum target_waitkind): Update comments.
21168 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21169 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21170 (win32_EnumProcessModules, win32_GetModuleInformation)
21171 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21172 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21173 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21174 (win32_Module32First, win32_Module32Next, load_toolhelp)
21175 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21176 (get_child_debug_event): Handle DLL events.
21177 (win32_wait): Likewise.
21178
0d37add9
DJ
211792007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21180
21181 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21182 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21183
45e2715e
PA
211842007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21185
21186 * win32-low.c (handle_output_debug_string): Ignore event if not
21187 waiting.
21188
c5674cf1
PA
211892007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21190
21191 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21192
2bbe3cc1
DJ
211932007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21194
21195 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21196
ae13219e
DJ
211972007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21198
21199 * inferiors.c (change_inferior_id): Add comment.
21200 * linux-low.c (check_removed_breakpoint): Add an early
21201 prototype. Improve debug output.
21202 (linux_attach): Doc update.
21203 (linux_detach_one_process, linux_detach): Clean up before releasing
21204 each process.
21205 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21206 * linux-low.h (struct process_info): Doc improvement.
21207 * mem-break.c (delete_all_breakpoints): New.
21208 * mem-break.h (delete_all_breakpoints): New prototype.
21209 * thread-db.c (find_first_thread): New.
21210 (thread_db_create_event): Call it instead of
21211 thread_db_find_new_threads. Clean up unused variables.
21212 (maybe_attach_thread): Remove first thread handling.
21213 (thread_db_find_new_threads): Use find_first_thread.
21214 (thread_db_get_tls_address): Likewise.
21215
4105de34
DJ
212162007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21217
21218 * thread-db.c (thread_db_find_new_threads): Add prototype.
21219 (thread_db_create_event): Check for the main thread before adding
21220 a new thread.
21221 (maybe_attach_thread): Only enable event reporting if TID == 0.
21222 (thread_db_get_tls_address): Check for new threads.
21223
2b876972
DJ
212242007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21225
21226 * linux-low.c (linux_create_inferior): Try execv before execvp.
21227 * spu-low.c (spu_create_inferior): Likewise.
21228
7a245884
DJ
212292007-06-13 Mike Frysinger <vapier@gentoo.org>
21230
21231 * linux-low.c (linux_create_inferior): Change execv to execvp.
21232 * spu-low.c (spu_create_inferior): Likewies.
21233
117ce543
DJ
212342007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21235
21236 * Makefile.in (clean): Clean new files instead of deleted ones.
21237 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21238 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21239 rules.
21240 * configure.srv: Specify XML files and new regformats for MIPS and
21241 MIPS64 GNU/Linux.
21242 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21243 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21244 an entry for the restart register.
21245 (mips_cannot_fetch_register, mips_cannot_store_register)
21246 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21247 register names to match the XML descriptions.
21248 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21249 restart register instead of $0.
21250
0e7f50da
UW
212512007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21252 Markus Deuling <deuling@de.ibm.com>
21253
21254 * remote-utils.c (decode_xfer_write): New function.
21255 * server.h (decode_xfer_write): Add prototype.
21256 * server.c (handle_query): Add PACKET_LEN argument. Support
21257 qXfer:spu:read and qXfer:spu:write packets.
21258 (main): Pass packet_len to handle_query.
21259 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21260 * target.h (target_ops): Add qxfer_spu.
21261
374c1d38
UW
212622007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21263
21264 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21265 accessing non-seekable spufs files.
21266
bb63802a
UW
212672007-05-16 Markus Deuling <deuling@de.ibm.com>
21268
889bf7c5 21269 * server.c (handle_query): Add reply for qC packet.
bb63802a 21270
7390519e
PA
212712007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21272 Leo Zayas <lerele@champenstudios@com>
21273
21274 * server.h (check_remote_input_interrupt_request): New function.
21275 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21276 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21277 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21278 (check_remote_input_interrupt_request): New function.
21279 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 21280 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
21281 winapi_GenerateConsoleCtrlEvent): New typedefs.
21282 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21283 to 250 ms.
21284 (win32_wait): Check for remote interrupt request
21285 with check_remote_input_interrupt_request.
21286 (win32_request_interrupt): New function.
21287 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21288
34b34921
PA
212892007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21290
21291 * win32-low.c (debug_registers_changed,
21292 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21293 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21294 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21295 (thread_rec): Get context using the low target.
21296 (child_add_thread): Call thread_added on the low target,
21297 which does the same thing.
21298 (regptr): Delete.
21299 (do_initial_child_stuff): Remove debug registers references.
21300 Set context using the low target. Resume threads after
21301 setting the contexts.
21302 (child_continue): Remove dead variable. Remove debug
21303 registers references.
21304 (child_fetch_inferior_registers): Go through the low target.
21305 (do_child_store_inferior_registers): Remove.
21306 (child_store_inferior_registers): Go through the low target.
21307 (win32_resume): Remove debug registers references.
21308 Set context using the low target.
21309 (handle_exception): Change return type to void. Don't record
21310 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21311 first chance exception.
889bf7c5 21312 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21313 goto loop. Always return after waiting for debug event.
21314 (win32_wait): Convert to switch statement. Handle spurious
21315 events.
21316
21317 * win32-i386-low.c (debug_registers_changed,
21318 debug_registers_used): New.
21319 (initial_stuff): Rename to ...
21320 (i386_initial_stuff): ... this. Clear debug registers
21321 state variables.
21322 (store_debug_registers): Delete.
21323 (i386_get_thread_context): New.
21324 (load_debug_registers): Delete.
21325 (i386_set_thread_context): New.
21326 (i386_thread_added): New.
21327 (single_step): Rename to ...
21328 (i386_single_step): ... this.
21329 (do_fetch_inferior_registers): Rename to ...
21330 (i386_fetch_inferior_register): ... this.
21331 (i386_store_inferior_register): New.
21332 (the_low_target): Adapt to new interface.
21333
21334 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21335 (arm_get_thread_context): New.
21336 (arm_set_thread_context): New.
21337 (regptr): New.
21338 (do_fetch_inferior_registers): Rename to ...
21339 (arm_fetch_inferior_register): ... this.
21340 (arm_store_inferior_register): New.
21341 (arm_wince_breakpoint): Reimplement as unsigned long.
21342 (arm_wince_breakpoint_len): Define.
21343 (the_low_target): Adapt to new interface.
21344
21345 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21346 load_debug_registers. Add get_thread_context, set_thread_context,
21347 thread_added and store_inferior_register. Rename
21348 fetch_inferior_registers to fetch_inferior_register.
21349 (regptr): Remove declaration.
21350
dd6953e1
PA
213512007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21352
21353 * linux-low.c (linux_detach): Change return type to int. Return 0.
21354 * spu-low.c (spu_detach): Likewise.
21355
444d6139
PA
213562007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21357
21358 * target.h (target_ops): Change return type of detach to int.
21359 Add join.
21360 (join_inferior): New.
21361 * server.c (main): Don't skip detach support on mingw32.
21362 If the inferior doesn't support detaching return error.
21363 Call join_inferior instead of using waitpid.
21364 * linux-low.c (linux_join): New.
21365 (linux_target_op): Add linux_join.
21366 * spu-low.c (spu_join): New.
21367 (spu_target_ops): Add spu_join.
21368 * win32-low.c (win32_detach): Adapt to new interface.
21369 Reopen current_process_handle before detaching. Issue a child
21370 resume before detaching.
21371 (win32_join): New.
21372 (win32_target_op): Add win32_join.
21373
1d5315fe
PA
213742007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21375
21376 * win32-low.c (win32-attach): Fix return value.
21377 * target.h (target_ops): Describe ATTACH return values.
21378
bf914831
PA
213792007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21380
21381 * win32-low.c (GETPROCADDRESS): Define.
21382 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21383 (winapi_DebugSetProcessKillOnExit): Likewise.
21384 (win32_create_inferior): Force usage of ansi CreateProcessA.
21385 (win32_attach): Use GETPROCADDRESS.
21386 (win32_detach): Likewise.
21387
f72f3e60
PA
213882007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21389
21390 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21391
ed50f18f
PA
213922007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21393
21394 * win32-low.c: Commit leftover changes from 2007-03-29.
21395
0c2ead7e
DJ
213962007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21397
21398 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21399 fields short instead of int. Add explicit padding.
21400 (i387_cache_to_fsave): Remove unnecessary casts.
21401 (i387_fsave_to_cache): Doc fix.
21402 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21403
73725ff3
DJ
214042007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21405
21406 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21407 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21408
d99f33d8
PA
214092007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21410
21411 * configure.srv (arm*-*-mingw32ce*): Move near the other
21412 arm targets.
21413
68070c10
PA
214142007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21415
2482afc6 21416 * configure.ac: Add errno checking.
68070c10
PA
21417 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21418 sys/file.h and malloc.h.
21419 (AC_CHECK_DECLS): Add perror.
21420 (srv_mingwce): Handle.
2482afc6 21421 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21422 win32-i386-low.o to srv_tgtobj.
21423 (i[34567]86-*-mingw*): Likewise.
21424 (arm*-*-mingw32ce*): Add case.
21425 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21426 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21427 [__MINGW32CE__] (strerror): New function.
21428 [__MINGW32CE__] (errno): Define to GetLastError.
21429 [__MINGW32CE__] (COUNTOF): New macro.
21430 (remote_open): Remove extra close call.
21431 * mem-break.c (delete_breakpoint_at): New function.
21432 * mem-break.h (delete_breakpoint_at): Declare.
21433 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21434 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21435 [USE_WIN32API] (read, write): Add char* casts.
21436 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21437 * server.h: Include wincecompat.h on Windows CE.
21438 [HAVE_ERRNO_H]: Check.
21439 (perror): Declare if not declared.
21440 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21441 (perror_with_name): Remove errno declaration.
21442 * wincecompat.h: New.
21443 * wincecompat.c: New.
21444 * win32-low.h: New.
21445 * win32-arm-low.c: New.
21446 * win32-i386-low.c: New.
21447 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21448 (OUTMSG2): Make it safe.
21449 (_T): New macro.
21450 (COUNTOF): New macro.
21451 (NUM_REGS): Get it from the low target.
21452 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21453 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21454 (thread_rec): Let low target handle debug registers.
21455 (child_add_thread): Likewise.
21456 (child_init_thread_list): Likewise.
21457 (continue_one_thread): Likewise.
21458 (regptr): New.
21459 (do_child_fetch_inferior_registers): Move to ...
21460 * win32-i386-low.c: ... here, and rename to ...
21461 (do_fetch_inferior_registers): ... this.
889bf7c5 21462 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21463 Go through the low target.
21464 (do_child_store_inferior_registers): Use regptr.
21465 (strwinerror): New function.
21466 (win32_create_inferior): Handle Windows CE.
21467 Use strwinerror instead of strerror on Windows error
21468 codes. Add program to the error output.
21469 Don't close the main thread handle on Windows CE.
21470 (win32_attach): Use coredll.dll on Windows CE.
21471 (win32_kill): Close current process and current
21472 thread handles.
21473 (win32_detach): Use coredll.dll on Windows CE.
21474 (win32_resume): Let low target handle debug registers, and
21475 step request.
21476 (handle_exception): Add/Remove initial breakpoint. Avoid
21477 non-existant WSTOPSIG on Windows CE.
21478 (win32_read_inferior_memory): Cast to remove warning.
21479 (win32_arch_string): Go through the low target.
21480 (initialize_low): Call set_breakpoint_data with the low
21481 target's breakpoint.
21482 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21483 FOP_REGNUM, mappings): Move to ...
21484 * win32-i386-low.c: ... here.
21485 * win32-low.c (win32_thread_info): Move to ...
21486 * win32-low.h: ... here.
21487 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21488 win32-arm-low.c and wincecompat.c.
21489 (all:): Add $EXEEXT.
21490 (install-only:): Likewise.
21491 (gdbserver:): Likewise.
21492 (gdbreplay:): Likewise.
21493 * config.in: Regenerate.
21494 * configure: Regenerate.
21495
41093d81
PA
214962007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21497
21498 * win32-low.c: Rename typedef thread_info to
21499 win32_thread_info throughout.
21500
544afa54
PA
215012007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21502
21503 * win32-i386-low.c: Rename to ...
21504 * win32-low.c: ... this.
21505 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21506 * Makefile.in: Likewise.
21507
bce7165d
PA
215082007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21509
21510 * remote-utils.c (monitor_output): Constify msg parameter.
21511 * server.h (monitor_output): Likewise.
21512 * win32-i386-low.c (handle_output_debug_string): New.
21513 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21514 handle_output_debug_string.
21515 (get_child_debug_event): Likewise.
21516
506c7aa0
DJ
215172007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21518
21519 * server.c (main): Correct strtoul check.
21520
42c81e2a
DJ
215212007-03-27 Jon Ringle <jon@ringle.org>
21522
21523 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21524
9453113a
DJ
215252007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21526
21527 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21528
64a69107
DJ
215292007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21530
21531 * terminal.h: Check HAVE_SGTTY_H.
21532
215332007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21534
21535 * remote-utils.c (remote_open): Print out the assigned port number.
21536
c74d0ad8
DJ
215372007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21538
21539 * remote-utils.c (monitor_output): New function.
21540 * server.c (debug_threads): Define here.
21541 (monitor_show_help): New function.
21542 (handle_query): Handle qRcmd.
21543 (main): Do not handle 'd' packet.
21544 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21545 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21546 of debug_threads.
21547
de7c3b4a
PA
215482007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21549
21550 * Makefile.in (EXEEXT): New.
21551 (clean): Use $(EXEEXT).
21552
ef57601b
PA
215532007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21554
21555 * target.h (target_ops): Rename send_signal to request_interrupt,
21556 and remove enum target_signal parameter.
21557 * linux-low.c (linux_request_interrupt): Rename from
21558 linux_send_signal, and always send SIGINT.
21559 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21560 and always send SIGINT.
21561 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21562 of send_signal.
21563 (input_interrupt): Likewise.
21564
820f2bda
PA
215652007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21566
21567 * server.c (get_features_xml): Check if target implemented
21568 arch_string.
21569 * win32-i386-low.c (win32_arch_string): New.
21570 (win32_target_ops): Add win32_arch_string as arch_string member.
21571
ab39bf24
UW
215722007-02-22 Markus Deuling <deuling@de.ibm.com>
21573
21574 * spu-low.c (spu_arch_string): New.
21575 (spu_target_ops): Add spu_arch_string.
21576
61ff6e04
DJ
215772007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21578
21579 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21580 * configure.ac: Do not check for terminal.h.
21581 * configure, config.in: Regenerated.
21582
fb1e4ffc
DJ
215832007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21584
21585 * Makefile.in (OBS): Add $(XML_BUILTIN).
21586 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21587 (clean): Update.
21588 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21589 (arm-with-iwmmxt.c): New.
21590 * config.in, configure: Regenerate.
21591 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21592 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21593 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21594 (arm*-*-linux*): Add iWMMXt and regset support.
21595 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21596 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21597 (arm_store_wmmxregset, target_regsets): New.
21598 * server.c (get_features_xml): Take annex argument. Check builtin
21599 XML documents.
21600 (handle_query): Handle multiple annexes.
21601
0f48aa01
DJ
216022007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21603
21604 * remote-utils.c [USE_WIN32API] (read, write): Define.
21605 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21606 write.
21607
23181151
DJ
216082007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21609
21610 * linux-i386-low.c (the_low_target): Set arch_string.
21611 * linux-x86-64-low.c (the_low_target): Likewise.
21612 * linux-low.c (linux_arch_string): New.
21613 (linux_target_ops): Add it.
21614 * linux-low.h (struct linux_target_ops): Add arch_string.
21615 * server.c (write_qxfer_response): Use const void * for DATA.
21616 (get_features_xml): New.
21617 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21618 * target.h (struct target_ops): Add arch_string method.
21619
9d606399
DJ
216202007-01-03 Denis Pilat <denis.pilat@st.com>
21621 Daniel Jacobowitz <dan@codesourcery.com>
21622
21623 * linux-low.c (linux_kill): Handle being called with no threads.
21624 * win32-i386-low.c (win32_kill): Likewise.
21625 (get_child_debug_event): Clear current_process_handle.
21626
216272006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21628 Daniel Jacobowitz <dan@codesourcery.com>
21629
21630 * remote-utils.c (remote_open): Check the type of specified
21631 serial port devices before opening them.
21632 * server.c (main): Kill the inferior if an error occurs during
21633 the first remote_open.
21634
a5e13d24
DJ
216352006-12-05 Markus Deuling <deuling@de.ibm.com>
21636
21637 * README: Update supported targets.
21638
186947f7
DJ
216392006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21640
21641 * Makefile.in (clean): Remove reg-mips64.c.
21642 (reg-mips64.c, reg-mips64.o): New rules.
21643 * configure.srv: Handle mips64. Include regset support for mips.
21644 * linux-mips-low.c (union mips_register): New.
21645 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21646 (mips_breakpoint, mips_breakpoint_at): Use int.
21647 (mips_collect_register, mips_supply_register)
21648 (mips_collect_register_32bit, mips_supply_register_32bit)
21649 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21650 (mips_store_fpregset, target_regsets): New.
21651 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21652
a13e2c95
UW
216532006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21654
21655 * configure.srv: Add target "spu*-*-*".
21656 * Makefile.in (clean): Remove reg-spu.c.
21657 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21658 * spu-low.c: New file.
21659
cb7283db
DJ
216602006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21661
21662 * configure.ac: Correct td_thr_tls_get_addr test.
21663 * configure: Regenerated.
21664
89be2091
DJ
216652006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21666
21667 * linux-low.c (linux_wait_for_event): Reformat. Use the
21668 pass_signals array.
21669 * remote-utils.c (decode_address_to_semicolon): New.
21670 * server.c (pass_signals, handle_general_set): New.
21671 (handle_query): Mention QPassSignals for qSupported.
21672 (main): Call handle_general_set.
21673 * server.h (pass_signals, decode_address_to_semicolon): New.
21674
000ef4f0
DJ
216752006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21676
21677 * server.c (handle_query): Correct error handling for read_auxv.
21678
b7149293
UW
216792005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21680
21681 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21682 and srv_linux_thread_db to yes.
21683 * linux-s390-low.c (s390_fill_gregset): New function.
21684 (target_regsets): Define data structure.
21685
dae5f5cf
DJ
216862006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21687
21688 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21689 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21690 * config.in, configure: Regenerated.
21691 * inferiors.c (gdb_id_to_thread): New function.
21692 (gdb_id_to_thread_id): Use it.
21693 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21694 * linux-low.h (struct process_info): Add th member.
21695 (thread_db_get_tls_address): New prototype.
21696 * remote-utils.c (decode_address): Make non-static.
21697 * server.c (handle_query): Handle qGetTLSAddr.
21698 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21699 * target.h (struct target_ops): Add get_tls_address.
21700 * thread-db.c (maybe_attach_thread): Save the thread handle.
21701 (thread_db_get_tls_address): New.
21702
32ca6d61
DJ
217032006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21704
21705 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21706 (linux_resume_one_process): Take a siginfo_t *. Update all
21707 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21708 (struct pending_signals): Add a siginfo_t.
21709 (linux_wait_for_process): Always set last_status.
21710 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21711 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21712 * linux-low.h (struct process_info): Add last_status.
21713
5ffff7c1
DJ
217142006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21715
21716 * remote-utils.c (try_rle): New function.
21717 (putpkt_binary): Use it.
21718
8695c747
DJ
217192006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21720
21721 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21722 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21723 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21724 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21725 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21726 point registers.
21727
290fadea
RS
217282006-08-08 Richard Sandiford <richard@codesourcery.com>
21729
21730 * server.c (terminal_fd): New variable.
21731 (old_foreground_pgrp): Likewise.
21732 (restore_old_foreground_pgrp): New function.
21733 (start_inferior): Record the terminal file descriptor in terminal_fd
21734 and its original foreground group in old_foreground_pgrp. Register
21735 restore_old_foreground_pgrp with atexit().
21736
9f2e1e63
DJ
217372006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21738
21739 * server.c (handle_query): Correct qPart to qXfer.
21740
b80864fb
DJ
217412006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21742
21743 * configure.ac: Check for more headers which are missing on
21744 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21745 * configure.srv: Add Cygwin and mingw32.
21746 * remote-utils.c: Don't include headers unconditionally which
21747 are missing on mingw32. Include <winsock.h> for mingw32.
21748 (remote_open): Adjust for mingw32 support. Flush
21749 standard error after writing to it.
21750 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21751 (unblock_async_io, enable_async_io, disable_async_io)
21752 (readchar, getpkt): Update for Winsock support.
21753 (prepare_resume_reply): Expect a protocol signal number.
21754 * server.c: Disable <sys/wait.h> on mingw32.
21755 (start_inferior): Adjust for mingw32 support. Flush
21756 standard error after writing to it.
21757 (attach_inferior): Likewise. Use protocol signal
21758 numbers.
21759 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21760 and names.
21761 * win32-i386-low.c: New file.
21762 * Makefile.in (XM_CLIBS): Set.
21763 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21764 (win32-i386-low.o): New dependency rule.
21765 * linux-low.c (linux_wait): Use target signal numbers.
21766 * target.h (struct target_ops): Doc fix.
21767 * server.h (target_signal_to_name): New prototype.
21768 * gdbreplay.c: Don't include headers unconditionally which
21769 are missing on mingw32. Include <winsock.h> for mingw32.
21770 (remote_close, remote_open): Adjust for Winsock support.
21771 * configure, config.in: Regenerated.
21772
0876f84a
DJ
217732006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21774
21775 * server.c (decode_xfer_read, write_qxfer_response): New.
21776 (handle_query): Take a packet length argument. Handle
21777 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21778 the qSupported response.
21779 (main): Update call to handle_query.
21780
01f9e8fa
DJ
217812006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21782
21783 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21784 (putpkt_binary): Renamed from putpkt and adjusted for binary
21785 data.
21786 (putpkt): New wrapper for putpkt_binary.
21787 (readchar): Don't mask off the high bit.
21788 (decode_X_packet): New function.
21789 * server.c (main): Call putpkt_binary if a handler sets the packet
21790 length. Save the length of the incoming packet. Handle 'X'.
21791 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21792
be2a5f71
DJ
217932006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21794
21795 * server.c (handle_query): Handle qSupported.
21796
ea025f5f
DJ
217972006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21798
21799 * remote-utils.c (all_symbols_looked_up): New variable.
21800 (look_up_one_symbol): Check it.
21801 * server.h (look_up_one_symbol): New declaration.
21802 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21803
9308fc88
DJ
218042006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21805
21806 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21807 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21808 (PTRACE_GET_THREAD_AREA): Define.
21809 (ps_get_thread_area): New function.
21810
52fb6437
NS
218112006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21812
21813 * configure.srv (m68k*-*-uclinux*): New target.
21814 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21815 (linux_resume_one_process): Remove extraneous cast.
21816 (linux_read_offsets): New.
21817 (linux_target_op): Add linux_read_offsets on mmuless systems.
21818 * server.c (handle_query): Add qOffsets logic.
21819 * target.h (struct target_ops): Add read_offsets.
21820
21b0f40c
DJ
218212006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21822
21823 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21824 (PTRACE_GET_THREAD_AREA): Define.
21825 (ps_get_thread_area): New function.
21826 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21827 (linux-x86-64-low.o): Update.
21828
0050a760
DJ
218292006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21830
21831 * configure.ac: Remove checks for prfpregset_t.
21832 * gdb_proc_service.h: New file.
21833 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21834 new "gdb_proc_service.h".
21835 * proc-service.c: Likewise.
21836 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21837 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21838 * Makefile.in (gdb_proc_service_h): Updated.
21839 * configure, config.in: Regenerated.
21840
b92a518e
DJ
218412006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21842
21843 * remote-utils.c (prepare_resume_reply): Move declaration
21844 of gdb_id_from_wait to the top of the block.
21845
545587ee
DJ
218462006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21847
21848 * linux-low.c (regsets_store_inferior_registers): Read the regset
21849 from the target before filling it.
21850
9db87ebd
DJ
218512006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21852
21853 * server.c (attach_inferior): Return SIGTRAP for a successful
21854 attach.
21855
dd24457d
DJ
218562006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21857
21858 * Makefile.in (OBS): Add version.o.
21859 (STAGESTUFF): Delete.
21860 (version.o): Add dependencies.
21861 (version.c): Replace rule.
21862 (clean): Remove version.c.
21863 * server.c (gdbserver_version): New.
21864 (gdbserver_usage): Use printf.
21865 (main): Handle --version and --help.
21866 * server.h (version, host_name): Add declarations.
21867
6f0f660e
EZ
218682005-12-23 Eli Zaretskii <eliz@gnu.org>
21869
889bf7c5
PA
21870 * linux-arm-low.c:
21871 * linux-arm-low.c:
21872 * inferiors.c:
21873 * i387-fp.h:
21874 * i387-fp.c:
21875 * gdbreplay.c:
21876 * regcache.c:
21877 * proc-service.c:
21878 * mem-break.h:
21879 * mem-break.c:
21880 * linux-x86-64-low.c:
21881 * linux-sh-low.c:
21882 * linux-s390-low.c:
21883 * linux-ppc64-low.c:
21884 * linux-ppc-low.c:
21885 * linux-mips-low.c:
21886 * linux-m68k-low.c:
21887 * linux-m32r-low.c:
21888 * linux-low.h:
21889 * linux-low.c:
21890 * linux-ia64-low.c:
21891 * linux-i386-low.c:
21892 * linux-crisv32-low.c:
21893 * thread-db.c:
21894 * terminal.h:
21895 * target.h:
21896 * target.c:
21897 * server.h:
21898 * server.c:
21899 * remote-utils.c:
21900 * regcache.h:
21901 * utils.c:
21902 * Makefile.in:
21903 * configure.ac:
6f0f660e
EZ
21904 * gdbserver.1: Add (C) after Copyright. Update the FSF
21905 address.
21906
9d1fb177
DJ
219072005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21908
21909 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21910 (arm_breakpoint_at): Recognize both breakpoints.
21911 (the_low_target): Use the correct breakpoint instruction.
21912
011a70c2
DJ
219132005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21914
21915 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21916 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21917 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21918 (the_low_target): Update.
21919
7fb85e41
AS
219202005-10-25 Andreas Schwab <schwab@suse.de>
21921
21922 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21923
21924 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21925 (ia64_num_regs): Reduce to 462.
21926
3db0444b
DJ
219272005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21928
21929 * acinclude.m4: Correct quoting.
21930 * aclocal.m4: Regenerated.
21931
21932 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21933 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21934 (thread_db_init): Call thread_db_err_str.
21935 * configure.ac: Check for TD_VERSION.
21936 * config.in, configure: Regenerated.
21937
bee0189a
DJ
219382005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21939
21940 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21941
e9d25b98
DJ
219422005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21943
21944 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21945 is not available. Define HAVE_PTRACE_GETREGS if it is.
21946 * config.in, configure: Regenerated.
21947 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21948 * linux-i386-low.c, linux-m68k-low.c: Update to use
21949 HAVE_PTRACE_GETREGS.
21950 * linux-low.c (regsets_fetch_inferior_registers)
21951 (regsets_store_inferior_registers): Only return 0 if we processed
21952 GENERAL_REGS.
21953 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21954 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21955
a06660f7
DJ
219562005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21957
21958 * inferiors.c (struct thread_info): Add gdb_id.
21959 (add_thread): Add gdb_id argument.
21960 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21961 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21962 calls to add_thread.
21963 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21964 * server.c (handle_query): Use thread_to_gdb_id.
21965 (handle_v_cont, main): Use gdb_id_to_thread_id.
21966 * server.h (add_thread): Update prototype.
21967 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21968 prototypes.
21969
5a1f5858
DJ
219702005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21971
21972 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21973 left-padded registers.
21974 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21975 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21976
e122f1f5
SE
219772005-07-01 Steve Ellcey <sje@cup.hp.com>
21978
21979 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21980 * configure: Regenerate.
21981 * config.in: Regenerate.
21982 * server.h (NEED_DECLARATION_STRERROR):
21983 Replace with !HAVE_DECL_STRERROR.
21984
d592fa2f
DJ
219852005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21986
21987 * linux-low.c (linux_wait, linux_send_signal): Don't test
21988 an unsigned long variable for > 0 if it could be MAX_ULONG.
21989 * server.c (myresume): Likewise.
21990 * target.c (set_desired_inferior): Likewise.
21991
ccbd4912
MK
219922005-06-13 Mark Kettenis <kettenis@gnu.org>
21993
21994 * configure.ac: Simplify and improve check for socklen_t.
21995 * configure, config.in: Regenerate.
21996
f450004a
DJ
219972005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21998
21999 * acconfig.h: Remove.
22000 * configure.ac: Add a test for socklen_t. Use three-argument
22001 AC_DEFINE throughout.
22002 * config.in: Regenerated using autoheader 2.59.
22003 * configure: Regenerated.
22004
22005 * gdbreplay.c (socklen_t): Provide a default.
22006 (remote_open): Use socklen_t.
22007 * remote-utils.c (socklen_t): Provide a default.
22008 (remote_open): Use socklen_t.
22009 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
22010 unsigned char.
22011
22012 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22013 char for buffers.
22014 * linux-low.c (linux_read_memory, linux_write_memory)
22015 (linux_read_auxv): Likewise.
22016 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22017 (check_mem_write): Likewise.
22018 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22019 Likewise.
22020 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22021 (registers_from_string, register_data): Likewise.
22022 * server.c (handle_query, main): Likewise.
22023 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22024 (decode_M_packet): Likewise.
22025 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22026 * target.h (struct target_ops): Update read_memory, write_memory,
22027 and read_auxv.
22028 (read_inferior_memory, write_inferior_memory): Update.
22029 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22030 to unsigned char *.
22031 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22032 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22033 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22034 linux-s390-low.c, linux-sh-low.c: Update for changes in
22035 read_inferior_memory and the_low_target->breakpoint.
22036
eee84df1
DJ
220372005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22038
22039 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22040 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22041 * configure.srv: Add powerpc64-*-linux*.
22042 * linux-ppc64-low.c: New file.
22043
45b134e5
OF
220442005-05-23 Orjan Friberg <orjanf@axis.com>
22045
22046 * linux-cris-low.c: New file with support for CRIS.
22047 * linux-crisv32-low.c: Ditto for CRISv32.
22048 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22049 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 22050 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
22051 reg-crisv32.o, and reg-crisv32.c to make rules.
22052 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22053 recognized targets.
22054
48d93c75
UW
220552005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22056
22057 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22058 of sizeof (PTRACE_XFER_TYPE).
22059 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22060
e013ee27
OF
220612005-05-12 Orjan Friberg <orjanf@axis.com>
22062
889bf7c5 22063 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
22064 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22065 pointers for hardware watchpoint support.
22066 * linux-low.h (struct linux_target_ops): Ditto.
22067 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22068 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22069 to linux_target_ops.
22070 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22071 reply packet.
22072 * server.c (main): Recognize 'Z' and 'z' packets.
22073
b0ded00b
UW
220742005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22075
22076 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22077 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22078 (the_low_target): Add new members.
22079
8643e2ad
DJ
220802005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22081
22082 * proc-service.c (ps_lgetregs): Search all_processes instead of
22083 all_threads.
22084
fc620387
DJ
220852005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22086
22087 * server.c (start_inferior): Change return type to int.
22088 (attach_inferior): Change sigptr to int *.
22089 (handle_v_cont, handle_v_requests): Change signal to int *.
22090 (main): Change signal to int.
22091
220922005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
22093
22094 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22095 * configure.srv: Add m32r*-*-linux*.
22096 * linux-m32r-low.c: New file.
22097
e0e76420
DJ
220982005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22099
22100 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22101
a1928bad
DJ
221022005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22103
22104 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22105 Take unsigned long arguments for PIDs.
22106 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22107 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22108 (wait_for_sigstop, linux_resume_one_process)
22109 (regsets_fetch_inferior_registers, linux_send_signal)
22110 (linux_read_auxv): Likewise. Update the types of variables holding
22111 PIDs. Update format string specifiers.
22112 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22113 * remote-utils.c (prepare_resume_reply): Likewise.
22114 * server.c (cont_thread, general_thread, step_thread)
22115 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22116 unsigned long.
22117 (handle_query): Update format specifiers.
22118 (handle_v_cont, main): Use strtoul for thread IDs.
22119 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22120 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22121 (general_thread, step_thread, thread_from_wait)
22122 (old_thread_from_wait): Update.
22123 * target.h (struct thread_resume): Use unsigned long for THREAD.
22124 (struct target_ops): Use unsigned long for arguments to attach and
22125 thread_alive.
22126
dcdb98d2
DJ
221272005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22128
22129 * acinclude.m4: Include bfd/bfd.m4 directly.
22130 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22131 <agriffis@toolchain.org>.
22132 * aclocal.m4, configure: Regenerated.
22133
bec39cab
AC
221342005-01-07 Andrew Cagney <cagney@gnu.org>
22135
22136 * configure.ac: Rename configure.in, require autoconf 2.59.
22137 * configure: Re-generate.
22138
434c4c77
DJ
221392004-12-08 Daniel Jacobowitz <dan@debian.org>
22140
22141 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22142 LIBS when finished.
22143 * aclocal.m4: Regenerated.
22144 * configure: Regenerated.
22145
db1d3e1b
AS
221462004-11-21 Andreas Schwab <schwab@suse.de>
22147
22148 * linux-m68k-low.c (m68k_num_gregs): Define.
22149 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22150 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22151 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22152 (m68k_breakpoint_at): New. Add to the_low_target.
22153
22154 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22155 srv_linux_thread_db to yes.
22156
43360365
JB
221572004-10-20 Joel Brobecker <brobecker@gnat.com>
22158
22159 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22160 (ARCH_SET_FS): Likewise.
22161 (ARCH_GET_FS): Likewise.
22162 (ARCH_GET_GS): Likewise.
22163
fd500816
DJ
221642004-10-16 Daniel Jacobowitz <dan@debian.org>
22165
22166 * linux-i386-low.c (ps_get_thread_area): New.
22167 * linux-x86-64-low.c (ps_get_thread_area): New.
22168 * linux-low.c: Include <sys/syscall.h>.
22169 (linux_kill_one_process): Don't kill the first thread here.
22170 (linux_kill): Kill the first thread here.
22171 (kill_lwp): New function.
22172 (send_sigstop, linux_send_signal): Use it.
22173 * proc-service.c: Clean up #ifdefs.
22174 (fpregset_info): Delete.
22175 (ps_lgetregs): Update and enable implementation.
22176 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22177 implementations.
22178 * remote-utils.c (struct sym_cache, symbol_cache): New.
22179 (input_interrupt): Print a clearer message.
22180 (async_io_enabled): New variable.
22181 (enable_async_io, disable_async_io): Use it. Update comments.
22182 (look_up_one_symbol): Use the symbol cache.
22183 * thread-db.c (thread_db_look_up_symbols): New function.
22184 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22185
f6de3c42
DJ
221862004-10-16 Daniel Jacobowitz <dan@debian.org>
22187
22188 * configure.in: Test for -rdynamic.
22189 * configure: Regenerated.
22190 * Makefile (INTERNAL_LDFLAGS): New.
22191 (gdbserver, gdbreplay): Use it.
22192
2c0fc042
AC
221932004-09-02 Andrew Cagney <cagney@gnu.org>
22194
22195 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22196
075b3282
DJ
221972004-03-23 Daniel Jacobowitz <drow@mvista.com>
22198
22199 * linux-low.c (linux_wait): Clear all_processes list also.
22200
fa6a77dc
DJ
222012004-03-12 Daniel Jacobowitz <drow@mvista.com>
22202
22203 * linux-low.c: Include <errno.h>. Remove extern declaration of
22204 errno.
22205
6d782a97
DJ
222062004-03-12 Daniel Jacobowitz <drow@mvista.com>
22207
22208 * gdbreplay.c, server.h, utils.c: Update copyright years.
22209
3a7fb99b
DJ
222102004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22211
22212 * server.c (main): Print child status or termination signal from
22213 variable 'signal', not 'sig'.
22214
c3e735a6
DJ
222152004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22216
22217 * linux-low.c (linux_read_memory): Change return type to
22218 int. Check for and return error from ptrace().
22219 * target.c (read_inferior_memory): Change return type to int. Pass
22220 back return status from the_target->read_memory().
22221 * target.h (struct target_ops): Adapt *read_memory() prototype.
22222 Update comment.
22223 (read_inferior_memory): Adapt prototype.
22224 * server.c (main): Return an error packet if
22225 read_inferior_memory() returns an error.
22226
a59d1c82
DJ
222272004-03-04 Daniel Jacobowitz <drow@mvista.com>
22228
22229 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22230 Unify with other clean targets.
22231
dc3f8883
DJ
222322004-02-29 Daniel Jacobowitz <drow@mvista.com>
22233
22234 * server.c (handle_v_cont): Call set_desired_inferior.
22235
89a208da
DJ
222362004-02-29 Daniel Jacobowitz <drow@mvista.com>
22237
22238 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22239
62ea82f5
DJ
222402004-02-29 Daniel Jacobowitz <drow@mvista.com>
22241
22242 * linux-low.c (linux_wait): Unblock async I/O.
22243 (linux_resume): Block and enable async I/O.
22244 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22245 * server.h (block_async_io, unblock_async_io): Add prototypes.
22246
6910d122
DJ
222472004-02-29 Daniel Jacobowitz <drow@mvista.com>
22248
22249 * remote-utils.c (remote_open): Print a status notice after
22250 opening a TCP port.
22251 * server.c (attach_inferior): Print a status notice after
22252 attaching.
22253
222542004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
22255
22256 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22257
c89dc5d4
DJ
222582004-02-26 Daniel Jacobowitz <drow@mvista.com>
22259
22260 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22261 error packet.
22262 * server.c, target.h: Update copyright years.
22263
4b8dad4a
RM
222642004-02-25 Roland McGrath <roland@redhat.com>
22265
22266 * target.h (struct target_ops): New member `read_auxv'.
22267 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22268 * linux-low.c (linux_read_auxv): New function.
22269 (linux_target_ops): Initialize `read_auxv' member to that.
22270
d7446758
JB
222712004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22272
22273 Committed by Jim Blandy <jimb@redhat.com>.
22274
22275 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 22276 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
22277 instead of GPR_SIZE to distiguish s390 and s390x targets.
22278
5544ad89
DJ
222792004-01-31 Daniel Jacobowitz <drow@mvista.com>
22280
22281 * linux-low.c: Update copyright year.
22282 (check_removed_breakpoint): Clear pending_is_breakpoint.
22283 (linux_set_resume_request, linux_queue_one_thread)
22284 (resume_status_pending_p): New functions.
22285 (linux_continue_one_thread): Use process->resume.
22286 (linux_resume): Only resume threads if there are no pending events.
22287 * linux-low.h (struct process_info): Add resume request
22288 pointer.
22289
2a68b70e
DJ
222902004-01-30 Daniel Jacobowitz <drow@mvista.com>
22291
22292 * regcache.c (new_register_cache): Clear the allocated register
22293 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22294
64386c31
DJ
222952003-10-13 Daniel Jacobowitz <drow@mvista.com>
22296
22297 * linux-low.c (linux_resume): Take a struct thread_resume *
22298 argument.
22299 (linux_wait): Update call.
22300 (resume_ptr): New static variable.
22301 (linux_continue_one_thread): Renamed from
22302 linux_continue_one_process. Use resume_ptr.
22303 (linux_resume): Use linux_continue_one_thread.
22304 * server.c (handle_v_cont, handle_v_requests): New functions.
22305 (myresume): New function.
22306 (main): Handle 'v' case.
22307 * target.h (struct thread_resume): New type.
22308 (struct target_ops): Change argument of "resume" to struct
22309 thread_resume *.
22310 (myresume): Delete macro.
22311
c938e9b0
L
223122003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22313
22314 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22315 (uninstall): Support DESTDIR.
22316
7f313d07
BC
22317Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22318
22319 * configure.srv: Add xscale*linux copy of arm*linux entry.
22320
3b2fc2ea
DJ
223212003-07-24 Daniel Jacobowitz <drow@mvista.com>
22322
22323 * linux-arm-low.c (arm_reinsert_addr): New function.
22324 (the_low_target): Add arm_reinsert_addr.
22325
1c0a559e
MK
223262003-07-08 Mark Kettenis <kettenis@gnu.org>
22327
22328 * mem-break.c: Remove whitespace at end of file.
22329
43d5792c
DJ
223302003-06-28 Daniel Jacobowitz <drow@mvista.com>
22331
22332 * configure.in: Check whether we need to prototype strerror.
22333 * server.h: Optionally prototype strerror.
22334 * gdbreplay.c (perror_with_name): Use strerror.
22335 * linux-low.c (linux_attach_lwp): Use strerror.
22336 * utils.c (perror_with_name): Use strerror.
22337 * config.in, configure: Regenerated.
22338
c8a86edf
DJ
223392003-06-28 Daniel Jacobowitz <drow@mvista.com>
22340
22341 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22342 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22343
73d37363
DJ
223442003-06-20 Daniel Jacobowitz <drow@mvista.com>
22345
22346 * Makefile.in (SFILES): Update.
22347 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22348 low-sun3.c: Remove files.
22349
6ad8ae5c
DJ
223502003-06-17 Daniel Jacobowitz <drow@mvista.com>
22351
22352 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22353 (linux_detach_one_process, linux_detach): New functions.
22354 (linux_target_ops): Add linux_detach.
22355 * server.c (main): Handle 'D' packet.
22356 * target.h (struct target_ops): Add "detach" member.
22357 (detach_inferior): Define.
22358
1581182a
MK
223592003-06-13 Mark Kettenis <kettenis@gnu.org>
22360
22361 From Kelley Cook <kelleycook@wideopenwest.com>:
22362 * configure.srv: Accept i[34567]86 variants.
22363
e5379b03
DJ
223642003-06-05 Daniel Jacobowitz <drow@mvista.com>
22365
22366 * linux-low.c (linux_wait_for_event): Correct comment typos.
22367 (linux_resume_one_process): Call check_removed_breakpoint.
22368 (linux_send_signal): New function.
22369 (linux_target_ops): Add linux_send_signal.
22370 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22371 of kill.
22372 * target.h (struct target_ops): Add send_signal.
22373
2ff29de4
JB
223742003-05-29 Jim Blandy <jimb@redhat.com>
22375
22376 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22377 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22378 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22379 away part of the register's value.
22380
254787d4
DJ
223812003-03-26 Daniel Jacobowitz <drow@mvista.com>
22382
22383 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22384 (linux_wait_for_event, linux_init_signals): Likewise.
22385
94e10508
DJ
223862003-03-17 Daniel Jacobowitz <drow@mvista.com>
22387
22388 * configure.in: Check for stdlib.h.
22389 * configure: Regenerated.
22390 * config.in: Regenerated.
22391
4c0711e0
DJ
223922003-01-04 Andreas Schwab <schwab@suse.de>
22393
22394 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22395
ef66e766
AC
223962003-01-02 Andrew Cagney <ac131313@redhat.com>
22397
22398 * Makefile.in: Remove obsolete code.
22399
a1358604
DJ
224002002-11-20 Daniel Jacobowitz <drow@mvista.com>
22401
22402 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22403 defined(PT_FPR0_HI).
22404
23ce3b1c
DJ
224052002-11-17 Stuart Hughes <seh@zee2.com>
22406
22407 * linux-arm-low.c (arm_num_regs): Increase.
22408 (arm_regmap): Include status register.
22409
224102002-11-17 Daniel Jacobowitz <drow@mvista.com>
22411
22412 * linux-low.c (register_addr): Remove incorrect -1 check.
22413
a9fa9f7d
DJ
224142002-08-29 Daniel Jacobowitz <drow@mvista.com>
22415
22416 * linux-low.c (linux_create_inferior): Call setpgid. Return
22417 the new PID.
22418 (unstopped_p, linux_signal_pid): Remove.
22419 (linux_target_ops): Remove linux_signal_pid.
22420 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22421 global instead of target method.
22422 * target.h (struct target_ops): Remove signal_pid. Update comment
22423 for create_inferior.
22424 * server.c (signal_pid): New variable.
22425 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22426 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22427 (attach_inferior): Set signal_pid.
22428
17574093
DJ
224292002-08-23 Daniel Jacobowitz <drow@mvista.com>
22430
22431 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22432
224332002-08-20 Jim Blandy <jimb@redhat.com>
22434
22435 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22436 default for this.
22437
224382002-08-01 Andrew Cagney <cagney@redhat.com>
22439
22440 * Makefile.in: Make chill references obsolete.
22441
224422002-07-24 Kevin Buettner <kevinb@redhat.com>
22443
22444 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22445 * configure: Regenerate.
22446 * config.in: Regenerate.
22447
224482002-07-09 David O'Brien <obrien@FreeBSD.org>
22449
22450 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22451 (perror_with_name, remote_close, remote_open, expect, play): Static.
22452
224532002-07-04 Michal Ludvig <mludvig@suse.cz>
22454
4b8dad4a 22455 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22456 byte offsets instead of an array of indexes.
22457 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22458
224592002-06-13 Daniel Jacobowitz <drow@mvista.com>
22460
22461 * regcache.c: Add comment.
22462
224632002-06-11 Daniel Jacobowitz <drow@mvista.com>
22464
22465 * thread-db.c: New file.
22466 * proc-service.c: New file.
22467 * acinclude.m4: New file.
22468 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22469 proc-service.o, and thread-db.o.
22470 (linux-low.o): Add USE_THREAD_DB.
22471 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22472 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22473 * aclocal.m4: Regenerated.
22474 * config.in: Regenerated.
22475 * configure: Regenerated.
22476 * configure.in: Check for proc_service.h, sys/procfs.h,
22477 thread_db.h, and linux/elf.h headrs.
22478 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22479 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22480 Check for -lthread_db and thread support.
22481 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22482 PowerPC, and SuperH.
22483 * i387-fp.c: Constify arguments.
22484 * i387-fp.h: Likewise.
22485 * inferiors.c: (struct thread_info): Renamed from
22486 `struct inferior_info'. Remove PID member. Use generic inferior
22487 list header. All uses updated.
22488 (inferiors, signal_pid): Removed.
22489 (all_threads): New variable.
22490 (get_thread): Define.
22491 (add_inferior_to_list): New function.
22492 (for_each_inferior): New function.
22493 (change_inferior_id): New function.
22494 (add_inferior): Removed.
22495 (remove_inferior): New function.
22496 (add_thread): New function.
22497 (free_one_thread): New function.
22498 (remove_thread): New function.
22499 (clear_inferiors): Use for_each_inferior and free_one_thread.
22500 (find_inferior): New function.
22501 (find_inferior_id): New function.
22502 (inferior_target_data): Update argument type.
22503 (set_inferior_target_data): Likewise.
22504 (inferior_regcache_data): Likewise.
22505 (set_inferior_regcache_data): Likewise.
22506 * linux-low.c (linux_bp_reinsert): Remove.
22507 (all_processes, stopping_threads, using_thrads)
22508 (struct pending_signals, debug_threads, pid_of): New.
22509 (inferior_pid): Replace with macro.
22510 (struct inferior_linux_data): Remove.
22511 (get_stop_pc, add_process): New functions.
22512 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22513 Use add_process and add_thread.
22514 (linux_attach_lwp): New function, based on old linux_attach. Use
22515 add_process and add_thread. Set stop_expected for new threads.
22516 (linux_attach): New function.
22517 (linux_kill_one_process): New function.
22518 (linux_kill): Kill all LWPs.
22519 (linux_thread_alive): Use find_inferior_id.
22520 (check_removed_breakpoints, status_pending_p): New functions.
22521 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22522 Update. Use WNOHANG. Wait for cloned processes also. Update process
22523 struct for the found process.
22524 (linux_wait_for_event): New function.
22525 (linux_wait): Use it. Support LWPs.
22526 (send_sigstop, wait_for_sigstop, stop_all_processes)
22527 (linux_resume_one_process, linux_continue_one_process): New functions.
22528 (linux_resume): Support LWPs.
22529 (REGISTER_RAW_SIZE): Remove.
22530 (fetch_register): Use register_size instead. Call supply_register.
22531 (usr_store_inferior_registers): Likewise. Call collect_register.
22532 Fix recursive case.
22533 (regsets_fetch_inferior_registers): Improve error message.
22534 (regsets_store_inferior_registers): Add debugging.
22535 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22536 (unstopped_p, linux_signal_pid): New functions.
22537 (linux_target_ops): Add linux_signal_pid.
22538 (linux_init_signals): New function.
22539 (initialize_low): Call it. Initialize using_threads.
22540 * regcache.c (inferior_regcache_data): Add valid
22541 flag.
22542 (get_regcache): Fetch registers lazily. Add fetch argument
22543 and update all callers.
22544 (regcache_invalidate_one, regcache_invalidate): New
22545 functions.
22546 (new_register_cache): Renamed from create_register_cache.
22547 Return the new regcache.
22548 (free_register_cache): Change argument to a void *.
22549 (registers_to_string, registers_from_string): Call get_regcache
22550 with fetch flag set.
22551 (register_data): Make static. Pass fetch flag to get_regcache.
22552 (supply_register): Call get_regcache with fetch flag clear.
22553 (collect_register): Call get_regcache with fetch flag set.
22554 (collect_register_as_string): New function.
22555 * regcache.h: Update.
22556 * remote-utils.c (putpkt): Flush after debug output and use
22557 stderr.
22558 Handle input interrupts while waiting for an ACK.
22559 (input_interrupt): Use signal_pid method.
22560 (getpkt): Flush after debug output and use stderr.
22561 (outreg): Use collect_register_as_string.
22562 (new_thread_notify, dead_thread_notify): New functions.
22563 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22564 and general_thread.
22565 (look_up_one_symbol): Flush after debug output.
22566 * server.c (step_thread, server_waiting): New variables.
22567 (start_inferior): Don't use signal_pid. Update call to mywait.
22568 (attach_inferior): Update call to mywait.
22569 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22570 (main): Don't fetch/store registers explicitly. Use
22571 set_desired_inferior. Support proposed ``Hs'' packet. Update
22572 calls to mywait.
22573 * server.h: Update.
22574 (struct inferior_list, struct_inferior_list_entry): New.
22575 * target.c (set_desired_inferior): New.
22576 (write_inferior_memory): Constify.
22577 (mywait): New function.
22578 * target.h: Update.
22579 (struct target_ops): New signal_pid method.
22580 (mywait): Removed macro, added prototype.
22581
22582 * linux-low.h (regset_func): Removed.
22583 (regset_fill_func, regset_store_func): New.
22584 (enum regset_type): New.
22585 (struct regset_info): Add type field. Use new operation types.
22586 (struct linux_target_ops): stop_pc renamed to get_pc.
22587 Add decr_pc_after_break and breakpoint_at.
22588 (get_process, get_thread_proess, get_process_thread)
22589 (strut process_info, all_processes, linux_attach_lwp)
22590 (thread_db_init): New.
22591
22592 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22593 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22594 (the_low_target): Add new members.
22595 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22596 (i386_store_fpxregset): Constify.
22597 (target_regsets): Add new kind identifier.
22598 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22599 (i386_set_pc): Add debugging.
22600 (i386_breakpoint_at): New function.
22601 (the_low_target): Add new members.
22602 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22603 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22604 (mips_breakpoint_at): New.
22605 (the_low_target): Add new members.
22606 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22607 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22608 (the_low_target): Add new members.
22609 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22610 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22611 (the_low_target): Add new members.
22612 * linux-x86-64-low.c (target_regsets): Add new kind
22613 identifier.
22614
226152002-05-15 Daniel Jacobowitz <drow@mvista.com>
22616
22617 From Martin Pool <mbp@samba.org>:
22618 * server.c (gdbserver_usage): New function.
22619 (main): Call it.
22620
226212002-05-14 Daniel Jacobowitz <drow@mvista.com>
22622
22623 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22624 stop_at -> stop_pc.
22625
226262002-05-04 Andrew Cagney <ac131313@redhat.com>
22627
22628 * Makefile.in: Remove obsolete code.
22629
226302002-04-24 Michal Ludvig <mludvig@suse.cz>
22631
22632 * linux-low.c (regsets_fetch_inferior_registers),
22633 (regsets_store_inferior_registers): Removed cast to int from
22634 ptrace() calls.
22635 * regcache.h: Added declaration of struct inferior_info.
22636
226372002-04-20 Daniel Jacobowitz <drow@mvista.com>
22638
22639 * inferiors.c (struct inferior_info): Add regcache_data.
22640 (add_inferior): Call create_register_cache.
22641 (clear_inferiors): Call free_register_cache.
22642 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22643 * regcache.c (struct inferior_regcache_data): New.
22644 (registers): Remove.
22645 (get_regcache): New function.
22646 (create_register_cache, free_register_cache): New functions.
22647 (set_register_cache): Don't initialize the register cache here.
22648 (registers_to_string, registers_from_string, register_data): Call
22649 get_regcache.
22650 * regcache.h: Add prototypes.
22651 * server.h: Likewise.
22652
226532002-04-20 Daniel Jacobowitz <drow@mvista.com>
22654
22655 * mem-break.c: New file.
22656 * mem-break.h: New file.
22657 * Makefile.in: Add mem-break.o rule; update server.h
22658 dependencies.
22659 * inferiors.c (struct inferior_info): Add target_data
22660 member.
22661 (clear_inferiors): Free target_data member if set.
22662 (inferior_target_data, set_inferior_target_data): New functions.
22663 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22664 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22665 * linux-low.c (linux_bp_reinsert): New variable.
22666 (struct inferior_linux_data): New.
22667 (linux_create_inferior): Use set_inferior_target_data.
22668 (linux_attach): Likewise. Call add_inferior.
22669 (linux_wait_for_one_inferior): New function.
22670 (linux_wait): Call it.
22671 (linux_write_memory): Add const.
22672 (initialize_low): Call set_breakpoint_data.
22673 * linux-low.h (struct linux_target_ops): Add breakpoint
22674 handling members.
22675 * server.c (attach_inferior): Remove extra add_inferior
22676 call.
22677 * server.h: Include mem-break.h. Update inferior.c
22678 prototypes.
22679 * target.c (read_inferior_memory)
22680 (write_inferior_memory): New functions.
22681 * target.h (read_inferior_memory)
22682 (write_inferior_memory): Change macros to prototypes.
22683 (struct target_ops): Update comments. Add const to write_memory
22684 definition.
22685
226862002-04-11 Daniel Jacobowitz <drow@mvista.com>
22687
22688 * linux-low.c (usr_store_inferior_registers): Support
22689 registers which are allowed to fail to store.
22690 * linux-low.h (linux_target_ops): Likewise.
22691 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22692 (ppc_cannot_store_register): FPSCR may not be storable.
22693
226942002-04-09 Daniel Jacobowitz <drow@mvista.com>
22695
22696 * server.h: Include <string.h> if HAVE_STRING_H.
22697 * ChangeLog: Correct paths in last ChangeLog entry.
22698
226992002-04-09 Daniel Jacobowitz <drow@mvista.com>
22700
22701 * linux-low.h: Remove obsolete prototypes.
22702 (struct linux_target_ops): New.
22703 (extern the_low_target): New.
22704 * linux-low.c (num_regs, regmap): Remove declarations.
22705 (register_addr): Use the_low_target explicitly.
22706 (fetch_register): Likewise.
22707 (usr_fetch_inferior_registers): Likewise.
22708 (usr_store_inferior_registers): Likewise.
22709 * linux-arm-low.c (num_regs): Remove.
22710 (arm_num_regs): Define.
22711 (arm_regmap): Renamed from regmap, made static.
22712 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22713 made static.
22714 (arm_cannot_store_register): Renamed from cannot_store_register,
22715 made static.
22716 (the_low_target): New.
22717 * linux-i386-low.c (num_regs): Remove.
22718 (i386_num_regs): Define.
22719 (i386_regmap): Renamed from regmap, made static.
22720 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22721 made static.
22722 (i386_cannot_store_register): Renamed from cannot_store_register,
22723 made static.
22724 (the_low_target): New.
22725 * linux-ia64-low.c (num_regs): Remove.
22726 (ia64_num_regs): Define.
22727 (ia64_regmap): Renamed from regmap, made static.
22728 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22729 made static.
22730 (ia64_cannot_store_register): Renamed from cannot_store_register,
22731 made static.
22732 (the_low_target): New.
22733 * linux-m68k-low.c (num_regs): Remove.
22734 (m68k_num_regs): Define.
22735 (m68k_regmap): Renamed from regmap, made static.
22736 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22737 made static.
22738 (m68k_cannot_store_register): Renamed from cannot_store_register,
22739 made static.
22740 (the_low_target): New.
22741 * linux-mips-low.c (num_regs): Remove.
22742 (mips_num_regs): Define.
22743 (mips_regmap): Renamed from regmap, made static.
22744 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22745 made static.
22746 (mips_cannot_store_register): Renamed from cannot_store_register,
22747 made static.
22748 (the_low_target): New.
22749 * linux-ppc-low.c (num_regs): Remove.
22750 (ppc_num_regs): Define.
22751 (ppc_regmap): Renamed from regmap, made static.
22752 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22753 made static.
22754 (ppc_cannot_store_register): Renamed from cannot_store_register,
22755 made static.
22756 (the_low_target): New.
22757 * linux-s390-low.c (num_regs): Remove.
22758 (s390_num_regs): Define.
22759 (s390_regmap): Renamed from regmap, made static.
22760 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22761 made static.
22762 (s390_cannot_store_register): Renamed from cannot_store_register,
22763 made static.
22764 (the_low_target): New.
22765 * linux-sh-low.c (num_regs): Remove.
22766 (sh_num_regs): Define.
22767 (sh_regmap): Renamed from regmap, made static.
22768 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22769 made static.
22770 (sh_cannot_store_register): Renamed from cannot_store_register,
22771 made static.
22772 (the_low_target): New.
22773 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22774 (the_low_target): New.
22775
227762002-04-09 Daniel Jacobowitz <drow@mvista.com>
22777
22778 * Makefile.in: Add stamp-h target.
22779 * configure.in: Create stamp-h.
22780 * configure: Regenerated.
22781
227822002-04-09 Daniel Jacobowitz <drow@mvista.com>
22783
22784 * inferiors.c: New file.
22785 * target.c: New file.
22786 * target.h: New file.
22787 * Makefile.in: Add target.o and inferiors.o. Update
22788 dependencies.
22789 * linux-low.c (inferior_pid): New static variable,
22790 moved from server.c.
22791 (linux_create_inferior): Renamed from create_inferior.
22792 Call add_inferior. Return 0 on success instead of a PID.
22793 (linux_attach): Renamed from myattach.
22794 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22795 (linux_thread_alive): Renamed from mythread_alive.
22796 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22797 child dies.
22798 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22799 (regsets_store_inferior_registers): Correct error message.
22800 Add missing ``return 0''.
22801 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22802 (linux_store_registers): Renamed from store_inferior_registers.
22803 (linux_read_memory): Renamed from read_inferior_memory.
22804 (linux_write_memory): Renamed from write_inferior_memory.
22805 (linux_target_ops): New structure.
22806 (initialize_low): Call set_target_ops ().
22807 * remote-utils.c (unhexify): New function.
22808 (hexify): New function.
22809 (input_interrupt): Send signals to ``signal_pid''.
22810 * server.c (inferior_pid): Remove.
22811 (start_inferior): Update create_inferior call.
22812 (attach_inferior): Call add_inferior.
22813 (handle_query): New function.
22814 (main): Call handle_query for `q' packets.
22815 * server.h: Include "target.h". Remove obsolete prototypes.
22816 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22817
228182002-04-09 Daniel Jacobowitz <drow@mvista.com>
22819
22820 * Makefile.in: Add WARN_CFLAGS. Update configury
22821 dependencies.
22822 * configure.in: Check for <string.h>
22823 * configure: Regenerate.
22824 * config.in: Regenerate.
22825 * gdbreplay.c: Include needed system headers.
22826 (remote_open): Remove strchr prototype.
22827 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22828 * regcache.c (supply_register): Change buf argument to const void *.
22829 (supply_register_by_name): Likewise.
22830 (collect_register): Change buf argument to void *.
22831 (collect_register_by_name): Likewise.
22832 * regcache.h: Add missing prototypes.
22833 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22834 * server.c (handle_query): New function.
22835 (attached): New static variable, moved out of main.
22836 (main): Quiet longjmp clobber warnings.
22837 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22838 * utils.c (error): Remove NORETURN.
22839 (fatal): Likewise.
This page took 4.186879 seconds and 4 git commands to generate.