sim: move UNUSED before TYPE in SIM_ENDIAN_INLINE's definition
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
483ab96a
MF
12021-06-14 Mike Frysinger <vapier@gentoo.org>
2
3 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
4 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
5
01add95b
SM
62021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * Fix some indentation mistakes throughout.
9
c1c0a7e1
AB
102021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * .dir-locals.el: Set sentence-end-double-space for all modes, and
13 set brace-list-open to 0 for C and C++ modes.
14
8d06918f
SM
152021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * linux-low.cc (linux_process_target::wait_for_event_filtered):
18 Adjust to status_to_str returning std::string.
19
4655f850
PA
202021-05-08 Pedro Alves <pedro@palves.net>
21
22 * linux-low.cc:
23 (linux_process_target::supports_disable_randomization): Remove
24 reference to HAVE_PERSONALITY.
25 * config.in, configure: Regenerate.
26
e2ea3a38
PA
272021-05-08 Pedro Alves <pedro@palves.net>
28
29 * linux-low.cc: Don't include sys/personality.h or define
30 ADDR_NO_RANDOMIZE.
31
482155e6
TBA
322021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
33
34 * server.cc (handle_v_attach)
35 (handle_v_run)
36 (handle_v_kill): Make void.
37
82288339
TT
382021-05-03 Tom Tromey <tromey@adacore.com>
39
40 PR build/27807:
41 * win32-i386-low.cc (i386_get_thread_context): Call
42 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
43
e228ef97
TT
442021-04-30 Tom Tromey <tromey@adacore.com>
45
46 * win32-low.cc (do_initial_child_stuff): Update.
47 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
48 Change parameter type.
49 (win32_add_dll, win32_add_all_dlls)
50 (windows_nat::handle_load_dll): Remove.
51 (get_child_debug_event): Call dll_loaded_event.
52
de071872
TT
532021-04-30 Tom Tromey <tromey@adacore.com>
54
55 * win32-low.cc (GETPROCADDRESS): Remove.
56 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
57 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
58 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
59 (win32_Wow64SetThreadContext): Remove.
60 (win32_set_thread_context, do_initial_child_stuff)
61 (win32_process_target::attach, win32_process_target::detach):
62 Update.
63 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
64 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
65 Remove.
66 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
67 (win32_GetModuleInformation, win32_GetModuleInformationA):
68 Remove.
69 (load_psapi): Remove.
70 (win32_add_dll, win32_process_target::request_interrupt): Update.
71 (initialize_low): Call initialize_loadable.
72
38ae2915
TT
732021-04-14 Tom Tromey <tromey@adacore.com>
74
75 * win32-low.cc (windows_nat::handle_load_dll): Don't check
76 _WIN32_WCE.
77
6cacd449
PA
782021-04-13 Pedro Alves <pedro@palves.net>
79
80 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
81
1228cb90
TT
822021-04-13 Tom Tromey <tromey@adacore.com>
83
84 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
85 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
86
0256da25
PA
872021-04-13 Pedro Alves <pedro@palves.net>
88
89 * Makefile.in (SFILES): Remove hostio-errno.cc.
90 * configure: Regenerate.
91 * configure.ac (GDBSERVER_DEPFILES): No longer add
92 $srv_hostio_err_objs.
93 * configure.srv (srv_hostio_err_objs): Delete.
94 * hostio-errno.cc: Delete.
95 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
96 here.
97 * hostio.h (hostio_last_error_from_errno): Delete.
98 * target.cc (process_stratum_target::hostio_last_error): Delete.
99 * target.h (class process_stratum_target) <hostio_last_error>:
100 Delete.
101
d4717483
SM
1022021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
105 * win32-low.h: Likewise.
106
04977957
TBA
1072021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
108
109 * target.h (class process_stratum_target) <pid_to_exec_file>:
110 Constify the return type. Update the definition/references below.
111 * target.cc (process_stratum_target::pid_to_exec_file)
112 * linux-low.h (class linux_process_target) <pid_to_exec_file>
113 * linux-low.cc (linux_process_target::pid_to_exec_file)
114 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
115 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
116 * server.cc (handle_qxfer_exec_file)
117
114ee2a4
EZ
1182021-04-11 Eli Zaretskii <eliz@gnu.org>
119
120 * win32-low.cc (win32_add_dll): New function, with body almost
121 identical to what win32_add_all_dlls did. Accepts one argument;
122 if that is non-NULL, returns the file name of the DLL that is
123 loaded at the base address equal to that argument, or NULL if not
124 found. If the argument is NULL, add all the DLLs loaded by the
125 inferior to the list of solibs and return NULL.
126 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
127 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
128 failed to glean the file name of the DLL, call win32_add_dll to
129 try harder using the lpBaseOfDll member of the load-DLL event.
130
782c1ab8
LM
1312021-03-30 Luis Machado <luis.machado@linaro.org>
132
133 * server.cc (handle_general_set, handle_query): Update variable
134 to bool and fix verification logic.
135
41919a58
LM
1362021-03-24 Luis Machado <luis.machado@linaro.org>
137
138 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
139 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
140 nat/aarch64-mte-linux-ptrace.o.
141 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
142 (class aarch64_target) <supports_memory_tagging>
143 <fetch_memtags, store_memtags>: New method overrides.
144 (aarch64_target::supports_memory_tagging)
145 (aarch64_target::fetch_memtags)
146 (aarch64_target::store_memtags): New methods.
147
5e984dbf
LM
1482021-03-24 Luis Machado <luis.machado@linaro.org>
149
150 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
151 (aarch64_store_mteregset): New function.
152 (aarch64_regsets): Add MTE register set entry.
153 (aarch64_sve_regsets): Add MTE register set entry.
154
c1bd443b
LM
1552021-03-24 Luis Machado <luis.machado@linaro.org>
156
157 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
158 aarch64_linux_read_description.
159 (initialize_low_tracepoint): Likewise.
160 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
161 into account.
162 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
163 for MTE.
164 (aarch64_linux_read_description): Add mte_p parameter and update to
165 use it.
166 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
167 parameter.
168
04245125
LM
1692021-03-24 Luis Machado <luis.machado@linaro.org>
170
171 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
172
c2cfa654
LM
1732021-03-24 Luis Machado <luis.machado@linaro.org>
174
175 * server.cc (test_memory_tagging_functions): New function.
176 (captured_main): Register test_memory_tagging_functions.
177
546b77fe
LM
1782021-03-24 Luis Machado <luis.machado@linaro.org>
179
180 * remote-utils.cc (decode_m_packet_params): Renamed from ...
181 (decode_m_packet): ... this, which now calls decode_m_packet_params.
182 Make char * param/return const char *.
183 (decode_M_packet): Use decode_m_packet_params and make char * param
184 const char *.
185 * remote-utils.h (decode_m_packet_params): New prototype.
186 (decode_m_packet): Constify char pointers.
187 (decode_M_packet): Likewise.
188 * server.cc (create_fetch_memtags_reply)
189 (parse_store_memtags_request): New
190 functions.
191 (handle_general_set): Handle the QMemTags packet.
192 (parse_fetch_memtags_request): New function.
193 (handle_query): Handle the qMemTags packet and advertise memory
194 tagging support.
195 (captured_main): Initialize memory tagging flag.
196 * server.h (struct client_state): Initialize memory tagging flag.
197 * target.cc (process_stratum_target::supports_memory_tagging)
198 (process_stratum_target::fetch_memtags)
199 (process_stratum_target::store_memtags): New methods.
200 * target.h: Include gdbsupport/byte-vector.h.
201 (class process_stratum_target) <supports_memory_tagging>
202 <fetch_memtags, store_memtags>: New class virtual methods.
203 (target_supports_memory_tagging): Define.
204
d171632f
TBA
2052021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
206
207 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
208 fields.
209 * dll.h (loaded_dll)
210 (unloaded_dll): Declare an overloaded version that takes a proc
211 parameter.
212 * dll.cc (loaded_dll)
213 (unloaded_dll): Implement the overloaded versions.
214 (clear_dlls): Clear all process' dll lists.
215 (all_dlls, dlls_changed): Remove the global variables.
216 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
217 list per proc.
218 * server.cc (handle_qxfer_libraries): Ditto.
219 (handle_v_attach): Ditto.
220 (captured_main): Ditto.
221
1a48f002
SM
2222021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
223
224 * linux-low.cc (linux_process_target::filter_event): Return
225 void.
226 * linux-low.h (class linux_process_target) <filter_event>:
227 Return void.
228
77fba254
TT
2292021-02-12 Tom Tromey <tromey@adacore.com>
230
231 * gdbreplay.cc (remote_desc): Remove.
232 (remote_desc_in, remote_desc_out): New globals.
233 (remote_close): Update.
234 (remote_open): Handle "-".
235 (remote_open): Update.
236 (logchar): Log to stderr.
237 (expect, play): Update.
238
c054dcd5
TT
2392021-02-12 Tom Tromey <tromey@adacore.com>
240
241 * gdbreplay.cc (remote_open): Constify.
242
9c9d63b1
PM
2432021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
244
245 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
246 gnulib free replacement too.
247 * common-defs.h [USE_WIN32API](read, write): Undefine
248 gnulib versions before defining these macros.
249
7e9cf1fe
PA
2502021-02-03 Pedro Alves <pedro@palves.net>
251
252 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
253 Discard step SIGTRAP, unless GDB wanted the thread to step.
254
b0083dd7
PA
2552021-02-03 Pedro Alves <pedro@palves.net>
256
257 * server.cc (discard_queued_stop_replies): Don't ever discard the
258 notification at the head of the list.
259
6bd434d6
SM
2602021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * ax.cc (bytecode_address_table): Make static.
263 * debug.cc (debug_file): Make static.
264 * linux-low.cc (stopping_threads): Make static.
265 (step_over_bkpt): Make static.
266 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
267 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
268 alloced_trace_state_variables, trace_buffer_ctrl,
269 tracing_start_time, tracing_stop_time, tracing_user_name,
270 tracing_notes, tracing_stop_note): Make static.
271
037e8112
TV
2722021-01-20 Tom de Vries <tdevries@suse.de>
273
274 * linux-x86-low.cc (collect_register_i386): New function.
275 (x86_fill_gregset): Remove memset. Use collect_register_i386.
276
78e49486
TV
2772021-01-07 Tom de Vries <tdevries@suse.de>
278
279 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
280 (LIBIBERTY_FOR_SHLIB): New var.
281 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
282 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
283
3ec3145c
SM
2842021-01-04 Simon Marchi <simon.marchi@efficios.com>
285
286 * debug.cc (debug_print_depth): New.
287
2b47c078
JB
2882021-01-01 Joel Brobecker <brobecker@adacore.com>
289
290 * server.cc (gdbserver_version): Update copyright year.
291 * gdbreplay.cc (gdbreplay_version): Likewise.
292
19007d95
LM
2932020-12-16 Luis Machado <luis.machado@linaro.org>
294
295 * linux-aarch64-low.cc (address_significant): New function.
296 (aarch64_target::low_stopped_data_address): Handle the TBI.
297
96648494
AB
2982020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
299
300 * Makefile.in (IPA_LIB): Include libiberty library.
301
81fdd7ac
AB
3022020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * server.cc (gdbserver_usage): Add missing option to usage text.
305 (gdbserver_show_disableable): Likewise.
306
dda83cd7
SM
3072020-11-02 Simon Marchi <simon.marchi@efficios.com>
308
309 * ax.cc: Fix indentation.
310 * dll.cc: Fix indentation.
311 * inferiors.h: Fix indentation.
312 * linux-low.cc: Fix indentation.
313 * linux-nios2-low.cc: Fix indentation.
314 * linux-ppc-ipa.cc: Fix indentation.
315 * linux-ppc-low.cc: Fix indentation.
316 * linux-x86-low.cc: Fix indentation.
317 * linux-xtensa-low.cc: Fix indentation.
318 * regcache.cc: Fix indentation.
319 * server.cc: Fix indentation.
320 * tracepoint.cc: Fix indentation.
321
19dd0ae5
SM
3222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
323
324 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
325 AC_LANG_PROGRAM.
326 * configure: Re-generate.
327
b6fb30ed
SM
3282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
329
330 * configure: Re-generate.
864ca435
SM
331
3322020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * configure: Re-generate.
b9442ec1
SM
335
3362020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * configure: Re-generate.
b6fb30ed 339
5164c117
SM
3402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * configure: Re-generate.
343
7e8c7130
SM
3442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
345
346 * configure.ac: Modernize.
347 * configure: Re-generate.
348
91e1a0ed
SM
3492020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
350
351 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
352 AC_CANONICAL_SYSTEM.
353 * configure: Re-generate.
354
d744f0f9
PA
3552020-10-26 Pedro Alves <pedro@palves.net>
356
357 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
358 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
359 explicit type.
360
006811bc
SM
3612020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
362
363 * acinclude.m4: Update ptrace.m4 path.
364
92a048fd
SM
3652020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
366
367 * config.in: Re-generate.
368 * configure: Re-generate.
369
4dbe16c8
SM
3702020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * server.cc (handle_general_set): Don't use sprintf with
373 argument overlapping buffer.
374
a9b45cb7
TT
3752020-10-20 Tom Tromey <tromey@adacore.com>
376
377 PR gdb/26742:
378 * inferiors.cc (remove_thread): Clear current_thread before
379 freeing the thread.
380
b07993f6
KR
3812020-10-13 Kamil Rytarowski <n54@gmx.com>x
382
383 * netbsd-low.cc (netbsd_tdesc): Remove.
384 (netbsd_add_process): Likewise.
385 (netbsd_process_target::create_inferior): Update.
386
bbb826f5
AB
3872020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
388
389 * linux-arc-low.cc (arc_linux_read_description): Release the
390 unique_ptr returned from arc_create_target_description.
391
361cb219
AB
3922020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
393
394 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
395 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
396
51a948fd
AB
3972020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * linux-low.cc (linux_process_target::handle_extended_wait):
400 Release the unique_ptr returned from allocate_target_description.
401 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
402 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
403 (tdesc_i386_linux_no_xml): Change type.
404 (x86_linux_read_description): Borrow pointer from unique_ptr
405 object.
406 (x86_target::get_ipa_tdesc_idx): Likewise.
407 (initialize_low_arch): Likewise.
408 * tdesc.cc (allocate_target_description): Update return type.
409
60b74662
TT
4102020-10-07 Tom Tromey <tromey@adacore.com>
411
412 * server.cc (handle_search_memory): Remove dead code.
413
55b10d89
TT
4142020-10-07 Tom Tromey <tromey@adacore.com>
415
416 * server.cc (handle_search_memory_1): Remove.
417 (handle_search_memory): Use simple_search_memory.
418
a038ffd8
SM
4192020-10-07 Simon Marchi <simon.marchi@efficios.com>
420
421 * Makefile.in (COMPILE): Add CXXFLAGS.
422 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
423 (gdbserver$(EXEEXT)): Add CXXFLAGS.
424 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
425 ($(IPA_LIB)): Add CXXFLAGS.
426 (IPAGENT_COMPILE): Add CXXFLAGS.
427
bbe90b5d 4282020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
429
430 * configure.srv: Support ARC architecture.
431 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
432 * linux-arc-low.cc: New file.
433
48491055
KR
4342020-10-07 Kamil Rytarowski <n54@gmx.com>
435
436 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
437 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
438 (netbsd_process_target::qxfer_libraries_svr4): Update.
439
2be01f63
KR
4402020-10-07 Kamil Rytarowski <n54@gmx.com>
441
442 * netbsd-low.cc: Fix whitespace formatting.
443 * netbsd-amd64-low.cc: Likewise.
444
91e5e8db
KR
4452020-10-07 Kamil Rytarowski <n54@gmx.com>
446
447 * netbsd-low.cc (netbsd_process_target::read_memory)
448 (netbsd_process_target::write_memory): Update.
449
9529c852
KR
4502020-10-07 Kamil Rytarowski <n54@gmx.com>
451
452 * netbsd-aarch64-low.cc: Add.
453 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
454 * configure.srv: Add aarch64*-*-netbsd*.
455
981b570a
SV
4562020-10-06 Shahab Vahedi <shahab@synopsys.com>
457
458 * regcache.cc (register_data): Remove unused "fetch" argument.
459
6b01403b
SM
4602020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
461
462 * server.cc (handle_monitor_command): Handle "set
463 debug-event-loop".
464 (captured_main): Handle "--debug-event-loop".
465 (monitor_show_help): Mention new setting.
466 (gdbserver_usage): Mention new flag.
467
2554f6f5
SM
4682020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
469
470 * linux-low.cc (linux_process_target::async): Pass name to
471 add_file_handler.
472 * remote-utils.cc (handle_accept_event): Likewise.
473 (remote_open): Likewise.
474
8b667fae
KR
4752020-10-01 Kamil Rytarowski <n54@gmx.com>
476
477 * netbsd-i386-low.cc: Add.
478 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
479 * configure.srv: Add i[34567]86-*-netbsd*.
480
15397b0e
KR
4812020-10-01 Kamil Rytarowski <n54@gmx.com>
482
483 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
484 (netbsd_target_regsets): Now const.
485 (the_low_target): Remove.
486 (class netbsd_amd64_target, the_netbsd_amd64_target)
487 (the_netbsd_target): Add.
488 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
489 low_arch_setup ().
490 (netbsd_process_target::fetch_registers)
491 (netbsd_process_target::store_registers, initialize_low): Update.
492 (the_netbsd_target): Remove.
493 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
494 (the_low_target, netbsd_tdesc): Remove.
495 (netbsd_process_target::get_regs_info)
496 (netbsd_process_target::low_arch_setup): Add.
497
99bb393f
HD
4982020-09-23 Hannes Domani <ssbssa@yahoo.de>
499
500 * win32-low.cc: Remove local wow64_process variable.
501 * win32-low.h: Remove local wow64_process variable.
502
b60cea74
TT
5032020-09-18 Tom Tromey <tromey@adacore.com>
504
505 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
506 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
507 (netbsd_process_target::wait): Change type of target_options.
508 * win32-low.h (class win32_process_target) <wait>: Update.
509 * win32-low.cc (win32_process_target::wait): Update.
510 * target.h (class process_stratum_target) <wait>: Update.
511 (mywait): Update.
512 * target.cc (mywait, target_wait): Change type of "options".
513 * linux-low.h (class linux_process_target) <wait, wait_1>:
514 Update.
515 * linux-low.cc (linux_process_target::wait)
516 (linux_process_target::wait_1): Update.
517
db92ac45
TT
5182020-09-15 Tom Tromey <tromey@adacore.com>
519
520 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
521 (xmltarget_amd64_linux_no_xml): Now arrays.
522
27087b7f
TT
5232020-09-14 Tom Tromey <tromey@adacore.com>
524
525 * tracepoint.cc (eval_result_names): Now const.
526 * ax.cc (gdb_agent_op_names): Now const.
527
62ba5048
KR
5282020-09-10 Kamil Rytarowski <n54@gmx.com>
529
530 * netbsd-low.cc: Add.
531 * netbsd-low.h: Likewise.
532 * netbsd-amd64-low.cc: Likewise.
533 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
534 "netbsd-amd64-low.cc".
535 * configure.srv: Add x86_64-*-netbsd*.
536
ece5bc8a
SM
5372020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
538
539 * server.cc (captured_main): Accept multiple `--selftest=`
540 options. Pass all `--selftest=` arguments to run_tests.
541
c8693053
RO
5422020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
543
544 * configure, config.in: Regenerate.
545
05a6b8c2
EZ
5462020-07-26 Eli Zaretskii <eliz@gnu.org>
547
548 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
549 When checking whether socklen_t type is defined, use ws2tcpip.h if
550 it is available and sys/socket.h isn't.
551 * configure: Regenerate.
552 * config.in: Regenerate.
553
028a4603
PA
5542020-07-22 Pedro Alves <pedro@palves.net>
555
556 * inferiors.cc (switch_to_process): New, moved here from
557 thread-db.cc, and made extern.
558 * inferiors.h (switch_to_process): Declare.
559 * server.cc: Include "gdbsupport/scoped_restore.h".
560 (handle_qxfer_threads_proper): Now returns bool. Prepare to
561 access memory around target calls.
562 (handle_qxfer_threads): Handle errors.
563 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
564
05c309a8
SM
5652020-07-21 Simon Marchi <simon.marchi@efficios.com>
566
567 * linux-low.cc (stopped_pids): Make static.
568
0e267416
AB
5692020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * tdesc.cc (allocate_target_description): Add header comment.
572 (target_desc_deleter::operator()): New function.
573 * tdesc.h (struct target_desc): Declare as final.
574
b315b67d
SM
5752020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
576
577 * server.cc (handle_query): Use std::vector of
578 std::string for `qsupported` vector. Use separate
579 vector for unknowns.
580 * target.h (class process_stratum_target) <process_qsupported>:
581 Change parameters to array_view of const char *.
582 (target_process_qsupported): Remove `count` parameter.
583 * target.cc (process_stratum_target::process_qsupported): Change
584 parameters to array_view of const char *.
585 * linux-x86-low.cc (class x86_target) <process_qsupported>:
586 Likewise.
587
f638ed73
TV
5882020-06-29 Tom de Vries <tdevries@suse.de>
589
590 * ax.h: Include gdbsupport/debug_agent.h.
591
fbf42f4e
AB
5922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
593
594 * tdesc.cc (struct tdesc_compatible_info): New struct.
595 (tdesc_compatible_info_list): New function.
596 (tdesc_compatible_info_arch_name): New function.
597
013e3554
TBA
5982020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
599
600 Use std::list to stop pending signal instead of manually-created
601 linked list.
602 * linux-low.h: Include <list>.
603 (struct pending_signal): Move here from linux-low.cc.
604 (struct lwp_info) <pending_signals>
605 <pending_signals_to_report>: Update the type.
606 * linux-low.cc (struct pending_signals): Remove.
607 (linux_process_target::delete_lwp)
608 (linux_process_target::add_lwp)
609 (enqueue_one_deferred_signal)
610 (dequeue_one_deferred_signal)
611 (enqueue_pending_signal)
612 (linux_process_target::resume_one_lwp_throw)
613 (linux_process_target::thread_needs_step_over)
614 (linux_process_target::resume_one_thread)
615 (linux_process_target::proceed_one_lwp): Update the use of pending
616 signal list.
617
7d458ea5
SM
6182020-06-17 Simon Marchi <simon.marchi@efficios.com>
619
620 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
621 Remove.
622
84b300de
SM
6232020-06-12 Simon Marchi <simon.marchi@efficios.com>
624
625 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
626 * configure.srv: Remove mingw32ce cases.
627 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
628 * win32-low.h (to_back_slashes): Remove.
629 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
630
96c16e2b
SM
6312020-06-12 Simon Marchi <simon.marchi@efficios.com>
632
633 * Makefile.in (SFILES): linux-tile-low.cc.
634 * configure.srv: Remove tilegx case.
635 * linux-tile-low.cc: Remove.
636
bd1467ae
SM
6372020-06-12 Simon Marchi <simon.marchi@efficios.com>
638
639 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
640 * configure.srv: Remove m32r case.
641 * linux-m32r-low.cc: Remove.
642
7b46bf6f
SM
6432020-06-12 Simon Marchi <simon.marchi@efficios.com>
644
645 * Makefile.in (SFILES): Remove linux-cris-low.c.
646 * configure.srv: Remove cris cases.
647 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
648
1fa29f56
SM
6492020-06-12 Simon Marchi <simon.marchi@efficios.com>
650
651 * Makefile.in (SFILES): Remove linux-bfin-low.c.
652 * configure.srv: Remove bfin case.
653 * linux-bfin-low.cc: Remove.
654 * linux-low.cc: Remove BFIN-conditional code.
655
613f149a
SM
6562020-06-12 Simon Marchi <simon.marchi@efficios.com>
657
658 * configure: Re-generate.
659 * configure.ac: Remove srv_qnx test.
660 * configure.srv: Remove nto case.
661 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
662 * remote-utils.c: Remove __QNX__-guarded code.
663
fdb95bf5
SM
6642020-06-12 Simon Marchi <simon.marchi@efficios.com>
665
666 * configure: Re-generate.
667 * configure.ac: Remove srv_lynxos test.
668 * configure.srv: Remove lynxos cases.
669 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
670 Remove.
671
c00094dc
SM
6722020-06-12 Simon Marchi <simon.marchi@efficios.com>
673
674 * README: Fix a few outdated or incoherent things.
675
6479bf85
HD
6762020-05-27 Hannes Domani <ssbssa@yahoo.de>
677
678 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
679 (win32_clear_inferiors): Use open_process_used.
680 (get_child_debug_event): Likewise.
681
bea571eb
MW
6822020-05-25 Michael Weghorn <m.weghorn@posteo.de>
683
684 PR gdbserver/25893
685 * linux-low.cc (linux_process_target::create_inferior),
686 lynx-low.cc (lynx_process_target::create_inferior),
687 win32-low.cc (win32_process_target::create_inferior): Use
688 construct_inferior_arguments instead of stringify_argv
689 to get string representation which properly escapes
690 special characters.
691 * server.cc (handle_v_run): Just pass empty program arg
692 as such, since any further processing is now handled via
693 construct_inferior_arguments.
694
ace6b919
MW
6952020-05-25 Michael Weghorn <m.weghorn@posteo.de>
696
697 * nto-low.cc (nto_process_target::create_inferior): Pass
698 argv to spawnp function as char **.
699
b69ca137
MW
7002020-05-25 Michael Weghorn <m.weghorn@posteo.de>
701
702 * server.cc (captured_main), (handle_v_run): No longer
703 insert extra NULL element to args vector.
704
51e2cfa2
PA
7052020-05-23 Pedro Alves <palves@redhat.com>
706
707 * gdb-safe-ctype.h: New.
708
8bbf0394
TBA
7092020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
710
711 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
712 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
713 (ia64_target::low_breakpoint_at): Ditto.
714
01370779
HD
7152020-05-15 Hannes Domani <ssbssa@yahoo.de>
716
717 * win32-i386-low.cc (i386_supports_z_point_type): Handle
718 Z_PACKET_HW_BP z_type.
719 (i386_insert_point): Handle raw_bkpt_type type.
720 (i386_remove_point): Likewise.
721
7d186bc0
HD
7222020-04-30 Hannes Domani <ssbssa@yahoo.de>
723
724 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
725 Add arch/i386.o.
726 * win32-arm-low.cc (arm_num_regs): New function.
727 (struct win32_target_ops): Use arm_num_regs.
728 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
729 processes.
730 (i386_get_thread_context): Likewise.
731 (i386_prepare_to_resume): Likewise.
732 (i386_thread_added): Likewise.
733 (i386_single_step): Likewise.
734 (i386_fetch_inferior_register): Likewise.
735 (i386_store_inferior_register): Likewise.
736 (i386_arch_setup): Likewise.
737 (i386_win32_num_regs): New function.
738 (struct win32_target_ops): Use i386_win32_num_regs.
739 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
740 processes.
741 (win32_require_context): Likewise.
742 (child_add_thread): Likewise.
743 (do_initial_child_stuff): Likewise.
744 (continue_one_thread): Likewise.
745 (win32_process_target::resume): Likewise.
746 (load_psapi): Likewise.
747 (win32_add_all_dlls): Likewise.
748 (maybe_adjust_pc): Likewise.
749 (win32_process_target::qxfer_siginfo): Likewise.
750 (initialize_low): Likewise.
751 * win32-low.h (struct win32_target_ops): Change num_regs to
752 callback function.
753
1eb39914
SM
7542020-04-27 Simon Marchi <simon.marchi@efficios.com>
755
756 * configure.ac: Remove check for fs_base/gs_base in
757 user_regs_struct.
758 * configure: Re-generate.
759 * config.in: Re-generate.
760 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
761 x86_store_gregset): Adjust.
762
51ac8e22
HD
7632020-04-22 Hannes Domani <ssbssa@yahoo.de>
764
765 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
766 comparison.
767
a010605f
TT
7682020-04-16 Tom Tromey <tromey@adacore.com>
769
770 * win32-low.cc (windows_nat::handle_access_violation): New
771 function.
772
e2275c6e
SM
7732020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
774
775 * win32-low.cc (get_child_debug_event): Fix format string warning.
776
73944e9f
TT
7772020-04-13 Tom Tromey <tom@tromey.com>
778
779 * server.h (gdb_fildes_t): Remove typedef.
780 * remote-utils.c (remote_desc, list_desc): Now int.
781 (INVALID_DESCRIPTOR): Remove.
782 (gdb_connected, remote_close)
783 (check_remote_input_interrupt_request): Update.
784 * utils.h (pfildes): Don't declare.
785 * utils.c (pfildes): Remove.
786
55d7aec8
TT
7872020-04-13 Tom Tromey <tom@tromey.com>
788
789 * server.h (handle_serial_event, handle_target_event): Update.
790 * server.c: Don't call initialize_event_loop.
791 (keep_processing_events): New global.
792 (handle_serial_event): Return void. Set keep_processing_events.
793 (handle_target_event): Return void.
794 (start_event_loop): Move from event-loop.c. Rewrite.
795 * remote-utils.c (handle_accept_event): Return void.
796 (reset_readchar): Use delete_timer.
797 (process_remaining): Return void.
798 (reschedule): Use create_timer.
799 * event-loop.h: Remove.
800 * event-loop.cc: Remove.
801 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
802
e487f994
TT
8032020-04-13 Tom Tromey <tom@tromey.com>
804
805 * server.c (invoke_async_signal_handlers)
806 (check_async_event_handlers, flush_streams, gdb_select): New
807 functions.
808
8ae8e197
TT
8092020-04-13 Tom Tromey <tom@tromey.com>
810
811 * configure: Rebuild.
812 * config.in: Rebuild.
813
360ad8b3
TT
8142020-04-08 Tom Tromey <tromey@adacore.com>
815
816 PR gdb/22992
817 * win32-low.c (child_continue): Call matching_pending_stop.
818 (get_child_debug_event): Call fetch_pending_stop. Push pending
819 stop when needed.
820
523d4f80
TT
8212020-04-08 Tom Tromey <tromey@adacore.com>
822
823 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
824 (win32_process_target::supports_stopped_by_sw_breakpoint):
825 Declare.
826 * win32-low.c (win32_supports_z_point_type): Always handle
827 Z_PACKET_SW_BP.
828 (win32_insert_point): Call insert_memory_breakpoint when needed.
829 (win32_remove_point): Call remove_memory_breakpoint when needed.
830 (win32_process_target::stopped_by_sw_breakpoint)
831 (win32_process_target::supports_stopped_by_sw_breakpoint): New
832 methods.
833 (win32_target_ops): Update.
834 (maybe_adjust_pc): New function.
835 (win32_wait): Call maybe_adjust_pc.
836
e54e5929
TT
8372020-04-08 Tom Tromey <tromey@adacore.com>
838
839 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
840 field.
841 * win32-i386-low.c (the_low_target): Update.
842 * win32-arm-low.c (the_low_target): Update.
843
d6225aff
TT
8442020-04-08 Tom Tromey <tromey@adacore.com>
845
846 * win32-low.h (win32_process_target::read_pc)
847 (win32_process_target::write_pc): Declare.
848 * win32-low.c (win32_process_target::read_pc)
849 (win32_process_target::write_pc): New methods.
850 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
851 functions.
852 (the_low_target): Update.
853 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
854 functions.
855 (the_low_target): Update.
856
2c1d95e8
TT
8572020-04-08 Tom Tromey <tromey@adacore.com>
858
859 * win32-low.c (win32_kill, get_child_debug_event): Use
860 wait_for_debug_event.
861
e758e19c
TT
8622020-04-08 Tom Tromey <tromey@adacore.com>
863
864 * win32-low.c (child_continue): Call continue_last_debug_event.
865
8d30e395
TT
8662020-04-08 Tom Tromey <tromey@adacore.com>
867
868 * win32-low.c (handle_exception): Remove.
869 (windows_nat::handle_ms_vc_exception): New function.
870 (get_child_debug_event): Add "continue_status" parameter.
871 Update.
872 (win32_wait): Update.
873
a816ba18
TT
8742020-04-08 Tom Tromey <tromey@adacore.com>
875
876 * win32-low.c (windows_nat::handle_load_dll): Rename from
877 handle_load_dll. No longer static.
878 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
879 No longer static.
880
d41b524f
TT
8812020-04-08 Tom Tromey <tromey@adacore.com>
882
883 * win32-low.c (handle_output_debug_string): Add parameter. Change
884 return type.
885 (win32_kill, get_child_debug_event): Update.
886
3c76026d
TT
8872020-04-08 Tom Tromey <tromey@adacore.com>
888
889 * win32-low.c (current_process_handle, current_process_id)
890 (main_thread_id, last_sig, current_event, siginfo_er): Move to
891 nat/windows-nat.c.
892
9d8679cc
TT
8932020-04-08 Tom Tromey <tromey@adacore.com>
894
895 * win32-low.c (get_image_name): Remove.
896 (handle_load_dll): Update.
897
28688adf
TT
8982020-04-08 Tom Tromey <tromey@adacore.com>
899
900 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
901 No longer static. Change parameters.
902 (child_add_thread, child_fetch_inferior_registers)
903 (child_store_inferior_registers, win32_resume)
904 (win32_get_tib_address): Update.
905
4834dad0
TT
9062020-04-08 Tom Tromey <tromey@adacore.com>
907
908 * win32-low.h (struct win32_target_ops): Use qualified names where
909 needed.
910 * win32-i386-low.c: Add "using namespace".
911 * win32-low.c: Add "using namespace".
912 * win32-arm-low.c: Add "using namespace".
913
65bafd5b
TT
9142020-04-08 Tom Tromey <tromey@adacore.com>
915
916 * win32-low.c (delete_thread_info): Don't call CloseHandle.
917
98a03287
TT
9182020-04-08 Tom Tromey <tromey@adacore.com>
919
920 * win32-low.c (win32_require_context, suspend_one_thread): Use
921 windows_thread_info::suspend.
922 (continue_one_thread): Use windows_thread_info::resume.
923 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
924
62fe396b
TT
9252020-04-08 Tom Tromey <tromey@adacore.com>
926
927 * win32-i386-low.c (update_debug_registers)
928 (i386_prepare_to_resume, i386_thread_added): Update.
929
e9534bd2
TT
9302020-04-08 Tom Tromey <tromey@adacore.com>
931
932 * win32-low.c (child_add_thread): Use new.
933 (delete_thread_info): Use delete.
934
ae1f8880
TT
9352020-04-08 Tom Tromey <tromey@adacore.com>
936
937 * win32-low.h (struct windows_thread_info): Remove.
938
e56f8ccb
TT
9392020-04-08 Tom Tromey <tromey@adacore.com>
940
941 * win32-low.h (struct windows_thread_info): Rename from
942 win32_thread_info. Remove typedef.
943 (struct win32_target_ops, win32_require_context): Update.
944 * win32-low.c (win32_get_thread_context)
945 (win32_set_thread_context, win32_prepare_to_resume)
946 (win32_require_context, thread_rec, child_add_thread)
947 (delete_thread_info, continue_one_thread)
948 (child_fetch_inferior_registers, child_store_inferior_registers)
949 (win32_resume, suspend_one_thread, win32_get_tib_address):
950 Update.
951 * win32-i386-low.c (update_debug_registers)
952 (win32_get_current_dr, i386_get_thread_context)
953 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
954 (i386_fetch_inferior_register, i386_store_inferior_register):
955 Update.
956 * win32-arm-low.c (arm_get_thread_context)
957 (arm_fetch_inferior_register, arm_store_inferior_register):
958 Update.
959
0dd7b52e
TBA
9602020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
961
962 * linux-low.h (struct linux_target_ops): Remove.
963 (the_low_target): Remove.
964 * linux-x86-low.cc (the_low_target): Remove.
965 * linux-aarch64-low.cc (the_low_target): Ditto.
966 * linux-arm-low.cc (the_low_target): Ditto.
967 * linux-bfin-low.cc (the_low_target): Ditto.
968 * linux-cris-low.cc (the_low_target): Ditto.
969 * linux-crisv32-low.cc (the_low_target): Ditto.
970 * linux-ia64-low.cc (the_low_target): Ditto.
971 * linux-m32r-low.cc (the_low_target): Ditto.
972 * linux-m68k-low.cc (the_low_target): Ditto.
973 * linux-mips-low.cc (the_low_target): Ditto.
974 * linux-nios2-low.cc (the_low_target): Ditto.
975 * linux-ppc-low.cc (the_low_target): Ditto.
976 * linux-riscv-low.cc (the_low_target): Ditto.
977 * linux-s390-low.cc (the_low_target): Ditto.
978 * linux-sh-low.cc (the_low_target): Ditto.
979 * linux-sparc-low.cc (the_low_target): Ditto.
980 * linux-tic6x-low.cc (the_low_target): Ditto.
981 * linux-tile-low.cc (the_low_target): Ditto.
982 * linux-xtensa-low.cc (the_low_target): Ditto.
983
fc5ecdb6
TBA
9842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
985
986 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
987 linux target define the op by overriding the declaration in
988 process_stratum_target.
989
990 * linux-low.h (struct linux_target_ops): Remove the op.
991 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
992 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
993 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
994 (x86_get_ipa_tdesc_idx): Turn into...
995 (x86_target::get_ipa_tdesc_idx): ...this.
996 (the_low_target): Remove the op field.
997 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
998 (ppc_get_ipa_tdesc_idx): Turn into...
999 (ppc_target::get_ipa_tdesc_idx): ...this.
1000 (the_low_target): Remove the op field.
1001 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
1002 (s390_get_ipa_tdesc_idx): Turn into...
1003 (s390_target::get_ipa_tdesc_idx): ...this.
1004 (the_low_target): Remove the op field.
1005
9eedd27d
TBA
10062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1007
1008 Turn the 'get_syscall_trapinfo' linux target op into a method
1009 of process_stratum_target.
1010
1011 * linux-low.h (struct linux_target_ops): Remove the op.
1012 (class linux_process_target) <get_syscall_trapinfo>
1013 <gdb_catch_this_syscall>
1014 <low_supports_catch_syscall>
1015 <low_get_syscall_trapinfo>: Declare.
1016 * linux-low.cc (get_syscall_trapinfo): Turn into...
1017 (linux_process_target::get_syscall_trapinfo): ...this.
1018 (linux_process_target::low_get_syscall_trapinfo): Define.
1019 (gdb_catch_this_syscall_p): Turn into...
1020 (linux_process_target::gdb_catch_this_syscall): ...this.
1021 (linux_process_target::low_supports_catch_syscall): Define.
1022
1023 Update the callers below.
1024
1025 (linux_process_target::wait_1)
1026 (linux_process_target::supports_catch_syscall)
1027
1028 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
1029 <low_get_syscall_trapinfo>: Declare.
1030 (x86_target::low_supports_catch_syscall): Define.
1031 (x86_get_syscall_trapinfo): Turn into...
1032 (x86_target::low_get_syscall_trapinfo): ...this.
1033 (the_low_target): Remove the op field.
1034 * linux-aarch64-low.cc (class aarch64_target)
1035 <low_supports_catch_syscall>
1036 <low_get_syscall_trapinfo>: Declare.
1037 (aarch64_target::low_supports_catch_syscall): Define.
1038 (aarch64_get_syscall_trapinfo): Turn into...
1039 (aarch64_target::low_get_syscall_trapinfo): ...this.
1040 (the_low_target): Remove the op field.
1041 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1042 <low_get_syscall_trapinfo>: Declare.
1043 (arm_target::low_supports_catch_syscall): Define.
1044 (arm_get_syscall_trapinfo): Turn into...
1045 (arm_target::low_get_syscall_trapinfo): ...this.
1046 (the_low_target): Remove the op field.
1047 * linux-ppc-low.cc (the_low_target): Remove the op field.
1048 * linux-s390-low.cc (the_low_target): Remove the op field.
1049
b31cdfa6
TBA
10502020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1051
1052 Remove the 'supports_hardware_single_step' linux target op and
1053 override the process_stratum_target's op definition in
1054 linux_process_target to return true.
1055
1056 * linux-low.h (struct linux_target_ops): Remove the op.
1057 (class linux_process_target) <finish_step_over>
1058 <maybe_hw_step>: Declare.
1059 * linux-low.cc (can_hardware_single_step): Remove.
1060 (maybe_hw_step): Turn into...
1061 (linux_process_target::maybe_hw_step): ...this.
1062 (finish_step_over): Turn into...
1063 (linux_process_target::finish_step_over): ...this.
1064 (linux_process_target::supports_hardware_single_step): Update
1065 to return true.
1066
1067 Update the callers below.
1068
1069 (linux_process_target::single_step)
1070 (linux_process_target::resume_one_lwp_throw)
1071
1072 * linux-arm-low.cc (class arm_target)
1073 <supports_hardware_single_step>: Declare.
1074 (arm_supports_hardware_single_step): Turn into...
1075 (arm_target::supports_hardware_single_step): ...this.
1076 (the_low_target): Remove the op field.
1077 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1078 (the_low_target): Remove the op field.
1079 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1080 Remove.
1081 (the_low_target): Remove the op field.
1082 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1083 (the_low_target): Remove the op field.
1084 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1085 (the_low_target): Remove the op field.
1086 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1087 (the_low_target): Remove the op field.
1088 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1089 (the_low_target): Remove the op field.
1090 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1091 (the_low_target): Remove the op field.
1092 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1093 (the_low_target): Remove the op field.
1094 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1095 (the_low_target): Remove the op field.
1096 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1097 (the_low_target): Remove the op field.
1098 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1099 (the_low_target): Remove the op field.
1100 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1101 Remove.
1102 (the_low_target): Remove the op field.
1103
9cfd8715
TBA
11042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1105
1106 Turn the 'supports_range_stepping' linux target op into a method
1107 of linux_process_target.
1108
1109 * linux-low.h (struct linux_target_ops): Remove the op.
1110 (class linux_process_target) <low_supports_range_stepping>: Declare.
1111 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1112 Define.
1113 (linux_process_target::supports_range_stepping): Update the call
1114 site.
1115 * linux-x86-low.cc (class x86_target)
1116 <low_supports_range_stepping>: Declare.
1117 (x86_supports_range_stepping): Turn into...
1118 (x86_target::low_supports_range_stepping): ...this.
1119 (the_low_target): Remove the op field.
1120 * linux-aarch64-low.cc (class aarch64_target)
1121 <low_supports_range_stepping>: Declare.
1122 (aarch64_supports_range_stepping): Turn into...
1123 (aarch64_target::low_supports_range_stepping): ...this.
1124 (the_low_target): Remove the op field.
1125 * linux-arm-low.cc (the_low_target): Remove the op field.
1126 * linux-bfin-low.cc (the_low_target): Ditto.
1127 * linux-crisv32-low.cc (the_low_target): Ditto.
1128 * linux-m32r-low.cc (the_low_target): Ditto.
1129 * linux-m68k-low.cc (the_low_target): Ditto.
1130 * linux-ppc-low.cc (the_low_target): Ditto.
1131 * linux-s390-low.cc (the_low_target): Ditto.
1132 * linux-sh-low.cc (the_low_target): Ditto.
1133 * linux-tic6x-low.cc (the_low_target): Ditto.
1134 * linux-tile-low.cc (the_low_target): Ditto.
1135 * linux-xtensa-low.cc (the_low_target): Ditto.
1136
ab64c999
TBA
11372020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1138
1139 Remove the 'emit_ops' linux target ops and let the concrete
1140 linux target define the op by overriding the declaration of
1141 process_stratum_target.
1142
1143 * linux-low.h (struct linux_target_ops): Remove the op.
1144 (class linux_process_target) <emit_ops>: Remove.
1145 * linux-low.cc (linux_process_target::emit_ops): Remove.
1146 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1147 (x86_emit_ops): Turn into...
1148 (x86_target::emit_ops): ...this.
1149 (the_low_target): Remove the op field.
1150 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1151 (aarch64_emit_ops): Turn into...
1152 (aarch64_target::emit_ops): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1155 (ppc_emit_ops): Turn into...
1156 (ppc_target::emit_ops): ...this.
1157 (the_low_target): Remove the op field.
1158 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1159 (s390_emit_ops): Turn into...
1160 (s390_target::emit_ops): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-arm-low.cc (the_low_target): Remove the op field.
1163 * linux-bfin-low.cc (the_low_target): Ditto.
1164 * linux-crisv32-low.cc (the_low_target): Ditto.
1165 * linux-m32r-low.cc (the_low_target): Ditto.
1166 * linux-m68k-low.cc (the_low_target): Ditto.
1167 * linux-sh-low.cc (the_low_target): Ditto.
1168 * linux-tic6x-low.cc (the_low_target): Ditto.
1169 * linux-tile-low.cc (the_low_target): Ditto.
1170 * linux-xtensa-low.cc (the_low_target): Ditto.
1171
809a0c35
TBA
11722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1173
1174 Remove the 'install_fast_tracepoint_jump_pad' and
1175 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1176 concrete linux target define the ops by overriding the declarations
1177 of process_stratum_target.
1178
1179 * linux-low.h (struct linux_target_ops): Remove the ops.
1180 (class linux_process_target) <supports_fast_tracepoints>
1181 <install_fast_tracepoint_jump_pad>
1182 <get_min_fast_tracepoint_insn_len>: Remove.
1183 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1184 (linux_process_target::install_fast_tracepoint_jump_pad)
1185 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1186 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1187 <install_fast_tracepoint_jump_pad>
1188 <get_min_fast_tracepoint_insn_len>: Declare.
1189 (x86_target::supports_fast_tracepoints): Define.
1190 (x86_install_fast_tracepoint_jump_pad): Turn into...
1191 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1192 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1193 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1194 (the_low_target): Remove the op fields.
1195 * linux-aarch64-low.cc (class aarch64_target)
1196 <supports_fast_tracepoints>
1197 <install_fast_tracepoint_jump_pad>
1198 <get_min_fast_tracepoint_insn_len>: Declare.
1199 (aarch64_target::supports_fast_tracepoints): Define.
1200 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1201 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1202 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1203 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1204 (the_low_target): Remove the op fields.
1205 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1206 <install_fast_tracepoint_jump_pad>
1207 <get_min_fast_tracepoint_insn_len>: Declare.
1208 (ppc_target::supports_fast_tracepoints): Define.
1209 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1210 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1211 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1212 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1213 (the_low_target): Remove the op fields.
1214 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1215 <install_fast_tracepoint_jump_pad>
1216 <get_min_fast_tracepoint_insn_len>: Declare.
1217 (s390_target::supports_fast_tracepoints): Define.
1218 (s390_install_fast_tracepoint_jump_pad): Turn into...
1219 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1220 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1221 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1222 (the_low_target): Remove the op fields.
1223 * linux-arm-low.cc (the_low_target): Remove the op fields.
1224 * linux-bfin-low.cc (the_low_target): Ditto.
1225 * linux-crisv32-low.cc (the_low_target): Ditto.
1226 * linux-m32r-low.cc (the_low_target): Ditto.
1227 * linux-m68k-low.cc (the_low_target): Ditto.
1228 * linux-sh-low.cc (the_low_target): Ditto.
1229 * linux-tic6x-low.cc (the_low_target): Ditto.
1230 * linux-tile-low.cc (the_low_target): Ditto.
1231 * linux-xtensa-low.cc (the_low_target): Ditto.
1232
13e567af
TBA
12332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1234
1235 Turn the 'get_thread_area' linux target op into a method of
1236 process_stratum_target.
1237
1238 * linux-low.h (struct linux_target_ops): Remove the op.
1239 (class linux_process_target) <stuck_in_jump_pad>
1240 <linux_fast_tracepoint_collecting>
1241 <low_get_thread_area>: Declare.
1242 * linux-low.cc (supports_fast_tracepoints): Remove.
1243 (linux_fast_tracepoint_collecting): Turn into...
1244 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1245 (linux_process_target::low_get_thread_area): Define.
1246 (stuck_in_jump_pad_callback): Turn into...
1247 (linux_process_target::stuck_in_jump_pad): ...this.
1248
1249 Update the caller below.
1250
1251 (linux_process_target::stabilize_threads)
1252
1253 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1254 Declare.
1255 (x86_get_thread_area): Turn into...
1256 (x86_target::low_get_thread_area): ...this.
1257 (the_low_target): Remove the op field.
1258 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1259 Declare.
1260 (aarch64_get_thread_area): Turn into...
1261 (aarch64_target::low_get_thread_area): ...this.
1262 (the_low_target): Remove the op field.
1263 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1264 Declare.
1265 (ppc_get_thread_area): Turn into...
1266 (ppc_target::low_get_thread_area): ...this.
1267 (the_low_target): Remove the op field.
1268 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1269 Declare.
1270 (s390_get_thread_area): Turn into...
1271 (s390_target::low_get_thread_area): ...this.
1272 (the_low_target): Remove the op field.
1273 * linux-arm-low.cc (the_low_target): Remove the op field.
1274 * linux-bfin-low.cc (the_low_target): Ditto.
1275 * linux-crisv32-low.cc (the_low_target): Ditto.
1276 * linux-m32r-low.cc (the_low_target): Ditto.
1277 * linux-m68k-low.cc (the_low_target): Ditto.
1278 * linux-sh-low.cc (the_low_target): Ditto.
1279 * linux-tic6x-low.cc (the_low_target): Ditto.
1280 * linux-tile-low.cc (the_low_target): Ditto.
1281 * linux-xtensa-low.cc (the_low_target): Ditto.
1282
47f70aa7
TBA
12832020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1284
1285 Remote the 'supports_tracepoints' linux target op and let the
1286 concrete linux target define it by overriding the op declared in
1287 process_stratum_target.
1288
1289 * linux-low.h (struct linux_target_ops): Remove the op.
1290 (class linux_process_target) <supports_tracepoints>: Remove.
1291 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1292 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1293 Declare.
1294 (x86_supports_tracepoints): Turn into...
1295 (x86_target::supports_tracepoints): ...this.
1296 (the_low_target): Remove the op field.
1297 * linux-aarch64-low.cc (class aarch64_target)
1298 <supports_tracepoints>: Declare.
1299 (aarch64_supports_tracepoints): Turn into...
1300 (aarch64_target::supports_tracepoints): ...this.
1301 (the_low_target): Remove the op field.
1302 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1303 Declare.
1304 (ppc_supports_tracepoints): Turn into...
1305 (ppc_target::supports_tracepoints): ...this.
1306 (the_low_target): Remove the op field.
1307 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1308 Declare.
1309 (s390_supports_tracepoints): Turn into...
1310 (s390_target::supports_tracepoints): ...this.
1311 (the_low_target): Remove the op field.
1312 * linux-arm-low.cc (the_low_target): Remove the op field.
1313 * linux-bfin-low.cc (the_low_target): Ditto.
1314 * linux-crisv32-low.cc (the_low_target): Ditto.
1315 * linux-m32r-low.cc (the_low_target): Ditto.
1316 * linux-m68k-low.cc (the_low_target): Ditto.
1317 * linux-sh-low.cc (the_low_target): Ditto.
1318 * linux-tic6x-low.cc (the_low_target): Ditto.
1319 * linux-tile-low.cc (the_low_target): Ditto.
1320 * linux-xtensa-low.cc (the_low_target): Ditto.
1321
a5b5da92
TBA
13222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1323
1324 Remove the 'process_qsupported' linux target op and let a concrete
1325 linux target define the op by overriding the op declaration in
1326 process_stratum_target.
1327
1328 * linux-low.h (struct linux_target_ops): Remove the op.
1329 (class linux_process_target) <process_qsupported>: Remove.
1330 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1331 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1332 (x86_linux_process_qsupported): Turn into...
1333 (x86_target::process_qsupported): ...this.
1334 (the_low_target): Remove the op field.
1335 * linux-aarch64-low.cc (the_low_target): Remove the op
1336 field.
1337 * linux-arm-low.cc (the_low_target): Ditto.
1338 * linux-bfin-low.cc (the_low_target): Ditto.
1339 * linux-crisv32-low.cc (the_low_target): Ditto.
1340 * linux-m32r-low.cc (the_low_target): Ditto.
1341 * linux-m68k-low.cc (the_low_target): Ditto.
1342 * linux-ppc-low.cc (the_low_target): Ditto.
1343 * linux-s390-low.cc (the_low_target): Ditto.
1344 * linux-sh-low.cc (the_low_target): Ditto.
1345 * linux-tic6x-low.cc (the_low_target): Ditto.
1346 * linux-tile-low.cc (the_low_target): Ditto.
1347 * linux-xtensa-low.cc (the_low_target): Ditto.
1348
d7599cc0
TBA
13492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1350
1351 Turn the 'prepare_to_resume' linux target op into a method of
1352 linux_process_target.
1353
1354 * linux-low.h (struct linux_target_ops): Remove the op.
1355 (class linux_process_target) <low_prepare_to_resume>: Declare.
1356 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1357 Define.
1358
1359 Update the callers below:
1360
1361 (linux_process_target::resume_one_lwp_throw)
1362 (linux_process_target::low_prepare_to_resume)
1363
1364 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1365 Declare.
1366 (x86_target::low_prepare_to_resume): Define.
1367 (the_low_target): Remove the op field.
1368 * linux-aarch64-low.cc (class aarch64_target)
1369 <low_prepare_to_resume>: Declare.
1370 (aarch64_target::low_prepare_to_resume): Define.
1371 (the_low_target): Remove the op field.
1372 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1373 Declare.
1374 (arm_prepare_to_resume): Turn into...
1375 (arm_target::low_prepare_to_resume): ...this.
1376 (the_low_target): Remove the op field.
1377 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1378 Declare.
1379 (mips_linux_prepare_to_resume): Turn into...
1380 (mips_target::low_prepare_to_resume): ...this.
1381 (the_low_target): Remove the op field.
1382 * linux-bfin-low.cc (the_low_target): Remove the op field.
1383 * linux-crisv32-low.cc (the_low_target): Ditto.
1384 * linux-m32r-low.cc (the_low_target): Ditto.
1385 * linux-m68k-low.cc (the_low_target): Ditto.
1386 * linux-ppc-low.cc (the_low_target): Ditto.
1387 * linux-s390-low.cc (the_low_target): Ditto.
1388 * linux-sh-low.cc (the_low_target): Ditto.
1389 * linux-tic6x-low.cc (the_low_target): Ditto.
1390 * linux-tile-low.cc (the_low_target): Ditto.
1391 * linux-xtensa-low.cc (the_low_target): Ditto.
1392
fd000fb3
TBA
13932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1394
1395 Turn the 'new_process', 'delete_process', 'new_thread',
1396 'delete_thread', and 'new_fork' linux target ops into methods
1397 of linux_process_target.
1398
1399 * linux-low.h (struct linux_target_ops): Remove the ops.
1400 (class linux_process_target) <add_linux_process>
1401 <add_lwp>
1402 <delete_lwp>
1403 <attach_lwp>
1404 <detach_one_lwp>
1405 <check_zombie_leaders>
1406 <filter_exit_event>
1407 <low_new_process>
1408 <low_delete_process>
1409 <low_new_thread>
1410 <low_delete_thread>
1411 <low_new_fork>: Declare.
1412 * linux-low.cc (delete_lwp): Turn into...
1413 (linux_process_target::delete_lwp): ...this.
1414 (linux_process_target::low_delete_thread): Define.
1415 (linux_add_process): Turn into...
1416 (linux_process_target::add_linux_process): ...this.
1417 (linux_process_target::low_new_process): Define.
1418 (linux_process_target::low_delete_process): Define.
1419 (linux_process_target::low_new_fork): Define.
1420 (add_lwp): Turn into...
1421 (linux_process_target::add_lwp): ...this.
1422 (linux_process_target::low_new_thread): Define.
1423 (linux_attach_lwp): Turn into...
1424 (linux_process_target::attach_lwp): ...this.
1425 (linux_detach_one_lwp): Turn into...
1426 (linux_process_target::detach_one_lwp): ...this.
1427 (linux_detach_lwp_callback): Remove and inline...
1428 (linux_process_target::detach): ...here.
1429 (check_zombie_leaders): Turn into...
1430 (linux_process_target::check_zombie_leaders): ...this.
1431 (filter_exit_event): Turn into...
1432 (linux_process_target::filter_exit_event): ...this.
1433
1434 Update the callers below.
1435
1436 (linux_process_target::handle_extended_wait)
1437 (linux_process_target::create_inferior)
1438 (attach_proc_task_lwp_callback)
1439 (linux_process_target::attach)
1440 (linux_process_target::detach)
1441 (linux_process_target::mourn)
1442 * thread-db.cc (attach_thread)
1443
1444 * linux-x86-low.cc (class x86_target) <low_new_process>
1445 <low_delete_process>
1446 <low_new_thread>
1447 <low_delete_thread>
1448 <low_new_fork>: Declare.
1449 (x86_linux_new_process): Turn into...
1450 (x86_target::low_new_process): ...this.
1451 (x86_linux_delete_process): Turn into...
1452 (x86_target::low_delete_process): ...this.
1453 (x86_target::low_new_thread): Define.
1454 (x86_target::low_delete_thread): Define.
1455 (x86_linux_new_fork): Turn into...
1456 (x86_target::low_new_fork): ...this.
1457 (the_low_target): Remove the op fields.
1458 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1459 <low_delete_process>
1460 <low_new_thread>
1461 <low_delete_thread>
1462 <low_new_fork>: Declare.
1463 (aarch64_linux_new_process): Turn into...
1464 (aarch64_target::low_new_process): ...this.
1465 (aarch64_linux_delete_process): Turn into...
1466 (aarch64_target::low_delete_process): ...this.
1467 (aarch64_target::low_new_thread): Define.
1468 (aarch64_target::low_delete_thread): Define.
1469 (aarch64_linux_new_fork): Turn into...
1470 (aarch64_target::low_new_fork): ...this.
1471 (the_low_target): Remove the op fields.
1472 * linux-arm-low.cc (class arm_target) <low_new_process>
1473 <low_delete_process>
1474 <low_new_thread>
1475 <low_delete_thread>
1476 <low_new_fork>: Declare.
1477 (arm_new_process): Turn into...
1478 (arm_target::low_new_process): ...this.
1479 (arm_delete_process): Turn into...
1480 (arm_target::low_delete_process): ...this.
1481 (arm_new_thread): Turn into...
1482 (arm_target::low_new_thread): ...this.
1483 (arm_delete_thread): Turn into...
1484 (arm_target::low_delete_thread): ...this.
1485 (arm_new_fork): Turn into...
1486 (arm_target::low_new_fork): ...this.
1487 (the_low_target): Remove the op fields.
1488 * linux-mips-low.cc (class mips_target) <low_new_process>
1489 <low_delete_process>
1490 <low_new_thread>
1491 <low_delete_thread>
1492 <low_new_fork>: Declare.
1493 (mips_linux_new_process): Turn into...
1494 (mips_target::low_new_process): ...this.
1495 (mips_linux_delete_process): Turn into...
1496 (mips_target::low_delete_process): ...this.
1497 (mips_linux_new_thread): Turn into...
1498 (mips_target::low_new_thread): ...this.
1499 (mips_linux_delete_thread): Turn into...
1500 (mips_target::low_delete_thread): ...this.
1501 (mips_linux_new_fork): Turn into...
1502 (mips_target::low_new_fork): ...this.
1503 (the_low_target): Remove the op fields.
1504 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1505 * linux-crisv32-low.cc (the_low_target): Ditto.
1506 * linux-m32r-low.cc (the_low_target): Ditto.
1507 * linux-m68k-low.cc (the_low_target): Ditto.
1508 * linux-ppc-low.cc (the_low_target): Ditto.
1509 * linux-s390-low.cc (the_low_target): Ditto.
1510 * linux-sh-low.cc (the_low_target): Ditto.
1511 * linux-tic6x-low.cc (the_low_target): Ditto.
1512 * linux-tile-low.cc (the_low_target): Ditto.
1513 * linux-xtensa-low.cc (the_low_target): Ditto.
1514
cb63de7c
TBA
15152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1516
1517 Turn the 'siginfo_fixup' linux target op into a method of
1518 linux_process_target.
1519
1520 * linux-low.h (struct linux_target_ops): Remove the op.
1521 (class linux_process_target) <siginfo_fixup>
1522 <low_siginfo_fixup>: Declare.
1523 * linux-low.cc (siginfo_fixup): Turn into...
1524 (linux_process_target::siginfo_fixup): ...this.
1525 (linux_process_target::low_siginfo_fixup): Define.
1526 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1527 (x86_siginfo_fixup): Turn into...
1528 (x86_target::low_siginfo_fixup): ...this.
1529 (the_low_target): Remove the op field.
1530 * linux-aarch64-low.cc (class aarch64_target):
1531 <low_siginfo_fixup>: Declare.
1532 (aarch64_linux_siginfo_fixup): Turn into...
1533 (aarch64_target::low_siginfo_fixup): ...this.
1534 (the_low_target): Remove the op field.
1535 * linux-arm-low.cc (the_low_target): Remove the op field.
1536 * linux-bfin-low.cc (the_low_target): Ditto.
1537 * linux-crisv32-low.cc (the_low_target): Ditto.
1538 * linux-m32r-low.cc (the_low_target): Ditto.
1539 * linux-m68k-low.cc (the_low_target): Ditto.
1540 * linux-mips-low.cc (the_low_target): Ditto.
1541 * linux-ppc-low.cc (the_low_target): Ditto.
1542 * linux-s390-low.cc (the_low_target): Ditto.
1543 * linux-sh-low.cc (the_low_target): Ditto.
1544 * linux-tic6x-low.cc (the_low_target): Ditto.
1545 * linux-tile-low.cc (the_low_target): Ditto.
1546 * linux-xtensa-low.cc (the_low_target): Ditto.
1547
b35db733
TBA
15482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1549
1550 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1551 linux target ops into methods of linux_process_target.
1552
1553 * linux-low.h (struct linux_target_ops): Remove the ops.
1554 (class linux_process_target) <low_collect_ptrace_register>
1555 <low_store_ptrace_register>: Declare.
1556 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1557 (linux_process_target::low_supply_ptrace_register): Define.
1558
1559 Update the callers below.
1560
1561 (linux_process_target::fetch_register)
1562 (linux_process_target::store_register)
1563
1564 * linux-x86-low.cc (the_low_target): Remove the op fields.
1565 * linux-aarch64-low.cc (the_low_target): Ditto.
1566 * linux-arm-low.cc (the_low_target): Ditto.
1567 * linux-bfin-low.cc (the_low_target): Ditto.
1568 * linux-crisv32-low.cc (the_low_target): Ditto.
1569 * linux-m32r-low.cc (the_low_target): Ditto.
1570 * linux-m68k-low.cc (the_low_target): Ditto.
1571 * linux-sh-low.cc (the_low_target): Ditto.
1572 * linux-sparc-low.cc (the_low_target): Ditto.
1573 * linux-tic6x-low.cc (the_low_target): Ditto.
1574 * linux-tile-low.cc (the_low_target): Ditto.
1575 * linux-xtensa-low.cc (the_low_target): Ditto.
1576 * linux-mips-low.cc (class mips_target)
1577 <low_collect_ptrace_register>
1578 <low_supply_ptrace_register>: Declare.
1579 (mips_collect_ptrace_register): Turn into ...
1580 (mips_target::low_collect_ptrace_register): ...this.
1581 (mips_supply_ptrace_register): Turn into...
1582 (mips_target::low_supply_ptrace_register): ...this.
1583 (the_low_target): Remove the op fields.
1584 * linux-ppc-low.cc (class ppc_target)
1585 <low_collect_ptrace_register>
1586 <low_supply_ptrace_register>: Declare.
1587 (ppc_collect_ptrace_register): Turn into ...
1588 (ppc_target::low_collect_ptrace_register): ...this.
1589 (ppc_supply_ptrace_register): Turn into ...
1590 (ppc_target::low_supply_ptrace_register): ...this.
1591 (ppc_fill_gregset): Update for the calls to
1592 low_collect_ptrace_register.
1593 (the_low_target): Remove the op fields.
1594 * linux-s390-low.cc (class s390_target)
1595 <low_collect_ptrace_register>
1596 <low_supply_ptrace_register>: Declare.
1597 (s390_collect_ptrace_register): Turn into ...
1598 (s390_target::low_collect_ptrace_register): ...this.
1599 (s390_supply_ptrace_register): Turn into ...
1600 (s390_target::low_supply_ptrace_register): ...this.
1601 (s390_fill_gregset): Update for the calls to
1602 low_collect_ptrace_register.
1603 (the_low_target): Remove the op fields.
1604
ac1bbaca
TBA
16052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1606
1607 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1608 target ops into methods of linux_process_target.
1609
1610 * linux-low.h (struct linux_target_ops): Remove the ops.
1611 (class linux_process_target) <check_stopped_by_watchpoint>
1612 <low_stopped_by_watchpoint>
1613 <low_stopped_data_address>: Declare.
1614 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1615 (linux_process_target::check_stopped_by_watchpoint): ...this.
1616 (linux_process_target::low_stopped_by_watchpoint): Define.
1617 (linux_process_target::low_stopped_data_address): Define.
1618 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1619 <low_stopped_data_address>: Declare.
1620 (x86_stopped_by_watchpoint): Turn into...
1621 (x86_target::low_stopped_by_watchpoint): ...this.
1622 (x86_stopped_data_address): Turn into...
1623 (x86_target::low_stopped_data_address): ...this.
1624 (the_low_target): Remove the op fields.
1625 * linux-aarch64-low.cc (class aarch64_target)
1626 <low_stopped_by_watchpoint>
1627 <low_stopped_data_address>: Declare.
1628 (aarch64_stopped_by_watchpoint): Turn into...
1629 (aarch64_target::low_stopped_by_watchpoint): ...this.
1630 (aarch64_stopped_data_address): Turn into...
1631 (aarch64_target::low_stopped_data_address): ...this.
1632 (the_low_target): Remove the op fields.
1633 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1634 <low_stopped_data_address>: Declare.
1635 (arm_stopped_by_watchpoint): Turn into...
1636 (arm_target::low_stopped_by_watchpoint): ...this.
1637 (arm_stopped_data_address): Turn into...
1638 (arm_target::low_stopped_data_address): ...this.
1639 (the_low_target): Remove the op fields.
1640 * linux-crisv32-low.cc (class crisv32_target)
1641 <low_stopped_by_watchpoint>
1642 <low_stopped_data_address>: Declare.
1643 (cris_stopped_by_watchpoint): Turn into...
1644 (crisv32_target::low_stopped_by_watchpoint): ...this.
1645 (cris_stopped_data_address): Turn into...
1646 (crisv32_target::low_stopped_data_address): ...this.
1647 (the_low_target): Remove the op fields.
1648 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1649 <low_stopped_data_address>: Declare.
1650 (mips_stopped_by_watchpoint): Turn into...
1651 (mips_target::low_stopped_by_watchpoint): ...this.
1652 (mips_stopped_data_address): Turn into...
1653 (mips_target::low_stopped_data_address): ...this.
1654 (the_low_target): Remove the op fields.
1655 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1656 * linux-m32r-low.cc (the_low_target): Ditto.
1657 * linux-m68k-low.cc (the_low_target): Ditto.
1658 * linux-ppc-low.cc (the_low_target): Ditto.
1659 * linux-s390-low.cc (the_low_target): Ditto.
1660 * linux-sh-low.cc (the_low_target): Ditto.
1661 * linux-sparc-low.cc (the_low_target): Ditto.
1662 * linux-tic6x-low.cc (the_low_target): Ditto.
1663 * linux-tile-low.cc (the_low_target): Ditto.
1664 * linux-xtensa-low.cc (the_low_target): Ditto.
1665
9db9aa23
TBA
16662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1667
1668 Turn the 'insert_point' and 'remove_point' linux target ops into
1669 methods of linux_process_target.
1670
1671 * linux-low.h (struct linux_target_ops): Remove the ops.
1672 (class linux_process_target) <low_insert_point>
1673 <low_remove_point>: Declare.
1674 * linux-low.cc (linux_process_target::low_insert_point)
1675 (linux_process_target::low_remove_point): Define.
1676 (linux_process_target::insert_point)
1677 (linux_process_target::remove_point): Update for calls to
1678 low_insert_point and low_remove_point.
1679 * linux-x86-low.cc (class x86_target) <low_insert_point>
1680 <low_remove_point>: Declare.
1681 (x86_insert_point): Turn into...
1682 (x86_target::low_insert_point): ...this.
1683 (x86_remove_point): Turn into...
1684 (x86_target::low_remove_point): ...this.
1685 (the_low_target): Remove the op fields.
1686 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1687 <low_remove_point>: Declare.
1688 (aarch64_insert_point): Turn into...
1689 (aarch64_target::low_insert_point): ...this.
1690 (aarch64_remove_point): Turn into...
1691 (aarch64_target::low_remove_point): ...this.
1692 (the_low_target): Remove the op fields.
1693 * linux-arm-low.cc (class arm_target) <low_insert_point>
1694 <low_remove_point>: Declare.
1695 (arm_insert_point): Turn into...
1696 (arm_target::low_insert_point): ...this.
1697 (arm_remove_point): Turn into...
1698 (arm_target::low_remove_point): ...this.
1699 (the_low_target): Remove the op fields.
1700 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1701 <low_remove_point>: Declare.
1702 (crisv32_insert_point): Turn into...
1703 (crisv32_target::low_insert_point): ...this.
1704 (crisv32_remove_point): Turn into...
1705 (crisv32_target::low_remove_point): ...this.
1706 (the_low_target): Remove the op fields.
1707 * linux-mips-low.cc (class mips_target) <low_insert_point>
1708 <low_remove_point>: Declare.
1709 (mips_insert_point): Turn into...
1710 (mips_target::low_insert_point): ...this.
1711 (mips_remove_point): Turn into...
1712 (mips_target::low_remove_point): ...this.
1713 (the_low_target): Remove the op fields.
1714 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1715 <low_remove_point>: Declare.
1716 (ppc_insert_point): Turn into...
1717 (ppc_target::low_insert_point): ...this.
1718 (ppc_remove_point): Turn into...
1719 (ppc_target::low_remove_point): ...this.
1720 (the_low_target): Remove the op fields.
1721 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1722 * linux-m32r-low.cc (the_low_target): Ditto.
1723 * linux-m68k-low.cc (the_low_target): Ditto.
1724 * linux-s390-low.cc (the_low_target): Ditto.
1725 * linux-sh-low.cc (the_low_target): Ditto.
1726 * linux-sparc-low.cc (the_low_target): Ditto.
1727 * linux-tic6x-low.cc (the_low_target): Ditto.
1728 * linux-tile-low.cc (the_low_target): Ditto.
1729 * linux-xtensa-low.cc (the_low_target): Ditto.
1730
007c9b97
TBA
17312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1732
1733 Remove the 'supports_z_point_type' linux target op and let the
1734 concrete linux target define it by overriding the op declared in
1735 process_stratum_target.
1736
1737 * linux-low.cc (linux_process_target::supports_z_point_type):
1738 Remove.
1739 * linux-low.h (struct linux_target_ops): Remove the op.
1740 (class linux_process_target) <supports_z_point_type>: Remove.
1741 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1742 Declare.
1743 (x86_supports_z_point_type): Turn into...
1744 (x86_target::supports_z_point_type): ...this.
1745 (the_low_target): Remove the op field.
1746 * linux-aarch64-low.cc (class aarch64_target)
1747 <supports_z_point_type>: Declare.
1748 (aarch64_supports_z_point_type): Turn into...
1749 (aarch64_target::supports_z_point_type): ...this.
1750 (the_low_target): Remove the op field.
1751 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1752 Declare.
1753 (arm_supports_z_point_type): Turn into...
1754 (arm_target::supports_z_point_type): ...this.
1755 (the_low_target): Remove the op field.
1756 * linux-crisv32-low.cc (class crisv32_target)
1757 <supports_z_point_type>: Declare.
1758 (cris_supports_z_point_type): Turn into...
1759 (crisv32_target::supports_z_point_type): ...this.
1760 (the_low_target): Remove the op field.
1761 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1762 Declare.
1763 (mips_supports_z_point_type): Turn into...
1764 (mips_target::supports_z_point_type): ...this.
1765 (the_low_target): Remove the op field.
1766 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1767 Declare.
1768 (ppc_supports_z_point_type): Turn into...
1769 (ppc_target::supports_z_point_type): ...this.
1770 (the_low_target): Remove the op field.
1771 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1772 Declare.
1773 (s390_supports_z_point_type): Turn into...
1774 (s390_target::supports_z_point_type): ...this.
1775 (the_low_target): Remove the op field.
1776 * linux-bfin-low.cc (the_low_target): Remove the op field.
1777 * linux-m32r-low.cc (the_low_target): Ditto.
1778 * linux-m68k-low.cc (the_low_target): Ditto.
1779 * linux-sh-low.cc (the_low_target): Ditto.
1780 * linux-sparc-low.cc (the_low_target): Ditto.
1781 * linux-tic6x-low.cc (the_low_target): Ditto.
1782 * linux-tile-low.cc (the_low_target): Ditto.
1783 * linux-xtensa-low.cc (the_low_target): Ditto.
1784
d7146cda
TBA
17852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1786
1787 Turn the 'breakpoint_at' linux target op into a method of
1788 linux_process_target.
1789
1790 * linux-low.h (struct linux_target_ops): Remove the op.
1791 (class linux_process_target) <low_breakpoint_at>: Declare.
1792
1793 Update the callers below:
1794
1795 * linux-low.cc (linux_process_target::save_stop_reason)
1796 (linux_process_target::thread_still_has_status_pending)
1797 (linux_process_target::wait_1)
1798
1799 * linux-x86-low.cc (class x86_target)
1800 <low_breakpoint_at>: Declare.
1801 (x86_breakpoint_at): Turn into...
1802 (x86_target::low_breakpoint_at): ...this.
1803 (the_low_target): Remove the op field.
1804 * linux-aarch64-low.cc (class aarch64_target)
1805 <low_breakpoint_at>: Declare.
1806 (aarch64_breakpoint_at): Turn into...
1807 (aarch64_target::low_breakpoint_at): ...this.
1808 (the_low_target): Remove the op field.
1809 * linux-arm-low.cc (class arm_target)
1810 <low_breakpoint_at>: Declare.
1811 (arm_target::low_breakpoint_at): Define.
1812 (the_low_target): Remove the op field.
1813 * linux-bfin-low.cc (class bfin_target)
1814 <low_breakpoint_at>: Declare.
1815 (bfin_breakpoint_at): Turn into...
1816 (bfin_target::low_breakpoint_at): ...this.
1817 (the_low_target): Remove the op field.
1818 * linux-cris-low.cc (class cris_target)
1819 <low_breakpoint_at>: Declare.
1820 (cris_breakpoint_at): Turn into...
1821 (cris_target::low_breakpoint_at): ...this.
1822 (the_low_target): Remove the op field.
1823 * linux-crisv32-low.cc (class crisv32_target)
1824 <low_breakpoint_at>: Declare.
1825 (crisv32_breakpoint_at): Turn into...
1826 (crisv32_target::low_breakpoint_at): ...this.
1827 (the_low_target): Remove the op field.
1828 * linux-ia64-low.cc (class ia64_target)
1829 <low_breakpoint_at>: Declare.
1830 (ia64_target::low_breakpoint_at): Define.
1831 * linux-m32r-low.cc (class m32r_target)
1832 <low_breakpoint_at>: Declare.
1833 (m32r_breakpoint_at): Turn into...
1834 (m32r_target::low_breakpoint_at): ...this.
1835 (the_low_target): Remove the op field.
1836 * linux-m68k-low.cc (class m68k_target)
1837 <low_breakpoint_at>: Declare.
1838 (m68k_breakpoint_at): Turn into...
1839 (m68k_target::low_breakpoint_at): ...this.
1840 (the_low_target): Remove the op field.
1841 * linux-mips-low.cc (class mips_target)
1842 <low_breakpoint_at>: Declare.
1843 (mips_breakpoint_at): Turn into...
1844 (mips_target::low_breakpoint_at): ...this.
1845 (the_low_target): Remove the op field.
1846 * linux-nios2-low.cc (class nios2_target)
1847 <low_breakpoint_at>: Declare.
1848 (nios2_breakpoint_at): Turn into...
1849 (nios2_target::low_breakpoint_at): ...this.
1850 (the_low_target): Remove the op field.
1851 * linux-ppc-low.cc (class ppc_target)
1852 <low_breakpoint_at>: Declare.
1853 (ppc_breakpoint_at): Turn into...
1854 (ppc_target::low_breakpoint_at): ...this.
1855 (the_low_target): Remove the op field.
1856 * linux-riscv-low.cc (class riscv_target)
1857 <low_breakpoint_at>: Declare.
1858 (riscv_breakpoint_at): Turn into...
1859 (riscv_target::low_breakpoint_at): ...this.
1860 (the_low_target): Remove the op field.
1861 * linux-s390-low.cc (class s390_target)
1862 <low_breakpoint_at>: Declare.
1863 (s390_breakpoint_at): Turn into...
1864 (s390_target::low_breakpoint_at): ...this.
1865 (the_low_target): Remove the op field.
1866 * linux-sh-low.cc (class sh_target)
1867 <low_breakpoint_at>: Declare.
1868 (sh_breakpoint_at): Turn into...
1869 (sh_target::low_breakpoint_at): ...this.
1870 (the_low_target): Remove the op field.
1871 * linux-sparc-low.cc (class sparc_target)
1872 <low_breakpoint_at>: Declare.
1873 (sparc_breakpoint_at): Turn into...
1874 (sparc_target::low_breakpoint_at): ...this.
1875 (the_low_target): Remove the op field.
1876 * linux-tic6x-low.cc (class tic6x_target)
1877 <low_breakpoint_at>: Declare.
1878 (tic6x_breakpoint_at): Turn into...
1879 (tic6x_target::low_breakpoint_at): ...this.
1880 (the_low_target): Remove the op field.
1881 * linux-tile-low.cc (class tile_target)
1882 <low_breakpoint_at>: Declare.
1883 (tile_breakpoint_at): Turn into...
1884 (tile_target::low_breakpoint_at): ...this.
1885 (the_low_target): Remove the op field.
1886 * linux-xtensa-low.cc (class xtensa_target)
1887 <low_breakpoint_at>: Declare.
1888 (xtensa_breakpoint_at): Turn into...
1889 (xtensa_target::low_breakpoint_at): ...this.
1890 (the_low_target): Remove the op field.
1891
d4807ea2
TBA
18922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1893
1894 Turn the 'decr_pc_after_break' linux_target_ops field into
1895 a method of linux_process_target.
1896
1897 * linux-low.h (struct linux_target_ops)
1898 <decr_pc_after_break>: Remove.
1899 (class linux_process_target) <low_decr_pc_after_break>: New method
1900 declaration.
1901 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1902 New method implementation.
1903
1904 Update the users below.
1905
1906 (linux_process_target::save_stop_reason)
1907 (linux_process_target::wait_1)
1908 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1909 New declaration.
1910 (x86_target::low_decr_pc_after_break): New method implementation.
1911 (the_low_target): Remove the field.
1912 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1913 New declaration.
1914 (bfin_target::low_decr_pc_after_break): New method implementation.
1915 (the_low_target): Remove the field.
1916 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1917 New declaration.
1918 (m68k_target::low_decr_pc_after_break): New method implementation.
1919 (the_low_target): Remove the field.
1920 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1921 New declaration.
1922 (s390_target::low_decr_pc_after_break): New method implementation.
1923 (the_low_target): Remove the field.
1924 * linux-aarch64-low.cc (the_low_target): Remove the field.
1925 * linux-arm-low.cc (the_low_target): Remove the field.
1926 * linux-cris-low.cc (the_low_target): Remove the field.
1927 * linux-crisv32-low.cc (the_low_target): Remove the field.
1928 * linux-m32r-low.cc (the_low_target): Remove the field.
1929 * linux-mips-low.cc (the_low_target): Remove the field.
1930 * linux-nios2-low.cc (the_low_target): Remove the field.
1931 * linux-ppc-low.cc (the_low_target): Remove the field.
1932 * linux-riscv-low.cc (the_low_target): Remove the field.
1933 * linux-sh-low.cc (the_low_target): Remove the field.
1934 * linux-sparc-low.cc (the_low_target): Remove the field.
1935 * linux-tic6x-low.cc (the_low_target): Remove the field.
1936 * linux-tile-low.cc (the_low_target): Remove the field.
1937 * linux-xtensa-low.cc (the_low_target): Remove the field.
1938
7582c77c
TBA
19392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1940
1941 Remove the 'supports_software_single_step' linux target op and let
1942 the concrete linux target define it by overriding the op in
1943 process_stratum_target.
1944 Turn the 'get_next_pcs' linux target op into a method of
1945 linux_process_target.
1946
1947 * linux-low.h (struct linux_target_ops): Remove the ops.
1948 (class linux_process_target) <supports_software_single_step>:
1949 Remove.
1950 <low_get_next_pcs>: Declare.
1951 * linux-low.cc (can_software_single_step): Remove.
1952 (linux_process_target::low_get_next_pcs): Define.
1953 (linux_process_target::supports_software_single_step): Remove.
1954
1955 Update the callers below.
1956
1957 (linux_process_target::handle_extended_wait)
1958 (linux_process_target::wait_1)
1959 (linux_process_target::install_software_single_step_breakpoints)
1960 (linux_process_target::single_step)
1961 (linux_process_target::thread_needs_step_over)
1962 (linux_process_target::proceed_one_lwp)
1963 (linux_process_target::supports_range_stepping)
1964
1965 * linux-x86-low.cc (the_low_target): Remove the op field.
1966 * linux-aarch64-low.cc (the_low_target): Ditto.
1967 * linux-bfin-low.cc (the_low_target): Ditto.
1968 * linux-cris-low.cc (the_low_target): Ditto.
1969 * linux-crisv32-low.cc (the_low_target): Ditto.
1970 * linux-m32r-low.cc (the_low_target): Ditto.
1971 * linux-m68k-low.cc (the_low_target): Ditto.
1972 * linux-mips-low.cc (the_low_target): Ditto.
1973 * linux-nios2-low.cc (the_low_target): Ditto.
1974 * linux-ppc-low.cc (the_low_target): Ditto.
1975 * linux-riscv-low.cc (the_low_target): Ditto.
1976 * linux-s390-low.cc (the_low_target): Ditto.
1977 * linux-sh-low.cc (the_low_target): Ditto.
1978 * linux-sparc-low.cc (the_low_target): Ditto.
1979 * linux-tic6x-low.cc (the_low_target): Ditto.
1980 * linux-tile-low.cc (the_low_target): Ditto.
1981 * linux-xtensa-low.cc (the_low_target): Ditto.
1982 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1983 <supports_software_single_step>: Declare.
1984 (arm_target::supports_software_single_step): Define.
1985 (arm_gdbserver_get_next_pcs): Turn into...
1986 (arm_target::low_get_next_pcs): ...this.
1987 (the_low_target): Remove the op field.
1988
3ca4edb6
TBA
19892020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1990
1991 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1992 the concrete linux target define it by overriding the op
1993 in process_stratum_target.
1994
1995 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1996 Remove.
1997 * linux-low.h (struct linux_target_ops): Remove the op.
1998 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1999 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
2000 Declare.
2001 (x86_sw_breakpoint_from_kind): Turn into...
2002 (x86_target::sw_breakpoint_from_kind): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-aarch64-low.cc (class aarch64_target)
2005 <sw_breakpoint_from_kind>: Declare.
2006 (aarch64_sw_breakpoint_from_kind): Turn into...
2007 (aarch64_target::sw_breakpoint_from_kind): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
2010 Declare.
2011 (arm_target::sw_breakpoint_from_kind): Define.
2012 (the_low_target): Remove the op field.
2013 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
2014 Declare.
2015 (bfin_sw_breakpoint_from_kind): Turn into...
2016 (bfin_target::sw_breakpoint_from_kind): ...this.
2017 (the_low_target): Remove the op field.
2018 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
2019 Declare.
2020 (cris_sw_breakpoint_from_kind): Turn into...
2021 (cris_target::sw_breakpoint_from_kind): ...this.
2022 (the_low_target): Remove the op field.
2023 * linux-crisv32-low.cc (class crisv32_target)
2024 <sw_breakpoint_from_kind>: Declare.
2025 (cris_sw_breakpoint_from_kind): Turn into...
2026 (crisv32_target::sw_breakpoint_from_kind): ...this.
2027 (the_low_target): Remove the op field.
2028 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
2029 Declare.
2030 (ia64_target::sw_breakpoint_from_kind): Define.
2031 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2032 Declare.
2033 (m32r_sw_breakpoint_from_kind): Turn into...
2034 (m32r_target::sw_breakpoint_from_kind): ...this.
2035 (the_low_target): Remove the op field.
2036 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2037 Declare.
2038 (m68k_sw_breakpoint_from_kind): Turn into...
2039 (m68k_target::sw_breakpoint_from_kind): ...this.
2040 (the_low_target): Remove the op field.
2041 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2042 Declare.
2043 (mips_sw_breakpoint_from_kind): Turn into...
2044 (mips_target::sw_breakpoint_from_kind): ...this.
2045 (the_low_target): Remove the op field.
2046 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2047 Declare.
2048 (nios2_sw_breakpoint_from_kind): Turn into...
2049 (nios2_target::sw_breakpoint_from_kind): ...this.
2050 (the_low_target): Remove the op field.
2051 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2052 Declare.
2053 (ppc_sw_breakpoint_from_kind): Turn into...
2054 (ppc_target::sw_breakpoint_from_kind): ...this.
2055 (the_low_target): Remove the op field.
2056 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2057 Declare.
2058 (riscv_sw_breakpoint_from_kind): Turn into...
2059 (riscv_target::sw_breakpoint_from_kind): ...this.
2060 (the_low_target): Remove the op field.
2061 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2062 Declare.
2063 (s390_sw_breakpoint_from_kind): Turn into...
2064 (s390_target::sw_breakpoint_from_kind): ...this.
2065 (the_low_target): Remove the op field.
2066 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2067 Declare.
2068 (sh_sw_breakpoint_from_kind): Turn into...
2069 (sh_target::sw_breakpoint_from_kind): ...this.
2070 (the_low_target): Remove the op field.
2071 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2072 Declare.
2073 (sparc_sw_breakpoint_from_kind): Turn into...
2074 (sparc_target::sw_breakpoint_from_kind): ...this.
2075 (the_low_target): Remove the op field.
2076 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2077 Declare.
2078 (tic6x_sw_breakpoint_from_kind): Turn into...
2079 (tic6x_target::sw_breakpoint_from_kind): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2082 Declare.
2083 (tile_sw_breakpoint_from_kind): Turn into...
2084 (tile_target::sw_breakpoint_from_kind): ...this.
2085 (the_low_target): Remove the op field.
2086 * linux-xtensa-low.cc (class xtensa_target)
2087 <sw_breakpoint_from_kind>: Declare.
2088 (xtensa_sw_breakpoint_from_kind): Turn into...
2089 (xtensa_target::sw_breakpoint_from_kind): ...this.
2090 (the_low_target): Remove the op field.
2091
06250e4e
TBA
20922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2093
2094 Remove the 'breakpoint_kind_from_pc' and
2095 'breakpoint_kind_from_current_state' linux target ops, and let the
2096 concrete linux target define them by overriding the ops of
2097 process_stratum_target.
2098
2099 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2100 Remove.
2101 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2102 * linux-low.h (struct linux_target_ops): Remove ops.
2103 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2104 <breakpoint_kind_from_current_state>: Remove.
2105 * linux-x86-low.cc (the_low_target): Remove the op fields.
2106 * linux-bfin-low.cc (the_low_target): Ditto.
2107 * linux-cris-low.cc (the_low_target): Ditto.
2108 * linux-crisv32-low.cc (the_low_target): Ditto.
2109 * linux-m32r-low.cc (the_low_target): Ditto.
2110 * linux-m68k-low.cc (the_low_target): Ditto.
2111 * linux-mips-low.cc (the_low_target): Ditto.
2112 * linux-nios2-low.cc (the_low_target): Ditto.
2113 * linux-ppc-low.cc (the_low_target): Ditto.
2114 * linux-s390-low.cc (the_low_target): Ditto.
2115 * linux-sh-low.cc (the_low_target): Ditto.
2116 * linux-sparc-low.cc (the_low_target): Ditto.
2117 * linux-tic6x-low.cc (the_low_target): Ditto.
2118 * linux-tile-low.cc (the_low_target): Ditto.
2119 * linux-xtensa-low.cc (the_low_target): Ditto.
2120 * linux-aarch64-low.cc (class aarch64_target)
2121 <breakpoint_kind_from_pc>
2122 <breakpoint_kind_from_current_state>: Declare.
2123 (aarch64_breakpoint_kind_from_pc): Turn into...
2124 (aarch64_target::breakpoint_kind_from_pc): ...this.
2125 (aarch64_breakpoint_kind_from_current_state): Turn into...
2126 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2127 (the_low_target): Remove the op fields.
2128 * linux-arm-low.cc (class arm_target):
2129 <breakpoint_kind_from_pc>
2130 <breakpoint_kind_from_current_state>: Declare.
2131 (arm_target::breakpoint_kind_from_pc): Define.
2132 (arm_target::breakpoint_kind_from_current_state): Define.
2133 (the_low_target): Remove the op fields.
2134 * linux-riscv-low.cc (class riscv_target):
2135 <breakpoint_kind_from_pc>: Declare.
2136 (riscv_breakpoint_kind_from_pc): Turn into...
2137 (riscv_target::breakpoint_kind_from_pc): ...this.
2138 (the_low_target): Remove the op fields.
2139
bf9ae9d8
TBA
21402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2141
2142 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2143 of linux_process_target.
2144
2145 * linux-low.h (struct linux_target_ops): Remove the ops.
2146 (class linux_process_target) <low_supports_breakpoints>
2147 <low_get_pc>
2148 <low_set_pc>: Declare.
2149 * linux-low.cc (supports_breakpoints): Turn into...
2150 (linux_process_target::low_supports_breakpoints): ...this.
2151 (linux_process_target::low_get_pc): Define.
2152 (linux_process_target::low_set_pc): Define.
2153
2154 Update the callers below.
2155
2156 (linux_process_target::get_pc)
2157 (linux_process_target::save_stop_reason)
2158 (linux_process_target::maybe_move_out_of_jump_pad)
2159 (linux_process_target::wait_1)
2160 (linux_process_target::resume_one_lwp_throw)
2161 (linux_process_target::resume)
2162 (linux_process_target::proceed_all_lwps)
2163 (linux_process_target::read_pc)
2164 (linux_process_target::write_pc)
2165
2166 * linux-x86-low.cc (class linux_process_target)
2167 <low_supports_breakpoints>
2168 <low_get_pc>
2169 <low_set_pc>: Declare.
2170 (x86_target::low_supports_breakpoints): Define.
2171 (x86_get_pc): Turn into...
2172 (x86_target::low_get_pc): ...this.
2173 (x86_set_pc): Turn into...
2174 (x86_target::low_set_pc): ...this.
2175 (the_low_target): Remove the op fields.
2176 * linux-arm-low.cc (class arm_target)
2177 <low_supports_breakpoints>
2178 <low_get_pc>
2179 <low_set_pc>: Declare.
2180 (arm_target::low_supports_breakpoints)
2181 (arm_target::low_get_pc)
2182 (arm_target::low_set_pc): Define.
2183 (the_low_target): Remove the op fields.
2184 * linux-bfin-low.cc (class bfin_target)
2185 <low_supports_breakpoints>
2186 <low_get_pc>
2187 <low_set_pc>: Declare.
2188 (bfin_target::low_supports_breakpoints)
2189 (bfin_target::low_get_pc)
2190 (bfin_target::low_set_pc): Define.
2191 (the_low_target): Remove the op fields.
2192 * linux-cris-low.cc (class cris_target)
2193 <low_supports_breakpoints>
2194 <low_get_pc>
2195 <low_set_pc>: Declare.
2196 (cris_target::low_supports_breakpoints)
2197 (cris_target::low_get_pc)
2198 (cris_target::low_set_pc): Define.
2199 (the_low_target): Remove the op fields.
2200 * linux-crisv32-low.cc (class crisv32_target)
2201 <low_supports_breakpoints>
2202 <low_get_pc>
2203 <low_set_pc>: Declare.
2204 (crisv32_target::low_supports_breakpoints)
2205 (crisv32_target::low_get_pc)
2206 (crisv32_target::low_set_pc): Define.
2207 (the_low_target): Remove the op fields.
2208 * linux-m32r-low.cc (class m32r_target)
2209 <low_supports_breakpoints>
2210 <low_get_pc>
2211 <low_set_pc>: Declare.
2212 (m32r_target::low_supports_breakpoints)
2213 (m32r_target::low_get_pc)
2214 (m32r_target::low_set_pc): Define.
2215 (the_low_target): Remove the op fields.
2216 * linux-m68k-low.cc (class m68k_target)
2217 <low_supports_breakpoints>
2218 <low_get_pc>
2219 <low_set_pc>: Declare.
2220 (m68k_target::low_supports_breakpoints)
2221 (m68k_target::low_get_pc)
2222 (m68k_target::low_set_pc): Define.
2223 (the_low_target): Remove the op fields.
2224 * linux-nios2-low.cc (class nios2_target)
2225 <low_supports_breakpoints>
2226 <low_get_pc>
2227 <low_set_pc>: Declare.
2228 (nios2_target::low_supports_breakpoints)
2229 (nios2_target::low_get_pc)
2230 (nios2_target::low_set_pc): Define.
2231 (the_low_target): Remove the op fields.
2232 * linux-sh-low.cc (class sh_target)
2233 <low_supports_breakpoints>
2234 <low_get_pc>
2235 <low_set_pc>: Declare.
2236 (sh_target::low_supports_breakpoints)
2237 (sh_target::low_get_pc)
2238 (sh_target::low_set_pc): Define.
2239 (the_low_target): Remove the op fields.
2240 * linux-xtensa-low.cc (class xtensa_target)
2241 <low_supports_breakpoints>
2242 <low_get_pc>
2243 <low_set_pc>: Declare.
2244 (xtensa_target::low_supports_breakpoints)
2245 (xtensa_target::low_get_pc)
2246 (xtensa_target::low_set_pc): Define.
2247 (the_low_target): Remove the op fields.
2248 * linux-sparc-low.cc (class sparc_target)
2249 <low_supports_breakpoints>
2250 <low_get_pc>: Declare.
2251 (sparc_target::low_supports_breakpoints)
2252 (sparc_target::low_get_pc): Define.
2253 (the_low_target): Remove the op fields.
2254 * linux-tile-low.cc (class tile_target)
2255 <low_supports_breakpoints>
2256 <low_get_pc>
2257 <low_set_pc>: Declare.
2258 (tile_target::low_supports_breakpoints)
2259 (tile_target::low_get_pc)
2260 (tile_target::low_set_pc): Define.
2261 (the_low_target): Remove the op fields.
2262 * linux-aarch64-low.cc (class aarch64_target)
2263 <low_supports_breakpoints>
2264 <low_get_pc>
2265 <low_set_pc>: Declare.
2266 (aarch64_target::low_supports_breakpoints): Define.
2267 (aarch64_get_pc): Turn into...
2268 (aarch64_target::low_get_pc): ...this.
2269 (aarch64_set_pc): Turn into...
2270 (aarch64_target::low_set_pc): ...this.
2271 (the_low_target): Remove the op fields.
2272 * linux-mips-low.cc (class mips_target)
2273 <low_supports_breakpoints>
2274 <low_get_pc>
2275 <low_set_pc>: Declare.
2276 (mips_target::low_supports_breakpoints): Define.
2277 (mips_get_pc): Turn into...
2278 (mips_target::low_get_pc): ...this.
2279 (mips_set_pc): Turn into...
2280 (mips_target::low_set_pc): ...this.
2281 (the_low_target): Remove the op fields.
2282 * linux-ppc-low.cc (class ppc_target)
2283 <low_supports_breakpoints>
2284 <low_get_pc>
2285 <low_set_pc>: Declare.
2286 (ppc_target::low_supports_breakpoints): Define.
2287 (ppc_get_pc): Turn into...
2288 (ppc_target::low_get_pc): ...this.
2289 (ppc_set_pc): Turn into...
2290 (ppc_target::low_set_pc): ...this.
2291 (the_low_target): Remove the op fields.
2292 * linux-riscv-low.cc (class riscv_target)
2293 <low_supports_breakpoints>
2294 <low_get_pc>
2295 <low_set_pc>: Declare.
2296 (riscv_target::low_supports_breakpoints): Define.
2297 (riscv_get_pc): Turn into...
2298 (riscv_target::low_get_pc): ...this.
2299 (riscv_set_pc): Turn into...
2300 (riscv_target::low_set_pc): ...this.
2301 (the_low_target): Remove the op fields.
2302 * linux-s390-low.cc (class s390_target)
2303 <low_supports_breakpoints>
2304 <low_get_pc>
2305 <low_set_pc>: Declare.
2306 (s390_target::low_supports_breakpoints): Define.
2307 (s390_get_pc): Turn into...
2308 (s390_target::low_get_pc): ...this.
2309 (s390_set_pc): Turn into...
2310 (s390_target::low_set_pc): ...this.
2311 (the_low_target): Remove the op fields.
2312 * linux-tic6x-low.cc (class tic6x_target)
2313 <low_supports_breakpoints>
2314 <low_get_pc>
2315 <low_set_pc>: Declare.
2316 (tic6x_target::low_supports_breakpoints): Define.
2317 (tic6x_get_pc): Turn into...
2318 (tic6x_target::low_get_pc): ...this.
2319 (tic6x_set_pc): Turn into...
2320 (tic6x_target::low_set_pc): ...this.
2321 (the_low_target): Remove the op fields.
2322
df95181f
TBA
23232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2324
2325 Turn some more static methods in linux-low into private methods
2326 of linux_process_target.
2327
2328 * linux-low.cc (get_pc): Turn into...
2329 (linux_process_target::get_pc): ...this.
2330 (save_stop_reason): Turn into...
2331 (linux_process_target::save_stop_reason): ...this.
2332 (thread_still_has_status_pending_p): Turn into...
2333 (linux_process_target::thread_still_has_status_pending): ...this.
2334 (status_pending_p_callback): Turn into...
2335 (linux_process_target::status_pending_p_callback): ...this.
2336 (resume_stopped_resumed_lwps): Turn into...
2337 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2338 (install_software_single_step_breakpoints): Turn into...
2339 (linux_process_target::install_software_single_step_breakpoints):
2340 ...this.
2341 (single_step): Turn into...
2342 (linux_process_target::single_step): ...this.
2343 (linux_resume_one_lwp_throw): Turn into...
2344 (linux_process_target::resume_one_lwp_throw): ...this.
2345 (linux_resume_one_lwp): Turn into...
2346 (linux_process_target::resume_one_lwp): ...this.
2347 (resume_status_pending_p): Turn into...
2348 (linux_process_target::resume_status_pending): ...this.
2349 (need_step_over_p): Turn into...
2350 (linux_process_target::thread_needs_step_over): ...this.
2351 (linux_resume_one_thread): Turn into...
2352 (linux_process_target::resume_one_thread): ...this.
2353 (proceed_one_lwp): Turn into...
2354 (linux_process_target::proceed_one_lwp): ...this.
2355 (unsuspend_and_proceed_one_lwp): Turn into...
2356 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2357
2358 Update the calls/references to the above functions below.
2359
2360 (linux_process_target::handle_extended_wait)
2361 (linux_process_target::filter_event)
2362 (linux_process_target::wait_for_event_filtered)
2363 (linux_process_target::wait_1)
2364 (linux_process_target::move_out_of_jump_pad)
2365 (linux_process_target::start_step_over)
2366 (linux_process_target::resume)
2367 (linux_process_target::proceed_all_lwps)
2368 (regsets_store_inferior_registers)
2369 (linux_process_target::store_register)
2370
2371 * linux-low.h (class linux_process_target)
2372 <get_pc>
2373 <save_stop_reason>
2374 <thread_still_has_status_pending>
2375 <status_pending_p_callback>
2376 <resume_stopped_resumed_lwps>
2377 <install_software_single_step_breakpoints>
2378 <single_step>
2379 <resume_one_lwp_throw>
2380 <resume_one_lwp>
2381 <resume_status_pending>
2382 <thread_needs_step_over>
2383 <resume_one_thread>
2384 <proceed_one_lwp>
2385 <unsuspend_and_proceed_one_lwp>: Declare.
2386
bd70b1f2
TBA
23872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2388
2389 Turn the 'fetch_register' linux target op into a method of
2390 linux_process_target.
2391
2392 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2393 (class linux_process_target) <low_fetch_register>: Declare.
2394 * linux-x86-low.cc (the_low_target)
2395 * linux-aarch64-low.cc (the_low_target)
2396 * linux-arm-low.cc (the_low_target)
2397 * linux-bfin-low.cc (the_low_target)
2398 * linux-cris-low.cc (the_low_target)
2399 * linux-crisv32-low.cc (the_low_target)
2400 * linux-m32r-low.cc (the_low_target)
2401 * linux-m68k-low.cc (the_low_target)
2402 * linux-nios2-low.cc (the_low_target)
2403 * linux-ppc-low.cc (the_low_target)
2404 * linux-s390-low.cc (the_low_target)
2405 * linux-sh-low.cc (the_low_target)
2406 * linux-sparc-low.cc (the_low_target)
2407 * linux-tic6x-low.cc (the_low_target)
2408 * linux-tile-low.cc (the_low_target)
2409 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2410 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2411 Declare.
2412 (ia64_fetch_register): Turn into...
2413 (ia64_target::low_fetch_register): ...this.
2414 (the_low_target): Remove the op field.
2415 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2416 Declare.
2417 (mips_fetch_register): Turn into...
2418 (mips_target::low_fetch_register): ...this.
2419 (the_low_target): Remove the op field.
2420 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2421 Declare.
2422 (riscv_fetch_register): Turn into...
2423 (riscv_target::low_fetch_register): ...this.
2424 (the_low_target): Remove the op field.
2425
2426 Update the callers below.
2427
2428 * linux-low.cc (linux_process_target::fetch_registers)
2429 (linux_process_target::low_fetch_register)
2430
daca57a7
TBA
24312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2432
2433 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2434 linux target ops into methods of linux_process_target.
2435
2436 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2437 (class linux_process_target) <fetch_register>
2438 <store_register>
2439 <usr_fetch_inferior_registers>
2440 <usr_store_inferior_registers>
2441 <low_cannot_fetch_register>
2442 <low_cannot_fetch_register> Declare.
2443 * linux-low.cc (fetch_register): Turn into...
2444 (linux_process_target::fetch_register): ...this.
2445 (store_register): Turn into ...
2446 (linux_process_target::store_register): ...this.
2447 (usr_fetch_inferior_registers): Turn into...
2448 (linux_process_target::usr_fetch_inferior_registers): ...this.
2449 (usr_store_inferior_registers): Turn into...
2450 (linux_process_target::usr_store_inferior_registers): ...this.
2451 * linux-x86-low.cc (class x86_target)
2452 <low_cannot_fetch_register>
2453 <low_cannot_store_register>: Declare.
2454 (x86_cannot_store_register): Turn into...
2455 (x86_target::low_cannot_store_register): ...this.
2456 (x86_cannot_fetch_register): Turn into...
2457 (x86_target::low_cannot_fetch_register): ...this.
2458 (the_low_target): Remove the target op fields.
2459 * linux-aarch64-low.cc (class aarch64_target)
2460 <low_cannot_fetch_register>
2461 <low_cannot_store_register>: Declare.
2462 (aarch64_target::low_cannot_fetch_register)
2463 (aarch64_target::low_cannot_store_register): Define.
2464 (the_low_target): Remove the op fields.
2465 * linux-arm-low.cc (class arm_target)
2466 <low_cannot_fetch_register>
2467 <low_cannot_store_register>: Declare.
2468 (arm_cannot_fetch_register): Turn into...
2469 (arm_target::low_cannot_fetch_register): ...this.
2470 (arm_cannot_store_register): Turn into...
2471 (arm_target::low_cannot_store_register): ...this.
2472 (the_low_target): Remove the op fields.
2473 * linux-bfin-low.cc (class bfin_target)
2474 <low_cannot_fetch_register>
2475 <low_cannot_store_register>: Declare.
2476 (bfin_cannot_fetch_register): Turn into...
2477 (bfin_target::low_cannot_fetch_register): ...this.
2478 (bfin_cannot_store_register): Turn into...
2479 (bfin_target::low_cannot_store_register): ...this.
2480 (the_low_target): Remove the op fields.
2481 * linux-cris-low.cc (class cris_target)
2482 <low_cannot_fetch_register>
2483 <low_cannot_store_register>: Declare.
2484 (cris_cannot_fetch_register): Turn into...
2485 (cris_target::low_cannot_fetch_register): ...this.
2486 (cris_cannot_store_register): Turn into...
2487 (cris_target::low_cannot_store_register): ...this.
2488 (the_low_target): Remove the op fields.
2489 * linux-crisv32-low.cc (class crisv32_target)
2490 <low_cannot_fetch_register>
2491 <low_cannot_store_register>: Declare.
2492 (crisv32_target::low_cannot_fetch_register)
2493 (crisv32_target::low_cannot_store_register): Define.
2494 (the_low_target): Remove the op fields.
2495 * linux-ia64-low.cc (class ia64_target)
2496 <low_cannot_fetch_register>
2497 <low_cannot_store_register>: Declare.
2498 (ia64_cannot_fetch_register): Turn into...
2499 (ia64_target::low_cannot_fetch_register): ...this.
2500 (ia64_cannot_store_register): Turn into...
2501 (ia64_target::low_cannot_store_register): ...this.
2502 (the_low_target): Remove the op fields.
2503 * linux-m32r-low.cc (class m32r_target)
2504 <low_cannot_fetch_register>
2505 <low_cannot_store_register>: Declare.
2506 (m32r_cannot_fetch_register): Turn into...
2507 (m32r_target::low_cannot_fetch_register): ...this.
2508 (m32r_cannot_store_register): Turn into...
2509 (m32r_target::low_cannot_store_register): ...this.
2510 (the_low_target): Remove the op fields.
2511 * linux-m68k-low.cc (class m68k_target)
2512 <low_cannot_fetch_register>
2513 <low_cannot_store_register>: Declare.
2514 (m68k_cannot_fetch_register): Turn into...
2515 (m68k_target::low_cannot_fetch_register): ...this.
2516 (m68k_cannot_store_register): Turn into...
2517 (m68k_target::low_cannot_store_register): ...this.
2518 (the_low_target): Remove the op fields.
2519 * linux-mips-low.cc (class mips_target)
2520 <low_cannot_fetch_register>
2521 <low_cannot_store_register>: Declare.
2522 (mips_cannot_fetch_register): Turn into...
2523 (mips_target::low_cannot_fetch_register): ...this.
2524 (mips_cannot_store_register): Turn into...
2525 (mips_target::low_cannot_store_register): ...this.
2526 (get_usrregs_info): Inline at the call sites in
2527 low_cannot_fetch_register and low_cannot_store_register,
2528 and remove.
2529 (the_low_target): Remove the op fields.
2530 * linux-nios2-low.cc (class nios2_target)
2531 <low_cannot_fetch_register>
2532 <low_cannot_store_register>: Declare.
2533 (nios2_cannot_fetch_register): Turn into...
2534 (nios2_target::low_cannot_fetch_register): ...this.
2535 (nios2_cannot_store_register): Turn into...
2536 (nios2_target::low_cannot_store_register): ...this.
2537 (the_low_target): Remove the op fields.
2538 * linux-ppc-low.cc (class ppc_target)
2539 <low_cannot_fetch_register>
2540 <low_cannot_store_register>: Declare.
2541 (ppc_cannot_fetch_register): Turn into...
2542 (ppc_target::low_cannot_fetch_register): ...this.
2543 (ppc_cannot_store_register): Turn into...
2544 (ppc_target::low_cannot_store_register): ...this.
2545 (the_low_target): Remove the op fields.
2546 * linux-riscv-low.cc (class riscv_target)
2547 <low_cannot_fetch_register>
2548 <low_cannot_store_register>: Declare.
2549 (riscv_target::low_cannot_fetch_register)
2550 (riscv_target::low_cannot_store_register): Define.
2551 (the_low_target): Remove the op fields.
2552 * linux-s390-low.cc (class s390_target)
2553 <low_cannot_fetch_register>
2554 <low_cannot_store_register>: Declare.
2555 (s390_cannot_fetch_register): Turn into...
2556 (s390_target::low_cannot_fetch_register): ...this.
2557 (s390_cannot_store_register): Turn into...
2558 (s390_target::low_cannot_store_register): ...this.
2559 (the_low_target): Remove the op fields.
2560 * linux-sh-low.cc (class sh_target)
2561 <low_cannot_fetch_register>
2562 <low_cannot_store_register>: Declare.
2563 (sh_cannot_fetch_register): Turn into...
2564 (sh_target::low_cannot_fetch_register): ...this.
2565 (sh_cannot_store_register): Turn into...
2566 (sh_target::low_cannot_store_register): ...this.
2567 (the_low_target): Remove the op fields.
2568 * linux-sparc-low.cc (class sparc_target)
2569 <low_cannot_fetch_register>
2570 <low_cannot_store_register>: Declare.
2571 (sparc_cannot_fetch_register): Turn into...
2572 (sparc_target::low_cannot_fetch_register): ...this.
2573 (sparc_cannot_store_register): Turn into...
2574 (sparc_target::low_cannot_store_register): ...this.
2575 (the_low_target): Remove the op fields.
2576 * linux-tic6x-low.cc (class tic6x_target)
2577 <low_cannot_fetch_register>
2578 <low_cannot_store_register>: Declare.
2579 (tic6x_cannot_fetch_register): Turn into...
2580 (tic6x_target::low_cannot_fetch_register): ...this.
2581 (tic6x_cannot_store_register): Turn into...
2582 (tic6x_target::low_cannot_store_register): ...this.
2583 (the_low_target): Remove the op fields.
2584 * linux-tile-low.cc (class tile_target)
2585 <low_cannot_fetch_register>
2586 <low_cannot_store_register>: Declare.
2587 (tile_cannot_fetch_register): Turn into...
2588 (tile_target::low_cannot_fetch_register): ...this.
2589 (tile_cannot_store_register): Turn into...
2590 (tile_target::low_cannot_store_register): ...this.
2591 (the_low_target): Remove the op fields.
2592 * linux-xtensa-low.cc (class xtensa_target)
2593 <low_cannot_fetch_register>
2594 <low_cannot_store_register>: Declare.
2595 (xtensa_target::low_cannot_fetch_register)
2596 (xtensa_target::low_cannot_store_register): Define.
2597 (the_low_target): Remove the op fields.
2598
aa8d21c9
TBA
25992020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2600
2601 Turn the 'regs_info' linux target op into a method of
2602 linux_process_target.
2603
2604 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2605 (class linux_process_target) <get_regs_info>: Define.
2606
2607 Update the callers below.
2608
2609 * linux-low.cc (linux_process_target::fetch_registers)
2610 (linux_process_target::store_registers)
2611 * proc-service.cc (gregset_info)
2612
2613 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2614 (x86_linux_regs_info): Turn into ...
2615 (x86_target::get_regs_info): ...this.
2616 (the_low_target): Remove the op field.
2617 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2618 Declare.
2619 (aarch64_regs_info): Turn into ...
2620 (aarch64_target::get_regs_info): ...this.
2621 (the_low_target): Remove the op field.
2622 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2623 (arm_regs_info): Turn into ...
2624 (arm_target::get_regs_info): ...this.
2625 (the_low_target): Remove the op field.
2626 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2627 (bfin_regs_info): Turn into ...
2628 (bfin_target::get_regs_info): ...this.
2629 (the_low_target): Remove the op field.
2630 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2631 (cris_regs_info): Turn into ...
2632 (cris_target::get_regs_info): ...this.
2633 (the_low_target): Remove the op field.
2634 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2635 Declare.
2636 (crisv32_regs_info): Turn into ...
2637 (crisv32_target::get_regs_info): ...this.
2638 (the_low_target): Remove the op field.
2639 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2640 (ia64_regs_info): Turn into ...
2641 (ia64_target::get_regs_info): ...this.
2642 (the_low_target): Remove the op field.
2643 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2644 (m32r_regs_info): Turn into ...
2645 (m32r_target::get_regs_info): ...this.
2646 (the_low_target): Remove the op field.
2647 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2648 (m68k_regs_info): Turn into ...
2649 (m68k_target::get_regs_info): ...this.
2650 (the_low_target): Remove the op field.
2651 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2652 (mips_regs_info): Turn into ...
2653 (mips_target::get_regs_info): ...this.
2654 (the_low_target): Remove the op field.
2655 (get_usrregs_info): Update the call to the op.
2656 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2657 (nios2_regs_info): Turn into ...
2658 (nios2_target::get_regs_info): ...this.
2659 (the_low_target): Remove the op field.
2660 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2661 (ppc_regs_info): Turn into ...
2662 (ppc_target::get_regs_info): ...this.
2663 (the_low_target): Remove the op field.
2664 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2665 (riscv_regs_info): Turn into ...
2666 (riscv_target::get_regs_info): ...this.
2667 (the_low_target): Remove the op field.
2668 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2669 (s390_regs_info): Turn into ...
2670 (s390_target::get_regs_info): ...this.
2671 (the_low_target): Remove the op field.
2672 (s390_collect_ptrace_register)
2673 (s390_supply_ptrace_register)
2674 (s390_fill_gregset): Update the call to the op.
2675 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2676 (sh_regs_info): Turn into ...
2677 (sh_target::get_regs_info): ...this.
2678 (the_low_target): Remove the op field.
2679 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2680 (sparc_regs_info): Turn into ...
2681 (sparc_target::get_regs_info): ...this.
2682 (the_low_target): Remove the op field.
2683 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2684 (tic6x_regs_info): Turn into ...
2685 (tic6x_target::get_regs_info): ...this.
2686 (the_low_target): Remove the op field.
2687 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2688 (tile_regs_info): Turn into ...
2689 (tile_target::get_regs_info): ...this.
2690 (the_low_target): Remove the op field.
2691 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2692 Declare.
2693 (xtensa_regs_info): Turn into ...
2694 (xtensa_target::get_regs_info): ...this.
2695 (the_low_target): Remove the op field.
2696
797bcff5
TBA
26972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2698
2699 Turn the 'arch_setup' linux target op into a method of
2700 linux_process_target.
2701
2702 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2703 (class linux_process_target) <arch_setup_thread>
2704 <low_arch_setup>: New declarations.
2705 * linux-low.cc (linux_arch_setup): Delete.
2706 (linux_arch_setup_thread): Turn into...
2707 (linux_process_target::arch_setup_thread): ... this.
2708
2709 Update the callers below.
2710
2711 (linux_process_target::handle_extended_wait)
2712 (linux_process_target::post_create_inferior)
2713 (linux_process_target::filter_event)
2714
2715 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2716 declaration.
2717 (x86_linux_update_xmltarget): Turn into...
2718 (x86_target::update_xmltarget): ...this.
2719 (x86_linux_process_qsupported): Update the call to
2720 x86_linux_update_xmltarget.
2721 (x86_arch_setup): Turn into ...
2722 (x86_target::low_arch_setup): ...this.
2723 (the_low_target): Remove the op field.
2724 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2725 declaration.
2726 (aarch64_arch_setup): Turn into ...
2727 (aarch64_target::low_arch_setup): ...this.
2728 (the_low_target): Remove the op field.
2729 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2730 declaration.
2731 (arm_arch_setup): Turn into ...
2732 (arm_target::low_arch_setup): ...this.
2733 (the_low_target): Remove the op field.
2734 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2735 declaration.
2736 (bfin_arch_setup): Turn into ...
2737 (bfin_target::low_arch_setup): ...this.
2738 (the_low_target): Remove the op field.
2739 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2740 declaration.
2741 (cris_arch_setup): Turn into ...
2742 (cris_target::low_arch_setup): ...this.
2743 (the_low_target): Remove the op field.
2744 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2745 declaration.
2746 (crisv32_arch_setup): Turn into ...
2747 (crisv32_target::low_arch_setup): ...this.
2748 (the_low_target): Remove the op field.
2749 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2750 declaration.
2751 (ia64_arch_setup): Turn into ...
2752 (ia64_target::low_arch_setup): ...this.
2753 (the_low_target): Remove the op field.
2754 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2755 declaration.
2756 (m32r_arch_setup): Turn into ...
2757 (m32r_target::low_arch_setup): ...this.
2758 (the_low_target): Remove the op field.
2759 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2760 declaration.
2761 (m68k_arch_setup): Turn into ...
2762 (m68k_target::low_arch_setup): ...this.
2763 (the_low_target): Remove the op field.
2764 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2765 declaration.
2766 (mips_arch_setup): Turn into ...
2767 (mips_target::low_arch_setup): ...this.
2768 (the_low_target): Remove the op field.
2769 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2770 declaration.
2771 (nios2_arch_setup): Turn into ...
2772 (nios2_target::low_arch_setup): ...this.
2773 (the_low_target): Remove the op field.
2774 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2775 declaration.
2776 (ppc_arch_setup): Turn into ...
2777 (ppc_target::low_arch_setup): ...this.
2778 (the_low_target): Remove the op field.
2779 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2780 declaration.
2781 (riscv_arch_setup): Turn into ...
2782 (riscv_target::low_arch_setup): ...this.
2783 (the_low_target): Remove the op field.
2784 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2785 declaration.
2786 (s390_arch_setup): Turn into ...
2787 (s390_target::low_arch_setup): ...this.
2788 (the_low_target): Remove the op field.
2789 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2790 declaration.
2791 (sh_arch_setup): Turn into ...
2792 (sh_target::low_arch_setup): ...this.
2793 (the_low_target): Remove the op field.
2794 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2795 declaration.
2796 (sparc_arch_setup): Turn into ...
2797 (sparc_target::low_arch_setup): ...this.
2798 (the_low_target): Remove the op field.
2799 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2800 declaration.
2801 (tic6x_arch_setup): Turn into ...
2802 (tic6x_target::low_arch_setup): ...this.
2803 (the_low_target): Remove the op field.
2804 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2805 declaration.
2806 (tile_arch_setup): Turn into ...
2807 (tile_target::low_arch_setup): ...this.
2808 (the_low_target): Remove the op field.
2809 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2810 declaration.
2811 (xtensa_arch_setup): Turn into ...
2812 (xtensa_target::low_arch_setup): ...this.
2813 (the_low_target): Remove the op field.
2814
ef0478f6
TBA
28152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2816
2817 * linux-low.h (the_linux_target): New extern declaration.
2818 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2819 'the_target'.
2820 (the_linux_target): Remove.
2821 * linux-x86-low.cc (class x86_target): New class.
2822 (the_x86_target): New static object.
2823 (the_linux_target): Define as pointer to the_x86_target.
2824 * linux-aarch64-low.cc (class aarch64_target): New class.
2825 (the_aarch64_target): New static object.
2826 (the_linux_target): Define as pointer to the_aarch64_target.
2827 * linux-arm-low.cc (class arm_target): New class.
2828 (the_arm_target): New static object.
2829 (the_linux_target): Define as pointer to the_arm_target.
2830 * linux-bfin-low.cc (class bfin_target): New class.
2831 (the_bfin_target): New static object.
2832 (the_linux_target): Define as pointer to the_bfin_target.
2833 * linux-cris-low.cc (class cris_target): New class.
2834 (the_cris_target): New static object.
2835 (the_linux_target): Define as pointer to the_cris_target.
2836 * linux-crisv32-low.cc (class crisv32_target): New class.
2837 (the_crisv32_target): New static object.
2838 (the_linux_target): Define as pointer to the_crisv32_target.
2839 * linux-ia64-low.cc (class ia64_target): New class.
2840 (the_ia64_target): New static object.
2841 (the_linux_target): Define as pointer to the_ia64_target.
2842 * linux-m32r-low.cc (class m32r_target): New class.
2843 (the_m32r_target): New static object.
2844 (the_linux_target): Define as pointer to the_m32r_target.
2845 * linux-m68k-low.cc (class m68k_target): New class.
2846 (the_m68k_target): New static object.
2847 (the_linux_target): Define as pointer to the_m68k_target.
2848 * linux-mips-low.cc (class mips_target): New class.
2849 (the_mips_target): New static object.
2850 (the_linux_target): Define as pointer to the_mips_target.
2851 * linux-nios2-low.cc (class nios2_target): New class.
2852 (the_nios2_target): New static object.
2853 (the_linux_target): Define as pointer to the_nios2_target.
2854 * linux-ppc-low.cc (class ppc_target): New class.
2855 (the_ppc_target): New static object.
2856 (the_linux_target): Define as pointer to the_ppc_target.
2857 * linux-riscv-low.cc (class riscv_target): New class.
2858 (the_riscv_target): New static object.
2859 (the_linux_target): Define as pointer to the_riscv_target.
2860 * linux-s390-low.cc (class s390_target): New class.
2861 (the_s390_target): New static object.
2862 (the_linux_target): Define as pointer to the_s390_target.
2863 * linux-sh-low.cc (class sh_target): New class.
2864 (the_sh_target): New static object.
2865 (the_linux_target): Define as pointer to the_sh_target.
2866 * linux-sparc-low.cc (class sparc_target): New class.
2867 (the_sparc_target): New static object.
2868 (the_linux_target): Define as pointer to the_sparc_target.
2869 * linux-tic6x-low.cc (class tic6x_target): New class.
2870 (the_tic6x_target): New static object.
2871 (the_linux_target): Define as pointer to the_tic6x_target.
2872 * linux-tile-low.cc (class tile_target): New class.
2873 (the_tile_target): New static object.
2874 (the_linux_target): Define as pointer to the_tile_target.
2875 * linux-xtensa-low.cc (class xtensa_target): New class.
2876 (the_xtensa_target): New static object.
2877 (the_linux_target): Define as pointer to the_xtensa_target.
2878
d16f3f6c
TBA
28792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2880
2881 Turn some static functions in linux-low.cc into private methods of
2882 linux_process_target.
2883
2884 * linux-low.cc (handle_extended_wait): Turn into ...
2885 (linux_process_target::handle_extended_wait): ...this. Call
2886 'mourn' on 'this' object instead of 'the_target'.
2887 (maybe_move_out_of_jump_pad): Turn into...
2888 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2889 (linux_low_filter_event): Turn into...
2890 (linux_process_target::filter_event): ...this.
2891 (linux_wait_for_event_filtered): Turn into...
2892 (linux_process_target::wait_for_event_filtered): ...this.
2893 (linux_wait_for_event): Turn into...
2894 (linux_process_target::wait_for_event): ...this.
2895 (linux_wait_1): Turn into...
2896 (linux_process_target::wait_1): ...this.
2897 (wait_for_sigstop): Turn into...
2898 (linux_process_target::wait_for_sigstop): ...this.
2899 (move_out_of_jump_pad_callback): Turn into...
2900 (linux_process_target::move_out_of_jump_pad): ...this.
2901 (stop_all_lwps): Turn into...
2902 (linux_process_target::stop_all_lwps): ...this.
2903 (start_step_over): Turn into...
2904 (linux_process_target::start_step_over): ...this.
2905 (complete_ongoing_step_over): Turn into...
2906 (linux_process_target::complete_ongoing_step_over): ...this.
2907 (proceed_all_lwps): Turn into...
2908 (linux_process_target::proceed_all_lwps): ...this.
2909 (unstop_all_lwps): Turn into...
2910 (linux_process_target::unstop_all_lwps): ...this.
2911
2912 * linux-low.h (class linux_process_target)
2913 <handle_extended_wait>
2914 <maybe_move_out_of_jump_pad>
2915 filter_event>
2916 <wait_for_event_filtered>
2917 <wait_for_event>
2918 <wait_1>
2919 <wait_for_sigstop>
2920 <move_out_of_jump_pad>
2921 <stop_all_lwps>
2922 <start_step_over>
2923 <complete_ongoing_step_over>
2924 <proceed_all_lwps>
2925 <unstop_all_lwps>: Declare.
2926
2927 Update the callers below.
2928
2929 * linux-low.cc (linux_process_target::attach): Update.
2930 (linux_process_target::stabilize_threads): Ditto.
2931 (linux_process_target::wait): Ditto.
2932
a5863204
TBA
29332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2934
2935 * linux-low.h (struct linux_target_ops): Update the comment for
2936 'cannot_store_register' to return 0 or 1.
2937 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2938 of 2.
2939
c884cc46
SM
29402020-03-20 Simon Marchi <simon.marchi@efficios.com>
2941
2942 * config.in: Re-generate.
2943 * configure: Re-generate.
2944
5a82b8a1
KR
29452020-03-17 Kamil Rytarowski <n54@gmx.com>
2946
2947 * regcache.cc (find_register_by_number): Update.
2948 * tdesc.cc (init_target_desc): Likewise.
2949 * tdesc.h (target_desc::reg_defs): Likewise.
2950
4635ff97
TT
29512020-03-12 Tom Tromey <tom@tromey.com>
2952
2953 * configure: Rebuild.
2954 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2955 (WIN32APILIBS): New subst.
2956 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2957 gdbsupport files.
2958 (gdbsupport/%.o): Remove target.
2959 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2960 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2961 (WIN32APILIBS): New variable.
2962 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2963 (gdbreplay$(EXEEXT)): Likewise.
2964
9a665d62
TT
29652020-03-12 Tom Tromey <tom@tromey.com>
2966
2967 * config.in, configure: Rebuild.
2968 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2969 * acinclude.m4: Include gettext-sister.m4.
2970 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2971 variables.
2972 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2973 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2974
272cd5a3
SM
29752020-03-12 Simon Marchi <simon.marchi@efficios.com>
2976
2977 * acinclude.m4: Update path to selftest.m4.
2978
db6878ac
SM
29792020-03-12 Simon Marchi <simon.marchi@efficios.com>
2980
2981 * configure.ac: Don't source bfd/development.sh, move
2982 GDB_AC_COMMON higher.
2983 * configure: Re-generate.
2984
4d696a5c
SM
29852020-03-12 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * configure: Re-generate.
2988
a0761e34
SM
29892020-03-11 Simon Marchi <simon.marchi@efficios.com>
2990
2991 * configure: Re-generate.
2992
20ea4a60
AB
29932020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2994
2995 * .dir-locals.el: New file.
2996
842806cb
TBA
29972020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2998
2999 * .gitattributes: New file.
3000
442131c1
AB
30012020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3002
3003 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
3004 reply into an S reply.
3005 * server.cc (disable_packet_T): New global.
3006 (captured_main): Set new global when appropriate.
3007 * server.h (disable_packet_T): Declare.
3008
dda42c0b
TT
30092020-02-21 Tom Tromey <tom@tromey.com>
3010
3011 * Makefile.in (mostlyclean): New target.
3012
52405d85
TBA
30132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3014
3015 * target.h (struct process_stratum_target): Remove.
3016 (class process_target): Rename to ...
3017 (class process_stratum_target): ... this.
3018 * linux-low.h (class linux_process_target): Derive from
3019 'process_stratum_target'.
3020 * linux-low.cc (linux_target_ops): Remove.
3021 (initialize_low): Set the_target to the singleton instance of
3022 linux_process_target.
3023 * lynx-low.h (class lynx_process_target): Derive from
3024 'process_stratum_target'.
3025 * lynx-low.cc (lynx_target_ops): Remove.
3026 (initialize_low): Set the_target to the singleton instance of
3027 lynx_process_target.
3028 * nto-low.h (class nto_process_target): Derive from
3029 'process_stratum_target'.
3030 * nto-low.cc (nto_target_ops): Remove.
3031 (initialize_low): Set the_target to the singleton instance of
3032 nto_process_target.
3033 * win32-low.h (class win32_process_target): Derive from
3034 'process_stratum_target'.
3035 * win32-low.cc (win32_target_ops): Remove.
3036 (initialize_low): Set the_target to the singleton instance of
3037 win32_process_target.
3038
3039 Replace 'the_target->pt' with 'the_target' in the uses below.
3040
3041 * hostio.cc (hostio_error)
3042 (handle_setfs)
3043 (handle_open)
3044 (handle_unlink)
3045 (handle_readlink)
3046 * linux-aarch32-low.cc (arm_breakpoint_at)
3047 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3048 * linux-arm-low.cc (arm_sigreturn_next_pc)
3049 (arm_get_hwcap)
3050 (arm_get_syscall_trapinfo)
3051 * linux-cris-low.cc (cris_breakpoint_at)
3052 * linux-crisv32-low.cc (cris_breakpoint_at)
3053 * linux-low.cc (handle_extended_wait)
3054 (linux_wait_1)
3055 (linux_read_memory)
3056 (linux_process_target::breakpoint_kind_from_pc)
3057 (linux_get_auxv)
3058 * linux-m32r-low.cc (m32r_breakpoint_at)
3059 * linux-mips-low.cc (mips_breakpoint_at)
3060 * linux-nios2-low.cc (nios2_breakpoint_at)
3061 * linux-ppc-low.cc (ppc_breakpoint_at)
3062 * linux-s390-low.cc (s390_get_hwcap)
3063 * linux-sh-low.cc (sh_breakpoint_at)
3064 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3065 (sparc_store_gregset_from_stack)
3066 (sparc_breakpoint_at)
3067 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3068 * linux-tile-low.cc (tile_breakpoint_at)
3069 * linux-x86-low.cc (x86_breakpoint_at)
3070 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3071 * mem-break.cc (bp_size)
3072 (bp_opcode)
3073 (insert_memory_breakpoint)
3074 (set_raw_breakpoint_at)
3075 (delete_raw_breakpoint)
3076 (z_type_supported)
3077 (uninsert_raw_breakpoint)
3078 (reinsert_raw_breakpoint)
3079 (validate_inserted_breakpoint)
3080 * regcache.cc (regcache_read_pc)
3081 (regcache_write_pc)
3082 * remote-utils.cc (putpkt_binary_1)
3083 (input_interrupt)
3084 (getpkt)
3085 (prepare_resume_reply)
3086 * server.cc (handle_general_set)
3087 (handle_detach)
3088 (handle_qxfer_auxv)
3089 (handle_qxfer_exec_file)
3090 (handle_qxfer_libraries_svr4)
3091 (handle_qxfer_osdata)
3092 (handle_qxfer_siginfo)
3093 (handle_qxfer_fdpic)
3094 (handle_query)
3095 (resume)
3096 (handle_v_requests)
3097 (queue_stop_reply_callback)
3098 (captured_main)
3099 * target.cc (prepare_to_access_memory)
3100 (done_accessing_memory)
3101 (read_inferior_memory)
3102 (target_write_memory)
3103 (target_stop_and_wait)
3104 (target_wait)
3105 (target_mourn_inferior)
3106 (target_continue_no_signal)
3107 (target_continue)
3108 (target_supports_multi_process)
3109 (kill_inferior)
3110 * target.h
3111 (target_create_inferior)
3112 (target_post_create_inferior)
3113 (myattach)
3114 (target_supports_fork_events)
3115 (target_supports_vfork_events)
3116 (target_supports_exec_events)
3117 (target_handle_new_gdb_connection)
3118 (detach_inferior)
3119 (mythread_alive)
3120 (fetch_inferior_registers)
3121 (store_inferior_registers)
3122 (join_inferior)
3123 (target_supports_non_stop)
3124 (target_async)
3125 (target_process_qsupported)
3126 (target_supports_catch_syscall)
3127 (target_get_ipa_tdesc_idx)
3128 (target_supports_tracepoints)
3129 (target_supports_fast_tracepoints)
3130 (target_get_min_fast_tracepoint_insn_len)
3131 (target_thread_stopped)
3132 (target_pause_all)
3133 (target_unpause_all)
3134 (target_stabilize_threads)
3135 (target_install_fast_tracepoint_jump_pad)
3136 (target_emit_ops)
3137 (target_supports_disable_randomization)
3138 (target_supports_agent)
3139 (target_enable_btrace)
3140 (target_disable_btrace)
3141 (target_read_btrace)
3142 (target_read_btrace_conf)
3143 (target_supports_range_stepping)
3144 (target_supports_stopped_by_sw_breakpoint)
3145 (target_stopped_by_sw_breakpoint)
3146 (target_supports_stopped_by_hw_breakpoint)
3147 (target_supports_hardware_single_step)
3148 (target_stopped_by_hw_breakpoint)
3149 (target_breakpoint_kind_from_pc)
3150 (target_breakpoint_kind_from_current_state)
3151 (target_supports_software_single_step)
3152 (target_core_of_thread)
3153 (target_thread_name)
3154 (target_thread_handle)
3155 * win32-low.cc (do_initial_child_stuff)
3156
3157 Rename target op default definitions listed below.
3158
3159 * target.cc (process_target::post_create_inferior): Rename as ...
3160 (process_stratum_target::post_create_inferior): ... this.
3161 (process_target::prepare_to_access_memory): Rename as ...
3162 (process_stratum_target::prepare_to_access_memory): ... this.
3163 (process_target::done_accessing_memory): Rename as ...
3164 (process_stratum_target::done_accessing_memory): ... this.
3165 (process_target::look_up_symbols): Rename as ...
3166 (process_stratum_target::look_up_symbols): ... this.
3167 (process_target::supports_read_auxv): Rename as ...
3168 (process_stratum_target::supports_read_auxv): ... this.
3169 (process_target::read_auxv): Rename as ...
3170 (process_stratum_target::read_auxv): ... this.
3171 (process_target::supports_z_point_type): Rename as ...
3172 (process_stratum_target::supports_z_point_type): ... this.
3173 (process_target::insert_point): Rename as ...
3174 (process_stratum_target::insert_point): ... this.
3175 (process_target::remove_point): Rename as ...
3176 (process_stratum_target::remove_point): ... this.
3177 (process_target::stopped_by_sw_breakpoint): Rename as ...
3178 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3179 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3180 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3181 (process_target::stopped_by_hw_breakpoint): Rename as ...
3182 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3183 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3184 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3185 (process_target::supports_hardware_single_step): Rename as ...
3186 (process_stratum_target::supports_hardware_single_step): ... this.
3187 (process_target::stopped_by_watchpoint): Rename as ...
3188 (process_stratum_target::stopped_by_watchpoint): ... this.
3189 (process_target::stopped_data_address): Rename as ...
3190 (process_stratum_target::stopped_data_address): ... this.
3191 (process_target::supports_read_offsets): Rename as ...
3192 (process_stratum_target::supports_read_offsets): ... this.
3193 (process_target::read_offsets): Rename as ...
3194 (process_stratum_target::read_offsets): ... this.
3195 (process_target::supports_get_tls_address): Rename as ...
3196 (process_stratum_target::supports_get_tls_address): ... this.
3197 (process_target::get_tls_address): Rename as ...
3198 (process_stratum_target::get_tls_address): ... this.
3199 (process_target::hostio_last_error): Rename as ...
3200 (process_stratum_target::hostio_last_error): ... this.
3201 (process_target::supports_qxfer_osdata): Rename as ...
3202 (process_stratum_target::supports_qxfer_osdata): ... this.
3203 (process_target::qxfer_osdata): Rename as ...
3204 (process_stratum_target::qxfer_osdata): ... this.
3205 (process_target::supports_qxfer_siginfo): Rename as ...
3206 (process_stratum_target::supports_qxfer_siginfo): ... this.
3207 (process_target::qxfer_siginfo): Rename as ...
3208 (process_stratum_target::qxfer_siginfo): ... this.
3209 (process_target::supports_non_stop): Rename as ...
3210 (process_stratum_target::supports_non_stop): ... this.
3211 (process_target::async): Rename as ...
3212 (process_stratum_target::async): ... this.
3213 (process_target::start_non_stop): Rename as ...
3214 (process_stratum_target::start_non_stop): ... this.
3215 (process_target::supports_multi_process): Rename as ...
3216 (process_stratum_target::supports_multi_process): ... this.
3217 (process_target::supports_fork_events): Rename as ...
3218 (process_stratum_target::supports_fork_events): ... this.
3219 (process_target::supports_vfork_events): Rename as ...
3220 (process_stratum_target::supports_vfork_events): ... this.
3221 (process_target::supports_exec_events): Rename as ...
3222 (process_stratum_target::supports_exec_events): ... this.
3223 (process_target::handle_new_gdb_connection): Rename as ...
3224 (process_stratum_target::handle_new_gdb_connection): ... this.
3225 (process_target::handle_monitor_command): Rename as ...
3226 (process_stratum_target::handle_monitor_command): ... this.
3227 (process_target::core_of_thread): Rename as ...
3228 (process_stratum_target::core_of_thread): ... this.
3229 (process_target::supports_read_loadmap): Rename as ...
3230 (process_stratum_target::supports_read_loadmap): ... this.
3231 (process_target::read_loadmap): Rename as ...
3232 (process_stratum_target::read_loadmap): ... this.
3233 (process_target::process_qsupported): Rename as ...
3234 (process_stratum_target::process_qsupported): ... this.
3235 (process_target::supports_tracepoints): Rename as ...
3236 (process_stratum_target::supports_tracepoints): ... this.
3237 (process_target::read_pc): Rename as ...
3238 (process_stratum_target::read_pc): ... this.
3239 (process_target::write_pc): Rename as ...
3240 (process_stratum_target::write_pc): ... this.
3241 (process_target::supports_thread_stopped): Rename as ...
3242 (process_stratum_target::supports_thread_stopped): ... this.
3243 (process_target::thread_stopped): Rename as ...
3244 (process_stratum_target::thread_stopped): ... this.
3245 (process_target::supports_get_tib_address): Rename as ...
3246 (process_stratum_target::supports_get_tib_address): ... this.
3247 (process_target::get_tib_address): Rename as ...
3248 (process_stratum_target::get_tib_address): ... this.
3249 (process_target::pause_all): Rename as ...
3250 (process_stratum_target::pause_all): ... this.
3251 (process_target::unpause_all): Rename as ...
3252 (process_stratum_target::unpause_all): ... this.
3253 (process_target::stabilize_threads): Rename as ...
3254 (process_stratum_target::stabilize_threads): ... this.
3255 (process_target::supports_fast_tracepoints): Rename as ...
3256 (process_stratum_target::supports_fast_tracepoints): ... this.
3257 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3258 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3259 (process_target::emit_ops): Rename as ...
3260 (process_stratum_target::emit_ops): ... this.
3261 (process_target::supports_disable_randomization): Rename as ...
3262 (process_stratum_target::supports_disable_randomization): ... this.
3263 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3264 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3265 (process_target::qxfer_libraries_svr4): Rename as ...
3266 (process_stratum_target::qxfer_libraries_svr4): ... this.
3267 (process_target::supports_agent): Rename as ...
3268 (process_stratum_target::supports_agent): ... this.
3269 (process_target::enable_btrace): Rename as ...
3270 (process_stratum_target::enable_btrace): ... this.
3271 (process_target::disable_btrace): Rename as ...
3272 (process_stratum_target::disable_btrace): ... this.
3273 (process_target::read_btrace): Rename as ...
3274 (process_stratum_target::read_btrace): ... this.
3275 (process_target::read_btrace_conf): Rename as ...
3276 (process_stratum_target::read_btrace_conf): ... this.
3277 (process_target::supports_range_stepping): Rename as ...
3278 (process_stratum_target::supports_range_stepping): ... this.
3279 (process_target::supports_pid_to_exec_file): Rename as ...
3280 (process_stratum_target::supports_pid_to_exec_file): ... this.
3281 (process_target::pid_to_exec_file): Rename as ...
3282 (process_stratum_target::pid_to_exec_file): ... this.
3283 (process_target::supports_multifs): Rename as ...
3284 (process_stratum_target::supports_multifs): ... this.
3285 (process_target::multifs_open): Rename as ...
3286 (process_stratum_target::multifs_open): ... this.
3287 (process_target::multifs_unlink): Rename as ...
3288 (process_stratum_target::multifs_unlink): ... this.
3289 (process_target::multifs_readlink): Rename as ...
3290 (process_stratum_target::multifs_readlink): ... this.
3291 (process_target::breakpoint_kind_from_pc): Rename as ...
3292 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3293 (process_target::breakpoint_kind_from_current_state): Rename as ...
3294 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3295 (process_target::thread_name): Rename as ...
3296 (process_stratum_target::thread_name): ... this.
3297 (process_target::thread_handle): Rename as ...
3298 (process_stratum_target::thread_handle): ... this.
3299 (process_target::supports_software_single_step): Rename as ...
3300 (process_stratum_target::supports_software_single_step): ... this.
3301 (process_target::supports_catch_syscall): Rename as ...
3302 (process_stratum_target::supports_catch_syscall): ... this.
3303 (process_target::get_ipa_tdesc_idx): Rename as ...
3304 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3305
478f9adf
PA
33062020-02-20 Pedro Alves <palves@redhat.com>
3307
3308 * target.cc (set_target_ops): Simply copy the given target pointer
3309 instead of creating a copy of the pointed object.
3310
d633e831
TBA
33112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3312
3313 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3314 of process_target.
3315
3316 * target.h (struct process_stratum_target): Remove the target op.
3317 (class process_target): Add the target op.
3318 (target_get_ipa_tdesc_idx): Update the macro.
3319 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3320
3321 Update the derived classes and callers below.
3322
3323 * linux-low.cc (linux_target_ops): Update.
3324 (linux_get_ipa_tdesc_idx): Turn into ...
3325 (linux_process_target::get_ipa_tdesc_idx): ... this.
3326 * linux-low.h (class linux_process_target): Update.
3327 * lynx-low.cc (lynx_target_ops): Update.
3328 * nto-low.cc (nto_target_ops): Update.
3329 * win32-low.cc (win32_target_ops): Update.
3330
bc8d3ae4
TBA
33312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3332
3333 Turn process_stratum_target's supports_catch_syscall op into a
3334 method of process_target.
3335
3336 * target.h (struct process_stratum_target): Remove the target op.
3337 (class process_target): Add the target op.
3338 (target_supports_catch_syscall): Update the macro.
3339 * target.cc (process_target::supports_catch_syscall): Define.
3340
3341 Update the derived classes and callers below.
3342
3343 * linux-low.cc (linux_target_ops): Update.
3344 (linux_supports_catch_syscall): Turn into ...
3345 (linux_process_target::supports_catch_syscall): ... this.
3346 * linux-low.h (class linux_process_target): Update.
3347 * lynx-low.cc (lynx_target_ops): Update.
3348 * nto-low.cc (nto_target_ops): Update.
3349 * win32-low.cc (win32_target_ops): Update.
3350
5303a34f
TBA
33512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3352
3353 Turn process_stratum_target's supports_software_single_step op
3354 into a method of process_target.
3355
3356 * target.h (struct process_stratum_target): Remove the target op.
3357 (class process_target): Add the target op.
3358 (target_supports_software_single_step): Update the macro.
3359 * target.cc (process_target::supports_software_single_step): Define.
3360
3361 Update the derived classes and callers below.
3362
3363 * linux-low.cc (linux_target_ops): Update.
3364 (linux_supports_software_single_step): Turn into ...
3365 (linux_process_target::supports_software_single_step): ... this.
3366 * linux-low.h (class linux_process_target): Update.
3367 * lynx-low.cc (lynx_target_ops): Update.
3368 * nto-low.cc (nto_target_ops): Update.
3369 * win32-low.cc (win32_target_ops): Update.
3370
7f63b89b
TBA
33712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3372
3373 Turn process_stratum_target's thread_name and thread_handle ops
3374 into methods of process_target.
3375
3376 * target.h (struct process_stratum_target): Remove the target ops.
3377 (class process_target): Add the target ops.
3378 (target_thread_name): Update the macro.
3379 (target_thread_handle): Update the macro.
3380 * target.cc (process_target::thread_name): Define.
3381 (process_target::thread_handle): Define.
3382
3383 Update the derived classes and callers below.
3384
3385 * linux-low.cc (linux_target_ops): Update.
3386 (linux_process_target::thread_name): Define.
3387 (linux_process_target::thread_handle): Define.
3388 * linux-low.h (class linux_process_target): Update.
3389 * lynx-low.cc (lynx_target_ops): Update.
3390 * nto-low.cc (nto_target_ops): Update.
3391 * win32-low.cc (win32_target_ops): Update.
3392
d367006f
TBA
33932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3394
3395 Turn process_stratum_target's breakpoint_kind_from_pc,
3396 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3397 ops into methods of process_target.
3398
3399 * target.h (struct process_stratum_target): Remove the target op.
3400 (class process_target): Add the target op.
3401 (target_breakpoint_kind_from_pc): Update the macro.
3402 (target_breakpoint_kind_from_current_state): Update the macro.
3403 (default_breakpoint_kind_from_pc): Remove declaration.
3404 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3405 (process_target::breakpoint_kind_from_pc): ... this.
3406 (process_target::breakpoint_kind_from_current_state): Define.
3407
3408 Update the derived classes and callers below.
3409
3410 * mem-break.cc (bp_size): Update.
3411 (bp_opcode): Update.
3412 * linux-low.cc (linux_target_ops): Update.
3413 (linux_wait_1): Update.
3414 (linux_breakpoint_kind_from_pc): Turn into ...
3415 (linux_process_target::breakpoint_kind_from_pc): ... this.
3416 (linux_sw_breakpoint_from_kind): Turn into ...
3417 (linux_process_target::sw_breakpoint_from_kind): ... this.
3418 (linux_breakpoint_kind_from_current_state): Turn into ...
3419 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3420 * linux-low.h (class linux_process_target): Update.
3421 * lynx-low.cc (lynx_target_ops): Update.
3422 (lynx_process_target::sw_breakpoint_from_kind): Define.
3423 * lynx-low.h (class lynx_process_target): Update.
3424 * nto-low.cc (nto_target_ops): Update.
3425 (nto_sw_breakpoint_from_kind): Turn into ...
3426 (nto_process_target::sw_breakpoint_from_kind): ... this.
3427 * nto-low.h (class nto_process_target): Update.
3428 * win32-low.cc (win32_target_ops): Update.
3429 (win32_sw_breakpoint_from_kind): Turn into ...
3430 (win32_process_target::sw_breakpoint_from_kind): ... this.
3431 * win32-low.h (class win32_process_target): Update.
3432
c9b7b804
TBA
34332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3434
3435 Turn process_stratum_target's multifs_open, multifs_readlink,
3436 multifs_unlink ops into methods of process_target.
3437
3438 * target.h (struct process_stratum_target): Remove the target ops.
3439 (class process_target): Add the target ops. Also add
3440 'supports_multifs'.
3441 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3442 "sys/stat.h".
3443 (process_target::supports_multifs): Define.
3444 (process_target::multifs_open): Define.
3445 (process_target::multifs_readlink): Define.
3446 (process_target::multifs_unlink): Define.
3447
3448 Update the derived classes and callers below.
3449
3450 * hostio.cc (handle_setfs): Update.
3451 (handle_open): Update.
3452 (handle_unlink): Update.
3453 (handle_readlink): Update.
3454 * linux-low.cc (linux_target_ops): Update.
3455 (linux_process_target::supports_multifs): Define.
3456 (linux_process_target::multifs_open): Define.
3457 (linux_process_target::multifs_readlink): Define.
3458 (linux_process_target::multifs_unlink): Define.
3459 * linux-low.h (class linux_process_target): Update.
3460 * lynx-low.cc (lynx_target_ops): Update.
3461 * nto-low.cc (nto_target_ops): Update.
3462 * win32-low.cc (win32_target_ops): Update.
3463
8247b823
TBA
34642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3465
3466 Turn process_stratum_target's pid_to_exec_file op into a method
3467 of process_target.
3468
3469 * target.h (struct process_stratum_target): Remove the target op.
3470 (class process_target): Add the target op. Also add
3471 'supports_pid_to_exec_file'.
3472 * target.cc (process_target::pid_to_exec_file): Define.
3473 (process_target::supports_pid_to_exec_file): Define.
3474
3475 Update the derived classes and callers below.
3476
3477 * server.cc (handle_qxfer_exec_file): Update.
3478 (handle_query): Update.
3479 * linux-low.cc (linux_target_ops): Update.
3480 (linux_process_target::supports_pid_to_exec_file): Define.
3481 (linux_process_target::pid_to_exec_file): Define.
3482 * linux-low.h (class linux_process_target): Update.
3483 * lynx-low.cc (lynx_target_ops): Update.
3484 * nto-low.cc (nto_target_ops): Update.
3485 * win32-low.cc (win32_target_ops): Update.
3486
2526e0cd
TBA
34872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3488
3489 Turn process_stratum_target's supports_range_stepping op into a
3490 method of process_target.
3491
3492 * target.h (struct process_stratum_target): Remove the target op.
3493 (class process_target): Add the target op.
3494 (target_supports_range_stepping): Update the macro.
3495 * target.cc (process_target::supports_range_stepping): Define.
3496
3497 Update the derived classes and callers below.
3498
3499 * linux-low.cc (linux_target_ops): Update.
3500 (linux_supports_range_stepping): Turn into ...
3501 (linux_process_target::supports_range_stepping): ... this.
3502 * linux-low.h (class linux_process_target): Update.
3503 * lynx-low.cc (lynx_target_ops): Update.
3504 * nto-low.cc (nto_target_ops): Update.
3505 * win32-low.cc (win32_target_ops): Update.
3506
79597bdd
TBA
35072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3508
3509 Turn process_stratum_target's btrace-related ops (enable_btrace,
3510 disable_btrace, read_btrace, read_btrace_conf) into methods of
3511 process_target.
3512
3513 * target.h (struct process_stratum_target): Remove the target ops.
3514 (class process_target): Add the target ops.
3515 (target_enable_btrace): Update.
3516 (target_disable_btrace): Update.
3517 (target_read_btrace): Update.
3518 (target_read_btrace_conf): Update.
3519 * target.cc (process_target::enable_btrace): Define.
3520 (process_target::disable_btrace): Define.
3521 (process_target::read_btrace): Define.
3522 (process_target::read_btrace_conf): Define.
3523
3524 Update the derived classes and callers below.
3525
3526 * linux-low.cc (linux_target_ops): Update.
3527 (linux_process_target:enable_btrace): Define as a wrapper around
3528 linux_enable_btrace.
3529 (linux_low_disable_btrace): Turn into ...
3530 (linux_process_target::disable_btrace): ... this.
3531 (linux_low_read_btrace): Turn into ...
3532 (linux_process_target::read_btrace): ... this.
3533 (linux_low_btrace_conf): Turn into ...
3534 (linux_process_target::read_btrace_conf): ... this.
3535 * linux-low.h (class linux_process_target): Update.
3536 * lynx-low.cc (lynx_target_ops): Update.
3537 * nto-low.cc (nto_target_ops): Update.
3538 * win32-low.cc (win32_target_ops): Update.
3539
c0245cb9
TBA
35402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3541
3542 Turn process_stratum_target's supports_agent op into a method of
3543 process_target.
3544
3545 * target.h (struct process_stratum_target): Remove the target op.
3546 (class process_target): Add the target op.
3547 (target_supports_agent): Update the macro.
3548 * target.cc (process_target::supports_agent): Define.
3549
3550 Update the derived classes and callers below.
3551
3552 * linux-low.cc (linux_target_ops): Update.
3553 (linux_supports_agent): Turn into ...
3554 (linux_process_target::supports_agent): ... this.
3555 * linux-low.h (class linux_process_target): Update.
3556 * lynx-low.cc (lynx_target_ops): Update.
3557 * nto-low.cc (nto_target_ops): Update.
3558 * win32-low.cc (win32_target_ops): Update.
3559
974387bb
TBA
35602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3561
3562 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3563 method of process_target.
3564
3565 * target.h (struct process_stratum_target): Remove the target op.
3566 (class process_target): Add the target op. Also add
3567 'supports_qxfer_libraries_svr4'.
3568 * target.cc (process_target::qxfer_libraries_svr4): Define.
3569 (process_target::supports_qxfer_libraries_svr4): Define.
3570
3571 Update the derived classes and callers below.
3572
3573 * server.cc (handle_qxfer_libraries_svr4): Update.
3574 (handle_query): Update.
3575 * linux-low.cc (linux_target_ops): Update.
3576 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3577 (linux_qxfer_libraries_svr4): Turn into ...
3578 (linux_process_target::qxfer_libraries_svr4): ... this.
3579 * linux-low.h (class linux_process_target): Update.
3580 * lynx-low.cc (lynx_target_ops): Update.
3581 * nto-low.cc (nto_target_ops): Update.
3582 * win32-low.cc (win32_target_ops): Update.
3583
c756403b
TBA
35842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3585
3586 Turn process_stratum_target's supports_disable_randomization op
3587 into a method of process_target.
3588
3589 * target.h (struct process_stratum_target): Remove the target op.
3590 (class process_target): Add the target op.
3591 (target_supports_disable_randomization): Update the macro.
3592 * target.cc (process_target::supports_disable_randomization): Define.
3593
3594 Update the derived classes and callers below.
3595
3596 * linux-low.cc (linux_target_ops): Update.
3597 (linux_supports_disable_randomization): Turn into ...
3598 (linux_process_target::supports_disable_randomization): ... this.
3599 * linux-low.h (class linux_process_target): Update.
3600 * lynx-low.cc (lynx_target_ops): Update.
3601 * nto-low.cc (nto_target_ops): Update.
3602 * win32-low.cc (win32_target_ops): Update.
3603
345dafad
TBA
36042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3605
3606 Turn process_stratum_target's emit_ops op into a method of
3607 process_target.
3608
3609 * target.h (struct process_stratum_target): Remove the target op.
3610 (class process_target): Add the target op.
3611 (target_emit_ops): Update the macro.
3612 * target.cc (process_target::emit_ops): Define.
3613
3614 Update the derived classes and callers below.
3615
3616 * linux-low.cc (linux_target_ops): Update.
3617 (linux_emit_ops): Turn into ...
3618 (linux_process_target::emit_ops): ... this.
3619 * linux-low.h (class linux_process_target): Update.
3620 * lynx-low.cc (lynx_target_ops): Update.
3621 * nto-low.cc (nto_target_ops): Update.
3622 * win32-low.cc (win32_target_ops): Update.
3623
c23c9391
TBA
36242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3625
3626 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3627 and get_min_fast_tracepoint_insn_len ops into methods of
3628 process_target.
3629
3630 * target.h (struct process_stratum_target): Remove the target ops.
3631 (class process_target): Add the target ops. Also add
3632 'supports_fast_tracepoints'.
3633 (target_supports_fast_tracepoints): Update the macro.
3634 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3635 (install_fast_tracepoint_jump_pad): Update and rename the macro
3636 to ...
3637 (target_install_fast_tracepoint_jump_pad): ... this.
3638 * target.cc (process_target::supports_fast_tracepoints): Define.
3639 (process_target::install_fast_tracepoint_jump_pad): Define.
3640 (process_target::get_min_fast_tracepoint_insn_len): Define.
3641
3642 Update the derived classes and callers below.
3643
3644 * tracepoint.cc (install_fast_tracepoint): Update.
3645 * linux-low.cc (linux_target_ops): Update.
3646 (linux_process_target::supports_fast_tracepoints): Define.
3647 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3648 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3649 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3650 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3651 * linux-low.h (class linux_process_target): Update.
3652 * lynx-low.cc (lynx_target_ops): Update.
3653 * nto-low.cc (nto_target_ops): Update.
3654 * win32-low.cc (win32_target_ops): Update.
3655
5c9eb2f2
TBA
36562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3657
3658 Turn process_stratum_target's stabilize_threads op into a
3659 method of process_target.
3660
3661 * target.h (struct process_stratum_target): Remove the target op.
3662 (class process_target): Add the target op.
3663 (target_stabilize_threads): Update the macro.
3664 * target.cc (process_target::stabilize_threads): Define.
3665
3666 Update the derived classes and callers below.
3667
3668 * server.cc (handle_status): Update.
3669 * tracepoint.cc (cmd_qtdp): Update.
3670 (cmd_qtstart): Update.
3671 * linux-low.cc (linux_target_ops): Update.
3672 (linux_stabilize_threads): Turn into ...
3673 (linux_process_target::stabilize_threads): ... this.
3674 (linux_wait_1): Update.
3675 * linux-low.h (class linux_process_target): Update.
3676 * lynx-low.cc (lynx_target_ops): Update.
3677 * nto-low.cc (nto_target_ops): Update.
3678 * win32-low.cc (win32_target_ops): Update.
3679
29e8dc09
TBA
36802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3681
3682 Turn process_stratum_target's pause_all and unpause_all ops
3683 into methods of process_target.
3684
3685 * target.h (struct process_stratum_target): Remove the target ops.
3686 (class process_target): Add the target ops.
3687 (pause_all): Update the macro and rename to...
3688 (target_pause_all): ... this.
3689 (unpause_all): Update the macro and rename to...
3690 (target_unpause_all): ... this.
3691 * target.cc (process_target::pause_all): Define.
3692 (process_target::unpause_all): Define.
3693
3694 Update the derived classes and callers below.
3695
3696 * server.cc (handle_status): Update.
3697 * tracepoint.cc (clear_installed_tracepoints): Update.
3698 (cmd_qtdp): Update.
3699 (cmd_qtstart): Update.
3700 (stop_tracing): Update.
3701 (cmd_qtstatus): Update.
3702 (upload_fast_traceframes): Update.
3703 (run_inferior_command): Update.
3704 * linux-low.cc (linux_target_ops): Update.
3705 (linux_pause_all): Turn into ...
3706 (linux_process_target::pause_all): ... this.
3707 (linux_unpause_all): Turn into ...
3708 (linux_process_target::unpause_all): ... this.
3709 (linux_process_target::prepare_to_access_memory): Update.
3710 (linux_process_target::done_accessing_memory): Update.
3711 * linux-low.h (class linux_process_target): 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
4e2e869c
TBA
37162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3717
3718 Turn process_stratum_target's get_tib_address op into a method of
3719 process_target.
3720
3721 * target.h (struct process_stratum_target): Remove the target op.
3722 (class process_target): Add the target op. Also add
3723 'supports_get_tib_address'.
3724 * target.cc (process_target::get_tib_address): Define.
3725 (process_target::supports_get_tib_address): Define.
3726
3727 Update the derived classes and callers below.
3728
3729 * server.cc (handle_query): Update.
3730 * linux-low.cc (win32_target_ops): Update.
3731 * lynx-low.cc (lynx_target_ops): Update.
3732 * nto-low.cc (nto_target_ops): Update.
3733 * win32-low.cc (win32_target_ops): Update.
3734 (win32_process_target::supports_get_tib_address): Define.
3735 (win32_get_tib_address): Turn into ...
3736 (win32_process_target::get_tib_address): ... this.
3737 * win32-low.h (class win32_process_target): Update.
3738
68119632
TBA
37392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3740
3741 Turn process_stratum_target's thread_stopped op into a method of
3742 process_target.
3743
3744 * target.h (struct process_stratum_target): Remove the target op.
3745 (class process_target): Add the target op. Also add
3746 'supports_thread_stopped'.
3747 (target_thread_stopped): Update the macro.
3748 * target.cc (process_target::thread_stopped): Define.
3749 (process_target::supports_thread_stopped): Define.
3750 (prepare_to_access_memory): Update.
3751
3752 Update the derived classes and callers below.
3753
3754 * server.cc (queue_stop_reply_callback): Update.
3755 * linux-low.cc (linux_target_ops): Update.
3756 (linux_process_target::supports_thread_stopped): Define.
3757 (linux_thread_stopped): Turn into ...
3758 (linux_process_target::thread_stopped): ... this.
3759 * linux-low.h (class linux_process_target): Update.
3760 * lynx-low.cc (lynx_target_ops): Update.
3761 * nto-low.cc (nto_target_ops): Update.
3762 * win32-low.cc (win32_target_ops): Update.
3763
770d8f6a
TBA
37642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3765
3766 Turn process_stratum_target's read_pc and write_pc ops into
3767 methods of process_target.
3768
3769 * target.h (struct process_stratum_target): Remove the target ops.
3770 (class process_target): Add the target ops.
3771 * target.cc (process_target::read_pc): Define.
3772 (process_target::write_pc): Define.
3773
3774 Update the derived classes and callers below.
3775
3776 * regcache.cc (regcache_read_pc): Update.
3777 (regcache_write_pc): Update.
3778 * linux-low.cc (linux_target_ops): Update.
3779 (linux_read_pc): Turn into ...
3780 (linux_process_target::read_pc): ... this.
3781 (linux_write_pc): Turn into ...
3782 (linux_process_target::write_pc): ... this.
3783 * linux-low.h (class linux_process_target): Update.
3784 * lynx-low.cc (lynx_target_ops): Update.
3785 * nto-low.cc (nto_target_ops): Update.
3786 * win32-low.cc (win32_target_ops): Update.
3787
290732bf
TBA
37882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3789
3790 Turn process_stratum_target's supports_tracepoints op into a
3791 method of process_target.
3792
3793 * target.h (struct process_stratum_target): Remove the target op.
3794 (class process_target): Add the target op.
3795 (target_supports_tracepoints): Update the macro.
3796 * target.cc (process_target::supports_tracepoints): Define.
3797
3798 Update the derived classes and callers below.
3799
3800 * linux-low.cc (linux_target_ops): Update.
3801 (linux_supports_tracepoints): Turn into ...
3802 (linux_process_target::supports_tracepoints): ... this.
3803 * linux-low.h (class linux_process_target): Update.
3804 * lynx-low.cc (lynx_target_ops): Update.
3805 * nto-low.cc (nto_target_ops): Update.
3806 * win32-low.cc (win32_target_ops): Update.
3807
0df28b1b
TBA
38082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3809
3810 Turn process_stratum_target's process_qsupported op into a method
3811 of process_target.
3812
3813 * target.h (struct process_stratum_target): Remove the target op.
3814 (class process_target): Add the target op.
3815 (target_process_qsupported): Update the macro.
3816 * target.cc (process_target::process_qsupported): Define.
3817
3818 Update the derived classes and callers below.
3819
3820 * linux-low.cc (linux_target_ops): Update.
3821 (linux_process_qsupported): Turn into ...
3822 (linux_process_target::process_qsupported): ... this.
3823 * linux-low.h (class linux_process_target): Update.
3824 * lynx-low.cc (lynx_target_ops): Update.
3825 * nto-low.cc (nto_target_ops): Update.
3826 * win32-low.cc (win32_target_ops): Update.
3827
9da41fda
TBA
38282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3829
3830 Turn process_stratum_target's read_loadmap op into a method of
3831 process_target.
3832
3833 * target.h (struct process_stratum_target): Remove the target op.
3834 (class process_target): Add the target op. Also add
3835 'supports_read_loadmap'.
3836 * target.cc (process_target::read_loadmap): Define.
3837 (process_target::supports_read_loadmap): Define.
3838
3839 Update the derived classes and callers below.
3840
3841 * server.cc (handle_qxfer_fdpic): Update.
3842 (handle_query): Update.
3843 * linux-low.cc (linux_target_ops): Update.
3844 (linux_process_target::supports_read_loadmap): Define.
3845 (linux_read_loadmap): Turn into ...
3846 (linux_process_target::read_loadmap): ... this.
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
95a45fc1
TBA
38522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3853
3854 Turn process_stratum_target's core_of_thread op into a method of
3855 process_target.
3856
3857 * target.h (struct process_stratum_target): Remove the target op.
3858 (class process_target): Add the target op.
3859 (target_core_of_thread): Update the macro.
3860 * target.cc (process_target::core_of_thread): Define.
3861
3862 Update the derived classes and callers below.
3863
3864 * linux-low.cc (linux_target_ops): Update.
3865 (linux_process_target::core_of_thread): Define.
3866 * linux-low.h (class linux_process_target): Update.
3867 * lynx-low.cc (lynx_target_ops): Update.
3868 * nto-low.cc (nto_target_ops): Update.
3869 * win32-low.cc (win32_target_ops): Update.
3870
55cf3021
TBA
38712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3872
3873 Turn process_stratum_target's handle_monitor_command op into a
3874 method of process_target.
3875
3876 * target.h (struct process_stratum_target): Remove the target op.
3877 (class process_target): Add the target op.
3878 (target_handle_monitor_command): Update the macro.
3879 * target.cc (process_target::handle_monitor_command): Define.
3880
3881 Update the derived classes and callers below.
3882
3883 * server.cc (handle_query): Update.
3884 * linux-low.cc (linux_target_ops): Update.
3885 (linux_process_target::handle_monitor_command): Define.
3886 * linux-low.h (class linux_process_target): Update.
3887 * lynx-low.cc (lynx_target_ops): Update.
3888 * nto-low.cc (nto_target_ops): Update.
3889 * win32-low.cc (win32_target_ops): Update.
3890
fb00dfce
TBA
38912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3892
3893 Turn process_stratum_target's handle_new_gdb_connection op into a
3894 method of process_target.
3895
3896 * target.h (struct process_stratum_target): Remove the target op.
3897 (class process_target): Add the target op.
3898 (target_handle_new_gdb_connection): Update the macro.
3899 * target.cc (process_target::handle_new_gdb_connection): Define.
3900
3901 Update the derived classes and callers below.
3902
3903 * linux-low.cc (linux_target_ops): Update.
3904 (linux_handle_new_gdb_connection): Turn into ...
3905 (linux_process_target::handle_new_gdb_connection): ... this.
3906 * linux-low.h (class linux_process_target): Update.
3907 * lynx-low.cc (lynx_target_ops): Update.
3908 * nto-low.cc (nto_target_ops): Update.
3909 * win32-low.cc (win32_target_ops): Update.
3910
9690a72a
TBA
39112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3912
3913 Turn process_stratum_target's supports_fork_events,
3914 supports_vfork_events, and supports_exec_events ops into methods
3915 of process_target.
3916
3917 * target.h (struct process_stratum_target): Remove the target ops.
3918 (class process_target): Add the target ops.
3919 (target_supports_fork_events): Update the macro.
3920 (target_supports_vfork_events): Update the macro.
3921 (target_supports_exec_events): Update the macro.
3922 * target.cc (process_target::supports_fork_events): Define.
3923 (process_target::supports_vfork_events): Define.
3924 (process_target::supports_exec_events): Define.
3925
3926 Update the derived classes and callers below.
3927
3928 * linux-low.cc (linux_target_ops): Update.
3929 (linux_supports_fork_events): Turn into ...
3930 (linux_process_target::supports_fork_events): ... this.
3931 (linux_supports_vfork_events): Turn into ...
3932 (linux_process_target::supports_vfork_events): ... this.
3933 (linux_supports_exec_events): Turn into ...
3934 (linux_process_target::supports_exec_events): ... this.
3935 * linux-low.h (class linux_process_target): Update.
3936 * lynx-low.cc (lynx_target_ops): Update.
3937 * nto-low.cc (nto_target_ops): Update.
3938 * win32-low.cc (win32_target_ops): Update.
3939
652aef77
TBA
39402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3941
3942 Turn process_stratum_target's supports_multi_process op into a
3943 method of process_target.
3944
3945 * target.h (struct process_stratum_target): Remove the target op.
3946 (class process_target): Add the target op.
3947 * target.cc (process_target::supports_multi_process): Define.
3948 (target_supports_multi_process): Update.
3949
3950 Update the derived classes and callers below.
3951
3952 * linux-low.cc (linux_target_ops): Update.
3953 (linux_supports_multi_process): Turn into ...
3954 (linux_process_target::supports_multi_process): ... this.
3955 * linux-low.h (class linux_process_target): Update.
3956 * lynx-low.cc (lynx_target_ops): Update.
3957 * nto-low.cc (nto_target_ops): Update.
3958 * win32-low.cc (win32_target_ops): Update.
3959
0dc587d4
TBA
39602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3961
3962 Turn process_stratum_target's supports_non_stop, async, and
3963 start_non_stop ops into methods of process_target.
3964
3965 * target.h (struct process_stratum_target): Remove the target ops.
3966 (class process_target): Add the target ops.
3967 (target_supports_non_stop): Update the macro.
3968 (target_async): Update the macro.
3969 (start_non_stop): Remove declaration.
3970 * target.cc (process_target::supports_non_stop): Define.
3971 (process_target::async): Define.
3972 (process_target::start_non_stop): Define.
3973 (start_non_stop): Remove.
3974
3975 Update the derived classes and callers below.
3976
3977 * server.cc (handle_qxfer_siginfo): Update.
3978 (handle_query): Update.
3979 * linux-low.cc (linux_target_ops): Update.
3980 (linux_supports_non_stop): Turn into ...
3981 (linux_process_target::supports_non_stop): ... this.
3982 (linux_async): Turn into ...
3983 (linux_process_target::async): ... this.
3984 (linux_start_non_stop): Turn into ...
3985 (linux_process_target::start_non_stop): ... this.
3986 * linux-low.h (class linux_process_target): Update.
3987 * lynx-low.cc (lynx_target_ops): Update.
3988 * nto-low.cc (nto_target_ops): Update.
3989 (nto_supports_non_stop): Remove; rely on the default behavior
3990 instead.
3991 * win32-low.cc (win32_target_ops): Update.
3992
d7abedf7
TBA
39932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3994
3995 Turn process_stratum_target's qxfer_siginfo op into a method of
3996 process_target.
3997
3998 * target.h (struct process_stratum_target): Remove the target op.
3999 (class process_target): Add the target op. Also add
4000 'supports_qxfer_siginfo'.
4001 * target.cc (process_target::qxfer_siginfo): Define.
4002 (process_target::supports_qxfer_siginfo): Define.
4003
4004 Update the derived classes and callers below.
4005
4006 * server.cc (handle_qxfer_siginfo): Update.
4007 (handle_query): Update.
4008 * linux-low.cc (linux_target_ops): Update.
4009 (linux_process_target::supports_qxfer_siginfo): Define.
4010 (linux_xfer_siginfo): Turn into ...
4011 (linux_process_target::qxfer_siginfo): ... this.
4012 * linux-low.h (class linux_process_target): Update.
4013 * lynx-low.cc (lynx_target_ops): Update.
4014 * nto-low.cc (nto_target_ops): Update.
4015 * win32-low.cc (win32_target_ops): Update.
4016
2d0795ee
TBA
40172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4018
4019 Turn process_stratum_target's qxfer_osdata op into a method of
4020 process_target.
4021
4022 * target.h (struct process_stratum_target): Remove the target op.
4023 (class process_target): Add the target op. Also add
4024 'supports_qxfer_osdata'.
4025 * target.cc (process_target::qxfer_osdata): Define.
4026 (process_target::supports_qxfer_osdata): Define.
4027
4028 Update the derived classes and callers below.
4029
4030 * server.cc (handle_qxfer_osdata): Update.
4031 (handle_query): Update.
4032 * linux-low.cc (linux_target_ops): Update.
4033 (linux_process_target::supports_qxfer_osdata): Define.
4034 (linux_qxfer_osdata): Turn into ...
4035 (linux_process_target::qxfer_osdata): ... this.
4036 * linux-low.h (class linux_process_target): Update.
4037 * lynx-low.cc (lynx_target_ops): Update.
4038 * nto-low.cc (nto_target_ops): Update.
4039 * win32-low.cc (win32_target_ops): Update.
4040
ea06bbaa
TBA
40412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4042
4043 Turn process_stratum_target's hostio_last_error op into a
4044 method of process_target.
4045
4046 * target.h (struct process_stratum_target): Remove the target op.
4047 (class process_target): Add the target op.
4048 * target.cc: Add "hostio.h" to includes.
4049 (process_target::hostio_last_error): Define.
4050
4051 Update the derived classes and callers below.
4052
4053 * hostio.cc (hostio_error): Update.
4054 * linux-low.cc: Remove "hostio.h" from includes.
4055 (linux_target_ops): Update.
4056 * lynx-low.cc (lynx_target_ops): Update.
4057 * nto-low.cc (nto_target_ops): Update.
4058 * win32-low.h (class win32_process_target): Update.
4059 * win32-low.cc (win32_target_ops): Update.
4060 (wince_hostio_last_error): Turn into ...
4061 (win32_process_target::hostio_last_error): ... this.
4062
6e3fd7e9
TBA
40632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4064
4065 Turn process_stratum_target's get_tls_address op into a method of
4066 process_target.
4067
4068 * target.h (struct process_stratum_target): Remove the target op.
4069 (class process_target): Add the target op. Also add
4070 'supports_get_tls_address'.
4071 * target.cc (process_target::get_tls_address): Define.
4072 (process_target::supports_get_tls_address): Define.
4073
4074 Update the derived classes and callers below.
4075
4076 * server.cc (handle_query): Update.
4077 * linux-low.cc (linux_target_ops): Update.
4078 (linux_process_target::supports_get_tls_address): Define.
4079 (linux_process_target::get_tls_address): Define.
4080 * linux-low.h (class linux_process_target): Update.
4081 * lynx-low.cc (lynx_target_ops): Update.
4082 * nto-low.cc (nto_target_ops): Update.
4083 * win32-low.cc (win32_target_ops): Update.
4084
5203ae1e
TBA
40852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4086
4087 Turn process_stratum_target's read_offsets op into a method of
4088 process_target.
4089
4090 * target.h (struct process_stratum_target): Remove the target op.
4091 (class process_target): Add the target op. Also add
4092 'supports_read_offsets'.
4093 * target.cc (process_target::read_offsets): Define.
4094 (process_target::supports_read_offsets): Define.
4095
4096 Update the derived classes and callers below.
4097
4098 * server.cc (handle_query): Update.
4099 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4100 (linux_target_ops): Update.
4101 (linux_process_target::supports_read_offsets): Define.
4102 (linux_read_offsets): Turn into ...
4103 (linux_process_target::read_offsets): ... this.
4104 * linux-low.h (class linux_process_target): Update.
4105 * lynx-low.cc (lynx_target_ops): Update.
4106 * nto-low.cc (nto_target_ops): Update.
4107 * win32-low.cc (win32_target_ops): Update.
4108
6eeb5c55
TBA
41092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4110
4111 Turn process_stratum_target's stopped_by_watchpoint and
4112 stopped_data_address ops into methods of process_target.
4113
4114 * target.h (struct process_stratum_target): Remove the target ops.
4115 (class process_target): Add the target ops.
4116 * target.cc (process_target::stopped_by_watchpoint): Define.
4117 (process_target::stopped_data_address): Define.
4118
4119 Update the derived classes and callers below.
4120
4121 * remote-utils.cc (prepare_resume_reply): Update.
4122 * linux-low.cc (linux_target_ops): Update.
4123 (linux_stopped_by_watchpoint): Turn into ...
4124 (linux_process_target::stopped_by_watchpoint): ... this.
4125 (linux_stopped_data_address): Turn into ...
4126 (linux_process_target::stopped_data_address): ... this.
4127 * linux-low.h (class linux_process_target): Update.
4128 * lynx-low.cc (lynx_target_ops): Update.
4129 * nto-low.cc (nto_target_ops): Update.
4130 (nto_stopped_by_watchpoint): Turn into ...
4131 (nto_process_target::stopped_by_watchpoint): ... this.
4132 (nto_stopped_data_address): Turn into ...
4133 (nto_process_target::stopped_data_address): ... this.
4134 * nto-low.h (class nto_process_target): Update.
4135 * win32-low.cc (win32_target_ops): Update.
4136 (win32_stopped_by_watchpoint): Turn into ...
4137 (win32_process_target::stopped_by_watchpoint): ... this.
4138 (win32_stopped_data_address): Turn into ...
4139 (win32_process_target::stopped_data_address): ... this.
4140 * win32-low.h (class win32_process_target): Update.
4141
22aa6223
TBA
41422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4143
4144 Turn process_stratum_target's supports_hardware_single_step op into
4145 a method of process_target.
4146
4147 * target.h (struct process_stratum_target): Remove the target op.
4148 (class process_target): Add the target op.
4149 (target_supports_hardware_single_step): Update the macro.
4150 (target_can_do_hardware_single_step): Remove declaration.
4151 * target.cc (process_target::supports_hardware_single_step): Define.
4152 (target_can_do_hardware_single_step): Remove.
4153
4154 Update the derived classes and callers below.
4155
4156 * linux-low.h (class linux_process_target): Update.
4157 * linux-low.cc (linux_target_ops): Update.
4158 (linux_supports_hardware_single_step): Turn into ...
4159 (linux_process_target::supports_hardware_single_step): ... this.
4160 * lynx-low.h (class lynx_process_target): Update.
4161 * lynx-low.cc (lynx_target_ops): Update.
4162 (lynx_process_target::supports_hardware_single_step): Define.
4163 * nto-low.h (class nto_process_target): Update.
4164 * nto-low.cc (nto_target_ops): Update.
4165 (nto_process_target::supports_hardware_single_step): Define.
4166 * win32-low.h (class win32_process_target): Update.
4167 * win32-low.cc (win32_target_ops): Update.
4168 (win32_process_target::supports_hardware_single_step): Define.
4169
93fe88b2
TBA
41702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4171
4172 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4173 ops into methods of process_target.
4174
4175 * target.h (struct process_stratum_target): Remove the target ops.
4176 (class process_target): Add the target ops.
4177 (target_stopped_by_hw_breakpoint): Update the macro.
4178 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4179 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4180 (process_target::supports_stopped_by_hw_breakpoint): Define.
4181
4182 Update the derived classes and callers below.
4183
4184 * linux-low.cc (linux_target_ops): Update.
4185 (linux_stopped_by_hw_breakpoint): Turn into ...
4186 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4187 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4188 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4189 * linux-low.h (class linux_process_target): Update.
4190 * lynx-low.cc (lynx_target_ops): Update.
4191 * nto-low.cc (nto_target_ops): Update.
4192 * win32-low.cc (win32_target_ops): Update.
4193
84320c4e
TBA
41942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4195
4196 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4197 ops into methods of process_target.
4198
4199 * target.h (struct process_stratum_target): Remove the target ops.
4200 (class process_target): Add the target ops.
4201 (target_stopped_by_sw_breakpoint): Update the macro.
4202 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4203 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4204 (process_target::supports_stopped_by_sw_breakpoint): Define.
4205
4206 Update the derived classes and callers below.
4207
4208 * linux-low.cc (linux_target_ops): Update.
4209 (linux_stopped_by_sw_breakpoint): Turn into ...
4210 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4211 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4212 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4213 * linux-low.h (class linux_process_target): Update.
4214 * lynx-low.cc (lynx_target_ops): Update.
4215 * nto-low.cc (nto_target_ops): Update.
4216 * win32-low.cc (win32_target_ops): Update.
4217
7e0bde70
TBA
42182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4219
4220 Turn process_stratum_target's insert_point and remove_point ops
4221 into methods of process_target.
4222
4223 * target.h (struct process_stratum_target): Remove the target ops.
4224 (class process_target): Add the target ops.
4225 * target.cc (process_target::insert_point): Define.
4226 (process_target::remove_point): Define.
4227
4228 Update the derived classes and callers below.
4229
4230 * mem-break.cc (set_raw_breakpoint_at): Update.
4231 (delete_raw_breakpoint): Update.
4232 (uninsert_raw_breakpoint): Update.
4233 (reinsert_raw_breakpoint): Update.
4234 * linux-low.cc (linux_target_ops): Update.
4235 (linux_insert_point): Turn into ...
4236 (linux_process_target::insert_point): ... this.
4237 (linux_remove_point): Turn into ...
4238 (linux_process_target::remove_point): ... this.
4239 * linux-low.h (class linux_process_target): Update.
4240 * lynx-low.cc (lynx_target_ops): Update.
4241 * nto-low.cc (nto_target_ops): Update.
4242 (nto_insert_point): Turn into ...
4243 (nto_process_target::insert_point): ... this.
4244 (nto_remove_point): Turn into ...
4245 (nto_process_target::remove_point): ... this.
4246 * nto-low.h (class nto_process_target): Update.
4247 * win32-low.cc (win32_target_ops): Update.
4248 (win32_insert_point): Turn into ...
4249 (win32_process_target::insert_point): ... this.
4250 (win32_remove_point): Turn into ...
4251 (win32_process_target::remove_point): ... this.
4252 * win32-low.h (class win32_process_target): Update.
4253
a2b2297a
TBA
42542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4255
4256 Turn process_stratum_target's supports_z_point_type op into a
4257 method of process_target.
4258
4259 * target.h (struct process_stratum_target): Remove the target op.
4260 (class process_target): Add the target op.
4261 * target.cc (process_target::supports_z_point_type): Define.
4262
4263 Update the derived classes and callers below.
4264
4265 * mem-break.cc (z_type_supported): Update.
4266 * linux-low.cc (linux_target_ops): Update.
4267 (linux_supports_z_point_type): Turn into ...
4268 (linux_process_target::supports_z_point_type): ... this.
4269 * linux-low.h (class linux_process_target): Update.
4270 * lynx-low.cc (lynx_target_ops): Update.
4271 * nto-low.cc (nto_target_ops): Update.
4272 (nto_supports_z_point_type): Turn into ...
4273 (nto_process_target::supports_z_point_type): ... this.
4274 * nto-low.h (class nto_process_target): Update.
4275 * win32-low.cc (win32_target_ops): Update.
4276 (win32_supports_z_point_type): Turn into ...
4277 (win32_process_target::supports_z_point_type): ... this.
4278 * win32-low.h (class win32_process_target): Update.
4279
eac215cc
TBA
42802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4281
4282 Turn process_stratum_target's read_auxv op into a method of
4283 process_target.
4284
4285 * target.h (class process_stratum_target): Remove the target op.
4286 (struct process_target): Add the target op. Also add
4287 'supports_read_auxv'.
4288 * target.cc (process_target::read_auxv): Define.
4289 (process_target::supports_read_auxv): Define.
4290
4291 Update the derived classes and callers below.
4292
4293 * server.cc (handle_qxfer_auxv): Update.
4294 (handle_query): Update.
4295 * linux-low.cc (linux_target_ops): Update.
4296 (linux_process_target::supports_read_auxv): Define.
4297 (linux_read_auxv): Turn into ...
4298 (linux_process_target::read_auxv): ... this.
4299 * linux-low.h (class linux_process_target): Update.
4300 * lynx-low.cc (lynx_target_ops): Update.
4301 * nto-low.cc (nto_target_ops): Update.
4302 (nto_process_target::supports_read_auxv): Define.
4303 (nto_read_auxv): Turn into ...
4304 (nto_process_target::read_auxv): ... this.
4305 * nto-low.h (class nto_process_target): Update.
4306 * win32-low.cc (win32_target_ops): Update.
4307
eb497a2a
TBA
43082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4309
4310 Turn process_stratum_target's request_interrupt op into a method of
4311 process_target.
4312
4313 * target.h (struct process_stratum_target): Remove the target op.
4314 (class process_target): Add the target op.
4315
4316 Update the derived classes and callers below.
4317
4318 * remote-utils.cc (putpkt_binary_1): Update.
4319 (input_interrupt): Update.
4320 (getpkt): Update.
4321 * server.cc (handle_v_requests): Update.
4322 * linux-low.cc (linux_target_ops): Update.
4323 (linux_request_interrupt): Turn into ...
4324 (linux_process_target::request_interrupt): ... this.
4325 * linux-low.h (class linux_process_target): Update.
4326 * lynx-low.cc (lynx_target_ops): Update.
4327 (lynx_request_interrupt): Turn into ...
4328 (lynx_process_target::request_interrupt): ... this.
4329 * lynx-low.h (class lynx_process_target): Update.
4330 * nto-low.cc (nto_target_ops): Update.
4331 (nto_request_interrupt): Turn into ...
4332 (nto_process_target::request_interrupt): ... this.
4333 * nto-low.h (class nto_process_target): Update.
4334 * win32-low.cc (win32_target_ops): Update.
4335 (win32_request_interrupt): Turn into ...
4336 (win32_process_target::request_interrupt): ... this.
4337 * win32-low.h (class win32_process_target): Update.
4338
2a31c7aa
TBA
43392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4340
4341 Turn process_stratum_target's look_up_symbols op into a method of
4342 process_target.
4343
4344 * target.h (struct process_stratum_target): Remove the target op.
4345 (class process_target): Add the target op.
4346 * target.cc (process_target::look_up_symbols): Define.
4347
4348 Update the derived classes and callers below.
4349
4350 * server.cc (handle_query): Update.
4351 * linux-low.cc (linux_target_ops): Update.
4352 (linux_look_up_symbols): Turn into ...
4353 (linux_process_target::look_up_symbols): ... this.
4354 * linux-low.h (class linux_process_target): Update.
4355 * lynx-low.cc (lynx_target_ops): Update.
4356 * nto-low.cc (nto_target_ops): Update.
4357 * win32-low.cc (win32_target_ops): Update.
4358
e2558df3
TBA
43592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4360
4361 Turn process_stratum_target's read_memory and write_memory
4362 ops into methods of process_target.
4363
4364 * target.h (struct process_stratum_target): Remove the target ops.
4365 (class process_target): Add the target ops.
4366
4367 Update the derived classes and callers below.
4368
4369 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4370 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4371 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4372 (arm_get_syscall_trapinfo): Update.
4373 * linux-cris-low.cc (cris_breakpoint_at): Update.
4374 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4375 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4376 * linux-mips-low.cc (mips_breakpoint_at): Update.
4377 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4378 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4379 * linux-sh-low.cc (sh_breakpoint_at): Update.
4380 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4381 (sparc_store_gregset_from_stack): Update.
4382 (sparc_breakpoint_at): Update.
4383 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4384 * linux-tile-low.cc (tile_breakpoint_at): Update.
4385 * linux-x86-low.cc (x86_breakpoint_at): Update.
4386 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4387 * mem-brea.cc (insert_memory_breakpoint): Update.
4388 (validate_inserted_breakpoint): Update.
4389 * target.cc (read_inferior_memory): Update.
4390 (target_write_memory): Update.
4391 * linux-low.cc (linux_target_ops): Update.
4392 (linux_read_memory): Make a wrapper around the read_memory target
4393 op call.
4394 (linux_process_target::read_memory): Rename from linux_read_memory.
4395 (linux_write_memory): Turn into ...
4396 (linux_process_target::write_memory): ... this.
4397 * linux-low.h (class linux_process_target): Update.
4398 * lynx-low.cc (lynx_target_ops): Update.
4399 (lynx_read_memory): Turn into ...
4400 (lynx_process_target::read_memory): ... this.
4401 (lynx_write_memory): Turn into ...
4402 (lynx_process_target::write_memory): ... this.
4403 * lynx-low.h (class lynx_process_target): Update.
4404 * nto-low.cc (nto_target_ops): Update.
4405 (nto_read_memory): Turn into ...
4406 (nto_process_target::read_memory): ... this.
4407 (nto_write_memory): Turn into ...
4408 (nto_process_target::write_memory): ... this.
4409 * nto-low.h (class nto_process_target): Update.
4410 * win32-low.cc (win32_target_ops): Update.
4411 (win32_read_inferior_memory): Turn into ...
4412 (win32_process_target::read_memory): ... this.
4413 (win32_write_inferior_memory): Turn into ...
4414 (win32_process_target::write_memory): ... this.
4415 * win32-low.h (class win32_process_target): Update.
4416
79b44087
TBA
44172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4418
4419 Turn process_stratum_target's prepare_to_access_memory and
4420 done_accessing_memory ops into methods of process_target.
4421
4422 * target.h (struct process_stratum_target): Remove the target ops.
4423 (class process_target): Add the target ops.
4424 * target.cc (process_target::prepare_to_access_memory): Define.
4425 (process_target::done_accessing_memory): Define.
4426 (prepare_to_access_memory): Update.
4427 (done_accessing_memory): Update.
4428
4429 Update the derived classes and callers below.
4430
4431 * linux-low.cc (linux_target_ops): Update.
4432 (linux_prepare_to_access_memory): Turn into ...
4433 (linux_process_target::prepare_to_access_memory): ... this.
4434 (linux_done_accessing_memory): Turn into ...
4435 (linux_process_target::done_accessing_memory): ... this.
4436 * linux-low.h (class linux_process_target): Update.
4437 * lynx-low.cc (lynx_target_ops): Update.
4438 * nto-low.cc (nto_target_ops): Update.
4439 * win32-low.cc (win32_target_ops): Update.
4440
a5a4d4cd
TBA
44412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4442
4443 Turn process_stratum_target's fetch_registers and store_registers
4444 ops into methods of process_target.
4445
4446 * target.h (struct process_stratum_target): Remove the target ops.
4447 (class process_target): Add the target ops.
4448 (fetch_inferior_registers): Update the macro.
4449 (store_inferior_registers): Update the macro.
4450
4451 Update the derived classes and callers below.
4452
4453 * linux-low.cc (linux_target_ops): Update.
4454 (linux_fetch_registers): Turn into ...
4455 (linux_process_target::fetch_registers): ... this.
4456 (linux_store_registers): Turn into ...
4457 (linux_process_target::store_registers): ... this.
4458 * linux-low.h (class linux_process_target): Update.
4459 * lynx-low.cc (lynx_target_ops): Update.
4460 (lynx_fetch_registers): Turn into ...
4461 (lynx_process_target::fetch_registers): ... this.
4462 (lynx_store_registers): Turn into ...
4463 (lynx_process_target::store_registers): ... this.
4464 * lynx-low.h (class lynx_process_target): Update.
4465 * nto-low.cc (nto_target_ops): Update.
4466 (nto_fetch_registers): Turn into ...
4467 (nto_process_target::fetch_registers): ... this.
4468 (nto_store_registers): Turn into ...
4469 (nto_process_target::store_registers): ... this.
4470 * nto-low.h (class nto_process_target): Update.
4471 * win32-low.cc (win32_target_ops): Update.
4472 (win32_fetch_inferior_registers): Turn into ...
4473 (win32_process_target::fetch_registers): ... this.
4474 (win32_store_inferior_registers): Turn into ...
4475 (win32_process_target::store_registers): ... this.
4476 * win32-low.h (class win32_process_target): Update.
4477
6532e7e3
TBA
44782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4479
4480 Turn process_stratum_target's wait op into a method of
4481 process_target.
4482
4483 * target.h (struct process_stratum_target): Remove the target op.
4484 (class process_target): Add the target op.
4485
4486 Update the derived classes and callers below.
4487
4488 * target.cc (target_wait): Update.
4489 * linux-low.cc (linux_target_ops): Update.
4490 (linux_wait): Turn into ...
4491 (linux_process_target::wait): ... this.
4492 * linux-low.h (class linux_process_target): Update.
4493 * lynx-low.cc (lynx_target_ops): Update.
4494 (lynx_wait): Turn into ...
4495 (lynx_process_target::wait): ... this.
4496 * lynx-low.h (class lynx_process_target): Update.
4497 * nto-low.cc (nto_target_ops): Update.
4498 (nto_wait): Turn into ...
4499 (nto_process_target::wait): ... this.
4500 * nto-low.h (class nto_process_target): Update.
4501 * win32-low.cc (win32_target_ops): Update.
4502 (win32_wait): Turn into ...
4503 (win32_process_target::wait): ... this.
4504 (do_initial_child_stuff): Update.
4505 * win32-low.h (class win32_process_target): Update.
4506
0e4d7e35
TBA
45072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4508
4509 Turn process_stratum_target's resume op into a method of
4510 process_target.
4511
4512 * target.h (struct process_stratum_target): Remove the target op.
4513 (class process_target): Add the target op.
4514
4515 Update the derived classes and callers below.
4516
4517 * server.cc (resume): Update.
4518 * target.cc (target_stop_and_wait): Update.
4519 (target_continue_no_signal): Update.
4520 (target_continue): Update.
4521 * linux-low.cc (linux_target_ops): Update.
4522 (linux_resume): Turn into ...
4523 (linux_process_target::resume): ... this.
4524 * linux-low.h (class linux_process_target): Update.
4525 * lynx-low.cc (lynx_target_ops): Update.
4526 (lynx_resume): Turn into ...
4527 (lynx_process_target::resume): ... this.
4528 * lynx-low.h (class lynx_process_target): Update.
4529 * nto-low.cc (nto_target_ops): Update.
4530 (nto_resume): Turn into ...
4531 (nto_process_target::resume): ... this.
4532 * nto-low.h (class nto_process_target): Update.
4533 * win32-low.cc (win32_target_ops): Update.
4534 (win32_resume): Turn into ...
4535 (win32_process_target::resume): ... this.
4536 (win32_process_target::detach): Update.
4537 (do_initial_child_stuff): Update.
4538 * win32-low.h (class win32_process_target): Update.
4539
13d3d99b
TBA
45402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4541
4542 Turn process_stratum_target's thread_alive op into a method of
4543 process_target.
4544
4545 * target.h (struct process_stratum_target): Remove the target op.
4546 (class process_target): Add the target op.
4547 (mythread_alive): Update the macro.
4548
4549 Update the derived classes and callers below.
4550
4551 * linux-low.cc (linux_target_ops): Update.
4552 (linux_thread_alive): Turn into ...
4553 (linux_process_target::thread_alive): ... this.
4554 (wait_for_sigstop): Update.
4555 * linux-low.h (class linux_process_target): Update.
4556 * lynx-low.cc (lynx_target_ops): Update.
4557 (lynx_thread_alive): Turn into ...
4558 (lynx_process_target::thread_alive): ... this.
4559 * lynx-low.h (class lynx_process_target): Update.
4560 * nto-low.cc (nto_target_ops): Update.
4561 (nto_thread_alive): Turn into ...
4562 (nto_process_target::thread_alive): ... this.
4563 * nto-low.h (class nto_process_target): Update.
4564 * win32-low.cc (win32_target_ops): Update.
4565 (win32_thread_alive): Turn into ...
4566 (win32_process_target::thread_alive): ... this.
4567 * win32-low.h (class win32_process_target): Update.
4568
95a49a39
TBA
45692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4570
4571 Turn process_stratum_target's join op into a method of
4572 process_target.
4573
4574 * target.h (struct process_stratum_target): Remove the target op.
4575 (class process_target): Add the target op.
4576 (join_inferior): Update the macro.
4577
4578 Update the derived classes and callers below.
4579
4580 * linux-low.cc (linux_target_ops): Update.
4581 (linux_join): Turn into ...
4582 (linux_process_target::join): ... this.
4583 * linux-low.h (class linux_process_target): Update.
4584 * lynx-low.cc (lynx_target_ops): Update.
4585 (lynx_join): Turn into ...
4586 (lynx_process_target::join): ... this.
4587 * lynx-low.h (class lynx_process_target): Update.
4588 * nto-low.cc (nto_target_ops): Update.
4589 (nto_process_target::join): Define.
4590 * nto-low.h (class nto_process_target): Update.
4591 * win32-low.cc (win32_target_ops): Update.
4592 (win32_join): Turn into ...
4593 (win32_process_target::join): ... this.
4594 * win32-low.h (class win32_process_target): Update.
4595
8adb37b9
TBA
45962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4597
4598 Turn process_stratum_target's mourn op into a method of
4599 process_target.
4600
4601 * target.h (struct process_stratum_target): Remove the target op.
4602 (class process_target): Add the target op.
4603
4604 Update the derived classes and callers below.
4605
4606 * target.cc (target_mourn_inferior): Update.
4607 * linux-low.cc (linux_target_ops): Update.
4608 (linux_mourn): Turn into ...
4609 (linux_process_target::mourn): ... this.
4610 (handle_extended_wait): Update.
4611 (linux_process_target::kill): Update.
4612 (linux_process_target::detach): Update.
4613 * linux-low.h (class linux_process_target): Update.
4614 * lynx-low.cc (lynx_target_ops): Update.
4615 (lynx_mourn): Turn into ...
4616 (lynx_process_target::mourn): ... this.
4617 * lynx-low.h (class lynx_process_target): Update.
4618 * nto-low.cc (nto_target_ops): Update.
4619 (nto_mourn): Turn into ...
4620 (nto_process_target::mourn): ... this.
4621 * nto-low.h (class nto_process_target): Update.
4622 * win32-low.cc (win32_target_ops): Update.
4623 (win32_mourn): Turn into ...
4624 (win32_process_target::mourn): ... this.
4625 * win32-low.h (class win32_process_target): Update.
4626
9061c9cf
TBA
46272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4628
4629 Turn process_stratum_target's detach op into a method of
4630 process_target.
4631
4632 * target.h (struct process_stratum_target): Remove the target op.
4633 (class process_target): Add the target op.
4634 (detach_inferior): Update the macro.
4635
4636 Update the derived classes and callers below.
4637
4638 * linux-low.cc (linux_target_ops): Update.
4639 (linux_detach): Turn into ...
4640 (linux_process_target::detach): ... this.
4641 * linux-low.h (class linux_process_target): Update.
4642 * lynx-low.cc (lynx_target_ops): Update.
4643 (lynx_detach): Turn into ...
4644 (lynx_process_target::detach): ... this.
4645 * lynx-low.h (class lynx_process_target): Update.
4646 * nto-low.cc (nto_target_ops): Update.
4647 (nto_detach): Turn into ...
4648 (nto_process_target::detach): ... this.
4649 * nto-low.h (class nto_process_target): Update.
4650 * win32-low.cc (win32_target_ops): Update.
4651 (win32_detach): Turn into ...
4652 (win32_process_target::detach): ... this.
4653 * win32-low.h (class win32_process_target): Update.
4654
c6885a57
TBA
46552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4656
4657 Turn process_stratum_target's kill op into a method of
4658 process_target.
4659
4660 * target.h (struct process_stratum_target): Remove the target op.
4661 (class process_target): Add the target op.
4662
4663 Update the derived classes and callers below.
4664
4665 * target.cc (kill_inferior): Update.
4666 * linux-low.cc (linux_target_ops): Update.
4667 (linux_kill): Turn into ...
4668 (linux_process_target::kill): ... this.
4669 * linux-low.h (class linux_process_target): Update.
4670 * lynx-low.cc (lynx_target_ops): Update.
4671 (lynx_kill): Turn into ...
4672 (lynx_process_target::kill): ... this.
4673 * lynx-low.h (class lynx_process_target): Update.
4674 * nto-low.cc (nto_target_ops): Update.
4675 (nto_kill): Turn into ...
4676 (nto_process_target::kill): ... this.
4677 * nto-low.h (class nto_process_target): Update.
4678 * win32-low.cc (win32_target_ops): Update.
4679 (win32_kill): Turn into ...
4680 (win32_process_target::kill): ... this.
4681 * win32-low.h (class win32_process_target): Update.
4682
ef03dad8
TBA
46832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4684
4685 Turn process_stratum_target's attach op into a method of
4686 process_target.
4687
4688 * target.h (struct process_stratum_target): Remove the target op.
4689 (class process_target): Add the target op.
4690 (myattach): Update the macro.
4691
4692 Update the derived classes and callers below.
4693
4694 * linux-low.cc (linux_target_ops): Update.
4695 (linux_attach): Turn into ...
4696 (linux_process_target::attach): ... this.
4697 * linux-low.h (class linux_process_target): Update.
4698 * lynx-low.cc (lynx_target_ops): Update.
4699 (lynx_attach): Turn into ...
4700 (lynx_process_target::attach): ... this.
4701 * lynx-low.h (class lynx_process_target): Update.
4702 * nto-low.cc (nto_target_ops): Update.
4703 (nto_attach): Turn into ...
4704 (nto_process_target::attach): ... this.
4705 * nto-low.h (class nto_process_target): Update.
4706 * win32-low.cc (win32_target_ops): Update.
4707 (win32_attach): Turn into ...
4708 (win32_process_target::attach): ... this.
4709 * win32-low.h (class win32_process_target): Update.
4710
6dee9afb
TBA
47112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4712
4713 Turn process_stratum_target's post_create_inferior op into a method
4714 of process_target.
4715
4716 * target.h (struct process_stratum_target): Remove the target op.
4717 (class process_target): Add the target op.
4718 (target_post_create_inferior): Update the macro.
4719 * target.cc (process_target::post_create_inferior): Define.
4720
4721 Update the derived classes and callers below.
4722
4723 * linux-low.cc (linux_target_ops): Update.
4724 (linux_post_create_inferior): Turn into ...
4725 (linux_process_target::post_create_inferior): ... this.
4726 * linux-low.h (class linux_process_target): Update.
4727 * lynx-low.cc (lynx_target_ops): Update.
4728 * nto-low.cc (nto_target_ops): Update.
4729 * win32-low.cc (win32_target_ops): Update.
4730
15295543
TBA
47312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4732
4733 Turn process_stratum_target's create_inferior op into a method of
4734 process_target.
4735
4736 * target.h (struct process_stratum_target): Remove the target op.
4737 (class process_target): Add the target op.
4738 (create_inferior): Rename the macro to ...
4739 (target_create_inferior): ... this.
4740
4741 Update the derived classes and callers below.
4742
4743 * server.cc (handle_v_run): Update.
4744 (captured_main): Update.
4745 (process_serial_event): Update.
4746 * linux-low.cc (linux_target_ops): Update.
4747 (linux_create_inferior): Turn into ...
4748 (linux_process_target::create_inferior): ... this.
4749 * linux-low.h (class linux_process_target): Update.
4750 * lynx-low.cc (lynx_target_ops): Update.
4751 (lynx_create_inferior): Turn into ...
4752 (lynx_process_target::create_inferior): ... this.
4753 * lynx-low.h (class lynx_process_target): Update.
4754 * nto-low.cc (nto_target_ops): Update.
4755 (nto_create_inferior): Turn into ...
4756 (nto_process_target::create_inferior): ... this.
4757 * nto-low.h (class nto_process_target): Update.
4758 * win32-low.cc (win32_target_ops): Update.
4759 (win32_create_inferior): Turn into ...
4760 (win32_process_target::create_inferior): ... this.
4761 * win32-low.h (class win32_process_target): Update.
4762
5ef9273d
TBA
47632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4764
4765 * target.h (class process_target): New class definition.
4766 (struct process_stratum_target) <pt>: New field with type
4767 'process_target*'.
4768 * linux-low.h (class linux_process_target): Define as a derived
4769 class of 'process_target'.
4770 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4771 as the 'pt' field.
4772 * lynx-low.h (class lynx_process_target): Define as a derived
4773 class of 'process_target'.
4774 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4775 as the 'pt' field.
4776 * nto-low.h (class nto_process_target): Define as a derived
4777 class of 'process_target'.
4778 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4779 as the 'pt' field.
4780 * win32-low.h (class win32_process_target): Define as a derived
4781 class of 'process_target'.
4782 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4783 as the 'pt' field.
4784
9f1528a1
AB
47852020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4786
4787 * configure: Regenerate.
4788
bf84f706
MR
47892020-02-19 Maciej W. Rozycki <macro@wdc.com>
4790 Andrew Burgess <andrew.burgess@embecosm.com>
4791
4792 * linux-riscv-low.cc: New file.
4793 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4794 and nat/riscv-linux-tdesc.c.
4795 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4796 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4797 Define.
4798
1a627e7e
TT
47992020-02-14 Tom Tromey <tom@tromey.com>
4800
4801 * acinclude.m4: Don't include acx_configure_dir.m4.
4802 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4803 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4804 (all, install-only, uninstall, clean-info, clean)
4805 (maintainer-clean): Don't recurse.
4806 (subdir_do, all-lib): Remove.
4807 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4808 (GNULIB_H): Remove.
4809 (generated_files): Update.
4810 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4811 * configure: Rebuild.
4812 * configure.ac: Don't configure gnulib or libiberty.
4813 (GNULIB): Update.
4814
a9b34532
EZ
48152020-02-14 Eli Zaretskii <eliz@gnu.org>
4816
4817 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4818 preparing the command line for CreateProcess.
4819 (win32_create_inferior): Reflect the program name in debugging
4820 output that shows the process and its command line.
4821
feacfcac
SM
48222020-02-13 Simon Marchi <simon.marchi@efficios.com>
4823
4824 * Makefile.in: Rename source files from .c to .cc.
4825 * %.c: Rename to %.cc.
4826 * configure.ac: Rename server.c to server.cc.
4827 * configure: Re-generate.
4828
06b3c5bd
SM
48292020-02-13 Simon Marchi <simon.marchi@efficios.com>
4830
4831 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4832
052793ad
HD
48332020-02-12 Hannes Domani <ssbssa@yahoo.de>
4834
4835 * win32-low.c (win32_create_inferior): Set signal_pid.
4836
f20e3e82
MR
48372020-02-12 Maciej W. Rozycki <macro@wdc.com>
4838 Pedro Alves <palves@redhat.com>
4839
4840 Skip building gdbserver in a cross-configuration.
4841 * configure.srv: Set $gdbserver_host depending on whether $target
4842 is $host. Use $gdbserver_host instead of $host.
4843
8ddd8e0e
SM
48442020-02-11 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * configure: Re-generate.
4847
898e7f60
SM
48482020-02-11 Simon Marchi <simon.marchi@efficios.com>
4849
4850 * configure: Re-generate.
4851
58df732b
SM
48522020-02-11 Simon Marchi <simon.marchi@efficios.com>
4853
4854 * acinclude.m4: Update warning.m4 path.
4855
7928d571
HD
48562020-02-09 Hannes Domani <ssbssa@yahoo.de>
4857
4858 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4859 (handle_exception): Set siginfo_er.
4860 (win32_xfer_siginfo): New function.
4861
919adfe8
TT
48622020-02-07 Tom Tromey <tom@tromey.com>
4863 Pedro Alves <palves@redhat.com>
4864
4865 * README: Update build documentation.
4866 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4867 host, not target.
4868 * configure.ac: Update paths.
4869 * configure: Rebuild.
4870 * acinclude.m4: Update paths.
4871 * Makefile.in: Update include paths.
4872 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4873 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4874 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4875 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4876 (%-generated.c): Update paths.
4877 * Move entire directory from ../gdb/gdbserver.
4878
287c844a
MR
48792020-01-29 Maciej W. Rozycki <macro@wdc.com>
4880
4881 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4882
548a204f
PFC
48832020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4884
4885 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4886 assignment instead of srv_linux_obj.
4887
a2236a08
HD
48882020-01-28 Hannes Domani <ssbssa@yahoo.de>
4889
4890 * server.c (handle_qxfer_libraries): Write segment-address with
4891 paddress.
4892
bdaed379
HD
48932020-01-24 Hannes Domani <ssbssa@yahoo.de>
4894
4895 * Makefile.in (install-strip): New target.
4896 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4897 * aclocal.m4: Regenerate.
4898 * configure: Regenerate.
4899 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4900
42cd72aa
MR
49012020-01-24 Maciej W. Rozycki <macro@wdc.com>
4902
4903 * Makefile.in (SFILES): Adjust paths to point to real files.
4904 (OBS): Move waitstatus.o to target/waitstatus.o.
4905 (TAGS): Transform paths appropriately.
4906 (%.o): Rename to...
4907 (nat/%.o): ... this pattern rule.
4908 (%.o): Rename to...
4909 (target/%.o): ... this pattern rule.
4910 * configure.srv: Adjust paths throughout to include nat/ prefix
4911 with the revant files.
4912 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4913 * configure: Regenerate.
4914
42ba50ec
MR
49152020-01-24 Maciej W. Rozycki <macro@wdc.com>
4916
4917 * Makefile.in (TAGS): Remove config files from the recipe.
4918
05ea2a05
TT
49192020-01-14 Tom Tromey <tom@tromey.com>
4920
4921 * configure: Rebuild.
4922 * configure.ac: Remove any checks that were added to common.m4.
4923 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4924 lib-link.m4.
4925
01027315
TT
49262020-01-14 Tom Tromey <tom@tromey.com>
4927
4928 * server.h: Include config.h.
4929 * gdbreplay.c: Include config.h.
4930 * configure: Rebuild.
4931 * configure.ac: Don't source common.host.
4932 * acinclude.m4: Update path.
4933 * Makefile.in (INCSUPPORT): New variable.
4934 (INCLUDE_CFLAGS): Add INCSUPPORT.
4935 (SFILES): Update paths.
4936 (version-generated.c): Update path to create-version.sh.
4937 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4938
b2ceabe8
TT
49392020-01-14 Tom Tromey <tom@tromey.com>
4940
4941 * configure.ac (LIBS): Use WIN32APILIBS.
4942 (USE_WIN32API): Don't define.
4943 * configure: Rebuild.
4944
25c51f71
TT
49452020-01-14 Tom Tromey <tom@tromey.com>
4946
4947 * configure: Rebuild.
4948
c0bd321d
SM
49492020-01-13 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * Makefile.in (%-generated.c): Remove rule for files from
4952 regformats/i386.
4953
bb564c58
SM
49542020-01-13 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * configure: Re-generate.
4957
6e37c371
SM
49582020-01-13 Simon Marchi <simon.marchi@efficios.com>
4959
4960 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4961 Define to static.
4962 * tracepoint.c (stop_tracing, flush_trace_buffer,
4963 about_to_request_buffer_space, get_trace_state_variable_value,
4964 set_trace_state_variable_value, gdb_collect): Add declaration.
4965
df4a0200
SM
49662020-01-13 Simon Marchi <simon.marchi@efficios.com>
4967
4968 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4969 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4970 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4971 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4972 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4973 static.
4974
89e94ec9
SM
49752020-01-13 Simon Marchi <simon.marchi@efficios.com>
4976
4977 * inferiors.c: Include gdbsupport/common-inferior.h.
4978
2552728a
SM
49792020-01-13 Simon Marchi <simon.marchi@efficios.com>
4980
4981 * hostio-errno.c: Include hostio.h.
4982
4025fa09
SM
49832020-01-13 Simon Marchi <simon.marchi@efficios.com>
4984
4985 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4986 prerequisite.
4987
c0b0a142
SM
49882020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4989
4990 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4991 * linux-arm-tdesc.h: Include arch/arm.h.
4992
bb1183e2
SM
49932020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4994
4995 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4996
f5df0b5f
SM
49972020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4998
4999 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
5000 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
5001
5b6d1e4f
PA
50022020-01-10 Pedro Alves <palves@redhat.com>
5003
5004 * fork-child.c (post_fork_inferior): Pass target down to
5005 startup_inferior.
5006 * inferiors.c (switch_to_thread): Add process_stratum_target
5007 parameter.
5008 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
5009 * nto-low.c (nto_target_ops): Now a process_stratum_target.
5010 * linux-low.c (linux_target_ops): Now a process_stratum_target.
5011 * remote-utils.c (prepare_resume_reply): Pass the target to
5012 switch_to_thread.
5013 * target.c (the_target): Now a process_stratum_target.
5014 (done_accessing_memory): Pass the target to switch_to_thread.
5015 (set_target_ops): Ajust to use process_stratum_target.
5016 * target.h (struct target_ops): Rename to ...
5017 (struct process_stratum_target): ... this.
5018 (the_target, set_target_ops): Adjust.
5019 (prepare_to_access_memory): Adjust comment.
5020 * win32-low.c (child_xfer_memory): Adjust to use
5021 process_stratum_target.
5022 (win32_target_ops): Now a process_stratum_target.
5023
559e7e50
EZ
50242020-01-06 Eli Zaretskii <eliz@gnu.org>
5025 Pedro Alves <palves@redhat.com>
5026
5027 * win32-low.c (get_child_debug_event): Extract the fatal exception
5028 from the exit status and convert to the equivalent Posix signal
5029 number.
5030 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5031 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5032
48189bec
HD
50332020-01-01 Hannes Domani <ssbssa@yahoo.de>
5034
5035 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5036
5dd8bf88
JB
50372020-01-01 Joel Brobecker <brobecker@adacore.com>
5038
5039 * server.c (gdbserver_version): Change copyright year to 2020.
5040 * gdbreplay.c (gdbreplay_version): Likewise.
5041
0ad6b8ee
CB
50422019-12-19 Christian Biesinger <cbiesinger@google.com>
5043
5044 * configure: Regenerate.
5045 * configure.ac: Quote variable arguments of test.
5046
1ee7b812
BE
50472019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5048
5049 * Makefile.in: Fix build with GNU Make 3.81
5050
d9fa87f4
TT
50512019-12-16 Tom Tromey <tromey@adacore.com>
5052
5053 * server.c (get_exec_file): Constify result.
5054
ab7d13f0
CB
50552019-12-10 Christian Biesinger <cbiesinger@google.com>
5056
5057 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5058 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5059 * config.in: Regenerate.
5060 * configure: Regenerate.
5061 * configure.ac: Don't check for strerror.
5062 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5063 Call safe_strerror instead of strerror.
5064 * server.h (strerror): Remove this now-unnecessary declaration.
5065 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5066 strerror.
5067 (gdb_agent_helper_thread): Likewise.
5068 * utils.c (perror_with_name): Likewise.
5069
4da8c3a8
TT
50702019-11-26 Tom Tromey <tom@tromey.com>
5071
5072 * configure, config.in: Rebuild.
5073
21987b9c
TT
50742019-11-26 Tom Tromey <tom@tromey.com>
5075
5076 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5077 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5078 gdb_sigmask.
5079 * configure, config.in: Rebuild.
5080
5e030278
TT
50812019-11-26 Tom Tromey <tom@tromey.com>
5082
5083 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5084 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5085 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5086 * acinclude.m4: Include ax_pthread.m4.
5087 * config.in, configure: Rebuild.
5088
6d91ce9a
CB
50892019-11-26 Christian Biesinger <cbiesinger@google.com>
5090
5091 * debug.c (debug_set_output): Call safe_strerror instead of
5092 strerror.
5093 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5094 (linux_kill_one_lwp): Likewise.
5095 (linux_detach_one_lwp): Likewise.
5096 (linux_wait_for_event_filtered): Likewise.
5097 (store_register): Likewise.
5098 * lynx-low.c (lynx_attach): Likewise.
5099 * mem-break.c (insert_memory_breakpoint): Likewise.
5100 (remove_memory_breakpoint): Likewise.
5101 (delete_fast_tracepoint_jump): Likewise.
5102 (set_fast_tracepoint_jump): Likewise.
5103 (uninsert_fast_tracepoint_jumps_at): Likewise.
5104 (reinsert_fast_tracepoint_jumps_at): Likewise.
5105 * nto-low.c (nto_xfer_memory): Likewise.
5106 (nto_resume): Likewise.
5107
6cdd651f
LM
51082019-11-20 Luis Machado <luis.machado@linaro.org>
5109
5110 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5111 instead of register count.
5112 * tdesc.c (tdesc_contains_feature): New function.
5113 * tdesc.h (tdesc_contains_feature): New prototype.
5114
cd850b40
CB
51152019-11-15 Christian Biesinger <cbiesinger@google.com>
5116
5117 * Makefile.in: Add safe-strerror.c.
5118 * configure: Regenerate.
5119 * configure.ac: Don't source common.host.
5120
5abebf3c
CB
51212019-11-15 Christian Biesinger <cbiesinger@google.com>
5122
5123 * config.in: Regenerate.
5124 * configure: Regenerate.
5125
e06f3d6e
AB
51262019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5127
5128 * ax.c (ax_printf): Handle size_t_arg.
5129
ca3a04f6
CB
51302019-11-06 Christian Biesinger <cbiesinger@google.com>
5131
5132 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5133 * mi/mi-main.c (output_cores): Likewise.
5134 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5135 (linux_xfer_osdata_modules): Likewise.
5136 * remote.c (register_remote_support_xml): Likewise.
5137 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5138 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5139
e48f6033
CB
51402019-11-01 Christian Biesinger <cbiesinger@google.com>
5141
5142 * configure: Regenerate.
5143 * configure.ac: Remove check for strerror_r.
5144
e7e97a2e
CB
51452019-10-31 Christian Biesinger <cbiesinger@google.com>
5146
5147 * config.in: Regenerate.
5148 * configure: Regenerate.
5149 * configure.ac: Also check for strerror_r.
5150
75cafaa6
CB
51512019-10-31 Christian Biesinger <cbiesinger@google.com>
5152
5153 * ax.h (debug_agent): Remove duplicate declaration.
5154
30baf67b
TV
51552019-10-26 Tom de Vries <tdevries@suse.de>
5156
5157 * linux-aarch64-low.c: Fix typos in comments.
5158 * linux-arm-low.c: Same.
5159 * linux-low.c: Same.
5160 * linux-ppc-low.c: Same.
5161 * proc-service.c: Same.
5162 * regcache.h: Same.
5163 * server.c: Same.
5164 * tracepoint.c: Same.
5165 * win32-low.c: Same.
5166
52c64cf7
TT
51672019-10-25 Tom Tromey <tromey@adacore.com>
5168
5169 * utils.c (xstrdup): Remove.
5170
c12d372d
TT
51712019-10-23 Tom Tromey <tom@tromey.com>
5172
5173 * configure, config.in: Rebuild.
5174
4d0b984b
TT
51752019-10-23 Tom Tromey <tom@tromey.com>
5176
5177 * configure: Rebuild.
5178 * acinclude.m4: Use m4_include, not sinclude.
5179
c5adaa19
TT
51802019-10-17 Tom Tromey <tromey@adacore.com>
5181
5182 * configure: Rebuild.
5183 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5184 in AC_CONFIG_FILES invocation.
5185 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5186 invocation.
5187
fec4e896
CB
51882019-10-16 Christian Biesinger <cbiesinger@google.com>
5189
5190 * server.c: Include xml-builtin.h.
5191 (get_xml_features): Don't declare xml_builtins here.
5192
00975ff6
AB
51932019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5194
5195 * Makefile.in: Remove references to vec-ipa.o.
5196
0dc32745
AB
51972019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * Makefile.in: Remove references to vec.c.
5200
3e6ec53a
CB
52012019-10-02 Christian Biesinger <cbiesinger@google.com>
5202
5203 * server.c (server_waiting): Change to bool.
5204 (extended_protocol): Likewise.
5205 (response_needed): Likewise.
5206 (exit_requested): Likewise.
5207 (run_once): Likewise.
5208 (report_no_resumed): Likewise.
5209 (non_stop): Likewise.
5210 (disable_packet_vCont): Likewise.
5211 (disable_packet_Tthread): Likewise.
5212 (disable_packet_qC): Likewise.
5213 (disable_packet_qfThreadInfo): Likewise.
5214 (handle_general_set): Update.
5215 (handle_detach): Update.
5216 (handle_monitor_command): Update.
5217 (handle_query): Update.
5218 (captured_main): Update.
5219 (process_serial_event): Update.
5220 * server.h (server_waiting): Change to bool.
5221 (disable_packet_vCont): Likewise.
5222 (disable_packet_Tthread): Likewise.
5223 (disable_packet_qC): Likewise.
5224 (disable_packet_qfThreadInfo): Likewise.
5225 (run_once): Likewise.
5226 (non_stop): Likewise.
5227 * target.c (target_stop_and_wait): Update.
5228
80fd2826
TT
52292019-10-02 Tom Tromey <tromey@adacore.com>
5230
5231 * Makefile.in (SFILES): Add common-inferior.c.
5232 (OBS): Add common-inferior.o.
5233 * server.c (startup_with_shell): Don't define.
5234
46f29a9a
AB
52352019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5236
5237 * linux-low.c (linux_low_read_btrace): Update for change to
5238 std::vector.
5239
f9d949fb
CB
52402019-09-20 Christian Biesinger <cbiesinger@google.com>
5241
5242 * debug.c (debug_threads): Remove comment in favor of the header.
5243 * debug.h (using_threads): Add declaration.
5244 (debug_threads): Add comment.
5245 * linux-aarch64-low.c: Include debug.h and remove declaration of
5246 debug_threads.
5247 * nto-low.c: Likewise.
5248 * remote-utils.c: Likewise.
5249 * thread-db.c: Likewise.
5250
abf516c6
UW
52512019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5252
5253 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5254 and powerpc-cell64l-ipa.o.
5255 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5256 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5257 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5258 (spu*-*-*): Remove.
5259
5260 * spu-low.c: Remove file.
5261
5262 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5263 (parse_spufs_run): Remove.
5264 (ppc_get_pc): Remove Cell/B.E. support.
5265 (ppc_set_pc): Likewise.
5266 (ppc_breakpoint_at): Likewise.
5267 (ppc_arch_setup): Likewise.
5268 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5269 tdesc_powerpc_cell32l.
5270 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5271 or init_registers_powerpc_cell32l.
5272 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5273 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5274 or init_registers_powerpc_cell32l.
5275 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5276 (init_registers_powerpc_cell32l): Remove prototype.
5277 (init_registers_powerpc_cell64l): Likewise.
5278
5279 * target.h (struct target_ops): Remove qxfer_spu member.
5280 * server.c (handle_qxfer_spu): Remove.
5281 (qxfer_packets): Remove entry for "spu".
5282 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5283 * linux-low.c (SPUFS_MAGIC): Remove.
5284 (spu_enumerate_spu_ids): Remove.
5285 (linux_qxfer_spu): Remove.
5286 (linux_target_ops): Remove qxfer_spu member.
5287 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5288 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5289 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5290
2d41fa11
SDJ
52912019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5292
5293 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5294 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5295 * config.in: Regenerate.
5296 * configure: Regenerate.
5297
d59b55f0
TT
52982019-08-15 Tom Tromey <tromey@adacore.com>
5299
5300 * target.c (target_write_memory): Use gdb::byte_vector.
5301
4196ab2a
TT
53022019-08-15 Tom Tromey <tromey@adacore.com>
5303
5304 * tracepoint.c (write_inferior_data_pointer)
5305 (write_inferior_integer, write_inferior_int8)
5306 (write_inferior_uinteger, m_tracepoint_action_download)
5307 (r_tracepoint_action_download, x_tracepoint_action_download)
5308 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5309 (download_agent_expr, download_tracepoint_1)
5310 (download_trace_state_variables, upload_fast_traceframes): Update.
5311 * server.c (gdb_write_memory): Update.
5312 * remote-utils.c (relocate_instruction): Update.
5313 * proc-service.c (ps_pdwrite): Update.
5314 * mem-break.c (remove_memory_breakpoint)
5315 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5316 (uninsert_fast_tracepoint_jumps_at)
5317 (reinsert_fast_tracepoint_jumps_at): Update.
5318 * linux-x86-low.c (append_insns)
5319 (i386_install_fast_tracepoint_jump_pad)
5320 (amd64_write_goto_address, i386_write_goto_address): Update.
5321 * linux-s390-low.c (append_insns, s390_write_goto_address):
5322 Update.
5323 * linux-ppc-low.c (ppc_relocate_instruction)
5324 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5325 (ppc_write_goto_address): Update.
5326 * linux-aarch64-low.c (append_insns): Update.
5327 * target.h (struct target_ops): Update.
5328 (write_inferior_memory): Don't declare.
5329 * target.c (target_write_memory): Rename from
5330 write_inferior_memory. Remove old target_write_memory.
5331
c6778d00
TT
53322019-08-15 Tom Tromey <tromey@adacore.com>
5333
5334 * target.c (write_inferior_memory): Use std::vector.
5335
404f2902
FCE
53362019-08-06 Frank Ch. Eigler <fche@redhat.com>
5337
5338 PR build/24886
5339 * configure.ac: Drop enable-libmcheck support.
5340 * configure, config.in: Rebuild.
5341 * acinclude.m4: Don't include it.
5342
4c5aa8e0
AH
53432019-07-19 Alan Hayward <alan.hayward@arm.com>
5344
5345 * configure.srv: Remove Arm xml files.
5346
7cc17433
AH
53472019-07-19 Alan Hayward <alan.hayward@arm.com>
5348
5349 * configure.srv: Add new files. Remove xml generated files.
5350 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5351 registers.
5352 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5353 * linux-aarch32-tdesc.c: New file.
5354 * linux-aarch32-tdesc.h: New file.
5355 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5356 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5357 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5358 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5359 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5360 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5361 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5362 (arm_read_description): Call arm_linux_read_description.
5363 (initialize_low_arch): Don't init registers.
5364 * linux-arm-tdesc.c: New file.
5365 * linux-arm-tdesc.h: New file.
5366
166a82be
AH
53672019-07-10 Alan Hayward <alan.hayward@arm.com>
5368
5369 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5370 Move counter inside for.
5371 (arm_read_description): Check ptrace earlier.
5372 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5373
268a13a5
TT
53742019-07-09 Tom Tromey <tom@tromey.com>
5375
5376 * configure: Rebuild.
5377 * configure.ac: Change common to gdbsupport.
5378 * acinclude.m4: Change common to gdbsupport.
5379 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5380 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5381 common to gdbsupport.
5382 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5383 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5384 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5385 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5386 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5387 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5388 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5389 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5390 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5391 common to gdbsupport.
5392
350fab54
AH
53932019-07-04 Alan Hayward <alan.hayward@arm.com>
5394
5395 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5396 defines.
5397 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5398
2b40fda7
AH
53992019-07-04 Alan Hayward <alan.hayward@arm.com>
5400
5401 * configure.srv: Remove legacy xml.
5402 * linux-aarch64-low.c (initialize_low_arch): Remove
5403 initialize_low_tdesc call.
5404 * linux-aarch64-tdesc-selftest.c: Remove file.
5405 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5406 * linux-x86-low.c (initialize_low_arch): Remove
5407 initialize_low_tdesc call.
5408 * linux-x86-tdesc-selftest.c: Remove file.
5409 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5410
7d10623d
TV
54112019-06-20 Tom de Vries <tdevries@suse.de>
5412
5413 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5414 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5415
8d6a48df
TV
54162019-06-19 Tom de Vries <tdevries@suse.de>
5417
5418 * debug.h (debug_write): Change return type to ssize_t.
5419 * debug.c (debug_write): Same.
5420
73cc7272
TT
54212019-06-14 Tom Tromey <tom@tromey.com>
5422
5423 * configure.ac: Use new path to gnulib.
5424 * configure: Rebuild.
5425 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5426 to gnulib.
5427
08f10e02
TT
54282019-06-11 Tom Tromey <tom@tromey.com>
5429
5430 * Makefile.in (SFILES): Add alloc.c.
5431 (OBS): Add alloc.o.
5432 (IPA_OBJS): Add alloc-ipa.o.
5433 (alloc-ipa.o): New target.
5434 (%.o: ../%.c): New pattern rule.
5435
422186a9
TT
54362019-06-10 Tom Tromey <tromey@adacore.com>
5437
5438 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5439 end warning with a newline.
5440 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5441 newline.
5442 * thread-db.c (attach_thread): Don't end warning with a newline.
5443 (thread_db_notice_clone): Likewise.
5444 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5445 newline.
5446 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5447 end warning with a newline.
5448
b02f78f9
PA
54492019-06-04 Pedro Alves <palves@redhat.com>
5450
5451 * server.c (captured_main): Use make_unique_xstrdup.
5452
88ed7edb
TT
54532019-06-02 Tom Tromey <tom@tromey.com>
5454
5455 * gdbreplay.c (fromhex): Remove.
5456 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5457
33a6bc35
TT
54582019-05-29 Tom Tromey <tromey@adacore.com>
5459
5460 * configure: Rebuild.
5461
e90a813d
KB
54622019-05-06 Kevin Buettner <kevinb@redhat.com>
5463
5464 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5465 sign extension code on 32-bit builds.
5466
353ea2d1
EZ
54672019-05-03 Eli Zaretskii <eliz@gnu.org>
5468
5469 * remote-utils.c:
5470 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5471
b494cdff
TT
54722019-04-19 Tom Tromey <tom@tromey.com>
5473
5474 * server.c (struct vstop_notif): Derive from notif_event.
5475 <base>: Remove.
5476 (queue_stop_reply): Update.
5477 (remove_all_on_match_ptid): Change type. Rewrite.
5478 (discard_queued_stop_replies): Rewrite.
5479 (in_queued_stop_replies_ptid): Change type.
5480 (in_queued_stop_replies): Rewrite.
5481 (notif_stop): Update.
5482 (queue_stop_reply_callback): Update.
5483 (captured_main): Don't call initialize_notif.
5484 (push_stop_notification): Update.
5485 * notif.c (notif_write_event, handle_notif_ack)
5486 (notif_event_enque, notif_push): Update.
5487 (notif_event_xfree, initialize_notif): Remove.
5488 * notif.h (struct notif_event): Include <list>, not
5489 "common/queue.h".
5490 (struct notif_server) <queue>: Now a std::list.
5491 (notif_event_p): Remove typedef.
5492 (initialize_notif): Don't declare.
5493 (struct notif_event): Add virtual destructor.
5494
a7e559cc
AH
54952019-04-17 Alan Hayward <alan.hayward@arm.com>
5496
5497 * ax.c (ax_vdebug): Call debug_printf.
5498 * debug.c (debug_write): New function.
5499 * debug.h (debug_write): New declaration.
5500 * linux-low.c (sigchld_handler): Call debug_write.
5501
aeb2e706
AH
55022019-04-17 Alan Hayward <alan.hayward@arm.com>
5503
5504 * debug.c (debug_set_output): New function.
5505 (debug_vprintf): Send output to debug_file.
5506 (debug_flush): Likewise.
5507 * debug.h (debug_set_output): New declaration.
5508 * server.c (handle_monitor_command): Add debug-file option.
5509 (captured_main): Likewise.
5510
c1bc0935
AH
55112019-04-17 Alan Hayward <alan.hayward@arm.com>
5512
5513 * debug.c (remote_debug): Add definition.
5514 * debug.h (remote_debug): Add declaration.
5515 * hostio.c (remote_debug): Remove declaration.
5516 * remote-utils.c (struct ui_file): Likewise.
5517 (remote_debug): Likewise.
5518 * remote-utils.h (remote_debug): Likewise,
5519 * server.c (remote_debug): Remove definition.
5520
3f52fdbc
KB
55212019-04-10 Kevin Buettner <kevinb@redhat.com>
5522
5523 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5524 when using a 64-bit gdbserver.
5525
b0319eaa
TT
55262019-04-09 Tom Tromey <tromey@adacore.com>
5527
5528 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5529
eedc3f4f
TT
55302019-04-08 Tom Tromey <tom@tromey.com>
5531
5532 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5533 throw.
5534 (linux_resume_one_lwp): Likewise.
5535
230d2906
TT
55362019-04-08 Tom Tromey <tom@tromey.com>
5537
5538 * gdbreplay.c: Update.
5539 * linux-low.c: Update.
5540 * server.c: Update.
5541
a70b8144
TT
55422019-04-08 Tom Tromey <tom@tromey.com>
5543
5544 * server.c: Use C++ exception handling.
5545 * linux-low.c: Use C++ exception handling.
5546 * gdbreplay.c: Use C++ exception handling.
5547
3d6e9d23
TT
55482019-04-08 Tom Tromey <tom@tromey.com>
5549
5550 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5551 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5552 (captured_main, main): Update.
5553 * gdbreplay.c (main): Update.
5554
0570503d
PFC
55552019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5556
5557 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5558 value in argument pointer, return 1 if the entry is found and 0
5559 otherwise. Move comment.
5560 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5561 * linux-low.h (linux_get_auxv): Declare.
5562 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5563
227a9e65
TT
55642019-04-05 Tom Tromey <tromey@adacore.com>
5565
5566 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5567 variables.
5568
69f4c9cc
AH
55692019-03-28 Alan Hayward <alan.hayward@arm.com>
5570
5571 * linux-low.c (AT_HWCAP2): Add define if not already included.
5572
974c89e0
AH
55732019-03-26 Alan Hayward <alan.hayward@arm.com>
5574
5575 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5576 (aarch64_arch_setup): Call linux_get_hwcap.
5577 * linux-arm-low.c (arm_get_hwcap): Remove function.
5578 (arm_read_description): Call linux_get_hwcap.
5579 * linux-low.c (linux_get_auxv): New function.
5580 (linux_get_hwcap): Likewise.
5581 (linux_get_hwcap2): Likewise.
5582 * linux-low.h (linux_get_hwcap): New declaration.
5583 (linux_get_hwcap2): Likewise.
5584 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5585 (ppc_arch_setup): Call linux_get_hwcap.
5586 * linux-s390-low.c (s390_get_hwcap): Remove function.
5587 (s390_arch_setup): Call linux_get_hwcap.
5588
1ef53e6b
AH
55892019-03-22 Alan Hayward <alan.hayward@arm.com>
5590 Jiong Wang <jiong.wang@arm.com>
5591
5592 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5593 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5594 to fail.
5595 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5596
ee4fbcfa
AH
55972019-03-22 Alan Hayward <alan.hayward@arm.com>
5598 Jiong Wang <jiong.wang@arm.com>
5599
5600 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5601 (aarch64_get_hwcap): New function.
5602 (aarch64_arch_setup): Read APIA hwcap.
5603
6dc0ebde
AH
56042019-03-22 Alan Hayward <alan.hayward@arm.com>
5605 Jiong Wang <jiong.wang@arm.com>
5606
5607 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5608 (initialize_low_tracepoint): Likewise.
5609 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5610 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5611 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5612 (aarch64_linux_read_description): Likewise.
5613 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5614
1163a4b7
JB
56152019-03-12 John Baldwin <jhb@FreeBSD.org>
5616
5617 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5618 i386_create_target_description for 'segments' parameter.
5619 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5620 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5621 * win32-i386-low.c (i386_arch_setup): Likewise.
5622
d3a70e03
TT
56232019-03-12 Tom Tromey <tromey@adacore.com>
5624
5625 * linux-low.c (iterate_over_lwps): Update.
5626
37991b4f
TT
56272019-03-06 Tom Tromey <tom@tromey.com>
5628
5629 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5630 (captured_main): Use SCOPE_EXIT.
5631
45950eb6
SDJ
56322019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5633
5634 * configure.srv: Use '$enable_unittest' instead of '$development'
5635 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5636 case.
5637
43ac54fc
TT
56382019-02-27 Tom Tromey <tromey@adacore.com>
5639
5640 * gdbreplay.c (logchar): Handle \r\n.
5641
df0da8a2
AH
56422019-02-07 Alan Hayward <alan.hayward@arm.com>
5643
5644 * linux-low.c (linux_attach): Add process before lwp.
5645 * server.c (attach_inferior): Check if already attached.
5646
1a5c2598
TT
56472019-02-07 Tom Tromey <tom@tromey.com>
5648
5649 * x86-tdesc.h: Rename include guard.
5650 * x86-low.h: Add include guard.
5651 * wincecompat.h: Rename include guard.
5652 * win32-low.h: Add include guard.
5653 * utils.h: Rename include guard.
5654 * tracepoint.h: Rename include guard.
5655 * tdesc.h: Rename include guard.
5656 * target.h: Rename include guard.
5657 * server.h: Rename include guard.
5658 * remote-utils.h: Rename include guard.
5659 * regcache.h: Rename include guard.
5660 * nto-low.h: Rename include guard.
5661 * notif.h: Add include guard.
5662 * mem-break.h: Rename include guard.
5663 * lynx-low.h: Add include guard.
5664 * linux-x86-tdesc.h: Add include guard.
5665 * linux-s390-tdesc.h: Add include guard.
5666 * linux-ppc-tdesc-init.h: Add include guard.
5667 * linux-low.h: Add include guard.
5668 * linux-aarch64-tdesc.h: Add include guard.
5669 * linux-aarch32-low.h: Add include guard.
5670 * inferiors.h: Rename include guard.
5671 * i387-fp.h: Rename include guard.
5672 * hostio.h: Rename include guard.
5673 * gdbthread.h: Rename include guard.
5674 * gdb_proc_service.h: Rename include guard.
5675 * event-loop.h: Rename include guard.
5676 * dll.h: Rename include guard.
5677 * debug.h: Rename include guard.
5678 * ax.h: Rename include guard.
5679
956cc47c
SN
56802018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5681
5682 PR gdb/23985
5683 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5684 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5685
a0707f3c
TT
56862019-01-25 Tom Tromey <tom@tromey.com>
5687
5688 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5689
0747795c
TT
56902019-01-25 Tom Tromey <tom@tromey.com>
5691
5692 * win32-low.c: Fix common/ includes.
5693 * win32-i386-low.c: Fix common/ includes.
5694 * tracepoint.c: Fix common/ includes.
5695 * thread-db.c: Fix common/ includes.
5696 * target.h: Fix common/ includes.
5697 * symbol.c: Fix common/ includes.
5698 * spu-low.c: Fix common/ includes.
5699 * server.h: Fix common/ includes.
5700 * server.c: Fix common/ includes.
5701 * remote-utils.c: Fix common/ includes.
5702 * regcache.h: Fix common/ includes.
5703 * regcache.c: Fix common/ includes.
5704 * nto-x86-low.c: Fix common/ includes.
5705 * notif.h: Fix common/ includes.
5706 * mem-break.h: Fix common/ includes.
5707 * lynx-low.c: Fix common/ includes.
5708 * lynx-i386-low.c: Fix common/ includes.
5709 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5710 * linux-x86-low.c: Fix common/ includes.
5711 * linux-low.c: Fix common/ includes.
5712 * inferiors.h: Fix common/ includes.
5713 * i387-fp.c: Fix common/ includes.
5714 * hostio.c: Fix common/ includes.
5715 * hostio-errno.c: Fix common/ includes.
5716 * gdbthread.h: Fix common/ includes.
5717 * gdbreplay.c: Fix common/ includes.
5718 * fork-child.c: Fix common/ includes.
5719 * event-loop.c: Fix common/ includes.
483ab96a 5720 * ax.c (enum gdb_agent_op): Fix common/ includes.
0747795c 5721
be6d4f74
TT
57222019-01-21 Tom Tromey <tom@tromey.com>
5723
5724 * tracepoint.c: Fix includes.
5725 * remote-utils.c: Fix includes.
5726 * linux-x86-low.c: Fix includes.
5727
66d91b39
JB
57282019-01-01 Joel Brobecker <brobecker@adacore.com>
5729
5730 * gdbreplay.c (gdbreplay_version): Update copyright year in
5731 version message.
5732 * server.c (gdbserver_version): Likewise.
5733
754e3168
AH
57342018-12-05 Alan Hayward <alan.hayward@arm.com>
5735
5736 * linux-low.c (add_lwp): Switch ordering.
5737
d105de22
TT
57382018-11-29 Tom Tromey <tom@tromey.com>
5739
5740 * win32-low.c (win32_join): Take pid, not process.
5741 * target.h (struct target_ops) <join>: Change argument type.
5742 (join_inferior): Change argument name.
5743 * spu-low.c (spu_join): Take pid, not process.
5744 * server.c (handle_detach): Preserve pid before destroying
5745 process.
5746 * lynx-low.c (lynx_join): Take pid, not process.
5747 * linux-low.c (linux_join): Take pid, not process.
5748
50138245
AH
57492018-11-23 Alan Hayward <alan.hayward@arm.com>
5750
5751 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5752 (aarch64_cannot_fetch_register): Likewise.
5753 (struct linux_target_ops): Update references.
5754
64f57f3d
PFC
57552018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5756
5757 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5758
8d619c01
EBM
57592018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5760
5761 * configure.srv (ipa_ppc_linux_regobj): Add
5762 powerpc-isa207-htm-vsx32l-ipa.o and
5763 powerpc-isa207-htm-vsx64l-ipa.o.
5764 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5765 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5766 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5767 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5768 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5769 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5770 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5771 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5772 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5773 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5774 (init_registers_powerpc_isa207_htm_vsx32l)
5775 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5776 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5777 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5778 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5779 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5780 (ppc_store_tm_ctarregset): New functions.
5781 (ppc_regsets): Add entries for HTM regsets.
5782 (ppc_arch_setup): Set htm in features struct when needed. Set
5783 sizes for the HTM regsets.
5784 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5785 (initialize_low_arch): Call
5786 init_registers_powerpc_isa207_htm_vsx32l and
5787 init_registers_powerpc_isa207_htm_vsx64l.
5788 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5789 PPC_TDESC_ISA207_HTM_VSX.
5790 (initialize_low_tracepoint): Call
5791 init_registers_powerpc_isa207_htm_vsx32l and
5792 init_registers_powerpc_isa207_htm_vsx64l.
5793
232bfb86
EBM
57942018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5795
5796 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5797 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5798 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5799 (ppc_store_pmuregset): New functions.
5800 (ppc_regsets): Add entries for ebb and pmu regsets.
5801 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5802 pmu regsets are available. Set sizes for these regsets.
5803
f2cf6173
EBM
58042018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5805
5806 * configure.srv (ipa_ppc_linux_regobj): Add
5807 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5808 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5809 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5810 rs6000/powerpc-isa207-vsx32l.xml, and
5811 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5812 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5813 <PPC_TDESC_ISA207_VSX>: New enum value.
5814 (init_registers_powerpc_isa207_vsx32l): Declare.
5815 (init_registers_powerpc_isa207_vsx64l): Declare.
5816 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5817 (ppc_store_tarregset): New function.
5818 (ppc_regsets): Add entry for the TAR regset.
5819 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5820 size for the TAR regsets.
5821 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5822 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5823 and init_registers_powerpc_isa207_vsx64l.
5824 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5825 (initialize_low_tracepoint): Call
5826 init_registers_powerpc_isa207_vsx32l and
5827 init_registers_powerpc_isa207_vsx64l.
5828
7ca18ed6
EBM
58292018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5830 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5831
5832 * configure.srv (ipa_ppc_linux_regobj): Add
5833 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5834 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5835 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5836 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5837 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5838 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5839 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5840 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5841 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5842 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5843 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5844 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5845 (ppc_hwcap): Add comment.
5846 (ppc_hwcap2): New global.
5847 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5848 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5849 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5850 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5851 when needed. Set sizes for the the DSCR and PPR regsets.
5852 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5853 (initialize_low_arch): Call
5854 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5855 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5856 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5857 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5858 (initialize_low_tracepoint): Call
5859 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5860 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5861
5c849b22
PFC
58622018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5863
5864 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5865
8ecfd7bd
SDJ
58662018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5867 Simon Marchi <simark@simark.ca>
5868
5869 * acinclude.m4: Include "../selftest.m4".
5870 * configure: Regenerate.
5871 * configure.ac: Use "GDB_AC_SELFTEST".
5872 * configure.srv: Use "$enable_unittests" instead of
5873 "$development" when checking whether unit tests have been
5874 enabled.
5875 * server.c (captured_main): Update message informing that
5876 selftests have been disabled.
5877
96643e35
TT
58782018-10-04 Tom Tromey <tom@tromey.com>
5879
5880 * configure: Rebuild.
5881
da4ae14a
TT
58822018-10-04 Tom Tromey <tom@tromey.com>
5883
5884 * server.c (handle_status): Rename inner "thread".
5885 (process_serial_event): Declare "res" in 'm' case.
5886 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5887 (iterate_over_lwps): Rename inner "thread".
5888 (linux_qxfer_libraries_svr4): Rename inner "len".
5889 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5890
7c619dbd
GB
58912018-10-01 Gary Benson <gbenson@redhat.com>
5892
5893 * gdb_proc_service.h: Moved common code to
5894 common/gdb_proc_service.h.
5895
3795e814
GB
58962018-10-01 Gary Benson <gbenson@redhat.com>
5897
5898 * gdb_proc_service.h: Synchronize comments and whitespace with
5899 GDB's version of this file.
5900
49b036f1
TT
59012018-09-25 Tom Tromey <tom@tromey.com>
5902
5903 * configure: Rebuild.
5904 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5905
8ff03f0b
SM
59062018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5907
5908 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5909 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5910 ($(IPA_LIB)): Sort IPA_OBJS.
5911
a1cd91dc
SM
59122018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5913
5914 * Makefile.in: Remove references to $(ADD_DEPS).
5915
752312ba
TT
59162018-09-16 Tom Tromey <tom@tromey.com>
5917
5918 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5919 variables.
5920 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5921 variables.
5922
f1628857
TT
59232018-09-05 Tom Tromey <tom@tromey.com>
5924
5925 * configure: Rebuild.
5926
ad202fcc
SM
59272018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5928
5929 PR build/23399
5930 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5931
d3d8724a
TT
59322018-08-27 Tom Tromey <tom@tromey.com>
5933
5934 PR build/23087:
5935 * configure: Rebuild.
5936
b4f183d2
TT
59372018-08-27 Tom Tromey <tom@tromey.com>
5938
5939 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5940 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5941 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5942 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5943 (s390x_emit_stack_adjust): Add casts to unsigned char.
5944
4e2aa472
SM
59452018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5946
5947 PR gdb/23374
5948 PR gdb/23375
5949 * server.h (struct client_state) <disable_randomization>:
5950 Initialize to 1.
5951
cf4088a9
SM
59522018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5953
5954 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5955 variable.
5956 (mips_supply_ptrace_register): Likewise.
5957
a0de763e
TT
59582018-07-22 Tom Tromey <tom@tromey.com>
5959
5960 * configure: Rebuild.
5961
b0a7723d
TT
59622018-07-22 Tom Tromey <tom@tromey.com>
5963
5964 * win32-low.c (win32_create_inferior): Remove unused variables.
5965 * gdbreplay.c (remote_open): Remove unused variable.
5966 * remote-utils.c (remote_prepare): Remove unused variable.
5967 * x86-tdesc.h (X86_TDESC_H): Define.
5968 (amd64_expedite_regs): Define conditionally.
5969 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5970 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5971 * remote-utils.c (readchar): Remove unused variable.
5972
a780ef4f
PA
59732018-07-13 Pedro Alves <palves@redhat.com>
5974
5975 * linux-low.c (linux_kill): Change parameter to process_info
5976 pointer instead of pid. Adjust.
5977 * lynx-low.c (lynx_kill): Likewise.
5978 * nto-low.c (nto_kill): Likewise.
5979 * spu-low.c (spu_kill): Likewise.
5980 * win32-low.c (win32_kill): Likewise.
5981 * server.c (handle_v_kill, kill_inferior_callback)
5982 (detach_or_kill_for_exit): Adjust.
5983 * target.c (kill_inferior): Change parameter to process_info
5984 pointer instead of pid. Adjust.
5985 * target.h (struct target_ops) <kill>: Change parameter to
5986 process_info pointer instead of pid. Adjust all implementations
5987 and callers.
5988 (kill_inferior): Likewise.
5989
ef2ddb33
PA
59902018-07-13 Pedro Alves <palves@redhat.com>
5991
5992 * linux-low.c (linux_detach, linux_join): Change parameter to
5993 process_info pointer instead of pid. Adjust.
5994 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5995 * nto-low.c (nto_detach): Likewise.
5996 * spu-low.c (spu_detach, spu_join): Likewise.
5997 * win32-low.c (win32_detach, win32_join): Likewise.
5998 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5999 * target.h (struct target_ops) <detach, join>: Change parameter to
6000 process_info pointer instead of pid. Adjust all implementations
6001 and callers.
6002 (detach_inferior, join_inferior): Rename 'pid' parameter to
6003 'proc'.
6004
c7ab0aef
SDJ
60052018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6006 Jan Kratochvil <jan.kratochvil@redhat.com>
6007 Paul Fertser <fercerpav@gmail.com>
6008 Tsutomu Seki <sekiriki@gmail.com>
6009
6010 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
6011 (OBS): Add 'common/netstuff.o'.
6012 (GDBREPLAY_OBS): Likewise.
6013 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
6014 (remote_open): Implement support for IPv6
6015 connections.
6016 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
6017 and 'wspiapi.h'.
6018 (handle_accept_event): Accept connections from IPv6 sources.
6019 (remote_prepare): Handle IPv6-style hostnames; implement
6020 support for IPv6 connections.
6021 (remote_open): Implement support for printing connections from
6022 IPv6 sources.
6023
31445d10
PA
60242018-07-11 Pedro Alves <palves@redhat.com>
6025
6026 PR gdb/23377
6027 * mem-break.c (any_persistent_commands): Add process_info
6028 parameter and use it instead of relying on the current process.
6029 Change return type to bool.
6030 * mem-break.h (any_persistent_commands): Add process_info
6031 parameter and change return type to bool.
6032 * server.c (handle_detach): Remove require_running_or_return call.
6033 Look up the process_info for the process we're about to detach.
6034 If not found, return back error to GDB. Adjust
6035 any_persistent_commands call to pass down a process pointer.
6036
cb197132
PA
60372018-07-11 Pedro Alves <palves@redhat.com>
6038
6039 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6040 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6041 instead of collect_register_by_name.
6042 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6043 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6044
1b919490
VB
60452018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6046 Pedro Alves <palves@redhat.com>
6047
6048 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6049
d7e15655
TT
60502018-07-03 Tom Tromey <tom@tromey.com>
6051
6052 * linux-low.c: Update.
6053 * lynx-low.c: Update.
6054 * mem-break.c: Update.
6055 * nto-low.c: Update.
6056 * remote-utils.c: Update.
6057 * server.c: Update.
6058 * spu-low.c: Update.
6059 * target.c: Update.
6060 * win32-low.c: Update.
6061
26a57c92
TT
60622018-07-03 Tom Tromey <tom@tromey.com>
6063
6064 * server.c: Update.
6065
0e998d96
TT
60662018-07-03 Tom Tromey <tom@tromey.com>
6067
6068 * linux-low.c: Update.
6069
cc6bcb54
TT
60702018-07-03 Tom Tromey <tom@tromey.com>
6071
6072 * target.c: Update.
6073
e38504b3
TT
60742018-07-03 Tom Tromey <tom@tromey.com>
6075
6076 * linux-low.c: Update.
6077 * linux-mips-low.c: Update.
6078 * lynx-low.c: Update.
6079 * nto-low.c: Update.
6080 * remote-utils.c: Update.
6081 * server.c: Update.
6082 * spu-low.c: Update.
6083 * target.c: Update.
6084 * thread-db.c: Update.
6085
e99b03dc
TT
60862018-07-03 Tom Tromey <tom@tromey.com>
6087
6088 * linux-low.c: Update.
6089 * linux-mips-low.c: Update.
6090 * lynx-low.c: Update.
6091 * mem-break.c: Update.
6092 * nto-low.c: Update.
6093 * remote-utils.c: Update.
6094 * server.c: Update.
6095 * spu-low.c: Update.
6096 * target.c: Update.
6097 * tracepoint.c: Update.
6098
f2907e49
TT
60992018-07-03 Tom Tromey <tom@tromey.com>
6100
6101 * linux-low.c: Update.
6102 * linux-ppc-low.c: Update.
6103 * linux-x86-low.c: Update.
6104 * proc-service.c: Update.
6105 * server.c: Update.
6106 * spu-low.c: Update.
6107 * thread-db.c: Update.
6108 * win32-low.c: Update.
6109
fd79271b
TT
61102018-07-03 Tom Tromey <tom@tromey.com>
6111
6112 * linux-low.c: Update.
6113 * lynx-low.c: Update.
6114 * nto-low.c: Update.
6115 * remote-utils.c: Update.
6116 * spu-low.c: Update.
6117 * thread-db.c: Update.
6118 * win32-low.c: Update.
6119
c0867626
SDJ
61202018-06-29 Joel Brobecker <brobecker@adacore.com>
6121
6122 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6123 parameter in call to 'amd64_create_target_description'.
6124
2512d7ef
JK
61252018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6126
6127 * x86-tdesc.h: Remove executable permission flag.
6128
d0ac1c44
SM
61292018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6130
6131 * configure.ac: Remove AC_PREREQ, add missing quoting.
6132 * configure: Re-generate.
6133 * config.in: Re-generate.
6134 * aclocal.m4: Re-generate.
6135
c4eb05ff
SM
61362018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6137
6138 * tracepoint.h (current_traceframe): Remove declaration.
6139
02895270
AH
61402018-06-18 Alan Hayward <alan.hayward@arm.com>
6141
6142 * linux-aarch64-low.c (is_sve_tdesc): New function.
6143 (aarch64_sve_regs_copy_to_regcache): Likewise.
6144 (aarch64_sve_regs_copy_from_regcache): Likewise.
6145 (aarch64_regs_info): Add SVE checks.
6146 (initialize_low_arch): Initialize SVE.
6147
e9902bfc
AH
61482018-06-18 Alan Hayward <alan.hayward@arm.com>
6149
6150 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6151
fefa175e
AH
61522018-06-11 Alan Hayward <alan.hayward@arm.com>
6153
6154 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6155 (initialize_low_tracepoint): Likewise
6156 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6157 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6158 param.
6159 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6160 checks.
6161 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6162
b91ad3ff
AH
61632018-06-11 Alan Hayward <alan.hayward@arm.com>
6164
6165 * server.h (PBUFSIZ): Increase size
6166
f868386e
AH
61672018-06-11 Alan Hayward <alan.hayward@arm.com>
6168
6169 * regcache.c (regcache::raw_compare): New function.
6170 * regcache.h (regcache::raw_compare): New declaration.
6171
9c861883
AH
61722018-06-11 Alan Hayward <alan.hayward@arm.com>
6173
6174 * regcache.c (new_register_cache): Use new.
6175 (free_register_cache): Use delete.
6176 (register_data): Use const.
6177 (supply_register): Move body inside regcache.
6178 (regcache::raw_supply): New override function.
6179 (collect_register): Move body inside regcache.
6180 (regcache::raw_collect): New override function.
6181 (regcache::get_register_status): New override function.
6182 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6183
40591844
TT
61842018-06-09 Tom Tromey <tom@tromey.com>
6185
6186 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6187 declare queue.
6188 (event_queue): Use std::queue.
6189 (gdb_event_xfree): Remove.
6190 (initialize_event_loop, process_event, wait_for_event): Update.
6191
6341380d
SC
61922018-06-08 Stan Cox <scox@redhat.com>
6193
6194 * win32-low.c (win32_create_inferior): last_ptid and last_status
6195 moved to client_state.
6196
03349c93
PA
61972018-06-08 Pedro Alves <palves@redhat.com>
6198
6199 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6200 common/common-exceptions.o, common/common-utils.o,
6201 common/errors.o, common/print-utils.o and utils.o.
6202 * gdbreplay.c: Include "common-defs.h" instead of the two
6203 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6204 string.h or alloca.h.
6205 (perror_with_name): Delete.
6206 (remote_open): Use xstrdup instead of strdup.
6207 (main): Rename to ...
6208 (captured_main): ... this.
6209 (main): New.
6210
8dcc53b3
TT
62112018-06-08 Tom Tromey <tom@tromey.com>
6212
6213 * linux-low.c (linux_low_read_btrace): Update.
6214
c12a5089
SC
62152018-06-04 Stan Cox <scox@redhat.com>
6216
6217 * server.h (struct client_state): New.
6218 * server.c (cont_thread, general_thread, multi_process)
6219 (report_fork_events, report_vfork_events, report_exec_events)
6220 (report_thread_events, swbreak_feature, hwbreak_feature)
6221 (vCont_supported, disable_randomization, pass_signals)
6222 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6223 Moved to client_state.
6224 * remote-utils.c (remote_debug, noack_mode)
6225 (transport_is_reliable): Moved to client_state.
6226 * tracepoint.c (current_traceframe): Moved to client_state.
6227
6228 Update all callers.
6229 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6230 linux-low.c, remote-utils.h, target.c: Use client_state.
6231
122394f1
AH
62322018-05-31 Alan Hayward <alan.hayward@arm.com>
6233
6234 * configure.srv: Add new c/h file.
6235
95228a0d
AH
62362018-05-31 Alan Hayward <alan.hayward@arm.com>
6237
6238 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6239 null VQ.
6240
d8dab6c3
MR
62412018-05-25 Maciej W. Rozycki <macro@mips.com>
6242
6243 * gdb.arch/mips-fpregset-core.exp: New test.
6244 * gdb.arch/mips-fpregset-core.c: New test source.
6245
81e25b7c
EK
62462018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6247
6248 PR server/23198
6249 * hostio.c (require_int): Do not report overflow for integers
6250 between 0xfffffff and 0x7fffffff.
6251
7e947ad3
MR
62522018-05-22 Maciej W. Rozycki <macro@mips.com>
6253
6254 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6255 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6256 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6257 functions.
6258 (the_low_target): Wire them.
6259
1d75a658
PFC
62602018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6261
6262 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6263 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6264 mode. Call collect_register_by_name with vscr using
6265 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6266 (ppc_store_vrregset): Add and set vscr_offset variable as in
6267 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6268 vscr_offset.
6269
d078308a
PFC
62702018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6271
6272 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6273 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6274 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6275
7273b5fc
PFC
62762018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6277
6278 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6279 (ppc_store_vsxregset): Likewise.
6280 (ppc_fill_vrregset): Likewise.
6281 (ppc_store_vrregset): Likewise.
6282 (ppc_fill_evrregset): Likewise.
6283 (ppc_store_evrregset): Likewise.
6284 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6285 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6286 needed.
6287
2e077f5e
PFC
62882018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6289
6290 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6291 wordsize of the inferior. Call ppc_linux_target_wordsize.
6292
bd64614e
PFC
62932018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6294
6295 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6296 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6297 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6298 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6299 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6300 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6301 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6302 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6303 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6304 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6305 (tdesc_powerpc_e500l): Remove.
6306 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6307 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6308 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6309 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6310 linux-ppc-tdesc.h.
6311 (ppc_arch_setup): Remove target description matching code. Fill a
6312 ppc_linux_features struct and call ppc_linux_match_description
6313 with it.
6314
75d74cca
MR
63152018-05-22 Maciej W. Rozycki <macro@mips.com>
6316
6317 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6318 width of the requested register exceeds the width of the
6319 `ptrace' data type.
6320 (mips_cannot_store_register): Likewise.
6321
e4439e43
MR
63222018-05-21 Maciej W. Rozycki <macro@mips.com>
6323
6324 * linux-mips-low.c (mips_fetch_register): New function. Update
6325 preceding comment.
6326 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6327 (the_low_target): Wire `mips_fetch_register'.
6328
55271bf9
JB
63292018-05-10 Joel Brobecker <brobecker@adacore.com>
6330
6331 * lynx-i386-low.c (LYNXOS_178): New macro.
6332 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6333 the layout on LynxOS-178.
6334 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6335 handle floating point registers that are not supported by
6336 LynxOS-178.
6337
1a34f210
TT
63382018-05-10 Tom Tromey <tom@tromey.com>
6339
6340 * configure: Rebuild.
6341
190852c8
JB
63422018-05-10 Joel Brobecker <brobecker@adacore.com>
6343
6344 PR server/23158:
6345 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6346 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6347 Use it to set the expedite_regs field in the given tdesc.
6348 * x86-tdesc.h: New file.
6349 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6350 Adjust following the addition of the new expedite_regs parameter
6351 to init_target_desc.
6352 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6353 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6354 (i386_linux_read_description, amd64_linux_read_description):
6355 Adjust following the addition of the new expedite_regs parameter
6356 to init_target_desc.
6357 * lynx-i386-low.c: #include "x86-tdesc.h".
6358 (lynx_i386_arch_setup): Adjust following the addition of the new
6359 expedite_regs parameter to init_target_desc.
6360 * nto-x86-low.c: #include "x86-tdesc.h".
6361 (nto_x86_arch_setup): Adjust following the addition of the new
6362 expedite_regs parameter to init_target_desc.
6363 * win32-i386-low.c: #include "x86-tdesc.h".
6364 (i386_arch_setup): Adjust following the addition of the new
6365 expedite_regs parameter to init_target_desc.
6366
7dbac825
JB
63672018-05-10 Joel Brobecker <brobecker@adacore.com>
6368
6369 PR server/23158:
6370 * win32-low.c (win32_create_inferior): Add call to my_wait
6371 setting last_status global.
6372
906994d9
JB
63732018-05-10 Joel Brobecker <brobecker@adacore.com>
6374
6375 PR server/23158:
6376 * win32-low.c (create_process): Only call gdb_tilde_expand if
6377 inferior_cwd is not NULL.
6378
8ee22052
AB
63792018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6380
6381 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6382 registers to the cache if their values have changed.
6383 (i387_xsave_to_cache): Provide default values for x87 control
6384 registers when these features are available, but disabled.
6385 * regcache.c (supply_register_by_name_zeroed): New function.
6386 * regcache.h (supply_register_by_name_zeroed): Declare new
6387 function.
6388
aff689d3
TT
63892018-05-07 Tom Tromey <tom@tromey.com>
6390
6391 * configure: Rebuild.
6392
85e26832
TT
63932018-05-04 Tom Tromey <tom@tromey.com>
6394
6395 * configure: Rebuild.
6396
a3b60e45
JK
63972018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6398 Pedro Alves <palves@redhat.com>
6399
6400 * linux-aarch64-low.c (aarch64_stopped_data_address):
6401 Likewise.
6402
632e107b
TT
64032018-04-27 Tom Tromey <tom@tromey.com>
6404
6405 * configure: Rebuild.
6406
458412c3
TT
64072018-04-23 Tom Tromey <tom@tromey.com>
6408
6409 * configure: Rebuild.
6410
f31c089e
SM
64112018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6412
6413 * Makefile.in (depcomp): Add "..".
6414 (all_deps_files): New and use it.
6415
b319b098
AH
64162018-04-18 Alan Hayward <alan.hayward@arm.com>
6417
6418 * configure.srv (aarch64*-*-linux*): Don't include xml.
6419 (i[34567]86-*-cygwin*): Likewise.
6420 (i[34567]86-*-linux*): Likewise.
6421 (i[34567]86-*-lynxos*): Likewise.
6422 (i[34567]86-*-mingw32ce*): Likewise.
6423 (i[34567]86-*-mingw*): Likewise.
6424 (i[34567]86-*-nto*): Likewise.
6425 (tic6x-*-uclinux): Likewise.
6426 (x86_64-*-linux*): Likewise.
6427 (x86_64-*-mingw*): Likewise.
6428 (x86_64-*-cygwin*): Likewise.
6429
3b74854b
AH
64302018-04-18 Alan Hayward <alan.hayward@arm.com>
6431
6432 * tdesc.c: Remove xml parameter.
6433
e98577a9
AH
64342018-04-18 Alan Hayward <alan.hayward@arm.com>
6435
6436 * server.c (get_features_xml): Remove cast.
6437 * tdesc.c (void target_desc::accept): Fill in function.
6438 (tdesc_get_features_xml): Remove old xml creation.
6439 (print_xml_feature::visit_pre): Add xml vistor.
6440 * tdesc.h (struct target_desc): Make xmltarget mutable.
6441 (tdesc_get_features_xml): Remove declaration.
6442
d278f585
AH
64432018-04-18 Alan Hayward <alan.hayward@arm.com>
6444
6445 * tdesc.c (tdesc_architecture_name): Add new function.
6446 (tdesc_osabi_name): Likewise.
6447 (tdesc_get_features_xml): Use new functions.
6448
eee8a18d
AH
64492018-04-18 Alan Hayward <alan.hayward@arm.com>
6450
6451 * tdesc.c (tdesc_create_flags): Remove.
6452 (tdesc_add_flag): Likewise.
6453 (tdesc_named_type): Likewise.
6454 (tdesc_create_union): Likewise.
6455 (tdesc_create_struct): Likewise.
6456 (tdesc_create_vector): Likewise.
6457 (tdesc_add_bitfield): Likewise.
6458 (tdesc_add_field): Likewise.
6459 (tdesc_set_struct_size): Likewise.
6460
82ec9bc7
AH
64612018-04-18 Alan Hayward <alan.hayward@arm.com>
6462
6463 * tdesc.c (~target_desc): Remove implictly deleted items.
6464 (init_target_desc): Iterate all features.
6465 (tdesc_get_features_xml): Use vector.
6466 (tdesc_create_feature): Create feature.
6467 * tdesc.h (tdesc_feature) Remove
6468 (target_desc): Add features.
6469
ea3e7d71
AH
64702018-04-18 Alan Hayward <alan.hayward@arm.com>
6471
6472 * Makefile.in: Add common/tdesc.c
6473 * tdesc.c (init_target_desc): init all reg_defs from register
6474 vector.
6475 (tdesc_create_reg): Create tdesc_reg.
6476 * tdesc.h (tdesc_feature): Add register vector.
6477
17d08cd4
SM
64782018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6479
6480 * tdesc.h (struct target_desc) <features>: Change type to
6481 std::vector<std::string>.
6482 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6483 changes.
6484 (tdesc_get_features_xml): Likewise.
6485 (tdesc_create_feature): Likewise.
6486
5cd3e386
AH
64872018-03-26 Alan Hayward <alan.hayward@arm.com>
6488
6489 * regcache.c (find_register_by_number): Return a ref.
6490 (find_regno): Use references.
6491 (register_size): Likewise.
6492 (register_data): Likewise.
6493 * tdesc.c (target_desc::~target_desc): Remove free calls.
6494 (target_desc::operator==): Use std::vector compare.
6495 (init_target_desc): Use reference.
6496 (tdesc_create_reg): Use reg constructors.
6497 * tdesc.h (struct target_desc): Replace pointer with object.
6498
dff7492c
AH
64992018-03-23 Alan Hayward <alan.hayward@arm.com>
6500
6501 * regcache.c (find_register_by_number): Make static.
6502 (find_regno): Use find_register_by_number
6503 * regcache.h (struct reg): Remove declaration.
6504
d80e5242
AH
65052018-03-23 Alan Hayward <alan.hayward@arm.com>
6506
6507 * tdesc.c (target_desc::~target_desc): Move to here.
6508 (target_desc::operator==): Likewise.
6509 * tdesc.h (target_desc::~target_desc): Move from here.
6510 (target_desc::operator==): Likewise.
6511
f69c5afb
AA
65122018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6513
6514 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6515
ce29f843
AA
65162018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6517
6518 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6519 S390_TDESC_GS.
6520 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6521 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6522 and init_registers_s390_gs_linux64.
6523
c49bd90b
AA
65242018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6525
6526 * linux-s390-low.c (s390_fill_gs): Remove function.
6527 (s390_fill_gsbc): Remove function.
6528 (s390_regsets): Set fill functions for the guarded storage regsets
6529 to NULL.
6530
7edb9bd3
AA
65312018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6532
6533 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6534 the word size. Add comment.
6535 (s390_get_wordsize): New function.
6536 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6537 pswm with it. Instead, use s390_get_wordsize to determine the
6538 word size first and derive the correct tdesc from that directly.
6539
39be3c7e
SM
65402018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6541
6542 * Makefile.in: Include silent-rules.mk.
6543 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6544 (COMPILE): Add ECHO_CXX.
6545 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6546 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6547 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6548 (version-generated.c): Add ECHO_GEN.
6549 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6550 (IPAGENT_COMPILE): Add ECHO_CXX.
6551 (%-generated.c): Add ECHO_REGDAT.
6552
3ae9ce5d
TT
65532018-03-14 Tom Tromey <tom@tromey.com>
6554
6555 PR cli/14977:
6556 * ax.c (ax_printf): Special case for NULL.
6557
e6a58aa8
SM
65582018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6559
6560 * linux-low.c (linux_qxfer_libraries_svr4): Use
6561 xml_escape_text_append.
6562
f6e8a41e
SM
65632018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6564
6565 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6566
b9671caf
SM
65672018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6568
6569 * server.c (handle_general_set): Remove unnecessary xstrdup.
6570
e80aaf61
SM
65712018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6572
6573 * server.c (parse_debug_format_options): Adjust to
6574 delim_string_to_char_ptr_vec changes.
6575 * thread-db.c (thread_db_load_search): Adjust to
6576 dirnames_to_char_ptr_vec changes.
6577
b1223e78
MM
65782018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6579
6580 * target.h (target_enable_btrace, target_disable_btrace)
6581 (target_read_btrace, target_read_btrace_conf): Turn macro into
6582 inline function. Throw error if target method is not defined.
6583 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6584 check for btrace target method. Be prepared to handle exceptions
6585 from btrace target methods.
6586
81561546
SDJ
65872018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6588
6589 * server.c (captured_main): Change order of error message printed
6590 when the current working directory cannot be found.
6591
25e3c82c
SDJ
65922018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6593
6594 * server.c: Include "filenames.h" and "pathstuff.h".
6595 (program_name): Delete variable.
6596 (program_path): New anonymous class.
6597 (get_exec_wrapper): Use "program_path" instead of
6598 "program_name".
6599 (handle_v_run): Likewise.
6600 (captured_main): Likewise.
6601 (process_serial_event): Likewise.
6602
b4987c95
SDJ
66032018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6604
6605 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6606 (OBJS): Add "pathstuff.o".
6607 * server.c (current_directory): New global variable.
6608 (captured_main): Initialize "current_directory".
6609
f46cd62a
AH
66102018-02-26 Alan Hayward <alan.hayward@arm.com>
6611
6612 * tdesc.c: Use common/tdesc.h.
6613 * tdesc.h: Likewise.
6614
a543c5ca
AH
66152018-02-20 Alan Hayward <alan.hayward@arm.com>
6616 Simon Marchi <simon.marchi@ericsson.com>
6617
6618 * Makefile.in: Switch order of make rules.
6619
b5884fa7
AH
66202018-02-19 Alan Hayward <alan.hayward@arm.com>
6621
6622 * Makefile.in: Add common directory in build.
6623 * configure.ac: Add common reference.
6624 * configure: Regenerate.
6625
de6242d3
MM
66262018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6627
6628 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6629 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6630 * spu-low.c (spu_target_ops): Likewise.
6631 * win32-low.c (win32_target_ops): Likewise.
6632 * server.c (supported_btrace_packets): Report packets unconditionally.
6633 * target.h (target_ops) <supports_btrace>: Remove.
6634 (target_supports_btrace): Remove.
6635
9ee23a85
MM
66362018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6637
6638 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6639 (handle_btrace_disable): Change return type to void. Use exceptions
6640 to report errors.
6641 (handle_btrace_general_set): Catch exception and copy message to
6642 return message.
6643
8ce47547
TT
66442018-02-08 Tom Tromey <tom@tromey.com>
6645
6646 * linux-low.c (install_software_single_step_breakpoints): Use
6647 make_scoped_restore.
6648 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6649 (do_restore_current_thread_cleanup): Remove.
6650 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6651 declare.
6652
45dd3607
TT
66532018-02-08 Tom Tromey <tom@tromey.com>
6654
6655 * mem-break.c (set_raw_breakpoint_at): Use
6656 gdb::unique_xmalloc_ptr.
6657
e671cd59
PA
66582018-01-30 Pedro Alves <palves@redhat.com>
6659
6660 PR gdb/13211
6661 * target.c (target_terminal::terminal_state): Rename to ...
6662 (target_terminal::m_terminal_state): ... this.
6663
a0aad537
JC
66642018-01-19 James Clarke <jrtc27@jrtc27.com>
6665
6666 * linux-low.c (handle_extended_wait): Surround call to
6667 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6668
4d9b86e1
SM
66692018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6670
6671 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6672 linux_ptrace_attach_fail_reason_string now returning an
6673 std::string.
6674 (linux_attach): Likewise.
6675 * thread-db.c (attach_thread): Likewise.
6676
f517c180
EA
66772018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6678
6679 PR gdb/21559
6680 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6681 checking for fs_base/gs_base fields in struct user_regs_struct.
6682 * configure: Regenerate.
6683
9a70f35c
YQ
66842018-01-16 Yao Qi <yao.qi@linaro.org>
6685
6686 PR gdb/18749
6687 * linux-low.c (fetch_register): Call supply_register instead of
6688 error.
6689
605fd3c6
YQ
66902018-01-08 Yao Qi <yao.qi@linaro.org>
6691 Simon Marchi <simon.marchi@ericsson.com>
6692
6693 * Makefile.in (OBS): Remove selftest.o.
6694 * configure.ac: Set srv_selftest_objs if $development is true.
6695 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6696 * configure: Re-generated.
6697 * server.c (captured_main): Wrap variable selftest_filter with
6698 GDB_SELF_TEST.
6699
2cc05030
SM
67002018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6701
6702 * server.c (parse_debug_format_options): Return std::string.
6703 (handle_monitor_command, captured_main): Adjust.
6704
e379cee6
PA
67052018-01-05 Pedro Alves <palves@redhat.com>
6706
6707 PR gdb/18653
6708 * server.c (captured_main): Pass quiet=false to
6709 save_original_signals_state.
6710
82e1e79a
JB
67112018-01-01 Joel Brobecker <brobecker@adacore.com>
6712
6713 * gdbreplay.c (gdbreplay_version): Update copyright year in
6714 version message.
6715 * server.c (gdbserver_version): Likewise.
6716
8e481c3b
TT
67172017-12-08 Tom Tromey <tom@tromey.com>
6718
6719 * ax.c (ax_printf): Update.
6720
a8806230
YQ
67212017-12-07 Yao Qi <yao.qi@linaro.org>
6722
6723 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6724 aarch64_linux_read_description.
6725 * linux-amd64-ipa.c (idx2mask): New array.
6726 (get_ipa_tdesc): Move idx2mask out.
6727 (initialize_low_tracepoint): Initialize target descriptions.
6728 * linux-i386-ipa.c (idx2mask): New array.
6729 (get_ipa_tdesc): Move idx2mask out.
6730 (initialize_low_tracepoint): Initialize target descriptions.
6731
d4a0e8b5
SM
67322017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6733
6734 * tdesc.c (struct tdesc_type): Change return type.
6735 (tdesc_add_flag): Change parameter type.
6736 (tdesc_add_bitfield): Likewise.
6737 (tdesc_add_field): Likewise.
6738 (tdesc_set_struct_size): Likewise.
6739
798a7429
SM
67402017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6741
6742 * regcache.c (registers_to_string): Remove unused variable.
6743
c0e15c9b
SM
67442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6745
6746 * inferiors.c (for_each_inferior_with_data): Remove.
6747 * inferiors.h (for_each_inferior_with_data): Remove.
6748 * server.c (handle_qxfer_threads_worker): Change parameter type.
6749 (handle_qxfer_threads_proper): Use for_each_thread.
6750
f0045347
SM
67512017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6752
6753 * inferiors.c (for_each_inferior): Remove.
6754 (clear_inferiors): Use for_each_thread.
6755 * inferiors.h (for_each_inferior): Remove.
6756 * linux-low.c (linux_wait_for_event_filtered): Use
6757 for_each_thread.
6758 (linux_stabilize_threads): Likewise.
6759 * regcache.c (regcache_release): Likewise.
6760 * server.c (gdb_wants_all_threads_stopped): Likewise.
6761 (clear_pending_status_callback): Remove.
6762 (handle_status): Use for_each_thread.
6763 (captured_main): Likewise.
6764 * win32-low.c (child_init_thread_list): Likewise.
6765 (win32_clear_inferiors): Likewise.
6766 (fake_breakpoint_event): Likewise.
6767
9521758b
SM
67682017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6769
6770 * inferiors.h (find_inferior): Remove.
6771 * inferiors.c (find_inferior): Remove.
6772
8f86d7aa
SM
67732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6774
6775 * linux-low.c (resume_status_pending_p): Update comment.
6776 (need_step_over_p): Update comment.
6777
e2b44075
SM
67782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6779
6780 * linux-low.c (proceed_one_lwp): Return void, change parameter
6781 type.
6782 (unsuspend_and_proceed_one_lwp): Likewise.
6783 (proceed_all_lwps): Use for_each_thread.
6784 (unstop_all_lwps): Likewise.
6785
c80825ff
SM
67862017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6787
6788 * linux-low.c (linux_resume_one_thread): Return void, take
6789 parameter directly.
6790 (linux_resume): Use for_each_thread.
6791
df3e4dbe
SM
67922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6793
6794 * linux-low.c (send_sigstop_callback): Return void, change
6795 parameter type. Rename to...
6796 (send_sigstop): ... this.
6797 (suspend_and_send_sigstop_callback): Return void, change parameter
6798 type. Rename to...
6799 (suspend_and_send_sigstop): ... this.
6800 (stop_all_lwps): Use for_each_thread.
6801
5a6b0a41
SM
68022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6803
6804 * linux-low.c (lwp_running): Return bool, remove unused
6805 argument.
6806 (linux_stabilize_threads): Use find_thread.
6807
39a64da5
SM
68082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6809
6810 * linux-low.c (select_singlestep_lwp_callback): Remove.
6811 (count_events_callback): Remove.
6812 (select_event_lwp_callback): Remove.
6813 (select_event_lwp): Use find_thread/for_each_thread.
6814
a1385b7b
SM
68152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6816
6817 * linux-low.c (not_stopped_callback): Return bool, take filter
6818 argument directly.
6819 (linux_wait_for_event_filtered): Use find_thread.
6820 (linux_wait_1): Likewise.
6821
454296a2
SM
68222017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6823
6824 * linux-low.c (same_lwp): Remove.
6825 (find_lwp_pid): Use find_thread.
6826
6b2a85da
SM
68272017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6828
6829 * linux-low.c (delete_lwp_callback): Remove.
6830 (linux_mourn): Use for_each_thread.
6831
798a38e8
SM
68322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6833
6834 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6835 args parameter, don't check for pid.
6836 (linux_detach): Use for_each_thread.
6837
e4eb0dec
SM
68382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6839
6840 * linux-low.c (struct counter): Remove.
6841 (second_thread_of_pid_p): Remove.
6842 (last_thread_of_process_p): Use find_thread.
6843
83e1b6c1
SM
68442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6845
6846 * inferiors.c (find_inferior_in_random): Remove.
6847 * inferiors.h (find_inferior_in_random): Remove.
6848 * linux-low.c (status_pending_p_callback): Return bool, accept
6849 parameter ptid directly.
6850 (linux_wait_for_event_filtered): Use find_thread_in_random.
6851 (linux_wait_1): Likewise.
6852
8dc7b443
SM
68532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6854
6855 * inferiors.c (find_inferior_id): Remove.
6856 (find_thread_ptid): Move implemention from find_inferior_id to
6857 here.
6858 * inferiors.h (find_inferior_id): Remove.
6859 * server.c (handle_status): Use find_thread_ptid.
6860 (process_serial_event): Likewise.
6861 * thread-db.c (find_one_thread): Likewise.
6862 (thread_db_thread_handle): Likewise.
6863 * win32-low.c (thread_rec): Likewise.
6864 (child_delete_thread): Likewise.
6865 (win32_thread_alive): Likewise.
6866 (get_child_debug_event): Likewise.
6867
da25033c
SM
68682017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6869
6870 * linux-mips-low.c (update_watch_registers_callback): Return
6871 void, remove pid_p parameter, don't check for pid.
6872 (mips_insert_point, mips_remove_point): Use for_each_thread.
6873
c91bb56b
SM
68742017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6875
6876 * lynx.low (lynx_delete_thread_callback): Remove.
6877 (lynx_mourn): Use for_each_thread.
6878
634a3254
SM
68792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6880
6881 * regcache.c (regcache_invalidate_one): Remove.
6882 (regcache_invalidate_pid): use for_each_thread.
6883
41272101
TT
68842017-11-26 Tom Tromey <tom@tromey.com>
6885
6886 * linux-low.c (linux_create_inferior): Update.
6887
f5291a6f
UW
68882017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6889
6890 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6891
6654d750
AH
68922017-11-24 Alan Hayward <alan.hayward@arm.com>
6893
6894 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6895 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6896 * linux-aarch64-tdesc-selftest.c: New file.
6897 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6898
68992017-11-24 Alan Hayward <alan.hayward@arm.com>
6900
6901 * configure.srv: Add new file.
6902 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6903 * linux-aarch64-tdesc-selftest.c: New file.
6904 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6905
49bdb7ee
AH
69062017-11-24 Alan Hayward <alan.hayward@arm.com>
6907
6908 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6909 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6910 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6911
d6d7ce56
AH
69122017-11-24 Alan Hayward <alan.hayward@arm.com>
6913
6914 * configure.srv: Add new files.
6915 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6916 aarch64_linux_read_description.
6917 * linux-aarch64-low.c (aarch64_linux_read_description):
6918 Merge with aarch64_arch_setup.
6919 (aarch64_arch_setup): Call aarch64_linux_read_description.
6920 * linux-aarch64-tdesc.c: New file.
6921 * linux-aarch64-tdesc.h: New file.
6922
506fe5f4
YQ
69232017-11-24 Yao Qi <yao.qi@linaro.org>
6924
6925 * configure.srv: Set $srv_regobj for tic6x-linux.
6926 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6927 (tic6x_read_description): Move some code to tic6x_arch_setup.
6928 (tic6x_tdesc_test): New function.
6929 (initialize_low_arch): Call selftests::register_test.
6930
29f9a567
YQ
69312017-11-22 Yao Qi <yao.qi@linaro.org>
6932
6933 * remote-utils.c (prepare_resume_reply): Use memcpy.
6934
578290ec
SM
69352017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6936
6937 * linux-low.c (kill_one_lwp_callback): Return void, take
6938 argument directly, don't filter on pid.
6939 (linux_kill): Use for_each_thread.
6940
eca55aec
SM
69412017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6942
6943 * linux-low.c (need_step_over_p): Return bool, remove dummy
6944 argument.
6945 (linux_resume, proceed_all_lwps): Use find_thread.
6946
25c28b4d
SM
69472017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6948
6949 * linux-low.c (resume_status_pending_p): Return bool, remove
6950 flag_p argument.
6951 (linux_resume): Use find_thread.
6952
5fdda392
SM
69532017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6954
6955 * linux-low.c (struct thread_resume_array): Remove.
6956 (linux_set_resume_request): Return void, take arguments
6957 directly.
6958 (linux_resume): Use for_each_thread.
6959
fcb056a5
SM
69602017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6961
6962 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6963 return bool, remove data argument.
6964 (linux_stabilize_threads): Use find_thread.
6965
139720c5
SM
69662017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6967
6968 * linux-low.c (unsuspend_one_lwp): Remove.
6969 (unsuspend_all_lwps): Use for_each_thread, inline code from
6970 unsuspend_one_lwp.
6971
6d1e5673
SM
69722017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6973
6974 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6975 * linux-low.c (struct iterate_over_lwps_args): Remove.
6976 (iterate_over_lwps_filter): Remove.
6977 (iterate_over_lwps): Use find_thread.
6978
bbf550d5
SM
69792017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6980
6981 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6982 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6983 code from reset_lwp_ptrace_options_callback.
6984
00192f77
SM
69852017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6986
6987 * linux-arm-low.c (struct update_registers_data): Remove.
6988 (update_registers_callback): Return void, take arguments
6989 directly, don't check thread's pid.
6990 (arm_insert_point, arm_remove_point): Use for_each_thread.
6991
2bee2b6c
SM
69922017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6993
6994 * win32-low.c (continue_one_thread): Return void, take argument
6995 directly.
6996 (child_continue): Use for_each_thread.
6997
0b360f19
SM
69982017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6999
7000 * win32-i386-low.c (update_debug_registers_callback): Rename
7001 to ...
7002 (update_debug_registers): ... this, return void, remove pid_p arg.
7003 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
7004
f27866ba
SM
70052017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7006
7007 * inferiors.h (struct process_info): Add constructor, initialize
7008 fields..
7009 <syscalls_to_catch>: Change type to std::vector<int>.
7010 * inferiors.c (add_process): Allocate process_info with new.
7011 (remove_process): Free process_info with delete.
7012 * linux-low.c (handle_extended_wait): Adjust.
7013 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
7014 * server.c (handle_general_set): Adjust.
7015
e849ea89
PA
70162017-11-16 Pedro Alves <palves@redhat.com>
7017
7018 * remote-utils.c (remote_close): Block SIGIO signals instead of
7019 uninstalling the SIGIO handler.
7020
1d0aa65c
AH
70212017-11-16 Alan Hayward <alan.hayward@arm.com>
7022
7023 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
7024
3491a34c
YQ
70252017-11-16 Yao Qi <yao.qi@linaro.org>
7026
7027 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
7028 (tic6x_store_gregset): Likewise.
7029 (tic6x_usrregs_info): Move it up.
7030
a602f924
AH
70312017-11-15 Alan Hayward <alan.hayward@arm.com>
7032
7033 * Makefile.in: Update arch rules.
7034 * configure.srv: Explicitly mark arch/ files.
7035
5616b6c3
AS
70362017-11-13 Andreas Schwab <schwab@suse.de>
7037
7038 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7039 function.
7040 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7041
d1928160
PA
70422017-11-06 Pedro Alves <palves@redhat.com>
7043
7044 * config.in, configure: Regenerate.
7045
bac608e7
SM
70462017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7047
7048 * target.c (struct thread_search): Remove.
7049 (thread_search_callback): Remove.
7050 (prepare_to_access_memory): Use for_each_thread instead of
7051 find_inferior. Inline code from thread_search_callback.
7052
eaddb425
SM
70532017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7054
7055 * server.c (struct visit_actioned_threads_data): Remove.
7056 (visit_actioned_threads): Change prototype to take arguments
7057 directly.
7058 (resume): Use find_thread instead of find_inferior.
7059
99078d34
SM
70602017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7061
7062 * server.c (queue_stop_reply_callback): Change prototype, return
7063 void.
7064 (find_status_pending_thread_callback): Remove.
7065 (handle_status): Replace find_inferior with find_thread and
7066 for_each_thread.
7067
cc628f3d
AH
70682017-10-25 Alan Hayward <alan.hayward@arm.com>
7069
7070 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7071 with REGNO.
7072 (aarch64_store_gregset): Likewise.
7073 (aarch64_fill_fpregset): Likewise.
7074 (aarch64_store_fpregset): Likewise.
7075
4d3bb80e
SM
70762017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7077
7078 * gdbthread.h (find_thread, for_each_thread): New functions.
7079 * inferiors.c (thread_of_pid): Remove.
7080 (find_any_thread_of_pid): Use find_thread.
7081 * linux-low.c (num_lwps): Use for_each_thread.
7082
7a7cdfa0
YQ
70832017-10-17 Yao Qi <yao.qi@linaro.org>
7084
7085 * Makefile.in: Remove one rule.
7086 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7087
e675d170
YQ
70882017-10-17 Yao Qi <yao.qi@linaro.org>
7089
7090 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7091 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7092
7eb4e0f9
YQ
70932017-10-17 Yao Qi <yao.qi@linaro.org>
7094
7095 * configure.srv: Rename arm.o with arch/arm.o.
7096
60d6cfc9
YQ
70972017-10-17 Yao Qi <yao.qi@linaro.org>
7098
7099 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7100 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7101 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7102 (arch-i386.o, arch-amd64.o): Remove rules.
7103 (arch/%.o): New rule.
7104 Update POSTCOMPILE and COMPILE.pre.
7105 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7106 * configure: Re-generated.
7107 * configure.srv: Replace arch-i386.o with arch/i386.o.
7108 Replace arch-amd64.o with arch/amd64.o.
7109
5bfda255
YQ
71102017-10-16 Yao Qi <yao.qi@linaro.org>
7111
7112 * configure: Regenerated.
7113
9c80ecd6
SM
71142017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7115
7116 * inferiors.h: (struct inferior_list): Remove.
7117 (struct inferior_list_entry); Remove.
7118 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7119 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7120 get_first_inferior): Remove.
7121 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7122 find_inferior_id, find_inferior_in_random): Change signature.
7123 * inferiors.c (all_threads): Change type to
7124 std::list<thread_info *>.
7125 (get_thread): Remove macro.
7126 (find_inferior, find_inferior_id): Change signature, implement
7127 using find_thread.
7128 (find_inferior_in_random): Change signature, implement using
7129 find_thread_in_random.
7130 (for_each_inferior, for_each_inferior_with_data): Change
7131 signature, implement using for_each_thread.
7132 (add_inferior_to_list, remove_inferior): Remove.
7133 (add_thread, get_first_thread, thread_of_pid,
7134 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7135 (get_first_inferior, one_inferior_p, clear_inferior_list):
7136 Remove.
7137 (clear_inferiors, get_thread_process): Update.
7138 * gdbthread.h: Include <list>.
7139 (struct thread_info) <entry>: Remove field.
7140 <id>: New field.
7141 (all_threads): Change type to std::list<thread_info *>.
7142 (get_first_inferior): Add doc.
7143 (find_thread, for_each_thread, find_thread_in_random): New
7144 functions.
7145 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7146 * linux-arm-low.c (update_registers_callback): Update.
7147 * linux-low.c (second_thread_of_pid_p): Update.
7148 (kill_one_lwp_callback, linux_detach_lwp_callback,
7149 delete_lwp_callback, status_pending_p_callback, same_lwp,
7150 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7151 iterate_over_lwps, not_stopped_callback,
7152 resume_stopped_resumed_lwps, count_events_callback,
7153 select_singlestep_lwp_callback, select_event_lwp_callback,
7154 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7155 suspend_and_send_sigstop_callback, wait_for_sigstop,
7156 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7157 lwp_running, linux_set_resume_request, resume_status_pending_p,
7158 need_step_over_p, start_step_over, linux_resume_one_thread,
7159 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7160 reset_lwp_ptrace_options_callback): Update.
7161 * linux-mips-low.c (update_watch_registers_callback): Update.
7162 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7163 Update.
7164 (free_register_cache_thread_one): Remove.
7165 (regcache_release): Update.
7166 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7167 handle_qxfer_threads_worker): Update.
7168 (handle_query): Update, use list iterator.
7169 (visit_actioned_threads, handle_pending_status,
7170 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7171 clear_pending_status_callback, set_pending_status_callback,
7172 find_status_pending_thread_callback, handle_status,
7173 process_serial_event): Update.
7174 * target.c (thread_search_callback): Update.
7175 * thread-db.c (thread_db_get_tls_address): Update.
7176 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7177 Update.
7178 * win32-i386-low.c (update_debug_registers_callback): Update.
7179 * win32-low.c (delete_thread_info, child_delete_thread,
7180 continue_one_thread, suspend_one_thread,
7181 get_child_debug_event): Adjust.
7182
9179355e
SM
71832017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7184
7185 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7186 * inferiors.h: Include <list>.
7187 (struct process_info) <entry>: Remove field.
7188 <pid>: New field.
7189 (pid_of): Change macro to function.
7190 (ptid_of, lwpid_of): Remove macro.
7191 (all_processes): Change type to std::list<process_info *>.
7192 (ALL_PROCESSES): Remove macro.
7193 (for_each_process, find_process): New function.
7194 * inferiors.c (all_processes): Change type to
7195 std::list<process_info *>.
7196 (find_thread_process): Adjust.
7197 (add_process): Likewise.
7198 (remove_process): Likewise.
7199 (find_process_pid): Likewise.
7200 (get_first_process): Likewise.
7201 (started_inferior_callback): Remove.
7202 (have_started_inferiors_p): Adjust.
7203 (attached_inferior_callback): Remove.
7204 (have_attached_inferiors_p): Adjust.
7205 * linux-low.c (check_zombie_leaders): Likewise.
7206 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7207 (x86_linux_update_xmltarget): Adjust.
7208 * server.c (handle_query): Likewise.
7209 (gdb_reattached_process): Remove.
7210 (handle_status): Adjust.
7211 (kill_inferior_callback): Likewise.
7212 (detach_or_kill_inferior): Remove.
7213 (print_started_pid): Likewise.
7214 (print_attached_pid): Likewise.
7215 (detach_or_kill_for_exit): Update.
7216 (process_serial_event): Likewise.
7217 * linux-arm-low.c (arm_new_fork): Likewise.
7218
c9cb8905
SM
72192017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7220
7221 * dll.h: Include <list>.
7222 (struct dll_info): Add constructor.
7223 <entry>: Remove field.
7224 (all_dlls): Change type to std::list<dll_info>.
7225 * dll.c: Include <algorithm>.
7226 (get_dll): Remove macro.
7227 (all_dlls): Change type to std::list<dll_info *>.
7228 (free_one_dll): Remove.
7229 (match_dll): Likewise.
7230 (loaded_dll): Adjust.
7231 (unloaded_dll): Adjust to all_dlls type change, use
7232 std::find_if. Inline code from match_dll.
7233 (clear_dlls): Adjust to all_dlls type change.
7234 * server.c (emit_dll_description): Remove.
7235 (handle_qxfer_libraries): Adjust to all_dlls type change,
7236 integrate emit_dll_description's functionality.
7237
04ec7890
SM
72382017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7239
7240 * linux-low.h (struct linux_target_ops) <delete_process>: New
7241 field.
7242 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7243 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7244 (struct linux_target_ops): Add delete_process callback.
7245 * linux-arm-low.c (arm_delete_process): New.
7246 (struct linux_target_ops): Add delete_process callback.
7247 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7248 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7249 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7250 * linux-mips-low.c (mips_linux_delete_process): New.
7251 (struct linux_target_ops): Add delete_process callback.
7252 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7253 * linux-s390-low.c (struct linux_target_ops): Likewise.
7254 * linux-sh-low.c (struct linux_target_ops): Likewise.
7255 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7256 * linux-tile-low.c (struct linux_target_ops): Likewise.
7257 * linux-x86-low.c (x86_linux_delete_process): New.
7258 (struct linux_target_ops): Add delete_process callback.
7259 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7260
466eecee
SM
72612017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7262
7263 * linux-aarch64-low.c (the_low_target): Add thread delete
7264 callback.
7265 * linux-arm-low.c (arm_delete_thread): New function.
7266 (the_low_target): Add thread delete callback.
7267 * linux-bfin-low.c (the_low_target): Likewise.
7268 * linux-crisv32-low.c (the_low_target): Likewise.
7269 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7270 set.
7271 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7272 field.
7273 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7274 * linux-mips-low.c (mips_linux_delete_thread): New function.
7275 (the_low_target): Add thread delete callback.
7276 * linux-ppc-low.c (the_low_target): Likewise.
7277 * linux-s390-low.c (the_low_target): Likewise.
7278 * linux-sh-low.c (the_low_target): Likewise.
7279 * linux-tic6x-low.c (the_low_target): Likewise.
7280 * linux-tile-low.c (the_low_target): Likewise.
7281 * linux-x86-low.c (the_low_target): Likewise.
7282 * linux-xtensa-low.c (the_low_target): Likewise.
7283
b79f7801
YZ
72842017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7285
7286 * win32-low.c: Include "common-inferior.h".
7287
bc3b087d
SDJ
72882017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7289
7290 * inferiors.c (set_inferior_cwd): New function.
7291 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7292 (handle_query): Inform that QSetWorkingDir is supported.
7293 * win32-low.c (create_process): Pass the inferior's cwd to
7294 CreateProcess.
7295
d092c5a2
SDJ
72962017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7297
7298 * inferiors.c (current_inferior_cwd): New global variable.
7299 (get_inferior_cwd): New function.
7300 * inferiors.h (struct process_info) <cwd>: New field.
7301
7da0a886
SDJ
73022017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7303
7304 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7305 (OBS): Add gdb_tilde_expand.o.
7306
289a6840
SM
73072017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7308
7309 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7310 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7311
256642e8
PA
73122017-09-29 Pedro Alves <palves@redhat.com>
7313
7314 * ax.c (gdb_parse_agent_expr): Constify.
7315 * ax.h (gdb_parse_agent_expr): Constify.
7316 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7317 Constify.
7318 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7319 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7320 * remote-utils.h (read_ptid): Constify.
7321 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7322 (process_point_options, process_serial_event): Constify.
7323 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7324 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7325 (cmd_qtbuffer): Constify.
7326
5b9ca4d4
PA
73272017-09-29 Pedro Alves <palves@redhat.com>
7328
7329 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7330 fails.
7331
94c207e0
PA
73322017-09-29 Pedro Alves <palves@redhat.com>
7333
7334 * linux-low.c (handle_extended_wait): Pass parent thread instead
7335 of process to thread_db_notice_clone.
7336 * linux-low.h (thread_db_notice_clone): Replace parent process
7337 parameter with parent thread parameter.
7338 * thread-db.c (find_one_thread): Add comment.
7339 (thread_db_notice_clone): Replace parent process parameter with
7340 parent thread parameter. Temporarily switch to the parent thread.
7341
75352e28
SDJ
73422017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7343
7344 * gdbthread.h: Include "common-gdbthread.h".
7345 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7346 "if" when validating the ptid.
7347 * remote-utils.c: Include "gdbthread.h".
7348 (prepare_resume_reply): Use "switch_to_thread".
7349 * target.c (done_accessing_memory): Likewise.
7350
ad339634
AA
73512017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7352
7353 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7354 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7355 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7356 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7357 s390x-gs-linux64-ipa.o to ipa_obj.
7358 * linux-s390-low.c (HWCAP_S390_GS): New define.
7359 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7360 New functions.
7361 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7362 (s390_arch_setup): Check for guarded-storage support and choose
7363 appropriate tdesc.
7364 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7365 init_registers_s390x_gs_linux64.
7366 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7367 enum value.
7368 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7369 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7370
cc4d742f
SM
73712017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7372
7373 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7374
f6327dcb
KB
73752017-09-21 Kevin Buettner <kevinb@redhat.com>
7376
7377 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7378 (thread_db_thread_handle): Declare.
7379 * linux-low.c (linux_target_ops): Initialize thread_handle.
7380 * server.c (handle_qxfer_threads_worker): Add support for
7381 "handle" attribute.
7382 * target.h (struct target_ops): Add new function pointer,
7383 thread_handle.
7384 (target_thread_handle): Define.
7385 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7386 field in lwp.
7387 (thread_db_thread_handle): New function.
7388
86299109
KB
73892017-09-21 Kevin Buettner <kevinb@redhat.com>
7390
7391 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7392 * linux-low.h (thread_db_notice_clone): Declare.
7393 * thread-db.c (thread_db_notice_clone): New function.
7394
f557a88a
PA
73952017-09-21 Pedro Alves <palves@redhat.com>
7396
7397 * server.c (gdb_read_memory, handle_status, process_serial_event)
7398 (handle_serial_event, handle_target_event): Adjust to
7399 set_desired_thread prototype change.
7400 * target.c (set_desired_thread): Remove 'use_general' parameter
7401 and adjust.
7402 * target.h (set_desired_thread): Remove 'use_general' parameter.
7403
223ffa71
TT
74042017-09-20 Tom Tromey <tom@tromey.com>
7405
7406 * target.c (target_terminal::terminal_state): Define.
7407 (target_terminal::init): Rename from target_terminal_init.
7408 (target_terminal::inferior): Rename from
7409 target_terminal_inferior.
7410 (target_terminal::ours): Rename from target_terminal_ours.
7411 (target_terminal::ours_for_output, target_terminal::info): New.
7412
04fd3ba9
SM
74132017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7414
7415 * server.c (accumulate_file_name_length): Remove.
7416 (emit_dll_description): Adjust to std::string change.
7417 (handle_qxfer_libraries): Use std::string to hold document.
7418
5e187554
SM
74192017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7420
7421 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7422 return type of xml_escape_text.
7423 * server.c (emit_dll_description): Likewise.
7424
1526853e
SM
74252017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7426
7427 * server.c (captured_main): Accept argument for --selftest.
7428 Update run_tests call.
7429 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7430 when registering selftests.
7431
c4dfafab
SDJ
74322017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7433
7434 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7435 instead of "VEC" for "target_desc.reg_defs".
7436 (regcache_cpy): Likewise.
7437 (registers_to_string): Likewise.
7438 (registers_from_string): Likewise.
7439 (find_regno): Likewise.
7440 (supply_regblock): Likewise.
7441 (regcache_raw_read_unsigned): Likewise.
7442 * tdesc.c (init_target_desc): Likewise.
7443 (tdesc_create_reg): Likewise.
7444 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7445 (struct target_desc) <reg_defs>: Convert to "std::vector".
7446 (target_desc): Do not initialize "reg_defs".
7447 (~target_desc): Update code to use "std::vector" instead of "VEC"
7448 for "target_desc.reg_defs".
7449 (operator==): Likewise.
7450
124aceb4
SM
74512017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7452
7453 * inferiors.h (thread_to_gdb_id): Remove.
7454 * inferiors.c (thread_to_gdb_id): Remove.
7455 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7456 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7457 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7458 Likewise.
7459 * nto-low.c (nto_fetch_registers, nto_store_registers,
7460 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7461
96cde54f
SM
74622017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7463
7464 * inferiors.h (gdb_id_to_thread_id): Remove.
7465 * inferiors.c (gdb_id_to_thread_id): Remove.
7466 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7467 removal. Move pid declaration closer to where it's used.
7468
e8ca139e
SM
74692017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7470
7471 * server.c (handle_detach): New function.
7472 (process_serial_event): Move code out, call handle_detach.
7473
f8a4e119
SM
74742017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7475
7476 * server.c (require_running): Rename to ...
7477 (require_running_or_return): ... this ...
7478 (require_running_or_break): ... and this.
7479 (handle_query, process_serial_event): Adjust.
7480
0eb0a407
SM
74812017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7482
7483 * linux-low.c (linux_set_resume_request): Remove unused
7484 variables.
7485
785922a5
SM
74862017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7487
7488 * server.c (first_thread_of): Remove.
7489 (process_serial_event): Replace usage of first_thread_of with
7490 find_any_thread_of_pid.
7491 * tracepoint.c (same_process_p): Remove.
7492 (gdb_agent_about_to_close): Replace usage of same_process_p with
7493 find_any_thread_of_pid.
7494 * linux-x86-low.c (same_process_callback): Remove.
7495 (x86_arch_setup_process_callback): Replace usage of
7496 same_process_callback with find_any_thread_of_pid.
7497 * thread-db.c (any_thread_of): Remove.
7498 (switch_to_process): Replace usage of any_thread_of with
7499 find_any_thread_of_pid.
7500 * inferiors.c (thread_pid_matches_callback): Remove.
7501 (find_thread_process): Adjust to use find_any_thread_of_pid.
7502
a059f00c
SDJ
75032017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7504
7505 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7506 with "!VEC_empty".
a059f00c 7507
cc397f3a
SDJ
75082017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7509
7510 * linux-low.c (handle_extended_wait): Use
7511 "allocate_target_description" instead of "XNEW".
7512 * linux-x86-low.c (initialize_low_arch): Likewise.
7513
22916b07
YQ
75142017-09-05 Yao Qi <yao.qi@linaro.org>
7515
7516 * configure.srv (srv_i386_regobj): Remove.
7517 (srv_amd64_regobj): Remove.
7518 (srv_regobj): Set it to "" for x86 non-linux targets.
7519 * linux-x86-tdesc.c (i386_linux_read_description):
7520 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7521 (init_registers_i386): Remove the declaration.
7522 (tdesc_i386): Remove the declaration.
7523 (lynx_i386_arch_setup): Call i386_create_target_description.
7524 * nto-x86-low.c: Likewise.
7525 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7526 [!__x86_64__]: include arch/i386.h.
7527 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7528
38602d55
YQ
75292017-09-05 Yao Qi <yao.qi@linaro.org>
7530
7531 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7532 i386/amd64-XXX-linux from it.
7533
44b886ff
YQ
75342017-09-05 Yao Qi <yao.qi@linaro.org>
7535
7536 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7537 false.
7538 (ipa_amd64_linux_regobj): Remove.
7539 (ipa_x32_linux_regobj): Remove.
7540
b4570e4b
YQ
75412017-09-05 Yao Qi <yao.qi@linaro.org>
7542
7543 * Makefile.in (arch-amd64.o): New rule.
7544 * configure.srv: Append arch-amd64.o.
7545 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7546 (get_ipa_tdesc): Call amd64_linux_read_description.
7547 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7548 and init_registers_amd64_XXX.
7549 * linux-x86-low.c (x86_linux_read_description): Call
7550 amd64_linux_read_description.
7551 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7552 (initialize_low_arch): Don't call init_registers_x32_XXX and
7553 init_registers_amd64_XXX.
7554 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7555 and tdesc_amd64_XXX.
7556 [__x86_64__] (amd64_tdesc_test): New function.
7557 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7558 and init_registers_amd64_XXX.
7559 * linux-x86-tdesc.c: Include arch/amd64.h.
7560 (xcr0_to_tdesc_idx): New function.
7561 (i386_linux_read_description): New function.
7562 (amd64_get_ipa_tdesc_idx): New function.
7563 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7564 (amd64_get_ipa_tdesc): Declare.
7565
d1f28ea2
YQ
75662017-09-05 Yao Qi <yao.qi@linaro.org>
7567
7568 * configure.srv (srv_i386_linux_xmlfiles): Remove
7569 i386/i386-XXX-linux.xml from it.
7570
25a93583
YQ
75712017-09-05 Yao Qi <yao.qi@linaro.org>
7572
7573 * configure.srv: Set srv_i386_linux_regobj empty if $development
7574 is false.
7575 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7576 initialize_low_tdesc.
7577 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7578 with #if initialize_low_tdesc.
7579 * linux-x86-tdesc-selftest.c: New file.
7580 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7581
5f035c07
YQ
75822017-09-05 Yao Qi <yao.qi@linaro.org>
7583
7584 * Makefile.in (arch-i386.o): New rule.
7585 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7586 (x86_64-*-linux*): Likewise.
7587 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7588 include arch/i386.h.
7589 (i386_linux_read_description): Remove code and call
7590 i386_create_target_description.
7591 * tdesc.c (allocate_target_description): New function.
7592 * tdesc.h (set_tdesc_architecture): Remove declaration.
7593 (set_tdesc_osabi): Likewise.
7594
0abe8a89
YQ
75952017-09-05 Yao Qi <yao.qi@linaro.org>
7596
7597 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7598 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7599 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7600 .xmltarget.
7601 * server.c (get_features_xml): Call tdesc_get_features_xml.
7602 * tdesc.c (set_tdesc_architecture): New function.
7603 (set_tdesc_osabi): New function.
7604 (tdesc_get_features_xml): New function.
7605 (tdesc_create_feature): Add an argument.
7606 * tdesc.h (struct target_desc) <features>: New field.
7607 <arch, osabi>: New field.
7608 (~target_desc): xfree features, arch, and osabi.
7609 (target_desc::oerator==): Don't compare .xmltarget.
7610 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7611 (set_tdesc_osabi): Likewise.
7612 (tdesc_get_features_xml): Likewise.
7613
0a188386
YQ
76142017-09-05 Yao Qi <yao.qi@linaro.org>
7615
7616 * linux-x86-tdesc.c: Include selftest.h.
7617 (i386_tdesc_test): New function.
7618 (initialize_low_tdesc): Call selftests::register_test.
7619 * tdesc.h: Include regdef.h.
7620 (target_desc): Override operator == and !=.
7621
f49ff000
YQ
76222017-09-05 Yao Qi <yao.qi@linaro.org>
7623
7624 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7625 (ipa_obj): Likewise.
7626 * linux-i386-ipa.c: Include common/x86-xstate.h
7627 (get_ipa_tdesc): Call i386_linux_read_description.
7628 (initialize_low_tracepoint): Don't call init_registers_XXX
7629 functions, call initialize_low_tdesc instead.
7630 * linux-x86-low.c (x86_linux_read_description): Call
7631 i386_linux_read_description.
7632 (initialize_low_arch): Don't call init_registers_i386_XXX
7633 functions, call initialize_low_tdesc.
7634 * linux-x86-tdesc.c: New file.
7635 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7636 (i386_get_ipa_tdesc_idx): Declare.
7637 (i386_get_ipa_tdesc): Declare.
7638 (initialize_low_tdesc): Declare.
7639
2b68ef2f
YQ
76402017-09-05 Yao Qi <yao.qi@linaro.org>
7641
7642 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7643 instead of 0.
7644
f7000548
YQ
76452017-09-05 Yao Qi <yao.qi@linaro.org>
7646
7647 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7648 * regcache.c (get_thread_regcache): Use VEC_length.
7649 (init_register_cache): Likewise.
7650 (regcache_cpy): Likewise.
7651 (registers_to_string): Iterate reg_defs via VEC_iterate.
7652 (find_regno): Likewise.
7653 (find_register_by_number): Use VEC_index.
7654 (register_size): Call find_register_by_number.
7655 (register_data): Call find_register_by_number.
7656 (supply_regblock): Use VEC_length.
7657 (regcache_raw_read_unsigned): Likewise.
7658 * tdesc.c (init_target_desc): Iterate reg_defs via
7659 VEC_iterate.
7660 (default_description): Update initializer.
7661 (copy_target_description): Don't update field num_registers.
7662 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7663 <num_registers>: Remove.
7664
50a421ac
SM
76652017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7666
7667 * Makefile.in (.SECONDARY): Define target.
7668
23fdd69e
SM
76692017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7670
7671 * linux-low.c (linux_wait_1): Adjust.
7672 * server.c (queue_stop_reply_callback): Adjust.
7673
0a2dde4a
SDJ
76742017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7675
7676 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7677 QEnvironmentUnset and QEnvironmentReset packets.
7678 (handle_query): Inform remote that QEnvironmentHexEncoded,
7679 QEnvironmentUnset and QEnvironmentReset are supported.
7680
6afd337d
SM
76812017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7682
7683 * inferiors.h (inferior_target_data): Rename to ...
7684 (thread_target_data): ... this.
7685 (inferior_regcache_data): Rename to ...
7686 (thread_regcache_data): ... this.
7687 (set_inferior_regcache_data): Rename to ...
7688 (set_thread_regcache_data): ... this.
7689 * inferiors.c (inferior_target_data): Rename to ...
7690 (thread_target_data): ... this.
7691 (inferior_regcache_data): Rename to ...
7692 (thread_regcache_data): ... this.
7693 (set_inferior_regcache_data): Rename to ...
7694 (set_thread_regcache_data): ... this.
7695 (free_one_thread): Update.
7696 * linux-low.h (get_thread_lwp): Update.
7697 * regcache.c (get_thread_regcache): Update.
7698 (regcache_invalidate_thread): Update.
7699 (free_register_cache_thread): Update.
7700 * win32-i386-low.c (update_debug_registers_callback): Update.
7701 (win32_get_current_dr): Update.
7702 * win32-low.c (thread_rec): Update.
7703 (delete_thread_info): Update.
7704 (continue_one_thread): Update.
7705 (suspend_one_thread): Update.
7706
a160cc46
SM
77072017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7708
7709 * inferiors.c (set_inferior_target_data): Remove.
7710 * inferiors.h (set_inferior_target_data): Remove.
7711
6d580b63
YQ
77122017-08-18 Yao Qi <yao.qi@linaro.org>
7713
7714 * Makefile.in (OBS): Add selftest.o.
7715 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7716 * configure, config.in: Re-generated.
7717 * server.c: Include common/sefltest.h.
7718 (captured_main): Handle option --selftest.
7719
f5a29eb0
YQ
77202017-08-09 Yao Qi <yao.qi@linaro.org>
7721
7722 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7723 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7724 i386-avx-mpx.o and i386-mmx.o.
7725 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7726 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7727 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7728 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7729 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7730 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7731 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7732 i386/amd64-avx-mpx.xml.
7733
57757c2f
YQ
77342017-08-09 Yao Qi <yao.qi@linaro.org>
7735
7736 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7737 and x32-avx-avx512.o.
7738 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7739 i386/x32-avx-avx512.xml.
7740
229d26fc
SM
77412017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7742
7743 * tracepoint.h (enum class fast_tpoint_collect_result): New
7744 enumeration.
7745 (fast_tracepoint_collecting): Change return type to
7746 fast_tpoint_collect_result.
7747 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7748 * linux-low.h: Include tracepoint.h.
7749 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7750 fast_tpoint_collect_result.
7751 * linux-low.c (handle_tracepoints): Adjust.
7752 (linux_fast_tracepoint_collecting): Change return type to
7753 fast_tpoint_collect_result.
7754 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7755 linux_wait_1, stuck_in_jump_pad_callback,
7756 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7757 proceed_one_lwp): Adjust to type change.
7758
2e1e43e1
YQ
77592017-07-10 Yao Qi <yao.qi@linaro.org>
7760
7761 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7762
adc764e7
YQ
77632017-06-29 Yao Qi <yao.qi@linaro.org>
7764
7765 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7766 Remove.
7767 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7768
a206891a
SM
77692017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7770
7771 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7772
9a6c7d9c
SDJ
77732017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7774
7775 * linux-low.c (linux_create_inferior): Adjust code to access the
7776 environment information via 'gdb_environ' class.
7777 * lynx-low.c (lynx_create_inferior): Likewise.
7778 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7779 (get_environ): Return a pointer to 'our_environ'.
7780 (captured_main): Initialize 'our_environ'.
7781 * server.h (get_environ): Adjust prototype.
7782 * spu-low.c (spu_create_inferior): Adjust code to access the
7783 environment information via 'gdb_environ' class.
7784
ae3e2ccf
SM
77852017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7786
7787 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7788 usage of "register" keyword.
7789
3e019bdc
SM
77902017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7791
7792 * configure: Re-generate.
7793
8465943a
SM
77942017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7795
7796 * configure: Re-generate.
7797
cf0dd6f0
SM
77982017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7799
7800 * Makefile.in (COMPILE.pre): Add "-x c++".
7801
9845682b
SDJ
78022017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7803
7804 * fork-child.c: Conditionally include <signal.h>.
7805
aefd8b33
SDJ
78062017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7807
7808 * server.c (handle_general_set): Handle new packet
7809 "QStartupWithShell".
7810 (handle_query): Add "QStartupWithShell" to the list of supported
7811 packets.
7812 (gdbserver_usage): Add help text explaining the
7813 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7814 options.
7815 (captured_main): Recognize and act upon the presence of the new
7816 CLI options.
7817
2090129c
SDJ
78182017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7819 Pedro Alves <palves@redhat.com>
7820
7821 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7822 * configure: Regenerate.
7823 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7824 "fork-inferior.o".
7825 (i[34567]86-*-lynxos*): Likewise.
7826 (spu*-*-*): Likewise.
7827 * fork-child.c: New file.
7828 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7829 and "environ.h".
7830 (linux_ptrace_fun): New function.
7831 (linux_create_inferior): Adjust function prototype to reflect
7832 change on "target.h". Adjust function code to use
7833 "fork_inferior".
7834 (linux_request_interrupt): Delete "signal_pid".
7835 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7836 (lynx_ptrace_fun): New function.
7837 (lynx_create_inferior): Adjust function prototype to reflect
7838 change on "target.h". Adjust function code to use
7839 "fork_inferior".
7840 * nto-low.c (nto_create_inferior): Adjust function prototype and
7841 code to reflect change on "target.h". Update comments.
7842 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7843 "common-terminal.h" and "environ.h".
7844 (terminal_fd): Moved to fork-child.c.
7845 (old_foreground_pgrp): Likewise.
7846 (restore_old_foreground_pgrp): Likewise.
7847 (last_status): Make it global.
7848 (last_ptid): Likewise.
7849 (our_environ): New variable.
7850 (startup_with_shell): Likewise.
7851 (program_name): Likewise.
7852 (program_argv): Rename to...
7853 (program_args): ...this.
7854 (wrapper_argv): New variable.
7855 (start_inferior): Delete function.
7856 (get_exec_wrapper): New function.
7857 (get_exec_file): Likewise.
7858 (get_environ): Likewise.
7859 (prefork_hook): Likewise.
7860 (post_fork_inferior): Likewise.
7861 (postfork_hook): Likewise.
7862 (postfork_child_hook): Likewise.
7863 (handle_v_run): Update code to deal with arguments coming from the
7864 remote host. Update calls from "start_inferior" to
7865 "create_inferior".
7866 (captured_main): Likewise. Initialize environment variable. Call
7867 "have_job_control".
7868 * server.h (post_fork_inferior): New prototype.
7869 (get_environ): Likewise.
7870 (last_status): Declare.
7871 (last_ptid): Likewise.
7872 (signal_pid): Likewise.
7873 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7874 (spu_ptrace_fun): New function.
7875 (spu_create_inferior): Adjust function prototype to reflect change
7876 on "target.h". Adjust function code to use "fork_inferior".
7877 * target.c (target_terminal_init): New function.
7878 (target_terminal_inferior): Likewise.
7879 (target_terminal_ours): Likewise.
7880 * target.h: Include <vector>.
7881 (struct target_ops) <create_inferior>: Update prototype.
7882 (create_inferior): Update macro.
7883 * utils.c (gdb_flush_out_err): New function.
7884 * win32-low.c (win32_create_inferior): Adjust function prototype
7885 and code to reflect change on "target.h".
7886
043a4934
SDJ
78872017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7888
7889 * inferiors.c (switch_to_thread): New function.
7890
15652511
SDJ
78912017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7892
7893 * Makefile.in (SFILE): Add "common/job-control.c".
7894 (OBS): Add "job-control.o".
7895
21ea5acd
SDJ
78962017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7897
7898 * Makefile: Remove "@host_makefile_frag@".
7899
e13cb306
PA
79002017-05-05 Pedro Alves <palves@redhat.com>
7901
7902 * configure: Regenerate.
7903
c94fee56
SDJ
79042017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7905
7906 * configure: Regenerate.
7907
a0ff9e1a
SM
79082017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7909
7910 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7911 software_single_step change of return type to
7912 std::vector<CORE_ADDR>.
7913 * linux-low.c (install_software_single_step_breakpoints):
7914 Likewise.
7915 * linux-low.h (install_software_single_step_breakpoints):
7916 Likewise.
7917
be628ab8
SDJ
79182017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7919
7920 * remote-utils.c: Include "gdb_termios.h" instead of
7921 "terminal.h".
7922 * terminal.h: Delete file.
7923
7c5ded6a
SDJ
79242017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7925
7926 * server.c: Include <vector>.
7927 <program_argv, wrapper_argv>: Convert to std::vector.
7928 (start_inferior): Rewrite function to use C++.
7929 (handle_v_run): Likewise. Update code that calculates the argv
7930 based on the vRun packet; use C++.
7931 (captured_main): Likewise.
7932
436252de
SM
79332017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7934
7935 * server.c (handle_v_cont): Initialize thread_resume::thread
7936 with null_ptid.
7937
9bf2a700
PA
79382017-04-05 Pedro Alves <palves@redhat.com>
7939
7940 * configure: Regenerate.
7941
a121b7c1
PA
79422017-04-05 Pedro Alves <palves@redhat.com>
7943
7944 * gdbreplay.c (sync_error): Constify.
7945 * linux-x86-low.c (push_opcode): Constify.
7946
21c8a587
PA
79472017-04-05 Pedro Alves <palves@redhat.com>
7948
7949 * win32-low.c (get_child_debug_event)
7950 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7951 Report TARGET_WAITKIND_SPURIOUS instead.
7952
fb32b4f7
PA
79532017-04-05 Pedro Alves <palves@redhat.com>
7954
e79be6e5
SM
7955 * remote-utils.c (remote_prepare, remote_open): Constify.
7956 * remote-utils.h (remote_prepare, remote_open): Constify.
7957 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7958
65dd1e59
SM
79592017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7960
7961 * Makefile.in (clean): Clear .deps.
7962
8fa5b777
SM
79632017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7964
7965 * .gitignore: Remove generated files, replace with wildcard.
7966 * (clean): Replace removal of generated files with wildcard.
7967 (version.c): Replace with...
7968 (version-generated.c): ...this.
7969 (xml-builtin.c): Replace with...
7970 (xml-builtin-generated.c): ...this.
7971 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7972 (%.c: *regformats*): Replace with...
7973 (%-generated.c: *regformats*): ...this.
7974
a12e714b
MF
79752017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7976
7977 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7978 (xtensa_fill_gregset): Call collect_register_by_name for
7979 threadptr register.
7980 (xtensa_store_gregset): Call supply_register_by_name for
7981 threadptr register.
7982
1a09b50a
MF
79832017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7984
7985 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7986 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7987 (xtensa_store_gregset): Call supply_register for all registers in
7988 a0_regnum..a0_regnum + C0_NREGS range.
7989
1a01e7c6
SM
79902017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7991
7992 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7993 (ax-ipa.o: ax.c): Remove.
7994 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7995 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7996 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7997 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7998 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7999
36bc18a8
SM
80002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8001
8002 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
8003 (print-utils-ipa.o: ../common/print-utils.c): Remove.
8004 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
8005 (errors-ipa.o: ../common/errors.c): Remove.
8006 (format-ipa.o: ../common/format.c): Remove.
8007 (common-utils-ipa.o: ../common/common-utils.c): Remove.
8008
a8ebe3d5
SM
80092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8010
8011 * Makefile.in (%-ipa.o: %.c): New rule.
8012 (tracepoint-ipa.o: tracepoint.c): Remove.
8013 (utils-ipa.o: utils.c): Remove.
8014 (remote-utils-ipa.o: remote-utils.c): Remove.
8015 (regcache-ipa.o: regcache.c): Remove.
8016 (i386-linux-ipa.o: i386-linux.c): Remove.
8017 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
8018 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
8019 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
8020 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
8021 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
8022 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
8023 (amd64-linux-ipa.o: amd64-linux.c): Remove.
8024 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
8025 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
8026 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
8027 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
8028 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
8029 (aarch64-ipa.o: aarch64.c): Remove.
8030 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8031 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8032 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8033 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8034 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8035 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8036 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8037 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8038 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8039 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8040 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8041 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8042 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8043 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8044 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8045 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8046 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8047 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8048 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8049 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8050 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8051 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8052 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8053 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8054 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8055 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8056 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8057 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8058 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8059 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8060 (tdesc-ipa.o: tdesc.c): Remove.
8061 (x32-linux-ipa.o: x32-linux.c): Remove.
8062 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8063 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8064
50cfacb7
SM
80652017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8066
8067 * Makefile.in (%.o: ../arch/%.c): New rule.
8068 (arm.o: ../arch/arm.c): Remove.
8069 (arm-linux.o: ../arch/arm-linux.c): Remove.
8070 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8071 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8072
c5a22423
SM
80732017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8074
8075 * Makefile.in (%.o: ../nat/%.c): New rule.
8076 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8077 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8078 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8079 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8080 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8081 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8082 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8083 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8084 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8085 (linux-personality.o: ../nat/linux-personality.c): Remove.
8086 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8087 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8088 (x86-linux.o: ../nat/x86-linux.c): Remove.
8089 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8090 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8091
6bda016b
SM
80922017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8093
8094 * Makefile.in (%.o: ../common/%.c): New rule.
8095 (signals.o: ../common/signals.c): Remove.
8096 (print-utils.o: ../common/print-utils.c): Remove.
8097 (rsp-low.o: ../common/rsp-low.c): Remove.
8098 (common-utils.o: ../common/common-utils.c): Remove.
8099 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8100 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8101 (vec.o: ../common/vec.c): Remove.
8102 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8103 (xml-utils.o: ../common/xml-utils.c): Remove.
8104 (ptid.o: ../common/ptid.c): Remove.
8105 (buffer.o: ../common/buffer.c): Remove.
8106 (format.o: ../common/format.c): Remove.
8107 (filestuff.o: ../common/filestuff.c): Remove.
8108 (agent.o: ../common/agent.c): Remove.
8109 (errors.o: ../common/errors.c): Remove.
8110 (environ.o: ../common/environ.c): Remove.
8111 (common-debug.o: ../common/common-debug.c): Remove.
8112 (cleanups.o: ../common/cleanups.c): Remove.
8113 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8114 (fileio.o: ../common/fileio.c): Remove.
8115 (common-regcache.o: ../common/common-regcache.c): Remove.
8116 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8117 (new-op.o: ../common/new-op.c): Remove.
8118 (btrace-common.o: ../common/btrace-common.c): Remove.
8119
21122961
SM
81202017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8121
8122 * Makefile.in (%.o: ../target/%.c): New rule.
8123 (waitstatus.o: ../target/waitstatus.c): Remove.
8124
c362e621
SM
81252017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8126
8127 * Makefile.in
8128 (%.c: ../regformats/%.dat,
8129 (%.c: ../regformats/arm/%.dat,
8130 (%.c: ../regformats/i386/%.dat,
8131 (%.c: ../regformats/rs6000/%.dat): New rules.
8132 (aarch64.c): Remove.
8133 (reg-arm.c): Remove.
8134 (arm-with-iwmmxt.c): Remove.
8135 (arm-with-vfpv2.c): Remove.
8136 (arm-with-vfpv3.c): Remove.
8137 (arm-with-neon.c): Remove.
8138 (reg-bfin.c): Remove.
8139 (reg-cris.c): Remove.
8140 (reg-crisv32.c): Remove.
8141 (i386.c): Remove.
8142 (i386-linux.c): Remove.
8143 (i386-avx.c): Remove.
8144 (i386-avx-linux.c): Remove.
8145 (i386-avx-avx512.c): Remove.
8146 (i386-avx-avx512-linux.c): Remove.
8147 (i386-mpx.c): Remove.
8148 (i386-mpx-linux.c): Remove.
8149 (i386-avx-mpx-avx512-pku.c): Remove.
8150 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8151 (i386-avx-mpx.c): Remove.
8152 (i386-avx-mpx-linux.c): Remove.
8153 (i386-mmx.c): Remove.
8154 (i386-mmx-linux.c): Remove.
8155 (reg-ia64.c): Remove.
8156 (reg-m32r.c): Remove.
8157 (reg-m68k.c): Remove.
8158 (reg-cf.c): Remove.
8159 (mips-linux.c): Remove.
8160 (mips-dsp-linux.c): Remove.
8161 (mips64-linux.c): Remove.
8162 (mips64-dsp-linux.c): Remove.
8163 (nios2-linux.c): Remove.
8164 (powerpc-32.c): Remove.
8165 (powerpc-32l.c): Remove.
8166 (powerpc-altivec32l.c): Remove.
8167 (powerpc-cell32l.c): Remove.
8168 (powerpc-vsx32l.c): Remove.
8169 (powerpc-isa205-32l.c): Remove.
8170 (powerpc-isa205-altivec32l.c): Remove.
8171 (powerpc-isa205-vsx32l.c): Remove.
8172 (powerpc-e500l.c): Remove.
8173 (powerpc-64l.c): Remove.
8174 (powerpc-altivec64l.c): Remove.
8175 (powerpc-cell64l.c): Remove.
8176 (powerpc-vsx64l.c): Remove.
8177 (powerpc-isa205-64l.c): Remove.
8178 (powerpc-isa205-altivec64l.c): Remove.
8179 (powerpc-isa205-vsx64l.c): Remove.
8180 (s390-linux32.c): Remove.
8181 (s390-linux32v1.c): Remove.
8182 (s390-linux32v2.c): Remove.
8183 (s390-linux64.c): Remove.
8184 (s390-linux64v1.c): Remove.
8185 (s390-linux64v2.c): Remove.
8186 (s390-te-linux64.c): Remove.
8187 (s390-vx-linux64.c): Remove.
8188 (s390-tevx-linux64.c): Remove.
8189 (s390x-linux64.c): Remove.
8190 (s390x-linux64v1.c): Remove.
8191 (s390x-linux64v2.c): Remove.
8192 (s390x-te-linux64.c): Remove.
8193 (s390x-vx-linux64.c): Remove.
8194 (s390x-tevx-linux64.c): Remove.
8195 (tic6x-c64xp-linux.c): Remove.
8196 (tic6x-c64x-linux.c): Remove.
8197 (tic6x-c62x-linux.c): Remove.
8198 (reg-sh.c): Remove.
8199 (reg-sparc64.c): Remove.
8200 (reg-spu.c): Remove.
8201 (amd64.c): Remove.
8202 (amd64-linux.c): Remove.
8203 (amd64-avx.c): Remove.
8204 (amd64-avx-linux.c): Remove.
8205 (amd64-avx-avx512.c): Remove.
8206 (amd64-avx-avx512-linux.c): Remove.
8207 (amd64-mpx.c): Remove.
8208 (amd64-mpx-linux.c): Remove.
8209 (amd64-avx-mpx-avx512-pku.c): Remove.
8210 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8211 (amd64-avx-mpx.c): Remove.
8212 (amd64-avx-mpx-linux.c): Remove.
8213 (x32.c): Remove.
8214 (x32-linux.c): Remove.
8215 (x32-avx.c): Remove.
8216 (x32-avx-linux.c): Remove.
8217 (x32-avx-avx512.c): Remove.
8218 (x32-avx-avx512-linux.c): Remove.
8219 (reg-xtensa.c): Remove.
8220 (reg-tilegx.c): Remove.
8221 (reg-tilegx32.c): Remove.
8222
1672e0d9
SDJ
82232017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8224
8225 * Makefile.in (SFILES): Add "common/environ.c".
8226 (OBJS): Add "common/environ.h".
8227
239b6d10
WT
82282017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8229
8230 * configure.ac: Check if the fs_base and gs_base members of
8231 `struct user_regs_struct' exist.
8232 * config.in: Regenerated.
8233 * configure: Likewise.
8234
694b382c
AT
82352017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8236
8237 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8238 target_read_memory.
8239 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8240 (get_next_pcs_syscall_next_pc): Likewise.
8241
7dc53023
LM
82422016-12-23 Luis Machado <lgustavo@codesourcery.com>
8243
8244 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8245 * nto-x86-low.c: Likewise.
8246
ad02e4fe
SM
82472016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8248
8249 * Makefile.in: Include disable-implicit-rules.mk.
8250
dcb07cfa
PA
82512016-11-23 Pedro Alves <palves@redhat.com>
8252
8253 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8254 (debug_vprintf): Use std::chrono::steady_clock instead of
8255 gettimeofday. Use '.' instead of ':'.
8256 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8257 (get_timestamp): Use std::chrono::steady_clock instead of
8258 gettimeofday.
8259
8629c02c
SM
82602016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8261
8262 * Makefile.in: Fix whitespace formatting.
8263
b593ecca
SM
82642016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8265
8266 * Makefile.in (SFILES, OBS): Flatten list and order
8267 alphabetically.
8268
9986ba08
PA
82692016-11-23 Pedro Alves <palves@redhat.com>
8270
8271 * event-loop.c (handle_file_event): Use warning.
8272 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8273 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8274 Use warning.
8275
4eefa7bc
PA
82762016-11-23 Pedro Alves <palves@redhat.com>
8277
8278 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8279 output.
8280 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8281 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8282 debug_printf and debug_flush for debug output.
8283 * server.c (handle_general_set): Likewise.
8284 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8285 output.
8286
5443506e
SM
82872016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8288
8289 * Makefile.in (.c.o): Replace rule with ...
8290 (%.o: %.c): ... this one.
8291
3b165252
SM
82922016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8293
8294 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8295 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8296 make.
8297 * configure.ac: Remove checks for the make program.
8298 * configure: Re-generate.
8299
0bcda685
PA
83002016-10-28 Pedro Alves <palves@redhat.com>
8301
8302 * Makefile.in (CXX_DIALECT): Get from configure.
8303 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8304 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8305 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8306 * config.in: Regenerate.
8307 * configure: Regenerate.
8308
c3805894
YQ
83092016-10-27 Yao Qi <yao.qi@linaro.org>
8310
8311 * linux-low.c (linux_supports_range_stepping): Return true if
8312 can_software_single_step return true.
8313
89342618
YQ
83142016-10-27 Yao Qi <yao.qi@linaro.org>
8315
8316 * inferiors.c (find_inferior_in_random): New function.
8317 * inferiors.h (find_inferior_in_random): Declare.
8318 * linux-low.c (linux_wait_for_event_filtered): Call
8319 find_inferior_in_random instead of find_inferior.
8320
e3652c84
YQ
83212016-10-27 Yao Qi <yao.qi@linaro.org>
8322
8323 * linux-low.c (linux_wait_1): If single-step breakpoints are
8324 inserted, remove them.
8325
5a04c4cf
PA
83262016-10-26 Pedro Alves <palves@redhat.com>
8327
8328 * linux-low.c (handle_extended_wait): Link parent/child fork
8329 threads.
8330 (linux_wait_1): Unlink them.
8331 (linux_set_resume_request): Ignore resume requests for
8332 already-resumed and unhandled fork child threads.
8333 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8334 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8335 New functions.
8336 (handle_v_requests) <vCont>: Don't call require_running.
8337 * server.h (in_queued_stop_replies): New declaration.
8338
cb93dc7f
YQ
83392016-10-24 Yao Qi <yao.qi@linaro.org>
8340
8341 PR server/20733
8342 * linux-aarch64-low.c (append_insns): Cast the return value to
8343 'uint32_t *'.
8344
a1078bea
YQ
83452016-10-10 Yao Qi <yao.qi@linaro.org>
8346
8347 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8348
1fb77080
SDJ
83492016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8350
8351 * target.c (target_supports_multi_process): New function, moved
8352 from...
8353 * target.h (target_supports_multi_process): ... here. Remove
8354 macro.
8355
39b5a3b9
TT
83562016-10-05 Tom Tromey <tom@tromey.com>
8357
8358 PR remote/20655:
8359 * tracepoint.c (handle_tracepoint_bkpts): Check
8360 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8361
c1d0b70a
YQ
83622016-10-05 Yao Qi <yao.qi@linaro.org>
8363
8364 * configure.srv: Update the path of arm-*.xml files.
8365
0a69eedb
YQ
83662016-10-05 Terry Guo <terry.guo@arm.com>
8367 Yao Qi <yao.qi@linaro.org>
8368
8369 * Makefile.in: Adjust the path of rules.
8370 * configure.srv: Update the path of xml files.
8371 * regformats/arm-with-iwmmxt.dat: Regenerated.
8372 * regformats/arm-with-neon.dat: Likewise.
8373 * regformats/arm-with-vfpv2.dat: Likewise.
8374 * regformats/arm-with-vfpv3.dat Likewise.
8375
17e16485
YQ
83762016-09-30 Yao Qi <yao.qi@linaro.org>
8377
8378 PR gdbserver/20627
8379 * target.c (target_stop_and_wait): Don't call
8380 target_continue_no_signal, use resume_stop instead.
8381
edeeb602
YQ
83822016-09-26 Yao Qi <yao.qi@linaro.org>
8383
8384 * linux-low.c (linux_wait_1): Call debug_exit.
8385
503b1c39
PA
83862016-09-23 Pedro Alves <palves@redhat.com>
8387
8388 * Makefile.in (SFILES): Add common/new-op.c.
8389 (OBS): Add common/new-op.o.
8390 (new-op.o): New rule.
8391
74172ecf
SM
83922016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8393
8394 * .gitinore: Ignore more files.
8395
fc6cda2e
YQ
83962016-09-21 Yao Qi <yao.qi@linaro.org>
8397
8398 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8399 23.
8400
bc1e6c81
SDJ
84012016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8402
8403 * server.c (start_inferior): Call target_mourn_inferior instead of
8404 mourn_inferior; pass ptid_t argument to it.
8405 (resume): Likewise.
8406 (handle_target_event): Likewise.
8407 * target.c (target_mourn_inferior): New function.
8408 * target.h (mourn_inferior): Delete macro.
8409
0e00e962
AA
84102016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8411
8412 * linux-low.c (lwp_is_stepping): New function.
8413
1d8cb77d
CL
84142016-09-06 Carl Love <cel@us.ibm.com>
8415
8416 * server.c (start_inferior): Fixed comment, requested comment change
8417 didn't get updated correctly. Removed reference to ptrace () call as
8418 it is only true on Linux systems.
8419
7313bced
CL
84202016-09-06 Carl Love <cel@us.ibm.com>
8421
8422 * server.c (start_inferior): Do not call
8423 function target_post_create_inferior () if the
8424 inferior process has already exited.
8425
cf6de44d
PA
84262016-09-05 Pedro Alves <palves@redhat.com>
8427
8428 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8429 (COMPILE.pre, CC_LD): Use CXX directly.
8430 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8431 * acinclude.m4: Don't include build-with-cxx.m4.
8432 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8433 * configure: Regenerate.
8434
c1da6748
AT
84352016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8436
8437 PR gdb/19495
8438 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8439 call writing data to own_buf.
8440
f2b9e3df
SDJ
84412016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8442
8443 * target.c (mywait): Call target_wait instead of
8444 the_target->wait.
8445 (target_wait): New function.
8446
049a8570
SDJ
84472016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8448
8449 * server.c (start_inferior): New variable 'ptid'. Replace calls
8450 to the_target->resume by target_continue{,_no_signal}, depending
8451 on the case.
8452 * target.c (target_stop_and_wait): Call target_continue_no_signal
8453 instead of the_target->resume.
8454 (target_continue): New function.
8455
3aa5cfa0
AT
84562016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8457
8458 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8459
754653a7
AZ
84602016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8461
8462 PR server/20491
8463 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8464 ps_prochandle.
8465 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8466 * linux-arm-low.c (ps_get_thread_area): Likewise.
8467 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8468 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8469 * linux-mips-low.c (ps_get_thread_area): Likewise.
8470 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8471 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8472 * linux-x86-low.c (ps_get_thread_area): Likewise.
8473 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8474
ed036b40
PA
84752016-08-19 Pedro Alves <palves@redhat.com>
8476
8477 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8478
c8ef42ee
PA
84792016-08-19 Pedro Alves <palves@redhat.com>
8480
8481 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8482 comment. Use memcpy instead of casting through unsigned long.
8483
9c235a72
PA
84842016-08-19 Pedro Alves <palves@redhat.com>
8485
8486 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8487 allocating around 0x80000000.
8488
201506da
PA
84892016-08-19 Pedro Alves <palves@redhat.com>
8490
8491 PR gdb/20415
8492 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8493 (x32-avx512-linux-ipa.o): New rules.
8494 * configure.ac (x86_64-*-linux*): New x32 check.
8495 * configure.srv (ipa_x32_linux_regobj): New.
8496 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8497 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8498 descriptions.
8499 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8500 descriptions.
8501 * configure: Regenerate.
8502
f348d89a
PA
85032016-08-09 Pedro Alves <palves@redhat.com>
8504
8505 PR gdb/18653
8506 * Makefile.in (OBS): Add signals-state-save-restore.o.
8507 (signals-state-save-restore.o): New rule.
8508 * config.in: Regenerate.
8509 * configure: Regenerate.
8510 * linux-low.c: Include "signals-state-save-restore.h".
8511 (linux_create_inferior): Call
8512 restore_original_signals_state.
8513 * server.c: Include "dispositions-save-restore.h".
8514 (captured_main): Call save_original_signals_state.
8515
1baf5149
PA
85162016-08-05 Pedro Alves <palves@redhat.com>
8517
8518 * configure: Regenerate.
8519
fcd4a73d
YQ
85202016-08-04 Yao Qi <yao.qi@linaro.org>
8521
8522 * linux-low.c (regsets_fetch_inferior_registers): Check
8523 errno is ESRCH or not.
8524
979659d0
YQ
85252016-08-02 Yao Qi <yao.qi@linaro.org>
8526
8527 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8528 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8529 (thread_db_load_search): Update.
8530 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8531 td_ta_set_event and td_ta_event_getmsg.
8532
6598661d
PA
85332016-07-26 Pedro Alves <palves@redhat.com>
8534
8535 PR server/20414
8536 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8537 of unsigned long for 64-bit registers and use uint32_t instead of
8538 unsigned int for 32-bit registers.
8539
9cf12d57
PA
85402016-07-26 Pedro Alves <palves@redhat.com>
8541
8542 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8543 to 'ptrace'.
8544
305450ed
TT
85452016-07-21 Tom Tromey <tom@tromey.com>
8546
8547 * configure: Rebuild.
8548
2583da7c
YQ
85492016-07-21 Yao Qi <yao.qi@linaro.org>
8550
8551 * mem-break.c (find_gdb_breakpoint): Cast bp to
8552 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8553
21536b36
YQ
85542016-07-21 Yao Qi <yao.qi@linaro.org>
8555
8556 * server.c (handle_v_requests): Support s and S actions
8557 if target_supports_software_single_step return true.
8558
8901d193
YQ
85592016-07-21 Yao Qi <yao.qi@linaro.org>
8560
8561 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8562 is resume_step, call maybe_hw_step.
8563 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8564 and unstop them.
8565 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8566 breakpoints or not.
8567 (proceed_one_lwp): If resume request is resume_step, install
8568 reinsert breakpoints and call maybe_hw_step.
8569
0e9a339e
YQ
85702016-07-21 Yao Qi <yao.qi@linaro.org>
8571
8572 * linux-low.c (proceed_one_lwp): Declare.
8573 (linux_resume_one_thread): Remove local variable 'step'.
8574 Lift code enqueue signal. Call proceed_one_lwp instead of
8575 linux_resume_one_lwp.
8576
4281b351
YQ
85772016-07-21 Yao Qi <yao.qi@linaro.org>
8578
8579 * linux-low.c (linux_resume_one_thread): Call
8580 enqueue_pending_signal.
8581
984a2c04
YQ
85822016-07-21 Yao Qi <yao.qi@linaro.org>
8583
8584 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8585 * inferiors.c (do_restore_current_thread_cleanup): New function.
8586 (make_cleanup_restore_current_thread): Likewise.
8587 * linux-low.c (install_software_single_step_breakpoints): Call
8588 make_cleanup_restore_current_thread. Switch current_thread to
8589 thread.
8590
bec903c9
YQ
85912016-07-21 Yao Qi <yao.qi@linaro.org>
8592
8593 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8594 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8595 (clone_one_breakpoint): Likewise.
8596 (delete_reinsert_breakpoints): Change parameter to thread.
8597 Callers updated.
8598 (has_reinsert_breakpoints): Likewise.
8599 (uninsert_reinsert_breakpoints): Likewise.
8600 (reinsert_reinsert_breakpoints): Likewise.
8601 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8602 (delete_reinsert_breakpoints): Likewise.
8603 (reinsert_reinsert_breakpoints): Likewise.
8604 (uninsert_reinsert_breakpoints): Likewise.
8605 (has_reinsert_breakpoints): Likewise.
8606
63c40ec7
YQ
86072016-07-21 Yao Qi <yao.qi@linaro.org>
8608
8609 * inferiors.c (get_thread_process): Make parameter const.
8610 * inferiors.h (get_thread_process): Update declaration.
8611 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8612 Add new parameters child_thread and parent_thread. Callers
8613 updated.
8614 * mem-break.h (clone_all_breakpoints): Update declaration.
8615
9aa76cd0
YQ
86162016-07-21 Yao Qi <yao.qi@linaro.org>
8617
8618 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8619 <command_list, handler>: Remove.
8620 (struct gdb_breakpoint): New.
8621 (struct other_breakpoint): New.
8622 (struct reinsert_breakpoint): New.
8623 (is_gdb_breakpoint): New function.
8624 (any_persistent_commands): Update command_list if
8625 is_gdb_breakpoint returns true.
8626 (set_breakpoint): Create breakpoints according to their types.
8627 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8628 (set_gdb_breakpoint_1): Likewise.
8629 (set_gdb_breakpoint): Likewise.
8630 (clear_breakpoint_conditions): Change parameter type to
8631 'struct gdb_breakpoint *'.
8632 (clear_breakpoint_commands): Likewise.
8633 (clear_breakpoint_conditions_and_commands): Likewise.
8634 (add_condition_to_breakpoint): Likewise.
8635 (add_breakpoint_condition): Likewise.
8636 (add_commands_to_breakpoint): Likewise.
8637 (check_breakpoints): Check other_breakpoint.
8638 (clone_one_breakpoint): Clone breakpopint according to its type.
8639 * mem-break.h (struct gdb_breakpoint): Declare.
8640 (set_gdb_breakpoint): Update declaration.
8641 (clear_breakpoint_conditions_and_commands): Likewise.
8642 (add_breakpoint_condition): Likewise.
8643 (add_breakpoint_commands): Likewise.
8644 * server.c (process_point_options): Change parameter type to
8645 'struct gdb_breakpoint *'.
8646
811f8301
YQ
86472016-07-21 Yao Qi <yao.qi@linaro.org>
8648
8649 * mem-break.c (set_breakpoint_at): Rename it to ...
8650 (set_breakpoint_type_at): ... it.
8651 (set_breakpoint_at): Call set_breakpoint_type_at.
8652 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8653 * mem-break.h (set_breakpoint_at): Update comments.
8654
b1c51e36
CLT
86552016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8656
8657 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8658 to buf parameter.
8659 (nios2_store_gregset): Likewise.
8660
ced2dffb
PA
86612016-07-01 Pedro Alves <palves@redhat.com>
8662 Antoine Tremblay <antoine.tremblay@ericsson.com>
8663
8664 * linux-low.c: Change interface to take the target lwp_info
8665 pointer directly and return void. Handle detaching from a zombie
8666 thread.
8667 (linux_detach_lwp_callback): New function.
8668 (linux_detach): Detach from the leader thread after detaching from
8669 the clone threads.
8670
2ac09a5b
YQ
86712016-06-28 Yao Qi <yao.qi@linaro.org>
8672
8673 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8674 for variable new_offset.
8675 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8676 (aarch64_ftrace_insn_reloc_cb): Likewise.
8677 (aarch64_ftrace_insn_reloc_tb): Likewise.
8678 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8679 PRIx64 instead of PRIx32.
8680
79e7fd4f
YQ
86812016-06-28 Yao Qi <yao.qi@linaro.org>
8682
8683 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8684 (the_low_target): Install arm_get_syscall_trapinfo.
8685
061fc021
YQ
86862016-06-28 Yao Qi <yao.qi@linaro.org>
8687
8688 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8689 function.
8690 (the_low_target): Install aarch64_get_syscall_trapinfo.
8691
4cc32bec
YQ
86922016-06-28 Yao Qi <yao.qi@linaro.org>
8693
8694 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8695 Callers updated.
8696 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8697 Remove parameter sysno.
8698 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8699 sysret.
8700
782c1122
AA
87012016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8702
8703 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8704 (s390_emit_ne_goto): Likewise.
8705 (s390_emit_lt_goto): Likewise.
8706 (s390_emit_le_goto): Likewise.
8707 (s390_emit_gt_goto): Likewise.
8708 (s390_emit_ge_goto): Likewise.
8709 (s390x_emit_eq_goto): Likewise.
8710 (s390x_emit_ne_goto): Likewise.
8711 (s390x_emit_lt_goto): Likewise.
8712 (s390x_emit_le_goto): Likewise.
8713 (s390x_emit_gt_goto): Likewise.
8714 (s390x_emit_ge_goto): Likewise.
8715 (s390_emit_ops_impl): Mark variable static.
8716 (s390x_emit_ops): Likewise.
8717
2e7b624b
YQ
87182016-06-17 Yao Qi <yao.qi@linaro.org>
8719
8720 * linux-low.c (handle_extended_wait): Call
8721 uninsert_reinsert_breakpoints for the parent process. Remove
8722 reinsert breakpoints from the child process. Reinsert them to
8723 the parent process when vfork is done.
8724 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8725 (reinsert_reinsert_breakpoints): New function.
8726 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8727 (reinsert_reinsert_breakpoints): Declare.
8728
8a81c5d7
YQ
87292016-06-17 Yao Qi <yao.qi@linaro.org>
8730
8731 * linux-low.c (handle_extended_wait): If the parent is doing
8732 step-over, remove the reinsert breakpoints from the forked child.
8733
f50bf8e5
YQ
87342016-06-17 Yao Qi <yao.qi@linaro.org>
8735
8736 * linux-low.c (unsuspend_all_lwps): Declare.
8737 (linux_low_filter_event): If thread exited, call finish_step_over.
8738 If step-over is finished, unsuspend other threads.
8739
8376a3cb
YQ
87402016-06-17 Yao Qi <yao.qi@linaro.org>
8741
8742 * linux-low.c (linux_resume_one_lwp_throw): Assert
8743 has_reinsert_breakpoints returns false.
8744 * mem-break.c (delete_disabled_breakpoints): Assert
8745 bp type isn't reinsert_breakpoint.
8746
f79b145d
YQ
87472016-06-17 Yao Qi <yao.qi@linaro.org>
8748
8749 * linux-low.c (maybe_hw_step): New function.
8750 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8751 (finish_step_over): Switch current_thread to lwp temporarily,
8752 and assert has_reinsert_breakpoints returns true.
8753 (proceed_one_lwp): Call maybe_hw_step.
8754 * mem-break.c (has_reinsert_breakpoints): New function.
8755 * mem-break.h (has_reinsert_breakpoints): Declare.
8756
0ae534d2
JT
87572016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8758
8759 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8760
fcdad592
YQ
87612016-05-17 Yao Qi <yao.qi@linaro.org>
8762
8763 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8764 instead of find_inferior.
8765
9e784964
YQ
87662016-05-05 Yao Qi <yao.qi@linaro.org>
8767
8768 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8769 Initialize res to zero.
8770
cf2ebb6e
YQ
87712016-05-05 Yao Qi <yao.qi@linaro.org>
8772
8773 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8774 to uint32_t.
8775
c1aebf87
UW
87762016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8777
8778 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8779 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8780 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8781
35fd2deb 87822016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8783 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8784
8785 * tracepoint.c (write_inferior_int8): New function.
8786 (cmd_qtenable_disable): Write enable flag using
8787 write_inferior_int8.
8788
484b3c32
YQ
87892016-04-25 Yao Qi <yao.qi@linaro.org>
8790
8791 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8792 (need_step_over_p): Return zero if the LWP has pending signals
8793 can be delivered on software single step target.
8794
85ba7d86
YQ
87952016-04-25 Yao Qi <yao.qi@linaro.org>
8796
8797 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8798 return instead of error.
8799
3539aa13
YQ
88002016-04-22 Yao Qi <yao.qi@linaro.org>
8801
8802 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8803 to 23.
8804
5b061e98
YQ
88052016-04-22 Yao Qi <yao.qi@linaro.org>
8806
8807 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8808 signal when stepping over breakpoint with software single
8809 step.
8810
3451269c
PA
88112016-04-21 Pedro Alves <palves@redhat.com>
8812
8813 * linux-s390-low.c (s390_collect_ptrace_register)
8814 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8815 add casts.
8816 (s390_check_regset): Use void * instead of gdb_byte *.
8817
a2358508
PA
88182016-04-20 Pedro Alves <palves@redhat.com>
8819
8820 * configure: Renegerate.
8821
6885166d
YQ
88222016-04-20 Yao Qi <yao.qi@linaro.org>
8823
8824 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8825 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8826 number 16.
8827 (arm_store_gregset): Likewise.
8828
2b863f51
WT
88292016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8830
8831 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8832 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8833 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8834 (amd64-avx-mpx-linux.c): New rules.
8835 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8836 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8837 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8838 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8839 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8840 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8841 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8842 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8843 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8844 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8845 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8846 * linux-x86-low.c (x86_linux_read_description): Add case for
8847 X86_XSTATE_AVX_MPX_MASK.
8848 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8849 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8850 init_registers_i386_avx_mpx_linux.
8851 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8852 (initialize_low_tracepoint): Call
8853 init_registers_i386_avx_mpx_linux.
8854 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8855 (initialize_low_tracepoint): Call
8856 init_registers_amd64_avx_mpx_linux.
8857 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8858 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8859 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8860 declarations.
8861
9b30624b
PA
88622016-04-18 Pedro Alves <palves@redhat.com>
8863
8864 * configure: Regenerate.
8865
45e3745e
AT
88662016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8867
8868 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8869 (aarch64_emit_sub): Likewise.
8870
2afc13ff
PA
88712016-04-12 Pedro Alves <palves@redhat.com>
8872
8873 * utils.c (prepare_to_throw_exception): Delete.
8874
6e774b13
SM
88752016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8876
8877 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8878
4dca19f8
MK
88792016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8880
8881 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8882
d0a9981f
MK
88832016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8884
8885 * linux-aarch64-ipa.c: Add <elf.h> include.
8886 * linux-ppc-ipa.c: Add <elf.h> include.
8887 * linux-s390-ipa.c: Add <elf.h> include.
8888
252db07e
MK
88892016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8890
8891 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8892 (get_raw_reg_ptr): Likewise.
8893 (get_trace_state_variable_value_ptr): Likewise.
8894 (set_trace_state_variable_value_ptr): Likewise.
8895 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8896 char *.
8897
14e2b6d9
MK
88982016-03-31 Wei-cheng Wang <cole945@gmail.com>
8899 Marcin Kościelnicki <koriakin@0x04.net>
8900
8901 PR/17221
8902 * linux-ppc-low.c (emit_insns): New function.
8903 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8904 (ppc_emit_prologue): New function.
8905 (ppc_emit_epilogue): New function.
8906 (ppc_emit_add): New function.
8907 (ppc_emit_sub): New function.
8908 (ppc_emit_mul): New function.
8909 (ppc_emit_lsh): New function.
8910 (ppc_emit_rsh_signed): New function.
8911 (ppc_emit_rsh_unsigned): New function.
8912 (ppc_emit_ext): New function.
8913 (ppc_emit_zero_ext): New function.
8914 (ppc_emit_log_not): New function.
8915 (ppc_emit_bit_and): New function.
8916 (ppc_emit_bit_or): New function.
8917 (ppc_emit_bit_xor): New function.
8918 (ppc_emit_bit_not): New function.
8919 (ppc_emit_equal): New function.
8920 (ppc_emit_less_signed): New function.
8921 (ppc_emit_less_unsigned): New function.
8922 (ppc_emit_ref): New function.
8923 (ppc_emit_const): New function.
8924 (ppc_emit_reg): New function.
8925 (ppc_emit_pop): New function.
8926 (ppc_emit_stack_flush): New function.
8927 (ppc_emit_swap): New function.
8928 (ppc_emit_stack_adjust): New function.
8929 (ppc_emit_call): New function.
8930 (ppc_emit_int_call_1): New function.
8931 (ppc_emit_void_call_2): New function.
8932 (ppc_emit_if_goto): New function.
8933 (ppc_emit_goto): New function.
8934 (ppc_emit_eq_goto): New function.
8935 (ppc_emit_ne_goto): New function.
8936 (ppc_emit_lt_goto): New function.
8937 (ppc_emit_le_goto): New function.
8938 (ppc_emit_gt_goto): New function.
8939 (ppc_emit_ge_goto): New function.
8940 (ppc_write_goto_address): New function.
8941 (ppc_emit_ops_impl): New static variable.
8942 (ppc64v1_emit_prologue): New function.
8943 (ppc64v2_emit_prologue): New function.
8944 (ppc64_emit_epilogue): New function.
8945 (ppc64_emit_add): New function.
8946 (ppc64_emit_sub): New function.
8947 (ppc64_emit_mul): New function.
8948 (ppc64_emit_lsh): New function.
8949 (ppc64_emit_rsh_signed): New function.
8950 (ppc64_emit_rsh_unsigned): New function.
8951 (ppc64_emit_ext): New function.
8952 (ppc64_emit_zero_ext): New function.
8953 (ppc64_emit_log_not): New function.
8954 (ppc64_emit_bit_and): New function.
8955 (ppc64_emit_bit_or): New function.
8956 (ppc64_emit_bit_xor): New function.
8957 (ppc64_emit_bit_not): New function.
8958 (ppc64_emit_equal): New function.
8959 (ppc64_emit_less_signed): New function.
8960 (ppc64_emit_less_unsigned): New function.
8961 (ppc64_emit_ref): New function.
8962 (ppc64_emit_const): New function.
8963 (ppc64v1_emit_reg): New function.
8964 (ppc64v2_emit_reg): New function.
8965 (ppc64_emit_pop): New function.
8966 (ppc64_emit_stack_flush): New function.
8967 (ppc64_emit_swap): New function.
8968 (ppc64v1_emit_call): New function.
8969 (ppc64v2_emit_call): New function.
8970 (ppc64v1_emit_int_call_1): New function.
8971 (ppc64v2_emit_int_call_1): New function.
8972 (ppc64v1_emit_void_call_2): New function.
8973 (ppc64v2_emit_void_call_2): New function.
8974 (ppc64_emit_if_goto): New function.
8975 (ppc64_emit_eq_goto): New function.
8976 (ppc64_emit_ne_goto): New function.
8977 (ppc64_emit_lt_goto): New function.
8978 (ppc64_emit_le_goto): New function.
8979 (ppc64_emit_gt_goto): New function.
8980 (ppc64_emit_ge_goto): New function.
8981 (ppc64v1_emit_ops_impl): New static variable.
8982 (ppc64v2_emit_ops_impl): New static variable.
8983 (ppc_emit_ops): New function.
8984 (linux_low_target): Wire in ppc_emit_ops.
8985
a2174ba4
MK
89862016-03-31 Wei-cheng Wang <cole945@gmail.com>
8987 Marcin Kościelnicki <koriakin@0x04.net>
8988
8989 PR/17221
8990 * Makefile.in: Add powerpc-*-ipa.o
8991 * configure.srv: Add ipa_obj for powerpc*-linux.
8992 * linux-ppc-ipa.c: New file.
8993 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8994 includes.
8995 (PPC_FIELD): New macro.
8996 (PPC_SEXT): New macro.
8997 (PPC_OP6): New macro.
8998 (PPC_BO): New macro.
8999 (PPC_LI): New macro.
9000 (PPC_BD): New macro.
9001 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
9002 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
9003 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
9004 (ppc_get_thread_area): New function.
9005 (is_elfv2_inferior): New function.
9006 (gen_ds_form): New function.
9007 (GEN_STD): New macro.
9008 (GEN_STDU): New macro.
9009 (GEN_LD): New macro.
9010 (GEN_LDU): New macro.
9011 (gen_d_form): New function.
9012 (GEN_ADDI): New macro.
9013 (GEN_ADDIS): New macro.
9014 (GEN_LI): New macro.
9015 (GEN_LIS): New macro.
9016 (GEN_ORI): New macro.
9017 (GEN_ORIS): New macro.
9018 (GEN_LWZ): New macro.
9019 (GEN_STW): New macro.
9020 (GEN_STWU): New macro.
9021 (gen_xfx_form): New function.
9022 (GEN_MFSPR): New macro.
9023 (GEN_MTSPR): New macro.
9024 (GEN_MFCR): New macro.
9025 (GEN_MTCR): New macro.
9026 (GEN_SYNC): New macro.
9027 (GEN_LWSYNC): New macro.
9028 (gen_x_form): New function.
9029 (GEN_OR): New macro.
9030 (GEN_MR): New macro.
9031 (GEN_LWARX): New macro.
9032 (GEN_STWCX): New macro.
9033 (GEN_CMPW): New macro.
9034 (gen_md_form): New function.
9035 (GEN_RLDICL): New macro.
9036 (GEN_RLDICR): New macro.
9037 (gen_i_form): New function.
9038 (GEN_B): New macro.
9039 (GEN_BL): New macro.
9040 (gen_b_form): New function.
9041 (GEN_BNE): New macro.
9042 (GEN_LOAD): New macro.
9043 (GEN_STORE): New macro.
9044 (gen_limm): New function.
9045 (gen_atomic_xchg): New function.
9046 (gen_call): New function.
9047 (ppc_relocate_instruction): New function.
9048 (ppc_install_fast_tracepoint_jump_pad): New function.
9049 (ppc_get_min_fast_tracepoint_insn_len): New function.
9050 (ppc_get_ipa_tdesc_idx): New function.
9051 (the_low_target): Wire in the new functions.
9052 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9053 tdescs.
9054 * linux-ppc-tdesc.h: New file.
9055
a13c4696
MK
90562016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9057
9058 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9059 (alloc_jump_pad_buffer): New function.
9060 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9061 (alloc_jump_pad_buffer): New function.
9062 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9063 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9064 (alloc_jump_pad_buffer): New function.
9065 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9066 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9067 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9068 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9069
1cda1512
MK
90702016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9071
9072 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9073 * linux-amd64-ipa.c: Likewise.
9074 * linux-i386-ipa.c: Likewise.
9075 * linux-s390-ipa.c: Likewise.
9076 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9077 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9078 set_trace_state_variable_value_ptr.
9079 (struct ipa_sym_addresses): Likewise.
9080 (symbol_list): Likewise.
9081 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9082 accessing gdb_collect directly.
9083 (gdb_collect_ptr_type): New typedef.
9084 (get_raw_reg_ptr_type): New typedef.
9085 (get_trace_state_variable_value_ptr_type): New typedef.
9086 (set_trace_state_variable_value_ptr_type): New typedef.
9087 (gdb_collect_ptr): New global.
9088 (get_raw_reg_ptr): New global.
9089 (get_trace_state_variable_value_ptr): New global.
9090 (set_trace_state_variable_value_ptr): New global.
9091 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9092 accessing get_raw_reg directly.
9093 (get_get_tsv_func_addr): Likewise for
9094 get_trace_state_variable_value_ptr.
9095 (get_set_tsv_func_addr): Likewise for
9096 set_trace_state_variable_value_ptr.
9097 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9098
72fb5488
SM
90992016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9100
9101 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9102
28170b88
MK
91032016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9104
9105 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9106 packets.
9107 (relocate_instruction): Remove own_buf.
9108 * server.c (own_buf): Make global.
9109 (handle_v_requests): Make global.
9110 * server.h (own_buf): New declaration.
9111 (handle_v_requests): New prototype.
9112
f39e8743
MK
91132016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9114
9115 PR 18377
9116 * linux-s390-low.c (add_insns): New function.
9117 (s390_emit_prologue): New function.
9118 (s390_emit_epilogue): New function.
9119 (s390_emit_add): New function.
9120 (s390_emit_sub): New function.
9121 (s390_emit_mul): New function.
9122 (s390_emit_lsh): New function.
9123 (s390_emit_rsh_signed): New function.
9124 (s390_emit_rsh_unsigned): New function.
9125 (s390_emit_ext): New function.
9126 (s390_emit_log_not): New function.
9127 (s390_emit_bit_and): New function.
9128 (s390_emit_bit_or): New function.
9129 (s390_emit_bit_xor): New function.
9130 (s390_emit_bit_not): New function.
9131 (s390_emit_equal): New function.
9132 (s390_emit_less_signed): New function.
9133 (s390_emit_less_unsigned): New function.
9134 (s390_emit_ref): New function.
9135 (s390_emit_if_goto): New function.
9136 (s390_emit_goto): New function.
9137 (s390_write_goto_address): New function.
9138 (s390_emit_litpool): New function.
9139 (s390_emit_const): New function.
9140 (s390_emit_call): New function.
9141 (s390_emit_reg): New function.
9142 (s390_emit_pop): New function.
9143 (s390_emit_stack_flush): New function.
9144 (s390_emit_zero_ext): New function.
9145 (s390_emit_swap): New function.
9146 (s390_emit_stack_adjust): New function.
9147 (s390_emit_set_r2): New function.
9148 (s390_emit_int_call_1): New function.
9149 (s390_emit_void_call_2): New function.
9150 (s390_emit_eq_goto): New function.
9151 (s390_emit_ne_goto): New function.
9152 (s390_emit_lt_goto): New function.
9153 (s390_emit_le_goto): New function.
9154 (s390_emit_gt_goto): New function.
9155 (s390_emit_ge_goto): New function.
9156 (s390x_emit_prologue): New function.
9157 (s390x_emit_epilogue): New function.
9158 (s390x_emit_add): New function.
9159 (s390x_emit_sub): New function.
9160 (s390x_emit_mul): New function.
9161 (s390x_emit_lsh): New function.
9162 (s390x_emit_rsh_signed): New function.
9163 (s390x_emit_rsh_unsigned): New function.
9164 (s390x_emit_ext): New function.
9165 (s390x_emit_log_not): New function.
9166 (s390x_emit_bit_and): New function.
9167 (s390x_emit_bit_or): New function.
9168 (s390x_emit_bit_xor): New function.
9169 (s390x_emit_bit_not): New function.
9170 (s390x_emit_equal): New function.
9171 (s390x_emit_less_signed): New function.
9172 (s390x_emit_less_unsigned): New function.
9173 (s390x_emit_ref): New function.
9174 (s390x_emit_if_goto): New function.
9175 (s390x_emit_const): New function.
9176 (s390x_emit_call): New function.
9177 (s390x_emit_reg): New function.
9178 (s390x_emit_pop): New function.
9179 (s390x_emit_stack_flush): New function.
9180 (s390x_emit_zero_ext): New function.
9181 (s390x_emit_swap): New function.
9182 (s390x_emit_stack_adjust): New function.
9183 (s390x_emit_int_call_1): New function.
9184 (s390x_emit_void_call_2): New function.
9185 (s390x_emit_eq_goto): New function.
9186 (s390x_emit_ne_goto): New function.
9187 (s390x_emit_lt_goto): New function.
9188 (s390x_emit_le_goto): New function.
9189 (s390x_emit_gt_goto): New function.
9190 (s390x_emit_ge_goto): New function.
9191 (s390_emit_ops): New function.
9192 (struct linux_target_ops): Fill in emit_ops hook.
9193
abd9baf9
MK
91942016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9195
9196 PR 18377
9197 * Makefile.in: Add s390 IPA files.
9198 * configure.srv: Build IPA for s390.
9199 * linux-s390-ipa.c: New file.
9200 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9201 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9202 (tdesc_s390_linux32): Likewise.
9203 (init_registers_s390_linux32v1): Likewise.
9204 (tdesc_s390_linux32v1): Likewise.
9205 (init_registers_s390_linux32v2): Likewise.
9206 (tdesc_s390_linux32v2): Likewise.
9207 (init_registers_s390_linux64): Likewise.
9208 (tdesc_s390_linux64): Likewise.
9209 (init_registers_s390_linux64v1): Likewise.
9210 (tdesc_s390_linux64v1): Likewise.
9211 (init_registers_s390_linux64v2): Likewise.
9212 (tdesc_s390_linux64v2): Likewise.
9213 (init_registers_s390_te_linux64): Likewise.
9214 (tdesc_s390_te_linux64): Likewise.
9215 (init_registers_s390_vx_linux64): Likewise.
9216 (tdesc_s390_vx_linux64): Likewise.
9217 (init_registers_s390_tevx_linux64): Likewise.
9218 (tdesc_s390_tevx_linux64): Likewise.
9219 (init_registers_s390x_linux64): Likewise.
9220 (tdesc_s390x_linux64): Likewise.
9221 (init_registers_s390x_linux64v1): Likewise.
9222 (tdesc_s390x_linux64v1): Likewise.
9223 (init_registers_s390x_linux64v2): Likewise.
9224 (tdesc_s390x_linux64v2): Likewise.
9225 (init_registers_s390x_te_linux64): Likewise.
9226 (tdesc_s390x_te_linux64): Likewise.
9227 (init_registers_s390x_vx_linux64): Likewise.
9228 (tdesc_s390x_vx_linux64): Likewise.
9229 (init_registers_s390x_tevx_linux64): Likewise.
9230 (tdesc_s390x_tevx_linux64): Likewise.
9231 (have_hwcap_s390_vx): New static variable.
9232 (s390_arch_setup): Fill have_hwcap_s390_vx.
9233 (s390_get_thread_area): New function.
9234 (s390_ft_entry_gpr_esa): New const.
9235 (s390_ft_entry_gpr_zarch): New const.
9236 (s390_ft_entry_misc): New const.
9237 (s390_ft_entry_fr): New const.
9238 (s390_ft_entry_vr): New const.
9239 (s390_ft_main_31): New const.
9240 (s390_ft_main_64): New const.
9241 (s390_ft_exit_fr): New const.
9242 (s390_ft_exit_vr): New const.
9243 (s390_ft_exit_misc): New const.
9244 (s390_ft_exit_gpr_esa): New const.
9245 (s390_ft_exit_gpr_zarch): New const.
9246 (append_insns): New function.
9247 (s390_relocate_instruction): New function.
9248 (s390_install_fast_tracepoint_jump_pad): New function.
9249 (s390_get_min_fast_tracepoint_insn_len): New function.
9250 (s390_get_ipa_tdesc_idx): New function.
9251 (struct linux_target_ops): Wire in the above functions.
9252 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9253 * linux-s390-tdesc.h: New file.
9254
a4105d04
MK
92552016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9256
9257 * linux-s390-low.c (s390_supports_tracepoints): New function.
9258 (struct linux_target_ops): Fill supports_tracepoints hook.
9259
35ac8b3e
YQ
92602016-03-18 Yao Qi <yao.qi@linaro.org>
9261
9262 * linux-low.c (lwp_signal_can_be_delivered): New function.
9263 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9264
94610ec4
YQ
92652016-03-18 Yao Qi <yao.qi@linaro.org>
9266
9267 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9268 0 if signal is enqueued. Remove 'signal' from one debugging
9269 message. Move one debugging message to some lines below.
9270 Remove code setting 'signal' to 0.
9271
80aea927
YQ
92722016-03-18 Yao Qi <yao.qi@linaro.org>
9273
9274 * linux-low.c (linux_low_filter_event): Remove redundant
9275 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9276
b04fd3be
MK
92772016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9278
9279 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9280 (struct linux_target_ops): Wire in the above.
9281
c40c8d4b
YQ
92822016-03-03 Yao Qi <yao.qi@linaro.org>
9283
9284 * linux-low.c: Update comments to start_step_over.
9285
0f8288ae
YQ
92862016-03-03 Yao Qi <yao.qi@linaro.org>
9287
9288 PR server/19736
9289 * linux-low.c (handle_extended_wait): Set child suspended
9290 if event_lwp->bp_reinsert isn't zero.
9291
fdbd04a8
YQ
92922016-03-02 Yao Qi <yao.qi@linaro.org>
9293
9294 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9295 enqueue_pending_signal.
9296
6896a8fa
MK
92972016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9298
9299 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9300 is actually loaded.
9301
ab503087
MK
93022016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9303
9304 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9305 (s390_regmap_3264) [!__s390x__]: New global.
9306 (s390_collect_ptrace_register): Skip map entries containing -1.
9307 (s390_supply_ptrace_register): Ditto.
9308 (s390_fill_gprs_high): New function.
9309 (s390_store_gprs_high): New function.
9310 (s390_regsets): Add NT_S390_HIGH_GPRS.
9311 (s390_get_hwcap): Enable on 31-bit.
9312 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9313 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9314 Detect NT_S390_HIGH_GPRS.
9315 (s390_usrregs_info_3264): Enable on 31-bit.
9316 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9317 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9318
ae91f625
MK
93192016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9320
9321 PR gdb/13808
9322 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9323 * configure.srv: Ditto.
9324 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9325 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9326 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9327 (init_registers_amd64_linux): Remove prototype.
9328 (tdesc_amd64_linux): Remove declaration.
9329 (get_ipa_tdesc): New function.
9330 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9331 initialize remaining tdescs.
9332 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9333 (init_registers_i386_linux): Remove prototype.
9334 (tdesc_i386_linux): Remove declaration.
9335 (get_ipa_tdesc): New function.
9336 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9337 initialize remaining tdescs.
9338 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9339 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9340 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9341 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9342 (x86_get_ipa_tdesc_idx): New function.
9343 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9344 * linux-x86-tdesc.h: New file.
9345 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9346 (target_get_ipa_tdesc_idx): New macro.
9347 * tracepoint.c (ipa_tdesc_idx): New macro.
9348 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9349 (symbol_list): Add ipa_tdesc_idx.
9350 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9351 (ipa_tdesc): Remove.
9352 (ipa_tdesc_idx): New variable.
9353 (get_context_regcache): Use get_ipa_tdesc.
9354 (gdb_collect): Ditto.
9355 (gdb_probe): Ditto.
9356 * tracepoint.h (get_ipa_tdesc): New prototype.
9357 (ipa_tdesc): Remove.
9358
e7ad2f14
PA
93592016-02-24 Pedro Alves <palves@redhat.com>
9360
9361 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9362 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9363 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9364 Factor out common code between the USE_SIGTRAP_SIGINFO and
9365 !USE_SIGTRAP_SIGINFO blocks.
9366 (linux_low_filter_event): Call save_stop_reason instead of
9367 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9368 Update comments.
9369 (linux_wait_1): Update comments.
9370
657f9cde
WW
93712016-02-24 Wei-cheng Wang <cole945@gmail.com>
9372
9373 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9374 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9375 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9376 ppc_insert_point, ppc_remove_point.
9377
b00b61e1
MK
93782016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9379
9380 * linux-s390-low.c (s390_supports_z_point_type): New function.
9381 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9382
553cb527
YQ
93832016-02-16 Yao Qi <yao.qi@linaro.org>
9384
9385 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9386 PC. Get pc from regcache_read_pc.
9387
a5652c21
YQ
93882016-02-12 Yao Qi <yao.qi@linaro.org>
9389
9390 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9391 or linux_get_pc_32bit.
9392 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9393
ed443b61
YQ
93942016-02-12 Yao Qi <yao.qi@linaro.org>
9395
9396 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9397 arm_linux_get_next_pcs_fixup.
9398
020ecd38
MK
93992016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9400
9401 * tracepoint.c (x_tracepoint_action_download): Change
9402 write_inferior_data_ptr to write_inferior_data_pointer.
9403 (cmd_qtstart): Likewise.
9404 (write_inferior_data_ptr): Remove.
9405 (download_agent_expr): Change write_inferior_data_ptr to
9406 write_inferior_data_pointer.
9407 (download_tracepoint_1): Likewise.
9408 (download_tracepoint): Likewise.
9409 (download_trace_state_variables): Likewise.
9410
7cae9051
WW
94112016-02-11 Wei-cheng Wang <cole945@gmail.com>
9412 Marcin Kościelnicki <koriakin@0x04.net>
9413
9414 * tracepoint.c (struct tracepoint_action_ops): Remove.
9415 (struct tracepoint_action): Remove ops.
9416 (m_tracepoint_action_download, r_tracepoint_action_download)
9417 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9418 size and offset accordingly.
9419 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9420 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9421 (tracepoint_action_send, tracepoint_action_download): New functions.
9422 Helpers for trace action handlers.
9423 (add_tracepoint_action): Remove setup actions ops.
9424 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9425
9f6a71b4
YQ
94262016-02-10 Yao Qi <yao.qi@linaro.org>
9427
9428 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9429
1e94266c
SM
94302016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9431
9432 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9433 to AC_OUTPUT.
9434 * configure: Regenerate.
9435
8adce034
SM
94362016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9437
9438 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9439 void * to gdb_byte *.
9440 * linux-low.c (siginfo_fixup): Likewise.
9441 (linux_xfer_siginfo): Likewise.
9442 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9443 Likewise.
9444 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9445
93813b37
WT
94462016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9447
9448 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9449 to srv_tgtobj.
9450 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9451 to srv_tgtobj.
9452 * linux-x86-low.c [__x86_64__]: Include
9453 "nat/amd64-linux-siginfo.h".
9454 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9455 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9456 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9457 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9458 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9459 (cpt_si_fd, si_timerid, si_overrun): Move from
9460 nat/amd64-linux-siginfo.c.
9461 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9462
8424cc97
SM
94632016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9464
9465 * server.c (skip_to_semicolon): Remove.
9466 (process_point_options): Use strchrnul instead of
9467 skip_to_semicolon.
9468
4d18591b
YQ
94692016-01-26 Yao Qi <yao.qi@linaro.org>
9470
9471 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9472 * linux-low.c (install_software_single_step_breakpoints): Don't
9473 call regcache_read_pc.
9474 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9475 argument pc.
9476
d8020970
YQ
94772016-01-26 Yao Qi <yao.qi@linaro.org>
9478
9479 * linux-low.c (install_software_single_step_breakpoints): Call
9480 regcache_read_pc instead of get_pc.
9481
8b207339
YQ
94822016-01-26 Yao Qi <yao.qi@linaro.org>
9483
9484 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9485 (unblock_async_io): Rename to ...
9486 (block_unblock_async_io): ... it. New function.
9487 (enable_async_io): Don't install SIGIO handler. Unblock it
9488 instead.
9489 (disable_async_io): Don't ignore SIGIO. Block it instead.
9490 (initialize_async_io): Install SIGIO handler. Don't call
9491 unblock_async_io.
9492
18879fef
YQ
94932016-01-26 Yao Qi <yao.qi@linaro.org>
9494
9495 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9496 first character is '\003', call *the_target->request_interrupt.
9497
a0f8e08a
YQ
94982016-01-25 Yao Qi <yao.qi@linaro.org>
9499
9500 * remote-utils.c (new_thread_notify): Remove.
9501 (dead_thread_notify): Likewise.
9502 * remote-utils.h (new_thread_notify): Remove declaration.
9503 (dead_thread_notify): Likewise.
9504
cc5fd9ab
MK
95052016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9506
9507 * gdb.trace/pending.exp: Fix expected message on continue.
9508
99e8eb11
MK
95092016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9510
9511 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9512 it works properly on big-endian machines where sizeof (CORE_ADDR)
9513 != sizeof (void *).
9514
a994041d
PA
95152016-01-21 Pedro Alves <palves@redhat.com>
9516
9517 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9518 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9519 * configure: Regenerate.
9520
f7a6a40d
YQ
95212016-01-21 Yao Qi <yao.qi@linaro.org>
9522
9523 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9524 is_thumb and set it according to CPSR saved on the stack.
9525 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9526 arm_sigreturn_next_pc.
9527
6f69e520
YQ
95282016-01-18 Yao Qi <yao.qi@linaro.org>
9529
9530 * linux-low.c (linux_set_pc_64bit): New function.
9531 (linux_get_pc_64bit): New function.
9532 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9533 Declare.
9534 * linux-sparc-low.c (debug_threads): Remove declaration.
9535 (sparc_get_pc): Remove.
9536 (the_low_target): Use linux_get_pc_64bit instead of
9537 sparc_get_pc.
9538 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9539 (the_low_target): Use linux_get_pc_64bit and
9540 linux_set_pc_64bit.
9541
276d4552
YQ
95422016-01-18 Yao Qi <yao.qi@linaro.org>
9543
9544 * linux-arm-low.c (debug_threads): Remove declaration.
9545 (arm_get_pc, arm_set_pc): Remove.
9546 (the_low_target): Use linux_get_pc_32bit and
9547 linux_set_pc_32bit.
9548 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9549 (the_low_target): Use linux_get_pc_32bit and
9550 linux_set_pc_32bit.
9551 * linux-cris-low.c (debug_threads): Remove declaration.
9552 (cris_get_pc, cris_set_pc,): Remove.
9553 (the_low_target): Use linux_get_pc_32bit and
9554 linux_set_pc_32bit.
9555 * linux-crisv32-low.c (debug_threads): Remove declaration.
9556 (cris_get_pc, cris_set_pc): Remove.
9557 (the_low_target): Use linux_get_pc_32bit and
9558 linux_set_pc_32bit.
9559 * linux-low.c: Include inttypes.h.
9560 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9561 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9562 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9563 (the_low_target): Use linux_get_pc_32bit and
9564 linux_set_pc_32bit.
9565 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9566 (the_low_target): Use linux_get_pc_32bit and
9567 linux_set_pc_32bit.
9568 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9569 (the_low_target): Use linux_get_pc_32bit and
9570 linux_set_pc_32bit.
9571 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9572 (the_low_target): Use linux_get_pc_32bit and
9573 linux_set_pc_32bit.
9574 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9575 (the_low_target): Use linux_get_pc_32bit and
9576 linux_set_pc_32bit.
9577
eb0edac8
GB
95782016-01-18 Gary Benson <gbenson@redhat.com>
9579
9580 * configure.ac (AC_FUNC_FORK): New check.
9581 * config.in: Regenerate.
9582 * configure: Likewise.
9583
1b451dda
YQ
95842016-01-14 Yao Qi <yao.qi@linaro.org>
9585
9586 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9587 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9588 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9589 arm_get_next_pcs_ctor.
9590
82075af2
JS
95912016-01-12 Josh Stone <jistone@redhat.com>
9592 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9593
9594 * inferiors.h: Include "gdb_vecs.h".
9595 (struct process_info): Add syscalls_to_catch.
9596 * inferiors.c (remove_process): Free syscalls_to_catch.
9597 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9598 syscall_return stops.
9599 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9600 * server.c (handle_general_set): Handle QCatchSyscalls.
9601 (handle_query): Report support for QCatchSyscalls.
9602 * target.h (struct target_ops): Add supports_catch_syscall.
9603 (target_supports_catch_syscall): New macro.
9604 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9605 (struct lwp_info): Add syscall_state.
9606 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9607 Maintain syscall_state and syscalls_to_catch across exec.
9608 (get_syscall_trapinfo): New function, proxy to the_low_target.
9609 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9610 (linux_low_filter_event): Toggle syscall_state entry/return for
9611 syscall traps, and set it ignored for all others.
9612 (gdb_catching_syscalls_p): New function.
9613 (gdb_catch_this_syscall_p): New function.
9614 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9615 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9616 (linux_supports_catch_syscall): New function.
9617 (linux_target_ops): Install it.
9618 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9619 (the_low_target): Install it.
9620
8f13a3ce
MF
96212016-01-12 Mike Frysinger <vapier@gentoo.org>
9622
9623 * acinclude.m4: Include new ../warning.m4 file.
9624 * configure: Regenerated.
9625 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9626
5b3da067
MF
96272016-01-12 Mike Frysinger <vapier@gentoo.org>
9628
9629 * ax.c (is_goto_target): Mark static.
9630 * linux-low.c (register_addr): Likewise.
9631 (linux_fetch_registers, linux_store_registers): Likewise.
9632 * mem-break.c (any_persistent_commands): Fix old prototype.
9633 (add_commands_to_breakpoint): Mark static.
9634 * regcache.c (find_register_by_name): Delete unused func.
9635 * remote-utils.c (hex_or_minus_one): Mark static.
9636 * server.c (monitor_show_help): Mark static.
9637 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9638 handle_v_requests): Likewise.
9639
bc504a31
PA
96402016-01-12 Pedro Alves <palves@redhat.com>
9641
9642 Remove use of the registered trademark symbol throughout.
9643
5a0dd67a
YQ
96442016-01-08 Yao Qi <yao.qi@linaro.org>
9645
9646 * remote-utils.c (getpkt): If c is '\003', call target hook
9647 request_interrupt.
9648
b2ca446f
YQ
96492016-01-06 Yao Qi <yao.qi@linaro.org>
9650
9651 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9652 linux-aarch32-low.c.
9653 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9654 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9655 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9656 (thumb2_breakpoint): Declare.
9657 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9658 linux-aarch32-low.h.
9659 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9660 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9661 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9662
edd88788
JB
96632016-01-01 Joel Brobecker <brobecker@adacore.com>
9664
9665 * gdbreplay.c (gdbreplay_version): Change copyright year in
9666 version message.
9667 * server.c (gdbserver_version): Likewise.
9668
65da7f14
PP
96692015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9670
9671 * server.c (crc32_table): Delete.
9672 (crc32): Use libiberty's xcrc32 function.
9673
4abd5ed2
JB
96742015-12-22 Joel Brobecker <brobecker@adacore.com>
9675
9676 * lynx-low.c (lynx_delete_thread_callback): New function.
9677 (lynx_mourn): Properly delete our process and all of its
9678 threads. Remove call to clear_inferiors.
9679
0e50fe5c
JB
96802015-12-22 Joel Brobecker <brobecker@adacore.com>
9681
9682 * target.c (thread_search_callback): Add check that
9683 the thread_stopped target callback is not NULL before
9684 calling it.
9685
35adc03f
YQ
96862015-12-21 Yao Qi <yao.qi@linaro.org>
9687
9688 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9689 arm breakpoint.
9690
bd2b2909
AT
96912015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9692
9693 * server.c (handle_query): Call target_supports_software_single_step.
9694
7fe5e27e
AT
96952015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9696
9697 * linux-low.c (single_step): New function.
9698 (linux_resume_one_lwp_throw): Call single_step.
9699 (start_step_over): Likewise.
9700
d9311bfa
AT
97012015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9702
9703 * Makefile.in (SFILES): Append arch/arm-linux.c,
9704 arch/arm-get-next-pcs.c.
9705 (arm-linux.o): New rule.
9706 (arm-get-next-pcs.o): New rule.
9707 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9708 arm-linux.o.
9709 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9710 to linux-aarch32-low.c.
9711 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9712 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9713 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9714 (thumb2_breakpoint_len): Likewise.
9715 (arm_is_thumb_mode): Make non-static.
9716 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9717 from linux-aarch32-low.c.
9718 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9719 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9720 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9721 (thumb2_breakpoint_len): Likewise.
9722 (arm_is_thumb_mode): New declaration.
9723 * linux-arm-low.c: Include arch/arm-linux.h
9724 aarch/arm-get-next-pcs.h, sys/syscall.h.
9725 (get_next_pcs_ops): New struct.
9726 (get_next_pcs_addr_bits_remove): New function.
9727 (get_next_pcs_is_thumb): New function.
9728 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9729 (arm_sigreturn_next_pc): Likewise.
9730 (get_next_pcs_syscall_next_pc): Likewise.
9731 (arm_gdbserver_get_next_pcs): Likewise.
9732 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9733 Initialize.
9734 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9735 * server.h: Include gdb_vecs.h.
9736
68ce2059
AT
97372015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9738
9739 * Makefile.in (SFILES): Append common/common-regcache.c.
9740 (OBS): Append common-regcache.o.
9741 (common-regcache.o): New rule.
9742 * regcache.c (init_register_cache): Initialize cache to
9743 REG_UNAVAILABLE.
9744 (regcache_raw_read_unsigned): New function.
9745 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9746 register_status enum.
9747
fa5308bd
AT
97482015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9749
9750 * linux-aarch64-low.c (the_low_targets): Rename
9751 breakpoint_reinsert_addr to get_next_pcs.
9752 * linux-arm-low.c (the_low_targets): Likewise.
9753 * linux-bfin-low.c (the_low_targets): Likewise.
9754 * linux-cris-low.c (the_low_targets): Likewise.
9755 * linux-crisv32-low.c (the_low_targets): Likewise.
9756 * linux-low.c (can_software_single_step): Likewise.
9757 (install_software_single_step_breakpoints): New function.
9758 (start_step_over): Use install_software_single_step_breakpoints.
9759 * linux-low.h: New CORE_ADDR vector.
9760 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9761 get_next_pcs.
9762 * linux-mips-low.c (the_low_targets): Likewise.
9763 * linux-nios2-low.c (the_low_targets): Likewise.
9764 * linux-sparc-low.c (the_low_targets): Likewise.
9765
4a6ed09b
PA
97662015-12-17 Pedro Alves <palves@redhat.com>
9767
9768 * linux-low.c (linux_kill_one_lwp): Remove references to
9769 LinuxThreads.
9770 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9771 to 'kill'.
9772 (linux_init_signals): Delete.
9773 (initialize_low): Adjust.
9774 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9775
7544db95
PA
97762015-12-16 Pedro Alves <palves@redhat.com>
9777
9778 * configure.ac (compiler warning flags): When testing a
9779 -Wno-foo option, check whether -Wfoo works instead.
9780 * configure: Regenerate.
9781
8020350c
DB
97822015-12-11 Don Breazeal <donb@codesourcery.com>
9783
9784 * server.c (process_serial_event): Don't exit from gdbserver
9785 in remote mode if there are still active inferiors.
9786
db91f502
YQ
97872015-12-11 Yao Qi <yao.qi@linaro.org>
9788
9789 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9790 arm_breakpoint_at if the process is 32-bit.
9791
b37a6290
YQ
97922015-12-11 Yao Qi <yao.qi@linaro.org>
9793
9794 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9795 arm breakpoint.
9796
17b1509a
YQ
97972015-12-07 Yao Qi <yao.qi@linaro.org>
9798
9799 * configure.srv: Append arm.o to srv_tgtobj for
9800 aarch64*-*-linux* target.
9801 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9802 from linux-arm-low.c.
9803 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9804 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9805 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9806 (thumb2_breakpoint_len): Likewise.
9807 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9808 (arm_breakpoint_kinds): Likewise.
9809 (arm_breakpoint_kind_from_pc): Likewise.
9810 (arm_sw_breakpoint_from_kind): Likewise.
9811 (arm_breakpoint_kind_from_current_state): Likewise.
9812 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9813 (arm_sw_breakpoint_from_kind): Declare.
9814 (arm_breakpoint_kind_from_current_state): Declare.
9815 (arm_breakpoint_at): Declare.
9816 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9817 arm_sw_breakpoint_from_kind if process is 32-bit.
9818 (aarch64_breakpoint_kind_from_pc): New function.
9819 (aarch64_breakpoint_kind_from_current_state): New function.
9820 (the_low_target): Initialize fields breakpoint_kind_from_pc
9821 and breakpoint_kind_from_current_state.
9822 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9823 linux-aarch32-low.c.
9824 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9825 (arm_breakpoint, arm_breakpoint_len): Likewise.
9826 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9827 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9828 (arm_is_thumb_mode): Likewise.
9829 (arm_breakpoint_at): Likewise.
9830 (arm_breakpoint_kind_from_pc): Likewise.
9831 (arm_sw_breakpoint_from_kind): Likewise.
9832 (arm_breakpoint_kind_from_current_state): Likewise.
9833
9834 Revert:
9835 2015-08-04 Yao Qi <yao.qi@linaro.org>
9836
9837 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9838 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9839 * server.c (extended_protocol): Remove "static".
9840 * server.h (extended_protocol): Declare it.
9841
ece66d65
JS
98422015-12-04 Josh Stone <jistone@redhat.com>
9843
9844 * target.h (struct target_ops) <arch_setup>: Rename to ...
9845 (struct target_ops) <post_create_inferior>: ... this.
9846 (target_arch_setup): Rename to ...
9847 (target_post_create_inferior): ... this, calling post_create_inferior.
9848 * server.c (start_inferior): Update target_arch_setup calls to
9849 target_post_create_inferior.
9850 * linux-low.c (linux_low_ptrace_options): Forward declare.
9851 (linux_arch_setup): Update its comment for general use.
9852 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9853 (struct linux_target_ops): Use linux_post_create_inferior.
9854 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9855 to post_create_inferior.
9856 * nto-low.c (struct nto_target_ops): Likewise.
9857 * spu-low.c (struct spu_target_ops): Likewise.
9858 * win32-low.c (struct win32_target_ops): Likewise.
9859
e58c48b4
AT
98602015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9861
9862 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9863
fbec8956
AT
98642015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9865
9866 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9867 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9868 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9869 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9870 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9871 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9872 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9873 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9874 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9875 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9876 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9877 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9878
9b4c5f87
AT
98792015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9880
9881 * linux-low.c (linux_look_up_symbols): Don't call
9882 linux_supports_traceclone.
9883 * linux-low.h (thread_db_init): Remove use_events argument.
9884 * thread-db.c (thread_db_use_event): Remove global variable.
9885 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9886 (struct thread_db) <td_create_bp>: Remove field.
9887 (thread_db_create_event): Remove function.
9888 (thread_db_enable_reporting): Likewise.
9889 (find_one_thread): Don't check for thread_db_use_events.
9890 (attach_thread): Likewise.
9891 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9892 (try_thread_db_load_1): Don't check for thread_db_use_events.
9893 (thread_db_init): Remove use_events argument and thread events
9894 handling.
9895 (remove_thread_event_breakpoints): Remove function.
9896 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9897
7d00775e
AT
98982015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9899
9900 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9901 New function.
9902 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9903 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9904 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9905 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9906 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9907 Initialize.
9908 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9909 New function.
9910 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9911 * linux-low.c (can_hardware_single_step): Use
9912 supports_hardware_single_step.
9913 (can_software_single_step): New function.
9914 (start_step_over): Call can_software_single_step.
9915 (linux_supports_hardware_single_step): New function.
9916 (struct target_ops) <supports_software_single_step>: Initialize.
9917 * linux-low.h (struct linux_target_ops)
9918 <supports_hardware_single_step>: Initialize.
9919 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9920 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9921 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9922 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9923 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9924 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9925 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9926 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9927 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9928 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9929 Initialize.
9930 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9931 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9932 Initialize.
9933 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9934 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9935 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9936 New function.
9937 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9938 * target.h (struct target_ops): <supports_software_single_step>:
9939 New field.
9940 (target_supports_software_single_step): New macro.
9941
2d97cd35
AT
99422015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9943
9944 * linux-low.c (linux_wait_1): Fix pc advance condition.
9945 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9946 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9947
769ef81f
AT
99482015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9949
9950 * linux-arm-low.c (arm_is_thumb_mode): New function.
9951 (arm_breakpoint_at): Use arm_is_thumb_mode.
9952 (arm_breakpoint_kind_from_current_state): New function.
9953 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9954 Initialize.
9955 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9956 (linux_breakpoint_kind_from_current_state): New function.
9957 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9958 * linux-low.h (struct linux_target_ops)
9959 <breakpoint_kind_from_current_state>: New field.
9960 * target.h (struct target_ops): Likewise.
9961 (target_breakpoint_kind_from_current_state): New macro.
9962
1bebeeca
PA
99632015-11-30 Pedro Alves <palves@redhat.com>
9964
9965 * linux-low.c (linux_resume): Wake up the event loop before
9966 returning.
9967
a67a9fae
PA
99682015-11-30 Pedro Alves <palves@redhat.com>
9969
9970 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9971 check.
9972 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9973 to -1.
9974 * target.c (struct thread_search): New structure.
9975 (thread_search_callback): New function.
9976 (prev_general_thread): New global.
9977 (prepare_to_access_memory, done_accessing_memory): New functions.
9978 * target.h (prepare_to_access_memory, done_accessing_memory):
9979 Replace macros with function declarations.
9980
f2faf941
PA
99812015-11-30 Pedro Alves <palves@redhat.com>
9982
9983 PR 14618
9984 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9985 report TARGET_WAITKIND_NO_RESUMED.
9986 * remote-utils.c (prepare_resume_reply): Handle
9987 TARGET_WAITKIND_NO_RESUMED.
9988 * server.c (report_no_resumed): New global.
9989 (handle_query) <qSupported>: Handle "no-resumed+". Report
9990 "no-resumed+" support.
9991 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9992 return error if the client doesn't support no-resumed events.
9993 (push_stop_notification): New function.
9994 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9995 events if the client supports them.
9996
a681f9c9
PA
99972015-11-30 Pedro Alves <palves@redhat.com>
9998
9999 * linux-low.c (thread_still_has_status_pending_p): Don't check
10000 vCont;t here.
10001 (lwp_resumed): New function.
10002 (status_pending_p_callback): Return early if the LWP is not
10003 supposed to be resumed.
10004
65706a29
PA
100052015-11-30 Pedro Alves <palves@redhat.com>
10006
10007 * linux-low.c (handle_extended_wait): Assert that the LWP's
10008 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
10009 thread create events, leave the new child's status pending.
10010 (linux_low_filter_event): If GDB wants to hear about thread exit
10011 events, leave the LWP marked dead and don't delete it.
10012 (linux_wait_for_event_filtered): Don't check for thread exit.
10013 (filter_exit_event): New function.
10014 (linux_wait_1): Use it, when returning an exit event.
10015 (linux_resume_one_lwp_throw): Assert that the LWP's
10016 waitstatus is TARGET_WAITKIND_IGNORE.
10017 * remote-utils.c (prepare_resume_reply): Handle
10018 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
10019 * server.c (report_thread_events): New global.
10020 (handle_general_set): Handle QThreadEvents.
10021 (handle_query) <qSupported>: Handle and report QThreadEvents+;
10022 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
10023 TARGET_WAITKIND_THREAD_EXITED.
10024 * server.h (report_thread_events): Declare.
10025
56cf4bed
PA
100262015-11-30 Pedro Alves <palves@redhat.com>
10027
10028 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
10029 the thread's last_resume_kind was resume_stop.
10030
500c1d85
PA
100312015-11-30 Pedro Alves <palves@redhat.com>
10032
10033 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10034 before returning.
10035
de979965
PA
100362015-11-30 Pedro Alves <palves@redhat.com>
10037
10038 * server.c (handle_v_requests): Handle vCtrlC.
10039
34c65914
PA
100402015-11-30 Pedro Alves <palves@redhat.com>
10041
10042 * gdbthread.h (find_any_thread_of_pid): Declare.
10043 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10044 functions.
10045 * server.c (handle_query): If current_thread is NULL, look for
10046 another thread of the selected process.
10047
79efa585 100482015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 10049 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
10050
10051 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10052 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10053 name in reply.
10054 * target.h (struct target_ops) <thread_name>: New field.
10055 (target_thread_name): New macro.
10056
80d82c19
JB
100572015-11-23 Joel Brobecker <brobecker@adacore.com>
10058
10059 * regcache.h (regcache_invalidate_pid): Add declaration.
10060 * regcache.c (regcache_invalidate_pid): New function, extracted
10061 from regcache_invalidate.
10062 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10063 Add trivial documentation comment.
10064 * lynx-low.c: Use regcache_invalidate_pid instead of
10065 regcache_invalidate.
10066
64da5dd5
JB
100672015-11-23 Joel Brobecker <brobecker@adacore.com>
10068
10069 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10070 and Elf64_auxv_t if the target is Android.
10071
37ce4055
DE
100722015-11-22 Doug Evans <xdje42@gmail.com>
10073
10074 * target.h: #include <sys/types.h>.
10075
06e03fff
PA
100762015-11-19 Pedro Alves <palves@redhat.com>
10077
10078 * linux-low.c (linux_process_qsupported): Change prototype.
10079 Adjust.
10080 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10081 Change prototype.
10082 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10083 and adjust to loop over all features.
10084 * server.c (handle_query) <qSupported>: Adjust to call
10085 target_process_qsupported once, passing it a vector of unprocessed
10086 features.
10087 * target.h (struct target_ops) <process_qsupported>: Change
10088 prototype.
10089 (target_process_qsupported): Adjust.
10090
9a084706
PA
100912015-11-19 Pedro Alves <palves@redhat.com>
10092
10093 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10094 mode.
10095 * configure: Regenerate.
10096
dad44a1f
PA
100972015-11-19 Pedro Alves <palves@redhat.com>
10098
10099 * configure: Regenerate.
10100
231c0592
YQ
101012015-11-19 Yao Qi <yao.qi@linaro.org>
10102
10103 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10104 type to uint32_t.
10105
6c1c9a8b
YQ
101062015-11-19 Yao Qi <yao.qi@linaro.org>
10107
10108 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10109 (struct aarch64_operand): Move enum out.
10110
9caa3311
YQ
101112015-11-19 Yao Qi <yao.qi@linaro.org>
10112
10113 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10114 struct user_fpsimd_state *.
10115 (aarch64_store_fpregset): Likewise.
10116
6a69a054
YQ
101172015-11-19 Yao Qi <yao.qi@linaro.org>
10118
10119 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10120 struct user_pt_regs *.
10121 (aarch64_store_gregset): Likewise.
10122
1798301e
PA
101232015-11-18 Pedro Alves <palves@redhat.com>
10124
10125 * Makefile.in (all_object_files): Add $IPA_OBJS.
10126
ce7715e2
PA
101272015-11-17 Pedro Alves <palves@redhat.com>
10128
10129 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10130 GDB_SIGNAL_0 and gdb_signal_to_string.
10131
c0879059
PA
101322015-11-17 Pedro Alves <palves@redhat.com>
10133
10134 * win32-low.c (handle_output_debug_string): Remove parameter.
10135 (win32_kill): Remove our_status local and adjust call to
10136 handle_output_debug_string.
10137 (get_child_debug_event): Adjust call to
10138 handle_output_debug_string.
10139
1996e237
SM
101402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10141
10142 * linux-mips-low.c (mips_fill_gregset): Add cast.
10143 (mips_store_gregset): Likewise.
10144 (mips_fill_fpregset): Likewise.
10145 (mips_store_fpregset): Likewise.
10146
cbec665b
SM
101472015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10148
10149 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10150 priv.
10151
eb3e3c67
SM
101522015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10153
10154 * linux-mips-low.c (mips_linux_new_thread): Change type of
10155 watch_type to enum target_hw_bp_type.
10156
171de4b8
SM
101572015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10158
10159 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10160 Change return type to arm_hwbp_type.
10161
04248ead
SM
101622015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10163
10164 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10165 (arm_store_gregset): Likewise.
10166 * linux-arm-low.c (arm_get_hwcap): Likewise.
10167 (arm_read_description): Likewise.
10168
04b3479c
SM
101692015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10170
10171 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10172
2bc84e8a
SM
101732015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10174
10175 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10176 (ppc_fill_vsxregset): Likewise.
10177 (ppc_store_vsxregset): Likewise.
10178 (ppc_fill_vrregset): Likewise.
10179 (ppc_store_vrregset): Likewise.
10180 (ppc_fill_evrregset): Likewise.
10181 (ppc_store_evrregset): Likewise.
10182
e6c5bb05
SM
101832015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10184
10185 * linux-ppc-low.c (ppc_usrregs_info): Remove
10186 forward-declaration.
10187 (ppc_arch_setup): Move lower in file.
10188
7ea45d72
SM
101892015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10190
10191 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10192 (ps_pdwrite): Likewise.
10193
69291610
HW
101942015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10195
10196 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10197 to after assert checks.
10198
b42945fd
SM
101992015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10200
10201 * proc-service.c (ps_pdread): Add/adjust casts.
10202 (ps_pdwrite): Add/adjust casts.
10203
d6f85c84
SM
102042015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10205
10206 * server.c (handle_search_memory_1): Cast return value of
10207 memmem.
10208
f98cd059
SM
102092015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10210
10211 * server.c (write_qxfer_response): Change type of data to
10212 gdb_byte *.
10213
d2412fa5
PA
102142015-10-29 Pedro Alves <palves@redhat.com>
10215
10216 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10217
c17414a2
PA
102182015-10-29 Pedro Alves <palves@redhat.com>
10219
10220 * tracepoint.c (clear_installed_tracepoints): Add casts.
10221
e053fbc4
PA
102222015-10-29 Pedro Alves <palves@redhat.com>
10223
10224 * server.c (handle_v_cont, process_serial_event): Add enum
10225 gdb_signal casts to signal parsing code.
10226
add67df8
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
50bc912a
PA
102452015-10-29 Pedro Alves <palves@redhat.com>
10246
10247 * linux-low.h (NULL_REGSET): Define.
10248 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10249 * linux-arm-low.c (arm_regsets): Likewise.
10250 * linux-crisv32-low.c (cris_regsets): Likewise.
10251 * linux-m68k-low.c (m68k_regsets): Likewise.
10252 * linux-mips-low.c (mips_regsets): Likewise.
10253 * linux-nios2-low.c (nios2_regsets): Likewise.
10254 * linux-ppc-low.c (ppc_regsets): Likewise.
10255 * linux-s390-low.c (s390_regsets): Likewise.
10256 * linux-sh-low.c (sh_regsets): Likewise.
10257 * linux-sparc-low.c (sparc_regsets): Likewise.
10258 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10259 * linux-tile-low.c (tile_regsets): Likewise.
10260 * linux-x86-low.c (x86_regsets): Likewise.
10261 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10262
682b2546
DE
102632015-10-26 Doug Evans <dje@google.com>
10264
10265 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10266
963843d4
DE
102672015-10-26 Doug Evans <dje@google.com>
10268
10269 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10270
d41401ac
DE
102712015-10-26 Doug Evans <dje@google.com>
10272
10273 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10274 for debug_printf.
10275 (attach_thread, find_new_threads_callback): Ditto.
10276
3db28855
AT
102772015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10278
10279 * mem-break.h (set_breakpoint_data): Remove.
10280
fb78e89c
AT
102812015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10282
10283 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10284 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10285 (initialize_low): Remove set_breakpoint_data call.
10286 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10287 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10288 (initialize_low): Remove set_breakpoint_data call.
10289 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10290 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10291 (initialize_low): Remove set_breakpoint_data call.
10292
2e6ee069
AT
102932015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10294
10295 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10296 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10297 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10298 * target.h (target_breakpoint_kind_from_pc): New macro.
10299
1652a986
AT
103002015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10301
10302 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10303 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10304 the default breakpoint kind.
10305
abeead09
AT
103062015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10307
10308 * linux-arm-low.c (arm_supports_z_point_type): Add software
10309 breakpoint support.
10310
b0b4b501
AT
103112015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10312
10313 * linux-arm-low.c: Refactor breakpoint definitions.
10314 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10315 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10316
8689682c
AT
103172015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10318
10319 * Makefile.in: Add arm.c/o.
10320 * configure.srv: Likewise.
10321 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10322 (arm_breakpoint_kind_from_pc): New function.
10323 (arm_sw_breakpoint_from_kind): Return proper kind.
10324 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10325
27165294
AT
103262015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10327
10328 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10329 removal.
10330 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10331 (struct raw_breakpoint) <size>: Remove.
10332 (struct raw_breakpoint) <kind>: Add.
10333 (bp_size): New function.
10334 (bp_opcode): Likewise.
10335 (find_raw_breakpoint_at): Adjust for kind.
10336 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10337 (remove_memory_breakpoint): Adjust for kind call bp_size.
10338 (set_raw_breakpoint_at): Adjust for kind.
10339 (set_breakpoint): Likewise.
10340 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10341 (delete_raw_breakpoint): Adjust for kind.
10342 (delete_breakpoint): Likewise.
10343 (find_gdb_breakpoint): Likewise.
10344 (set_gdb_breakpoint_1): Likewise.
10345 (set_gdb_breakpoint): Likewise.
10346 (delete_gdb_breakpoint_1): Likewise.
10347 (delete_gdb_breakpoint): Likewise.
10348 (uninsert_raw_breakpoint): Likewise.
10349 (reinsert_raw_breakpoint): Likewise.
10350 (set_breakpoint_data): Remove.
10351 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10352 (check_mem_read): Adjust for kind call bp_size.
10353 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10354 (clone_one_breakpoint): Adjust for kind.
10355 * mem-break.h (set_gdb_breakpoint): Likewise.
10356 (delete_gdb_breakpoint): Likewise.
10357 * server.c (process_serial_event): Likewise.
10358
dd373349
AT
103592015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10360
10361 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10362 (struct linux_target_ops) <breakpoint>: Remove.
10363 (struct linux_target_ops) <breakpoint_len>: Remove.
10364 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10365 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10366 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10367 (arm_sw_breakpoint_from_kind): New function.
10368 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10369 (struct linux_target_ops) <breakpoint>: Remove.
10370 (struct linux_target_ops) <breakpoint_len>: Remove.
10371 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10372 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10373 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10374 (struct linux_target_ops) <breakpoint>: Remove.
10375 (struct linux_target_ops) <breakpoint_len>: Remove.
10376 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10377 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10378 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10379 (struct linux_target_ops) <breakpoint>: Remove.
10380 (struct linux_target_ops) <breakpoint_len>: Remove.
10381 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10382 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10383 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10384 and sw_breakpoint_from_kind to increment the pc.
10385 (linux_breakpoint_kind_from_pc): New function.
10386 (linux_sw_breakpoint_from_kind): New function.
10387 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10388 (initialize_low): Call breakpoint_kind_from_pc and
10389 sw_breakpoint_from_kind to replace breakpoint_data/len.
10390 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10391 New field.
10392 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10393 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10394 (struct linux_target_ops) <breakpoint>: Remove.
10395 (struct linux_target_ops) <breakpoint_len>: Remove.
10396 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10397 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10398 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10399 (struct linux_target_ops) <breakpoint>: Remove.
10400 (struct linux_target_ops) <breakpoint_len>: Remove.
10401 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10402 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10403 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10404 (struct linux_target_ops) <breakpoint>: Remove.
10405 (struct linux_target_ops) <breakpoint_len>: Remove.
10406 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10407 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10408 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10409 (struct linux_target_ops) <breakpoint>: Remove.
10410 (struct linux_target_ops) <breakpoint_len>: Remove.
10411 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10412 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10413 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10414 (struct linux_target_ops) <breakpoint>: Remove.
10415 (struct linux_target_ops) <breakpoint_len>: Remove.
10416 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10417 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10418 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10419 (struct linux_target_ops) <breakpoint>: Remove.
10420 (struct linux_target_ops) <breakpoint_len>: Remove.
10421 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10422 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10423 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10424 (struct linux_target_ops) <breakpoint>: Remove.
10425 (struct linux_target_ops) <breakpoint_len>: Remove.
10426 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10427 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10428 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10429 (struct linux_target_ops) <breakpoint>: Remove.
10430 (struct linux_target_ops) <breakpoint_len>: Remove.
10431 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10432 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10433 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10434 (struct linux_target_ops) <breakpoint>: Remove.
10435 (struct linux_target_ops) <breakpoint_len>: Remove.
10436 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10437 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10438 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10439 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10440 (struct linux_target_ops) <breakpoint>: Remove.
10441 (struct linux_target_ops) <breakpoint_len>: Remove.
10442 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10443 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10444 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10445 (struct linux_target_ops) <breakpoint>: Remove.
10446 (struct linux_target_ops) <breakpoint_len>: Remove.
10447 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10448 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10449
4cd98a19
AT
104502015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10451
10452 * linux-cris-low.c (cris_get_pc): Remove void arg.
10453
774ee6d2
AR
104542015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10455
10456 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10457 variable name.
10458
833dcd29
AR
104592015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10460
10461 * inferiors.c (thread_pid_matches_callback): New function.
10462 (find_thread_process): New function.
10463 (remove_thread): Reset current_thread.
10464 (remove_process): Assert threads have been removed first.
10465
8d689ee5
YQ
104662015-10-15 Yao Qi <yao.qi@linaro.org>
10467
10468 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10469 if it is 3.
10470 (aarch64_remove_point): Likewise.
10471 * regcache.c (regcache_register_size): New function.
10472
1c2e1515
YQ
104732015-10-12 Yao Qi <yao.qi@linaro.org>
10474
10475 * linux-aarch64-low.c: Update all callers as emit_load_store
10476 is renamed to aarch64_emit_load_store.
10477
e1c587c3
YQ
104782015-10-12 Yao Qi <yao.qi@linaro.org>
10479
10480 * linux-aarch64-low.c: Update all callers of function renaming
10481 from emit_insn to aarch64_emit_insn.
10482
b6542f81
YQ
104832015-10-12 Yao Qi <yao.qi@linaro.org>
10484
10485 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10486 arch/aarch64-insn.h.
10487 (struct aarch64_memory_operand): Likewise.
10488 (ENCODE): Likewise.
10489 (emit_insn): Move to arch/aarch64-insn.c.
10490 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10491 (emit_load_store): Move to arch/aarch64-insn.c.
10492 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10493 (can_encode_int32): Remove.
10494
246994ce
YQ
104952015-10-12 Yao Qi <yao.qi@linaro.org>
10496
10497 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10498 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10499 (aarch64_relocate_instruction): Likewise.
10500 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10501 (struct aarch64_insn_visitor): Likewise.
10502
0badd99f
YQ
105032015-10-12 Yao Qi <yao.qi@linaro.org>
10504
10505 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10506 (struct aarch64_insn_visitor): New.
10507 (struct aarch64_insn_relocation_data): New.
10508 (aarch64_ftrace_insn_reloc_b): New function.
10509 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10510 (aarch64_ftrace_insn_reloc_cb): Likewise.
10511 (aarch64_ftrace_insn_reloc_tb): Likewise.
10512 (aarch64_ftrace_insn_reloc_adr): Likewise.
10513 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10514 (aarch64_ftrace_insn_reloc_others): Likewise.
10515 (visitor): New.
10516 (aarch64_relocate_instruction): Use visitor.
10517
dfaffe9d
YQ
105182015-10-12 Yao Qi <yao.qi@linaro.org>
10519
10520 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10521 int. Add argument buf.
10522 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10523 aarch64_relocate_instruction.
10524
70b439f0
YQ
105252015-10-12 Yao Qi <yao.qi@linaro.org>
10526
10527 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10528 argument insn. Remove local variable insn. Don't call
10529 target_read_uint32.
10530 (aarch64_install_fast_tracepoint_jump_pad): Call
10531 target_read_uint32.
10532
7781c06f
YQ
105332015-09-30 Yao Qi <yao.qi@linaro.org>
10534
10535 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10536 (emit_load_store_pair): Likewise.
10537
9a3c8263
SM
105382015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10539
10540 * dll.c (match_dll): Add cast(s).
10541 (unloaded_dll): Likewise.
10542 * linux-low.c (second_thread_of_pid_p): Likewise.
10543 (delete_lwp_callback): Likewise.
10544 (count_events_callback): Likewise.
10545 (select_event_lwp_callback): Likewise.
10546 (linux_set_resume_request): Likewise.
10547 * server.c (accumulate_file_name_length): Likewise.
10548 (emit_dll_description): Likewise.
10549 (handle_qxfer_threads_worker): Likewise.
10550 (visit_actioned_threads): Likewise.
10551 * thread-db.c (any_thread_of): Likewise.
10552 * tracepoint.c (same_process_p): Likewise.
10553 (match_blocktype): Likewise.
10554 (build_traceframe_info_xml): Likewise.
10555
224c3ddb
SM
105562015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10557
10558 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10559 assignment.
10560 (gdb_unparse_agent_expr): Likewise.
10561 * hostio.c (require_data): Likewise.
10562 (handle_pread): Likewise.
10563 * linux-low.c (disable_regset): Likewise.
10564 (fetch_register): Likewise.
10565 (store_register): Likewise.
10566 (get_dynamic): Likewise.
10567 (linux_qxfer_libraries_svr4): Likewise.
10568 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10569 (set_fast_tracepoint_jump): Likewise.
10570 (uninsert_fast_tracepoint_jumps_at): Likewise.
10571 (reinsert_fast_tracepoint_jumps_at): Likewise.
10572 (validate_inserted_breakpoint): Likewise.
10573 (clone_agent_expr): Likewise.
10574 * regcache.c (init_register_cache): Likewise.
10575 * remote-utils.c (putpkt_binary_1): Likewise.
10576 (decode_M_packet): Likewise.
10577 (decode_X_packet): Likewise.
10578 (look_up_one_symbol): Likewise.
10579 (relocate_instruction): Likewise.
10580 (monitor_output): Likewise.
10581 * server.c (handle_search_memory): Likewise.
10582 (handle_qxfer_exec_file): Likewise.
10583 (handle_qxfer_libraries): Likewise.
10584 (handle_qxfer): Likewise.
10585 (handle_query): Likewise.
10586 (handle_v_cont): Likewise.
10587 (handle_v_run): Likewise.
10588 (captured_main): Likewise.
10589 * target.c (write_inferior_memory): Likewise.
10590 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10591 * tracepoint.c (init_trace_buffer): Likewise.
10592 (add_tracepoint_action): Likewise.
10593 (add_traceframe): Likewise.
10594 (add_traceframe_block): Likewise.
10595 (cmd_qtdpsrc): Likewise.
10596 (cmd_qtdv): Likewise.
10597 (cmd_qtstatus): Likewise.
10598 (response_source): Likewise.
10599 (response_tsv): Likewise.
10600 (cmd_qtnotes): Likewise.
10601 (gdb_collect): Likewise.
10602 (initialize_tracepoint): Likewise.
10603
afbe19f8
PL
106042015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10605
10606 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10607 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10608 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10609 <NOP>: New.
10610 (enum aarch64_condition_codes): New enum.
10611 (w0): New static global.
10612 (fp): Likewise.
10613 (lr): Likewise.
10614 (struct aarch64_memory_operand) <type>: New
10615 MEMORY_OPERAND_POSTINDEX type.
10616 (postindex_memory_operand): New helper function.
10617 (emit_ret): New function.
10618 (emit_load_store_pair): New function, factored out of emit_stp
10619 with support for MEMORY_OPERAND_POSTINDEX.
10620 (emit_stp): Rewrite using emit_load_store_pair.
10621 (emit_ldp): New function.
10622 (emit_load_store): Likewise.
10623 (emit_ldr): Mention post-index instruction in comment.
10624 (emit_ldrh): New function.
10625 (emit_ldrb): New function.
10626 (emit_ldrsw): Mention post-index instruction in comment.
10627 (emit_str): Likewise.
10628 (emit_subs): New function.
10629 (emit_cmp): Likewise.
10630 (emit_and): Likewise.
10631 (emit_orr): Likewise.
10632 (emit_orn): Likewise.
10633 (emit_eor): Likewise.
10634 (emit_mvn): Likewise.
10635 (emit_lslv): Likewise.
10636 (emit_lsrv): Likewise.
10637 (emit_asrv): Likewise.
10638 (emit_mul): Likewise.
10639 (emit_sbfm): Likewise.
10640 (emit_sbfx): Likewise.
10641 (emit_ubfm): Likewise.
10642 (emit_ubfx): Likewise.
10643 (emit_csinc): Likewise.
10644 (emit_cset): Likewise.
10645 (emit_nop): Likewise.
10646 (emit_ops_insns): New helper function.
10647 (emit_pop): Likewise.
10648 (emit_push): Likewise.
10649 (aarch64_emit_prologue): New function.
10650 (aarch64_emit_epilogue): Likewise.
10651 (aarch64_emit_add): Likewise.
10652 (aarch64_emit_sub): Likewise.
10653 (aarch64_emit_mul): Likewise.
10654 (aarch64_emit_lsh): Likewise.
10655 (aarch64_emit_rsh_signed): Likewise.
10656 (aarch64_emit_rsh_unsigned): Likewise.
10657 (aarch64_emit_ext): Likewise.
10658 (aarch64_emit_log_not): Likewise.
10659 (aarch64_emit_bit_and): Likewise.
10660 (aarch64_emit_bit_or): Likewise.
10661 (aarch64_emit_bit_xor): Likewise.
10662 (aarch64_emit_bit_not): Likewise.
10663 (aarch64_emit_equal): Likewise.
10664 (aarch64_emit_less_signed): Likewise.
10665 (aarch64_emit_less_unsigned): Likewise.
10666 (aarch64_emit_ref): Likewise.
10667 (aarch64_emit_if_goto): Likewise.
10668 (aarch64_emit_goto): Likewise.
10669 (aarch64_write_goto_address): Likewise.
10670 (aarch64_emit_const): Likewise.
10671 (aarch64_emit_call): Likewise.
10672 (aarch64_emit_reg): Likewise.
10673 (aarch64_emit_pop): Likewise.
10674 (aarch64_emit_stack_flush): Likewise.
10675 (aarch64_emit_zero_ext): Likewise.
10676 (aarch64_emit_swap): Likewise.
10677 (aarch64_emit_stack_adjust): Likewise.
10678 (aarch64_emit_int_call_1): Likewise.
10679 (aarch64_emit_void_call_2): Likewise.
10680 (aarch64_emit_eq_goto): Likewise.
10681 (aarch64_emit_ne_goto): Likewise.
10682 (aarch64_emit_lt_goto): Likewise.
10683 (aarch64_emit_le_goto): Likewise.
10684 (aarch64_emit_gt_goto): Likewise.
10685 (aarch64_emit_ge_got): Likewise.
10686 (aarch64_emit_ops_impl): New static global variable.
10687 (aarch64_emit_ops): New target function, return
10688 &aarch64_emit_ops_impl.
10689 (struct linux_target_ops): Install it.
10690
bb903df0
PL
106912015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10692
10693 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10694 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10695 aarch64-ipa.o.
10696 * linux-aarch64-ipa.c: New file.
10697 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10698 and endian.h.
10699 (aarch64_get_thread_area): New target method.
10700 (extract_signed_bitfield): New helper function.
10701 (aarch64_decode_ldr_literal): New function.
10702 (enum aarch64_opcodes): New enum.
10703 (struct aarch64_register): New struct.
10704 (struct aarch64_operand): New struct.
10705 (x0): New static global.
10706 (x1): Likewise.
10707 (x2): Likewise.
10708 (x3): Likewise.
10709 (x4): Likewise.
10710 (w2): Likewise.
10711 (ip0): Likewise.
10712 (sp): Likewise.
10713 (xzr): Likewise.
10714 (aarch64_register): New helper function.
10715 (register_operand): Likewise.
10716 (immediate_operand): Likewise.
10717 (struct aarch64_memory_operand): New struct.
10718 (offset_memory_operand): New helper function.
10719 (preindex_memory_operand): Likewise.
10720 (enum aarch64_system_control_registers): New enum.
10721 (ENCODE): New macro.
10722 (emit_insn): New helper function.
10723 (emit_b): New function.
10724 (emit_bcond): Likewise.
10725 (emit_cb): Likewise.
10726 (emit_tb): Likewise.
10727 (emit_blr): Likewise.
10728 (emit_stp): Likewise.
10729 (emit_ldp_q_offset): Likewise.
10730 (emit_stp_q_offset): Likewise.
10731 (emit_load_store): Likewise.
10732 (emit_ldr): Likewise.
10733 (emit_ldrsw): Likewise.
10734 (emit_str): Likewise.
10735 (emit_ldaxr): Likewise.
10736 (emit_stxr): Likewise.
10737 (emit_stlr): Likewise.
10738 (emit_data_processing_reg): Likewise.
10739 (emit_data_processing): Likewise.
10740 (emit_add): Likewise.
10741 (emit_sub): Likewise.
10742 (emit_mov): Likewise.
10743 (emit_movk): Likewise.
10744 (emit_mov_addr): Likewise.
10745 (emit_mrs): Likewise.
10746 (emit_msr): Likewise.
10747 (emit_sevl): Likewise.
10748 (emit_wfe): Likewise.
10749 (append_insns): Likewise.
10750 (can_encode_int32_in): New helper function.
10751 (aarch64_relocate_instruction): New function.
10752 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10753 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10754 (struct linux_target_ops): Install aarch64_get_thread_area,
10755 aarch64_install_fast_tracepoint_jump_pad and
10756 aarch64_get_min_fast_tracepoint_insn_len.
10757
787749ea
PL
107582015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10759
10760 * Makefile.in (aarch64-insn.o): New rule.
10761 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10762
9812b2e6
YQ
107632015-09-21 Yao Qi <yao.qi@linaro.org>
10764
10765 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10766
18fe412b
YQ
107672015-09-21 Yao Qi <yao.qi@linaro.org>
10768
10769 * tracepoint.c (max_jump_pad_size): Remove.
10770
a0cc84cd
YQ
107712015-09-18 Yao Qi <yao.qi@linaro.org>
10772
10773 * linux-aarch64-low.c: Don't include sys/uio.h.
10774 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10775
d78908cf
WW
107762015-09-16 Wei-cheng Wang <cole945@gmail.com>
10777
10778 * tracepoint.c (eval_result_type): Change prototype.
10779 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10780
d57e0d50
PA
107812015-09-15 Pedro Alves <palves@redhat.com>
10782
10783 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10784 Check whether to report exec events instead of checking whether
10785 multiprocess is enabled.
10786
5a676acc
PA
107872015-09-15 Pedro Alves <palves@redhat.com>
10788
10789 PR remote/18965
10790 * remote-utils.c (prepare_resume_reply): Merge
10791 TARGET_WAITKIND_VFORK_DONE switch case with the
10792 TARGET_WAITKIND_FORKED case.
10793
7c5d0fad
YQ
107942015-09-15 Yao Qi <yao.qi@linaro.org>
10795
10796 * server.c (handle_query): Check string comparison using
10797 "else if" instead of "if".
10798
750ce8d1
YQ
107992015-09-15 Yao Qi <yao.qi@linaro.org>
10800
10801 * server.c (vCont_supported): New global variable.
10802 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10803 matches. Append ";vContSupported+" to own_buf.
10804 (handle_v_requests): Append ";s;S" to own_buf if target supports
10805 hardware single step or vCont_supported is false.
10806 (capture_main): Set vCont_supported to zero.
10807
70b90b91
YQ
108082015-09-15 Yao Qi <yao.qi@linaro.org>
10809
10810 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10811 it to ...
10812 (linux_supports_hardware_single_step): ... New function.
10813 (linux_target_ops): Update.
10814 * lynx-low.c (lynx_target_ops): Set field
10815 supports_hardware_single_step to target_can_do_hardware_single_step.
10816 * nto-low.c (nto_target_ops): Likewise.
10817 * spu-low.c (spu_target_ops): Likewise.
10818 * win32-low.c (win32_target_ops): Likewise.
10819 * target.c (target_can_do_hardware_single_step): New function.
10820 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10821 Remove. <supports_hardware_single_step>: New field.
10822 (target_supports_conditional_breakpoints): Remove.
10823 (target_supports_hardware_single_step): New macro.
10824 (target_can_do_hardware_single_step): Declare.
10825 * server.c (handle_query): Use target_supports_hardware_single_step
10826 instead of target_supports_conditional_breakpoints.
10827
ade90bde
YQ
108282015-09-15 Yao Qi <yao.qi@linaro.org>
10829
10830 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10831 function.
10832 (struct linux_target_ops the_low_target): Install
10833 aarch64_linux_siginfo_fixup.
10834
94585166
DB
108352015-09-11 Don Breazeal <donb@codesourcery.com>
10836 Luis Machado <lgustavo@codesourcery.com>
10837
10838 * linux-low.c (linux_mourn): Static declaration.
10839 (linux_arch_setup): Move in front of
10840 handle_extended_wait.
10841 (linux_arch_setup_thread): New function.
10842 (handle_extended_wait): Handle exec events. Call
10843 linux_arch_setup_thread. Make event_lwp argument a
10844 pointer-to-a-pointer.
10845 (check_zombie_leaders): Do not check stopped threads.
10846 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10847 (linux_low_filter_event): Add lwp and thread for exec'ing
10848 non-leader thread if leader thread has been deleted.
10849 Refactor code into linux_arch_setup_thread and call it.
10850 Pass child lwp pointer by reference to handle_extended_wait.
10851 (linux_wait_for_event_filtered): Update comment.
10852 (linux_wait_1): Prevent clobbering exec event status.
10853 (linux_supports_exec_events): New function.
10854 (linux_target_ops) <supports_exec_events>: Initialize new member.
10855 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10856 new member.
10857 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10858 * server.c (report_exec_events): New global variable.
10859 (handle_query): Handle qSupported query for exec-events feature.
10860 (captured_main): Initialize report_exec_events.
10861 * server.h (report_exec_events): Declare new global variable.
10862 * target.h (struct target_ops) <supports_exec_events>: New
10863 member.
10864 (target_supports_exec_events): New macro.
10865 * win32-low.c (win32_target_ops) <supports_exec_events>:
10866 Initialize new member.
10867
0568462b
MM
108682015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10869
10870 * linux-low.c (linux_low_enable_btrace): Remove.
10871 (linux_target_ops): Replace linux_low_enable_btrace with
10872 linux_enable_btrace.
10873
39edd165
YQ
108742015-09-03 Yao Qi <yao.qi@linaro.org>
10875
10876 * linux-aarch64-low.c (aarch64_insert_point): Call
10877 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10878 returns true.
10879
1db33b5a
UW
108802015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10881
10882 * linux-low.c (check_stopped_by_breakpoint): Use
10883 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10884
ab290430
PA
108852015-08-27 Pedro Alves <palves@redhat.com>
10886
10887 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10888
8d749320
SM
108892015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10890
6711b7f8
SM
10891 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10892 the XNEW-family equivalent.
8d749320
SM
10893 (compile_bytecodes): Likewise.
10894 * dll.c (loaded_dll): Likewise.
10895 * event-loop.c (append_callback_event): Likewise.
10896 (create_file_handler): Likewise.
10897 (create_file_event): Likewise.
10898 * hostio.c (handle_open): Likewise.
10899 * inferiors.c (add_thread): Likewise.
10900 (add_process): Likewise.
10901 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10902 * linux-arm-low.c (arm_new_process): Likewise.
10903 (arm_new_thread): Likewise.
10904 * linux-low.c (add_to_pid_list): Likewise.
10905 (linux_add_process): Likewise.
10906 (handle_extended_wait): Likewise.
10907 (add_lwp): Likewise.
10908 (enqueue_one_deferred_signal): Likewise.
10909 (enqueue_pending_signal): Likewise.
10910 (linux_resume_one_lwp_throw): Likewise.
10911 (linux_resume_one_thread): Likewise.
10912 (linux_read_memory): Likewise.
10913 (linux_write_memory): Likewise.
10914 * linux-mips-low.c (mips_linux_new_process): Likewise.
10915 (mips_linux_new_thread): Likewise.
10916 (mips_add_watchpoint): Likewise.
10917 * linux-x86-low.c (initialize_low_arch): Likewise.
10918 * lynx-low.c (lynx_add_process): Likewise.
10919 * mem-break.c (set_raw_breakpoint_at): Likewise.
10920 (set_breakpoint): Likewise.
10921 (add_condition_to_breakpoint): Likewise.
10922 (add_commands_to_breakpoint): Likewise.
10923 (clone_agent_expr): Likewise.
10924 (clone_one_breakpoint): Likewise.
10925 * regcache.c (new_register_cache): Likewise.
10926 * remote-utils.c (look_up_one_symbol): Likewise.
10927 * server.c (queue_stop_reply): Likewise.
10928 (start_inferior): Likewise.
10929 (queue_stop_reply_callback): Likewise.
10930 (handle_target_event): Likewise.
10931 * spu-low.c (fetch_ppc_memory): Likewise.
10932 (store_ppc_memory): Likewise.
10933 * target.c (set_target_ops): Likewise.
10934 * thread-db.c (thread_db_load_search): Likewise.
10935 (try_thread_db_load_1): Likewise.
10936 * tracepoint.c (add_tracepoint): Likewise.
10937 (add_tracepoint_action): Likewise.
10938 (create_trace_state_variable): Likewise.
10939 (cmd_qtdpsrc): Likewise.
10940 (cmd_qtro): Likewise.
10941 (add_while_stepping_state): Likewise.
10942 * win32-low.c (child_add_thread): Likewise.
10943 (get_image_name): Likewise.
10944
ed8b7b42
YQ
109452015-08-25 Yao Qi <yao.qi@linaro.org>
10946
10947 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10948
db3cb7cb
YQ
109492015-08-25 Yao Qi <yao.qi@linaro.org>
10950
10951 * Makefile.in (aarch64-linux.o): New rule.
10952 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10953 srv_tgtobj.
10954 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10955 (aarch64_init_debug_reg_state): Make it extern.
10956 (aarch64_linux_prepare_to_resume): Remove.
10957
f6011a1c
YQ
109582015-08-25 Yao Qi <yao.qi@linaro.org>
10959
10960 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10961 lwp_arch_private_info and ptid_of_lwp.
10962
88e2cf7e
YQ
109632015-08-25 Yao Qi <yao.qi@linaro.org>
10964
10965 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10966 Find proc_info by find_process_pid. All callers updated.
10967
5e35436e
YQ
109682015-08-25 Yao Qi <yao.qi@linaro.org>
10969
10970 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10971 Remove.
10972 (debug_reg_change_callback): Remove.
10973 (aarch64_notify_debug_reg_change): Remove.
10974
4a8a7965
YQ
109752015-08-25 Yao Qi <yao.qi@linaro.org>
10976
10977 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10978 Call current_lwp_ptid.
10979
32a271ee
YQ
109802015-08-25 Yao Qi <yao.qi@linaro.org>
10981
10982 * linux-aarch64-low.c (debug_reg_change_callback): Use
10983 debug_printf.
10984
0d51c8d7
YQ
109852015-08-25 Yao Qi <yao.qi@linaro.org>
10986
10987 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10988
31a43dd5
YQ
109892015-08-25 Yao Qi <yao.qi@linaro.org>
10990
10991 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10992
8ee52567
YQ
109932015-08-25 Yao Qi <yao.qi@linaro.org>
10994
10995 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10996 the code.
10997
ff3f0f45
YQ
109982015-08-25 Yao Qi <yao.qi@linaro.org>
10999
11000 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
11001 Remove.
11002 (debug_reg_change_callback): Remove argument entry and add argument
11003 lwp. Remove local variable thread. Don't print thread id in the
11004 debugging output. Don't check whether pid of thread equals to pid.
11005 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
11006 iterate_over_lwps instead find_inferior.
11007
3d40fbb5
PA
110082015-08-24 Pedro Alves <palves@redhat.com>
11009
11010 * inferiors.c (get_first_process): New function.
11011 * inferiors.h (get_first_process): New declaration.
11012 * remote-utils.c (read_ptid): Default to the first process in the
11013 list, instead of to the current thread's process.
11014
438e1e42
PA
110152015-08-24 Pedro Alves <palves@redhat.com>
11016
11017 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
11018 * event-loop.c: Likewise.
11019 * remote-utils.c: Likewise.
11020 * tracepoint.c: Likewise.
11021
a8c6d4fc
PA
110222015-08-24 Pedro Alves <palves@redhat.com>
11023
11024 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
11025 ptid_get_lwp.
11026
99b0bb12
PA
110272015-08-21 Pedro Alves <palves@redhat.com>
11028
11029 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11030 instead of literal 1.
11031
f8904751
PA
110322015-08-21 Pedro Alves <palves@redhat.com>
11033
11034 * tdesc.c (default_description): Explicitly zero-initialize.
11035
465a859e
PA
110362015-08-21 Pedro Alves <palves@redhat.com>
11037
11038 PR gdb/18749
11039 * inferiors.c (remove_thread): Discard any pending stop reply for
11040 this thread.
11041 * server.c (remove_all_on_match_pid): Rename to ...
11042 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11043 instead of a pid.
11044 (discard_queued_stop_replies): Change parameter to a ptid. Now
11045 extern.
11046 (handle_v_kill, kill_inferior_callback, captured_main)
11047 (process_serial_event): Adjust.
11048 * server.h (discard_queued_stop_replies): Declare.
11049
f0db101d
PA
110502015-08-21 Pedro Alves <palves@redhat.com>
11051
11052 * linux-low.c (wait_for_sigstop): Always switch to no thread
11053 selected if the previously current thread dies.
11054 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11055 process instead of the current thread's.
11056 * remote-utils.c (input_interrupt): Don't check if there's no
11057 current thread.
11058 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11059 current thread to the general thread fails, error out.
11060 (handle_qxfer_auxv, handle_qxfer_libraries)
11061 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11062 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11063 (handle_query): Check if there's a thread selected instead of
11064 checking whether there's any thread in the thread list.
11065 (handle_qxfer_threads, handle_qxfer_btrace)
11066 (handle_qxfer_btrace_conf): Don't error out early if there's no
11067 thread in the thread list.
11068 (handle_v_cont, myresume): Don't set the current thread to the
11069 continue thread.
11070 (process_serial_event) <Hg handling>: Also set thread_id if the
11071 previous general thread is still alive.
11072 (process_serial_event) <g/G handling>: If setting the current
11073 thread to the general thread fails, error out.
11074 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11075 thread's lwp instead of the current thread's.
11076 * target.c (set_desired_thread): If the desired thread was not
11077 found, leave the current thread pointing to NULL. Return an int
11078 (boolean) indicating success.
11079 * target.h (set_desired_thread): Change return type to int.
11080
40045d91
MF
110812015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11082
11083 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11084 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11085 #includes.
11086 (ps_get_thread_area): New function.
11087
45face3b
GB
110882015-08-19 Gary Benson <gbenson@redhat.com>
11089
11090 * hostio.c (handle_pread): Do not attempt to read more data
11091 than hostio_reply_with_data can fit in a packet.
11092
16d5f642
JB
110932015-08-18 Joel Brobecker <brobecker@adacore.com>
11094
11095 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11096
a738da3a
MF
110972015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11098
11099 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11100
33ebda9d
PA
111012015-08-06 Pedro Alves <palves@redhat.com>
11102
11103 * tracepoint.c (expr_eval_result): Now an int.
11104
a44892be
PA
111052015-08-06 Pedro Alves <palves@redhat.com>
11106
11107 * gdbthread.h (struct regcache): Forward declare.
11108 (struct thread_info) <regcache_data>: Now a struct regcache
11109 pointer.
11110 * inferiors.c (inferior_regcache_data)
11111 (set_inferior_regcache_data): Now work with struct regcache
11112 pointers.
11113 * inferiors.h (struct regcache): Forward declare.
11114 (inferior_regcache_data, set_inferior_regcache_data): Now work
11115 with struct regcache pointers.
11116 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11117 (free_register_cache_thread): Remove struct regcache pointer
11118 casts.
11119
608a1e46
PA
111202015-08-06 Pedro Alves <palves@redhat.com>
11121
11122 * server.c (captured_main): On error, print the exception message
11123 to stderr, and if run_once is set, throw a quit.
11124
f0ce0d3a
PA
111252015-08-06 Pedro Alves <palves@redhat.com>
11126
11127 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11128 the current thread.
11129
bf47e248
PA
111302015-08-06 Pedro Alves <palves@redhat.com>
11131
11132 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11133 reading beyond the passed in buffer length.
11134
b6b9ffcc
PL
111352015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11136
11137 * tracepoint.c (symbol_list) <required>: Remove.
11138
863d01bd
PA
111392015-08-06 Pedro Alves <palves@redhat.com>
11140
11141 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11142 count if stopping and suspending threads.
11143 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11144 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11145 (linux_detach): Complete an ongoing step-over.
11146 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11147 throughout.
11148 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11149 (linux_wait_1): If passing a signal to the inferior after
11150 finishing a step-over, unsuspend and re-resume all lwps. If we
11151 see a single-step event but the thread should be continuing, don't
11152 pass the trap to gdb.
11153 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11154 internal_error instead of gdb_assert.
11155 (enqueue_pending_signal): New function.
11156 (check_ptrace_stopped_lwp_gone): Add debug output.
11157 (start_step_over): Use internal_error instead of gdb_assert.
11158 (complete_ongoing_step_over): New function.
11159 (linux_resume_one_thread): Don't resume a suspended thread.
11160 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11161 it stepping.
11162
00db26fa
PA
111632015-08-06 Pedro Alves <palves@redhat.com>
11164
11165 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11166 (linux_thread_alive): Use lwp_is_marked_dead.
11167 (extended_event_reported): Delete.
11168 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11169 instead of extended_event_reported.
11170 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11171 as well.
11172 (lwp_is_marked_dead): New function.
11173 (lwp_running): Use lwp_is_marked_dead.
11174 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11175 comment.
11176
ad071a30
PA
111772015-08-06 Pedro Alves <palves@redhat.com>
11178
11179 * linux-low.c (linux_wait_1): Move fork event output out of the
11180 !report_to_gdb check. Pass event_child->waitstatus to
11181 target_waitstatus_to_string instead of ourstatus.
11182
524b57e6
YQ
111832015-08-04 Yao Qi <yao.qi@linaro.org>
11184
11185 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11186 if current_thread is 32 bit.
11187
6085d6f6
YQ
111882015-08-04 Yao Qi <yao.qi@linaro.org>
11189
11190 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11191 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11192 * server.c (extended_protocol): Remove "static".
11193 * server.h (extended_protocol): Declare it.
11194
8a7e4587
YQ
111952015-08-04 Yao Qi <yao.qi@linaro.org>
11196
11197 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11198 both aarch64 and aarch32.
11199 (aarch64_set_pc): Likewise.
11200
3b53ae99
YQ
112012015-08-04 Yao Qi <yao.qi@linaro.org>
11202
11203 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11204 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11205 arm-with-neon.xml to srv_xmlfiles.
11206 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11207 (is_64bit_tdesc): New function.
11208 (aarch64_linux_read_description): New function.
11209 (aarch64_arch_setup): Call aarch64_linux_read_description.
11210 (regs_info): Rename to regs_info_aarch64.
11211 (aarch64_regs_info): Return right regs_info.
11212 (initialize_low_arch): Call initialize_low_arch_aarch32.
11213
bd9e6534
YQ
112142015-08-04 Yao Qi <yao.qi@linaro.org>
11215
11216 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11217 * linux-aarch32-low.c: New file.
11218 * linux-aarch32-low.h: New file.
11219 * linux-arm-low.c (arm_fill_gregset): Move it to
11220 linux-aarch32-low.c.
11221 (arm_store_gregset): Likewise.
11222 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11223 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11224 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11225 (regs_info): Rename to regs_info_arm.
11226 (arm_regs_info): Return regs_info_aarch32 if
11227 have_ptrace_getregset is 1 and target description is
11228 arm_with_neon or arm_with_vfpv3.
11229 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11230 Call initialize_low_arch_aarch32 instead.
11231
ded48a5e
YQ
112322015-08-04 Yao Qi <yao.qi@linaro.org>
11233
11234 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11235 * linux-low.c: ... here.
11236 * linux-low.h (have_ptrace_getregset): Declare it.
11237
96e9210f
PA
112382015-08-04 Pedro Alves <palves@redhat.com>
11239
11240 * thread-db.c (struct thread_db): Use new typedefs.
11241 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11242 CHK calls.
11243 (disable_thread_event_reporting): Cast result of dlsym to
11244 destination function pointer type.
11245 (thread_db_mourn): Use td_ta_delete_ftype.
11246
af60a1ef
SL
112472015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11248
11249 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11250 arch variant.
11251 (CDX_BREAKPOINT): Define for R2.
11252 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11253 (the_low_target): Add comments.
11254
e8b41681
YQ
112552015-07-30 Yao Qi <yao.qi@linaro.org>
11256
11257 * linux-arm-low.c (arm_hwcap): Remove it.
11258 (arm_read_description): New local variable arm_hwcap. Don't
11259 set arm_hwcap to zero.
11260
89abb039
YQ
112612015-07-30 Yao Qi <yao.qi@linaro.org>
11262
11263 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11264 Use regcache->tdesc instead.
11265 (arm_store_wmmxregset): Likewise.
11266 (arm_fill_vfpregset): Likewise.
11267 (arm_store_vfpregset): Likewise.
11268
deca266c
YQ
112692015-07-30 Yao Qi <yao.qi@linaro.org>
11270
11271 * linux-arm-low.c: Include arch/arm.h.
11272 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11273 (arm_store_gregset): Likewise.
11274
aa58a496
SM
112752015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11276
11277 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11278 ptrace's 4th parameter.
11279
50904b25
YQ
112802015-07-27 Yao Qi <yao.qi@linaro.org>
11281
11282 * configure.srv (case aarch64*-*-linux*): Don't set
11283 srv_linux_usrregs.
11284
5826e159
PA
112852015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11286
11287 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11288 sys/ptrace.h.
11289 * linux-arm-low.c: Likewise.
11290 * linux-cris-low.c: Likewise.
11291 * linux-crisv32-low.c: Likewise.
11292 * linux-low.c: Likewise.
11293 * linux-m68k-low.c: Likewise.
11294 * linux-mips-low.c: Likewise.
11295 * linux-nios2-low.c: Likewise.
11296 * linux-s390-low.c: Likewise.
11297 * linux-sparc-low.c: Likewise.
11298 * linux-tic6x-low.c: Likewise.
11299 * linux-tile-low.c: Likewise.
11300 * linux-x86-low.c: Likewise.
11301
54019719
PA
113022015-07-24 Pedro Alves <palves@redhat.com>
11303
11304 * config.in: Regenerate.
11305 * configure: Regenerate.
11306
eb7aa561
PA
113072015-07-24 Pedro Alves <palves@redhat.com>
11308
11309 * acinclude.m4: Include ../ptrace.m4.
11310 * configure.ac: Call GDB_AC_PTRACE.
11311 * config.in, configure: Regenerate.
11312
55d7b841
YQ
113132015-07-24 Yao Qi <yao.qi@linaro.org>
11314
11315 * linux-low.c (linux_create_inferior): Remove setting to
11316 proc->priv->new_inferior.
11317 (linux_attach): Likewise.
11318 (linux_low_filter_event): Likewise.
11319 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11320
c06cbd92
YQ
113212015-07-24 Yao Qi <yao.qi@linaro.org>
11322
11323 * linux-low.c (linux_arch_setup): New function.
11324 (linux_low_filter_event): If proc->tdesc is NULL and
11325 proc->attached is true, call the_low_target.arch_setup.
11326 Otherwise, keep status pending, and return.
11327 (linux_resume_one_lwp_throw): Don't call get_pc if
11328 thread->while_stepping isn't NULL. Don't call
11329 get_thread_regcache if proc->tdesc is NULL.
11330 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11331 (linux_target_ops): Install arch_setup.
11332 * server.c (start_inferior): Call the_target->arch_setup.
11333 * target.h (struct target_ops) <arch_setup>: New field.
11334 (target_arch_setup): New marco.
11335 * lynx-low.c (lynx_target_ops): Update.
11336 * nto-low.c (nto_target_ops): Update.
11337 * spu-low.c (spu_target_ops): Update.
11338 * win32-low.c (win32_target_ops): Update.
11339
5ae3ebba
YQ
113402015-07-24 Yao Qi <yao.qi@linaro.org>
11341
11342 * linux-low.c (linux_add_process): Don't set
11343 proc->priv->new_inferior.
11344 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11345 (linux_attach): Likewise.
11346
eb97750b
YQ
113472015-07-24 Yao Qi <yao.qi@linaro.org>
11348
11349 * server.c (start_inferior): Code refactor.
11350
51aee833
YQ
113512015-07-24 Yao Qi <yao.qi@linaro.org>
11352
11353 * server.c (process_serial_event): Set general_thread.
11354
af1b22f3
YQ
113552015-07-21 Yao Qi <yao.qi@linaro.org>
11356
11357 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11358 aarch64_linux_get_debug_reg_capacity.
11359
554717a3
YQ
113602015-07-17 Yao Qi <yao.qi@linaro.org>
11361
11362 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11363 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11364 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11365 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11366 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11367 (AARCH64_HWP_ALIGNMENT): Likewise.
11368 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11369 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11370 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11371 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11372 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11373 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11374 (struct aarch64_debug_reg_state): Likewise.
11375 (struct arch_lwp_info): Likewise.
11376 (aarch64_align_watchpoint): Likewise.
11377 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11378 (aarch64_watchpoint_length): Likewise.
11379 (aarch64_point_encode_ctrl_reg): Likewise
11380 (aarch64_point_is_aligned): Likewise.
11381 (aarch64_align_watchpoint): Likewise.
11382 (aarch64_linux_set_debug_regs):
11383 (aarch64_dr_state_insert_one_point): Likewise.
11384 (aarch64_dr_state_remove_one_point): Likewise.
11385 (aarch64_handle_breakpoint): Likewise.
11386 (aarch64_handle_aligned_watchpoint): Likewise.
11387 (aarch64_handle_unaligned_watchpoint): Likewise.
11388 (aarch64_handle_watchpoint): Likewise.
11389
c67ca4de
YQ
113902015-07-17 Yao Qi <yao.qi@linaro.org>
11391
11392 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11393 and don't aarch64_get_debug_reg_state. All callers update.
11394 (aarch64_handle_aligned_watchpoint): Likewise.
11395 (aarch64_handle_unaligned_watchpoint): Likewise.
11396 (aarch64_handle_watchpoint): Likewise.
11397 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11398 (aarch64_remove_point): Likewise.
11399
25abf979
YQ
114002015-07-17 Yao Qi <yao.qi@linaro.org>
11401
11402 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11403 debug_printf.
11404 (aarch64_handle_unaligned_watchpoint): Likewise.
11405
db1ff28b
JK
114062015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11407
11408 Revert the previous 3 commits:
11409 Move gdb_regex* to common/
11410 Move linux_find_memory_regions_full & co.
11411 gdbserver build-id attribute generator
11412
700ca40f
JK
114132015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11414 Jan Kratochvil <jan.kratochvil@redhat.com>
11415
11416 gdbserver build-id attribute generator.
11417 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11418 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11419 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11420 (find_phdr): New.
11421 (get_dynamic): Use find_pdhr to traverse program headers.
11422 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11423 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11424 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11425 (get_hex_build_id): New.
11426 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11427 to reply XML document.
11428
9904185c
JK
114292015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11430 Jan Kratochvil <jan.kratochvil@redhat.com>
11431
11432 * target.c: Include target/target-utils.h and fcntl.h.
11433 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11434 (target_fileio_read_stralloc): New functions.
11435
6e5b4429
JK
114362015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11437
11438 * Makefile.in (OBS): Add gdb_regex.o.
11439 (gdb_regex.o): New.
11440 * config.in: Rebuilt.
11441 * configure: Rebuilt.
11442
ddc98fbf
JK
114432015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11444 Jan Kratochvil <jan.kratochvil@redhat.com>
11445
11446 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11447 * Makefile.in (OBS): Add target-utils.o.
11448 (linux-maps.o, target-utils.o): New.
11449 * configure.srv (srv_linux_obj): Add linux-maps.o.
11450
e57bb7a0
PL
114512015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11452
11453 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11454 function, return 1.
11455 (the_low_target): Install it.
11456
586b02a9
PA
114572015-07-14 Pedro Alves <palves@redhat.com>
11458
11459 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11460 Instead, ignore ECHILD, and throw an error for other errnos.
11461
58c1b36c
PA
114622015-07-10 Pedro Alves <palves@redhat.com>
11463
11464 * event-loop.c (struct callback_event) <data>: Change type to
11465 gdb_client_data instance instead of gdb_client_data pointer.
11466 (append_callback_event): Adjust.
11467
421530db
PL
114682015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11469
11470 * linux-aarch64-low.c: Add comments for each linux_target_ops
11471 method. Remove comments already covered in target_ops and
11472 linux_target_ops definitions.
11473 (the_low_target): Add comments for each unimplemented method.
11474
c2d65f38
YQ
114752015-07-09 Yao Qi <yao.qi@linaro.org>
11476
11477 * linux-aarch64-low.c (aarch64_regmap): Remove.
11478 (aarch64_usrregs_info): Remove.
11479 (regs_info): Set field usrregs to NULL.
11480
b20a6524
MM
114812015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11482
11483 * linux-low.c: Include "rsp-low.h"
11484 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11485 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11486 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11487 (handle_btrace_enable_pt): New.
11488 (handle_btrace_general_set): Support "pt".
11489 (handle_btrace_conf_general_set): Support "pt:size".
11490
96c97461
PL
114912015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11492
11493 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11494 Z_PACKET_SW_BP.
11495
37d66942
PL
114962015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11497
11498 * linux-aarch64-low.c: Remove comment about endianness.
11499 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11500 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11501 memcmp.
11502
dc06243f
GB
115032015-06-24 Gary Benson <gbenson@redhat.com>
11504
11505 * linux-i386-ipa.c (stdint.h): Do not include.
11506 * lynx-i386-low.c (stdint.h): Likewise.
11507 * lynx-ppc-low.c (stdint.h): Likewise.
11508 * mem-break.c (stdint.h): Likewise.
11509 * thread-db.c (stdint.h): Likewise.
11510 * tracepoint.c (stdint.h): Likewise.
11511 * win32-low.c (stdint.h): Likewise.
11512
124e13d9
SM
115132015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11514
11515 * server.c (write_qxfer_response): Update call to
11516 remote_escape_output.
11517
909c2cda
JK
115182015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11519 Jan Kratochvil <jan.kratochvil@redhat.com>
11520
11521 Merge multiple hex conversions.
11522 * gdbreplay.c (tohex): Rename to 'fromhex'.
11523 (logchar): Use fromhex.
11524
24c05f46
JK
115252015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11526
11527 * server.c (handle_qxfer_libraries): Set `version' attribute for
11528 <library-list>.
11529
14d2069a
GB
115302015-06-10 Gary Benson <gbenson@redhat.com>
11531
11532 * target.h (struct target_ops) <multifs_open>: New field.
11533 <multifs_unlink>: Likewise.
11534 <multifs_readlink>: Likewise.
11535 * linux-low.c (nat/linux-namespaces.h): New include.
11536 (linux_target_ops): Initialize the_target->multifs_open,
11537 the_target->multifs_unlink and the_target->multifs_readlink.
11538 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11539 * hostio.c (hostio_fs_pid): New static variable.
11540 (hostio_handle_new_gdb_connection): New function.
11541 (handle_setfs): Likewise.
11542 (handle_open): Use the_target->multifs_open as appropriate.
11543 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11544 (handle_readlink): Use the_target->multifs_readlink as
11545 appropriate.
11546 (handle_vFile): Handle vFile:setfs packets.
11547 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11548 after target_handle_new_gdb_connection.
11549
4b8b5e72
GB
115502015-06-10 Gary Benson <gbenson@redhat.com>
11551
11552 * configure.ac (AC_CHECK_FUNCS): Add setns.
11553 * config.in: Regenerate.
11554 * configure: Likewise.
11555 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11556 (linux-namespaces.o): New rule.
11557 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11558
3ac2e371
GB
115592015-06-09 Gary Benson <gbenson@redhat.com>
11560
11561 * hostio.c (handle_open): Process mode argument with
11562 fileio_to_host_mode.
11563
ca9b78ce
YQ
115642015-06-01 Yao Qi <yao.qi@linaro.org>
11565
11566 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11567 * linux-x86-low.c: Likewise.
11568
bfacd19d
DB
115692015-05-28 Don Breazeal <donb@codesourcery.com>
11570
11571 * linux-low.c (handle_extended_wait): Initialize
11572 thread_info.last_resume_kind for new fork children.
11573
452003ef
PA
115742015-05-15 Pedro Alves <palves@redhat.com>
11575
11576 * target.h (target_handle_new_gdb_connection): Rewrite using if
11577 wrapped in do/while.
11578
1041a03c
JB
115792015-05-14 Joel Brobecker <brobecker@adacore.com>
11580
11581 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11582 * configure, config.in: Regenerate.
11583 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11584 Declare typedef.
11585
c269dbdb
DB
115862015-05-12 Don Breazeal <donb@codesourcery.com>
11587
11588 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11589 PTRACE_EVENT_VFORK_DONE.
11590 (linux_low_ptrace_options, extended_event_reported): Add vfork
11591 events.
11592 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11593 and "vforkdone" for RSP 'T' Stop Reply Packet.
11594 * server.h (report_vfork_events): Declare
11595 global variable.
11596
3a8a0396
DB
115972015-05-12 Don Breazeal <donb@codesourcery.com>
11598
11599 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11600 (the_low_target) <new_fork>: Initialize new member.
11601 * linux-arm-low.c (arm_new_fork): New function.
11602 (the_low_target) <new_fork>: Initialize new member.
11603 * linux-low.c (handle_extended_wait): Call new target function
11604 new_fork.
11605 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11606 * linux-mips-low.c (mips_add_watchpoint): New function
11607 extracted from mips_insert_point.
11608 (the_low_target) <new_fork>: Initialize new member.
11609 (mips_linux_new_fork): New function.
11610 (mips_insert_point): Call mips_add_watchpoint.
11611 * linux-x86-low.c (x86_linux_new_fork): New function.
11612 (the_low_target) <new_fork>: Initialize new member.
11613
de0d863e
DB
116142015-05-12 Don Breazeal <donb@codesourcery.com>
11615
11616 * linux-low.c (handle_extended_wait): Implement return value,
11617 rename argument 'event_child' to 'event_lwp', handle
11618 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11619 (linux_low_ptrace_options): New function.
11620 (linux_low_filter_event): Call linux_low_ptrace_options,
11621 use different argument fo linux_enable_event_reporting,
11622 use return value from handle_extended_wait.
11623 (extended_event_reported): New function.
11624 (linux_wait_1): Call extended_event_reported and set
11625 status to report fork events.
11626 (linux_write_memory): Add pid to debug message.
11627 (reset_lwp_ptrace_options_callback): New function.
11628 (linux_handle_new_gdb_connection): New function.
11629 (linux_target_ops): Initialize new structure member.
11630 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11631 * lynx-low.c: Initialize new structure member.
11632 * remote-utils.c (prepare_resume_reply): Implement stop reason
11633 "fork" for "T" stop message.
11634 * server.c (handle_query): Call handle_new_gdb_connection.
11635 * server.h (report_fork_events): Declare global flag.
11636 * target.h (struct target_ops) <handle_new_gdb_connection>:
11637 New member.
11638 (target_handle_new_gdb_connection): New macro.
11639 * win32-low.c: Initialize new structure member.
11640
ddcbc397
DB
116412015-05-12 Don Breazeal <donb@codesourcery.com>
11642
11643 * mem-break.c (APPEND_TO_LIST): Define macro.
11644 (clone_agent_expr): New function.
11645 (clone_one_breakpoint): New function.
11646 (clone_all_breakpoints): New function.
11647 * mem-break.h: Declare new functions.
11648
89245bc0
DB
116492015-05-12 Don Breazeal <donb@codesourcery.com>
11650
11651 * linux-low.c (linux_supports_fork_events): New function.
11652 (linux_supports_vfork_events): New function.
11653 (linux_target_ops): Initialize new structure members.
11654 (initialize_low): Call linux_check_ptrace_features.
11655 * lynx-low.c (lynx_target_ops): Initialize new structure
11656 members.
11657 * server.c (report_fork_events, report_vfork_events):
11658 New global flags.
11659 (handle_query): Add new features to qSupported packet and
11660 response.
11661 (captured_main): Initialize new global variables.
11662 * target.h (struct target_ops) <supports_fork_events>:
11663 New member.
11664 <supports_vfork_events>: New member.
11665 (target_supports_fork_events): New macro.
11666 (target_supports_vfork_events): New macro.
11667 * win32-low.c (win32_target_ops): Initialize new structure
11668 members.
11669
835205d0
GB
116702015-05-12 Gary Benson <gbenson@redhat.com>
11671
11672 * server.c (handle_qxfer_exec_file): Use current process
11673 if annex is empty.
11674
21e94bd9
SL
116752015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11676
11677 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11678 Remove HAVE_PTRACE_GETREGS conditionals.
11679 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11680 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11681
45614f15
YQ
116822015-05-08 Yao Qi <yao.qi@linaro.org>
11683
11684 * linux-low.c (linux_supports_conditional_breakpoints): New
11685 function.
11686 (linux_target_ops): Install new target method.
11687 * lynx-low.c (lynx_target_ops): Install NULL hook for
11688 supports_conditional_breakpoints.
11689 * nto-low.c (nto_target_ops): Likewise.
11690 * spu-low.c (spu_target_ops): Likewise.
11691 * win32-low.c (win32_target_ops): Likewise.
11692 * server.c (handle_query): Check
11693 target_supports_conditional_breakpoints.
11694 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11695 New field.
11696 (target_supports_conditional_breakpoints): New macro.
11697
80ad801e
PA
116982015-05-06 Pedro Alves <palves@redhat.com>
11699
11700 PR server/18081
11701 * server.c (start_inferior): If the process exits, mourn it.
11702
819843c7
GB
117032015-04-21 Gary Benson <gbenson@redhat.com>
11704
11705 * hostio.c (fileio_open_flags_to_host): Factored out to
11706 fileio_to_host_openflags in common/fileio.c. Single use
11707 updated.
11708
a2d5a9d7
MF
117092015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11710
11711 * linux-xtensa-low.c (xtensa_fill_gregset)
11712 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11713 XCHAL_HAVE_LOOP.
11714
deb44829
MF
117152015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11716
11717 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11718 (regs_info): Replace usrregs pointer with NULL.
11719
e57f1de3
GB
117202015-04-17 Gary Benson <gbenson@redhat.com>
11721
11722 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11723 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11724 * server.c (handle_qxfer_exec_file): New function.
11725 (qxfer_packets): Add exec-file entry.
11726 (handle_query): Report qXfer:exec-file:read as supported packet.
11727
62828379
RN
117282015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11729
11730 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11731
b88bb450
GB
117322015-04-09 Gary Benson <gbenson@redhat.com>
11733
11734 * hostio-errno.c (errno_to_fileio_error): Remove function.
11735 Update caller to use remote_fileio_to_fio_error.
11736
c8f4bfdd
YQ
117372015-04-09 Yao Qi <yao.qi@linaro.org>
11738
11739 * linux-low.c (linux_insert_point): Call
11740 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11741 (linux_remove_point): Call remove_memory_breakpoint if type is
11742 raw_bkpt_type_sw.
11743 * linux-x86-low.c (x86_insert_point): Don't call
11744 insert_memory_breakpoint.
11745 (x86_remove_point): Don't call remove_memory_breakpoint.
11746
41f98f02
PA
117472015-04-01 Pedro Alves <palves@redhat.com>
11748 Cleber Rosa <crosa@redhat.com>
11749
11750 * server.c (gdbserver_usage): Reorganize and extend the usage
11751 message.
11752
2bf6fb9d
PA
117532015-03-24 Pedro Alves <palves@redhat.com>
11754
11755 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11756 output. Also dump TRAP_TRACE.
11757 (linux_low_filter_event): In debug output, distinguish a
11758 resume_stop SIGSTOP from a delayed SIGSTOP.
11759
369f6daa
GB
117602015-03-24 Gary Benson <gbenson@redhat.com>
11761
11762 * linux-x86-low.c (x86_linux_new_thread): Moved to
11763 nat/x86-linux.c.
11764 (x86_linux_prepare_to_resume): Likewise.
11765
8e5d4070
GB
117662015-03-24 Gary Benson <gbenson@redhat.com>
11767
11768 * Makefile.in (x86-linux-dregs.o): New rule.
11769 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11770 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11771 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11772 (x86_linux_dr_get): Likewise.
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_update_debug_registers): Likewise.
11781
2b95d440
GB
117822015-03-24 Gary Benson <gbenson@redhat.com>
11783
11784 * linux-x86-low.c (x86_linux_update_debug_registers):
11785 New function, factored out from...
11786 (x86_linux_prepare_to_resume): ...this.
11787
14b0bc68
GB
117882015-03-24 Gary Benson <gbenson@redhat.com>
11789
11790 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11791 (x86_linux_dr_set): Likewise.
11792 (update_debug_registers_callback): Likewise.
11793 (x86_linux_dr_set_addr): Likewise.
11794 (x86_linux_dr_get_addr): Likewise.
11795 (x86_linux_dr_set_control): Likewise.
11796 (x86_linux_dr_get_control): Likewise.
11797 (x86_linux_dr_get_status): Likewise.
11798 (x86_linux_prepare_to_resume): Likewise.
11799
5dfe6ca8
GB
118002015-03-24 Gary Benson <gbenson@redhat.com>
11801
11802 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11803 Use perror_with_name. Pass string through gettext.
11804 (x86_linux_dr_set): Likewise.
11805
d33472ad
GB
118062015-03-24 Gary Benson <gbenson@redhat.com>
11807
11808 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11809 (x86_linux_dr_set_addr): ...this.
11810 (x86_dr_low_get_addr): Rename to...
11811 (x86_linux_dr_get_addr): ...this.
11812 (x86_dr_low_set_control): Rename to...
11813 (x86_linux_dr_set_control): ...this.
11814 (x86_dr_low_get_control): Rename to...
11815 (x86_linux_dr_get_control): ...this.
11816 (x86_dr_low_get_status): Rename to...
11817 (x86_linux_dr_get_status): ...this.
11818 (x86_dr_low): Update with new function names.
11819
4b134ca1
GB
118202015-03-24 Gary Benson <gbenson@redhat.com>
11821
11822 * Makefile.in (x86-linux.o): New rule.
11823 * configure.srv: Add x86-linux.o to relevant targets.
11824 * linux-low.c (lwp_set_arch_private_info): New function.
11825 (lwp_arch_private_info): Likewise.
11826 * linux-x86-low.c: Include nat/x86-linux.h.
11827 (arch_lwp_info): Removed structure.
11828 (update_debug_registers_callback):
11829 Use lwp_set_debug_registers_changed.
11830 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11831 and lwp_set_debug_registers_changed.
11832 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11833
34c703da
GB
118342015-03-24 Gary Benson <gbenson@redhat.com>
11835
11836 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11837 * linux-arm-low.c (arm_new_thread): Likewise.
11838 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11839 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11840 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11841 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11842
cff068da
GB
118432015-03-24 Gary Benson <gbenson@redhat.com>
11844
11845 * linux-low.c (ptid_of_lwp): New function.
11846 (lwp_is_stopped): Likewise.
11847 (lwp_stop_reason): Likewise.
11848 * linux-x86-low.c (update_debug_registers_callback):
11849 Use lwp_is_stopped.
11850 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11851 lwp_stop_reason.
11852
b2f7c7e8
GB
118532015-03-24 Gary Benson <gbenson@redhat.com>
11854
11855 * linux-low.h (linux_stop_lwp): Remove declaration.
11856
6d4ee8c6
GB
118572015-03-24 Gary Benson <gbenson@redhat.com>
11858
11859 * linux-low.h: Include nat/linux-nat.h.
11860 * linux-low.c (iterate_over_lwps_args): New structure.
11861 (iterate_over_lwps_filter): New function.
11862 (iterate_over_lwps): Likewise.
11863 * linux-x86-low.c (update_debug_registers_callback):
11864 Update signature to what iterate_over_lwps expects.
11865 Remove PID check that iterate_over_lwps now performs.
11866 (x86_dr_low_set_addr): Use iterate_over_lwps.
11867 (x86_dr_low_set_control): Likewise.
11868
70a0bb6b
GB
118692015-03-24 Gary Benson <gbenson@redhat.com>
11870
11871 * linux-x86-low.c (x86_debug_reg_state): New function.
11872 (x86_linux_prepare_to_resume): Use the above.
11873
7b669087
GB
118742015-03-24 Gary Benson <gbenson@redhat.com>
11875
11876 * linux-low.c (current_lwp_ptid): New function.
11877 * linux-x86-low.c: Include nat/linux-nat.h.
11878 (x86_dr_low_get_addr): Use current_lwp_ptid.
11879 (x86_dr_low_get_control): Likewise.
11880 (x86_dr_low_get_status): Likewise.
11881
eef49a3d
PA
118822015-03-20 Pedro Alves <palves@redhat.com>
11883
11884 * tracepoint.c (cmd_qtstatus): Make "str" const.
11885
b2333d22
PA
118862015-03-20 Pedro Alves <palves@redhat.com>
11887
11888 * server.c (handle_general_set): Make "req_str" const.
11889
23f238d3
PA
118902015-03-19 Pedro Alves <palves@redhat.com>
11891
11892 * linux-low.c (linux_resume_one_lwp): Rename to ...
11893 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11894 instead call perror_with_name.
11895 (check_ptrace_stopped_lwp_gone): New function.
11896 (linux_resume_one_lwp): Reimplement as wrapper around
11897 linux_resume_one_lwp_throw that swallows errors if the LWP is
11898 gone.
11899
91baf43f
PA
119002015-03-19 Pedro Alves <palves@redhat.com>
11901
11902 * linux-low.c (count_events_callback, select_event_lwp_callback):
11903 No longer check whether the thread has resume_stop as last resume
11904 kind.
11905
8bf3b159
PA
119062015-03-19 Pedro Alves <palves@redhat.com>
11907
11908 * linux-low.c (count_events_callback, select_event_lwp_callback):
11909 Use the lwp's status_pending_p field, not the thread's.
11910
b90fc188
PA
119112015-03-19 Pedro Alves <palves@redhat.com>
11912
11913 * linux-low.c (select_event_lwp_callback): Update comments to
11914 no longer mention SIGTRAP.
11915
464b0089
GB
119162015-03-18 Gary Benson <gbenson@redhat.com>
11917
11918 * server.c (handle_query): Do not report vFile:fstat as supported.
11919
aa9e327f
GB
119202015-03-11 Gary Benson <gbenson@redhat.com>
11921
11922 * hostio.c (sys/types.h): New include.
11923 (sys/stat.h): Likewise.
11924 (common-remote-fileio.h): Likewise.
11925 (handle_fstat): New function.
11926 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11927
791c0056
GB
119282015-03-11 Gary Benson <gbenson@redhat.com>
11929
11930 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11931 struct stat.st_blocks and struct stat.st_blksize.
11932 * configure: Regenerate.
11933 * config.in: Likewise.
11934 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11935 (OBS): Add common-remote-fileio.o.
11936 (common-remote-fileio.o): New rule.
11937
9a9df970
PA
119382015-03-09 Pedro Alves <palves@redhat.com>
11939
11940 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11941 'struct sockaddr' pointer in 'accept' call.
11942
9eb1356e
PA
119432015-03-09 Pedro Alves <palves@redhat.com>
11944
11945 Revert:
11946 2015-03-07 Pedro Alves <palves@redhat.com>
11947 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11948 or <winsock2.h> here. Instead include "gdb_socket.h".
11949 (remote_open): Use union gdb_sockaddr_u.
11950 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11951 or <winsock2.h> here. Instead include "gdb_socket.h".
11952 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11953 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11954 or <sys/un.h>.
11955 (init_named_socket, gdb_agent_helper_thread): Use union
11956 gdb_sockaddr_u.
11957
aac331e4
PA
119582015-03-07 Pedro Alves <palves@redhat.com>
11959
11960 * configure.ac (build_warnings): Move
11961 -Wdeclaration-after-statement to the C-specific set.
11962 * configure: Regenerate.
11963
366c75fc
PA
119642015-03-07 Pedro Alves <palves@redhat.com>
11965
11966 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11967 or <winsock2.h> here. Instead include "gdb_socket.h".
11968 (remote_open): Use union gdb_sockaddr_u.
11969 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11970 or <winsock2.h> here. Instead include "gdb_socket.h".
11971 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11972 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11973 or <sys/un.h>.
11974 (init_named_socket, gdb_agent_helper_thread): Use union
11975 gdb_sockaddr_u.
11976
492d29ea
PA
119772015-03-07 Pedro Alves <palves@redhat.com>
11978
11979 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11980 instead.
11981
60a191ed
YQ
119822015-03-06 Yao Qi <yao.qi@linaro.org>
11983
11984 * linux-aarch64-low.c (aarch64_insert_point): Use
11985 show_debug_regs as a boolean.
11986 (aarch64_remove_point): Likewise.
11987
f5771b1d
PA
119882015-03-05 Pedro Alves <palves@redhat.com>
11989
11990 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11991 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11992 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11993 * nto-low.c (nto_target_ops): Likewise.
11994 * spu-low.c (spu_target_ops): Likewise.
11995 * win32-low.c (win32_target_ops): Likewise.
11996
3e572f71
PA
119972015-03-04 Pedro Alves <palves@redhat.com>
11998
72f4393d 11999 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
12000 Decide whether a breakpoint triggered based on the SIGTRAP's
12001 siginfo.si_code.
72f4393d
L
12002 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
12003 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
12004 (linux_low_filter_event): Check for breakpoints before checking
12005 watchpoints.
12006 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
12007 siginfo.si_code.
72f4393d
L
12008 (linux_stopped_by_sw_breakpoint)
12009 (linux_supports_stopped_by_sw_breakpoint)
12010 (linux_stopped_by_hw_breakpoint)
12011 (linux_supports_stopped_by_hw_breakpoint): New functions.
12012 (linux_target_ops): Install new target methods.
3e572f71 12013
1ec68e26
PA
120142015-03-04 Pedro Alves <palves@redhat.com>
12015
12016 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
12017 * server.c (swbreak_feature, hwbreak_feature): New globals.
12018 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
12019 (captured_main): Clear swbreak_feature and hwbreak_feature.
12020 * server.h (swbreak_feature, hwbreak_feature): Declare.
12021 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
12022 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
12023 supports_stopped_by_hw_breakpoint>: New fields.
12024 (target_supports_stopped_by_sw_breakpoint)
12025 (target_stopped_by_sw_breakpoint)
12026 (target_supports_stopped_by_hw_breakpoint)
12027 (target_stopped_by_hw_breakpoint): Declare.
12028
15c66dd6
PA
120292015-03-04 Pedro Alves <palves@redhat.com>
12030
12031 enum lwp_stop_reason -> enum target_stop_reason
12032 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12033 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12034 (linux_wait_1, stuck_in_jump_pad_callback)
12035 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12036 (linux_stopped_by_watchpoint):
12037 * linux-low.h (enum lwp_stop_reason): Delete.
12038 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12039 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12040
98fc70d6
YQ
120412015-03-04 Yao Qi <yao.qi@linaro.org>
12042
12043 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12044
dd2ac174
GB
120452015-03-03 Gary Benson <gbenson@redhat.com>
12046
12047 * hostio.c (handle_vFile): Fix prefix lengths.
12048
d68e53f4
MM
120492015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12050
12051 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12052 ptr_bits.
12053
bf2d68ab
AA
120542015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12055
12056 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12057 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12058 (clean): Add "rm -f" for above C files.
12059 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12060 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12061 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12062 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12063 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12064 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12065 (init_registers_s390x_vx_linux64)
12066 (init_registers_s390x_tevx_linux64)
12067 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12068 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12069 declarations.
12070 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12071 (s390_store_vxrs_high): New functions.
12072 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12073 NT_S390_VXRS_HIGH.
12074 (s390_arch_setup): Add logic for selecting one of the new target
12075 descriptions. Activate the new vector regsets if applicable.
12076 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12077 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12078 and init_registers_s390x_tevx_linux64.
12079
c966a859
PA
120802015-03-01 Pedro Alves <palves@redhat.com>
12081
12082 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12083 parameter.
12084
4180215b
PA
120852015-02-27 Pedro Alves <palves@redhat.com>
12086
12087 * linux-x86-low.c (u_debugreg_offset): New function.
12088 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12089
749bab01
PA
120902015-02-27 Pedro Alves <palves@redhat.com>
12091
12092 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12093 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12094 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12095 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12096 (ps_lsetfpregs, ps_getpid)
12097 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12098 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12099 (ps_lsetxregs, ps_plog): Declare.
12100
3c14e5a3
PA
121012015-02-27 Pedro Alves <palves@redhat.com>
12102
12103 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12104 IP_AGENT_EXPORT_FUNC.
12105 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12106 IP_AGENT_EXPORT_FUNC.
12107 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12108 (IP_AGENT_EXPORT): Delete.
12109 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12110 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12111 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12112 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12113 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12114 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12115 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12116 (traceframe_read_count, traceframe_write_count)
12117 (traceframes_created, trace_state_variables, get_raw_reg)
12118 (get_trace_state_variable_value, set_trace_state_variable_value)
12119 (ust_loaded, helper_thread_id, cmd_buf): Use
12120 IPA_SYM_EXPORTED_NAME.
12121 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12122 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12123 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12124 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12125 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12126 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12127 EXTERN_C_PUSH/EXTERN_C_POP.
12128 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12129 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12130 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12131 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12132 (traceframe_write_count, traceframe_read_count)
12133 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12134 (about_to_request_buffer_space, get_trace_state_variable_value)
12135 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12136 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12137 EXTERN_C_PUSH/EXTERN_C_POP.
12138 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12139 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12140 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12141 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12142 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12143 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12144 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12145 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12146 Define.
12147 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12148 (IP_AGENT_EXPORT_VAR_DECL): Define.
12149 (tracing): Declare.
12150 (gdb_agent_get_raw_reg): Declare.
12151
fe978cb0
PA
121522015-02-27 Tom Tromey <tromey@redhat.com>
12153 Pedro Alves <palves@redhat.com>
12154
12155 Rename symbols whose names are reserved C++ keywords throughout.
12156
3bc3d82a
PA
121572015-02-27 Pedro Alves <palves@redhat.com>
12158
12159 * Makefile.in (COMPILER): New, get it from autoconf.
12160 (CXX): Get from autoconf instead.
12161 (COMPILE.pre): Use COMPILER.
12162 (CC-LD): Rename to ...
12163 (CC_LD): ... this. Use COMPILER.
12164 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12165 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12166 * acinclude.m4: Include build-with-cxx.m4.
12167 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12168 Disable -Werror by default if building in C++ mode.
12169 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12170 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12171 the C++ compiler. Save/restore CXXFLAGS too.
12172 * configure: Regenerate.
12173
07697489
PA
121742015-02-27 Pedro Alves <palves@redhat.com>
12175
12176 * acinclude.m4: Include libiberty.m4.
12177 * configure.ac: Call libiberty_INIT.
12178 * config.in, configure: Regenerate.
12179
9beb7c4e
PA
121802015-02-26 Pedro Alves <palves@redhat.com>
12181
12182 * linux-low.c (linux_wait_1): When incrementing the PC past a
12183 program breakpoint always use the_low_target.breakpoint_len as
12184 increment, rather than the maximum between that and
12185 the_low_target.decr_pc_after_break.
12186
8090aef2
PA
121872015-02-23 Pedro Alves <palves@redhat.com>
12188
12189 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12190 thread was doing a step-over; always adjust the PC if
12191 we stepped over a permanent breakpoint.
12192 (linux_wait_1): If we stepped over breakpoint that was on top of a
12193 permanent breakpoint, manually advance the PC past it.
12194
bc9540e8
PA
121952015-02-23 Pedro Alves <palves@redhat.com>
12196
12197 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12198 modes.
12199 (x86_fill_gregset, x86_store_gregset): Use it when handling
12200 $orig_eax.
12201
2db9a427
PA
122022015-02-20 Pedro Alves <palves@redhat.com>
12203
12204 * thread-db.c: Include "nat/linux-procfs.h".
12205 (thread_db_init): Skip listing new threads if the kernel supports
12206 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12207
afa8d396
PA
122082015-02-20 Pedro Alves <palves@redhat.com>
12209
12210 * linux-low.c (status_pending_p_callback): Use ptid_match.
12211
c9587f88
AT
122122015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12213
12214 PR breakpoints/16812
12215 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12216 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12217 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12218
b05ec7a5
AT
122192015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12220
12221 PR breakpoints/15956
12222 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12223
d33501a5
MM
122242015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12225
12226 * linux-low.c (linux_low_btrace_conf): Print size.
12227 * server.c (handle_btrace_conf_general_set): New.
12228 (hanle_general_set): Call handle_btrace_conf_general_set.
12229 (handle_query): Report Qbtrace-conf:bts:size as supported.
12230
f4abbc16
MM
122312015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12232
12233 * linux-low.c (linux_low_enable_btrace): Update parameters.
12234 (linux_low_btrace_conf): New.
12235 (linux_target_ops)<to_btrace_conf>: Initialize.
12236 * server.c (current_btrace_conf): New.
12237 (handle_btrace_enable): Rename to ...
12238 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12239 to target_enable_btrace. Update comment. Update users.
12240 (handle_qxfer_btrace_conf): New.
12241 (qxfer_packets): Add btrace-conf entry.
12242 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12243 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12244 (target_ops)<read_btrace_conf>: New.
12245 (target_enable_btrace): Update parameters.
12246 (target_read_btrace_conf): New.
12247
043c3577
MM
122482015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12249
12250 * server.c (handle_btrace_general_set): Remove call to
12251 target_supports_btrace.
12252 (supported_btrace_packets): New.
12253 (handle_query): Call supported_btrace_packets.
12254 * target.h: include btrace-common.h.
12255 (btrace_target_info): Removed.
12256 (supports_btrace, target_supports_btrace): Update parameters.
12257
734b0e4b
MM
122582015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12259
12260 * Makefile.in (SFILES): Add common/btrace-common.c.
12261 (OBS): Add common/btrace-common.o.
12262 (btrace-common.o): Add build rules.
12263 * linux-low: Include btrace-common.h.
12264 (linux_low_read_btrace): Use struct btrace_data. Call
12265 btrace_data_init and btrace_data_fini.
12266
d6c146e9
PA
122672015-02-06 Pedro Alves <palves@redhat.com>
12268
12269 * thread-db.c (find_new_threads_callback): Add debug output.
12270
20ba1ce6
PA
122712015-02-04 Pedro Alves <palves@redhat.com>
12272
12273 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12274 (resume_stopped_resumed_lwps): New function.
12275 (linux_wait_for_event_filtered): Use it.
12276
8cc73a39
SDJ
122772015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12278
12279 * Makefile.in (SFILES): Add linux-personality.c.
12280 (linux-personality.o): New rule.
12281 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12282 list of objects to be built.
12283 * linux-low.c: Include nat/linux-personality.h.
12284 (linux_create_inferior): Remove code to disable address space
12285 randomization (moved to ../nat/linux-personality.c). Create
12286 cleanup to disable address space randomization.
12287
fb23d554
SDJ
122882015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12289
12290 * Makefile.in (posix-strerror.o): New rule.
12291 (mingw-strerror.o): Likewise.
12292 * configure: Regenerated.
12293 * configure.ac: Source file ../common/common.host. Initialize new
12294 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12295
cdf43629
YQ
122962015-01-14 Yao Qi <yao@codesourcery.com>
12297
12298 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12299 (ppc-linux.o): New rule.
12300 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12301 * configure.ac: AC_CHECK_FUNCS(getauxval).
12302 * config.in: Re-generated.
12303 * configure: Re-generated.
12304 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12305 ppc64_64bit_inferior_p
12306
514c5338
YQ
123072015-01-14 Yao Qi <yao@codesourcery.com>
12308
12309 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12310 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12311 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12312 (PT_ORIG_R3, PT_TRAP): Likewise.
12313 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12314 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12315 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12316
3368c1e5
JB
123172015-01-10 Joel Brobecker <brobecker@adacore.com>
12318
12319 * i387-fp.c (i387_cache_to_xsave): In look over
12320 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12321 zmmh_low_space field by use of zmmh_high_space.
12322
582511be
PA
123232015-01-09 Pedro Alves <palves@redhat.com>
12324
12325 * linux-low.c (step_over_bkpt): Move higher up in the file.
12326 (handle_extended_wait): Don't store the stop_pc here.
12327 (get_stop_pc): Adjust comments and rename to ...
12328 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12329 stopped for a software breakpoint or hardware breakpoint.
12330 (thread_still_has_status_pending_p): New function.
12331 (status_pending_p_callback): Use
12332 thread_still_has_status_pending_p. If the event is no longer
12333 interesting, resume the LWP.
12334 (handle_tracepoints): Add assert.
12335 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12336 (wstatus_maybe_breakpoint): New function.
12337 (cancel_breakpoint): Delete function.
12338 (check_stopped_by_watchpoint): New function, factored out from
12339 linux_low_filter_event.
12340 (lp_status_maybe_breakpoint): Delete function.
12341 (linux_low_filter_event): Remove filter_ptid argument.
12342 Leave thread group exits pending here. Store the LWP's stop PC.
12343 Always leave events pending.
12344 (linux_wait_for_event_filtered): Pull all events out of the
12345 kernel, and leave them all pending.
12346 (count_events_callback, select_event_lwp_callback): Consider all
12347 events.
12348 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12349 (select_event_lwp): Only give preference to the stepping LWP in
12350 all-stop mode. Adjust comments.
12351 (ignore_event): New function.
12352 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12353 references to cancel_breakpoints. Adjust to renames. Also give
12354 equal priority to all LWPs that have had events in non-stop mode.
12355 If reporting a software breakpoint event, unadjust the LWP's PC.
12356 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12357 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12358 Adjust.
12359 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12360 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12361 (linux_stopped_by_watchpoint): Adjust.
12362 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12363 * linux-low.h (enum lwp_stop_reason): New.
12364 (struct lwp_info) <stop_pc>: Adjust comment.
12365 <stopped_by_watchpoint>: Delete field.
12366 <stop_reason>: New field.
12367 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12368 * mem-break.c (software_breakpoint_inserted_here)
12369 (hardware_breakpoint_inserted_here): New function.
12370 * mem-break.h (software_breakpoint_inserted_here)
12371 (hardware_breakpoint_inserted_here): Declare.
12372 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12373 (cancel_breakpoints): Delete.
12374 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12375 (upload_fast_traceframes): Remove references to
12376 cancel_breakpoints.
12377
a33e3959
PA
123782015-01-09 Pedro Alves <palves@redhat.com>
12379
12380 * thread-db.c (find_new_threads_callback): Ignore thread if the
12381 kernel thread ID is -1.
12382
8784d563
PA
123832015-01-09 Pedro Alves <palves@redhat.com>
12384
12385 * linux-low.c (linux_attach_fail_reason_string): Move to
12386 nat/linux-ptrace.c, and rename.
12387 (linux_attach_lwp): Update comment.
12388 (attach_proc_task_lwp_callback): New function.
12389 (linux_attach): Adjust to rename and use
12390 linux_proc_attach_tgid_threads.
12391 (linux_attach_fail_reason_string): Delete declaration.
12392
76f2b779
JB
123932015-01-01 Joel Brobecker <brobecker@adacore.com>
12394
12395 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12396 * server.c (gdbserver_version): Likewise.
12397
fafcc06a
SDJ
123982014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12399
12400 * remote-utils.c: Include ctype.h.
12401 (input_interrupt): Explicitly handle the case when the char
12402 received is the NUL byte. Improve the printing of non-ASCII
12403 characters.
12404
beed38b8
JB
124052014-12-16 Joel Brobecker <brobecker@adacore.com>
12406
12407 * linux-low.c (linux_low_filter_event): Update call to
12408 linux_enable_event_reporting following the addition of
12409 a new parameter to that function.
12410
bf330350
CU
124112014-12-16 Catalin Udma <catalin.udma@freescale.com>
12412
12413 PR server/17457
12414 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12415 (AARCH64_FPCR_REGNO): Likewise.
12416 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12417 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12418 (aarch64_store_fpregset): Likewise.
12419
5227d625
JB
124202014-12-15 Joel Brobecker <brobecker@adacore.com>
12421
12422 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12423 Remove FIXME comment about assumption about N.
12424
f93b65a0
JB
124252014-12-13 Joel Brobecker <brobecker@adacore.com>
12426
12427 * configure.ac: If large-file support is disabled in GDBserver,
12428 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12429 * configure: Regenerate.
12430
e5a9158d
AA
124312014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12432
12433 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12434 warning upon ENODATA from ptrace.
12435 * linux-s390-low.c (s390_store_tdb): New.
12436 (s390_regsets): Add regset for NT_S390_TDB.
12437
feea5f36
AA
124382014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12439
12440 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12441 without a fill_function.
12442 * linux-s390-low.c (s390_fill_last_break): Remove.
12443 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12444 (s390_arch_setup): Use regset's size instead of fill_function for
12445 loop end condition.
12446
098dbe61
AA
124472014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12448
12449 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12450 the regset's store function when ptrace returned an error.
12451 * regcache.c (get_thread_regcache): Invalidate register cache
12452 before fetching inferior's registers.
12453
28eef672
AA
124542014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12455
12456 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12457 while-loop as for-loop.
12458 (regsets_store_inferior_registers): Likewise.
12459
bdca27a2
YQ
124602014-11-28 Yao Qi <yao@codesourcery.com>
12461
12462 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12463 * config.in, configure: Re-generate.
12464 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12465 is defined.
12466
9c232dda
YQ
124672014-11-21 Yao Qi <yao@codesourcery.com>
12468
12469 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12470 (AC_CHECK_HEADERS): Remove malloc.h.
12471 * configure: Re-generated.
12472 * config.in: Re-generated.
12473 * server.h: Don't include alloca.h and malloc.h.
12474 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12475 Don't include malloc.h.
12476
43968415
JB
124772014-11-17 Joel Brobecker <brobecker@adacore.com>
12478
12479 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12480 corresponding ERRNO check in same block.
12481
40e91bc7
PA
124822014-11-12 Pedro Alves <palves@redhat.com>
12483
12484 * server.c (cont_thread): Update comment.
12485 (start_inferior, attach_inferior): No longer clear cont_thread.
12486 (handle_v_cont): No longer set cont_thread.
12487 (captured_main): Clear cont_thread each time a GDB connects.
12488
c2c118cf
PA
124892014-11-12 Pedro Alves <palves@redhat.com>
12490
12491 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12492 thread, and don't resume all threads if the Hc thread has exited.
12493
78708b7c
PA
124942014-11-12 Pedro Alves <palves@redhat.com>
12495
12496 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12497 the process group instead of to a specific LWP.
12498
a2abc7de
PA
124992014-10-15 Pedro Alves <palves@redhat.com>
12500
12501 PR server/17487
12502 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12503 parameter.
12504 (arm_set_thread_context): Delete.
12505 (the_low_target): Adjust.
12506 * win32-i386-low.c (debug_registers_changed)
12507 (debug_registers_used): Delete.
12508 (update_debug_registers_callback): New function.
12509 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12510 needing to update their debug registers.
12511 (win32_get_current_dr): New function.
12512 (x86_dr_low_get_addr, x86_dr_low_get_control)
12513 (x86_dr_low_get_status): Fetch the debug register from the thread
12514 record's context.
12515 (i386_initial_stuff): Adjust.
12516 (i386_get_thread_context): Remove current_event parameter. Don't
12517 clear debug_registers_changed nor copy DR values to
12518 debug_reg_state.
12519 (i386_set_thread_context): Delete.
12520 (i386_prepare_to_resume): New function.
12521 (i386_thread_added): Mark the thread as needing to update irs
12522 debug registers.
12523 (the_low_target): Remove i386_set_thread_context and install
12524 i386_prepare_to_resume.
12525 * win32-low.c (win32_get_thread_context): Adjust.
12526 (win32_set_thread_context): Use SetThreadContext
12527 directly.
12528 (win32_prepare_to_resume): New function.
12529 (win32_require_context): New function, factored out from ...
12530 (thread_rec): ... this.
12531 (continue_one_thread): Call win32_prepare_to_resume on each thread
12532 we're about to continue.
12533 (win32_resume): Call win32_prepare_to_resume on the event thread.
12534 * win32-low.h (struct win32_thread_info)
12535 <debug_registers_changed>: New field.
12536 (struct win32_target_ops): Change prototype of set_thread_context,
12537 delete set_thread_context and add prepare_to_resume.
12538 (win32_require_context): New declaration.
12539
a442d071
GB
125402014-10-08 Gary Benson <gbenson@redhat.com>
12541
12542 * server.h: Do not include common-exceptions.h.
12543
6f1947e8
GB
125442014-10-08 Gary Benson <gbenson@redhat.com>
12545
12546 * server.h: Do not include cleanups.h.
12547
63b434a4
JH
125482014-09-30 James Hogan <james.hogan@imgtec.com>
12549
12550 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12551 mips64-dsp-linux.c.
12552
c4d9ceb6
YQ
125532014-09-23 Yao Qi <yao@codesourcery.com>
12554
12555 * linux-low.c (lp_status_maybe_breakpoint): New function.
12556 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12557 (count_events_callback): Likewise.
12558 (select_event_lwp_callback): Likewise.
12559 (cancel_breakpoints_callback): Likewise.
12560
89a5711c
DB
125612014-09-19 Don Breazeal <donb@codesourcery.com>
12562
12563 * linux-low.c (handle_extended_wait): Call
12564 linux_ptrace_get_extended_event.
12565 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12566 linux_is_extended_waitstatus.
12567
bffc0964
JB
125682014-09-16 Joel Brobecker <brobecker@adacore.com>
12569
12570 * Makefile.in (CPPFLAGS): Define.
12571 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12572 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12573
0bfdf32f
GB
125742014-09-16 Gary Benson <gbenson@redhat.com>
12575
12576 * inferiors.h (current_inferior): Renamed as...
12577 (current_thread): New variable. All uses updated.
12578 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12579 (maybe_move_out_of_jump_pad): Likewise.
12580 (cancel_breakpoint): Likewise.
12581 (linux_low_filter_event): Likewise.
12582 (wait_for_sigstop): Likewise.
12583 (linux_resume_one_lwp): Likewise.
12584 (need_step_over_p): Likewise.
12585 (start_step_over): Likewise.
12586 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12587 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12588 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12589 and save_inferior as saved_thread.
12590 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12591 saved_thread.
12592 (regcache_invalidate_thread): Likewise.
12593 * remote-utils.c (prepare_resume_reply): Likewise.
12594 * thread-db.c (thread_db_get_tls_address): Likewise.
12595 (disable_thread_event_reporting): Likewise.
12596 (remove_thread_event_breakpoints): Likewise.
12597 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12598 as saved_thread.
12599 * target.h (set_desired_inferior): Renamed as...
12600 (set_desired_thread): New declaration. All uses updated.
12601 * server.c (myresume): Updated comment to reference thread instead
12602 of inferior.
12603 (handle_serial_event): Likewise.
12604 (handle_target_event): Likewise.
12605
361c8ade
GB
126062014-09-12 Tom Tromey <tromey@redhat.com>
12607 Gary Benson <gbenson@redhat.com>
12608
12609 * regcache.h: Include common-regcache.h.
12610 (regcache_read_pc): Don't declare.
12611 * regcache.c (get_thread_regcache_for_ptid): New function.
12612
bd9269f7
GB
126132014-09-11 Tom Tromey <tromey@redhat.com>
12614 Gary Benson <gbenson@redhat.com>
12615
12616 * symbol.c: New file.
12617 * Makefile.in (SFILES): Add symbol.c.
12618 (OBS): Add symbol.o.
12619
f8c1d06b
GB
126202014-09-11 Gary Benson <gbenson@redhat.com>
12621
12622 * target.c (target_stop_ptid, target_continue_ptid): New
12623 functions.
12624
721ec300
GB
126252014-09-11 Tom Tromey <tromey@redhat.com>
12626 Gary Benson <gbenson@redhat.com>
12627
12628 * target.h: Include target/target.h.
12629 * target.c (target_read_memory, target_read_uint32)
12630 (target_write_memory): New functions.
12631
c5e92cca
GB
126322014-09-11 Gary Benson <gbenson@redhat.com>
12633
12634 * server.h (debug_hw_points): Don't declare.
12635 * server.c (debug_hw_points): Don't define. Replace all uses
12636 with show_debug_regs.
12637 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12638 all uses with show_debug_regs.
12639
2e4bb98a
EBM
126402014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12641
12642 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12643 endianness into account.
12644 (ppc_supply_ptrace_register): Likewise.
12645
ac740bc7
JH
126462014-09-03 James Hogan <james.hogan@imgtec.com>
12647
12648 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12649 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12650
97ea6506
GB
126512014-09-03 Gary Benson <gbenson@redhat.com>
12652
12653 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12654 ALL_DEBUG_ADDRESS_REGISTERS.
12655
df7e5265
GB
126562014-09-02 Gary Benson <gbenson@redhat.com>
12657
12658 * i386-low.h: Renamed as...
12659 * x86-low.h: New file. All type, function and variable name
12660 prefixes changed from "i386_" to "x86_". All references updated.
12661 * i386-low.c: Renamed as...
12662 * x86-low.c: New file. All type, function and variable name
12663 prefixes changed from "i386_" to "x86_". All references updated.
12664
ed859da7
GB
126652014-09-02 Gary Benson <gbenson@redhat.com>
12666
12667 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12668 (x86_linux_new_thread): Likewise.
12669
860789c7
GB
126702014-08-29 Gary Benson <gbenson@redhat.com>
12671
12672 * server.h (setjmp.h): Do not include.
12673 (toplevel): Do not declare.
12674 (common-exceptions.h): Include.
12675 (cleanups.h): Likewise.
12676 * server.c (toplevel): Do not define.
12677 (exit_code): New static global.
12678 (detach_or_kill_for_exit_cleanup): New function.
12679 (main): New function. Original main renamed to...
12680 (captured_main): New function.
12681 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12682
ff55e1b5
GB
126832014-08-29 Gary Benson <gbenson@redhat.com>
12684
12685 * Makefile.in (SFILES): Add common/common-exceptions.c.
12686 (OBS): Add common-exceptions.o.
12687 (common-exceptions.o): New rule.
12688 * utils.c (prepare_to_throw_exception): New function.
12689
e9bcb658
GB
126902014-08-29 Gary Benson <gbenson@redhat.com>
12691
12692 * config.in: Regenerate.
12693 * configure: Likewise.
12694
e3180625
GB
126952014-08-29 Gary Benson <gbenson@redhat.com>
12696
12697 * Makefile.in (SFILES): Add common/cleanups.c.
12698 (OBS): cleanups.o.
12699 (cleanups.o): New rule.
12700
e3d6ba5d
GB
127012014-08-29 Gary Benson <gbenson@redhat.com>
12702
12703 * utils.c (internal_vwarning): New function.
12704
7096e886
GB
127052014-08-28 Gary Benson <gbenson@redhat.com>
12706
12707 * utils.h (fatal): Remove declaration.
12708 * utils.c (fatal): Remove function.
12709
14ce3192
GB
127102014-08-28 Gary Benson <gbenson@redhat.com>
12711
12712 * tracepoint.c (gdb_agent_init): Replace fatal with
12713 perror_with_name.
12714 (initialize_tracepoint): Likewise.
12715
50278d59
GB
127162014-08-28 Gary Benson <gbenson@redhat.com>
12717
12718 * remote-utils.c (remote_prepare): Replace fatal with error.
12719
aa96c426
GB
127202014-08-28 Gary Benson <gbenson@redhat.com>
12721
12722 * linux-low.c (linux_async): Replace fatal with warning.
12723 Tidy up and return.
12724 (linux_start_non_stop): Return -1 if linux_async failed.
12725
f7160e97
GB
127262014-08-28 Gary Benson <gbenson@redhat.com>
12727
12728 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12729 gdb_assert.
12730 (i386_dr_low_get_addr): Remove vague comment.
12731 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12732 gdb_assert.
12733
38e08fca
GB
127342014-08-28 Gary Benson <gbenson@redhat.com>
12735
12736 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12737 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12738 internal_error.
12739 (linux_resume_one_lwp): Likewise.
12740 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12741 gdb_assert.
12742 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12743 with internal_error.
12744 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12745 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12746 (find_register_by_name): Replace fatal with internal_error.
12747 (find_regno): Likewise.
12748 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12749 * thread-db.c (thread_db_create_event): Likewise.
12750 (thread_db_load_search): Likewise.
12751 (try_thread_db_load_1): Likewise.
12752 * tracepoint.c (get_jump_space_head): Replace fatal with
12753 internal_error.
12754 (claim_trampoline_space): Likewise.
12755 (have_fast_tracepoint_trampoline_buffer): Likewise.
12756 (cmd_qtstart): Likewise.
12757 (stop_tracing): Likewise.
12758 (fast_tracepoint_collecting): Likewise.
12759 (target_malloc): Likewise.
12760 (download_tracepoint): Likewise.
12761 (download_trace_state_variables): Replace check with gdb_assert.
12762 (upload_fast_traceframes): Replace fatal with internal_error.
12763
34abf635
GB
127642014-08-19 Tom Tromey <tromey@redhat.com>
12765 Gary Benson <gbenson@redhat.com>
12766
12767 * Makefile.in (SFILES): Add common/common-debug.c.
12768 (OBS): Add common-debug.o.
12769 (common-debug.o): New rule.
12770 * debug.h (debug_printf): Don't declare.
12771 * debug.c (debug_printf): Renamed and rewritten as...
12772 (debug_vprintf): New function.
12773
f6e94d78
GB
127742014-08-19 Gary Benson <gbenson@redhat.com>
12775
12776 * utils.h: Do not include print-utils.h.
12777
9239eeab
GB
127782014-08-19 Tom Tromey <tromey@redhat.com>
12779 Gary Benson <gbenson@redhat.com>
12780
12781 * server.h: Add static assertion.
12782 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12783
ef87c8bb
GB
127842014-08-19 Tom Tromey <tromey@redhat.com>
12785 Gary Benson <gbenson@redhat.com>
12786
12787 * Makefile.in (SFILES): Add common/errors.c.
12788 (OBS): Add errors.o.
12789 (IPA_OBS): Add errors-ipa.o.
12790 (errors.o): New rule.
12791 (errors-ipa.o): Likewise.
12792 * utils.h (perror_with_name, error, warning): Don't declare.
12793 * utils.c (warning): Renamed and rewritten as...
12794 (vwarning): New function.
12795 (error): Renamed and rewritten as...
12796 (verror): New function.
12797 (internal_error): Renamed and rewritten as...
12798 (internal_verror): New function.
12799
bb974a24
GB
128002014-08-07 Gary Benson <gbenson@redhat.com>
12801
12802 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12803 * configure: Regenerate.
12804 * config.in: Likewise.
12805 * server.h: Do not include errno.h.
12806 * event-loop.c: Likewise.
12807 * hostio-errno.c: Likewise.
12808 * linux-low.c: Likewise.
12809 * remote-utils.c: Likewise.
12810 * spu-low.c: Likewise.
12811 * utils.c: Likewise.
12812 * gdbreplay.c: Unconditionally include errno.h.
12813
6d3d12eb
GB
128142014-08-07 Gary Benson <gbenson@redhat.com>
12815
12816 * server.h: Do not include string.h.
12817 * event-loop.c: Likewise.
12818 * linux-low.c: Likewise.
12819 * regcache.c: Likewise.
12820 * remote-utils.c: Likewise.
12821 * spu-low.c: Likewise.
12822 * utils.c: Likewise.
12823
dccbb609
GB
128242014-08-07 Gary Benson <gbenson@redhat.com>
12825
12826 * server.h: Do not include gdb_assert.h.
12827
e76df0d0
GB
128282014-08-07 Gary Benson <gbenson@redhat.com>
12829
12830 * server.h: Do not include common-utils.h.
12831
4cb9c816
GB
128322014-08-07 Gary Benson <gbenson@redhat.com>
12833
12834 * server.h: Do not include ptid.h.
12835 * notif.h: Likewise.
12836
3995eeee
GB
128372014-08-07 Gary Benson <gbenson@redhat.com>
12838
12839 * server.h: Do not include gdb_locale.h.
12840
cb9f1a9b
GB
128412014-08-07 Gary Benson <gbenson@redhat.com>
12842
12843 * server.h: Do not include gdb/signals.h.
12844 * win32-low.c: Likewise.
12845
a5fceff8
GB
128462014-08-07 Gary Benson <gbenson@redhat.com>
12847
12848 * server.h: Do not include pathmax.h.
12849
b9391142
GB
128502014-08-07 Gary Benson <gbenson@redhat.com>
12851
12852 * server.h: Do not include libiberty.h.
12853 * linux-bfin-low.c: Likewise.
12854
0e443c87
GB
128552014-08-07 Gary Benson <gbenson@redhat.com>
12856
12857 * server.h: Do not include ansidecl.h.
12858
8ebb3f56
GB
128592014-08-07 Gary Benson <gbenson@redhat.com>
12860
12861 * linux-x86-low.c: Do not include stddef.h.
12862 * lynx-ppc-low.c: Likewise.
12863 * tracepoint.c: Likewise.
12864
8980bdf6
GB
128652014-08-07 Gary Benson <gbenson@redhat.com>
12866
12867 * server.h: Do not include stdarg.h.
12868 * nto-low.c: Likewise.
12869
d7096f71
GB
128702014-08-07 Gary Benson <gbenson@redhat.com>
12871
12872 * server.h: Do not include stdlib.h.
12873 * inferiors.c: Likewise.
12874 * linux-low.c: Likewise.
12875 * regcache.c: Likewise.
12876 * spu-low.c: Likewise.
12877 * tracepoint.c: Likewise.
12878 * utils.c: Likewise.
12879
d02f550d
GB
128802014-08-07 Gary Benson <gbenson@redhat.com>
12881
12882 * server.h: Do not include stdio.h.
12883 * linux-low.c: Likewise.
12884 * remote-utils.c: Likewise.
12885 * spu-low.c: Likewise.
12886 * utils.c: Likewise.
12887 * wincecompat.c: Likewise.
12888
87f6c4e3
GB
128892014-08-06 Gary Benson <gbenson@redhat.com>
12890
12891 * regcache.c (init_register_cache): Move conditionals inside if.
12892
7089dca4
GB
128932014-08-06 Gary Benson <gbenson@redhat.com>
12894
12895 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12896
462f517e
GB
128972014-07-31 Gary Benson <gbenson@redhat.com>
12898
12899 * ax.h: Do not include server.h.
12900 * gdbthread.h: Likewise.
12901 * lynx-low.h: Likewise.
12902 * notif.h: Likewise.
12903
976411d6
GB
129042014-07-30 Gary Benson <gbenson@redhat.com>
12905
12906 * server.h: Include common-defs.h.
12907 Do not include config.h or build-gnulib-gdbserver/config.h.
12908
d41f6d8e
GB
129092014-07-30 Gary Benson <gbenson@redhat.com>
12910
12911 * hostio-errno.c: Move server.h to top of includes list.
12912 * inferiors.c: Likewise.
12913 * linux-x86-low.c: Likewise.
12914 * notif.c: Include server.h.
12915
314c6a35
TT
129162014-07-24 Tom Tromey <tromey@redhat.com>
12917 Gary Benson <gbenson@redhat.com>
12918
12919 * server.h (CORE_ADDR): Now unsigned.
12920
69ff6be5
PA
129212014-07-16 Pedro Alves <palves@redhat.com>
12922
12923 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12924
ce9e3fe7
PA
129252014-07-15 Pedro Alves <palves@redhat.com>
12926
12927 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12928 copy.
12929
e76126e8
PA
129302014-07-11 Pedro Alves <palves@redhat.com>
12931
12932 * linux-low.c (kill_wait_lwp): New function, based on
12933 kill_one_lwp_callback, but use my_waitpid directly.
12934 (kill_one_lwp_callback, linux_kill): Use it.
12935
8e9db26e
PA
129362014-06-23 Pedro Alves <palves@redhat.com>
12937
12938 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12939 before setting DR0..DR3.
12940
698b3e08
GB
129412014-06-20 Gary Benson <gbenson@redhat.com>
12942
12943 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12944 * configure: Regenerated.
12945 * config.in: Likewise.
12946
125f8a3d
GB
129472014-06-20 Gary Benson <gbenson@redhat.com>
12948
12949 * Makefile.in (SFILES): Update locations for files moved
12950 from common to nat.
12951 (object file files): Reordered.
12952
42995dbd
GB
129532014-06-20 Gary Benson <gbenson@redhat.com>
12954
12955 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12956 (i386_dr_low_set_addr): Likewise.
12957 (i386_dr_low_get_addr): Likewise.
12958 (i386_dr_low_can_set_control): Likewise.
12959 (i386_dr_low_set_control): Likewise.
12960 (i386_dr_low_get_control): Likewise.
12961 (i386_dr_low_get_status): Likewise.
12962 (i386_get_debug_register_length): Likewise.
12963 * linux-x86-low.c (i386_dr_low_set_addr):
12964 Changed signature. Made static.
12965 (i386_dr_low_get_addr): Likewise.
12966 (i386_dr_low_set_control): Likewise.
12967 (i386_dr_low_get_control): Likewise.
12968 (i386_dr_low_get_status): Likewise.
12969 (i386_dr_low): New global variable.
12970 * win32-i386-low.c (i386_dr_low_set_addr):
12971 Changed signature. Made static.
12972 (i386_dr_low_get_addr): Likewise.
12973 (i386_dr_low_set_control): Likewise.
12974 (i386_dr_low_get_control): Likewise.
12975 (i386_dr_low_get_status): Likewise.
12976 (i386_dr_low): New global variable.
12977
e1d2394b
MS
129782014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12979
12980 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12981 * Makefile.in (AR, AR_FLAGS): Define.
12982 * configure: Regenerate.
12983
3a8ee006
GB
129842014-06-19 Gary Benson <gbenson@redhat.com>
12985
12986 * Makefile.in (i386-dregs.o): New rule.
12987 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12988 * i386-low.c (target.h): Remove include.
12989 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12990 (DR_CONTROL_SHIFT): Likewise.
12991 (DR_CONTROL_SIZE): Likewise.
12992 (DR_RW_EXECUTE): Likewise.
12993 (DR_RW_WRITE): Likewise.
12994 (DR_RW_READ): Likewise.
12995 (DR_RW_IORW): Likewise.
12996 (DR_LEN_1): Likewise.
12997 (DR_LEN_2): Likewise.
12998 (DR_LEN_4): Likewise.
12999 (DR_LEN_8): Likewise.
13000 (DR_LOCAL_ENABLE_SHIFT): Likewise.
13001 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
13002 (DR_ENABLE_SIZE): Likewise.
13003 (DR_LOCAL_SLOWDOWN): Likewise.
13004 (DR_GLOBAL_SLOWDOWN): Likewise.
13005 (DR_CONTROL_RESERVED): Likewise.
13006 (I386_DR_CONTROL_MASK): Likewise.
13007 (I386_DR_VACANT): Likewise.
13008 (I386_DR_LOCAL_ENABLE): Likewise.
13009 (I386_DR_GLOBAL_ENABLE): Likewise.
13010 (I386_DR_DISABLE): Likewise.
13011 (I386_DR_SET_RW_LEN): Likewise.
13012 (I386_DR_GET_RW_LEN): Likewise.
13013 (I386_DR_WATCH_HIT): Likewise.
13014 (i386_wp_op_t): Likewise.
13015 (i386_show_dr): Likewise.
13016 (i386_length_and_rw_bits): Likewise.
13017 (i386_insert_aligned_watchpoint): Likewise.
13018 (i386_remove_aligned_watchpoint): Likewise.
13019 (i386_handle_nonaligned_watchpoint): Likewise.
13020 i386_update_inferior_debug_regs(): Likewise.
13021 (i386_dr_insert_watchpoint): Likewise.
13022 (i386_dr_remove_watchpoint): Likewise.
13023 (i386_dr_region_ok_for_watchpoint): Likewise.
13024 (i386_dr_stopped_data_address): Likewise.
13025 (i386_dr_stopped_by_watchpoint): Likewise.
13026
8f26655c
GB
130272014-06-19 Gary Benson <gbenson@redhat.com>
13028
13029 * i386-low.c (i386_dr_show): Renamed to
13030 i386_show_dr and made static. All uses updated.
13031 (i386_dr_length_and_rw_bits): Renamed to
13032 i386_length_and_rw_bits and made static.
13033 All uses updated.
13034 (i386_dr_insert_aligned_watchpoint): Renamed to
13035 i386_insert_aligned_watchpoint and made static.
13036 All uses updated.
13037 (i386_dr_remove_aligned_watchpoint): Renamed to
13038 i386_remove_aligned_watchpoint and made static.
13039 All uses updated.
13040 (i386_dr_update_inferior_debug_regs): Renamed to
13041 i386_update_inferior_debug_regs and made static.
13042 All uses updated.
13043
b9228891
GB
130442014-06-18 Gary Benson <gbenson@redhat.com>
13045
5171def3
GB
13046 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13047 (i386_dr_low_can_set_control): Likewise.
13048 (i386_get_debug_register_length): Likewise.
13049 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13050 (i386_dr_low_can_set_control): Likewise.
13051 (i386_get_debug_register_length): Likewise.
13052
130532014-06-17 Gary Benson <gbenson@redhat.com>
13054
b9228891
GB
13055 * i386-low.h (i386-dregs.h): New include.
13056 (DR_FIRSTADDR): Now in i386-dregs.h.
13057 (DR_LASTADDR): Likewise.
13058 (DR_NADDR): Likewise.
13059 (DR_STATUS): Likewise.
13060 (DR_CONTROL): Likewise.
13061 (i386_debug_reg_state): Likewise.
13062 (i386_dr_insert_watchpoint): Likewise.
13063 (i386_dr_remove_watchpoint): Likewise.
13064 (i386_dr_region_ok_for_watchpoint): Likewise.
13065 (i386_dr_stopped_data_address): Likewise.
13066 (i386_dr_stopped_by_watchpoint): Likewise.
13067 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13068
4be83cc2
GB
130692014-06-18 Gary Benson <gbenson@redhat.com>
13070
13071 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13072 i386_dr_insert_watchpoint.
13073 (i386_low_remove_watchpoint): Renamed to
13074 i386_dr_remove_watchpoint.
13075 (i386_low_region_ok_for_watchpoint): Renamed to
13076 i386_dr_region_ok_for_watchpoint.
13077 (i386_low_stopped_data_address): Renamed to
13078 i386_dr_stopped_data_address.
13079 (i386_low_stopped_by_watchpoint): Renamed to
13080 i386_dr_stopped_by_watchpoint.
13081 * i386-low.c (i386_show_dr): Renamed to
13082 i386_dr_show and made nonstatic. All uses updated.
13083 (i386_length_and_rw_bits): Renamed to
13084 i386_dr_length_and_rw_bits and made nonstatic.
13085 All uses updated.
13086 (i386_insert_aligned_watchpoint): Renamed to
13087 i386_dr_insert_aligned_watchpoint and made nonstatic.
13088 All uses updated.
13089 (i386_remove_aligned_watchpoint): Renamed to
13090 i386_dr_remove_aligned_watchpoint and made nonstatic.
13091 All uses updated.
13092 (i386_update_inferior_debug_regs): Renamed to
13093 i386_dr_update_inferior_debug_regs and made nonstatic.
13094 All uses updated.
13095 (i386_low_insert_watchpoint): Renamed to
13096 i386_dr_insert_watchpoint. All uses updated.
13097 (i386_low_remove_watchpoint): Renamed to
13098 i386_dr_remove_watchpoint. All uses updated.
13099 (i386_low_region_ok_for_watchpoint): Renamed to
13100 i386_dr_region_ok_for_watchpoint. All uses updated.
13101 (i386_low_stopped_data_address): Renamed to
13102 i386_dr_stopped_data_address. All uses updated.
13103 (i386_low_stopped_by_watchpoint): Renamed to
13104 i386_dr_stopped_by_watchpoint. All uses updated.
13105
131aa0d4
GB
131062014-06-18 Gary Benson <gbenson@redhat.com>
13107
13108 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13109 (i386_dr_low_can_set_control): Likewise.
13110 (i386_insert_aligned_watchpoint): New check.
13111
d9305f7f
GB
131122014-06-18 Gary Benson <gbenson@redhat.com>
13113
13114 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13115 Renamed to state.
13116
e927c9fc
GB
131172014-06-18 Gary Benson <gbenson@redhat.com>
13118
13119 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13120 instead of fatal and error.
13121 (i386_handle_nonaligned_watchpoint): Likewise.
13122
1b6d4134
GB
131232014-06-18 Gary Benson <gbenson@redhat.com>
13124
13125 * i386-low.c (i386_get_debug_register_length): New macro.
13126 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13127 (i386_show_dr): Use debug_printf instead of fprintf. Use
13128 phex to format values.
13129
6e62758f
GB
131302014-06-18 Gary Benson <gbenson@redhat.com>
13131
13132 * i386-low.h: Comment changes.
13133 * i386-low.c: Likewise.
13134
fc6e2f03
GB
131352014-06-18 Gary Benson <gbenson@redhat.com>
13136
13137 * i386-low.c: Whitespace changes.
13138
f9d1eeed
TT
131392014-06-12 Tom Tromey <tromey@redhat.com>
13140
13141 * utils.c (freeargv): Remove.
13142
0b04e523
TT
131432014-06-12 Tom Tromey <tromey@redhat.com>
13144
13145 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13146 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13147 (parse_debug_format_options): Likewise.
13148 (gdbserver_usage): Likewise.
13149 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13150 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13151 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13152 against libiberty.
13153 ($(LIBGNU)): Depend on libiberty.
13154 (all-lib): Recurse into all subdirs.
13155 (install-only): Invoke "install" target in subdirs.
13156 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13157 targets.
13158 * configure: Rebuild.
13159 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13160 for vasprintf, vsnprintf, or gettimeofday.
13161 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13162 srv_tgtobj.
13163
270c9937
JB
131642014-06-05 Joel Brobecker <brobecker@adacore.com>
13165
13166 * development.sh: Delete.
13167 * Makefile.in (config.status): Adjust dependency on development.sh.
13168 * configure.ac: Adjust development.sh source call.
13169 * configure: Regenerate.
13170
0a261ed8
PA
131712014-06-02 Pedro Alves <palves@redhat.com>
13172
13173 * ax.c (gdb_free_agent_expr): New function.
13174 * ax.h (gdb_free_agent_expr): New declaration.
13175 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13176 list.
13177 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13178 static.
13179 (clear_breakpoint_conditions_and_commands): New function.
13180 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13181 (clear_breakpoint_conditions_and_commands): New declaration.
13182
e9dae05e
RR
131832014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13184
13185 * linux-aarch64-low.c (asm/ptrace.h): Include.
13186
5876f503
JK
131872014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13188
13189 Fix TLS access for -static -pthread.
13190 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13191 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13192 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13193
802e8e6d
PA
131942014-05-20 Pedro Alves <palves@redhat.com>
13195
13196 * linux-aarch64-low.c (aarch64_insert_point)
13197 (aarch64_remove_point): No longer check whether the type is
13198 supported here. Adjust to new interface.
13199 (the_low_target): Install aarch64_supports_z_point_type as
13200 supports_z_point_type method.
13201 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13202 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13203 instead of a Z packet char. Adjust.
13204 (arm_supports_z_point_type): New function.
13205 (arm_insert_point, arm_remove_point): Adjust to new interface.
13206 (the_low_target): Install arm_supports_z_point_type.
13207 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13208 (cris_insert_point, cris_remove_point): Adjust to new interface.
13209 Don't check whether the type is supported here.
13210 (the_low_target): Install cris_supports_z_point_type.
13211 * linux-low.c (linux_supports_z_point_type): New function.
13212 (linux_insert_point, linux_remove_point): Adjust to new interface.
13213 * linux-low.h (struct linux_target_ops) <insert_point,
13214 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13215 raw_breakpoint pointer parameter.
13216 <supports_z_point_type>: New method.
13217 * linux-mips-low.c (mips_supports_z_point_type): New function.
13218 (mips_insert_point, mips_remove_point): Adjust to new interface.
13219 Use mips_supports_z_point_type.
13220 (the_low_target): Install mips_supports_z_point_type.
13221 * linux-ppc-low.c (the_low_target): Install NULL as
13222 supports_z_point_type method.
13223 * linux-s390-low.c (the_low_target): Install NULL as
13224 supports_z_point_type method.
13225 * linux-sparc-low.c (the_low_target): Install NULL as
13226 supports_z_point_type method.
13227 * linux-x86-low.c (x86_supports_z_point_type): New function.
13228 (x86_insert_point): Adjust to new insert_point interface. Use
13229 insert_memory_breakpoint. Adjust to new
13230 i386_low_insert_watchpoint interface.
13231 (x86_remove_point): Adjust to remove_point interface. Use
13232 remove_memory_breakpoint. Adjust to new
13233 i386_low_remove_watchpoint interface.
13234 (the_low_target): Install x86_supports_z_point_type.
13235 * lynx-low.c (lynx_target_ops): Install NULL as
13236 supports_z_point_type callback.
13237 * nto-low.c (nto_supports_z_point_type): New.
13238 (nto_insert_point, nto_remove_point): Adjust to new interface.
13239 (nto_target_ops): Install nto_supports_z_point_type.
13240 * mem-break.c: Adjust intro comment.
13241 (struct raw_breakpoint) <raw_type, size>: New fields.
13242 <inserted>: Update comment.
13243 <shlib_disabled>: Delete field.
13244 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13245 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13246 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13247 (raw_bkpt_type_to_target_hw_bp_type): New function.
13248 (find_enabled_raw_code_breakpoint_at): New function.
13249 (find_raw_breakpoint_at): New type and size parameters. Use them.
13250 (insert_memory_breakpoint): New function, based off
13251 set_raw_breakpoint_at.
13252 (remove_memory_breakpoint): New function.
13253 (set_raw_breakpoint_at): Reimplement.
13254 (set_breakpoint): New, based on set_breakpoint_at.
13255 (set_breakpoint_at): Reimplement.
13256 (delete_raw_breakpoint): Go through the_target->remove_point
13257 instead of assuming memory breakpoints.
13258 (find_gdb_breakpoint_at): Delete.
13259 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13260 (find_gdb_breakpoint): New function.
13261 (set_gdb_breakpoint_at): Delete.
13262 (z_type_supported): New function.
13263 (set_gdb_breakpoint_1): New function, loosely based off
13264 set_gdb_breakpoint_at.
13265 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13266 (delete_gdb_breakpoint_at): Delete.
13267 (delete_gdb_breakpoint_1): New function, loosely based off
13268 delete_gdb_breakpoint_at.
13269 (delete_gdb_breakpoint): New function.
13270 (clear_gdb_breakpoint_conditions): Rename to ...
13271 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13272 breakpoint.
13273 (add_condition_to_breakpoint): Make static.
13274 (add_breakpoint_condition): Take a struct breakpoint pointer
13275 instead of an address. Adjust.
13276 (gdb_condition_true_at_breakpoint): Rename to ...
13277 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13278 z_type parameter.
13279 (gdb_condition_true_at_breakpoint): Reimplement.
13280 (add_breakpoint_commands): Take a struct breakpoint pointer
13281 instead of an address. Adjust.
13282 (gdb_no_commands_at_breakpoint): Rename to ...
13283 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13284 parameter. Return true if no breakpoint was found. Change debug
13285 output.
13286 (gdb_no_commands_at_breakpoint): Reimplement.
13287 (run_breakpoint_commands): Rename to ...
13288 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13289 and change return type to boolean.
13290 (run_breakpoint_commands): New function.
13291 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13292 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13293 breakpoint. Go through the_target->remove_point instead of
13294 assuming memory breakpoint.
13295 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13296 software and hardware breakpoints.
13297 (reinsert_raw_breakpoint): Go through the_target->insert_point
13298 instead of assuming memory breakpoint.
13299 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13300 software and hardware breakpoints.
13301 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13302 Check both software and hardware breakpoints.
13303 (validate_inserted_breakpoint): Assert the breakpoint is a
13304 software breakpoint. Set the inserted flag to -1 instead of
13305 setting shlib_disabled.
13306 (delete_disabled_breakpoints): Adjust.
13307 (validate_breakpoints): Only validate software breakpoints.
13308 Adjust to inserted flag change.
13309 (check_mem_read, check_mem_write): Skip breakpoint types other
13310 than software breakpoints. Adjust to inserted flag change.
13311 * mem-break.h (enum raw_bkpt_type): New enum.
13312 (raw_breakpoint, struct process_info): Forward declare.
13313 (Z_packet_to_target_hw_bp_type): Delete declaration.
13314 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13315 (set_gdb_breakpoint, delete_gdb_breakpoint)
13316 (clear_breakpoint_conditions): New declarations.
13317 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13318 (breakpoint_inserted_here): Update comment.
13319 (add_breakpoint_condition, add_breakpoint_commands): Replace
13320 address parameter with a breakpoint pointer parameter.
13321 (gdb_breakpoint_here): Update comment.
13322 (delete_gdb_breakpoint_at): Delete.
13323 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13324 * server.c (process_point_options): Take a struct breakpoint
13325 pointer instead of an address. Adjust.
13326 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13327 delete_gdb_breakpoint.
13328 * spu-low.c (spu_target_ops): Install NULL as
13329 supports_z_point_type method.
13330 * target.h: Include mem-break.h.
13331 (struct target_ops) <prepare_to_access_memory>: Update comment.
13332 <supports_z_point_type>: New field.
13333 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13334 instead of a char. Also take a raw breakpoint pointer.
13335 * win32-arm-low.c (the_low_target): Install NULL as
13336 supports_z_point_type.
13337 * win32-i386-low.c (i386_supports_z_point_type): New function.
13338 (i386_insert_point, i386_remove_point): Adjust to new interface.
13339 (the_low_target): Install i386_supports_z_point_type.
13340 * win32-low.c (win32_supports_z_point_type): New function.
13341 (win32_insert_point, win32_remove_point): Adjust to new interface.
13342 (win32_target_ops): Install win32_supports_z_point_type.
13343 * win32-low.h (struct win32_target_ops):
13344 <supports_z_point_type>: New method.
13345 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13346 instead of a char. Also take a raw breakpoint pointer.
13347
932539e3
PA
133482014-05-20 Pedro Alves <palves@redhat.com>
13349
13350 * mem-break.h: Include break-common.h.
13351 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13352 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13353 (Z_packet_to_target_hw_bp_type): New declaration.
13354 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13355 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13356 (Z_PACKET_ACCESS_WP): Delete macros.
13357 (Z_packet_to_hw_type): Delete function.
13358 * i386-low.h: Don't include break-common.h here.
13359 (Z_packet_to_hw_type): Delete declaration.
13360 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13361 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13362 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13363 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13364 * linux-aarch64-low.c: Don't include break-common.h here.
13365 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13366 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13367 (Z_packet_to_target_hw_bp_type): Delete function.
13368 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13369 function.
13370 (mips_insert_point, mips_remove_point): Use
13371 Z_packet_to_target_hw_bp_type.
13372
4ff0d3d8
PA
133732014-05-20 Pedro Alves <palves@redhat.com>
13374
13375 * linux-aarch64-low.c: Include break-common.h.
13376 (enum target_point_type): Delete.
13377 (Z_packet_to_point_type): Rename to ...
13378 (Z_packet_to_target_hw_bp_type): ... this, and return a
13379 target_hw_bp_type instead.
13380 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13381 instead of an enum target_point_type.
13382 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13383 breakpoint type.
13384 (aarch64_dr_state_insert_one_point)
13385 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13386 (aarch64_handle_aligned_watchpoint)
13387 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13388 Take an enum target_hw_bp_type instead of an enum
13389 target_point_type.
13390 (aarch64_supports_z_point_type): New function.
13391 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13392 use Z_packet_to_target_hw_bp_type.
13393
786dc519
JB
133942014-05-20 Joel Brobecker <brobecker@adacore.com>
13395
13396 * configure.ac: Only use -Werror by default when DEVELOPMENT
13397 is true.
13398 * configure: Regenerate.
13399
9e0aa64f
JK
134002014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13401
13402 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13403 * linux-x86-low.c (X86_64_USER_REGS): New.
13404 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13405
2b577b92
YQ
134062014-04-28 Yao Qi <yao@codesourcery.com>
13407
13408 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13409 name.
13410
94611da2
PA
134112014-04-25 Pedro Alves <palves@redhat.com>
13412
13413 PR server/16255
13414 * linux-low.c (linux_attach_fail_reason_string): New function.
13415 (linux_attach_lwp): Delete.
13416 (linux_attach_lwp_1): Rename to ...
13417 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13418 argument. Remove "initial" parameter. Return int instead of
13419 void. Don't error or warn here.
13420 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13421 failure to attach to the tgid. Call warning when failing to
13422 attach to an lwp.
13423 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13424 argument. Remove "initial" parameter. Return int instead of
13425 void. Don't error or warn here.
13426 (linux_attach_fail_reason_string): New declaration.
13427 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13428 interface change. Use linux_attach_fail_reason_string.
13429
01f9f808
MS
134302014-04-24 Michael Sturm <michael.sturm@mintel.com>
13431 Walfred Tedeschi <walfred.tedeschi@intel.com>
13432
13433 * Makefile.in: Added rules to handle new files
13434 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13435 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13436 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13437 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13438 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13439 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13440 x32-avx512-linux.o.
13441 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13442 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13443 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13444 i386/x32-avx512.xml.
13445 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13446 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13447 i386/x32-avx512-linux.xml.
13448 * i387-fp.c (num_avx512_k_registers): New constant for number
13449 of K registers.
13450 (num_avx512_zmmh_low_registers): New constant for number of
13451 lower ZMM registers (0-15).
13452 (num_avx512_zmmh_high_registers): New constant for number of
13453 higher ZMM registers (16-31).
13454 (num_avx512_ymmh_registers): New contant for number of higher
13455 YMM registers (ymm16-31 added by avx521 on x86_64).
13456 (num_avx512_xmm_registers): New constant for number of higher
13457 XMM registers (xmm16-31 added by AVX512 on x86_64).
13458 (struct i387_xsave): Add space for AVX512 registers.
13459 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13460 Add code to handle AVX512 registers.
13461 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13462 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13463 prototypei from generated file.
13464 (tdesc_amd64_avx512_linux): Likewise.
13465 (init_registers_x32_avx512_linux): Likewise.
13466 (tdesc_x32_avx512_linux): Likewise.
13467 (init_registers_i386_avx512_linux): Likewise.
13468 (tdesc_i386_avx512_linux): Likewise.
13469 (x86_64_regmap): Add AVX512 registers.
13470 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13471 mask.
13472 (initialize_low_arch): Add code to initialize AVX512 registers.
13473
51aa91f9
PA
134742014-04-23 Pedro Alves <palves@redhat.com>
13475
13476 * mem-break.c (find_gdb_breakpoint_at): Make static.
13477 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13478
a4165e94
PA
134792014-04-23 Pedro Alves <palves@redhat.com>
13480
13481 * i386-low.c: Don't include break-common.h here.
13482 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13483 prototype to take target_hw_bp_type as argument instead of a Z
13484 packet char.
13485 * i386-low.h: Include break-common.h here.
13486 (Z_packet_to_hw_type): Declare.
13487 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13488 prototypes.
13489 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13490 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13491 (x86_remove_point): Convert the packet number to a
13492 target_hw_bp_type before calling i386_low_remove_watchpoint.
13493 * win32-i386-low.c (i386_insert_point): Convert the packet number
13494 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13495 (i386_remove_point): Convert the packet number to a
13496 target_hw_bp_type before calling i386_low_remove_watchpoint.
13497
b8acf843
PA
134982014-04-23 Pedro Alves <palves@redhat.com>
13499
13500 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13501
d708bcd1
PA
135022014-04-10 Pedro Alves <palves@redhat.com>
13503
13504 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13505 Check if the condition or command is NULL before checking if the
13506 breakpoint is known. On success, return true.
13507 * mem-break.h (add_breakpoint_condition): Document return.
13508 (add_breakpoint_commands): Add describing comment.
13509 * server.c (skip_to_semicolon): New function.
13510 (process_point_options): Use it.
13511
2eec7d5b
PA
135122014-04-09 Pedro Alves <palves@redhat.com>
13513
13514 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13515 to lwpid_of.
13516
fa96cb38
PA
135172014-02-27 Pedro Alves <palves@redhat.com>
13518
13519 PR 12702
13520 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13521 macros.
13522 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13523 output.
13524 (last_thread_of_process_p): Take a PID argument instead of a
13525 thread pointer.
13526 (linux_wait_for_lwp): Delete.
13527 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13528 functions.
13529 (linux_low_filter_event): New function, party factored out from
13530 linux_wait_for_event.
13531 (linux_wait_for_event): Rename to ...
13532 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13533 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13534 sigsuspend. Check for zombie leaders.
13535 (linux_wait_for_event): Reimplement as wrapper around
13536 linux_wait_for_event_filtered.
13537 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13538 a normal or signal exit is seen, it's the whole process exiting.
13539 (wait_for_sigstop): No longer a for_each_inferior callback.
13540 Rewrite on top of linux_wait_for_event_filtered.
13541 (stop_all_lwps): Call wait_for_sigstop directly.
13542 * server.c (resume, handle_target_event): Handle
13543 TARGET_WAITKIND_NO_RESUMED.
13544
d763de10
JB
135452014-02-26 Joel Brobecker <brobecker@adacore.com>
13546
13547 * win32-low.c (psapi_get_dll_name,
13548 * win32_CreateToolhelp32Snapshot): Delete.
13549 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13550 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13551 Delete.
13552 (handle_load_dll): Add function description.
13553 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13554
850a0f76
JB
135552014-02-26 Joel Brobecker <brobecker@adacore.com>
13556
13557 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13558 Add comment.
13559 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13560 base address when calling win32_add_one_solib.
13561 (handle_load_dll): Delete local variable load_addr.
13562 Remove 0x1000 offset applied to DLL base address when calling
13563 win32_add_one_solib.
13564 (handle_unload_dll): Add comment.
13565
f25b3fc3
JB
135662014-02-26 Joel Brobecker <brobecker@adacore.com>
13567
13568 * win32-low.c (win32_add_all_dlls): Renames
13569 win32_ensure_ntdll_loaded. Rewrite function documentation.
13570 Adjust implementation to always load all DLLs.
13571 Add 0x1000 offset to DLL base address when calling
13572 win32_add_one_solib.
13573 (child_initialization_done): New static global.
13574 (do_initial_child_stuff): Set child_initialization_done to
13575 zero during child initialization, and 1 after. Replace call
13576 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13577 Add comment.
13578 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13579 (handle_unload_dll): Add function documentation.
13580 (get_child_debug_event): Ignore load and unload DLL events
13581 during child initialization.
13582
d86d4aaf
DE
135832014-02-20 Doug Evans <dje@google.com>
13584
3bc32da3 13585 Remove global all_lwps.
d86d4aaf
DE
13586 * inferiors.h (ptid_of): Move here from linux-low.h.
13587 (pid_of, lwpid_of): Ditto.
13588 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13589 parameter is a struct thread_info * now.
13590 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13591 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13592 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13593 directly.
13594 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13595 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13596 * linux-arm-low.c (update_registers_callback): Update, "entry"
13597 parameter is a struct thread_info * now.
13598 Fetch lwpid from current_inferior directly.
13599 (arm_insert_point): Pass &all_threads to find_inferior instead of
13600 &all_lwps.
13601 (arm_remove_point): Ditto.
13602 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13603 (arm_prepare_to_resume): Fetch pid from thread.
13604 (arm_read_description): Fetch lwpid from current_inferior directly.
13605 * linux-low.c (all_lwps): Delete.
13606 (delete_lwp): Delete call to remove_inferior.
13607 (handle_extended_wait): Fetch lwpid from thread.
13608 (add_lwp): Don't set lwp->entry.id. Remove call to
13609 add_inferior_to_list.
13610 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13611 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13612 (kill_one_lwp_callback): Ditto.
13613 (linux_kill): Don't dereference NULL pointer.
13614 Fetch ptid,lwpid from thread.
13615 (get_detach_signal): Fetch ptid from thread.
13616 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13617 Simplify call to regcache_invalidate_thread.
13618 (delete_lwp_callback): Update, "entry" parameter is a
13619 struct thread_info * now. Fetch pid from thread.
13620 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13621 (status_pending_p_callback): Update, "entry" parameter is a
13622 struct thread_info * now. Fetch ptid from thread.
13623 (find_lwp_pid): Update, "entry" parameter is a
13624 struct thread_info * now.
13625 (linux_wait_for_lwp): Fetch pid from thread.
13626 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13627 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13628 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13629 (dequeue_one_deferred_signal): Ditto.
13630 (cancel_breakpoint): Fetch ptid from current_inferior.
13631 (linux_wait_for_event): Pass &all_threads to find_inferior,
13632 not &all_lwps. Fetch ptid, lwpid from thread.
13633 (count_events_callback): Update, "entry" parameter is a
13634 struct thread_info * now.
13635 (select_singlestep_lwp_callback): Ditto.
13636 (select_event_lwp_callback): Ditto.
13637 (cancel_breakpoints_callback): Ditto.
13638 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13639 not &all_lwps.
13640 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13641 (unsuspend_one_lwp): Update, "entry" parameter is a
13642 struct thread_info * now.
13643 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13644 not &all_lwps.
13645 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13646 Fetch lwpid from thread, not lwp.
13647 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13648 Pass &all_threads to find_inferior, not &all_lwps.
13649 (send_sigstop): Fetch lwpid from thread, not lwp.
13650 (send_sigstop_callback): Update, "entry" parameter is a
13651 struct thread_info * now.
13652 (suspend_and_send_sigstop_callback): Ditto.
13653 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13654 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13655 struct thread_info * now.
13656 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13657 from thread, lwp.
13658 (lwp_running): Update, "entry" parameter is a
13659 struct thread_info * now.
13660 (stop_all_lwps): Fetch ptid from thread.
13661 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13662 (linux_resume_one_lwp): Fetch lwpid from thread.
13663 (linux_set_resume_request): Update, "entry" parameter is a
13664 struct thread_info * now. Fetch pid, lwpid from thread.
13665 (resume_status_pending_p): Update, "entry" parameter is a
13666 struct thread_info * now.
13667 (need_step_over_p): Ditto. Fetch lwpid from thread.
13668 (start_step_over): Fetch lwpid from thread.
13669 (linux_resume_one_thread): Update, "entry" parameter is a
13670 struct thread_info * now. Fetch lwpid from thread.
13671 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13672 (proceed_one_lwp): Update, "entry" parameter is a
13673 struct thread_info * now. Fetch lwpid from thread.
13674 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13675 struct thread_info * now.
13676 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13677 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13678 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13679 directly.
13680 (regsets_store_inferior_registers): Ditto.
13681 (fetch_register, store_register): Ditto.
13682 (linux_read_memory, linux_write_memory): Ditto.
13683 (linux_request_interrupt): Ditto.
13684 (linux_read_auxv): Ditto.
13685 (linux_xfer_siginfo): Ditto.
13686 (linux_qxfer_spu): Ditto.
13687 (linux_qxfer_libraries_svr4): Ditto.
13688 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13689 moved to inferiors.h.
13690 (get_lwp): Delete.
13691 (get_thread_lwp): Update.
13692 (struct lwp_info): Delete member "entry". Simplify comment for
13693 member "thread".
13694 (all_lwps): Delete.
13695 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13696 current_inferior directly.
13697 (update_watch_registers_callback): Update, "entry" parameter is a
13698 struct thread_info * now. Fetch pid from thread.
13699 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13700 (mips_insert_point): Fetch lwpid from current_inferior.
13701 Pass &all_threads to find_inferior, not &all_lwps.
13702 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13703 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13704 directly.
13705 (mips_stopped_data_address): Ditto.
13706 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13707 directly.
13708 * linux-tile-low.c (tile_arch_setup): Ditto.
13709 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13710 (update_debug_registers_callback): Update, "entry" parameter is a
13711 struct thread_info * now. Fetch pid from thread.
13712 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13713 Pass &all_threads to find_inferior, not &all_lwps.
13714 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13715 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13716 Pass &all_threads to find_inferior, not &all_lwps.
13717 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13718 (i386_dr_low_get_status): Ditto.
13719 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13720 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13721 (x86_linux_read_description): Ditto.
13722 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13723
3b8361aa
DE
137242014-02-20 Doug Evans <dje@google.com>
13725
13726 * inferiors.c (get_first_inferior): Fix buglet.
13727
f7667f0d
DE
137282014-02-19 Doug Evans <dje@google.com>
13729
13730 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13731 * inferiors.c (add_thread): Change result type to struct thread_info *.
13732 All callers updated.
13733 (add_lwp): Call add_thread here instead of in callers.
13734 All callers updated.
13735 * linux-low.h (get_lwp_thread): Rewrite.
13736 (struct lwp_info): New member "thread".
13737
b3312d80
DE
137382014-02-19 Doug Evans <dje@google.com>
13739
13740 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13741 All callers updated.
13742
ecc6f45c
DE
137432014-02-19 Doug Evans <dje@google.com>
13744
13745 * inferiors.c (add_thread): Fix whitespace.
13746
649ebbca
DE
137472014-02-19 Doug Evans <dje@google.com>
13748
13749 * dll.c (clear_dlls): Replace accessing list implemention details
13750 with API function.
13751 * gdbthread.h (get_first_thread): Declare.
13752 * inferiors.c (for_each_inferior_with_data): New function.
13753 (get_first_thread): New function.
13754 (find_thread_ptid): Simplify.
13755 (get_first_inferior): New function.
13756 (clear_list): Delete.
13757 (one_inferior_p): New function.
13758 (clear_inferior_list): New function.
13759 (clear_inferiors): Update.
13760 * inferiors.h (for_each_inferior_with_data): Declare.
13761 (clear_inferior_list): Declare.
13762 (one_inferior_p): Declare.
13763 (get_first_inferior): Declare.
13764 * linux-low.c (linux_wait_for_event): Replace accessing list
13765 implemention details with API function.
13766 * server.c (target_running): Ditto.
13767 (accumulate_file_name_length): New function.
13768 (emit_dll_description): New function.
13769 (handle_qxfer_libraries): Replace accessing list implemention
13770 details with API function.
13771 (handle_qxfer_threads_worker): New function.
13772 (handle_qxfer_threads_proper): Replace accessing list implemention
13773 details with API function.
13774 (handle_query): Ditto.
13775 (visit_actioned_threads_callback_ftype): New typedef.
13776 (visit_actioned_threads_data): New struct.
13777 (visit_actioned_threads): Rewrite to be find_inferior callback.
13778 (resume): Call find_inferior.
13779 (handle_status): Replace accessing list implemention
13780 details with API function.
13781 (process_serial_event): Replace accessing list implemention details
13782 with API function.
13783 * target.c (set_desired_inferior): Replace accessing list implemention
13784 details with API function.
13785 * tracepoint.c (same_process_p): New function.
13786 (gdb_agent_about_to_close): Replace accessing list implemention
13787 details with API function.
13788 * win32-low.c (child_delete_thread): Replace accessing list
13789 implemention details with API function.
13790 (match_dll_by_basename): New function.
13791 (dll_is_loaded_by_basename): New function.
13792 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13793 details call to dll_is_loaded_by_basename.
13794
80894984
DE
137952014-02-19 Doug Evans <dje@google.com>
13796
13797 * dll.h (struct dll_info): Add comment.
13798 * gdbthread.h (struct thread_info): Add comment.
13799 (current_ptid): Simplify.
13800 * inferiors.c (add_process): Update.
13801 (remove_process): Update.
13802 * inferiors.h (struct process_info): Rename member "head" to "entry".
13803 * linux-low.c (delete_lwp): Update.
13804 (add_lwp): Update.
13805 (last_thread_of_process_p): Update.
13806 (kill_one_lwp_callback, linux_kill): Update.
13807 (status_pending_p_callback): Update.
13808 (wait_for_sigstop): Update. Simplify read of ptid.
13809 (start_step_over): Update.
13810 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13811 (get_lwp_thread): Update.
13812 (struct lwp_info): Rename member "head" to "entry".
13813 * regcache.h (inferior_list_entry): Delete.
13814 * server.c (kill_inferior_callback): Update.
13815 (detach_or_kill_inferior_callback): Update.
13816 (print_started_pid): Update.
13817 (print_attached_pid): Update.
13818 (process_serial_event): Simplify read of ptid.
13819 * thread-db.c (thread_db_create_event): Update.
13820 (thread_db_get_tls_address): Update.
13821 * win32-low.c (current_inferior_ptid): Simplify.
13822
46917d26
TT
138232014-02-19 Tom Tromey <tromey@redhat.com>
13824
13825 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13826 argument.
13827 (target_supports_btrace): Update.
13828
0759a81e
YQ
138292014-02-14 Yao Qi <yao@codesourcery.com>
13830
13831 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13832 (rsp-low-ipa.o): New target.
13833
a7191e8b
TT
138342014-02-12 Tom Tromey <tromey@redhat.com>
13835
13836 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13837 convert_ascii_to_int.
13838 * regcache.c (registers_to_string): Likewise.
13839 * remote-utils.c (decode_M_packet): Likewise.
13840 * server.c (process_serial_event): Likewise.
13841
ff0e980e
TT
138422014-02-12 Tom Tromey <tromey@redhat.com>
13843
13844 * server.c (handle_query, handle_v_run): Use hex2bin, not
13845 unhexify.
13846 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13847
e9371aff
TT
138482014-02-12 Tom Tromey <tromey@redhat.com>
13849
13850 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13851 convert_int_to_ascii.
13852 * regcache.c (registers_to_string, collect_register_as_string):
13853 Likewise.
13854 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13855 Likewise.
13856 * server.c (process_serial_event): Likewise.
13857 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13858 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13859
971dc0b8
TT
138602014-02-12 Tom Tromey <tromey@redhat.com>
13861
13862 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13863 bin2hex, not hexify.
13864 * tracepoint.c (cmd_qtstatus): Likewise.
13865
0a822afb
TT
138662014-02-12 Tom Tromey <tromey@redhat.com>
13867
13868 * remote-utils.c (monitor_output): Pass explicit length to
13869 hexify.
13870
9c3d6531
TT
138712014-02-12 Tom Tromey <tromey@redhat.com>
13872
13873 * tracepoint.c: Include rsp-low.h.
13874 * server.c: Include rsp-low.h.
13875 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13876 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13877 declare.
13878 * remote-utils.c: Include rsp-low.h.
13879 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13880 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13881 (convert_int_to_ascii, convert_ascii_to_int): Move to
13882 common/rsp-low.c.
13883 * regcache.c: Include rsp-low.h.
13884 * ax.c: Include rsp-low.h.
13885 * Makefile.in (SFILES): Add common/rsp-low.c.
13886 (OBS): Add rsp-low.o.
13887 (rsp-low.o): New target.
13888
01fd3ea5
TT
138892014-02-12 Tom Tromey <tromey@redhat.com>
13890
13891 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13892 Include print-utils.h.
13893 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13894 (plongest, thirty_two, phex_nz): Remove.
13895 * Makefile.in (SFILES): Add common/print-utils.c.
13896 (OBS): Add print-utils.o.
13897 (print-utils-ipa.o): New target.
13898 (print-utils.o): New target.
13899 (IPA_OBJS): Add print-utils-ipa.o.
13900
e99dc820
TT
139012014-02-06 Tom Tromey <tromey@redhat.com>
13902
13903 * Makefile.in (SFILES): Fix indentation.
13904
ee1e2d4f
DE
139052014-02-05 Doug Evans <dje@google.com>
13906
13907 * linux-low.c (linux_wait_for_event): Improve comment.
13908 (linux_wait_1): Keep current_inferior in sync with event_child.
13909
f5a02773
DE
139102014-01-22 Doug Evans <dje@google.com>
13911
13912 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13913
87ce2a04
DE
139142014-01-22 Doug Evans <dje@google.com>
13915
13916 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13917 * configure: Regenerate.
13918 * config.in: Regenerate.
13919 * Makefile.in (SFILES): Add debug.c.
13920 (OBS): Add debug.o.
13921 * debug.c: New file.
13922 * debug.h: New file.
13923 * linux-aarch64-low.c (*): Update all debugging printfs to use
13924 debug_printf instead of fprintf.
13925 * linux-arm-low.c (*): Ditto.
13926 * linux-cris-low.c (*): Ditto.
13927 * linux-crisv32-low.c (*): Ditto.
13928 * linux-m32r-low.c (*): Ditto.
13929 * linux-sparc-low.c (*): Ditto.
13930 * linux-x86.c (*): Ditto.
13931 * linux-low.c (*): Ditto.
13932 (linux_wait_1): Add calls to debug_enter, debug_exit.
13933 (linux_wait): Remove redundant debugging printf.
13934 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13935 (linux_resume, unstop_all_lwps): Ditto.
13936 * mem-break.c (*): Update all debugging printfs to use
13937 debug_printf instead of fprintf.
13938 * remote-utils.c (*): Ditto.
13939 * thread-db.c (*): Ditto.
13940 * server.c #include <ctype.h>, "gdb_vecs.h".
13941 (debug_threads): Moved to debug.c.
13942 (*): Update all debugging printfs to use debug_printf instead of
13943 fprintf.
13944 (start_inferior): Replace call to fflush with call to debug_flush.
13945 (monitor_show_help): Mention set debug-format.
13946 (parse_debug_format_options): New function.
13947 (handle_monitor_command): Handle "monitor set debug-format".
13948 (gdbserver_usage): Mention --debug-format.
13949 (main): Parse --debug-format.
13950 * server.h (debug_threads): Declaration moved to debug.h.
13951 #include "debug.h".
13952 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13953 trace_debug_1 that uses debug_printf.
13954 (tracepoint_look_up_symbols): Update all debugging printfs to use
13955 debug_printf instead of fprintf.
13956
e671835b
BS
139572014-01-20 Baruch Siach <baruch@tkos.co.il>
13958
13959 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13960 sys/ptrace.h.
13961
b5737fa9
PA
139622014-01-17 Pedro Alves <palves@redhat.com>
13963
ea38d2a9 13964 PR build/16445
c7faa97a
PA
13965 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13966 defined after including gdb_proc_service.h.
b5737fa9 13967
40ed484e
DE
139682014-01-16 Doug Evans <dje@google.com>
13969
13970 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13971 (match_dll): Use it.
13972
969c39fb
MM
139732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13974
13975 * target.h (target_ops) <read_btrace>: Change parameters and
13976 return type to allow error reporting.
13977 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13978 trace reading errors on.
13979 * linux-low.c (linux_low_read_btrace): Pass trace reading
13980 errors on.
13981 (linux_low_disable_btrace): New.
13982
ab7f45ba
DE
139832014-01-15 Doug Evans <dje@google.com>
13984
13985 * inferiors.c (thread_id_to_gdb_id): Delete.
13986 * inferiors.h (thread_id_to_gdb_id): Delete.
13987
66af0f44
EZ
139882014-01-13 Eli Zaretskii <eliz@gnu.org>
13989
13990 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13991 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13992 versions.
13993
9939e131
PA
139942014-01-08 Pedro Alves <palves@redhat.com>
13995
13996 * server.c (handle_status): Don't discard previous queued stop
13997 replies or thread's pending status here.
13998 (main) <disconnection>: Do it here instead.
13999
b7ea362b
PA
140002014-01-08 Pedro Alves <palves@redhat.com>
14001
14002 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
14003 * server.c (visit_actioned_threads, handle_pending_status): New
14004 function.
14005 (handle_v_cont): Factor out parts to ...
14006 (resume): ... this new function. If in all-stop, and a thread
14007 being resumed has a pending status, report it without actually
14008 resuming.
14009 (myresume): Adjust to use the new 'resume' function.
14010 (clear_pending_status_callback, set_pending_status_callback)
14011 (find_status_pending_thread_callback): New functions.
14012 (handle_status): Handle the case of multiple threads having
14013 interesting statuses to report. Report threads' real last signal
14014 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
14015 with an interesting thread to report the status for, instead of
14016 always reporting the status of the first thread.
14017
28498c42
JB
140182014-01-01 Joel Brobecker <brobecker@adacore.com>
14019
14020 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
14021 * gdbreplay.c (gdbreplay_version): Likewise.
14022
f45c82da
YZ
140232013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
14024
14025 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
14026 iov.iov_len with the real length in use.
14027
379a5e2d
JB
140282013-12-13 Joel Brobecker <brobecker@adacore.com>
14029
14030 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14031 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14032 for all targets that use win32-low.c.
14033 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14034 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14035
4210d83e
PA
140362013-12-13 Pedro Alves <palves@redhat.com>
14037
14038 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14039 if equal to TARGET_WAITKIND_LOADED.
14040 * win32-low.c (cached_status): New static global.
14041 (win32_wait): Add declaration.
14042 (do_initial_child_stuff): Flush all initial pending debug events
14043 up to the initial breakpoint.
14044 (win32_wait): If CACHED_STATUS was set, return that instead
14045 of doing a real wait. Remove the code resuming the execution
14046 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14047 during the initial phase. Also remove the code changing
14048 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14049 TARGET_WAITKIND_STOPPED.
14050
e7f0d979
YQ
140512013-12-11 Yao Qi <yao@codesourcery.com>
14052
14053 * notif.c (handle_notif_ack): Return 0 if no notification
14054 matches.
14055
ebcf782c
DE
140562013-11-20 Doug Evans <dje@google.com>
14057
14058 * linux-low.c (linux_set_resume_request): Fix comment.
14059
20ad9378
DE
140602013-11-20 Doug Evans <dje@google.com>
14061
14062 * linux-low.c (resume_status_pending_p): Tweak comment.
14063
a196ebeb
WT
140642013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14065
14066 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14067 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14068 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14069 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14070 (srv_amd64_regobj): Add amd64-mpx.o.
14071 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14072 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14073 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14074 * i387-fp.c (num_pl_bnd_register) Added constant.
14075 (num_pl_bnd_cfg_registers) Added constant.
14076 (struct i387_xsave) Added reserved area and MPX fields.
14077 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14078 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14079 function.
14080 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14081 (init_registers_amd64_mpx_linux): Declare new function.
14082 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14083 (x86_64_regmap): Add MPX registers.
14084 (x86_linux_read_description): Add MPX case.
14085 (initialize_low_arch): Initialize MPX targets.
14086
0080a2f6
TT
140872013-11-18 Tom Tromey <tromey@redhat.com>
14088
14089 * configure: Rebuild.
14090 * configure.ac: Don't check for stdlib.h.
14091 * gdbreplay.c: Unconditionally include stdlib.h.
14092
2978b111
TT
140932013-11-18 Tom Tromey <tromey@redhat.com>
14094
14095 * config.in: Rebuild.
14096 * configure: Rebuild.
14097 * configure.ac: Don't use AC_HEADER_DIRENT.
14098
a3d08894
TT
140992013-11-18 Tom Tromey <tromey@redhat.com>
14100
14101 * server.h: Don't check HAVE_STRING_H.
14102 * gdbreplay.c: Don't check HAVE_STRING_H.
14103 * configure: Rebuild.
14104
0a5dd17d
TT
141052013-11-18 Tom Tromey <tromey@redhat.com>
14106
14107 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14108 LIBGNU.
14109
1bd2f0ba
TT
141102013-11-08 Tom Tromey <tromey@redhat.com>
14111
14112 * configure, config.in: Rebuild.
14113 * configure.ac: Remove unused configury.
14114
3266f10b
TT
141152013-11-08 Tom Tromey <tromey@redhat.com>
14116
14117 * acinclude.m4: Include common.m4, codeset.m4.
14118 * configure, config.in: Rebuild.
14119 * configure.ac: Use GDB_AC_COMMON.
14120
6682d959
AA
141212013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14122
14123 * linux-s390-low.c (HWCAP_S390_TE): New define.
14124 (s390_arch_setup): Consider the TE field in the HWCAP for
14125 determining 'have_regset_tdb'.
14126
fd0a4d76
SDJ
141272013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14128
14129 PR gdb/16014
14130 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14131 call to sizeof.
14132
1a3d890b
PA
141332013-10-02 Pedro Alves <palves@redhat.com>
14134
14135 * server.c (process_serial_event): Don't output "GDBserver
14136 exiting" if GDB is connected through stdio.
14137 * target.c (mywait): Likewise, be silent if GDB is connected
14138 through stdio.
14139
97ad4581
JB
141402013-10-01 Joel Brobecker <brobecker@adacore.com>
14141
14142 * lynx-low.c (lynx_add_threads_after_attach): New function.
14143 (lynx_attach): Remove call to add_thread. Add call to
14144 lynx_add_threads_after_attach instead.
14145
5b4e221c
MF
141462013-09-28 Mike Frysinger <vapier@gentoo.org>
14147
14148 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14149 * config.in, configure: Regenerated.
14150
ee47b2f8
YQ
141512013-09-18 Yao Qi <yao@codesourcery.com>
14152
14153 PR server/15959
14154 * server.c (start_inferior): Clear 'resume_info'.
14155
d6707650 141562013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14157
d6707650
JW
14158 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14159 for each register.
14160
9243dd0e 141612013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14162
9243dd0e
JW
14163 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14164 linux-tile-low.o to srv_tgtobj.
14165
c623a6ef
WN
141662013-09-16 Will Newton <will.newton@linaro.org>
14167
14168 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14169 out regs.
14170
fb71d39e
PA
141712013-09-06 Pedro Alves <palves@redhat.com>
14172
14173 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14174 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14175 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14176 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14177 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14178 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14179
8e7e9910
PA
141802013-09-06 Pedro Alves <palves@redhat.com>
14181
14182 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14183 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14184
7c3a12ca
PA
141852013-09-06 Pedro Alves <palves@redhat.com>
14186
14187 * linux-amd64-ipa.c: Include tracepoint.h.
14188 * linux-i386-ipa.c: Include tracepoint.h.
14189
8eb3d7b6
RW
141902013-09-06 Ricard Wanderlof <ricardw@axis.com>
14191
14192 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14193 (ps_get_thread_area): New function.
14194
eddddb9d
RW
141952013-09-06 Ricard Wanderlof <ricardw@axis.com>
14196
14197 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14198 (initialize_low_arch): Call init_registers_crisv32 rather than
14199 init_register_crisv32.
14200
533b0600
PA
142012013-09-05 Pedro Alves <palves@redhat.com>
14202
14203 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14204 to ...
14205 * hostio.h: ... this new file.
14206 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14207 win32-low.c: Include hostio.h.
14208
0ce3d3b5
PA
142092013-09-05 Pedro Alves <palves@redhat.com>
14210
14211 * server.h (gdb_client_data, handler_func, callback_handler_func)
14212 (delete_file_handler, add_file_handler, append_callback_event)
14213 (delete_callback_event, start_event_loop, initialize_event_loop):
14214 Move to event-loop.h and include it.
14215 * event-loop.h: New file.
14216
799cdc37
PA
142172013-09-05 Pedro Alves <palves@redhat.com>
14218
14219 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14220 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14221 (loaded_dll, unloaded_dll): Move to ...
14222 * dll.h: ... this new file.
14223 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14224
6a6bbd9d
PA
142252013-09-05 Pedro Alves <palves@redhat.com>
14226
14227 * server.h (current_process, get_thread_process, all_processes)
14228 (add_inferior_to_list, for_each_inferior, current_inferior)
14229 (remove_inferior, add_process, remove_process, find_process_pid)
14230 (have_started_inferiors_p, have_attached_inferiors_p)
14231 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14232 (clear_inferiors, find_inferior, find_inferior_id)
14233 (inferior_target_data, set_inferior_target_data)
14234 (inferior_regcache_data, set_inferior_regcache_data): Move to
14235 inferiors.h, and include it.
14236 * inferiors.h: New file.
14237
f699aaba
PA
142382013-09-05 Pedro Alves <palves@redhat.com>
14239
14240 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14241 Move ...
72f4393d 14242 * ax.h: ... here.
f699aaba 14243
c144c7a0
PA
142442013-09-05 Pedro Alves <palves@redhat.com>
14245
14246 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14247 tracepoint.h.
14248 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14249 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14250 (handle_tracepoint_general_set, handle_tracepoint_query)
14251 (tracepoint_finished_step, tracepoint_was_hit)
14252 (release_while_stepping_state_list, current_traceframe)
14253 (in_readonly_region, traceframe_read_mem)
14254 (fetch_traceframe_registers, traceframe_read_sdata)
14255 (traceframe_read_info, struct fast_tpoint_collect_status)
14256 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14257 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14258 (supply_fast_tracepoint_registers)
14259 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14260 (ipa_tdesc, claim_trampoline_space)
14261 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14262 (agent_mem_read, agent_get_trace_state_variable_value)
14263 (agent_set_trace_state_variable_value, agent_tsv_read)
14264 (agent_mem_read_string, get_raw_reg_func_addr)
14265 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14266 * tracepoint.h: ... this new file.
14267
ff42e6ab
PA
142682013-09-05 Pedro Alves <palves@redhat.com>
14269
14270 * server.h (perror_with_name, error, fatal, warning, paddress)
14271 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14272 include it.
14273 * utils.h: New file.
14274
541af0f4
PA
142752013-09-05 Pedro Alves <palves@redhat.com>
14276
14277 * server.h (remote_debug, noack_mode, transport_is_reliable)
14278 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14279 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14280 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14281 (write_enn, initialize_async_io, enable_async_io)
14282 (disable_async_io, check_remote_input_interrupt_request)
14283 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14284 (dead_thread_notify, prepare_resume_reply)
14285 (decode_address_to_semicolon, decode_address, decode_m_packet)
14286 (decode_M_packet, decode_X_packet, decode_xfer_write)
14287 (decode_search_memory_packet, unhexify, hexify)
14288 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14289 (look_up_one_symbol, relocate_instruction)
14290 (monitor_output): Move to remote-utils.h, and include it.
14291 * remote-utils.h: New file.
14292
eebdf26b
PA
142932013-09-05 Pedro Alves <palves@redhat.com>
14294
14295 * server.h (_): Delete.
14296
3aafd2ff
PA
142972013-09-02 Pedro Alves <palves@redhat.com>
14298
14299 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14300 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14301 allocated.
14302 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14303
cee83bcb
PM
143042013-09-02 Pierre Muller <muller@sourceware.org>
14305
14306 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14307 or WriteProcessMemory complete successfully and handle
14308 ERROR_PARTIAL_COPY error.
14309
9a13b2fa
PA
143102013-09-02 Pedro Alves <palves@redhat.com>
14311
14312 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14313 error instead of EIO.
14314
602e3198
JK
143152013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14316
14317 PR server/15604
14318 * linux-low.c: Include filestuff.h.
14319 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14320 * lynx-low.c: Include filestuff.h.
14321 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14322 * server.c: Include filestuff.h.
14323 (main): Call notice_open_fds.
14324 * spu-low.c: Include filestuff.h.
14325 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14326
96d7229d
LM
143272013-08-22 Luis Machado <lgustavo@codesourcery.com>
14328
14329 * Makefile.in: Explain why ../target and ../nat are not
14330 listed as include file search paths.
14331 (linux-waitpid.o): New object file rule.
14332 * configure.srv (srv_native_linux_obj): New variable.
14333 Replace all occurrences of linux native object files with
14334 $srv_native_linux_obj.
14335 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14336 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14337 (linux_enable_event_reporting): Remove declaration.
14338 (my_waitpid): Moved to common/linux-waitpid.c.
14339 (linux_wait_for_event): Pass ptid when calling
14340 linux_enable_event_reporting.
14341 (linux_supports_tracefork_flag): Remove.
14342 (linux_enable_event_reporting): Likewise.
14343 (linux_tracefork_grandchild): Remove.
14344 (STACK_SIZE): Moved to common/linux-ptrace.c.
14345 (linux_tracefork_child): Remove.
14346 (linux_test_for_tracefork): Remove.
14347 (linux_look_up_symbols): Call linux_supports_traceclone.
14348 (initialize_low): Remove call to linux_test_for_tracefork.
14349 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14350 common/linux-ptrace.h.
14351 (PTRACE_TYPE_ARG4): Likewise.
14352 Include linux-ptrace.h.
14353
32940073
PA
143542013-08-21 Pedro Alves <palves@redhat.com>
14355
14356 * config.in: Renegerate.
14357
33b60d58 143582013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14359
33b60d58
LM
14360 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14361 (SFILES): Remove $(srcdir)/common/target-common.c and
14362 add $(srcdir)/target/waitstatus.c.
14363 (OBS): Remove target-common.o and add waitstatus.o.
14364 (server_h): Remove $(srcdir)/../common/target-common.h and
14365 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14366 and $(srcdir)/../target/waitstatus.h.
14367 (target-common.o): Remove.
14368 (waitstatus.o): New target object file.
14369 * target.h: Do not include target-common.h and
14370 include target/resume.h, target/wait.h and
14371 target/waitstatus.h.
14372
b8e1b30e
LM
143732013-08-13 Luis Machado <lgustavo@codesourcery.com>
14374
14375 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14376 to PTRACE_TYPE_ARG3.
14377 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14378 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14379 PTRACE_TYPE_ARG4.
14380 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14381 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14382
7a60ad40
YQ
143832013-07-27 Jie Zhang <jie@codesourcery.com>
14384 Daniel Jacobowitz <dan@codesourcery.com>
14385 Yao Qi <yao@codesourcery.com>
14386
14387 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14388 (mips-linux-watch.o): New rule.
14389 (mips_linux_watch_h): New variable.
14390 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14391 srv_tgtobj.
14392 * linux-mips-low.c: Include mips-linux-watch.h.
14393 (struct arch_process_info, struct arch_lwp_info): New.
14394 (update_watch_registers_callback): New function.
14395 (mips_linux_new_process, mips_linux_new_thread) New functions.
14396 (mips_linux_prepare_to_resume, mips_insert_point): New
14397 functions.
14398 (mips_remove_point, mips_stopped_by_watchpoint): New
14399 functions.
14400 (rsp_bp_type_to_target_hw_bp_type): New function.
14401 (mips_stopped_data_address): New function.
14402 (the_low_target): Add watchpoint support functions.
14403
de6f69ad
YQ
144042013-07-27 Yao Qi <yao@codesourcery.com>
14405
14406 * i386-low.c: Include break-common.h.
14407 (enum target_hw_bp_type): Remove.
14408
3360c0bf
LM
144092013-07-24 Luis Machado <lgustavo@codesourcery.com>
14410
14411 * Makefile.in (SFILES): /common/target-common.c.
14412 (OBS): Add target-common.o.
14413 (server_h): Add $(srcdir)/../common/target-common.h.
14414 (target-common.o): New target.
14415 * server.c (queue_stop_reply_callback): Free
14416 status string after use.
14417 * target.c (target_waitstatus_to_string): Remove.
14418 * target.h: Include target-common.h.
14419 (resume_kind): Likewise.
14420 (target_waitkind): Likewise.
14421 (target_waitstatus): Likewise.
14422 (TARGET_WNOHANG): Likewise.
14423
bd885420
YQ
144242013-07-04 Yao Qi <yao@codesourcery.com>
14425
14426 * Makefile.in (host_alias): Use @host_noncanonical@.
14427 (target_alias): Use @target_noncanonical@.
14428 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14429 ACX_NONCANONICAL_HOST.
14430 * configure: Regenerated.
14431
14432 Revert:
14433 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14434
14435 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14436 * configure: Rebuild.
14437 * Makefile.in (version_host, version_target): Get from configure.
14438 (version.c): Use $(version_host) and $(version_target).
14439
17ef446e
PA
144402013-07-03 Pedro Alves <palves@redhat.com>
14441
14442 * Makefile.in (config.status): Depend on development.sh.
14443 * acinclude.m4: Include libmcheck.m4.
14444 * configure: Regenerate.
14445
7a9a7487
MG
144462013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14447
14448 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14449 attribute inside the parentheses.
14450 (winapi_DebugSetProcessKillOnExit): Ditto.
14451 (winapi_DebugBreakProcess): Ditto.
14452 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14453
49b64de6
MG
144542013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14455
14456 * notif.h (notif_event): Add a dummy member to avoid compiler
14457 errors.
14458
d5749ee7
PA
144592013-07-01 Pedro Alves <palves@redhat.com>
14460
14461 * hostio.c (HOSTIO_PATH_MAX): Define.
14462 (require_filename, handle_open, handle_unlink, handle_readlink):
14463 Use it.
14464
d8d2a3ee
PA
144652013-07-01 Pedro Alves <palves@redhat.com>
14466
14467 * server.h: Include "pathmax.h".
14468 * linux-low.c: Don't include sys/param.h.
14469 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14470 MAXPATHLEN.
14471 * win32-low.c: Don't include sys/param.h.
14472 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14473
bc7dea8d
PA
144742013-07-01 Pedro Alves <palves@redhat.com>
14475
14476 * event-loop.c: Don't check HAVE_UNISTD_H before including
14477 <unistd.h>.
14478 * gdbreplay.c: Likewise.
14479 * remote-utils.c: Likewise.
14480 * server.c: Likewise.
14481 * configure.ac: Don't check for unistd.h.
14482 * configure: Regenerate.
14483
d6c2da54
TT
144842013-06-28 Tom Tromey <tromey@redhat.com>
14485
14486 * Makefile.in (version.c): Use version.in, not
14487 common/version.in.
14488
257b6bec
MG
144892013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14490
14491 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14492 * configure: Rebuild.
14493 * Makefile.in (version_host, version_target): Get from configure.
14494 (version.c): Use $(version_host) and $(version_target).
14495
86ebe149
DK
144962013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14497
14498 Fix trace-status to output user name without trailing colon.
14499 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14500
f30aa5af
DK
145012013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14502
14503 Fix trace-status to output proper start-time and stop-time.
14504 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14505 output start time and stop time in hex as gdb expects.
14506
28a93511
YQ
145072013-06-26 Pedro Alves <pedro@codesourcery.com>
14508
14509 * tracepoint.c (build_traceframe_info_xml): Output trace state
14510 variables present in the trace buffer.
14511
01208463
TT
145122013-06-24 Tom Tromey <tromey@redhat.com>
14513
14514 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14515 create-version.sh.
14516 (version.o): Remove.
14517 * gdbreplay.c: Include version.h.
14518 (version, host_name): Don't declare.
14519 * server.h: Include version.h.
14520 (version, host_name): Don't declare.
14521
760256f9
PA
145222013-06-12 Pedro Alves <palves@redhat.com>
14523
14524 * linux-x86-low.c (linux_is_elf64): Delete global.
14525 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14526 with local linux_pid_exe_is_elf_64_file use.
14527
030031ee
PA
145282013-06-11 Pedro Alves <palves@redhat.com>
14529
14530 * linux-low.c (regset_disabled, disable_regset): New functions.
14531 (regsets_fetch_inferior_registers)
14532 (regsets_store_inferior_registers): Use them.
14533 (initialize_regsets_info); Don't allocate the disabled_regsets
14534 array here.
14535 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14536 comment.
14537
5da6eb0a
PA
145382013-06-11 Pedro Alves <palves@redhat.com>
14539
14540 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14541 xmalloc.
14542
7e5aaa09
PA
145432013-06-11 Pedro Alves <palves@redhat.com>
14544
14545 * linux-x86-low.c (initialize_low_arch): Call
14546 init_registers_x32_avx_linux.
14547
d878444c
JK
145482013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14549
14550 Fix compatibility with Android Bionic.
14551 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14552 it is not empty.
14553
3aee8918
PA
145542013-06-07 Pedro Alves <palves@redhat.com>
14555
5f2b57b5 14556 PR server/14823
3aee8918
PA
14557 * Makefile.in (OBS): Add tdesc.o.
14558 (IPA_OBJS): Add tdesc-ipa.o.
14559 (tdesc-ipa.o): New rule.
14560 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14561 interface.
14562 * linux-low.c (new_inferior): Delete.
14563 (disabled_regsets, num_regsets): Delete.
14564 (linux_add_process): Adjust to set the new per-process
14565 new_inferior flag.
14566 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14567 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14568 was a stop. When calling arch_setup, switch the current inferior
14569 to the thread that got an event.
14570 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14571 (regsets_fetch_inferior_registers)
14572 (regsets_store_inferior_registers): New regsets_info parameter.
14573 Adjust to use it.
14574 (linux_register_in_regsets): New regs_info parameter. Adjust to
14575 use it.
14576 (register_addr, fetch_register, store_register): New usrregs_info
14577 parameter. Adjust to use it.
14578 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14579 parameter regs_info. Adjust to use it.
14580 (linux_fetch_registers): Get the current inferior's regs_info, and
14581 adjust to use it.
14582 (linux_store_registers): Ditto.
14583 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14584 (initialize_low): Don't initialize the target_regsets here. Call
14585 initialize_low_arch.
14586 * linux-low.h (target_regsets): Delete declaration.
14587 (struct regsets_info): New.
14588 (struct usrregs_info): New.
14589 (struct regs_info): New.
14590 (struct process_info_private) <new_inferior>: New field.
14591 (struct linux_target_ops): Delete the num_regs, regmap, and
14592 regset_bitmap fields. New field regs_info.
14593 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14594 * i387-fp.c (num_xmm_registers): Delete.
14595 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14596 calls to new interface.
14597 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14598 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14599 Infer the number of xmm registers from the regcache's target
14600 description.
14601 * i387-fp.h (num_xmm_registers): Delete.
14602 * inferiors.c (add_thread): Don't install the thread's regcache
14603 here.
14604 * proc-service.c (gregset_info): Fetch the current inferior's
14605 regs_info. Adjust to use it.
14606 * regcache.c: Include tdesc.h.
14607 (register_bytes, reg_defs, num_registers)
14608 (gdbserver_expedite_regs): Delete.
14609 (get_thread_regcache): If the thread doesn't have a regcache yet,
14610 create one, instead of aborting gdbserver.
14611 (regcache_invalidate_one): Rename to ...
14612 (regcache_invalidate_thread): ... this.
14613 (regcache_invalidate_one): New.
14614 (regcache_invalidate): Only invalidate registers of the current
14615 process.
14616 (init_register_cache): Add target_desc parameter, and use it.
14617 (new_register_cache): Ditto. Assert the target description has a
14618 non zero registers_size.
14619 (regcache_cpy): Add assertions. Adjust.
14620 (realloc_register_cache, set_register_cache): Delete.
14621 (registers_to_string, registers_from_string): Adjust.
14622 (find_register_by_name, find_regno, find_register_by_number)
14623 (register_cache_size): Add target_desc parameter, and use it.
14624 (free_register_cache_thread, free_register_cache_thread_one)
14625 (regcache_release, register_cache_size): New.
14626 (register_size): Add target_desc parameter, and use it.
14627 (register_data, supply_register, supply_register_zeroed)
14628 (supply_regblock, supply_register_by_name, collect_register)
14629 (collect_register_as_string, collect_register_by_name): Adjust.
14630 * regcache.h (struct target_desc): Forward declare.
14631 (struct regcache) <tdesc>: New field.
14632 (init_register_cache, new_register_cache): Add target_desc
14633 parameter.
14634 (regcache_invalidate_thread): Declare.
14635 (regcache_invalidate_one): Delete declaration.
14636 (regcache_release): Declare.
14637 (find_register_by_number, register_cache_size, register_size)
14638 (find_regno): Add target_desc parameter.
14639 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14640 declarations.
14641 * remote-utils.c: Include tdesc.h.
14642 (outreg, prepare_resume_reply): Adjust.
14643 * server.c: Include tdesc.h.
14644 (gdbserver_xmltarget): Delete declaration.
14645 (get_features_xml, process_serial_event): Adjust.
14646 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14647 declare.
14648 (struct process_info) <tdesc>: New field.
14649 (ipa_tdesc): Declare.
14650 * tdesc.c: New file.
14651 * tdesc.h: New file.
14652 * tracepoint.c: Include tdesc.h.
14653 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14654 (get_context_regcache): Adjust to pass ipa_tdesc down.
14655 (do_action_at_tracepoint): Adjust to get the register cache size
14656 from the context regcache's description.
14657 (traceframe_walk_blocks): Adjust to get the register cache size
14658 from the current trace frame's description.
14659 (traceframe_get_pc): Adjust to get current trace frame's
14660 description and pass it down.
14661 (gdb_collect): Adjust to get the register cache size from the
14662 IPA's description.
14663 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14664 (gdbserver_xmltarget): Delete.
14665 (initialize_low_tracepoint): Set the ipa's target description.
14666 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14667 (initialize_low_tracepoint): Set the ipa's target description.
14668 * linux-x86-low.c: Include tdesc.h.
14669 [__x86_64__] (is_64bit_tdesc): New.
14670 (ps_get_thread_area, x86_get_thread_area): Use it.
14671 (i386_cannot_store_register): Rename to ...
14672 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14673 (i386_cannot_fetch_register): Rename to ...
14674 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14675 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14676 to new interface.
14677 (target_regsets): Rename to ...
14678 (x86_regsets): ... this.
14679 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14680 interface.
14681 (x86_siginfo_fixup): Use is_64bit_tdesc.
14682 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14683 (tdesc_x32_avx_linux, tdesc_x32_linux)
14684 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14685 Declare.
14686 (x86_linux_update_xmltarget): Delete.
14687 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14688 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14689 (AMD64_LINUX_USER64_CS): New.
14690 (x86_linux_read_description): New, based on
14691 x86_linux_update_xmltarget.
14692 (same_process_callback): New.
14693 (x86_arch_setup_process_callback): New.
14694 (x86_linux_update_xmltarget): New.
14695 (x86_regsets_info): New.
14696 (amd64_linux_regs_info): New.
14697 (i386_linux_usrregs_info): New.
14698 (i386_linux_regs_info): New.
14699 (x86_linux_regs_info): New.
14700 (x86_arch_setup): Reimplement.
14701 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14702 (x86_emit_ops): Ditto.
14703 (the_low_target): Adjust. Install x86_linux_regs_info,
14704 x86_cannot_fetch_register, and x86_cannot_store_register.
14705 (initialize_low_arch): New.
14706 * linux-ia64-low.c (tdesc_ia64): Declare.
14707 (ia64_fetch_register): Adjust.
14708 (ia64_usrregs_info, regs_info): New globals.
14709 (ia64_regs_info): New function.
14710 (the_low_target): Adjust.
14711 (initialize_low_arch): New function.
14712 * linux-sparc-low.c (tdesc_sparc64): Declare.
14713 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14714 Adjust.
14715 (sparc_arch_setup): New function.
14716 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14717 (the_low_target): Adjust.
14718 (initialize_low_arch): New function.
14719 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14720 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14721 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14722 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14723 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14724 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14725 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14726 (tdesc_powerpc_isa205_vsx64l): Declare.
14727 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14728 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14729 (ppc_set_pc, ppc_get_hwcap): Adjust.
14730 (ppc_usrregs_info): Forward declare.
14731 (!__powerpc64__) ppc_regmap_adjusted: New global.
14732 (ppc_arch_setup): Adjust to the current process'es target
14733 description.
14734 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14735 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14736 (ppc_store_evrregset): Adjust.
14737 (target_regsets): Rename to ...
14738 (ppc_regsets): ... this, and make static.
14739 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14740 (ppc_regs_info): New function.
14741 (the_low_target): Adjust.
14742 (initialize_low_arch): New function.
14743 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14744 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14745 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14746 (tdesc_s390x_linux64v2): Declare.
14747 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14748 (s390_fill_gregset, s390_store_last_break): Adjust.
14749 (target_regsets): Rename to ...
14750 (s390_regsets): ... this, and make static.
14751 (s390_get_pc, s390_set_pc): Adjust.
14752 (s390_get_hwcap): New target_desc parameter, and use it.
14753 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14754 (s390_arch_setup): Adjust to set the current process'es target
14755 description. Don't adjust the regmap.
14756 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14757 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14758 (regs_info_3264): New globals.
14759 (s390_regs_info): New function.
14760 (the_low_target): Adjust.
14761 (initialize_low_arch): New function.
14762 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14763 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14764 [__mips64] (init_registers_mips_linux)
14765 (init_registers_mips_dsp_linux): Delete defines.
14766 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14767 (have_dsp): New global.
14768 (mips_read_description): New, based on mips_arch_setup.
14769 (mips_arch_setup): Reimplement.
14770 (get_usrregs_info): New function.
14771 (mips_cannot_fetch_register, mips_cannot_store_register)
14772 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14773 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14774 (target_regsets): Rename to ...
14775 (mips_regsets): ... this, and make static.
14776 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14777 (dsp_regs_info, regs_info): New globals.
14778 (mips_regs_info): New function.
14779 (the_low_target): Adjust.
14780 (initialize_low_arch): New function.
14781 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14782 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14783 Declare.
14784 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14785 (arm_read_description): New, with bits factored from
14786 arm_arch_setup.
14787 (arm_arch_setup): Reimplement.
14788 (target_regsets): Rename to ...
14789 (arm_regsets): ... this, and make static.
14790 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14791 (arm_regs_info): New function.
14792 (the_low_target): Adjust.
14793 (initialize_low_arch): New function.
14794 * linux-m68k-low.c (tdesc_m68k): Declare.
14795 (target_regsets): Rename to ...
14796 (m68k_regsets): ... this, and make static.
14797 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14798 (m68k_regs_info): New function.
14799 (m68k_arch_setup): New function.
14800 (the_low_target): Adjust.
14801 (initialize_low_arch): New function.
14802 * linux-sh-low.c (tdesc_sharch): Declare.
14803 (target_regsets): Rename to ...
14804 (sh_regsets): ... this, and make static.
14805 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14806 (sh_regs_info, sh_arch_setup): New functions.
14807 (the_low_target): Adjust.
14808 (initialize_low_arch): New function.
14809 * linux-bfin-low.c (tdesc_bfin): Declare.
14810 (bfin_arch_setup): New function.
14811 (bfin_usrregs_info, regs_info): New globals.
14812 (bfin_regs_info): New function.
14813 (the_low_target): Adjust.
14814 (initialize_low_arch): New function.
14815 * linux-cris-low.c (tdesc_cris): Declare.
14816 (cris_arch_setup): New function.
14817 (cris_usrregs_info, regs_info): New globals.
14818 (cris_regs_info): New function.
14819 (the_low_target): Adjust.
14820 (initialize_low_arch): New function.
14821 * linux-cris-low.c (tdesc_crisv32): Declare.
14822 (cris_arch_setup): New function.
14823 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14824 (cris_regs_info): New function.
14825 (the_low_target): Adjust.
14826 (initialize_low_arch): New function.
14827 * linux-m32r-low.c (tdesc_m32r): Declare.
14828 (m32r_arch_setup): New function.
14829 (m32r_usrregs_info, regs_info): New globals.
14830 (m32r_regs_info): Adjust.
14831 (initialize_low_arch): New function.
14832 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14833 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14834 (tic6x_usrregs_info): Forward declare.
14835 (tic6x_read_description): New function, based on ...
14836 (tic6x_arch_setup): ... this. Reimplement.
14837 (target_regsets): Rename to ...
14838 (tic6x_regsets): ... this, and make static.
14839 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14840 (tic6x_regs_info): New function.
14841 (the_low_target): Adjust.
14842 (initialize_low_arch): New function.
14843 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14844 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14845 (target_regsets): Rename to ...
14846 (xtensa_regsets): ... this, and make static.
14847 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14848 globals.
14849 (xtensa_arch_setup, xtensa_regs_info): New functions.
14850 (the_low_target): Adjust.
14851 (initialize_low_arch): New function.
14852 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14853 (nios2_arch_setup): Set the current process'es tdesc.
14854 (target_regsets): Rename to ...
14855 (nios2_regsets): ... this.
14856 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14857 (nios2_regs_info): New function.
14858 (the_low_target): Adjust.
14859 (initialize_low_arch): New function.
a261b8f5
PA
14860 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14861 (aarch64_arch_setup): Set the current process'es tdesc.
14862 (target_regsets): Rename to ...
14863 (aarch64_regsets): ... this.
14864 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14865 (aarch64_regs_info): New function.
14866 (the_low_target): Adjust.
14867 (initialize_low_arch): New function.
3aee8918
PA
14868 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14869 globals.
14870 (target_regsets): Rename to ...
14871 (tile_regsets): ... this.
14872 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14873 (tile_regs_info): New function.
14874 (tile_arch_setup): Set the current process'es tdesc.
14875 (the_low_target): Adjust.
14876 (initialize_low_arch): New function.
14877 * spu-low.c (tdesc_spu): Declare.
14878 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14879 * win32-arm-low.c (tdesc_arm): Declare.
14880 (arm_arch_setup): New function.
14881 (the_low_target): Install arm_arch_setup instead of
14882 init_registers_arm.
14883 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14884 (init_windows_x86): Rename to ...
14885 (i386_arch_setup): ... this. Set `win32_tdesc'.
14886 (the_low_target): Adjust.
14887 * win32-low.c (win32_tdesc): New global.
14888 (child_add_thread): Don't create the thread cache here.
14889 (do_initial_child_stuff): Set the new process'es tdesc.
14890 * win32-low.h (struct target_desc): Forward declare.
14891 (win32_tdesc): Declare.
14892 * lynx-i386-low.c (tdesc_i386): Declare global.
14893 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14894 * lynx-low.c (lynx_tdesc): New global.
14895 (lynx_add_process): Set the new process'es tdesc.
14896 * lynx-low.h (struct target_desc): Forward declare.
14897 (lynx_tdesc): Declare global.
14898 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14899 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14900 * nto-low.c (nto_tdesc): New global.
14901 (do_attach): Set the new process'es tdesc.
14902 * nto-low.h (struct target_desc): Forward declare.
14903 (nto_tdesc): Declare.
14904 * nto-x86-low.c (tdesc_i386): Declare.
14905 (nto_x86_arch_setup): Set `nto_tdesc'.
14906
b1fbec62
GB
149072013-06-04 Gary Benson <gbenson@redhat.com>
14908
14909 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14910 to qSupported response when appropriate.
14911 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14912 with nonzero-length annex.
14913 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14914 arguments supplied in annex.
14915
d1ec4ce7
DE
149162013-05-31 Doug Evans <dje@google.com>
14917
ac44adcb 14918 PR server/15594
d1ec4ce7
DE
14919 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14920 64 bits in 64-cross-32 environment.
14921
9b25f2d3
PA
149222013-05-28 Pedro Alves <palves@redhat.com>
14923
14924 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14925 (aarch64-without-fpu.c): Delete rule.
14926 * configure.srv (aarch64*-*-linux*): Remove references to
14927 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14928 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14929 declaration.
14930
6740dc9c
PA
149312013-05-24 Pedro Alves <palves@redhat.com>
14932
14933 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14934 instead of strchr/decode_address. Error if the range isn't split
14935 with a ','. Don't assume there's be a ':' in the action.
14936
c2d6af84
PA
149372013-05-23 Yao Qi <yao@codesourcery.com>
14938 Pedro Alves <palves@redhat.com>
14939
14940 * linux-low.c (lwp_in_step_range): New function.
14941 (linux_wait_1): If the thread was range stepping and stopped
14942 outside the stepping range, report the stop to GDB. Otherwise,
14943 continue stepping. Add range stepping debug output.
14944 (linux_set_resume_request): Copy the step range from the resume
14945 request to the lwp.
14946 (linux_supports_range_stepping): New.
14947 (linux_target_ops) <supports_range_stepping>: Set to
14948 linux_supports_range_stepping.
14949 * linux-low.h (struct linux_target_ops)
14950 <supports_range_stepping>: New field.
14951 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14952 * linux-x86-low.c (x86_supports_range_stepping): New.
14953 (the_low_target) <supports_range_stepping>: Set to
14954 x86_supports_range_stepping.
14955 * server.c (handle_v_cont): Handle 'r' action.
14956 (handle_v_requests): Append ";r" if the target supports range
14957 stepping.
14958 * target.h (struct thread_resume) <step_range_start,
14959 step_range_end>: New fields.
14960 (struct target_ops) <supports_range_stepping>:
14961 New field.
14962 (target_supports_range_stepping): New macro.
14963
58794e1a
JB
149642013-05-17 Joel Brobecker <brobecker@adacore.com>
14965
14966 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14967 confusion in comment.
14968
d631c5a7
JB
149692013-05-17 Joel Brobecker <brobecker@adacore.com>
14970
14971 * lynx-low.c (struct process_info_private): New type.
14972 (lynx_add_process): New function.
14973 (lynx_create_inferior, lynx_attach): Replace calls to
14974 add_process by calls to lynx_add_process.
14975 (lynx_resume): If PTID is null, then try using
14976 current_process()->private->last_wait_event_ptid.
14977 Add comments.
14978 (lynx_clear_inferiors): Delete. The contents of that function
14979 has been inlined in lynx_mourn;
14980 (lynx_wait_1): Save the ptid in the process's private data.
14981 (lynx_mourn): Free the process' private data. Replace call
14982 to lynx_clear_inferiors by call to clear_inferiors.
14983
96f7a20f
YQ
149842013-05-17 Yao Qi <yao@codesourcery.com>
14985
14986 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14987 the right place.
14988
db0dfaa0
LM
149892013-05-16 Luis Machado <lgustavo@codesourcery.com>
14990
14991 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14992 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14993 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14994 PT_TEXT_END_ADDR guards. Update comments.
14995 (linux_target_op) <read_offsets>: Conditionally define to
14996 linux_read_offsets if the target is UCLIBC and if it defines
14997 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14998
68f5f838
SL
149992013-05-06 Sandra Loosemore <sandra@codesourcery.com>
15000 Andrew Jenner <andrew@codesourcery.com>
15001
15002 * Makefile.in (SFILES): Add linux-nios2-low.c.
15003 (clean): Add action to delete nios2-linux.c.
15004 (nios2-linux.c): New rule.
15005 * configure.srv: Add nios2*-*-linux*.
15006 * linux-nios2-low.c: New.
15007
1ebff1fd
HAQ
150082013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
15009
15010 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
15011
f6150862
HZ
150122013-04-25 Hui Zhu <hui@codesourcery.com>
15013
15014 PR gdb/15186
f6150862
HZ
15015 * ax.c (ax_printf): Add fflush.
15016
614c279d
TT
150172013-04-22 Tom Tromey <tromey@redhat.com>
15018
15019 * Makefile.in (SFILES): Add filestuff.c.
15020 (OBS): Add filestuff.o.
15021 (filestuff.o): New target.
15022 * config.in, configure: Rebuild.
15023 * configure.ac: Check for fdwalk, pipe2.
15024
7d4e5717
PA
150252013-04-17 Pedro Alves <palves@redhat.com>
15026
15027 * configure.ac (USE_THREAD_DB): Delete variable.
15028 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
15029 Don't AC_SUBST USE_THREAD_DB.
15030 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15031 * config.in, configure: Regenerate.
15032
d5c93e41
PA
150332013-04-16 Pedro Alves <palves@redhat.com>
15034
15035 * linux-low.h (struct lwp_info) <thread_known>: Move under
15036 the USE_THREAD_DB #ifdef.
15037
04f5fe89
PA
150382013-04-16 Pedro Alves <palves@redhat.com>
15039
15040 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15041 (linux-low.o): Delete rule.
15042 * linux-low.h: Always include "gdb_thread_db.h" instead of
15043 conditionally including thread_db.h.
15044 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15045 HAVE_THREAD_DB_H.
15046
480b27bf
JK
150472013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15048
15049 * Makefile.in (install-only): Fix make install regression.
15050
43662968
JK
150512013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15052
15053 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15054 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15055 installation.
15056 * gdbserver.1: Remove.
15057
3e74e146
PA
150582013-03-22 Pedro Alves <palves@redhat.com>
15059
15060 * linux-low.c (handle_extended_wait): Don't call
15061 linux_enable_event_reporting.
15062
a8347a2a
TT
150632013-03-15 Tony Theodore <tonyt@logyst.com>
15064
15065 PR build/9098:
15066 * Makefile.in (SHELL): Use @SHELL@.
15067
eeb56fa7
SDJ
150682013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15069
15070 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15071 compiler warning.
15072
4fa7e2ff
JB
150732013-03-13 Joel Brobecker <brobecker@adacore.com>
15074
15075 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15076 Remove extraneous NULL element.
15077
8ddb1965
YQ
150782013-03-13 Yao Qi <yao@codesourcery.com>
15079
15080 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15081 'V' block in trace frame.
15082
9accd112
MM
150832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15084
15085 * target.h (struct target_ops): Add btrace ops.
15086 (target_supports_btrace): New macro.
15087 (target_enable_btrace): New macro.
15088 (target_disable_btrace): New macro.
15089 (target_read_btrace): New macro.
15090 * gdbthread.h (struct thread_info): Add btrace field.
15091 * server.c: Include btrace-common.h.
15092 (handle_btrace_general_set): New function.
15093 (handle_btrace_enable): New function.
15094 (handle_btrace_disable): New function.
15095 (handle_general_set): Call handle_btrace_general_set.
15096 (handle_qxfer_btrace): New function.
15097 (struct qxfer qxfer_packets[]): Add btrace entry.
15098 * inferiors.c (remove_thread): Disable btrace.
15099 * linux-low: Include linux-btrace.h.
15100 (linux_low_enable_btrace): New function.
15101 (linux_low_read_btrace): New function.
15102 (linux_target_ops): Add btrace ops.
15103 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15104 Add srv_linux_btrace=yes.
15105 (x86_64-*-linux*): Add linux-btrace.o.
15106 Add srv_linux_btrace=yes.
15107 * configure.ac: Define HAVE_LINUX_BTRACE.
15108 * config.in: Regenerated.
15109 * configure: Regenerated.
15110
5cc22e4c
MM
151112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15112
15113 * server.c (handle_qxfer): Preserve error message if -3 is
15114 returned.
15115 (qxfer): Document the -3 return value.
15116
7c97f91e
MM
151172013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15118
15119 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15120 (linux_btrace_h): New variable.
15121 (linux-btrace.o): New rule.
15122
be9a119c 151232013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
15124 Hafiz Abid Qadeer <abidh@codesourcery.com>
15125
15126 * tracepoint.c (trace_buffer_size): New global.
15127 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15128 (init_trace_buffer): Change to one-argument function. Allocate
15129 trace buffer memory.
15130 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15131 handle QTBuffer:size packet.
15132 (cmd_bigqtbuffer_size): New function.
15133 (initialize_tracepoint): Call init_trace_buffer with
15134 DEFAULT_TRACE_BUFFER_SIZE.
15135 * server.c (handle_query): Add QTBuffer:size in the
15136 supported packets.
15137
e64f7499
YQ
151382013-03-07 Yao Qi <yao@codesourcery.com>
15139
15140 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15141 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15142 of -1.
15143 (cmd_qtsp): Adjust condition. Do post increment.
15144 Set cur_action and cur_step_action back to 0.
15145
f0ae6fc3
PA
151462013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15147
15148 PR server/15236
15149 * linux-low.c (linux_write_memory): Return early success if LEN is
15150 zero.
15151
b5b0b0af
CV
151522013-03-05 Corinna Vinschen <vinschen@redhat.de>
15153
334ad4a8 15154 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 15155
589bc927
TT
151562013-02-28 Tom Tromey <tromey@redhat.com>
15157
15158 * configure.ac: Invoke AC_SYS_LARGEFILE.
15159 * configure, config.in: Rebuild.
15160
dfe07582
CV
151612013-02-28 Corinna Vinschen <vinschen@redhat.com>
15162
15163 * win32-low.c: Throughout, fix format strings and casts of
15164 printf-like functions to avoid type related warnings on all
15165 platforms.
15166 (get_child_debug_event): Print dwDebugEventCode as hex since
15167 that's how it's usually documented.
15168
736cd585
YQ
151692013-02-28 Yao Qi <yao@codesourcery.com>
15170
15171 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15172 pulongest.
15173
e1f58301
JW
151742013-02-27 Jiong Wang <jiwang@tilera.com>
15175
15176 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15177 (reg-tilegx32.c): New rule.
15178 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15179 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15180 different register info initializer according to elf class.
15181 (init_registers_tilgx32): New function. The tilegx32 register info
15182 initializer.
15183 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15184 (tile_store_gregset): Likewise.
15185
d171ca78
YQ
151862013-02-27 Yao Qi <yao@codesourcery.com>
15187
15188 * server.c (process_point_options): Print debug message when
15189 debug_threads is true.
15190
282bbdf3
YQ
151912013-02-26 Yao Qi <yao@codesourcery.com>
15192
15193 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15194
aca22551
PA
151952013-02-19 Pedro Alves <palves@redhat.com>
15196 Kai Tietz <ktietz@redhat.com>
15197
15198 PR gdb/15161
15199
15200 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15201 instead of strtoul to extract address from packet.
15202 (process_serial_event) <'z'>: Likewise.
15203
4f3cee1c
YQ
152042013-02-18 Yao Qi <yao@codesourcery.com>
15205
15206 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15207
8e1d55a3
PA
152082013-02-14 Pedro Alves <palves@redhat.com>
15209
15210 Plug memory leak.
15211
15212 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15213 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15214
458820da
PA
152152013-02-14 Pedro Alves <palves@redhat.com>
15216
15217 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15218
baea0dae
PA
152192013-02-14 Pedro Alves <palves@redhat.com>
15220
15221 * tracepoint.c (save_string): Delete.
15222 (add_tracepoint_action): Use savestring instead of save_string.
15223
0b1afbb3
PA
152242013-02-12 Pedro Alves <palves@redhat.com>
15225
15226 * linux-xtensa-low.c: Ditto.
15227 * xtensa-xtregs.c: Ditto.
15228
8a4ac37e
PA
152292013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15230
15231 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15232 thread_db.
15233
148de6bb
MS
152342013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15235
15236 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15237 aarch64_num_wp_regs and aarch64_num_bp_regs to
15238 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15239
55fac6e0
MS
152402013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15241
15242 * linux-aarch64-low.c (ps_get_thread_area): Replace
15243 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15244
176eb98c
MS
152452013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15246 Marcus Shawcroft <marcus.shawcroft@arm.com>
15247 Nigel Stephens <nigel.stephens@arm.com>
15248 Yufeng Zhang <yufeng.zhang@arm.com>
15249
15250 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15251 (aarch64.c, aarch64-without-fpu.c): New targets.
15252 * configure.srv (aarch64*-*-linux*): New.
15253 * linux-aarch64-low.c: New file.
15254
56f7af9c
MS
152552013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15256
43aaf8b6 15257 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
15258 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15259 (dequeue_one_deferred_signal, linux_resume_one_thread)
15260 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15261 (linux_tracefork_grandchild, linux_test_for_tracefork)
15262 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15263 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15264 where the argument is 0.
15265
60f662b0
YQ
152662013-01-25 Yao Qi <yao@codesourcery.com>
15267
15268 * event-loop.c: Include "queue.h".
15269 (gdb_event_p): New typedef.
15270 (struct gdb_event) <next_event>: Remove.
15271 (event_queue): Change to QUEUE(gdb_event_p).
15272 (async_queue_event): Remove.
15273 (gdb_event_xfree): New.
15274 (initialize_event_loop): New.
15275 (process_event): Use API from QUEUE.
15276 (wait_for_event): Likewise.
15277 * server.c (main): Call initialize_event_loop.
15278 * server.h (initialize_event_loop): Declare.
15279
5ae4861a
YQ
152802013-01-18 Yao Qi <yao@codesourcery.com>
15281
15282 * ax.h (struct eval_agent_expr_context): New.
15283 (gdb_eval_agent_expr): Update declaration.
15284 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15285 TFRAME. Add new argument CTX.
15286 * server.h (struct eval_agent_expr_context): Declare.
15287 (agent_mem_read, agent_tsv_read): Update declaration.
15288 (agent_mem_read_string): Likewise.
15289 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15290 (add_traceframe_block): Add new argument TPOINT.
15291 Increase TPOINT->traceframe_usage.
15292 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15293 eval_tracepoint_agent_expr.
15294 (condition_true_at_tracepoint): Likewise.
15295 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15296 (agent_mem_read_string, agent_tsv_read): Likewise.
15297
85e00e85
YQ
152982013-01-16 Yao Qi <yao@codesourcery.com>
15299
15300 * linux-low.c (linux_resume_one_lwp): Don't check
15301 'lwp->bp_reinsert != 0'.
15302
4039cf45
JB
153032013-01-07 Joel Brobecker <brobecker@adacore.com>
15304 Pedro Alves <palves@redhat.com>
15305
15306 * lynx-low.c (ptrace_request_to_str): Define a temporary
15307 macro and use it to simplify this function's implementation.
15308
9044dee2
JB
153092013-01-07 Joel Brobecker <brobecker@adacore.com>
15310
15311 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15312 sets errno.
15313
e6352c8f
JB
153142013-01-07 Joel Brobecker <brobecker@adacore.com>
15315
15316 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15317
50681a27
JB
153182013-01-07 Joel Brobecker <brobecker@adacore.com>
15319
15320 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15321
3f6e77ef
JB
153222013-01-07 Joel Brobecker <brobecker@adacore.com>
15323
15324 * lynx-low.c (lynx_resume): Use the resume_info parameter
15325 to determine the ptid for the lynx_ptrace call, unless
15326 it is equal to minus_one_ptid, in which case we use the
15327 ptid of the current_inferior.
15328 (lynx_wait_1): After having received a thread create/exit
15329 event, resume the inferior's execution using the signaling
15330 thread's ptid, rather than the old ptid.
15331
7fda33ae
JB
153322013-01-07 Joel Brobecker <brobecker@adacore.com>
15333
15334 * lynx-low.c (lynx_resume): Delete variable ret.
15335
b9786c74
JB
153362013-01-01 Joel Brobecker <brobecker@adacore.com>
15337
15338 * gdbreplay.c (gdbreplay_version): Update copyright year.
15339 * server.c (gdbserver_version): Likewise.
15340
8b93d60f
JB
153412012-12-17 Joel Brobecker <brobecker@adacore.com>
15342
15343 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15344 new thread.
15345
037335a7
JB
153462012-12-17 Joel Brobecker <brobecker@adacore.com>
15347
15348 * lynx-low.c (ptrace_request_to_str): Add handling for
15349 PTRACE_GETTRACESIG.
15350
52d4cbd8
JB
153512012-12-17 Joel Brobecker <brobecker@adacore.com>
15352
15353 * lynx-low.c (lynx_attach): Delete variable new_process.
15354
ab8f6ca9
JB
153552012-12-17 Joel Brobecker <brobecker@adacore.com>
15356
15357 * lynx-low.c (lynx_create_inferior): Delete variable
15358 new_process.
15359
78cbc024
JB
153602012-12-17 Joel Brobecker <brobecker@adacore.com>
15361
15362 * lynx-low.c (ptrace_request_to_str): Do not handle
15363 PTRACE_GETTHREADLIST if this macro does not exist.
15364
14a00470
YQ
153652012-12-15 Yao Qi <yao@codesourcery.com>
15366
15367 * Makefile.in (OBS): Add notif.o.
15368 * notif.c, notif.h: New.
15369 * server.c: Include "notif.h".
15370 (struct vstop_notif) <next>: Remove.
15371 <base>: New field.
15372 (queue_stop_reply): Update.
15373 (push_event, send_next_stop_reply): Remove.
15374 (discard_queued_stop_replies): Update.
15375 (notif_stop): New variable.
15376 (handle_v_stopped): Remove.
15377 (handle_v_requests): Don't call handle_v_stopped. Call
15378 handle_ack_notif instead.
15379 (queue_stop_reply_callback): Call notif_event_enque instead
15380 of queue_stop_reply.
15381 (handle_status): Don't call send_next_stop_reply, call
15382 notif_write_event instead.
15383 (kill_inferior_callback): Likewise.
15384 (detach_or_kill_inferior_callback): Likewise.
15385 (main): Call initialize_notif.
15386 (process_serial_event): Call QUEUE_is_empty.
15387 (handle_target_event): Call notif_push instead of push event.
15388 * server.h (push_event): Remove declaration.
15389
61c125b9
TT
153902012-12-10 Tom Tromey <tromey@redhat.com>
15391
15392 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15393 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15394 macros.
15395 (.c.o): Rewrite.
15396 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15397 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15398 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15399 (amd64-linux-ipa.o, ax.o): Rewrite.
15400 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15401 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15402 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15403 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15404 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15405 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15406 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15407 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15408 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15409 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15410 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15411 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15412 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15413 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15414 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15415 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15416 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15417 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15418 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15419 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15420 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15421 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15422 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15423 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15424 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15425 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15426 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15427 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15428 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15429 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15430 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15431 (reg-tilegx.o): Remove.
15432 (all_object_files): New macro.
15433 Include .deps files.
15434 * aclocal.m4, configure: Rebuild.
15435 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15436 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15437 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15438
e90e9ad9
TT
154392012-12-05 Tom Tromey <tromey@redhat.com>
15440
15441 PR gdb/14917:
15442 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15443
02d403bf 154442012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15445
15446 * configure.ac: Check for linux/perf_event.h.
15447 * config.in: Regenerated.
15448 * configure: Regenerated.
15449
0270a750
PA
154502012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15451
15452 * hostio.c (handle_readlink): Decrease buffer size
15453 parameter passed to readlink by one byte.
15454
8c29b58e
YQ
154552012-11-26 Yao Qi <yao@codesourcery.com>
15456
15457 * configure.ac (build_warnings): Append '-Wempty-body'.
15458 * configure: Regenerated.
15459 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15460 body.
15461
8bdce1ff
PM
154622012-11-15 Pierre Muller <muller@sourceware.org>
15463
15464 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15465 * config.in: Regenerate.
15466 * configure: Regenerate.
15467 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15468 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15469 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15470 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15471 header.
15472 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15473 instead of <sys/wait.h> header.
15474 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15475
02d403bf 154762012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15477
15478 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15479 (various make rules): Remove -DGDBSERVER
15480
fbd5db48
YQ
154812012-11-09 Yao Qi <yao@codesourcery.com>
15482
15483 * spu-low.c (current_ptid): Move it to ..
15484 * gdbthread.h: ... here. New.
15485 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15486 * server.c (myresume, process_serial_event): Likewise.
15487 * thread-db.c (thread_db_find_new_threads): Likewise.
15488 * tracepoint.c (run_inferior_command): Likewise.
15489
b3dc46ff
AB
154902012-10-01 Andrew Burgess <aburgess@broadcom.com>
15491
15492 * server.c (handle_search_memory_1): Include access length in
15493 warning message.
15494
07c04788
HPN
154952012-09-05 Michael Brandt <michael.brandt@axis.com>
15496
15497 * linux-crisv32-low.c: Fix compile errors.
15498
918d227b
YQ
154992012-09-04 Yao Qi <yao@codesourcery.com>
15500
15501 * tracepoint.c (cmd_qtsv): Adjust debug message.
15502 Don't check CUR_TPOINT.
15503
18c1b81a
YQ
155042012-08-28 Yao Qi <yao@codesourcery.com>
15505
15506 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15507 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15508 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15509 Remove declarations of xmalloc, xreallloc, xstrdup and
15510 freeargv.
15511 * Makefile.in (libiberty_h): New.
15512 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15513 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15514
dc82f37b
YQ
155152012-08-23 Yao Qi <yao@codesourcery.com>
15516
15517 * server.h: Remove declaration of 'xsnprintf'.
15518
406b1477
KS
155192012-08-22 Keith Seitz <keiths@redhat.com>
15520
15521 * server.h: Include build-gnulib-gbserver/config.h.
15522 * gdbreplay.c: Likewise.
15523
e6712ff1
DE
155242012-08-08 Doug Evans <dje@google.com>
15525
15526 * Makefile.in (SFILES): Add gdb_vecs.c.
15527 (OBS): Add gdb_vecs.o.
15528 (gdb_vecs_h, host_defs_h): New variables.
15529 (thread-db.o): Add $(gdb_vecs_h) dependency.
15530 (gdb_vecs.o): New rule.
15531 * thread-db.c: #include "gdb_vecs.h".
15532 (thread_db_load_search): Use a vector to iterate over path elements.
15533 Handle text appearing after "$pdir".
15534
15535 * configure.ac: Add check for strstr.
15536 * config.in: Regenerate.
15537 * configure: Regenerate.
15538
7c3270ae
UW
155392012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15540
15541 * hostio.c (handle_pread): If pread fails, fall back to attempting
15542 lseek/read.
15543 (handle_pwrite): Likewise for pwrite.
15544
b62e2b27
UW
155452012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15546
15547 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15548 between unsupported TYPE and unimplementable ADDR/LEN combination.
15549 (arm_insert_point): Act on new return value.
15550
78a99e91
PA
155512012-07-31 Pedro Alves <palves@redhat.com>
15552
15553 * server.c (process_point_options): Only skip tokens if we find
15554 one that is unrecognized. Don't treat 'X' specially while
15555 skipping unrecognized tokens.
15556
fcf303ab
UW
155572012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15558
15559 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15560 to 4-byte-align HW breakpoint addresses for Thumb.
15561
7255706c
YQ
155622012-07-27 Yao Qi <yao@codesourcery.com>
15563
15564 PR remote/14161.
15565
15566 * server.h: Declare gdb_agent_about_to_close.
15567 * target.c (kill_inferior): Include "agent.h".
15568 New. Send command 'kill'.
15569 * target.h (kill_inferior): Removed macro.
15570 * tracepoint.c (gdb_agent_about_to_close): New.
15571 (gdb_agent_helper_thread): Handle command 'close'.
15572 Wait endlessly until the inferior stops.
15573 Install gdb_agent_remove_socket to atexit hook.
15574 (agent_socket_name): New static variable.
15575 (gdb_agent_socket_init): Replace local variable 'name' with
15576 'agent_socket_name'.
15577 (gdb_agent_remove_socket): New.
15578
5a3f286f
YQ
155792012-07-27 Yao Qi <yao@codesourcery.com>
15580
15581 * server.c (process_point_options): Stop at 'X' when parsing.
15582
961bd387
ME
155832012-07-19 Michael Eager <eager@eagercon.com>
15584
a261b8f5 15585 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15586 to hw_execute.
15587 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15588 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15589 hardware breakpoint.
15590
aa7c7447
JK
155912012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15592
15593 * gdbserver/linux-low.c (initialize_low): Call
15594 linux_ptrace_init_warnings.
15595
7f216e7c
DE
155962012-07-02 Doug Evans <dje@google.com>
15597
15598 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15599 pointer to int.
15600
d3ce09f5
SS
156012012-07-02 Stan Shebs <stan@codesourcery.com>
15602
15603 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15604 (ax.o): Add it to build rule.
15605 (ax-ipa.o): Ditto.
15606 (OBS): Add format.o.
15607 (IPA_OBS): Add format.o.
15608 * server.c (handle_query): Claim support for breakpoint commands.
15609 (process_point_options): Add command case.
15610 (process_serial_event): Leave running if there are printfs in
15611 effect.
15612 * mem-break.h (any_persistent_commands): Declare.
15613 (add_breakpoint_commands): Declare.
15614 (gdb_no_commands_at_breakpoint): Declare.
15615 (run_breakpoint_commands): Declare.
15616 * mem-break.c (struct point_command_list): New struct.
15617 (struct breakpoint): New field command_list.
15618 (any_persistent_commands): New function.
15619 (add_commands_to_breakpoint): New function.
15620 (add_breakpoint_commands): New function.
15621 (gdb_no_commands_at_breakpoint): New function.
15622 (run_breakpoint_commands): New function.
15623 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15624 locally.
15625 * ax.c: Include format.h.
15626 (ax_printf): New function.
15627 (gdb_eval_agent_expr): Add printf opcode.
15628
2f8f6aed
YQ
156292012-06-13 Yao Qi <yao@codesourcery.com>
15630
15631 * server.c (start_inferior): Remove duplicated writes to fields
15632 'last_resume_kind' and 'last_status' of 'current_inferior'.
15633
0c9070b3
YQ
156342012-06-12 Yao Qi <yao@codesourcery.com>
15635 Pedro Alves <palves@redhat.com>
15636
15637 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15638 comment.
15639 * server.c (handle_v_cont): Extend comment.
15640
c52daf70
YQ
156412012-06-11 Yao Qi <yao@codesourcery.com>
15642
15643 * linux-low.c (linux_attach): Add 'static'.
15644
d38bbb0a
YQ
156452012-06-06 Yao Qi <yao@codesourcery.com>
15646
15647 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15648
89dc0afd
JK
156492012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15650
15651 Fix gcc -flto compilation warning.
15652 * server.c (main): Make variable multi_mode and attach volatile.
15653
75f62ce7
TJB
156542012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15655
15656 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15657 if the platform doesn't know about it.
15658
65f479b6
PA
156592012-05-30 Jeff Kenton <jkenton@tilera.com>
15660
15661 * Makefile.in (SFILES): Add linux-tile-low.c.
15662 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15663 * configure.srv: Handle tilegx-*-linux*.
15664 * linux-tile-low.c: New file.
15665
0c5bf5a9
JK
156662012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15667
15668 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15669
a493e3e2
PA
156702012-05-24 Pedro Alves <palves@redhat.com>
15671
15672 PR gdb/7205
15673
43aaf8b6 15674 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15675
2ea28649
PA
156762012-05-24 Pedro Alves <palves@redhat.com>
15677
15678 PR gdb/7205
15679
15680 Replace target_signal with gdb_signal throughout.
15681
8d409d16
MR
156822012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15683
15684 * linux-low.c (linux_store_registers): Avoid the copying sequence
15685 when no data has been retrieved by ptrace.
15686
23512c01
MGD
156872012-05-22 Will Deacon <will.deacon@arm.com>
15688
15689 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15690 Include asm/ptrace.h.
15691 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15692 already defined.
15693
4934b29e
MR
156942012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15695
15696 * linux-low.c (linux_store_registers): Don't re-retrieve data
15697 with ptrace that has already been obtained from /proc. Always
15698 copy any data retrieved with ptrace to the buffer supplied.
15699
bde24c0a
PA
157002012-05-11 Yao Qi <yao@codesourcery.com>
15701 Pedro Alves <palves@redhat.com>
15702
15703 * linux-low.c (enum stopping_threads_kind): New.
15704 (stopping_threads): Change type to `enum stopping_threads_kind'.
15705 (handle_extended_wait): If stopping and suspending threads, leave
15706 the new_lwp suspended too.
15707 (linux_wait_for_event): Adjust.
15708 (stop_all_lwps): Set `stopping_threads' to
15709 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15710 whether we're suspending threads or just stopping them. Assert no
15711 recursion happens.
15712
623b6bdf
YQ
157132012-04-29 Yao Qi <yao@codesourcery.com>
15714
15715 * server.h: Move some code to ...
15716 * gdbthread.h: ... here. New.
15717 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15718 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15719 (nto-low.o, win32-low.o): Likewise.
15720 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15721 * regcache.c, remote-utils.c, server.c: Likewise.
15722 * target.c, tracepoint.c, win32-low.c: Likewise.
15723
f15f9948
TJB
157242012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15725
15726 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15727 (PTRACE_ARG4_TYPE): Likewise.
15728 (PTRACE_XFER_TYPE): Likewise.
15729 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15730 ptrace to PTRACE_ARG3_TYPE.
15731 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15732 (PTRACE_ARG4_TYPE): Likewise.
15733 (PTRACE_XFER_TYPE): Likewise.
15734 (linux_detach_one_lwp): Cast fourth argument of
15735 ptrace to long then PTRACE_ARG4_TYPE.
15736 (regsets_fetch_inferior_registers): Cast third argument of
15737 ptrace to long then PTRACE_ARG3_TYPE.
15738 (regsets_store_inferior_registers): Likewise.
15739
38ea300a
PA
157402012-04-20 Pedro Alves <palves@redhat.com>
15741
15742 * configure: Regenerate.
15743
c971b7fa
PA
157442012-04-19 Pedro Alves <palves@redhat.com>
15745
43aaf8b6 15746 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15747 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15748 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15749 (all, install-only, uninstall, clean-info, all-lib, clean): No
15750 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15751 (maintainer-clean realclean distclean): Use subdir_do.
15752 (subdir_do): New.
15753 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15754 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15755 * acinclude.m4: Include acx_configure_dir.m4.
15756 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15757 calls. Call AC_PROG_RANLIB. Configure gnulib using
15758 ACX_CONFIGURE_DIR.
15759 (GNULIB): New.
15760 (GNULIB_STDINT_H): Adjust.
15761 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15762 * gdbreplay.c: Include build-gnulib/config.h.
15763 * server.h: Likewise.
15764 * aclocal.m4: Regenerate.
15765 * config.in: Regenerate.
15766 * configure: Regenerate.
c971b7fa 15767
809277f8
PA
157682012-04-19 Pedro Alves <palves@redhat.com>
15769
15770 * Makefile.in (LIBGNU, INCGNU): Adjust.
15771 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15772 (all, install-only, uninstall, clean-info, all-lib, clean)
15773 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15774 * configure.ac: Adjust AC_OUTPUT output.
15775 * aclocal.m4: Regenerate.
15776 * configure: Regenerate.
15777
fd9bb8b8
PA
157782012-04-19 Pedro Alves <palves@redhat.com>
15779
15780 * Makefile.in (generated_files): New.
15781 (server_h): Remove the explicit dependency on config.h, and depend
15782 on $generated_files.
15783
1c298c66
PA
157842012-04-19 Pedro Alves <palves@redhat.com>
15785
15786 * Makefile.in (INCGNU): Add -Ignulib.
15787
57c4b50b
PA
157882012-04-19 Pedro Alves <palves@redhat.com>
15789
15790 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15791 (INCGNU): ... this, and spell out -I here.
15792 (GNULIB_LIB): Rename to ...
15793 (LIBGNU): ... this.
15794 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15795
1030e047
PA
157962012-04-19 Pedro Alves <palves@redhat.com>
15797
15798 * config.in: Regenerate.
15799
447d4319
PA
158002012-04-19 Pedro Alves <palves@redhat.com>
15801
15802 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15803 * server.h (memmem): Remove declaration.
15804 * config.in: Regenerate.
15805 * configure: Regenerate.
15806
aad9eab9
YQ
158072012-04-19 Yao Qi <yao@codesourcery.com>
15808
15809 * Makefile.in (SFILES): Add common/vec.c.
15810 (OBS): Add vec.o.
15811 (vec.o): New rule.
15812
3e10640f
YQ
158132012-04-19 Yao Qi <yao@codesourcery.com>
15814
15815 * remote-utils.c (prepare_resume_reply): Replace with macro
15816 target_core_of_thread.
15817 * server.c (handle_qxfer_threads_proper): Likewise.
15818 * target.h (traget_core_of_thread): New macro.
15819
71622373
PA
158202012-04-18 Pedro Alves <palves@redhat.com>
15821
15822 * aclocal.m4: Regenerate.
15823 * configure: Regenerate.
15824
80d26939
YQ
158252012-04-16 Yao Qi <yao@codesourcery.com>
15826
15827 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15828 duplicated on address.
15829
42476b70
YQ
158302012-04-16 Yao Qi <yao@codesourcery.com>
15831
15832 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15833 (struct tracepoint_action_ops) <send>: New field.
15834 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15835 (agent_expr_send, x_tracepoint_action_send): New.
15836 (l_tracepoint_action_send): New.
15837 (cmd_qtdp): Download and install tracepoint
15838 according to `use_agent'.
15839 (run_inferior_command): Add one more parameter `len'.
15840 Update callers.
15841 (tracepoint_send_agent): New.
15842 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15843
7bc83639
YQ
158442012-04-16 Yao Qi <yao@codesourcery.com>
15845
15846 * tracepoint.c (download_tracepoints): Moved to ...
15847 (cmd_qtstart): ... here.
15848
5f18041e
YQ
158492012-04-14 Yao Qi <yao@codesourcery.com>
15850
15851 * tracepoint.c: Include inttypes.h.
15852 (struct collect_memory_action): Use sized types.
15853 (struct tracepoint): Likewise.
15854 (cmd_qtdp, stop_tracing): Update print specifiers.
15855 (cmd_qtp, response_tracepoint): Likewise.
15856 (collect_data_at_tracepoint): Likewise.
15857 (collect_data_at_step): Likewise.
15858
55a8c076
YQ
158592012-04-14 Yao Qi <yao@codesourcery.com>
15860
15861 Import gnulib module inttypes.
15862 * aclocal.m4, config.in, configure: Regenerated.
15863
dc750257
YQ
158642012-04-14 Yao Qi <yao@codesourcery.com>
15865
15866 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15867 Makefile and config.status at last.
15868
0ab5faf9
YQ
158692012-04-13 Yao Qi <yao@codesourcery.com>
15870
15871 * tracepoint.c: Include stdint.h unconditionally.
15872
18f5fd81
TJB
158732012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15874
15875 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15876 on BFD_HAVE_SYS_PROCFS_TYPE.
15877 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15878 * configure: Regenerate.
15879 * config.in: Likewise.
15880
4d47af5c
L
158812012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15882
15883 * Makefile.in (clean): Also remove x32.c x32-linux.c
15884 x32-avx.c x32-avx-linux.c.
15885 (x32.o): New target.
15886 (x32.c): Likewise.
15887 (x32-linux.o): Likewise.
15888 (x32-linux.c): Likewise.
15889 (x32-avx.o): Likewise.
15890 (x32-avx.c): Likewise.
15891 (x32-avx-linux.o): Likewise.
15892 (x32-avx-linux.c): Likewise.
15893
15894 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15895 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15896 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15897 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15898 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15899 i386/x32-avx-linux.xml.
15900
15901 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15902 (init_registers_x32_avx_linux): Likwise.
15903 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15904 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15905
ecedbe58
PA
159062012-04-13 Pedro Alves <palves@redhat.com>
15907
15908 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15909 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15910 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15911 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15912 the sub-make.
15913
c92b5177
L
159142012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15915
15916 * linux-x86-low.c (compat_x32_clock_t): New.
15917 (compat_x32_siginfo_t): Likewise.
15918 (compat_x32_siginfo_from_siginfo): Likewise.
15919 (siginfo_from_compat_x32_siginfo): Likewise.
15920 (linux_is_elf64): Likewise.
15921 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15922 and siginfo_from_compat_x32_siginfo for x32.
15923 (x86_arch_setup): Set linux_is_elf64.
15924
214d508e
L
159252012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15926
15927 PR gdb/13969
15928 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15929 e_machine field.
15930 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15931 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15932 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15933 compatible with process.
15934
c9a1864a
YQ
159352012-04-12 Yao Qi <yao@codesourcery.com>
15936
15937 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15938 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15939 (install-only, install-info, clean): Handle sub dir gnulib.
15940 (all-lib, am--refresh): New targets.
15941 (memmem.o): Remove target.
15942 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15943 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15944 (AC_REPLACE_FUNCS): Remove memmem.
15945 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15946 (AC_OUTPUT): Generate Makefile in gnulib/.
15947 * aclocal.m4, config.in, configure: Regenerated.
15948
367ba2c2
MR
159492012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15950
15951 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15952
9d236627
PA
159532012-04-05 Pedro Alves <palves@redhat.com>
15954
15955 -Werror=strict-aliasing
15956
15957 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15958 pointer.
15959
111217b3
PA
159602012-04-04 Pedro Alves <palves@redhat.com>
15961
15962 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15963 (sparc_store_gregset_from_stack, sparc_store_gregset)
15964 (sparc_breakpoint_at): Fix formatting.
15965
8365dcf5
TJB
159662012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15967
15968 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15969 are available.
15970 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15971 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15972 * config.in: Regenerate.
15973 * configure: Likewise.
15974
689cc2ae
PA
159752012-03-29 Pedro Alves <palves@redhat.com>
15976
15977 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15978 Correct ptrace arguments.
15979
c14dfd32
PA
159802012-03-28 Pedro Alves <palves@redhat.com>
15981
15982 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15983 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15984 (IA64_FR1_REGNUM): New defines.
15985 (ia64_fetch_register): New.
15986 (the_low_target): Install it.
15987 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15988 field.
15989 * linux-low.c (linux_fetch_registers): Try the
15990 the_low_target.fetch_register hook first.
15991
15992 * linux-arm-low.c (the_low_target): Adjust.
15993 * linux-bfin-low.c (the_low_target): Adjust.
15994 * linux-cris-low.c (the_low_target): Adjust.
15995 * linux-crisv32-low.c (the_low_target): Adjust.
15996 * linux-m32r-low.c (the_low_target): Adjust.
15997 * linux-m68k-low.c (the_low_target): Adjust.
15998 * linux-mips-low.c (the_low_target): Adjust.
15999 * linux-ppc-low.c (the_low_target): Adjust.
16000 * linux-s390-low.c (the_low_target): Adjust.
16001 * linux-sh-low.c (the_low_target): Adjust.
16002 * linux-sparc-low.c (the_low_target): Adjust.
16003 * linux-tic6x-low.c (the_low_target): Adjust.
16004 * linux-x86-low.c (the_low_target): Adjust.
16005 * linux-xtensa-low.c (the_low_target): Adjust.
16006
63c88e13
PA
160072012-03-26 Pedro Alves <palves@redhat.com>
16008
16009 * server.c (handle_qxfer_libraries): Don't bail early if
16010 the_target->qxfer_libraries_svr4 is not NULL.
16011
fb723180
PA
160122012-03-26 Pedro Alves <palves@redhat.com>
16013
16014 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
16015
0afae3cf
PA
160162012-03-23 Pedro Alves <palves@redhat.com>
16017
16018 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
16019 "library-list-svr4" element's start tag when the the DSO list is
16020 empty.
16021
485f1ee4
PA
160222012-03-23 Pedro Alves <palves@redhat.com>
16023
16024 * linux-low.c (read_one_ptr): Read the inferior's pointer through
16025 a variable whose type size is the same as the inferior's pointer
16026 size.
16027
a5362b9a
TS
160282012-03-21 Thomas Schwinge <thomas@codesourcery.com>
16029
16030 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16031 struct siginfo.
16032 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16033 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16034 * linux-low.h: Include <signal.h>.
16035 (struct siginfo): Remove forward declaration.
16036 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16037 struct siginfo.
16038
d226c142
MF
160392012-03-21 Mike Frysinger <vapier@gentoo.org>
16040
16041 * .gitignore: Ignore more files.
16042
122f36ef
PA
160432012-03-19 Pedro Alves <palves@redhat.com>
16044 Jan Kratochvil <jan.kratochvil@redhat.com>
16045
16046 * server.c (cont_thread, general_thread): Add describing comments.
16047 (start_inferior): Clear `cont_thread'.
16048 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16049 of a process.
16050
fc3e5175
YQ
160512012-03-15 Yao Qi <yao@codesourcery.com>
16052
16053 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16054 handling to ...
16055 (cmd_qtdp): ... here.
16056
8d0d92cd
YQ
160572012-03-15 Yao Qi <yao@codesourcery.com>
16058
16059 * tracepoint.c (struct tracepoint_action_ops): New.
16060 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16061 (m_tracepoint_action_download): New.
16062 (r_tracepoint_action_download): New.
16063 (x_tracepoint_action_download): New.
16064 (l_tracepoint_action_download): New.
16065 (add_tracepoint_action): Install `action->ops' according type.
16066 (download_tracepoint_1): Move code `download' function pointer
16067 of various tracepoint_action_ops.
16068
87b0bb13
JK
160692012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16070
16071 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16072 linux_ptrace_attach_warnings.
16073
5f572dec
JK
160742012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16075
16076 * Makefile.in (linux-ptrace.o): New.
16077 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16078 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16079 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16080 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16081 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16082 of these targets.
16083 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16084
f4647387
YQ
160852012-03-08 Yao Qi <yao@codesourcery.com>
16086 Pedro Alves <palves@redhat.com>
16087
16088 Fix PR server/13392.
16089 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16090 offset of JMP insn.
16091 * tracepoint.c (remove_tracepoint): New.
16092 (cmd_qtdp): Call remove_tracepoint when failed to install.
16093
9b224c5e
PA
160942012-03-07 Pedro Alves <palves@redhat.com>
16095
16096 * linux-low.c (get_detach_signal): New.
16097 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16098 Pass on pending signals to PTRACE_DETACH. Check the result of the
16099 ptrace call.
16100 * server.c (program_signals, program_signals_p): New.
16101 (handle_general_set): Handle QProgramSignals.
16102 * server.h (program_signals, program_signals_p): Declare.
16103
e237a7e2
JK
161042012-03-05 Pedro Alves <palves@redhat.com>
16105 Jan Kratochvil <jan.kratochvil@redhat.com>
16106
16107 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16108 New comment why.
16109
5808517f
YQ
161102012-03-03 Yao Qi <yao@codesourcery.com>
16111
16112 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16113 agent_look_up_symbols.
16114
58b4daa5
YQ
161152012-03-03 Yao Qi <yao@codesourcery.com>
16116
16117 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16118 (linux-x86-low.o): Likewise.
16119 * server.h: Remove in_process_agent_loaded.
16120 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16121 common/agent.c.
16122 Update callers.
16123
8ffcbaaf
YQ
161242012-03-03 Yao Qi <yao@codesourcery.com>
16125
16126 * tracepoint.c (gdb_agent_capability): New global.
16127 (in_process_agent_loaded_ust): Renamed to
16128 `in_process_agent_supports_ust'.
16129 Update callers.
16130 (in_process_agent_supports_ust): Call agent_capability_check.
16131 (clear_installed_tracepoints): Assert that agent supports
16132 agent.
16133
d1feda86
YQ
161342012-03-03 Yao Qi <yao@codesourcery.com>
16135
16136 * linux-low.c (linux_supports_agent): New.
16137 (linux_target_ops): Initialize field `supports_agent' with
16138 linux_supports_agent.
16139 * target.h (struct target_ops) <supports_agent>: New.
16140 (target_supports_agent): New macro.
16141 * server.c (handle_general_set): Handle packet 'QAgent'.
16142 (handle_query): Send `QAgent+'.
16143 * Makefile.in (server.o): Depends on agent.h.
16144
2fa291ac
YQ
161452012-03-03 Yao Qi <yao@codesourcery.com>
16146
16147 * Makefile.in (OBS): Add agent.o.
16148 Add new rule for agent.o.
16149 Track dependence of tracepoint.c on agent.h.
16150 * tracepoint.c (run_inferior_command_1):
16151 (run_inferior_command): Call agent_run_command.
16152 (gdb_ust_connect_sync_socket): Deleted. Move it to
16153 common/agent.c.
16154 (resume_thread, stop_thread): Likewise.
16155 (gdb_ust_socket_init): Renamed to ...
16156 (gdb_agent_socket_init): ... New.
16157 (gdb_ust_thread): Renamed to ...
16158 (gdb_agent_helper_thread): ... New.
16159 (gdb_ust_init): Move some code to ...
16160 (gdb_agent_init): ... here. New.
16161 [HAVE_UST]: Call gdb_ust_init.
16162 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16163 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16164 * config.in, configure: Regenerated.
16165
05044653
PA
161662012-03-02 Pedro Alves <palves@redhat.com>
16167
16168 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16169 * linux-low.c (struct simple_pid_list): New.
16170 (stopped_pids): New a struct simple_pid_list pointer.
16171 (add_to_pid_list, pull_pid_from_list): New.
16172 (handle_extended_wait): Don't assume the first signal new children
16173 report is SIGSTOP. Adjust call to pull_pid_from_list.
16174 (linux_wait_for_lwp): Adjust.
16175
8d00225b
YQ
161762012-03-02 Yao Qi <yao@codesourcery.com>
16177
16178 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16179 debug log.
16180
19560ba5
YQ
161812012-03-02 Yao Qi <yao@codesourcery.com>
16182
16183 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16184 `stop_pc' and `tpoint'. Update caller.
16185
1faeff08
MR
161862012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16187
16188 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16189 * linux-low.c (use_linux_regsets): New macro.
16190 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16191 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16192 (linux_register_in_regsets): New function.
16193 (usr_fetch_inferior_registers): Skip registers covered by
16194 regsets.
16195 (usr_store_inferior_registers): Likewise.
16196 (usr_fetch_inferior_registers): New macro.
16197 (usr_store_inferior_registers): Likewise.
16198 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16199 (linux_store_registers): Likewise.
16200 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16201 prototype.
16202 (init_registers_mips64_dsp_linux): Likewise.
16203 (init_registers_mips_linux): New macro.
16204 (init_registers_mips_dsp_linux): Likewise.
16205 (mips_dsp_num_regs): Likewise.
16206 (DSP_BASE, DSP_CONTROL): New fallback macros.
16207 (mips_base_regs): New macro.
16208 (mips_regmap): Use it. Fix the size.
16209 (mips_dsp_regmap): New variable.
16210 (mips_dsp_regset_bitmap): Likewise.
16211 (mips_arch_setup): New function.
16212 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16213 than mips_regmap.
16214 (mips_cannot_store_register): Likewise.
16215 (the_low_target): Update .arch_setup, .num_regs and .regmap
16216 initializers. Add .regset_bitmap initializer.
16217 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16218 initializer.
16219 * linux-bfin-low.c (the_low_target): Likewise.
16220 * linux-cris-low.c (the_low_target): Likewise.
16221 * linux-crisv32-low.c (the_low_target): Likewise.
16222 * linux-ia64-low.c (the_low_target): Likewise.
16223 * linux-m32r-low.c (the_low_target): Likewise.
16224 * linux-m68k-low.c (the_low_target): Likewise.
16225 * linux-ppc-low.c (the_low_target): Likewise.
16226 * linux-s390-low.c (the_low_target): Likewise.
16227 * linux-sh-low.c (the_low_target): Likewise.
16228 * linux-sparc-low.c (the_low_target): Likewise.
16229 * linux-tic6x-low.c (the_low_target): Likewise.
16230 * linux-x86-low.c (the_low_target): Likewise.
16231 * linux-xtensa-low.c (the_low_target): Likewise.
16232 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16233 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16234 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16235 srv_xmlfiles.
16236 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16237 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16238
c03e6ccc
YQ
162392012-02-29 Yao Qi <yao@codesourcery.com>
16240 Pedro Alves <palves@redhat.com>
16241
16242 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16243 `step_over_finished' is true.
16244
644cebc9
PA
162452012-02-27 Pedro Alves <palves@redhat.com>
16246
16247 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16248 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16249
c14d7ab2
PA
162502012-02-27 Pedro Alves <palves@redhat.com>
16251
16252 PR server/9684
16253 * linux-low.c (pid_is_stopped): New.
16254 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16255
412c89dd
LM
162562012-02-25 Luis Machado <lgustavo@codesourcery.com>
16257
16258 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16259 of conditions.
16260
b745defe
MR
162612012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16262
16263 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16264
9f3a5c85
LM
162652012-02-24 Luis Machado <lgustavo@codesourcery>
16266
16267 * server.c (handle_query): Advertise support for target-side
16268 breakpoint condition evaluation.
16269 (process_point_options): New function.
16270 (process_serial_event): When inserting a breakpoint, check for
16271 a target-side condition that should be evaluated.
16272
16273 * mem-break.c: Include regcache.h and ax.h.
16274 (point_cond_list_t): New data structure.
16275 (breakpoint) <cond_list>: New field.
16276 (find_gdb_breakpoint_at): Make non-static.
16277 (delete_gdb_breakpoint_at): Clear any target-side
16278 conditions.
16279 (clear_gdb_breakpoint_conditions): New function.
16280 (add_condition_to_breakpoint): Likewise.
16281 (add_breakpoint_condition): Likewise.
16282 (gdb_condition_true_at_breakpoint): Likewise.
16283 (gdb_breakpoint_here): Return result directly instead
16284 of going through a local variable.
16285
16286 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16287 (clear_gdb_breakpoint_conditions): Likewise.
16288 (add_breakpoint_condition): Likewise.
16289 (gdb_condition_true_at_breakpoint): Likewise.
16290
16291 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16292 (need_step_over_p): Take target-side breakpoint condition into
16293 consideration.
16294
5e1dc496
LM
162952012-02-24 Luis Machado <lgustavo@codesourcery>
16296
16297 * server.h: Include tracepoint.h.
16298 (agent_mem_read, agent_get_trace_state_variable_value,
16299 agent_set_trace_state_variable_value,
16300 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16301 get_set_tsv_func_addr): New prototypes.
16302
16303 * ax.h: New include file.
16304 * ax.c: New source file.
16305
16306 * tracepoint.c: Include ax.h.
16307 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16308 agent_expr, eval_result_type): Move to ax.h.
16309 (parse_agent_expr): Rename to ...
16310 (gdb_parse_agent_expr): ... this, make it non-static and move
16311 to ax.h.
16312 (unparse_agent_expr) Rename to ...
16313 (gdb_unparse_agent_expr): ... this, make it non-static and move
16314 to ax.h.
16315 (eval_agent_expr): Rename to ...
16316 (eval_tracepoint_agent_expr): ... this.
16317 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16318 forward declarations.
16319 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16320 (agent_get_trace_state_variable_value): New function.
16321 (agent_set_trace_state_variable_value): New function.
16322 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16323 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16324 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16325 (condition_true_at_tracepoint): Likewise.
16326 (parse_agent_expr): Rename to ...
16327 (gdb_parse_agent_expr): ... this and move to ax.c.
16328 (unparse_agent_expr): Rename to ...
16329 (gdb_unparse_agent_expr): ... this and move to ax.c.
16330 (gdb_agent_op_name): Move to ax.c.
16331 (eval_agent_expr): Rename to ...
16332 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16333 and move to ax.c.
16334 (eval_tracepoint_agent_expr): New function.
16335 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16336 non-static.
5e1dc496
LM
16337 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16338 ax.c.
16339 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16340 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16341 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16342 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16343 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16344 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16345 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16346 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16347 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16348 (compile_bytecodes): Remove forward declaration.
16349 (is_goto_target): Move to ax.c.
16350 (compile_bytecodes): Move to ax.c and call
16351 agent_get_trace_state_variable_value (...) and
16352 agent_set_trace_state_variable_value (...).
16353
16354 * Makefile.in: Update ax.c and IPA dependencies.
16355
277e4e52
PA
163562012-02-24 Pedro Alves <palves@redhat.com>
16357
16358 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16359 (cmd_bigqtbuffer_circular): ... this. Only handle
16360 'QTBuffer:circular:'.
16361 (handle_tracepoint_general_set): Adjust.
16362
bf4c19f7
YQ
163632012-02-16 Yao Qi <yao@codesourcery.com>
16364
16365 * inferiors.c: Move code to ...
16366 * dll.c: .... here. New.
16367 * server.h: Declare clear_dlls.
16368 * Makefile.in (SFILES): Add dll.c.
16369 (OBS): Add dll.o
16370 (dll.o): New rule.
16371
d73f2619
YQ
163722012-02-11 Yao Qi <yao@codesourcery.com>
16373
16374 * server.c: (handle_monitor_command): Add a new parameter
16375 `own_buf'.
16376 (handle_query): Update caller.
16377
f8255c2a
JB
163782012-02-09 Joel Brobecker <brobecker@adacore.com>
16379
16380 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16381 * configure, config.in: Regenerate.
16382 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16383 is not defined.
16384
da84f473
PA
163852012-02-02 Pedro Alves <palves@redhat.com>
16386
16387 Try SIGKILL first, then PTRACE_KILL.
16388 * linux-low.c (linux_kill_one_lwp): New.
16389 (linux_kill_one_lwp): Rename to ...
16390 (kill_one_lwp_callback): ... this. Use the new
16391 linux_kill_one_lwp.
16392
e886a173
PA
163932012-02-02 Pedro Alves <palves@redhat.com>
16394
16395 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16396 inferior.
16397
be07f1a2
PA
163982012-01-27 Pedro Alves <palves@redhat.com>
16399
16400 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16401 (elf_64_file_p): Make static.
16402 (linux_pid_exe_is_elf_64_file): New.
16403 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16404 Delete declarations.
16405 (linux_pid_exe_is_elf_64_file): Declare.
16406 * linux-x86-low.c (x86_arch_setup): Use
16407 linux_pid_exe_is_elf_64_file.
16408
d8301ad1
JK
164092012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16410
16411 * linux-low.c (linux_wait_for_event_1): Rename to ...
16412 (linux_wait_for_event): ... here and merge it with former
16413 linux_wait_for_event - new variable wait_ptid, use it.
16414 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16415
01b17894
PA
164162012-01-23 Pedro Alves <palves@redhat.com>
16417
16418 * server.c (main): Avoid yet another case of infinite loop while
16419 detaching/killing after a longjmp.
16420
e825046f
JK
164212012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16422
16423 Code cleanup.
16424 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16425
b9e7b9c3
UW
164262012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16427
16428 * hostio.c (handle_readlink): New function.
16429 (handle_vFile): Call it to handle "vFile:readlink" packets.
16430
901f9912
UW
164312012-01-20 Pedro Alves <palves@redhat.com>
16432 Ulrich Weigand <ulrich.weigand@linaro.org>
16433
16434 * server.c (handle_v_requests): Only support vAttach and vRun to
16435 start multiple processes when in extended protocol mode.
16436
fc1ab1a0
PA
164372012-01-17 Pedro Alves <palves@redhat.com>
16438
16439 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16440 memalign plus mprotect to allocate the scratch buffer.
16441
7d5d4e98
PA
164422012-01-13 Pedro Alves <palves@redhat.com>
16443
16444 * server.c (attach_inferior): Clear `cont_thread'.
16445
f128d5e9
PA
164462012-01-13 Pedro Alves <palves@redhat.com>
16447
16448 * server.c (main): Avoid infinite loop while detaching/killing
16449 after a longjmp.
16450
06db92f0
DE
164512012-01-09 Doug Evans <dje@google.com>
16452
16453 * server.c (start_inferior): Set last_ptid in --wrapper case.
16454
32d92999
YQ
164552012-01-06 Yao Qi <yao@codesourcery.com>
16456
16457 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16458 defined.
16459 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16460
5e0a92a9
YQ
164612012-01-04 Yao Qi <yao@codesourcery.com>
16462
16463 * tracepoint.c (cmd_qtdp): Print debug message
16464 for static tracepoint.
16465
ae639e8c
YQ
164662012-01-04 Yao Qi <yao@codesourcery.com>
16467
16468 * tracepoint.c (trace_vdebug): Differentiate debug message
16469 between gdbserver and IPA.
16470
f72429c5
YQ
164712012-01-03 Yao Qi <yao@codesourcery.com>
16472
16473 * tracepoint.c (tracepoint_was_hit): Don't collect for
16474 static tracepoint.
16475
12c3e59c
JB
164762012-01-02 Joel Brobecker <brobecker@adacore.com>
16477
16478 * terminal.h: Reformat copyright header.
16479
67827812
JB
164802012-01-02 Joel Brobecker <brobecker@adacore.com>
16481
16482 * server.c (gdbserver_version): Update copyright year.
16483 * gdbreplay.c (gdbreplay_version): Likewise.
16484
3e52c33d
JK
164852011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16486
16487 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16488
16489 Revert:
16490 2011-12-18 Hui Zhu <teawater@gmail.com>
16491 * linux-low.c (linux_create_inferior): Save return value to ret.
16492
66f1260e
HZ
164932011-12-18 Hui Zhu <teawater@gmail.com>
16494
16495 * linux-low.c (linux_create_inferior): Save return value to ret.
16496
e77616d7
DE
164972011-12-16 Doug Evans <dje@google.com>
16498
e7b06c57
DE
16499 * linux-low.c (linux_create_inferior): If stdio connection,
16500 redirect stdin from /dev/null, stdout to stderr.
16501 * remote-utils.c (remote_is_stdio): New static global.
16502 (remote_connection_is_stdio): New function.
16503 (remote_prepare): Handle stdio connection.
16504 (remote_open): Ditto.
16505 (remote_close): Don't close stdin for stdio connections.
16506 (read_prim,write_prim): New functions. Replace all calls to
16507 read/write to these.
16508 * server.c (main): Watch for "-" argument. Move call to
16509 remote_prepare before start_inferior.
16510 * server.h (STDIO_CONNECTION_NAME): New macro.
16511 (remote_connection_is_stdio): Declare.
16512
e77616d7
DE
16513 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16514 in debugging output.
16515
82067193
YQ
165162011-12-15 Yao Qi <yao@codesourcery.com>
16517
16518 * tracepoint.c: Include sys/syscall.h.
16519 (gdb_ust_thread): Remove preprocessor conditional.
16520
82bfbe7e
PA
165212011-12-14 Pedro Alves <pedro@codesourcery.com>
16522
16523 * linux-low.c (linux_detach_one_lwp): Call
16524 the_low_target.prepare_to_resume before detaching.
16525
712c6575
YQ
165262011-12-14 Yao Qi <yao@codesourcery.com>
16527
16528 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16529 of write.
16530
d54d1edf
YQ
165312011-12-14 Yao Qi <yao@codesourcery.com>
16532
16533 * i386-low.c (i386_low_stopped_data_address): Initialize local
16534 variable `control'.
16535
6210a125
PA
165362011-12-13 Pedro Alves <pedro@codesourcery.com>
16537
16538 PR remote/13492
16539
16540 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16541 DR_CONTROL unless necessary. Extend comments.
16542 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16543 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16544
2ece8244
YQ
165452011-12-13 Yao Qi <yao@codesourcery.com>
16546
16547 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16548 macros.
16549 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16550
784867a5
JK
165512011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16552
16553 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16554 Print new debug message for such case.
16555
6bf36717
JK
165562011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16557
16558 Fix overlapping memcpy.
16559 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16560 the read_inferior_memory transfer.
16561 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16562 write_inferior_memory transfer.
16563 (set_fast_tracepoint_jump): New variable buf. Use it for the
16564 read_inferior_memory and write_inferior_memory transfers.
16565 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16566 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16567 Use it for the write_inferior_memory transfer.
16568 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16569 buffers.
16570
50275556
MR
165712011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16572
16573 * linux-low.c (fetch_register, store_register): Make code
16574 consistent, fix formatting.
16575
7325beb4
MR
165762011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16577
16578 * linux-low.c (usr_store_inferior_registers): Factor out code
16579 to handle individual registers into...
16580 (store_register): ... this new function.
16581
c642a434
UW
165822011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16583
16584 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16585 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16586 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16587 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16588 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16589 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16590 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16591 (srv_xmlfiles): Add new XML files.
16592
16593 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16594 and <sys/uio.h>.
16595 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16596 (init_registers_s390_linux32v1): Add prototype.
16597 (init_registers_s390_linux32v2): Likewise.
16598 (init_registers_s390_linux64v1): Likewise.
16599 (init_registers_s390_linux64v2): Likewise.
16600 (init_registers_s390x_linux64v1): Likewise.
16601 (init_registers_s390x_linux64v2): Likewise.
16602 (s390_num_regs): Increment to 52.
16603 (s390_regmap): Add orig_r2 register.
16604 (s390_num_regs_3264): Increment to 68.
16605 (s390_regmap_3264): Add orig_r2 register.
16606 (s390_collect_ptrace_register): Handle orig_r2 register.
16607 (s390_supply_ptrace_register): Likewise.
16608 (s390_fill_last_break): New function.
16609 (s390_store_last_break): Likewise.
16610 (s390_fill_system_call): New function.
16611 (s390_store_system_call): Likewise.
16612 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16613 register sets.
16614 (s390_check_regset): New function.
16615 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16616 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16617 Update target_regsets for available register sets.
16618
2268b414
JK
166192011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16620 Jan Kratochvil <jan.kratochvil@redhat.com>
16621
16622 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16623 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16624 New.
16625 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16626 * linux-low.h (struct process_info_private): New member r_debug.
16627 * server.c (handle_qxfer_libraries): Call
16628 the_target->qxfer_libraries_svr4.
16629 (handle_qxfer_libraries_svr4): New function.
16630 (qxfer_packets): New entry "libraries-svr4".
16631 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16632 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16633 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16634 PACKET_qXfer_libraries_svr4.
16635
d6db1fab
UW
166362011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16637
16638 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16639 PSW address/mask between 8-byte and 16-byte formats.
16640 (s390_supply_ptrace_register): Likewise.
16641 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16642 basic addressing mode bit.
16643
242f5f1c
SS
166442011-11-24 Stan Shebs <stan@codesourcery.com>
16645
16646 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16647
f196051f
SS
166482011-11-17 Stan Shebs <stan@codesourcery.com>
16649
16650 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16651 (tracing_start_time): New global.
16652 (tracing_stop_time): New global.
16653 (tracing_user_name): New global.
16654 (tracing_notes): New global.
16655 (tracing_stop_note): New global.
16656 (cmd_qtstart): Set traceframe_usage, start_time.
16657 (stop_tracing): Set stop_time.
16658 (cmd_qtstatus): Report additional status.
16659 (cmd_qtp): New function.
16660 (handle_tracepoint_query): Call it.
16661 (cmd_qtnotes): New function.
16662 (handle_tracepoint_general_set): Call it.
16663 (get_timestamp): Rename from tsv_get_timestamp.
16664
405f8e94
SS
166652011-11-14 Stan Shebs <stan@codesourcery.com>
16666 Kwok Cheung Yeung <kcy@codesourcery.com>
16667
16668 * linux-x86-low.c (small_jump_insn): New.
16669 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16670 trampoline and error message, build a trampoline and issue a small
16671 jump instruction to it.
16672 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16673 trampoline and error message.
16674 (x86_get_min_fast_tracepoint_insn_len): New.
16675 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16676 * linux-low.h (struct linux_target_ops): Add arguments to
16677 install_fast_tracepoint_jump_pad operation, add new operation.
16678 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16679 arguments.
16680 (linux_get_min_fast_tracepoint_insn_len): New function.
16681 (linux_target_op): Add new operation.
16682 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16683 (gdb_trampoline_buffer_end): Ditto.
16684 (gdb_trampoline_buffer_error): Ditto.
16685 (struct ipa_sym_addresses): Add fields for new IPA variables.
16686 (symbol_list): Add entries for new IPA variables.
16687 (struct tracepoint): Add fields to hold the address range of the
16688 trampoline used by the tracepoint.
16689 (trampoline_buffer_head): New static variable.
16690 (trampoline_buffer_tail): Ditto.
16691 (claim_trampoline_space): New function.
16692 (have_fast_tracepoint_trampoline_buffer): New function.
16693 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16694 structure.
16695 (install_fast_tracepoint): Ditto, also add error buffer argument.
16696 (cmd_qtminftpilen): New function.
16697 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16698 (fast_tracepoint_from_trampoline_address): New function.
16699 (fast_tracepoint_collecting): Handle trampoline as part of jump
16700 pad space.
16701 (set_trampoline_buffer_space): New function.
16702 (initialize_tracepoint): Initialize new IPA variables.
16703 * target.h (struct target_ops): Add arguments to
16704 install_fast_tracepoint_jump_pad operation, add new
16705 get_min_fast_tracepoint_insn_len operation.
16706 (target_get_min_fast_tracepoint_insn_len): New.
16707 (install_fast_tracepoint_jump_pad): Add arguments.
16708 * server.h (IPA_BUFSIZ): Define.
16709 * linux-i386-ipa.c: Include extra header files.
16710 (initialize_fast_tracepoint_trampoline_buffer): New function.
16711 (initialize_low_tracepoint): Call it.
16712 * server.h (set_trampoline_buffer_space): Declare.
16713 (claim_trampoline_space): Ditto.
16714 (have_fast_tracepoint_trampoline_buffer): Ditto.
16715
1e4d1764
YQ
167162011-11-14 Yao Qi <yao@codesourcery.com>
16717
16718 * server.c (handle_query): Handle InstallInTrace for qSupported.
16719 * tracepoint.c (add_tracepoint): Sort list.
16720 (install_tracepoint, download_tracepoint): New.
16721 (cmd_qtdp): Call them to install and download tracepoints.
16722 (sort_tracepoints): Removed.
16723 (cmd_qtstart): Update.
16724
5c73ff4e
YQ
167252011-11-14 Yao Qi <yao@codesourcery.com>
16726
16727 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16728 * mem-break.h: Declare.
16729 * tracepoint.c (cmd_qtstart): Move some code to ...
16730 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16731 New.
16732 (download_tracepoints): Move some code to ...
16733 (download_tracepoint_1): ... here. New.
16734
86a30030
YQ
167352011-11-08 Yao Qi <yao@codesourcery.com>
16736
16737 * remote-utils.c (relocate_instruction): A comment fix.
16738
8d26e50c
JB
167392011-11-07 Joel Brobecker <brobecker@adacore.com>
16740
16741 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16742 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16743 dr_status_mirror and dr_control_mirror from debug_reg_state.
16744 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16745 (i386_initial_stuff): Remove use of deleted globals.
16746 (i386_get_thread_context, i386_set_thread_context,
16747 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16748 from debug_reg_state.
16749
a59306a3
YQ
167502011-11-05 Yao Qi <yao@codesourcery.com>
16751
16752 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16753 address as TPOINT's.
16754
3065dfb6
SS
167552011-11-02 Stan Shebs <stan@codesourcery.com>
16756
16757 * tracepoint.c (agent_mem_read_string): New function.
16758 (eval_agent_expr): Call it for tracenz.
16759 * server.c (handle_query): Report support for tracenz.
16760
fd0d8c7c
YQ
167612011-11-02 Yao Qi <yao@codesourcery.com>
16762
16763 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16764
609086b1
YQ
167652011-11-02 Yao Qi <yao@codesourcery.com>
16766
16767 * target.h: Fix a typo in comment.
16768
b9fd1791
PA
167692011-10-31 Pedro Alves <pedro@codesourcery.com>
16770
16771 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16772 clobber the breakpoints' shadows with fast tracepoint jumps.
16773 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16774 * target.c (write_inferior_memory): Also pass MYADDR down to
16775 check_mem_write.
16776
03583c20
UW
167772011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16778
16779 * configure.ac: Check support for personality routine.
16780 * configure: Regenerate.
16781 * config.in: Likewise.
16782 * linux-low.c: Include <sys/personality.h>.
16783 Define ADDR_NO_RANDOMIZE if necessary.
16784 (linux_create_inferior): Disable address space randomization when
16785 forking inferior, if requested.
16786 (linux_supports_disable_randomization): New function.
16787 (linux_target_ops): Install it.
16788 * server.h (disable_randomization): Declare.
16789 * server.c (disable_randomization): New global variable.
16790 (handle_general_set): Handle QDisableRandomization.
16791 (handle_query): Likewise for qSupported.
16792 (main): Support --disable-randomization and --no-disable-randomization
16793 command line arguments.
16794 * target.h (struct target_ops): Add supports_disable_randomization.
16795 (target_supports_disable_randomization): New macro.
16796
723b724b
MF
167972011-09-29 Mike Frysinger <vapier@gentoo.org>
16798
16799 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16800 ifdef check.
16801 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16802 [!PT_GETDSBT] (target_loadmap): New definition.
16803 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16804 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16805 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16806 and PT_GETDSBT to LINUX_LOADMAP.
16807 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16808 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16809
55329a5c 168102011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16811
16812 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16813 (arm_linux_hwbp_cap): New static variable.
16814 (arm_linux_get_hwbp_cap): Replace by ...
16815 (arm_linux_init_hwbp_cap): ... this new function.
16816 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16817 (arm_linux_get_hw_watchpoint_count): Likewise.
16818 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16819 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16820 (arm_prepare_to_resume): Use perror_with_name instead of error.
16821
55329a5c 168222011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16823
16824 * linux-arm-low.c: Include <signal.h>.
16825 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16826 (struct arm_linux_hwbp_cap): New data type.
16827 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16828 (struct arm_linux_hw_breakpoint): New data type.
16829 (MAX_BPTS, MAX_WPTS): Define.
16830 (struct arch_process_info, struct arch_lwp_info): New data types.
16831 (arm_linux_get_hwbp_cap): New function.
16832 (arm_linux_get_hw_breakpoint_count): Likewise.
16833 (arm_linux_get_hw_watchpoint_count): Likewise.
16834 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16835 (arm_hwbp_control_initialize): Likewise.
16836 (arm_hwbp_control_is_enabled): Likewise.
16837 (arm_hwbp_control_is_initialized): Likewise.
16838 (arm_hwbp_control_disable): Likewise.
16839 (arm_linux_hw_breakpoint_equal): Likewise.
16840 (arm_linux_hw_point_initialize): Likewise.
16841 (struct update_registers_data): New data structure.
16842 (update_registers_callback: New function.
16843 (arm_insert_point): Likewise.
16844 (arm_remove_point): Likewise.
16845 (arm_stopped_by_watchpoint): Likewise.
16846 (arm_stopped_data_address): Likewise.
16847 (arm_new_process): Likewise.
16848 (arm_new_thread): Likewise.
16849 (arm_prepare_to_resume): Likewise.
16850 (the_low_target): Register arm_insert_point, arm_remove_point,
16851 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16852 arm_new_thread, and arm_prepare_to_resume.
16853
6b9801d4
SS
168542011-09-15 Stan Shebs <stan@codesourcery.com>
16855
16856 * server.h (struct emit_ops): Add compare-goto fields.
16857 * tracepoint.c (gdb_agent_op_sizes): New table.
16858 (emit_eq_goto): New function.
16859 (emit_ne_goto): New function.
16860 (emit_lt_goto): New function.
16861 (emit_le_goto): New function.
16862 (emit_gt_goto): New function.
16863 (emit_ge_goto): New function.
16864 (is_goto_target): New function.
16865 (compile_bytecodes): Recognize special cases of compare-goto
16866 combinations and call specialized emitters for them.
16867 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16868 (amd64_emit_ne_goto): New function.
16869 (amd64_emit_lt_goto): New function.
16870 (amd64_emit_le_goto): New function.
16871 (amd64_emit_gt_goto): New function.
16872 (amd64_emit_ge_goto): New function.
16873 (amd64_emit_ops): Add the new functions.
16874 (i386_emit_eq_goto): New function.
16875 (i386_emit_ne_goto): New function.
16876 (i386_emit_lt_goto): New function.
16877 (i386_emit_le_goto): New function.
16878 (i386_emit_gt_goto): New function.
16879 (i386_emit_ge_goto): New function.
16880 (i386_emit_ops): Add the new functions.
16881
bf15cbda
SS
168822011-09-08 Stan Shebs <stan@codesourcery.com>
16883
16884 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16885 (i386_emit_epilogue): Restore %ebx.
16886
943ca1dd
JZ
168872011-08-31 Jie Zhang <jzhang918@gmail.com>
16888
16889 * server.c (step_thread): Remove definition.
16890 (process_serial_event): Don't handle Hs.
16891 * server.h (step_thread): Remove declaration.
16892 * target.c (set_desired_inferior): Remove use of step_thread.
16893
e3deef73
LM
168942011-08-24 Luis Machado <lgustavo@codesourcery.com>
16895
16896 * linux-low.c: Include linux-procfs.h.
16897 (linux_attach_lwp_1): Update comments.
16898 (linux_attach): Scan for existing threads when attaching to a
16899 process that is the tgid.
16900 * Makefile.in: Update dependencies.
16901
13da1c97
LM
169022011-08-24 Luis Machado <lgustavo@codesourcery.com>
16903
16904 * configure.srv: Add linux-procfs.o dependencies.
16905
881127c9
YQ
169062011-08-14 Yao Qi <yao@codesourcery.com>
16907
16908 * target.h (struct target_ops): Fix indent.
16909 * win32-low.c (win32_target_ops): Fix comment.
16910
58dbd541
YQ
169112011-08-14 Andrew Jenner <andrew@codesourcery.com>
16912 Yao Qi <yao@codesourcery.com>
16913
16914 * Makefile.in (clean): Remove tic6x-*.c files.
16915 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16916 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16917 (tic6x-c64xp-linux.c): Likewise.
16918 * configure.srv: Add support for tic6x-*-uclinux.
16919 * linux-tic6x-low.c: New.
16920 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16921
78d85199
YQ
169222011-08-14 Andrew Stubbs <ams@codesourcery.com>
16923 Yao Qi <yao@codesourcery.com>
16924
16925 * target.h (struct target_ops): Add read_loadmap.
16926 * linux-low.c (struct target_loadseg): New type.
16927 (struct target_loadmap): New type.
16928 (linux_read_loadmap): New function.
16929 (linux_target_ops): Add linux_read_loadmap.
16930 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16931 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16932 to NULL.
78d85199 16933
a959a88d
EZ
169342011-08-05 Eli Zaretskii <eliz@gnu.org>
16935
16936 * win32-low.c: Include <stdint.h>.
16937
1ced966e
PA
169382011-07-22 Pedro Alves <pedro@codesourcery.com>
16939
16940 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16941 to the inferior here.
16942 (i386_remove_aligned_watchpoint): Ditto.
16943 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16944 fit part of the watchpoint in the debug registers.
16945 (i386_update_inferior_debug_regs): New.
16946 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16947 registers, and only update the inferior on success.
16948 (i386_low_remove_watchpoint): Ditto.
16949
d26e3629
KY
169502011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16951
16952 * linux-low.c (compare_ints, unique, list_threads, show_process,
16953 linux_core_of_thread): Delete.
16954 (linux_target_ops): Change linux_core_of_thread to
16955 linux_common_core_of_thread.
16956 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16957 * utils.c (malloc_failure): Change type of argument.
16958 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16959 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16960 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16961 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16962 (IPA_OBJS): Add common-utils-ipa.o.
16963 (ptid_h, linux_osdata_h): New macros.
16964 (server_h): Add common/common-utils.h, common/xml-utils.h,
16965 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16966 common/ptid.h.
16967 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16968 ptid.o, buffer.o): New rules.
16969 (linux-low.o): Add common/linux-osdata.h as a dependency.
16970 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16971 * configure.ac: Add AC_HEADER_DIRENT check.
16972 * config.in: Regenerate.
16973 * configure: Regenerate.
16974 * remote-utils.c (xml_escape_text): Delete.
16975 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16976 buffer_xml_printf): Move to common/buffer.c.
16977 * server.c (main): Remove call to initialize_inferiors.
16978 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16979 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16980 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16981 internal_error, gdb_assert, gdb_assert_fail): Delete.
16982 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16983 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16984 common/buffer.h.
16985 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16986 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16987 initialize_inferiors): Delete.
16988
2275a1a7
PA
169892011-07-20 Pedro Alves <pedro@codesourcery.com>
16990
16991 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16992 symbol error.
16993
0a5b1e09
PA
169942011-05-31 Pedro Alves <pedro@codesourcery.com>
16995
16996 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16997 assertion.
16998 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16999
6938fd34
YQ
170002011-05-26 Yao Qi <yao@codesourcery.com>
17001
17002 * Makefile.in (thread-db.o): Track dependence to
17003 common/gdb_thread_db.h.
17004 * thread-db.c: include gdb_thread_db.h from right place.
17005
b481f9e0
TT
170062011-05-16 Adrian Cornish <gnu@bluedreamer.com>
17007
17008 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
17009 __FILE__ and __LINE__ to internal_error.
17010
98a5dd13
DE
170112011-05-13 Doug Evans <dje@google.com>
17012
17013 * thread-db.c (try_thread_db_load_from_sdir): New function.
17014 (try_thread_db_load_from_dir): New function.
17015 (thread_db_load_search): Handle $sdir, ignore $pdir.
17016 Remove trying of system directories if search of
17017 libthread-db-search-path fails, that is now done via $sdir.
17018
d248b706
KY
170192011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
17020
17021 * server.c (handle_query): Add EnableDisableTracepoints to the list
17022 of supported features.
43aaf8b6 17023 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 17024 tracepoints.
43aaf8b6
PA
17025 (cmd_qtenable_disable): New.
17026 (cmd_qtstart): Install tracepoints even if disabled.
17027 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
17028 receiving a QTEnable or QTDisable packet.
17029 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17030 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17031 tracepoints.
17032 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 17033
84e578fb
DE
170342011-05-10 Doug Evans <dje@google.com>
17035
17036 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17037
71f55dd8
DE
170382011-05-04 Doug Evans <dje@google.com>
17039
17040 * linux-low.c (linux_join): Skip process lookup.
17041 * spu-low.c (spu_join): Ditto.
17042 * server.c (join_inferiors_callback): Delete.
17043 (process_serial_event): For 'D' packet (detach) call join_inferior
17044 directly.
17045
4d393d60
JM
170462011-05-04 Joseph Myers <joseph@codesourcery.com>
17047
17048 * README: Don't mention xscale*-*-linux*.
17049 * configure.srv (xscale*-*-linux*): Don't handle target.
17050
b00ad6ff
NF
170512011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17052
17053 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17054 casting pointers.
17055 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17056 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17057 (i386_emit_void_call_2): Likewise.
17058
af96c192
YQ
170592011-04-26 Yao Qi <yao@codesourcery.com>
17060
43aaf8b6
PA
17061 * linux-low.c: Move common macros to linux-ptrace.h.
17062 Include linux-ptrace.h.
af96c192
YQ
17063 * Makefile.in (linux_ptrace_h): New.
17064 (linux-low.o): Depends on linux-ptrace.h.
17065
03f2bd59
JK
170662011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17067
17068 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17069 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17070 (remote_prepare): New function with most of the TCP code from ...
17071 (remote_open): ... here. Detect PORT here unconditionally. Move also
17072 setting transport_is_reliable.
17073 * server.c (run_once): New variable.
17074 (gdbserver_usage): Document it.
17075 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17076 the first run if RUN_ONCE.
17077 * server.h (run_once, remote_prepare): New declarations.
17078
7a9dd1b2
TT
170792011-04-19 Tom Tromey <tromey@redhat.com>
17080
17081 * win32-low.c (handle_load_dll): Remove duplicate "the".
17082
81239425
PM
170832011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17084
17085 Remove support for old Cygwin 1.5 versions.
17086 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17087 function to avoid warning.
17088 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17089 warning.
17090
9e0627f1
PM
170912011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17092
17093 * gdbserver/server.h (Macro _): Define it if not available.
17094
588eebee
MS
170952011-03-14 Michael Snyder <msnyder@vmware.com>
17096
348af9f7 17097 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 17098
43f70d4c
JB
170992011-03-10 Joel Brobecker <brobecker@adacore.com>
17100
17101 * Makefile.in (maintainer-clean realclean distclean): Remove
17102 "make ... subdir_do" command.
17103
348af9f7
MS
171042011-03-10 Michael Snyder <msnyder@vmware.com>
17105
17106 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17107
17108 * server.c (handle_v_run): Free alloced buffer on early return.
17109
e637a4f5
YQ
171102011-03-09 Yao Qi <yao@codesourcery.com>
17111
17112 Revert:
17113 2011-03-04 Yao Qi <yao@codesourcery.com>
17114
17115 * Makefile.in: Remove GNU make feature --directory.
17116
17117 2011-03-05 Yao Qi <yao@codesourcery.com>
17118
17119 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17120 (subdir_do): New make target. Copied from gdb/Makefile.
17121 (maintainer-clean, realclean, distclean, clean): Call corresponding
17122 make targets in common/Makefile.
17123
17124 2011-02-11 Yao Qi <yao@codesourcery.com>
17125
17126 * configure.ac: Call AC_PROG_RANLIB.
17127 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17128 * configure: Regenerate.
17129
e6edda56
JK
171302011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17131
17132 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17133
e5141119
JB
171342011-03-06 Yao Qi <yao@codesourcery.com>
17135
17136 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17137
64794aa4
JB
171382011-03-05 Yao Qi <yao@codesourcery.com>
17139
17140 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17141 (subdir_do): New make target. Copied from gdb/Makefile.
17142 (maintainer-clean, realclean, distclean, clean): Call corresponding
17143 make targets in common/Makefile.
17144
7a762829
YQ
171452011-03-04 Yao Qi <yao@codesourcery.com>
17146
17147 * Makefile.in: Remove GNU make feature --directory.
17148
348af9f7
MS
171492011-03-04 Michael Snyder <msnyder@vmware.com>
17150
17151 * server.c (queue_stop_reply): Call xmalloc not malloc.
17152
171532011-03-02 Michael Snyder <msnyder@vmware.com>
17154
17155 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17156
9f72fee2
MS
171572011-02-28 Michael Snyder <msnyder@vmware.com>
17158
588eebee
MS
17159 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17160 (cmd_qtframe): Ditto.
17161 (cmd_qtbuffer): Ditto.
17162 (cmd_bigqtbuffer): Ditto.
17163
9f72fee2
MS
17164 * utils.c (decimal2str): Initialize 'width' to nine, then
17165 don't mess with it.
17166
8040bd49
UW
171672011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17168
17169 * hostio.c (require_data): Free *data, not data.
17170
7e52cbd0
JK
171712011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17172
17173 * hostio.c (require_data): Use free, not xfree.
17174
9130f83e
MS
171752011-02-27 Michael Snyder <msnyder@vmware.com>
17176
4b812f4e
MS
17177 * server.c (handle_query): Discard unused value.
17178
9130f83e
MS
17179 * hostio.c (require_data): Free malloc memory before returning
17180 error.
17181
69d37113
MS
171822011-02-26 Michael Snyder <msnyder@vmware.com>
17183
17184 * linux-low.c (list_threads): Call closedir for dirent.
17185
35f5825a
MS
171862011-02-27 Michael Snyder <msnyder@vmware.com>
17187
2a589cef
MS
17188 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17189 a case statement falls through.
17190
0adea5f7
MS
17191 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17192
35f5825a
MS
17193 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17194 in comparison.
17195
238f1c74
MS
171962011-02-26 Michael Snyder <msnyder@vmware.com>
17197
17198 * utils.c (decimal2str): Eliminate dead code and dead param.
17199 (pulongest): Drop dead param from call to decimal2str.
17200 (plongest): Ditto.
17201
633ff500
JB
172022011-02-24 Joel Brobecker <brobecker@adacore.com>
17203
17204 Revert the following patch (not approved yet):
17205 2011-02-21 Hui Zhu <teawater@gmail.com>
17206 * tracepoint.c (tp_printf): New function.
17207 (eval_agent_expr): Handle gdb_agent_op_printf.
17208
f9c6ff72
HZ
172092011-02-21 Hui Zhu <teawater@gmail.com>
17210
17211 * tracepoint.c (tp_printf): New function.
17212 (eval_agent_expr): Handle gdb_agent_op_printf.
17213
94d5e490
TT
172142011-02-18 Tom Tromey <tromey@redhat.com>
17215
17216 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17217 (tracepoint.o): Likewise.
17218 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17219 (gdb_agent_op_names): Likewise.
17220
c7f96d2b
TT
172212011-02-18 Tom Tromey <tromey@redhat.com>
17222
17223 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17224 gdb_agent_op_rot>: New constants.
17225 (gdb_agent_op_names): Add pick and roll.
17226 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17227 cases.
17228
0feedb2c
JK
172292011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17230
17231 * aclocal.m4: Regenerated with aclocal-1.11.1.
17232
b3b9301e
PA
172332011-02-14 Pedro Alves <pedro@codesourcery.com>
17234
17235 * server.c (handle_qxfer_traceframe_info): New.
17236 (qxfer_packets): Register "traceframe-info".
17237 (handle_query): Report support for qXfer:traceframe-info:read+.
17238 * tracepoint.c (match_blocktype): New.
17239 (traceframe_find_block_type): Rename to ...
17240 (traceframe_walk_blocks): ... this. Add callback filter argument,
17241 and use it.
17242 (traceframe_find_block_type): New, reimplemented on top of
17243 traceframe_walk_blocks.
17244 (build_traceframe_info_xml): New.
17245 (traceframe_read_info): New.
17246 * server.h (traceframe_read_info): Declare.
17247
4f3e6fb7
YQ
172482011-02-11 Yao Qi <yao@codesourcery.com>
17249
17250 * configure.ac: Call AC_PROG_RANLIB.
17251 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17252 * configure: Regenerate.
17253
764880b7
PA
172542011-02-07 Pedro Alves <pedro@codesourcery.com>
17255
17256 * server.c (gdb_read_memory): Change return semantics to allow
17257 partial transfers.
17258 (handle_search_memory_1): Adjust.
17259 (process_serial_event) <'m' packet>: Handle partial transfers.
17260 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17261
1c79eb8a
PA
172622011-01-28 Pedro Alves <pedro@codesourcery.com>
17263
17264 * regcache.c (init_register_cache): Initialize
17265 regcache->register_status.
17266 (free_register_cache): Release regcache->register_status.
17267 (regcache_cpy): Copy register_status.
17268 (registers_to_string): Print 'x's for unavailable registers.
17269 (supply_register): Mark the register's status valid or
17270 unavailable, depending on whether a buffer was passed in or not.
17271 (supply_register_zeroed): New.
17272 (supply_regblock): Mark the registers' status valid or
17273 unavailable, depending on whether a buffer was passed in or not.
17274 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17275 (struct regcache): New `register_status' field.
17276 (supply_register_zeroed): Declare.
17277 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17278 supply_register_zeroed, rather than passing a NULL buffer to
17279 supply_register.
17280 * tracepoint.c (fetch_traceframe_registers): Update comment.
17281
85724a0e
PA
172822011-01-28 Pedro Alves <pedro@codesourcery.com>
17283
17284 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17285 buffer explicit.
17286
d08aafef
PA
172872011-01-25 Pedro Alves <pedro@codesourcery.com>
17288
17289 * server.h (decode_xfer_write): Change prototype.
17290 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17291 and don't extract the annex here.
17292 * server.c (decode_xfer_read): Remove `annex' parameter,
17293 and don't extract the annex here.
17294 (decode_xfer): New.
17295 (struct qxfer): New.
17296 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17297 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17298 (handle_qxfer_statictrace): New functions, abstracted out from
17299 handle_query, and made to use the struct qxfer interface.
17300 (handle_threads_qxfer_proper): Rename to ...
17301 (handle_qxfer_threads_proper): ... this.
17302 (handle_threads_qxfer): Rename to ...
17303 (handle_qxfer_threads): ... this. Adjust.
17304 (qxfer_packets): New array.
17305 (handle_qxfer): New function.
17306 (handle_query): Use handle_qxfer.
17307
493e2a69
MS
173082011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17309
17310 * gdbreplay.c: Shorten lines of >= 80 columns.
17311 * linux-low.c: Ditto.
17312 * linux-ppc-low.c: Ditto.
17313 * linux-s390-low.c: Ditto.
17314 * linux-sparc-low.c: Ditto.
17315 * linux-x86-low.c: Ditto.
17316 * linux-xtensa-low.c: Ditto.
17317 * mem-break.c: Ditto.
17318 * nto-low.c: Ditto.
17319 * regcache.h: Ditto.
17320 * remote-utils.c: Ditto.
17321 * server.c: Ditto.
17322 * server.h: Ditto.
17323 * thread-db.c: Ditto.
17324 * tracepoint.c: Ditto.
17325 * utils.c: Ditto.
17326 * win32-low.h: Ditto.
17327
44944448
JB
173282011-01-05 Joel Brobecker <brobecker@adacore.com>
17329
17330 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17331 update.
17332
71ce852c
JB
173332011-01-01 Joel Brobecker <brobecker@adacore.com>
17334
17335 * server.c (gdbserver_version): Update copyright year in version
17336 output.
17337 * gdbreplay.c (gdbreplay_version): Ditto.
17338
eb826dc6
MF
173392010-12-29 Jie Zhang <jie.zhang@analog.com>
17340
17341 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17342 * linux-bfin-low.c: New file.
17343 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17344 PT_DATA_ADDR for BFIN targets.
17345 * Makefile.in (SFILES): Add linux-bfin-low.c.
17346 (clean): Remove reg-bfin.c.
17347 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17348 * README: Mention supported Blackfin targets.
17349
39ab222a
MF
173502010-12-23 Mike Frysinger <vapier@gentoo.org>
17351
17352 * .gitignore: New file.
17353
a1f2ce7d
MF
173542010-11-16 Mike Frysinger <vapier@gentoo.org>
17355
17356 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17357
f474844c
JZ
173582010-10-22 Jie Zhang <jie@codesourcery.com>
17359
17360 * Makefile.in: Add FLAGS_TO_PASS variable.
17361 (install): Remove dependency of install-only and recursively
17362 invoke make for install-only.
17363
f1048712
DE
173642010-10-04 Doug Evans <dje@google.com>
17365
17366 * Makefile.in (uninstall): Use $(DESTDIR).
17367
b53a1623
PA
173682010-09-24 Pedro Alves <pedro@codesourcery.com>
17369
e6ee044d
PA
17370 PR gdb/11842
17371
b53a1623
PA
17372 * linux-x86-low.c (compat_siginfo_from_siginfo)
17373 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17374 si_code is < 0. Check for si_code == SI_TIMER before checking for
17375 si_code < 0.
17376
fa1bd1e4
JB
173772010-09-13 Joel Brobecker <brobecker@adacore.com>
17378
17379 * lynx-i386-low.c: New file.
17380 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17381
47fac8f8
JB
173822010-09-13 Joel Brobecker <brobecker@adacore.com>
17383
17384 * lynx-low.c (ptrace_request_to_str): Remove handling for
17385 request values that have been removed in LynxOS 5.x.
17386
1adfc54d
JB
173872010-09-13 Joel Brobecker <brobecker@adacore.com>
17388
17389 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17390 <ptrace.h>
17391
c2a66c29
NS
173922010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17393
17394 * configure.ac: Add --enable-inprocess-agent option.
17395 * configure: Rebuilt.
17396
32fcada3
YQ
173972010-09-06 Yao Qi <yao@codesourcery.com>
17398
17399 * linux-low.c (linux_kill): Remove unused variable.
17400 (linux_stabilize_threads): Likewise.
17401 * server.c (start_inferior): Likewise.
17402 (queue_stop_reply_callback): Likewise.
17403 * tracepoint.c (do_action_at_tracepoint): Likewise.
17404
0cccb683
YQ
174052010-09-06 Yao Qi <yao@codesourcery.com>
17406
17407 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17408 on return.
17409
423ec54c
JK
174102010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17411
17412 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17413
12ac6819
PA
174142010-09-06 Pedro Alves <pedro@codesourcery.com>
17415
17416 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17417 "$(IPA_DEPFILES)".
17418
8ed54b31
JB
174192010-09-01 Joel Brobecker <brobecker@adacore.com>
17420
17421 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17422 gdbserver/lynx-ppc-low.c: New files.
17423 * Makefile.in (lynx_low_h): New variable.
17424 (lynx-low.o, lynx-ppc-low.o): New rules.
17425 * configure.ac: On LynxOS, link with -lnetinet.
17426 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17427 * configure: regenerate.
17428
bb0116a4
JB
174292010-09-01 Joel Brobecker <brobecker@adacore.com>
17430
17431 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17432 * configure.ac: Add check for vasprintf and vsnprintf.
17433 * configure, config.in: Regenerate.
17434 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17435
a778ab81 174362010-09-01 Joel Brobecker <brobecker@adacore.com>
17437
17438 * gdbreplay.c: Move include of alloca.h up, next to include of
17439 malloc.h.
17440 * server.h: Add include of malloc.h.
17441 * mem-break.c: Remove include of malloc.h.
17442 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17443
8b034a19 174442010-09-01 Joel Brobecker <brobecker@adacore.com>
17445
17446 * Makefile.in (memmem.o): Build with -Wno-error.
17447
174482010-09-01 Joel Brobecker <brobecker@adacore.com>
17449
17450 * utils.c (xsnprintf): Make non-static.
17451 * server.h: Add xsnprintf declaration.
17452 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17453 replace calls to snprintf by calls to xsnprintf throughout.
17454
174552010-09-01 Joel Brobecker <brobecker@adacore.com>
17456
17457 * configure.ac: Add configure check for alloca.
17458 * configure, config.in: Regenerate.
17459 * server.h: Include alloca.h if it exists.
17460 * gdbreplay.c: Include alloca.h if it exists.
17461
1a981360
PA
174622010-08-28 Pedro Alves <pedro@codesourcery.com>
17463
17464 * linux-low.c (__SIGRTMIN): Define if not already defined.
17465 (linux_create_inferior): Check for __ANDROID__ rather than
17466 __SIGRTMIN.
17467 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17468 are already deferred.
17469 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17470 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17471 stopped and already has a pending signal to report.
17472 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17473 a pending signal to report or is moving out of a jump pad.
17474 (linux_init_signals): Check for __ANDROID__ rather than
17475 __SIGRTMIN.
17476
b4d51a55
PA
174772010-08-28 Pedro Alves <pedro@codesourcery.com>
17478
17479 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17480 debug_threads check. Avoid a linear search when not doing debug
17481 output.
17482
ec48365d
PA
174832010-08-27 Pedro Alves <pedro@codesourcery.com>
17484
17485 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17486 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17487 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17488 (process_event): Change local fd's type to gdb_fildes_t.
17489 (create_file_handler): Adjust prototype.
17490 (delete_file_handler): Adjust prototype.
17491 (handle_file_event): Adjust prototype. Use pfildes.
17492 (create_file_event): Adjsut prototype.
17493 * remote-utils.c (remote_desc, listen_desc): Change type to
17494 gdb_fildes_t.
17495 * server.h: New gdb_fildes_t typedef.
17496 [USE_WIN32API]: Include winsock2.h.
17497 (delete_file_handler, add_file_handler): Adjust prototypes.
17498 (pfildes): Declare.
17499 * utils.c (pfildes): New.
17500
854d88f0
PA
175012010-08-27 Pedro Alves <pedro@codesourcery.com>
17502
17503 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17504 * configure: Regenerate.
17505
0146f85b
PA
175062010-08-27 Pedro Alves <pedro@codesourcery.com>
17507
17508 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17509 (linux_done_accessing_memory): ... this.
17510 (linux_target_ops): Adjust.
17511 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17512 * nto-low.c (nto_target_ops): Adjust comment.
17513 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17514 * spu-low.c (spu_target_ops): Adjust comment.
17515 * target.h (target_ops): Rename unprepare_to_access_memory field
17516 to done_accessing_memory.
17517 (unprepare_to_access_memory): Rename to ...
17518 (done_accessing_memory): ... this.
17519
90d74c30
PA
175202010-08-26 Pedro Alves <pedro@codesourcery.com>
17521
17522 * linux-low.c (linux_prepare_to_access_memory): New.
17523 (linux_unprepare_to_access_memory): New.
17524 (linux_target_ops): Install them.
17525 * server.c (read_memory): Rename to ...
17526 (gdb_read_memory): ... this. Use
17527 prepare_to_access_memory/prepare_to_access_memory.
17528 (write_memory): Rename to ...
17529 (gdb_write_memory): ... this. Use
17530 prepare_to_access_memory/prepare_to_access_memory.
17531 (handle_search_memory_1): Adjust.
17532 (process_serial_event): Adjust.
17533 * target.h (struct target_ops): New fields
17534 prepare_to_access_memory and unprepare_to_access_memory.
17535 (prepare_to_access_memory, unprepare_to_access_memory): New.
17536 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17537 prepare_to_access_memory/prepare_to_access_memory.
17538 * nto-low.c (nto_target_ops): Adjust.
17539 * spu-low.c (spu_target_ops): Adjust.
17540 * win32-low.c (win32_target_ops): Adjust.
17541
fd467969
PA
175422010-08-26 Pedro Alves <pedro@codesourcery.com>
17543
17544 * Makefile.in (WARN_CFLAGS): Get it from configure.
17545 (WERROR_CFLAGS): New.
17546 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17547 * configure.ac: Introduce --enable-werror, which adds -Werror to
17548 the compiler command line. Enabled by default. Disable with
17549 --disable-werror. Add -Wdeclaration-after-statement
17550 Wpointer-arith and -Wformat-nonliteral to warning flags.
17551 * configure: Regenerate.
17552
331e2f5f
PA
175532010-08-26 Pedro Alves <pedro@codesourcery.com>
17554
17555 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17556
e581f2b4
PA
175572010-08-26 Pedro Alves <pedro@codesourcery.com>
17558
17559 * gdbreplay.c (remote_error): New.
17560 (gdbchar): New.
17561 (expect): Use gdbchar. Check for error reading from GDB.
17562 Clarify sync error output.
17563 (play): Check for errors writing to GDB.
17564 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17565 * remote-utils.c (getpkt): Check for errors writing to the remote
17566 descriptor.
17567
3c11dd79
PA
175682010-08-25 Pedro Alves <pedro@codesourcery.com>
17569
17570 * linux-low.c (linux_wait_1): Move non-debugging code out of
17571 `debug_threads' control.
17572
d20a8ad9
PA
175732010-08-25 Pedro Alves <pedro@codesourcery.com>
17574
17575 * linux-low.c (linux_wait_1): Don't set last_status here.
17576 * server.c (push_event, queue_stop_reply_callback): Assert we're
17577 not pushing a TARGET_WAITKIND_IGNORE event.
17578 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17579 (myresume, handle_target_event): Set the thread's last_resume_kind
17580 and last_status from the target returned status.
17581
964e4306
PA
175822010-08-25 Pedro Alves <pedro@codesourcery.com>
17583
17584 PR threads/10729
17585
17586 * linux-x86-low.c (update_debug_registers_callback): New.
17587 (i386_dr_low_set_addr): Use it.
17588 (i386_dr_low_get_addr): New.
17589 (i386_dr_low_set_control): Use update_debug_registers_callback.
17590 (i386_dr_low_get_control): New.
17591 (i386_dr_low_get_status): Adjust.
17592 * linux-low.c (linux_stop_lwp): New.
17593 * linux-low.h (linux_stop_lwp): Declare.
17594
17595 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17596 argument instead of a i386_debug_reg_state.
17597 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17598 a i386_debug_reg_state.
17599 (i386_insert_aligned_watchpoint): Adjust.
17600 (i386_remove_aligned_watchpoint): Adjust.
17601 (i386_low_stopped_data_address): Read the debug registers from the
17602 inferior instead of from the mirrors.
17603 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17604 (i386_dr_low_get_addr): Declare.
17605 (i386_dr_low_get_control): Declare.
17606 (i386_dr_low_get_status): Change prototype.
17607
17608 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17609 (i386_dr_low_get_addr): New.
17610 (i386_dr_low_get_control): New.
17611 (i386_dr_low_get_status): Adjust prototype. Return
17612 dr_status_mirror.
17613 (i386_initial_stuff): Clear dr_status_mirror and
17614 dr_control_mirror.
17615 (i386_get_thread_context): Adjust.
17616 (i386_set_thread_context): Adjust.
17617 (i386_thread_added): Adjust.
17618
5f21a75b
PA
176192010-08-24 Pedro Alves <pedro@codesourcery.com>
17620
17621 * linux-low.h (linux_thread_area): Delete declaration.
17622
3e4c1235
TS
176232010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17624
17625 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17626 after its termination.
17627
1971b033
PA
176282010-08-09 Pedro Alves <pedro@codesourcery.com>
17629
17630 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17631 (gdb_wants_all_stopped): Delete.
17632 (linux_wait_1): Don't call them.
17633 * server.c (handle_v_cont): Tag all threads as want-stopped.
17634 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17635 stopped as "client-wants-stopped".
17636
310444ac
PA
176372010-07-31 Pedro Alves <pedro@codesourcery.com>
17638
17639 * Makefile.in (signals_h): New.
17640 (server_h): Depend on it.
17641 (server.o): Don't depend on $(signals_def).
17642 (signals.o): Depend on $(signals_def).
17643
a19cae16
JK
176442010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17645
17646 * Makefile.in (signals_def): New.
17647 (server_h): Append include/gdb/signals.h and signals_def.
17648 (server.o): Append signals_def.
17649
30d50328
JK
176502010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17651
17652 * server.c (handle_target_event): Use target_signal_to_host for
17653 resume_info.sig initialization.
17654 * target.h (struct thread_resume) <sig>: New comment.
17655
5c3216e2
OS
176562010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17657
c6f46ca0
OS
17658 * server.c (handle_query): strcpy() the returned string from paddress()
17659 instead of sprintf().
5c3216e2
OS
17660 * utils.c (paddress): Return phex_nz().
17661
6bd31874
JB
176622010-07-07 Joel Brobecker <brobecker@adacore.com>
17663
17664 * server.c (handle_v_cont): Call mourn_inferior if process
17665 just exited.
17666 (myresume): Likewise.
17667
0fb4aa4b
PA
176682010-07-01 Pedro Alves <pedro@codesourcery.com>
17669
17670 Static tracepoints, and integration with UST.
17671
17672 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17673 * mem-break.c (uninsert_all_breakpoints)
17674 (reinsert_all_breakpoints): New.
17675 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17676 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17677 (gdb_agent_ust_loaded, helper_thread_id)
17678 (gdb_agent_helper_thread_id): New macros.
17679 (struct ipa_sym_addresses): Add addr_ust_loaded,
17680 addr_helper_thread_id, addr_cmd_buf.
17681 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17682 (in_process_agent_loaded_ust): New.
17683 (write_e_ust_not_loaded): New.
17684 (maybe_write_ipa_ust_not_loaded): New.
17685 (struct collect_static_trace_data_action): New.
17686 (enum tracepoint_type) <static_tracepoint>: New.
17687 (struct tracepoint) <handle>: Mention static tracepoints.
17688 (struct static_tracepoint_ctx): New.
17689 (CMD_BUF_SIZE): New.
17690 (add_tracepoint_action): Handle static tracepoint actions.
17691 (unprobe_marker_at): New.
17692 (clear_installed_tracepoints): Handle static tracepoints.
17693 (cmd_qtdp): Handle static tracepoints.
17694 (probe_marker_at): New.
17695 (cmd_qtstart): Handle static tracepoints.
17696 (response_tracepoint): Handle static tracepoints.
17697 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17698 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17699 (get_context_regcache): Handle static tracepoints.
17700 (do_action_at_tracepoint): Handle static tracepoint actions.
17701 (traceframe_find_block_type): Handle static trace data blocks.
17702 (traceframe_read_sdata): New.
17703 (download_tracepoints): Download static tracepoint actions.
17704 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17705 (GDB_PROBE_NAME): New.
17706 (ust_ops): New.
17707 (GET_UST_SYM): New.
17708 (USTF): New.
17709 (dlsym_ust): New.
17710 (ust_marker_to_static_tracepoint): New.
17711 (gdb_probe): New.
17712 (collect_ust_data_at_tracepoint): New.
17713 (gdb_ust_probe): New.
17714 (UNIX_PATH_MAX, SOCK_DIR): New.
17715 (gdb_ust_connect_sync_socket): New.
17716 (resume_thread, stop_thread): New.
17717 (run_inferior_command): New.
17718 (init_named_socket): New.
17719 (gdb_ust_socket_init): New.
17720 (cstr_to_hexstr): New.
17721 (next_st): New.
17722 (first_marker, next_marker): New.
17723 (response_ust_marker): New.
17724 (cmd_qtfstm, cmd_qtsstm): New.
17725 (unprobe_marker_at, probe_marker_at): New.
17726 (cmd_qtstmat, gdb_ust_thread): New.
17727 (gdb_ust_init): New.
17728 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17729 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17730 (ST_REGENTRY): New.
17731 (x86_64_st_collect_regmap): New.
17732 (X86_64_NUM_ST_COLLECT_GREGS): New.
17733 (AMD64_RIP_REGNUM): New.
17734 (supply_static_tracepoint_registers): New.
17735 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17736 (ST_REGENTRY): New.
17737 (i386_st_collect_regmap): New.
17738 (i386_NUM_ST_COLLECT_GREGS): New.
17739 (supply_static_tracepoint_registers): New.
17740 * server.c (handle_query): Handle qXfer:statictrace:read.
17741 <qSupported>: Report support for StaticTracepoints, and
17742 qXfer:statictrace:read features.
17743 * server.h (traceframe_read_sdata)
17744 (supply_static_tracepoint_registers): Declare.
17745 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17746 (unpack_varlen_hex): Include in IPA build.
17747 * Makefile.in (ustlibs, ustinc): New.
17748 (IPA_OBJS): Add remote-utils-ipa.o.
17749 ($(IPA_LIB)): Link -ldl and -lpthread.
17750 (UST_CFLAGS): New.
17751 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17752 * config.in, configure: Regenerate.
17753
9e4344e5
PA
177542010-06-20 Ian Lance Taylor <iant@google.com>
17755 Pedro Alves <pedro@codesourcery.com>
17756
17757 * linux-x86-low.c (always_true): Delete.
17758 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17759 trying to fool the compiler with always_true.
17760
c6beb2cb
PA
177612010-06-20 Pedro Alves <pedro@codesourcery.com>
17762
17763 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17764 conditions in gdbserver.
17765
d2ed6730
UW
177662010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17767
17768 * spu-low.c (spu_read_memory): Wrap around local store limit.
17769 (spu_write_memory): Likewise.
17770
4e29fb54
PA
177712010-06-15 Pedro Alves <pedro@codesourcery.com>
17772
17773 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17774 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17775 LONGEST uses.
17776 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17777 uses.
17778 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17779 uses with LONGEST uses.
17780
6a271cae
PA
177812010-06-14 Stan Shebs <stan@codesourcery.com>
17782 Pedro Alves <pedro@codesourcery.com>
17783
17784 Bytecode compiler.
17785
17786 * linux-x86-low.c: Include limits.h.
17787 (add_insns): New.
17788 (always_true): New.
17789 (EMIT_ASM): New.
17790 (EMIT_ASM32): New.
17791 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17792 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17793 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17794 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17795 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17796 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17797 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17798 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17799 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17800 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17801 (amd64_emit_void_call_2): New.
17802 (amd64_emit_ops): New.
17803 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17804 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17805 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17806 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17807 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17808 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17809 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17810 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17811 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17812 (i386_emit_stack_adjust, i386_emit_int_call_1)
17813 (i386_emit_void_call_2): New.
17814 (i386_emit_ops): New.
17815 (x86_emit_ops): New.
17816 (the_low_target): Install x86_emit_ops.
17817 * server.h (struct emit_ops): New.
17818 (get_raw_reg_func_addr): Declare.
17819 (current_insn_ptr, emit_error): Declare.
17820 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17821 (set_trace_state_variable_value): New defines.
17822 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17823 addr_get_trace_state_variable_value and
17824 addr_set_trace_state_variable_value.
17825 (symbol_list): New fields for get_raw_reg,
17826 get_trace_state_variable_value and set_trace_state_variable_value.
17827 (condfn): New typedef.
17828 (struct tracepoint): New field `compiled_cond'.
17829 (do_action_at_tracepoint): Clear compiled_cond.
17830 (get_trace_state_variable_value, set_trace_state_variable_value):
17831 Export in the IPA.
17832 (condition_true_at_tracepoint): If there's a compiled condition,
17833 run that.
17834 (current_insn_ptr, emit_error): New globals.
17835 (struct bytecode_address): New.
17836 (get_raw_reg_func_addr): New.
17837 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17838 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17839 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17840 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17841 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17842 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17843 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17844 (compile_tracepoint_condition, compile_bytecodes): New.
17845 * target.h (emit_ops): Forward declare.
17846 (struct target_ops): New field emit_ops.
17847 (target_emit_ops): New.
17848 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17849 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17850 * linux-low.c (linux_emit_ops): New.
17851 (linux_target_ops): Install it.
17852 * linux-low.h (struct linux_target_ops): New field emit_ops.
17853
92b72907
UW
178542010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17855
17856 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17857 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17858
fa593d66
PA
178592010-06-01 Pedro Alves <pedro@codesourcery.com>
17860 Stan Shebs <stan@codesourcery.com>
17861
17862 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17863 (all): Depend on $(extra_libraries).
17864 (install-only): Install the IPA.
17865 (IPA_OBJS, IPA_LIB): New.
17866 (clean): Remove the IPA lib.
17867 (IPAGENT_CFLAGS): New.
17868 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17869 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17870 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17871 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17872 * configure.ac: Check for atomic builtins support in the compiler.
17873 (IPA_DEPFILES, extra_libraries): Define.
17874 * configure.srv (ipa_obj): Add description.
17875 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17876 (i[34567]86-*-linux*): Set ipa_obj.
17877 (x86_64-*-linux*): Set ipa_obj.
17878 * linux-low.c (stabilizing_threads): New.
17879 (supports_fast_tracepoints): New.
17880 (linux_detach): Stabilize threads before detaching.
17881 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17882 the lwp is either not stabilizing, or is moving out of a jump pad.
17883 (linux_fast_tracepoint_collecting): New.
17884 (maybe_move_out_of_jump_pad): New.
17885 (enqueue_one_deferred_signal): New.
17886 (dequeue_one_deferred_signal): New.
17887 (linux_wait_for_event_1): If moving out of a jump pad, defer
17888 pending signals to later.
17889 (linux_stabilize_threads): New.
17890 (linux_wait_1): Check if threads need moving out of jump pads, and
17891 do it if so.
17892 (stuck_in_jump_pad_callback): New.
17893 (move_out_of_jump_pad_callback): New.
17894 (lwp_running): New.
17895 (linux_resume_one_lwp): Handle moving out of jump pads.
17896 (linux_set_resume_request): Dequeue deferred signals.
17897 (need_step_over_p): Also step over fast tracepoint jumps.
17898 (start_step_over): Also uninsert fast tracepoint jumps.
17899 (finish_step_over): Also reinsert fast tracepoint jumps.
17900 (linux_install_fast_tracepoint_jump): New.
17901 (linux_target_ops): Install linux_stabilize_threads and
17902 linux_install_fast_tracepoint_jump_pad.
17903 * linux-low.h (linux_target_ops) <get_thread_area,
17904 install_fast_tracepoint_jump_pad>: New fields.
17905 (struct lwp_info) <collecting_fast_tracepoint,
17906 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17907 (linux_get_thread_area): Declare.
17908 * linux-x86-low.c (jump_insn): New.
17909 (x86_get_thread_area): New.
17910 (append_insns): New.
17911 (push_opcode): New.
17912 (amd64_install_fast_tracepoint_jump_pad): New.
17913 (i386_install_fast_tracepoint_jump_pad): New.
17914 (x86_install_fast_tracepoint_jump_pad): New.
17915 (the_low_target): Install x86_get_thread_area and
17916 x86_install_fast_tracepoint_jump_pad.
17917 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17918 (struct fast_tracepoint_jump): New.
17919 (fast_tracepoint_jump_insn): New.
17920 (fast_tracepoint_jump_shadow): New.
17921 (find_fast_tracepoint_jump_at): New.
17922 (fast_tracepoint_jump_here): New.
17923 (delete_fast_tracepoint_jump): New.
17924 (set_fast_tracepoint_jump): New.
17925 (uninsert_fast_tracepoint_jumps_at): New.
17926 (reinsert_fast_tracepoint_jumps_at): New.
17927 (set_breakpoint_at): Use write_inferior_memory.
17928 (uninsert_raw_breakpoint): Use write_inferior_memory.
17929 (check_mem_read): Mask out fast tracepoint jumps.
17930 (check_mem_write): Mask out fast tracepoint jumps.
17931 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17932 (set_fast_tracepoint_jump): Declare.
17933 (delete_fast_tracepoint_jump)
17934 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17935 (reinsert_fast_tracepoint_jumps_at): Declare.
17936 * regcache.c: Don't compile many functions when building the
17937 in-process agent library.
17938 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17939 the register buffer in the heap.
17940 (free_register_cache): If the register buffer isn't owned by the
17941 regcache, don't free it.
17942 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17943 pre-existing register caches.
17944 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17945 type.
17946 (convert_ascii_to_int): : Constify `from' parameter type.
17947 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17948 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17949 the needed buffer in-place.
17950 (relocate_instruction): New.
17951 * server.c (handle_query) <qSymbols>: If the target supports
17952 tracepoints, give it a chance of looking up symbols. Report
17953 support for fast tracepoints.
17954 (handle_status): Stabilize threads.
17955 (process_serial_event): Adjust.
17956 * server.h (struct fast_tracepoint_jump): Forward declare.
17957 (struct process_info) <fast_tracepoint_jumps>: New field.
17958 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17959 (decode_X_packet, decode_M_packet): Adjust.
17960 (relocate_instruction): Declare.
17961 (in_process_agent_loaded): Declare.
17962 (tracepoint_look_up_symbols): Declare.
17963 (struct fast_tpoint_collect_status): Declare.
17964 (fast_tracepoint_collecting): Declare.
17965 (force_unlock_trace_buffer): Declare.
17966 (handle_tracepoint_bkpts): Declare.
17967 (initialize_low_tracepoint)
17968 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17969 * target.h (struct target_ops) <stabilize_threads,
17970 install_fast_tracepoint_jump_pad>: New fields.
17971 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17972 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17973 [HAVE_STDINT_H]: Include stdint.h.
17974 (trace_debug_1): Rename to ...
17975 (trace_vdebug): ... this.
17976 (trace_debug): Rename to ...
17977 (trace_debug_1): ... this. Add `level' parameter.
17978 (trace_debug): New.
17979 (ATTR_USED, ATTR_NOINLINE): New.
17980 (IP_AGENT_EXPORT): New.
17981 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17982 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17983 (about_to_request_buffer_space, trace_buffer_is_full)
17984 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17985 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17986 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17987 (traceframe_write_count, traceframes_created)
17988 (trace_state_variables)
17989 New renaming defines.
17990 (struct ipa_sym_addresses): New.
17991 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17992 (symbol_list): New.
17993 (ipa_sym_addrs): New.
17994 (all_tracepoint_symbols_looked_up): New.
17995 (in_process_agent_loaded): New.
17996 (write_e_ipa_not_loaded): New.
17997 (maybe_write_ipa_not_loaded): New.
17998 (tracepoint_look_up_symbols): New.
17999 (debug_threads) [IN_PROCESS_AGENT]: New.
18000 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
18001 (UNKNOWN_SIDE_EFFECTS): New.
18002 (stop_tracing): New.
18003 (flush_trace_buffer): New.
18004 (stop_tracing_bkpt): New.
18005 (flush_trace_buffer_bkpt): New.
18006 (read_inferior_integer): New.
18007 (read_inferior_uinteger): New.
18008 (read_inferior_data_pointer): New.
18009 (write_inferior_data_pointer): New.
18010 (write_inferior_integer): New.
18011 (write_inferior_uinteger): New.
18012 (struct collect_static_trace_data_action): Delete.
18013 (enum tracepoint_type): New.
18014 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
18015 <actions_str, step_actions, step_actions_str>: Only include in
18016 GDBserver.
fa593d66
PA
18017 <orig_size, obj_addr_on_target, adjusted_insn_addr>
18018 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
18019 (tracepoints): Use IP_AGENT_EXPORT.
18020 (last_tracepoint): Don't include in the IPA.
18021 (stopping_tracepoint): Use IP_AGENT_EXPORT.
18022 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
18023 (alloced_trace_state_variables): New.
18024 (trace_state_variables): Use IP_AGENT_EXPORT.
18025 (traceframe_t): Delete unused variable.
18026 (circular_trace_buffer): Don't include in the IPA.
18027 (trace_buffer_start): Delete.
18028 (struct trace_buffer_control): New.
18029 (trace_buffer_free): Delete.
18030 (struct ipa_trace_buffer_control): New.
18031 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18032 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18033 New.
18034 (trace_buffer_ctrl): New.
18035 (TRACE_BUFFER_CTRL_CURR): New.
18036 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18037 Reimplement as macros.
18038 (trace_buffer_wrap): Delete.
18039 (traceframe_write_count, traceframe_read_count)
18040 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18041 (struct tracepoint_hit_ctx) <type>: New field.
18042 (struct fast_tracepoint_ctx): New.
18043 (memory_barrier): New.
18044 (cmpxchg): New.
18045 (record_tracepoint_error): Update atomically in the IPA.
18046 (clear_inferior_trace_buffer): New.
18047 (about_to_request_buffer_space): New.
18048 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18049 updating the same buffer.
18050 (add_tracepoint): Default the tracepoint's type to trap
18051 tracepoint, and orig_size to -1.
18052 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18053 internal variables.
18054 (create_trace_state_variable): New parameter `gdb'. Handle it.
18055 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18056 (cmd_qtdp): Handle fast tracepoints.
18057 (cmd_qtdv): Adjust.
18058 (max_jump_pad_size): New.
18059 (gdb_jump_pad_head): New.
18060 (get_jump_space_head): New.
18061 (claim_jump_space): New.
18062 (sort_tracepoints): New.
18063 (MAX_JUMP_SIZE): New.
18064 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18065 IPA.
18066 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18067 support. Upload fast traceframes, and delete internal IPA
18068 breakpoints.
18069 (stop_tracing_handler): New.
18070 (flush_trace_buffer_handler): New.
18071 (cmd_qtstop): Upload fast tracepoints.
18072 (response_tracepoint): Handle fast tracepoints.
18073 (tracepoint_finished_step): Upload fast traceframes. Set the
18074 tracepoint hit context's tracepoint type.
18075 (handle_tracepoint_bkpts): New.
18076 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18077 type. Add comment about fast tracepoints.
18078 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18079 non-existing action_str field.
18080 (get_context_regcache): Handle fast tracepoints.
18081 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18082 to the regcache.
18083 (fast_tracepoint_from_jump_pad_address): New.
18084 (fast_tracepoint_from_ipa_tpoint_address): New.
18085 (collecting_t): New.
18086 (force_unlock_trace_buffer): New.
18087 (fast_tracepoint_collecting): New.
18088 (collecting): New.
18089 (gdb_collect): New.
18090 (write_inferior_data_ptr): New.
18091 (target_tp_heap): New.
18092 (target_malloc): New.
18093 (download_agent_expr): New.
18094 (UALIGN): New.
18095 (download_tracepoints): New.
18096 (download_trace_state_variables): New.
18097 (upload_fast_traceframes): New.
18098 (IPA_FIRST_TRACEFRAME): New.
18099 (IPA_NEXT_TRACEFRAME_1): New.
18100 (IPA_NEXT_TRACEFRAME): New.
18101 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18102 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18103 (gdb_jump_pad_buffer_end): New.
18104 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18105 (initialize_tracepoint): Adjust.
18106 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18107 buffer. Initialize the low module.
18108 * utils.c (PREFIX, TOOLNAME): New.
18109 (malloc_failure): Use PREFIX.
18110 (error): In the IPA, an error causes an exit.
18111 (fatal, warning): Use PREFIX.
18112 (internal_error): Use TOOLNAME.
18113 (NUMCELLS): Increase to 10.
18114 * configure, config.in: Regenerate.
18115
d149dd1d
PA
181162010-06-01 Pedro Alves <pedro@codesourcery.com>
18117
18118 * server.c (handle_query) <qSupported>: Do two passes over the
18119 qSupported string to avoid nesting strtok.
18120
f6528abd
JK
181212010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18122
18123 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18124 (CDEPS): New.
18125 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18126 -Wl,--dynamic-list.
18127 * configure: Regenerate.
18128 * proc-service.list: New.
18129
ca2a87a0
JK
181302010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18131
18132 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18133 New comment.
18134
363a6e9f
OS
181352010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18136
18137 * gdbreplay.c (remote_open): Check error return from socket() call by
18138 its equality to -1 not by it being negative.
18139 * remote-utils.c (remote_open): Likewise.
18140
d23b6cb1
PA
181412010-05-23 Pedro Alves <pedro@codesourcery.com>
18142
18143 * config.h: Regenerate.
18144
28d3cf85
MK
181452010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18146
18147 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18148 doesn't provide PTRACE_GET_THREAD_AREA.
18149
fea36a59
MK
181502010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18151
18152 * linux-m68k-low.c: Include <asm/ptrace.h>
18153 (ps_get_thread_area): Implement.
18154
24b066ba
DE
181552010-05-03 Doug Evans <dje@google.com>
18156
18157 * event-loop.c (struct callback_event): New struct.
18158 (callback_list): New global.
18159 (append_callback_event, delete_callback_event): New functions.
18160 (process_callback): New function.
18161 (start_event_loop): Call it.
18162 * remote-utils.c (NOT_SCHEDULED): Define.
18163 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18164 moved out of readchar.
18165 (readchar): Rewrite. Call reschedule before returning.
18166 (reset_readchar): New function.
18167 (remote_close): Call it.
18168 (process_remaining, reschedule): New functions.
18169 * server.h (callback_handler_func): New typedef.
18170 (append_callback_event, delete_callback_event): Declare.
18171
9836d6ea
PA
181722010-05-03 Pedro Alves <pedro@codesourcery.com>
18173
18174 * proc-service.c (ps_pglobal_lookup): Use
18175 thread_db_look_up_one_symbol.
18176 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18177 parameter. Use it instead of all_symbols_looked_up.
18178 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18179 field.
18180 (all_symbols_looked_up): Don't declare.
18181 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18182 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18183 field.
18184 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18185 Set all_symbols_looked_up here.
18186 (thread_db_look_up_one_symbol): New.
18187 (thread_db_get_tls_address): Adjust.
18188 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18189 thread_db object on the heap, and tentatively set it in the
18190 process structure.
18191 (thread_db_init): Don't set all_symbols_looked_up here.
18192 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18193
7984d532
PA
181942010-05-03 Pedro Alves <pedro@codesourcery.com>
18195
18196 * linux-low.c (linux_kill, linux_detach): Adjust.
18197 (status_pending_p_callback): Remove redundant statement. Check
18198 for !TARGET_WAITIKIND_IGNORE, instead of
18199 TARGET_WAITKIND_STOPPED.
18200 (handle_tracepoints): Make sure LWP is locked. Adjust.
18201 (linux_wait_for_event_1): Adjust.
18202 (linux_cancel_breakpoints): New.
18203 (unsuspend_one_lwp): New.
18204 (unsuspend_all_lwps): New.
18205 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18206 (send_sigstop_callback): Change return type to int, add new
18207 `except' parameter and handle it.
18208 (suspend_and_send_sigstop_callback): New.
18209 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18210 pass them down. If SUSPEND, also increment the lwp's suspend
18211 count.
18212 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18213 (need_step_over_p): Don't consider suspended LWPs.
18214 (start_step_over): Adjust.
18215 (proceed_one_lwp): Change return type to int, add new `except'
18216 parameter and handle it.
18217 (unsuspend_and_proceed_one_lwp): New.
18218 (proceed_all_lwps): Use find_inferior instead of
18219 for_each_inferior.
18220 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18221 also decrement the suspend count of LWPs. Pass `except' down,
18222 instead of hacking its suspend count.
18223 (linux_pause_all): Add `freeze' parameter. Adjust.
18224 (linux_unpause_all): New.
18225 (linux_target_ops): Install linux_unpause_all.
18226 * server.c (handle_status): Adjust.
18227 * target.h (struct target_ops): New fields `unpause_all' and
18228 `cancel_breakpoints'. Add new parameter to `pause_all'.
18229 (pause_all): Add new `freeze' parameter.
18230 (unpause_all): New.
18231 (cancel_breakpoints): New.
18232 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18233 cancel breakpoints.
18234 (cmd_qtstart): Pause threads.
18235 (stop_tracing): Pause threads, and cancel breakpoints.
18236 * win32-low.c (win32_target_ops): Adjust.
18237
e471f25b
PA
182382010-05-03 Pedro Alves <pedro@codesourcery.com>
18239
18240 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18241 the inferior right away from here...
18242 (linux_wait_1): ... to here, and adjust to check the thread's
18243 last_resume_kind instead of the lwp's step or stop_expected flags.
18244
1915ef4f
PA
182452010-05-02 Pedro Alves <pedro@codesourcery.com>
18246
18247 * README: Use consistent `GDB' and `GDBserver' spellings.
18248
f9e39928
PA
182492010-05-02 Pedro Alves <pedro@codesourcery.com>
18250
18251 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18252 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18253 (linux_detach_one_lwp): Assume the lwp is stopped.
18254 (any_thread_of): Delete.
18255 (linux_detach): Stop all lwps here. Don't blindly delete all
18256 breakpoints.
18257 (delete_lwp_callback): New.
18258 (linux_mourn): Delete all lwps of the process that is gone.
18259 (linux_wait_1): Don't delete the last lwp of the process here.
18260 * mem-break.h (mark_breakpoints_out): Declare.
18261 * mem-break.c (mark_breakpoints_out): New.
18262 (free_all_breakpoints): Use it.
18263 * server.c (handle_target_event): If the process is gone, mark
18264 breakpoints out.
18265 * thread-db.c (struct thread_db) <create_bp>: New field.
18266 (thread_db_enable_reporting): Fix prototype. Store a thread event
18267 breakpoint reference in the thread_db struct.
18268 (thread_db_load_search): Clear the thread_db object.
18269 (try_thread_db_load_1): Ditto.
18270 (switch_to_process): New.
18271 (disable_thread_event_reporting): Use it.
18272 (remove_thread_event_breakpoints): New.
18273 (thread_db_detach, thread_db_mourn): Use it.
18274
1e7fc18c
PA
182752010-05-01 Pedro Alves <pedro@codesourcery.com>
18276
18277 * linux-low.c (linux_enable_event_reporting): New.
18278 (linux_wait_for_event_1, handle_extended_wait): Use it.
18279
02fc4de7
PA
182802010-04-30 Pedro Alves <pedro@codesourcery.com>
18281
18282 * linux-low.c (linux_kill_one_lwp, linux_kill)
18283 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18284 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18285 SIGSTOP even if the LWP is stopped.
18286 (send_sigstop_callback): New.
18287 (stop_all_lwps): Use send_sigstop_callback instead.
18288 (linux_resume_one_thread): Adjust.
18289 (proceed_one_lwp): Still proceed an LWP that the client has
18290 requested to stop, if we haven't reported it as stopped yet. Make
18291 sure that LWPs the client want stopped, have a pending SIGSTOP.
18292
bc3b5632
DE
182932010-04-26 Doug Evans <dje@google.com>
18294
ae1ada35
DE
18295 * server.c (handle_general_set): Make static.
18296
bc3b5632
DE
18297 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18298 Print received char after testing for error/eof instead of before.
18299 (input_interrupt): Tweak comment.
18300
65730243
DE
183012010-04-23 Doug Evans <dje@google.com>
18302
18303 * server.c (start_inferior): Print inferior argv if --debug.
18304
a8ae7dc0
AR
183052010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18306
18307 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18308 * nto-x86-low.c: Include server.h
18309
1c07cc19
PM
183102010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18311
18312 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18313 be consistent with other sources of this directory.
18314 (init_registers_amd64): Correct name of source file of this function
18315 in the comment.
18316
e0a61e09
PM
183172010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18318
18319 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18320 64-bit executables.
18321
54709339
PM
183222010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18323
18324 * win32-i386-low.c: Add 64-bit support.
18325 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18326 (init_registers_amd64): Declare.
18327 (mappings): Add 64-bit version of array.
18328 (init_windows_x86): New function.
18329 (the_low_target): Change init_arch field to init_windows_x86.
18330
e8f0053d
PM
183312010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18332
18333 * win32-low.c: Adapt to support also 64-bit architecture.
18334 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18335 (get_image_name): Use SIZE_T type for local variable `done'.
18336 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18337 (toolhelp_get_dll_name): Idem.
18338 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18339 Use uintptr_t typecast to avoid warning.
18340 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18341 (handle_exception): Use phex_nz to avoid warning.
18342 (win32_wait): Remove unused local variable `process'.
18343
c481e77e
PM
183442010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18345
18346 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18347 `amd64-avx.o'.
18348
12ea4b69
PM
183492010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18350
18351 * configure.ac: Use `ws2_32' library for srv_mingw.
18352 * configure: Regenerate.
18353 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18354 * remote-utils.c: Likewise.
18355
f6d1620c
L
183562010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18357
18358 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18359 if __x86_64__ is defined.
18360
8e642873
PM
183612010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18362
18363 * configure: Regenerate.
18364
711e434b
PM
183652010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18366
18367 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18368 * target.h (target_ops): New get_tib_address field.
18369 * win32-low.h (win32_thread_info): Add thread_local_base field.
18370 * win32-low.c (child_add_thread): Add tlb argument.
18371 Set thread_local_base field to TLB.
18372 (get_child_debug_event): Adapt to child_add_thread change.
18373 (win32_get_tib_address): New function.
18374 (win32_target_ops): Set get_tib_address field to
18375 win32_get_tib_address.
18376 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18377
505106cd
PA
183782010-04-12 Pedro Alves <pedro@codesourcery.com>
18379
505106cd
PA
18380 * linux-low.c (linux_mourn): Also remove the process.
18381 * server.c (handle_target_event): Don't remove the process here.
18382 * nto-low.c (nto_mourn): New.
18383 (nto_target_ops): Install it.
18384 * spu-low.c (spu_mourn): New.
18385 (spu_target_ops): Install it.
18386 * win32-low.c (win32_mourn): New.
18387 (win32_target_ops): Install it.
18388
e8470a06
PA
183892010-04-12 Pedro Alves <pedro@codesourcery.com>
18390
18391 * server.h (buffer_xml_printf): Remove redundant `;'.
18392
45ba0d02
PA
183932010-04-12 Pedro Alves <pedro@codesourcery.com>
18394
18395 * regcache.c (set_register_cache): Invalidate regcaches before
18396 changing the register cache layout.
18397 (regcache_invalidate_one): Allow a NULL regcache.
18398 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18399 regcaches before changing the register cache layout or the target
18400 regsets.
18401
59e04013
L
184022010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18403
18404 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18405 variable warning on Linux/x86-64.
18406
8336d594
PA
184072010-04-11 Pedro Alves <pedro@codesourcery.com>
18408
18409 GDBserver disconnected tracing support.
18410
18411 * linux-low.c (linux_remove_process): Delete.
18412 (add_lwp): Don't set last_resume_kind here.
18413 (linux_kill): Use `mourn'.
18414 (linux_detach): Use `thread_db_detach', and `mourn'.
18415 (linux_mourn): New.
18416 (linux_attach_lwp_1): Adjust comment.
18417 (linux_attach): last_resume_kind moved the thread_info; adjust.
18418 (status_pending_p_callback): Adjust.
18419 (linux_wait_for_event_1): Adjust.
18420 (count_events_callback, select_singlestep_lwp_callback)
18421 (select_event_lwp_callback, cancel_breakpoints_callback)
18422 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18423 (proceed_one_lwp): Adjust.
18424 (linux_async): Add debug output.
18425 (linux_thread_stopped): New.
18426 (linux_pause_all): New.
18427 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18428 linux_pause_all.
18429 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18430 (thread_db_free): Delete declaration.
18431 (thread_db_detach, thread_db_mourn): Declare.
18432 * thread-db.c (thread_db_init): Use thread_db_mourn.
18433 (thread_db_free): Delete, split in two.
18434 (disable_thread_event_reporting): New.
18435 (thread_db_detach): New.
18436 (thread_db_mourn): New.
18437
18438 * server.h (struct thread_info) <last_resume_kind>: New field.
18439 <attached>: Add comment.
18440 <gdb_detached>: New field.
18441 (handler_func): Change return type to int.
18442 (handle_serial_event, handle_target_event): Ditto.
18443 (gdb_connected): Declare.
18444 (tracing): Delete.
18445 (disconnected_tracing): Declare.
18446 (stop_tracing): Declare.
18447
18448 * server.c (handle_query) <qSupported>: Report support for
18449 disconnected tracing.
18450 (queue_stop_reply_callback): Account for running threads.
18451 (gdb_wants_thread_stopped): New.
18452 (gdb_wants_all_threads_stopped): New.
18453 (gdb_reattached_process): New.
18454 (handle_status): Clear the `gdb_detached' flag of all processes.
18455 In all-stop, stop all threads.
18456 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18457 (process_serial_event): If the remote connection breaks, or if an
18458 exit was forced with "monitor exit", force an event loop exit.
18459 Handle disconnected tracing on detach.
18460 (handle_serial_event): Adjust.
18461 (handle_target_event): If GDB isn't connected, forward events back
18462 to the inferior, unless the last process exited, in which case,
18463 exit gdbserver. Adjust interface.
18464
18465 * remote-utils.c (remote_open): Don't block in accept. Instead
18466 register an event loop source on the listen socket file
18467 descriptor. Refactor bits into ...
18468 (listen_desc): ... this new global.
18469 (gdb_connected): ... this new function.
18470 (enable_async_notification): ... this new function.
18471 (handle_accept_event): ... this new function.
18472 (remote_close): Clear remote_desc.
18473
18474 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18475
18476 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18477 New fields.
18478 (mourn_inferior): Define.
18479 (target_process_qsupported): Avoid the dangling else problem.
18480 (thread_stopped): Define.
18481 (pause_all): Define.
18482 (target_waitstatus_to_string): Declare.
18483 * target.c (target_waitstatus_to_string): New.
18484
18485 * tracepoint.c (tracing): Make extern.
18486 (disconnected_tracing): New.
18487 (stop_tracing): Make extern. Handle tracing stops due to GDB
18488 disconnecting.
18489 (cmd_qtdisconnected): New.
18490 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18491 (handle_tracepoint_general_set): Handle QTDisconnected.
18492
18493 * event-loop.c (event_handler_func): Change return type to int.
18494 (process_event): Bail out if the event handler wants the event
18495 loop to stop.
18496 (handle_file_event): Ditto.
18497 (start_event_loop): Bail out if the event handler wants the event
18498 loop to stop.
18499
18500 * nto-low.c (nto_target_ops): Adjust.
18501 * spu-low.c (spu_wait): Don't remove the process here.
18502 (spu_target_ops): Adjust.
18503 * win32-low.c (win32_wait): Don't remove the process here.
18504 (win32_target_ops): Adjust.
18505
5d267c4c
PA
185062010-04-11 Pedro Alves <pedro@codesourcery.com>
18507
18508 * regcache.c (realloc_register_cache): Invalidate inferior's
18509 regcache before recreating it.
18510
623ccd72
PA
185112010-04-09 Pedro Alves <pedro@codesourcery.com>
18512
18513 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18514
219f2f23
PA
185152010-04-09 Stan Shebs <stan@codesourcery.com>
18516 Pedro Alves <pedro@codesourcery.com>
18517
18518 * server.h (LONGEST): New.
18519 (struct thread_info) <while_stepping>: New field.
18520 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18521 Declare.
18522 (initialize_tracepoint, handle_tracepoint_general_set)
18523 (handle_tracepoint_query, tracepoint_finished_step)
18524 (tracepoint_was_hit, release_while_stepping_state_list):
18525 (current_traceframe): Declare.
18526 * server.c (handle_general_set): Handle tracepoint packets.
18527 (read_memory): New.
18528 (write_memory): New.
18529 (handle_search_memory_1): Use read_memory.
18530 (handle_query): Report support for conditional tracepoints, trace
18531 state variables, and tracepoint sources. Handle tracepoint
18532 queries.
18533 (main): Initialize the tracepoints module.
18534 (process_serial_event): Handle traceframe reads/writes.
18535
18536 * linux-low.c (handle_tracepoints): New.
18537 (linux_wait_1): Call it.
18538 (linux_resume_one_lwp): Handle while-stepping.
18539 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18540 (linux_target_ops): Install them.
18541 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18542 New field.
18543 * linux-x86-low.c (x86_supports_tracepoints): New.
18544 (the_low_target). Install it.
18545
18546 * mem-break.h (delete_breakpoint): Declare.
18547 * mem-break.c (delete_breakpoint): Make external.
18548
18549 * target.h (struct target_ops): Add `supports_tracepoints',
18550 `read_pc', and `write_pc' fields.
18551 (target_supports_tracepoints): Define.
18552 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18553 (phex_nz): New.
18554
18555 * regcache.h (struct regcache) <registers_owned>: New field.
18556 (init_register_cache, regcache_cpy): Declare.
18557 (regcache_read_pc, regcache_write_pc): Declare.
18558 (register_cache_size): Declare.
18559 (supply_regblock): Declare.
18560 * regcache.c (init_register_cache): New.
18561 (new_register_cache): Use it.
18562 (regcache_cpy): New.
18563 (register_cache_size): New.
18564 (supply_regblock): New.
18565 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18566
219f2f23
PA
18567 * tracepoint.c: New.
18568
18569 * Makefile.in (OBS): Add tracepoint.o.
18570 (tracepoint.o): New rule.
18571
3a13a53b
L
185722010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18573
18574 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18575 (i386-mmx.o): New.
18576 (i386-mmx.c): Likewise.
18577 (i386-mmx-linux.o): Likewise.
18578 (i386-mmx-linux.c): Likewise.
18579
18580 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18581 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18582 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18583 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18584
18585 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18586 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18587 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18588
1570b33e
L
185892010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18590
18591 * Makefile.in (clean): Updated.
18592 (i386-avx.o): New.
18593 (i386-avx.c): Likewise.
18594 (i386-avx-linux.o): Likewise.
18595 (i386-avx-linux.c): Likewise.
18596 (amd64-avx.o): Likewise.
18597 (amd64-avx.c): Likewise.
18598 (amd64-avx-linux.o): Likewise.
18599 (amd64-avx-linux.c): Likewise.
18600
18601 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18602 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18603 (srv_amd64_regobj): Add amd64-avx.o.
18604 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18605 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18606 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18607 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18608 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18609 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18610 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18611
18612 * i387-fp.c: Include "i386-xstate.h".
18613 (i387_xsave): New.
18614 (i387_cache_to_xsave): Likewise.
18615 (i387_xsave_to_cache): Likewise.
18616 (x86_xcr0): Likewise.
18617
18618 * i387-fp.h (i387_cache_to_xsave): Likewise.
18619 (i387_xsave_to_cache): Likewise.
18620 (x86_xcr0): Likewise.
18621
18622 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18623 * linux-crisv32-low.c (target_regsets): Likewise.
18624 * linux-m68k-low.c (target_regsets): Likewise.
18625 * linux-mips-low.c (target_regsets): Likewise.
18626 * linux-ppc-low.c (target_regsets): Likewise.
18627 * linux-s390-low.c (target_regsets): Likewise.
18628 * linux-sh-low.c (target_regsets): Likewise.
18629 * linux-sparc-low.c (target_regsets): Likewise.
18630 * linux-xtensa-low.c (target_regsets): Likewise.
18631
18632 * linux-low.c: Include <sys/uio.h>.
18633 (regsets_fetch_inferior_registers): Support nt_type.
18634 (regsets_store_inferior_registers): Likewise.
18635 (linux_process_qsupported): New.
18636 (linux_target_ops): Add linux_process_qsupported.
18637
18638 * linux-low.h (regset_info): Add nt_type.
18639 (linux_target_ops): Add process_qsupported.
18640
18641 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18642 and <sys/uio.h>.
18643 (init_registers_i386_avx_linux): New.
18644 (init_registers_amd64_avx_linux): Likewise.
18645 (xmltarget_i386_linux_no_xml): Likewise.
18646 (xmltarget_amd64_linux_no_xml): Likewise.
18647 (PTRACE_GETREGSET): Likewise.
18648 (PTRACE_SETREGSET): Likewise.
18649 (x86_fill_xstateregset): Likewise.
18650 (x86_store_xstateregset): Likewise.
18651 (use_xml): Likewise.
18652 (x86_linux_update_xmltarget): Likewise.
18653 (x86_linux_process_qsupported): Likewise.
18654 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18655 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18656 init_registers_i386_linux here. Call
18657 x86_linux_update_xmltarget.
18658 (the_low_target): Add x86_linux_process_qsupported.
18659
18660 * server.c (handle_query): Call target_process_qsupported.
18661
18662 * target.h (target_ops): Add process_qsupported.
18663 (target_process_qsupported): New.
18664
fc7238bb
PA
186652010-04-03 Pedro Alves <pedro@codesourcery.com>
18666
18667 * inferiors.c (add_thread): Set last_status kind to
18668 TARGET_WAITKIND_IGNORE.
18669 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18670 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18671 (linux_wait_1): Move `thread' local definition to block that uses
18672 it. Don't NULL initialize `event_child'.
18673 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18674 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18675 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18676
bdabb078
PA
186772010-04-01 Pedro Alves <pedro@codesourcery.com>
18678
18679 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18680 an extended waitstatus, or by a watchpoint.
18681 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18682 thread was stepping or has been stopped by a watchpoint.
18683
d3bbe7a0
PA
186842010-04-01 Pedro Alves <pedro@codesourcery.com>
18685
18686 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18687 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18688 of another, then delete the previous, and validate all
18689 breakpoints.
18690 (validate_inserted_breakpoint): New.
18691 (delete_disabled_breakpoints): New.
18692 (validate_breakpoints): New.
18693 (check_mem_read): Validate breakpoints before trusting their
18694 shadow. Delete disabled breakpoints.
18695 (check_mem_write): Validate breakpoints before trusting they
18696 should be inserted. Delete disabled breakpoints.
18697 * mem-break.h (validate_breakpoints):
18698 * server.c (handle_query): Validate breakpoints when we see a
18699 qSymbol query.
18700
8b07ae33
PA
187012010-04-01 Pedro Alves <pedro@codesourcery.com>
18702
18703 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18704 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18705 if we could tell there's a GDB breakpoint at stop_pc.
18706 (need_step_over_p): Don't do a step over if we find a GDB
18707 breakpoint at the resume PC.
18708
18709 * mem-break.c (struct raw_breakpoint): New.
18710 (enum bkpt_type): New type `gdb_breakpoint'.
18711 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18712 fields. New field `raw'.
18713 (find_raw_breakpoint_at): New.
18714 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18715 breakpoint instead.
18716 (set_breakpoint_at): Adjust.
18717 (delete_raw_breakpoint): New.
18718 (release_breakpoint): New.
18719 (delete_breakpoint): Rename to...
18720 (delete_breakpoint_1): ... this. Add proc parameter. Use
18721 release_breakpoint. Return ENOENT.
18722 (delete_breakpoint): Reimplement.
18723 (find_breakpoint_at): Delete.
18724 (find_gdb_breakpoint_at): New.
18725 (delete_breakpoint_at): Delete.
18726 (set_gdb_breakpoint_at): New.
18727 (delete_gdb_breakpoint_at): New.
18728 (gdb_breakpoint_here): New.
18729 (set_reinsert_breakpoint): Use release_breakpoint.
18730 (uninsert_breakpoint): Rename to ...
18731 (uninsert_raw_breakpoint): ... this.
18732 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18733 (reinsert_raw_breakpoint): Change parameter type to
18734 raw_breakpoint.
18735 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18736 instead.
18737 (check_breakpoints): Adjust. Use release_breakpoint.
18738 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18739 (breakpoint_inserted_here): Ditto.
18740 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18741 Don't trust the breakpoint's shadow if it is not inserted.
18742 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18743 (delete_all_breakpoints): Adjust.
18744 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18745 use delete_breakpoint_1.
18746
18747 * mem-break.h (breakpoints_supported): Delete declaration.
18748 (set_gdb_breakpoint_at): Declare.
18749 (gdb_breakpoint_here): Declare.
18750 (delete_breakpoint_at): Delete.
18751 (delete_gdb_breakpoint_at): Declare.
18752
18753 * server.h (struct raw_breakpoint): Forward declare.
18754 (struct process_info): New field `raw_breakpoints'.
18755
18756 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18757 breakpoints.
18758
6bf5e0ba
PA
187592010-03-24 Pedro Alves <pedro@codesourcery.com>
18760
18761 * linux-low.c (status_pending_p_callback): Fix comment.
18762 (linux_wait_for_event_1): Move most of the internal breakpoint
18763 handling from here...
18764 (linux_wait_1): ... to here.
18765 (count_events_callback): New.
18766 (select_singlestep_lwp_callback): New.
18767 (select_event_lwp_callback): New.
18768 (cancel_breakpoints_callback): New.
18769 (select_event_lwp): New.
18770 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18771 priority to all LWPs that have had events that should be reported
18772 to the client. Cancel breakpoints when about to reporting the
18773 event to the client, not while stopping lwps. No longer cancel
18774 finished single-steps here.
18775 (cancel_finished_single_step): Delete.
18776 (cancel_finished_single_steps): Delete.
18777
414a389f
PA
187782010-03-24 Pedro Alves <pedro@codesourcery.com>
18779
18780 * mem-break.c (enum bkpt_type): New.
18781 (struct breakpoint): New field `type'.
18782 (set_breakpoint_at): Change return type to struct breakpoint
18783 pointer. Set type to `other_breakpoint' by default.
18784 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18785 in the breakpoint list.
18786 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18787 (reinsert_breakpoint): Rename to ...
18788 (reinsert_raw_breakpoint): ... this.
18789 (reinsert_breakpoints_at): Adjust.
18790 * mem-break.h (struct breakpoint): Declare.
18791 (set_breakpoint_at): Change return type to struct breakpoint
18792 pointer.
18793
2280c721
PA
187942010-03-24 Pedro Alves <pedro@codesourcery.com>
18795
18796 * server.c (handle_query): Assign, not compare.
18797
d50171e4
PA
187982010-03-24 Pedro Alves <pedro@codesourcery.com>
18799
18800 Teach linux gdbserver to step-over-breakpoints.
18801
18802 * linux-low.c (can_hardware_single_step): New.
18803 (supports_breakpoints): New.
18804 (handle_extended_wait): If stopping threads, read the stop pc of
18805 the new cloned LWP.
18806 (get_pc): New.
18807 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18808 low target doesn't support retrieving the PC.
18809 (add_lwp): Set last_resume_kind to resume_continue.
18810 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18811 (linux_attach): Don't clear stop_expected. Set the lwp's
18812 last_resume_kind to resume_stop.
18813 (linux_detach_one_lwp): Don't check for removed breakpoints.
18814 (check_removed_breakpoint): Delete.
18815 (status_pending_p): Rename to ...
18816 (status_pending_p_callback): ... this. Don't check for removed
18817 breakpoints. Don't consider threads that are stopped from GDB's
18818 perspective.
18819 (linux_wait_for_lwp): Always read the stop_pc here.
18820 (cancel_breakpoint): New.
18821 (step_over_bkpt): New global.
18822 (linux_wait_for_event_1): Implement stepping over breakpoints.
18823 (gdb_wants_lwp_stopped): New.
18824 (gdb_wants_all_stopped): New.
18825 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18826 single-step traps here. Store the thread's last reported target
18827 wait status.
18828 (send_sigstop): Don't clear stop_expected. Always set it,
18829 instead.
18830 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18831 (cancel_finished_single_step): New.
18832 (cancel_finished_single_steps): New.
18833 (wait_for_sigstop): Don't cancel finished single-step traps here.
18834 (linux_resume_one_lwp): Don't check for removed breakpoints.
18835 Don't set `step' on non-hardware step archs.
18836 (linux_set_resume_request): Ignore resume_stop requests if already
18837 stopping or stopped. Set the lwp's last_resume_kind.
18838 (resume_status_pending_p): Don't check for removed breakpoints.
18839 (need_step_over_p): New.
18840 (start_step_over): New.
18841 (finish_step_over): New.
18842 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18843 requests. Clear the thread's last reported target waitstatus.
18844 Don't use the `suspended' flag. Don't consider pending breakpoints.
18845 (linux_resume): Start a step-over if necessary.
18846 (proceed_one_lwp): New.
18847 (proceed_all_lwps): New.
18848 (unstop_all_lwps): New.
18849 * linux-low.h (struct lwp_info): Rewrite comment for the
18850 `suspended' flag. Add the `stop_pc' field. Delete the
18851 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18852 Add `'last_resume_kind' and `need_step_over' fields.
18853 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18854 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18855 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18856 (set_raw_breakpoint_at): New.
18857 (set_breakpoint_at): Rewrite to use it.
18858 (reinsert_breakpoint_handler): Delete.
18859 (set_reinsert_breakpoint): New.
18860 (reinsert_breakpoint_by_bp): Delete.
18861 (delete_reinsert_breakpoints): New.
18862 (uninsert_breakpoint): Rewrite.
18863 (uninsert_breakpoints_at): New.
18864 (reinsert_breakpoint): Rewrite.
18865 (reinsert_breakpoints_at): New.
18866 (check_breakpoints): Rewrite.
18867 (breakpoint_here): New.
18868 (breakpoint_inserted_here): New.
18869 (check_mem_read): Adjust.
18870 * mem-break.h (breakpoints_supported, breakpoint_here)
18871 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18872 (reinsert_breakpoint_by_bp): Delete declaration.
18873 (delete_reinsert_breakpoints): Declare.
18874 (reinsert_breakpoint): Delete declaration.
18875 (reinsert_breakpoints_at): Declare.
18876 (uninsert_breakpoint): Delete declaration.
18877 (uninsert_breakpoints_at): Declare.
18878 (check_breakpoints): Adjust prototype.
18879 * server.h: Adjust include order.
18880 (struct thread_info): Declare here. Add a `last_status' field.
18881
30ba68cb
MS
188822010-03-23 Michael Snyder <msnyder@vmware.com>
18883
18884 * server.c (crc32): New function.
18885 (handle_query): Add handling for 'qCRC:' request.
18886
b9a881c2
PA
188872010-03-23 Pedro Alves <pedro@codesourcery.com>
18888
18889 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18890 lwp had been stopped by a watchpoint.
18891
e92d13d5
PA
188922010-03-16 Pedro Alves <pedro@codesourcery.com>
18893
18894 * server.h (internal_error): Declare.
18895 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18896 * utils.c (internal_error): New function.
18897
64daa791
AS
188982010-03-15 Andreas Schwab <schwab@redhat.com>
18899
18900 * configure.srv: Fix typo setting srv_regobj.
18901
f52cd8cd
PA
189022010-03-15 Pedro Alves <pedro@codesourcery.com>
18903
18904 * linux-low.c (fetch_register): Avoid passing a non string literal
18905 format to `error'.
18906 (usr_store_inferior_registers): Ditto.
18907
93ae6fdc
PA
189082010-03-14 Pedro Alves <pedro@codesourcery.com>
18909
18910 * linux-low.c (linux_write_memory): Bail out early if peeking
18911 memory failed.
18912
c3adc08c
PA
189132010-03-14 Pedro Alves <pedro@codesourcery.com>
18914
18915 * linux-low.h (struct lwp_info): New fields
18916 `stopped_by_watchpoint' and `stopped_data_address'.
18917 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18918 here, and cache them in the lwp object.
18919 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18920 directly.
18921 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18922 field.
18923 (linux_stopped_by_watchpoint): Rewrite.
18924 (linux_stopped_data_address): Rewrite.
18925
bce522a2
PA
189262010-03-06 Simo Melenius <simo.melenius@iki.fi>
18927
18928 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18929 switching the current inferior, not before.
18930
90884b2b
L
189312010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18932
18933 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18934 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18935 i386-linux.c and amd64-linux.c.
18936 (reg-i386.o): Removed.
18937 (reg-i386.c): Likewise.
18938 (reg-i386-linux.o): Likewise.
18939 (reg-i386-linux.c): Likewise.
18940 (reg-x86-64.o): Likewise.
18941 (reg-x86-64.c): Likewise.
18942 (reg-x86-64-linux.o): Likewise.
18943 (reg-x86-64-linux.c): Likewise.
18944 (i386.o): New.
18945 (i386.c): Likewise.
18946 (i386-linux.o): Likewise.
18947 (i386-linux.c): Likewise.
18948 (amd64.o): Likewise.
18949 (amd64.c): Likewise.
18950 (amd64-linux.o): Likewise.
18951 (amd64-linux.c): Likewise.
18952
18953 * configure.srv (srv_i386_regobj): New.
18954 (srv_i386_linux_regobj): Likewise.
18955 (srv_amd64_regobj): Likewise.
18956 (srv_amd64_linux_regobj): Likewise.
18957 (srv_i386_32bit_xmlfiles): Likewise.
18958 (srv_i386_64bit_xmlfiles): Likewise.
18959 (srv_i386_xmlfiles): Likewise.
18960 (srv_amd64_xmlfiles): Likewise.
18961 (srv_i386_linux_xmlfiles): Likewise.
18962 (srv_amd64_linux_xmlfiles): Likewise.
18963 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18964 srv_xmlfiles to $srv_i386_xmlfiles.
18965 (i[34567]86-*-mingw32ce*): Likewise.
18966 (i[34567]86-*-mingw*): Likewise.
18967 (i[34567]86-*-nto*): Likewise.
18968 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18969 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18970 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18971 (x86_64-*-linux*): Likewise.
18972
18973 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18974 (init_registers_amd64_linux): New.
18975 (x86_arch_setup): Replace init_registers_x86_64_linux with
18976 init_registers_amd64_linux.
18977
193f13e6
MK
189782010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18979
18980 * configure.ac: Check for libdl. If it is not available link against
18981 static libthread_db.
18982 * configure: Regenerate.
18983
85d721b8
PA
189842010-02-22 Pedro Alves <pedro@codesourcery.com>
18985
18986 PR9605
18987
18988 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18989 handing a read watchpoint.
18990 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18991
6076632b
DE
189922010-02-12 Doug Evans <dje@google.com>
18993
18994 * linux-low.c (linux_supports_tracefork_flag): Document.
18995 (linux_look_up_symbols): Add comment.
18996
3327ccf7
L
189972010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18998
18999 * regcache.c (supply_register): Clear regcache if buf is NULL.
19000
0718675c 190012010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 19002 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
19003
19004 * inferiors.c (find_inferior): Add function documentation.
19005 (unloaded_dll): Handle the case where the unloaded dll has not
19006 been previously registered in the dll list.
19007
177321bd
DJ
190082010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19009
19010 * linux-arm-low.c (thumb_breakpoint_len): Delete.
19011 (thumb2_breakpoint): New.
19012 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
19013
2b009048
DJ
190142010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19015
19016 * linux-low.c (get_stop_pc): Check for SIGTRAP.
19017 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
19018 breakpoints.
19019
3be029c7
PA
190202010-01-21 Pedro Alves <pedro@codesourcery.com>
19021
19022 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
19023
18f5de3b
JK
190242010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19025
19026 * linux-s390-low.c (s390_collect_ptrace_register)
19027 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
19028
3743bb4f
DE
190292010-01-21 Doug Evans <dje@google.com>
19030
14ce3065
DE
19031 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19032 (PTRACE_ARG4_TYPE): New macro.
19033 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19034 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19035 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19036 (usr_store_inferior_registers): Ditto.
19037 (linux_read_memory, linux_write_memory): Ditto.
19038 (linux_test_for_tracefork): Ditto.
19039
3743bb4f
DE
19040 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19041 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19042
8b315be5
PA
190432010-01-21 Pedro Alves <pedro@codesourcery.com>
19044
19045 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19046 target.
19047
85492558
PA
190482010-01-21 Pedro Alves <pedro@codesourcery.com>
19049
19050 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19051 prototype to take a regcache. Adjust.
19052
442ea881
PA
190532010-01-20 Pedro Alves <pedro@codesourcery.com>
19054
19055 * regcache.h (struct thread_info): Forward declare.
19056 (struct regcache): New.
19057 (new_register_cache): Adjust prototype.
19058 (get_thread_regcache): Declare.
19059 (free_register_cache): Adjust prototype.
19060 (registers_to_string, registers_from_string): Ditto.
19061 (supply_register, supply_register_by_name, collect_register)
19062 (collect_register_as_string, collect_register_by_name): Ditto.
19063 * regcache.c (struct inferior_regcache_data): Delete.
19064 (get_regcache): Rename to ...
19065 (get_thread_regcache): ... this. Adjust. Switch inferior before
19066 fetching registers.
19067 (regcache_invalidate_one): Adjust.
19068 (regcache_invalidate): Fix prototype.
19069 (new_register_cache): Return the new register cache.
19070 (free_register_cache): Change prototype.
19071 (realloc_register_cache): Adjust.
19072 (registers_to_string): Change prototype to take a regcache. Adjust.
19073 (registers_from_string): Ditto.
19074 (register_data): Ditto.
19075 (supply_register): Ditto.
19076 (supply_register_by_name): Ditto.
19077 (collect_register): Ditto.
19078 (collect_register_as_string): Ditto.
19079 (collect_register_by_name): Ditto.
19080 * server.c (process_serial_event): Adjust.
19081 * linux-low.h (regset_fill_func, regset_store_func): Change
19082 prototype.
19083 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19084 Change prototype.
19085 * linux-low.c (get_stop_pc): Adjust.
19086 (check_removed_breakpoint): Adjust.
19087 (linux_wait_for_event): Adjust.
19088 (linux_resume_one_lwp): Adjust.
19089 (fetch_register): Add regcache parameter. Adjust.
19090 (usr_store_inferior_registers): Ditto.
19091 (regsets_fetch_inferior_registers): Ditto.
19092 (regsets_store_inferior_registers): Ditto.
19093 (linux_fetch_registers, linux_store_registers): Ditto.
19094 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19095 regcache. Adjust.
43aaf8b6
PA
19096 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19097 Ditto.
442ea881
PA
19098 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19099 prototype to take a regcache.
19100 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19101 * remote-utils.c (convert_ascii_to_int, outreg)
19102 (prepare_resume_reply): Change prototype to take a regcache.
19103 Adjust.
19104 * target.h (struct target_ops) <fetch_registers, store_registers>:
19105 Change prototype to take a regcache.
19106 (fetch_inferior_registers, store_inferior_registers): Change
19107 prototype to take a regcache. Adjust.
19108 * proc-service.c (ps_lgetregs): Adjust.
19109 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19110 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19111 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19112 take a regcache. Adjust.
19113 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19114 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19115 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19116 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19117 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19118 (cris_cannot_fetch_register):
19119 (cris_breakpoint_at): Change prototype to take a regcache.
19120 Adjust.
19121 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19122 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19123 to take a regcache. Adjust.
19124 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19125 Adjust.
19126 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19127 take a regcache. Adjust.
19128 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19129 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19130 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19131 * linux-mips-low.c (mips_get_pc):
19132 (mips_set_pc): Change prototype to take a regcache. Adjust.
19133 (mips_reinsert_addr): Adjust.
19134 (mips_collect_register): Change prototype to take a regcache.
19135 Adjust.
19136 (mips_supply_register):
19137 (mips_collect_register_32bit, mips_supply_register_32bit)
19138 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19139 (mips_store_fpregset): Ditto.
43aaf8b6
PA
19140 * linux-ppc-low.c (ppc_supply_ptrace_register)
19141 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
19142 (parse_spufs_run): Adjust.
19143 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19144 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19145 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19146 take a regcache. Adjust.
19147 * linux-s390-low.c (s390_collect_ptrace_register)
19148 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19149 (s390_set_pc): Change prototype to take a regcache. Adjust.
19150 (s390_arch_setup): Adjust.
19151 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19152 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19153 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19154 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19155 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19156 regcache. Adjust.
19157 (sparc_breakpoint_at): Adjust.
19158 * linux-xtensa-low.c (xtensa_fill_gregset):
19159 (xtensa_store_gregset):
19160 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19161 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19162 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19163 prototype to take a regcache. Adjust.
19164 * win32-arm-low.c (arm_fetch_inferior_register)
19165 (arm_store_inferior_register): Change prototype to take a
19166 regcache. Adjust.
19167 * win32-i386-low.c (i386_fetch_inferior_register)
19168 (i386_store_inferior_register): Change prototype to take a
19169 regcache. Adjust.
19170 * win32-low.c (child_fetch_inferior_registers)
19171 (child_store_inferior_registers): Change prototype to take a
19172 regcache. Adjust.
19173 (win32_wait): Adjust.
19174 (win32_fetch_inferior_registers): Change prototype to take a
19175 regcache. Adjust.
19176 (win32_store_inferior_registers): Adjust.
19177 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19178 store_inferior_register>: Change prototype to take a regcache.
19179
60c3d7b0
DE
191802010-01-20 Doug Evans <dje@google.com>
19181
19182 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19183 #ifdef.
19184 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 19185 (W_STOPCODE): Provide definition if missing.
60c3d7b0 19186
dc146f7c
VP
191872010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19188
19189 * linux-low.c (linux_core_of_thread): New.
19190 (compare_ints, show_process, list_threads): New.
19191 (linux_qxfer_osdata): Report threads and cores.
19192 (linux_target_op): Register linux_core_of_thread.
19193 * remote-utils.c (prepare_resume_reply): Report the core.
19194 (buffer_xml_printf): Support %d specifier.
19195 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19196 New.
19197 (handle_query): Handle qXfer:threads. Announce availability
19198 thereof.
19199 * target.h (struct target_ops): New field core_of_thread.
19200
7803799a
UW
192012010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19202
19203 * Makefile.in (clean): Remove new generated files.
19204 (reg-s390.o, reg-s390.c): Remove rules.
19205 (reg-s390x.o, reg-s390x.c): Likewise.
19206 (s390-linux32.o, s390-linux32.c): Add rules.
19207 (s390-linux64.o, s390-linux64.c): Likewise.
19208 (s390x-linux64.o, s390x-linux64.c): Likewise.
19209 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19210 * linux-s390-low.c: Include <elf.h>.
19211 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19212 (init_registers_s390): Remove prototype.
19213 (init_registers_s390x): Likewise.
19214 (init_registers_s390_linux32): Add prototype.
19215 (init_registers_s390_linux64): Likewise.
19216 (init_registers_s390x_linux64): Likewise.
19217 (s390_num_regs_3264): New define.
19218 (s390_regmap_3264): New global variable.
19219 (s390_cannot_fetch_register): Remove obsolete check.
19220 (s390_cannot_store_register): Likewise.
19221 (s390_collect_ptrace_register): Handle upper/lower register halves.
19222 (s390_supply_ptrace_register): Likewise.
19223 (s390_fill_gregset): Update to register number changes.
19224 (s390_get_hwcap): New routine.
19225 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19226 Install appropriate regmap and register set.
19227
6e7ffa39
JB
192282010-01-01 Joel Brobecker <brobecker@adacore.com>
19229
19230 * server.c (gdbserver_version): Update copyright year to 2010.
19231 * gdbreplay.c (gdbreplay_version): Likewise.
19232
957f3f49
DE
192332009-12-28 Doug Evans <dje@google.com>
19234
19235 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19236 elf/external.h. Include <elf.h> instead but only if necessary.
19237
ca5c370d
PA
192382009-12-28 Pedro Alves <pedro@codesourcery.com>
19239
19240 * linux-low.c (linux_remove_process): Remove `detaching'
19241 parameter. Don't release/detach from thread_db here.
19242 (linux_kill): Release/detach from thread_db here, ...
19243 (linux_detach): ... and here, before actually detaching.
19244 (linux_wait_1): ... and here, when a process exits.
19245 * thread-db.c (any_thread_of): New.
19246 (thread_db_free): Switch the current inferior to a thread of the
19247 passed in process.
19248
4ee62156
DE
192492009-12-21 Doug Evans <dje@google.com>
19250
d90e6a88
DE
19251 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19252
c5f62d5f
DE
19253 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19254 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19255 warning ifndef __NR_tkill. Move setting of errno there too.
19256 Delete unnecessary resetting of errno after syscall.
19257 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19258
10e86dd7
DE
19259 * configure.ac: Check for dladdr.
19260 * config.in: Regenerate.
19261 * configure: Regenerate.
19262 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19263 (try_thread_db_load): Update.
19264
4ee62156
DE
19265 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19266
00f515da
DE
192672009-12-18 Doug Evans <dje@google.com>
19268
e9464885
DE
19269 * event-loop.c: Include unistd.h if it exists.
19270
07d4f67e
DE
19271 * linux-low.c (my_waitpid): Move definition away from being in
19272 between linux_tracefork_child/linux_test_for_tracefork.
19273
00f515da
DE
19274 * gdb_proc_service.h (psaddr_t): Fix type.
19275 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19276 signature to match glibc.
19277
1de1badb
DE
192782009-12-16 Doug Evans <dje@google.com>
19279
19280 * linux-low.c (linux_read_memory): Fix argument to read.
19281
aeeb81d1
PA
192822009-11-26 Pedro Alves <pedro@codesourcery.com>
19283
19284 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19285 events, don't leave current_inferior pointing at null.
19286
10357975
PA
192872009-11-26 Pedro Alves <pedro@codesourcery.com>
19288
19289 * win32-low.c (LOG): Delete.
19290 (OUTMSG): Output to stderr.
19291 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19292 on compile time LOG macro.
19293 (win32_wait): Fix debug output.
19294
cf6e3471
PA
192952009-11-26 Pedro Alves <pedro@codesourcery.com>
19296
19297 * win32-low.c (win32_add_one_solib): If the dll name is
19298 "ntdll.dll", prepend the system directory to the dll path.
19299
0c85e18e
MK
193002009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19301
19302 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19303
9ac544ce 193042009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 19305 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
19306
19307 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19308 * configure.ac: Check for __mcoldfire__ and set
19309 gdb_cv_m68k_is_coldfire.
19310 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19311 reg-cf.o and reg-m68k.o.
19312 * configure: Regenerated.
19313
fd7dd3e6
PA
193142009-11-16 Pedro Alves <pedro@codesourcery.com>
19315
19316 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19317 Pass it to thread_db_free.
19318 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19319 proper `detaching' argument to linux_remove_process.
19320 * linux-low.h (thread_db_free): Add `detaching' parameter.
19321 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19322 to thread_db_free.
19323 (thread_db_free): Add `detaching' parameter. Only
19324 call td_ta_clear_event if detaching from process.
19325
75aa492e
MK
193262009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19327
19328 * thread-db.c (thread_db_free): Fix typo.
19329
21e1bee4
PP
193302009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19331
19332 PR gdb/10838
19333 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19334
8838b45e
NS
193352009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19336
19337 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19338 with an i686 compiler.
19339 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19340 needed.
19341 * configure: Rebuilt.
19342
8a35fb51
SL
193432009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19344
19345 PR gdb/10783
19346
19347 * server.c (handle_search_memory_1): Correct read_addr initialization
19348 in loop for searching subsequent chunks.
19349
96f15937
PP
193502009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19351
19352 * configure.ac: New --with-libthread-db option.
19353 * thread-db.c: Allow direct dependence on libthread_db.
19354 (thread_db_free): Adjust.
19355 * config.in: Regenerate.
19356 * configure: Likewise.
889bf7c5 19357
5f7d1694
PP
193582009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19359
19360 PR gdb/10757
19361 * thread-db.c (attach_thread): New function.
19362 (maybe_attach_thread): Return success/failure.
19363 (find_new_threads_callback): Adjust.
889bf7c5
PA
19364 (thread_db_find_new_threads): Loop until no new threads.
19365
88e3b899
PA
193662009-10-13 Pedro Alves <pedro@codesourcery.com>
19367
19368 * proc-service.c (ps_lgetregs): Formatting.
19369
cdbfd419
PP
193702009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19371
19372 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19373 * configure.ac: Adjust.
19374 * linux-low.h (struct process_info_private): Move members to struct
19375 thread_db.
19376 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19377 * linux-low.c (linux_remove_process): Adjust.
19378 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19379 * server.c (handle_query): Move code ...
19380 (handle_monitor_command): ... here. New function.
19381 * target.h (struct target_ops): New member.
19382 * thread-db.c (struct thread_db): New.
19383 (libthread_db_search_path): New variable.
19384 (thread_db_create_event, thread_db_enable_reporting)
19385 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19386 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19387 (try_thread_db_load_1, dladdr_to_soname): New functions.
19388 (try_thread_db_load, thread_db_load_search): New functions.
19389 (thread_db_init): Search for libthread_db.
19390 (thread_db_free): New function.
19391 (thread_db_handle_monitor_command): Likewise.
19392 * config.in: Regenerate.
19393 * configure: Regenerate.
889bf7c5 19394
4168d2d6
UW
193952009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19396
19397 * spu-low.c (spu_kill): Wait for inferior to terminate.
19398 Call clear_inferiors.
19399 (spu_detach): Call clear_inferiors.
19400
81ecdfbb
RW
194012009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19402
19403 * aclocal.m4: Regenerate.
19404 * config.in: Likewise.
19405 * configure: Likewise.
19406
0b9ff2c0
UW
194072009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19408
19409 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19410 (parse_spufs_run): New function.
19411 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19412 (ppc_breakpoint_at): Handle SPU breakpoints.
19413
efcbbd14
UW
194142009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19415
19416 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19417 (SPUFS_MAGIC): Define.
19418 (spu_enumerate_spu_ids): New function.
19419 (linux_qxfer_spu): New function.
19420 (linux_target_ops): Install linux_qxfer_spu.
19421
f4d9bade
UW
194222009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19423
19424 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19425 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19426 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19427 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19428 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19429 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19430 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19431 (init_registers_powerpc_cell32l): Add prototype.
19432 (init_registers_powerpc_cell64l): Likewise.
19433 (ppc_arch_setup): Detect Cell/B.E. architecture.
19434
96e946ca
RW
194352009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19436
19437 * Makefile.in (datarootdir): New variable.
19438
58d6951d
DJ
194392009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19440
19441 * linux-low.c (linux_write_memory): Update debugging output.
19442 * Makefile.in (clean): Add new descriptions.
19443 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19444 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19445 * configure.srv: Add new files for arm*-*-linux*.
19446 * linux-arm-low.c: Add new declarations.
19447 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19448 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19449 (HWCAP_VFPv3D16): New.
19450 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19451 instead of __IWMMXT__.
19452 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19453 (arm_arch_setup): New.
19454 (target_regsets): Remove #ifdef. Add VFP regset.
19455 (the_low_target): Use arm_arch_setup.
19456
12b42a12
DJ
194572009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19458
19459 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19460 the main thread again.
19461
ac8c974e
AR
194622009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19463
19464 Adding Neutrino gdbserver.
19465 * configure: Regenerated.
19466 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19467 * configure.srv (i[34567]86-*-nto*): New target.
19468 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19469 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19470 (nto_comctrl) [__QNX__]: New function.
19471 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19472
4424e0c3 194732009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19474
19475 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19476 srv_tgtobj.
19477
912cf4ba
PA
194782009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19479 Pedro Alves <pedro@codesourcery.com>
19480
19481 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19482 don't support CONTEXT_EXTENDED_REGISTERS.
19483 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19484 (the_low_target): Install them.
19485 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19486 failing with ERROR_PIPE_NOT_CONNECTED.
19487
aa5ca48f
DE
194882009-06-30 Doug Evans <dje@google.com>
19489 Pierre Muller <muller@ics.u-strasbg.fr>
19490
19491 Add h/w watchpoint support to x86-linux, win32-i386.
19492 * Makefile.in (SFILES): Add i386-low.c
19493 (i386_low_h): Define.
19494 (i386-low.o): Add dependencies.
19495 (linux-x86-low.o): Add i386-low.h dependency.
19496 (win32-i386-low.o): Ditto.
19497 * i386-low.c: New file.
19498 * i386-low.h: New file.
19499 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19500 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19501 * linux-low.c (linux_add_process): Initialize arch_private.
19502 (linux_remove_process): Free arch_private.
19503 (add_lwp): Initialize arch_private.
19504 (delete_lwp): Free arch_private.
19505 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19506 provided.
19507 * linux-low.h (process_info_private): New member arch_private.
19508 (lwp_info): New member arch_private.
19509 (linux_target_ops): New members new_process, new_thread,
19510 prepare_to_resume.
19511 (ptid_of): New macro.
19512 * linux-x86-low.c: Include stddef.h, i386-low.h.
19513 (arch_process_info): New struct.
19514 (arch_lwp_info): New struct.
19515 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19516 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19517 (i386_dr_low_get_status): New function.
19518 (x86_insert_point, x86_remove_point): New functions.
19519 (x86_stopped_by_watchpoint): New function.
19520 (x86_stopped_data_address): New function.
19521 (x86_linux_new_process, x86_linux_new_thread): New functions.
19522 (x86_linux_prepare_to_resume): New function.
19523 (the_low_target): Add entries for insert_point, remove_point,
19524 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19525 prepare_to_resume.
19526 * server.c (debug_hw_points): New global.
19527 (monitor_show_help): Document set debug-hw-points.
19528 (handle_query): Process "set debug-hw-points".
19529 * server.h (debug_hw_points): Declare.
19530 (paddress): Declare.
19531 * utils.c (NUMCELLS, CELLSIZE): New macros.
19532 (get_sell, xsnprintf, paddress): New functions.
19533 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19534 remove_point, stopped_by_watchpoint, stopped_data_address.
19535 * win32-i386-low.c: Include i386-low.h.
19536 (debug_reg_state): Replaces dr.
19537 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19538 (i386_dr_low_get_status): New function.
19539 (i386_insert_point, i386_remove_point): New functions.
19540 (i386_stopped_by_watchpoint): New function.
19541 (i386_stopped_data_address): New function.
19542 (i386_initial_stuff): Update.
19543 (get_thread_context,set_thread_context,i386_thread_added): Update.
19544 (the_low_target): Add entries for insert_point,
19545 remove_point, stopped_by_watchpoint, stopped_data_address.
19546 * win32-low.c (win32_insert_watchpoint): New function.
19547 (win32_remove_watchpoint): New function.
19548 (win32_stopped_by_watchpoint): New function.
19549 (win32_stopped_data_address): New function.
19550 (win32_target_ops): Add entries for insert_watchpoint,
19551 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19552 * win32-low.h (win32_target_ops): New members insert_point,
19553 remove_point, stopped_by_watchpoint, stopped_data_address.
19554
d993e290
PA
195552009-06-25 Pedro Alves <pedro@codesourcery.com>
19556
19557 * server.c (process_serial_event): Re-return unsupported, not
19558 error, if the type isn't recognized. Re-allow supporting only
19559 insert or remove packets. Also call require_running for
19560 breakpoints. Add missing break statement to default case. Tidy.
19561 * target.h (struct target_ops): Rename insert_watchpoint to
19562 insert_point, and remove_watchpoint to remove_point.
19563
19564 * linux-low.h (struct linux_target_ops): Likewise.
19565 * linux-low.c (linux_insert_watchpoint): Rename to ...
19566 (linux_insert_point): ... this. Adjust.
19567 (linux_remove_watchpoint): Rename to ...
19568 (linux_remove_point): ... this. Adjust.
19569 (linux_target_ops): Adjust.
19570 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19571 (cris_insert_point): ... this.
19572 (cris_remove_watchpoint): Rename to ...
19573 (cris_remove_point): ... this.
19574 (the_low_target): Adjust.
19575
0f54c268
PM
195762009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19577
19578 * server.c (handle_v_kill): Pass signal_pid to
19579 kill_inferior if multi_process is zero.
19580
c6314022
AR
195812009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19582
19583 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19584 * target.h (target_ops): Comment for *_watchpoint to make it clear
19585 the functions can get types '0' and '1'.
19586
4463ce24
AR
195872009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19588
19589 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19590 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19591 * regcache.c (get_regcache): Likewise.
19592 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19593 * win32-low.c (child_fetch_inferior_registers): Remove check for
19594 regno 0.
19595
cf8fd78b
PA
195962009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19597 Pedro Alves <pedro@codesourcery.com>
19598
19599 * target.h (struct target_ops) <supports_multi_process>: New
19600 callback.
19601 (target_supports_multi_process): New.
19602 * server.c (handle_query): Even if GDB reports support, only
19603 enable multi-process if the target also supports it. Report
19604 multi-process support only if the target backend supports it.
19605 * linux-low.c (linux_supports_multi_process): New function.
19606 (linux_target_ops): Install it as target_supports_multi_process
19607 callback.
19608
47c0c975
DE
196092009-05-24 Doug Evans <dje@google.com>
19610
e09875d4
DE
19611 Global renaming of find_thread_pid to find_thread_ptid.
19612 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19613 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19614 All callers updated.
19615
e27d73f6
DE
19616 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19617 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19618 directly.
19619
47c0c975
DE
19620 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19621 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19622 (linux_resume_one_lwp): Ditto.
19623
2acc282a
DE
196242009-05-23 Doug Evans <dje@google.com>
19625
19626 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19627 from struct inferior_list_entry * to struct lwp_info *.
19628 All callers updated.
19629
9f1036c1
DE
196302009-05-13 Doug Evans <dje@google.com>
19631
19632 * linux-x86-low.c: Don't include assert.h.
19633 (x86_siginfo_fixup): Use fatal, not assert.
19634 (x86_arch_setup): Fix comment.
19635
d0722149
DE
196362009-05-12 Doug Evans <dje@google.com>
19637
19638 Biarch support for i386/amd64 gdbserver.
19639 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19640 Add linux-x86-low.c.
19641 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19642 (linux-x86-low.o): Add.
19643 * linux-x86-64-low.c: Delete.
19644 * linux-i386-low.c: Delete.
19645 * linux-x86-low.c: New file.
19646 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19647 linux-x86-low.o.
19648 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19649 linux-x86-low.o.
19650 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19651 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19652 (linux_child_pid_to_exec_file): New function.
19653 (elf_64_header_p, elf_64_file_p): New functions.
19654 (siginfo_fixup): New function.
19655 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19656 give target a chance to convert layout.
19657 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19658 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19659
fdeb2a12
DE
196602009-05-07 Doug Evans <dje@google.com>
19661
19662 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19663 (regsets_store_inferior_registers): Ditto.
19664
a6dbe5df
PA
196652009-05-06 Pedro Alves <pedro@codesourcery.com>
19666
19667 PR server/10048
19668
19669 * linux-low.c (must_set_ptrace_flags): Delete.
19670 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19671 of the global.
19672 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19673 `lwp->must_set_ptrace_flags' instead.
ba42693b 19674 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19675 (linux_wait_1): ... not here.
19676
5091eb23
DE
196772009-04-30 Doug Evans <dje@google.com>
19678
9f767825
DE
19679 * inferiors.c (started_inferior_callback): New function.
19680 (attached_inferior_callback): New function.
19681 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19682 * server.c (print_started_pid, print_attached_pid): New functions.
19683 (detach_or_kill_for_exit): New function.
19684 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19685 * server.h (have_started_inferiors_p): Declare.
19686 (have_attached_inferiors_p): Declare.
19687
5091eb23
DE
19688 * inferiors.c (remove_process): Fix memory leak, free process.
19689 * linux-low.c (linux_remove_process): New function.
19690 (linux_kill): Call it instead of remove_process.
19691 (linux_detach, linux_wait_1): Ditto.
19692
155c8968
PA
196932009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19694
19695 * configure.srv: Add x86 Windows CE target.
19696
7fe519cb
UW
196972009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19698
19699 * inferiors.c (get_thread_process): Make global.
19700 * server.h (get_thread_process): Add prototype.
19701 * thread-db.c (find_one_thread): Use get_thread_process
19702 instead of current_process.
19703 (thread_db_get_tls_address): Do not crash if called when
19704 thread layer is not yet initialized.
19705
5472f405
UW
197062009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19707
19708 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19709 * spu-low.c (current_tid): Rename to ...
19710 (current_ptid): ... this.
19711 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19712 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19713 ptid_get_lwp (current_ptid) instead of current_tid.
19714 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19715 instead of current_tid. Use find_process_pid to verify pid
19716 argument is valid. Pass proper argument to remove_process.
19717 (spu_thread_alive): Compare current_ptid instead of current_tid.
19718 (spu_resume): Likewise.
19719
55ac2b99
PA
197202009-04-02 Pedro Alves <pedro@codesourcery.com>
19721
19722 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19723 variable.
19724
95954743
PA
197252009-04-01 Pedro Alves <pedro@codesourcery.com>
19726
19727 Implement the multiprocess extensions, and add linux multiprocess
19728 support.
19729
19730 * server.h (ULONGEST): Declare.
19731 (struct ptid, ptid_t): New.
19732 (minus_one_ptid, null_ptid): Declare.
19733 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19734 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19735 (struct inferior_list_entry): Change `id' type from unsigned from
19736 to ptid_t.
19737 (struct sym_cache, struct breakpoint, struct
19738 process_info_private): Forward declare.
19739 (struct process_info): Declare.
19740 (current_process): Declare.
19741 (all_processes): Declare.
19742 (initialize_inferiors): Declare.
19743 (add_thread): Adjust to use ptid_t.
19744 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19745 (add_process, remove_process, find_thread_pid): Declare.
19746 (find_inferior_id): Adjust to use ptid_t.
19747 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19748 (multi_process): Declare.
19749 (push_event): Adjust to use ptid_t.
19750 (read_ptid, write_ptid): Declare.
19751 (prepare_resume_reply): Adjust to use ptid_t.
19752 (clear_symbol_cache): Declare.
19753 * inferiors.c (all_processes): New.
19754 (null_ptid, minus_one_ptid): New.
19755 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19756 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19757 (add_thread): Change unsigned long to ptid. Remove gdb_id
19758 parameter. Adjust.
19759 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19760 (gdb_id_to_thread): Rename to ...
19761 (find_thread_pid): ... this. Change unsigned long to ptid.
19762 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19763 (loaded_dll, pull_pid_from_list): Adjust.
19764 (add_process, remove_process, find_process_pid)
19765 (get_thread_process, current_process, initialize_inferiors): New.
19766 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19767 (struct target_waitstatus) <related_pid>: Ditto.
19768 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19769 return type to int.
19770 (struct target_ops) <join>: Add `pid' argument.
19771 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19772 (struct target_ops) <wait>: Add `ptid' field. Change return type
19773 to ptid.
19774 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19775 (mywait): Add `ptid' argument. Change return type to ptid_t.
19776 (target_pid_to_str): Declare.
19777 * target.c (set_desired_inferior): Adjust to use ptids.
19778 (mywait): Add new `ptid' argument. Adjust.
19779 (target_pid_to_str): New.
19780 * mem-break.h (free_all_breakpoints): Declare.
19781 * mem-break.c (breakpoints): Delelete.
19782 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19783 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19784 to use per-process breakpoint list.
19785 (free_all_breakpoints): New.
19786 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19787 (symbol_cache, all_symbols_looked_up): Delete.
19788 (hexchars): New.
19789 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19790 read_ptid): New.
19791 (prepare_resume_reply): Change ptid argument's type from unsigned
19792 long to ptid_t. Adjust. Implement W;process and X;process.
19793 (free_sym_cache, clear_symbol_cache): New.
19794 (look_up_one_symbol): Adjust to per-process symbol cache. *
19795 * server.c (cont_thread, general_thread, step_thread): Change type
19796 to ptid_t.
19797 (attached): Delete.
19798 (multi_process): New.
19799 (last_ptid): Change type to ptid_t.
19800 (struct vstop_notif) <ptid>: Change type to ptid_t.
19801 (queue_stop_reply, push_event): Change `ptid' argument's type to
19802 ptid_t.
19803 (discard_queued_stop_replies): Add `pid' argument.
19804 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19805 changes. Don't reference the `attached' global.
19806 (attach_inferior): Adjust to mywait interface changes.
19807 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19808 features. Handle and report "multiprocess+". Handle
19809 "qAttached:PID".
19810 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19811 changes.
19812 (handle_v_kill): New.
19813 (handle_v_stopped): Adjust to use target_pid_to_str.
19814 (handle_v_requests): Allow multiple attaches and runs when
19815 multiprocess extensions are in effect. Handle "vKill".
19816 (myresume): Adjust to use ptids.
19817 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19818 (handle_status): Adjust to discard_queued_stop_replies interface
19819 change.
19820 (first_thread_of, kill_inferior_callback)
19821 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19822 (main): Call initialize_inferiors. Adjust to use ptids, killing
19823 and detaching from all inferiors. Handle multiprocess packet
19824 variants.
19825 * linux-low.h: Include gdb_proc_service.h.
19826 (struct process_info_private): New.
19827 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19828 <lwpid_of>: Use ptid_get_lwp.
19829 (get_lwp_thread): Adjust.
19830 (struct lwp_info): Add `dead' member.
19831 (find_lwp_pid): Declare.
19832 * linux-low.c (thread_db_active): Delete.
19833 (new_inferior): Adjust comment.
19834 (inferior_pid): Delete.
19835 (linux_add_process): New.
19836 (handle_extended_wait): Adjust.
19837 (add_lwp): Change unsigned long to ptid.
19838 (linux_create_inferior): Add process to processes table. Adjust
19839 to use ptids. Don't set new_inferior here.
19840 (linux_attach_lwp): Rename to ...
19841 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19842 it. Adjust to use ptids.
19843 (linux_attach_lwp): New.
19844 (linux_attach): Add process to processes table. Don't set
19845 new_inferior here.
19846 (struct counter): New.
19847 (second_thread_of_pid_p, last_thread_of_process_p): New.
19848 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19849 multiple processes.
19850 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19851 processes. Remove process from process table.
19852 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19853 to multiple processes.
19854 (any_thread_of): New.
19855 (linux_detach): Add `pid' argument, and handle it. Remove process
19856 from processes table.
19857 (linux_join): Add `pid' argument. Handle it.
19858 (linux_thread_alive): Change unsighed long argument to ptid_t.
19859 Consider dead lwps as not being alive.
19860 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19861 threads we're not interested in.
19862 (same_lwp, find_lwp_pid): New.
19863 (linux_wait_for_lwp): Change `pid' argument's type from int to
19864 ptid_t. Adjust.
19865 (linux_wait_for_event): Rename to ...
19866 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19867 from int to ptid_t. Adjust.
19868 (linux_wait_for_event): New.
19869 (linux_wait_1): Add `ptid' argument. Change return type to
19870 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19871 that exit from the process table.
19872 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19873 Adjust.
19874 (mark_lwp_dead): New.
19875 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19876 stopping all threads, mark its main lwp as dead.
19877 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19878 ptids.
19879 (fetch_register, usr_store_inferior_registers)
19880 (regsets_fetch_inferior_registers)
19881 (regsets_store_inferior_registers, linux_read_memory)
19882 (linux_write_memory): Inline `inferior_pid'.
19883 (linux_look_up_symbols): Adjust to use per-process
19884 `thread_db_active'.
19885 (linux_request_interrupt): Adjust to use ptids.
19886 (linux_read_auxv): Inline `inferior_pid'.
19887 (initialize_low): Don't reference thread_db_active.
19888 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19889 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19890 (ps_getpid): Return the pid of the current inferior.
19891 * thread-db.c (proc_handle, thread_agent): Delete.
19892 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19893 per-process data.
19894 (find_one_thread): Change argument type to ptid_t. Adjust to
19895 per-process data.
19896 (maybe_attach_thread): Adjust to per-process data and ptids.
19897 (thread_db_find_new_threads): Ditto.
19898 (thread_db_init): Ditto.
19899 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19900 processes table. Adjust to use ptids.
19901 (spu_kill, spu_detach): Adjust interface. Remove process from
19902 processes table.
19903 (spu_join, spu_thread_alive): Adjust interface.
19904 (spu_wait): Adjust interface. Remove process from processes
19905 table. Adjust to use ptids.
19906 * win32-low.c (current_inferior_tid): Delete.
19907 (current_inferior_ptid): New.
19908 (debug_event_ptid): New.
19909 (thread_rec): Take a ptid. Adjust.
19910 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19911 (child_delete_thread): Ditto.
19912 (do_initial_child_stuff): Add `attached' argument. Add process to
19913 processes table.
19914 (child_fetch_inferior_registers, child_store_inferior_registers):
19915 Adjust.
19916 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19917 (win32_attach): Pass 1 to do_initial_child_stuff.
19918 (win32_kill): Adjust interface. Remove process from processes
19919 table.
19920 (win32_detach): Ditto.
19921 (win32_join): Adjust interface.
19922 (win32_thread_alive): Take a ptid.
19923 (win32_resume): Adjust to use ptids.
19924 (get_child_debug_event): Ditto.
19925 (win32_wait): Adjust interface. Remove exiting process from
19926 processes table.
19927
bd99dc85
PA
199282009-04-01 Pedro Alves <pedro@codesourcery.com>
19929
19930 Non-stop mode support.
19931
19932 * server.h (non_stop): Declare.
19933 (gdb_client_data, handler_func): Declare.
19934 (delete_file_handler, add_file_handler, start_event_loop):
19935 Declare.
19936 (handle_serial_event, handle_target_event, push_event)
19937 (putpkt_notif): Declare.
19938 * target.h (enum resume_kind): New.
19939 (struct thread_resume): Replace `step' field by `kind' field.
19940 (TARGET_WNOHANG): Define.
19941 (struct target_ops) <wait>: Add `options' argument.
19942 <supports_non_stop, async, start_non_stop>: New fields.
19943 (target_supports_non_stop, target_async): New.
19944 (start_non_stop): Declare.
19945 (mywait): Add `options' argument.
19946 * target.c (mywait): Add `options' argument. Print child exit
19947 notifications here.
19948 (start_non_stop): New.
19949 * server.c (non_stop, own_buf, mem_buf): New globals.
19950 (struct vstop_notif): New.
19951 (notif_queue): New global.
19952 (queue_stop_reply, push_event, discard_queued_stop_replies)
19953 (send_next_stop_reply): New.
19954 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19955 interface changes.
19956 (attach_inferior): In non-stop mode, don't wait for the target
19957 here.
19958 (handle_general_set): Handle QNonStop.
19959 (handle_query): When handling qC, return the current general
19960 thread, instead of the first thread of the list.
19961 (handle_query): If the backend supports non-stop mode, include
19962 QNonStop+ in the qSupported query response.
19963 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19964 and non-stop mode.
19965 (handle_v_attach, handle_v_run): Handle non-stop mode.
19966 (handle_v_stopped): New.
19967 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19968 (myresume): Adjust to use resume_kind. Handle non-stop.
19969 (queue_stop_reply_callback): New.
19970 (handle_status): Handle non-stop mode.
19971 (main): Clear non_stop flag on reconnection. Use the event-loop.
19972 Refactor serial protocol handling from here ...
19973 (process_serial_event): ... to this new function. When GDB
19974 selects any thread, select one here. In non-stop mode, wait until
19975 GDB acks all pending events before exiting.
19976 (handle_serial_event, handle_target_event): New.
19977 * remote-utils.c (remote_open): Install remote_desc in the event
19978 loop.
19979 (remote_close): Remove remote_desc from the event loop.
19980 (putpkt_binary): Rename to...
19981 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19982 (putpkt_binary): New as wrapper around putpkt_binary_1.
19983 (putpkt_notif): New.
19984 (prepare_resume_reply): In non-stop mode, don't change the
19985 general_thread.
19986 * event-loop.c: New.
19987 * Makefile.in (OBJ): Add event-loop.o.
19988 (event-loop.o): New rule.
19989
19990 * linux-low.h (pid_of): Moved here.
19991 (lwpid_of): New.
19992 (get_lwp_thread): Use lwpid_of.
19993 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19994 * linux-low.c (pid_of): Delete.
19995 (inferior_pid): Use lwpid_of.
19996 (linux_event_pipe): New.
19997 (target_is_async_p): New.
19998 (delete_lwp): New.
19999 (handle_extended_wait): Use lwpid_of.
20000 (add_lwp): Don't set lwpid field.
20001 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
20002 (linux_kill_one_lwp): If killing a running lwp, stop it first.
20003 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
20004 (linux_detach_one_lwp): If detaching from a running lwp, stop it
20005 first. Adjust to linux_wait_for_event interface changes. Use
20006 lwpid_of.
20007 (linux_detach): Don't delete the main lwp here.
20008 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
20009 (status_pending_p): Don't consider explicitly suspended lwps.
20010 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
20011 pointer. Add OPTIONS argument. Change return type to int. Use
20012 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
20013 (linux_wait_for_event): Take an integer pid instead of a lwp_info
20014 pointer. Add status pointer argument. Return a pid instead of a
20015 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
20016 changes. In non-stop mode, don't switch to a random thread.
20017 (linux_wait): Rename to...
20018 (linux_wait_1): ... this. Add target_options argument, and handle
20019 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
20020 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
20021 clean exit and signal exit code. Don't stop all threads in
20022 non-stop mode. In all-stop mode, only stop all threads when
20023 reporting a stop to GDB. Handle explicit thread stop requests.
20024 (async_file_flush, async_file_mark): New.
20025 (linux_wait): New.
20026 (send_sigstop): Use lwpid_of.
20027 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
20028 interface changes. In non-stop mode, don't switch to a random
20029 thread.
20030 (linux_resume_one_lwp): Use lwpid_of.
20031 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20032 (linux_resume_one_thread): ... this. Handle resume_stop. In
20033 non-stop mode, don't look for pending flag in all threads.
20034 (resume_status_pending_p): Don't consider explicitly suspended
20035 threads.
20036 (my_waitpid): Reimplement. Emulate __WALL.
20037 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20038 Use lwpid_of.
20039 (sigchld_handler, linux_supports_non_stop, linux_async)
20040 (linux_start_non_stop): New.
20041 (linux_target_ops): Register linux_supports_non_stop, linux_async
20042 and linux_start_non_stop.
20043 (initialize_low): Install SIGCHLD handler.
20044 * thread-db.c (thread_db_create_event, find_one_thread)
20045 (thread_db_get_tls_address): Use lwpid_of.
20046 * win32-low.c (win32_detach): Adjust to use resume_kind.
20047 (win32_wait): Add `options' argument.
20048 * spu-low.c (spu_resume): Adjust to use resume_kind.
20049 (spu_wait): Add `options' argument.
20050
5b1c542e
PA
200512009-04-01 Pedro Alves <pedro@codesourcery.com>
20052
20053 Decouple target code from remote protocol.
20054
20055 * target.h (enum target_waitkind): New.
20056 (struct target_waitstatus): New.
20057 (struct target_ops) <wait>: Return an unsigned long. Take a
20058 target_waitstatus pointer instead of a char pointer.
20059 (mywait): Likewise.
20060 * target.c (mywait): Change prototype to return an unsigned long.
20061 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20062 * server.h (thread_from_wait, old_thread_from_wait): Delete
20063 declarations.
20064 (prepare_resume_reply): Change prototype to take a
20065 target_waitstatus.
20066 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20067 (last_status, last_ptid): New.
20068 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20069 pid instead of a signal.
20070 (attach_inferior): Remove "status" and "signal" parameters.
20071 Adjust.
20072 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20073 not as an address.
20074 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20075 (handle_v_requests, myresume): Remove "status" and "signal"
20076 parameters. Adjust.
20077 (handle_status): New.
20078 (main): Delete local `status'. Adjust.
20079 * remote-utils.c: Include target.h.
20080 (prepare_resume_reply): Change prototype to take a
20081 target_waitstatus. Adjust.
20082
20083 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20084 interface.
20085 * spu-low.c (spu_wait): Adjust.
20086 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20087 Delete.
20088 (win32_wait): Adjust.
20089
2bd7c093
PA
200902009-04-01 Pedro Alves <pedro@codesourcery.com>
20091
20092 * target.h (struct thread_resume): Delete leave_stopped member.
20093 (struct target_ops): Add a `n' argument to the `resume' callback.
20094 * server.c (start_inferior): Adjust.
20095 (handle_v_cont, myresume): Adjust.
20096 * linux-low.c (check_removed_breakpoint): Adjust to resume
20097 interface change, and to removed leave_stopped field.
20098 (resume_ptr): Delete.
20099 (struct thread_resume_array): New.
20100 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20101 resume interface change.
20102 (linux_continue_one_thread, linux_queue_one_thread)
20103 (resume_status_pending_p): Check if the resume field is NULL
20104 instead of checking the leave_stopped member.
20105 (linux_resume): Adjust to the target resume interface change.
20106 * spu-low.c (spu_resume): Adjust to the target resume interface
20107 change.
20108 * win32-low.c (win32_detach, win32_resume): Ditto.
20109
c35fafde
PA
201102009-04-01 Pedro Alves <pedro@codesourcery.com>
20111
20112 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20113 flag.
20114 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20115 pending.
20116 (linux_continue_one_thread): Only preserve the stepping flag if
20117 there's a pending breakpoint.
20118
0a59d50b
PA
201192009-03-31 Pedro Alves <pedro@codesourcery.com>
20120
20121 * server.c (main): After the inferior having exited, call
20122 remote_close before exiting gdbserver.
20123
f04c6d38
TJB
201242009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20125
20126 Fix size of FPSCR in Power 7 processors.
20127 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20128 (PPC_FEATURE_HAS_DFP): New #define.
20129 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20130 size of the FPSCR.
20131
78e5cee6
PA
201322009-03-23 Pedro Alves <pedro@codesourcery.com>
20133
20134 * server.c (handle_query) Whitespace and formatting.
20135
1b3f6016
PA
201362009-03-22 Pedro Alves <pedro@codesourcery.com>
20137
20138 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20139 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20140 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20141 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20142 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20143 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20144 Makefile.in, configure.ac: Fix whitespace throughout.
20145 * configure: Regenerate.
20146
a07b2135
PA
201472009-03-22 Pedro Alves <pedro@codesourcery.com>
20148
20149 * inferiors.c (find_inferior): Make it safe for the callback
20150 function to delete the currently iterated inferior.
20151
67cc2626
PA
201522009-03-22 Pedro Alves <pedro@codesourcery.com>
20153
20154 * Makefile.in (linuw_low_h): Move higher.
20155 (thread-db.o): Depend on $(linux_low_h).
20156
54a0b537
PA
201572009-03-17 Pedro Alves <pedro@codesourcery.com>
20158
20159 Rename "process" to "lwp" throughout.
20160
20161 * linux-low.c (all_processes): Rename to...
20162 (all_lwps): ... this.
20163 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20164 (add_process): Rename to ...
20165 (add_lwp): ... this. Adjust.
20166 (linux_create_inferior): Adjust.
20167 (linux_attach_lwp): Adjust.
20168 (linux_attach): Adjust.
20169 (linux_kill_one_process): Rename to ...
20170 (linux_kill_one_lwp): ... this. Adjust.
20171 (linux_kill): Adjust.
20172 (linux_detach_one_process): Rename to ...
20173 (linux_detach_one_lwp): ... this. Adjust.
20174 (linux_detach): Adjust.
20175 (check_removed_breakpoint): Adjust.
20176 (status_pending_p): Adjust.
20177 (linux_wait_for_process): Rename to ...
20178 (linux_wait_for_lwp): ... this. Adjust.
20179 (linux_wait_for_event): Adjust.
20180 (send_sigstop): Adjust.
20181 (wait_for_sigstop): Adjust.
20182 (stop_all_processes): Rename to ...
20183 (stop_all_lwps): ... this.
20184 (linux_resume_one_process): Rename to ...
20185 (linux_resume_one_lwp): ... this. Adjust.
20186 (linux_set_resume_request, linux_continue_one_thread)
20187 (linux_queue_one_thread, resume_status_pending_p)
20188 (usr_store_inferior_registers, regsets_store_inferior_registers)
20189 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20190 Adjust.
20191 * linux-low.h (get_process): Rename to ...
20192 (get_lwp): ... this. Adjust.
20193 (get_thread_process): Rename to ...
20194 (get_thread_lwp): ... this. Adjust.
20195 (get_process_thread): Rename to ...
20196 (get_lwp_thread): ... this. Adjust.
20197 (struct process_info): Rename to ...
20198 (struct lwp_info): ... this.
20199 (all_processes): Rename to ...
20200 (all_lwps): ... this.
20201 * proc-service.c (ps_lgetregs): Adjust.
20202 * thread-db.c (thread_db_create_event, find_one_thread)
20203 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20204
0b16c5cf
PA
202052009-03-14 Pedro Alves <pedro@codesourcery.com>
20206
20207 * server.c (handle_query): Handle "qAttached".
20208
32de4b9d
NS
202092009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20210
20211 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20212 GPLv3, update license URL.
20213
2aecd87f
DE
202142009-03-01 Doug Evans <dje@google.com>
20215
93efd302 20216 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
20217 (server_h): Add gdb_signals.h.
20218 (signals.o): Update.
20219 * server.h (target_signal_from_host,target_signal_to_host_p)
20220 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20221
86b1f9c5
PM
202222009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20223
20224 * remote-utils.c (getpkt): Also generate remote-debug
20225 information if noack_mode is set.
20226
4aa995e1
PA
202272009-02-06 Pedro Alves <pedro@codesourcery.com>
20228
20229 * server.c (handle_query): Report qXfer:siginfo:read and
20230 qXfer:siginfo:write as supported and handle them.
20231 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20232 * linux-low.c (linux_xfer_siginfo): New.
20233 (linux_target_ops): Set it.
20234
62709adf
PA
202352009-01-26 Pedro Alves <pedro@codesourcery.com>
20236
20237 * server.c (gdbserver_usage): Mention --remote-debug.
20238 (main): Accept '--remote-debug' switch.
20239
aef93bd7
DE
202402009-01-18 Doug Evans <dje@google.com>
20241
20242 * regcache.c (new_register_cache): No need to check result of xcalloc.
20243 * server.c (handle_search_memory): Back out calls to xmalloc,
20244 result is checked and error is returned to user upon failure.
20245 (handle_query): Ditto. Add more checks for result of malloc.
20246 (handle_v_cont): Check result of malloc, report error back to
20247 user upon failure.
20248 (handle_v_run): Ditto. Call freeargv.
20249 * server.h (freeargv): Declare.
20250 * utils.c (freeargv): New fn.
20251
54363045
DE
202522009-01-15 Doug Evans <dje@google.com>
20253
f626972c
DE
20254 * gdbreplay.c (perror_with_name): Make arg const char *.
20255 * server.h (target_signal_to_name): Make return type const char *.
0842e787 20256 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 20257 * utils.c (perror_with_name): Make arg const char *.
54363045 20258
18aae699
PA
202592009-01-14 Pedro Alves <pedro@codesourcery.com>
20260
20261 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20262 when handling a EXIT_PROCESS_DEBUG_EVENT.
20263
ff703abe
JB
202642009-01-06 Joel Brobecker <brobecker@adacore.com>
20265
20266 * gdbreplay.c (gdbreplay_version): Update copyright year.
20267 * server.c (gdbserver_version): Likewise.
20268
f21cc1a2 202692009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
20270
20271 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 20272 (handle_extended_wait): Improve comment.
0e21c1ec 20273
bca929d3
DE
202742008-12-13 Doug Evans <dje@google.com>
20275
20276 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20277 * server.h (ATTR_MALLOC): New macro.
20278 (xmalloc,xcalloc,xstrdup): Declare.
20279 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20280 * inferiors.c: Ditto.
20281 * linux-low.c: Ditto.
20282 * mem-break.c: Ditto.
20283 * regcache.c: Ditto.
20284 * remote-utils.c: Ditto.
20285 * server.c: Ditto.
20286 * target.c: Ditto.
20287 * win32-low.c: Ditto.
20288
97438e3f
DE
202892008-12-12 Doug Evans <dje@google.com>
20290
896c7fbb
DE
20291 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20292 in debugging printf.
20293
97438e3f
DE
20294 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20295
e3b886f8
DE
202962008-12-09 Doug Evans <dje@google.com>
20297
20298 * linux-low.h (struct process_info): Delete member tid, unused.
20299 * thread-db.c (find_one_thread): Update.
20300 (maybe_attach_thread): Update.
20301
07e059b5
VP
203022008-12-02 Pedro Alves <pedro@codesourcery.com>
20303
889bf7c5
PA
20304 * target.h (struct target_ops): Add qxfer_osdata member.
20305 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20306 and dirent.h.
20307 (linux_qxfer_osdata): New functions.
20308 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20309 callback.
20310 * server.c (handle_query): Handle "qXfer:osdata:read:".
20311 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20312 (buffer_xml_printf): New functions.
20313 * server.h (struct buffer): New.
20314 (buffer_grow_str, buffer_grow_str0): New macros.
20315 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20316 (buffer_xml_printf): Declare.
07e059b5 20317
4cab47ab
DE
203182008-11-24 Doug Evans <dje@google.com>
20319
20320 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20321
f142445f
DJ
203222008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20323
20324 * server.c (handle_v_run): Always use the supplied argument list.
20325
d0107bb6 203262008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20327
d0107bb6
BW
20328 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20329 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20330
2c4ad781
TJB
203312008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20332
20333 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20334 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20335 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20336 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20337 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20338 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20339 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20340 XML target descriptions.
20341 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20342 when inferior is running on an ISA 2.05 or later processor. Add
20343 special case to return offset for full 64-bit slot of FPSCR when
20344 in 32-bits.
20345
dfb64f85
DJ
203462008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20347
20348 * Makefile.in (SFILES, clean): Added sparc64 files.
20349 (reg-sparc64.o, reg-sparc64.c): New.
20350 * configure.srv (sparc*-*-linux*): New configuration.
20351 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20352 syscall arguments for SPARC.
20353 (regsets_store_inferior_registers): Likewise.
20354 * linux-sparc-low.c: New file.
20355
66b6e1dd
DE
203562008-10-21 Doug Evans <dje@google.com>
20357
20358 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20359 (READLINE_DIR,READLINE_DEP): Delete.
20360 (INTERNAL_CFLAGS): Update.
20361 (LINTFLAGS): Update.
20362
9b710a42
PA
203632008-10-10 Pedro Alves <pedro@codesourcery.com>
20364
20365 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20366 whole argv from the last run, not just argv[0].
20367
5822d809
PA
203682008-09-08 Pedro Alves <pedro@codesourcery.com>
20369
20370 * regcache.c (new_register_cache): Return NULL if the register
20371 cache size isn't known yet.
20372 (free_register_cache): Avoid dereferencing a NULL regcache.
20373
74aac56f
DJ
203742008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20375
20376 * configure.srv: Merge MIPS and MIPS64.
20377
400b20f5
MR
203782008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20379
20380 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20381
677c5bb1
LM
203822008-08-18 Luis Machado <luisgpm@br.ibm.com>
20383
20384 * Makefile.in: Add required vsx dependencies.
20385
20386 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20387 Declare init_registers_powerpc_vsx32l.
20388 Declare init_registers_powerpc_vsx64l.
20389 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20390 (ppc_arch_setup): Check for VSX in hwcap.
20391 (ppc_fill_vsxregset): New function.
20392 (ppc_store_vsxregset): New function.
20393 Add new VSX entry in regset_info target_regsets.
20394
20395 * configure.srv: Add new VSX dependencies.
20396
a6f3e723
SL
203972008-08-12 Pedro Alves <pedro@codesourcery.com>
20398
20399 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20400 (remote_open): Set or clear transport_is_reliable.
20401 (putpkt_binary): Don't expect acks in noack mode.
20402 (getpkt): Don't send ack/nac in noack mode.
20403 * server.c (handle_general_set): Handle QStartNoAckMode.
20404 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20405 qSupported.
20406 (main): Reset noack_mode on every connection.
20407 * server.h (noack_mode): Declare.
20408
a417dc56
RW
204092008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20410
20411 * Makefile.in (GDBREPLAY_OBS): New variable.
20412 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20413
3221518c
UW
204142008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20415 Daniel Jacobowitz <dan@codesourcery.com>
20416
20417 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20418 (usr_store_inferior_registers): Likewise.
20419 (regsets_store_inferior_registers): Likewise.
20420
ec56be1b
PA
204212008-07-31 Rolf Jansen <rj@surtec.com>
20422 Pedro Alves <pedro@codesourcery.com>
20423
20424 * configure.ac: Check for memmem declaration.
20425 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20426 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20427 (disable_packet_qfThreadInfo): Unconditionally compile.
20428 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20429 * configure, config.in: Regenerate.
20430
2fe5e3ff
DE
204312008-07-28 Doug Kwan <dougkwan@google.com>
20432
20433 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20434 (linux_write_memory): Remove declaration of errno.
20435
836acd6d
UW
204362008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20437
20438 * linux-low.c (handle_extended_wait): Do not use "status"
20439 variable uninitialized.
20440
aeba519e
PA
204412008-07-07 Pedro Alves <pedro@codesourcery.com>
20442
20443 * server.c (handle_v_attach): Inhibit reporting dll changes.
20444
db42f210
PA
204452008-06-27 Pedro Alves <pedro@codesourcery.com>
20446
20447 * remote-utils.c (prepare_resume_reply): If requested, don't
20448 output "thread:TID" in the T stop reply.
20449
20450 * server.c (disable_packet_vCont, disable_packet_Tthread)
20451 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20452 (handle_query): If requested, disable support for qC, qfThreadInfo
20453 and qsThreadInfo.
20454 (handle_v_requests): If requested, disable support for vCont.
20455 (gdbserver_show_disableable): New.
20456 (main): Handle --disable-packet and --disable-packet=LIST.
20457
20458 * server.h (disable_packet_vCont, disable_packet_Tthread)
20459 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20460
8e4c5421
CD
204612008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20462
20463 * server.c (gdbserver_usage): Mention --version.
20464
6e23a804
DJ
204652008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20466
20467 * Makefile.in (gdbreplay.o): New rule.
20468
90aa6a40
JM
204692008-06-06 Joseph Myers <joseph@codesourcery.com>
20470
20471 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20472 message, not gdbserver.
20473
c16158bc 204742008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20475 Nathan Sidwell <nathan@codesourcery.com>
20476 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20477
20478 * acinclude.m4: Include ../../config/acx.m4.
20479 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20480 * configure, config.in: Regenerate.
20481 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20482 * server.c (gdbserver_version): Print PKGVERSION.
20483 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20484 (main): Adjust gdbserver_usage calls.
20485 * gdbreplay.c (version, host_name): Add declarations.
20486 (gdbreplay_version, gdbreplay_usage): New.
20487 (main): Accept --version and --help options.
20488
aeb75bf5
DJ
204892008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20490
20491 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20492 (arm_breakpoint_at): Handle Thumb.
20493 (the_low_target): Add comment.
20494
76b233dd
UW
204952008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20496
20497 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20498
08388c79
DE
204992008-05-09 Doug Evans <dje@google.com>
20500
a3c83fae
DE
20501 * server.h (decode_search_memory_packet): Declare.
20502 * remote-utils.c (decode_search_memory_packet): New fn.
20503 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20504 (handle_search_memory): New fn.
20505 (handle_query): Process qSearch:memory packets.
20506
bb9c3d36
UW
205072008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20508
20509 * regcache.c (registers_length): Remove.
20510 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20511 full register packet.
20512 * regcache.h (registers_length): Remove prototype.
20513 * server.h (PBUFSIZ): Define to 16384.
20514
7284e1be
UW
205152008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20516
20517 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20518 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20519 powerpc-64l.o, and powerpc-altivec64l.o.
20520 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20521 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20522 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20523 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20524 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20525 to srv_xmlfiles.
20526
20527 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20528 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20529 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20530 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20531 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20532 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20533 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20534 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20535 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20536 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20537 (clean): Update.
20538
20539 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20540 (init_registers_powerpc_32l): ... this new prototype.
20541 (init_registers_powerpc_32): Remove, replace by ...
20542 (init_registers_powerpc_altivec32l): ... this new prototype.
20543 (init_registers_powerpc_e500): Remove, replace by ...
20544 (init_registers_powerpc_e500l): ... this new prototype.
20545 (init_registers_ppc64): Remove, replace by ...
20546 (init_registers_powerpc_64l): ... this new prototype.
20547 (init_registers_powerpc_64): Remove, replace by ...
20548 (init_registers_powerpc_altivec64l): ... this new prototype.
20549 (ppc_num_regs): Set to 73.
20550 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20551 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20552 (ppc_cannot_store_register): Handle orig_r3 and trap.
20553 (ppc_arch_setup): Update init_registers_... calls.
20554 (ppc_fill_gregset): Handle orig_r3 and trap.
20555
20556 * inferiors.c (clear_inferiors): Reset current_inferior.
20557
fdc59709
PB
205582008-04-23 Paolo Bonzini <bonzini@gnu.org>
20559
889bf7c5
PA
20560 * acinclude.m4: Add override.m4.
20561 * configure: Regenerate.
fdc59709 20562
c9b2f845
UW
205632008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20564
20565 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20566 initial call to init_register_ppc64.
20567
550512b8
UW
205682008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20569
43aaf8b6
PA
20570 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20571 single powerpc*-*-linux* case.
550512b8
UW
20572 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20573
b6430ec3
UW
205742008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20575
20576 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20577 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20578 from reg_xmlfiles.
20579 * linux-ppc-low.c: Include <elf.h>.
20580 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20581 (ppc_hwcap): New global variable.
20582 (ppc_regmap): Remove __SPE__ #ifdef sections.
20583 (ppc_regmap_e500): New global variable.
20584 (ppc_cannot_store_register): Update __SPE__ special case.
20585 (ppc_get_hwcap): New function.
20586 (ppc_arch_setup): Use it to determine whether inferior supports
20587 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20588 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20589 Do not access registers if target does not support AltiVec.
20590 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20591 Do not access registers if target does not support SPE.
20592 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20593
52fa2412
UW
205942008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20595
20596 * linux-low.c (disabled_regsets, num_regsets): New.
20597 (use_regsets_p): Delete.
20598 (linux_wait_for_process): Clear disabled_regsets.
20599 (regsets_fetch_inferior_registers): Check and set it.
20600 (regsets_store_inferior_registers): Likewise.
20601 (linux_fetch_registers, linux_store_registers): Do not use
20602 use_regsets_p.
20603 (initialize_low): Allocate disabled_regsets.
20604
e28b3332
DJ
206052008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20606
20607 * Makefile.in (LIBOBJS): New.
20608 (OBS): Use LIBOBJS.
20609 (memmem.o): New rule.
20610 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20611 * configure: Regenerated.
20612
4536995d
UW
206132008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20614
20615 * server.c (handle_query): Never return "unsupported" for
20616 qXfer:features:read queries.
20617
221c031f
UW
206182008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20619
20620 * server.c (get_features_xml): Fix inverted condition.
20621 (handle_query): Always support qXfer:feature:read.
20622
ccd213ac
DJ
206232008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20624
20625 * server.c (wrapper_argv): New.
20626 (start_inferior): Handle wrapper_argv. If set, expect an extra
20627 trap.
20628 (gdbserver_usage): Document --wrapper.
20629 (main): Parse --wrapper.
20630
6fe305f7
UW
206312008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20632
20633 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20634 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20635 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20636 (ppc_set_pc): Likewise.
20637 (ppc_arch_setup): New function.
20638 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20639 of collect_register.
889bf7c5 20640 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20641
5b0a002e
UW
206422008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20643
20644 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20645 instead of linux-ppc64-low.o.
20646 * linux-ppc64-low.c: Remove file.
20647 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20648 (linux-ppc64-low.o): Remove rule.
20649
20650 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20651 (init_registers_powerpc_64): Likewise.
20652 (ppc_regmap): Conditionally define depending on __powerpc64__.
20653 (ppc_cannot_store_register): Do not special-case "fpscr" when
20654 compiled on __powerpc64__.
20655 (ppc_collect_ptrace_register): New function.
20656 (ppc_supply_ptrace_register): New function.
20657 (ppc_breakpoint): Change type to "unsigned int".
20658 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20659 (the_low_target): Conditionally provide initializers for the
889bf7c5 20660 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20661 collect_ptrace_register and supply_ptrace_register members.
20662
9b4b61c8
UW
206632008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20664
20665 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20666 * server.c (gdbserver_xmltarget): Define.
20667 (get_features_xml): Use it to replace "target.xml" and arch_string.
20668
20669 * configure.srv: Remove srv_xmltarget. Add XML files that were
20670 mentioned there to srv_xmlfiles instead. Remove conditional tests
20671 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20672 srv_xmlfiles and srv_regobj to include all possible choices.
20673 * configure.ac (srv_xmltarget): Remove.
20674 (srv_xmlfiles): Do not add "target.xml".
20675 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20676 checks for supplementary target information.
20677 * configure: Regenerate.
20678 * Makefile.in (XML_TARGET): Remove.
20679 (target.xml): Remove rule.
20680 (clean): Do not clean up target.xml.
20681 (.PRECIOUS): Do not mention target.xml.
20682
20683 * target.h (struct target_ops): Remove arch_string member.
20684 * linux-low.c (linux_arch_string): Remove.
20685 (linux_target_ops): Remove arch_string initializer.
20686 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20687 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20688 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20689 * spu-low.c (spu_arch_string): Remove.
20690 (spu_target_ops): Remove arch_string initializer.
20691 * win32-low.c (win32_arch_string): Remove.
20692 (win32_target_ops): Remove arch_string initializer.
20693 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20694 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20695 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20696
ee1a7ae4
UW
206972008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20698
20699 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20700 by collect_ptrace_register and supply_ptrace_register hooks.
20701 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20702 instead of checking for the_low_target.left_pad_xfer.
20703 (usr_store_inferior_registers): Use collect_ptrace_register callback
20704 instead of checking for the_low_target.left_pad_xfer.
20705
20706 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20707 (s390_supply_ptrace_register): Likewise.
20708 (s390_fill_gregset): Call s390_collect_ptrace_register.
20709 (the_low_target): Update.
20710
20711 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20712 (ppc_supply_ptrace_register): Likewise.
20713 (the_low_target): Update.
20714
20715 * linux-i386-low.c (the_low_target): Update.
20716 * linux-x86-64-low.c (the_low_target): Update.
20717
d61ddec4
UW
207182008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20719
20720 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20721 reg-s390.o and reg-s390x.o.
20722
20723 * linux-low.c (new_inferior): New global variable.
20724 (linux_create_inferior, linux_attach): Set it.
20725 (linux_wait_for_process): Call the_low_target.arch_setup after the
20726 target has stopped for the first time.
20727 (initialize_low): Do not call the_low_target.arch_setup.
20728
20729 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20730 (s390_set_pc): Likewise.
20731 (s390_arch_setup): New function.
20732 (the_low_target): Use s390_arch_setup as arch_setup routine.
20733
20734 * regcache.c (realloc_register_cache): New function.
20735 (set_register_cache): Call it for each existing regcache.
20736
d05b4ac3
UW
207372008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20738
20739 * server.h (init_registers): Remove prototype.
20740
20741 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20742 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20743 instead of init_registers ().
20744 * linux-arm-low.c (init_registers_arm): Add prototype.
20745 (init_registers_arm_with_iwmmxt): Likewise.
20746 (the_low_target): Add initializer for arch_setup field.
20747 * linux-cris-low.c (init_registers_cris): Add prototype.
20748 (the_low_target): Add initializer for arch_setup field.
20749 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20750 (the_low_target): Add initializer for arch_setup field.
20751 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20752 (the_low_target): Add initializer for arch_setup field.
20753 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20754 (the_low_target): Add initializer for arch_setup field.
20755 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20756 (the_low_target): Add initializer for arch_setup field.
20757 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20758 (the_low_target): Add initializer for arch_setup field.
20759 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20760 (init_registers_mips64_linux): Likewise.
20761 (the_low_target): Add initializer for arch_setup field.
20762 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20763 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20764 (the_low_target): Add initializer for arch_setup field.
20765 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20766 (init_registers_powerpc_64): Likewise.
20767 (the_low_target): Add initializer for arch_setup field.
20768 * linux-s390-low.c (init_registers_s390): Add prototype.
20769 (init_registers_s390x): Likewise.
20770 (the_low_target): Add initializer for arch_setup field.
20771 * linux-sh-low.c (init_registers_sh): Add prototype.
20772 (the_low_target): Add initializer for arch_setup field.
20773 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20774 (the_low_target): Add initializer for arch_setup field.
20775 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20776 (the_low_target): Add initializer for arch_setup field.
20777
20778 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20779 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20780 instead of init_registers ().
20781 * win32-arm-low.c (init_registers_arm): Add prototype.
20782 (the_low_target): Add initializer for arch_setup field.
20783 * win32-i386-low.c (init_registers_i386): Add prototype.
20784 (the_low_target): Add initializer for arch_setup field.
20785
20786 * spu-low.c (init_registers_spu): Add prototype.
20787 (initialize_low): Call initialie_registers_spu () instead of
20788 initialize_registers ().
20789
fd96d250
PA
207902008-02-19 Pedro Alves <pedro@codesourcery.com>
20791
20792 * server.c (handle_v_requests): When handling the vRun and vAttach
20793 packets, if already debugging a process, don't kill it. Return an
20794 error instead.
20795
d41b6bb4
DJ
207962008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20797
20798 * server.c (handle_query): Correct length check.
20799
5ac588cf
PA
208002008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20801
20802 * win32-low.c (do_initial_child_stuff): Add process handle
20803 parameter. Set current_process_handle and current_process_id from the
20804 parameters. Clear globals.
20805 (win32_create_inferior): Don't set current_process_handle and
20806 current_process_id here. Instead pass them on the call to
20807 do_initial_child_stuff.
20808 (win32_attach): Likewise.
20809 (win32_clear_inferiors): New.
20810 (win32_kill): Don't close the current process handle or the
20811 current thread handle here. Instead call win32_clear_inferiors.
20812 (win32_detach): Don't open a new handle to the process. Call
20813 win32_clear_inferiors.
20814 (win32_join): Don't rely on current_process_handle; open a new
20815 handle using the process id.
20816 (win32_wait): Call win32_clear_inferiors when the inferior process
20817 has exited.
20818
ecd7ecbc
DJ
208192008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20820
20821 * server.c (monitor_show_help): Add "exit".
20822
1525d545
MG
208232008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20824
ecd7ecbc 20825 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20826 (clean): Add reg-xtensa.c.
20827 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20828 * configure.srv (xtensa*-*-linux*) New target.
20829 * linux-xtensa-low.c: New.
20830 * xtensa-xtregs.c: New.
1525d545 20831
59a016f0
PA
208322008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20833
20834 * hostio.c: Don't include errno.h.
20835 (errno_to_fileio_errno): Move to hostio-errno.
20836 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20837 error number outputting to the target->hostio_last_error callback.
20838 (hostio_packet_error): Use FILEIO_EINVAL directly.
20839 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20840 calls to hostio_error.
20841 * hostio-errno.c: New.
20842 * server.h (hostio_last_error_from_errno): Declare.
20843 * target.h (target_ops): Add hostio_last_error member.
20844 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20845 as hostio_last_error handler.
889bf7c5 20846 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20847 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20848 (wince_hostio_last_error): New functions.
20849 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20850 as hostio_last_error handler.
20851 (win32_target_ops) [!_WIN32_WCE]: Register
20852 hostio_last_error_from_errno as hostio_last_error handler.
20853 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20854 (hostio-errno.o): New rule.
20855 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20856 * configure.srv (srv_hostio_err_objs): New variable. Default to
20857 hostio-errno.o.
20858 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20859 * configure: Regenerate.
20860
2d717e4f
DJ
208612008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20862
20863 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20864 (linux_kill, linux_detach): Clean up the process list.
20865 * remote-utils.c (remote_open): Improve port number parsing.
20866 (putpkt_binary, input_interrupt): Only send interrupts if the target
20867 is running.
20868 * server.c (extended_protocol): Make static.
20869 (attached): Define earlier.
20870 (exit_requested, response_needed, program_argv): New variables.
20871 (target_running): New.
20872 (start_inferior): Clear attached here.
20873 (attach_inferior): Set attached here.
20874 (require_running): Define.
20875 (handle_query): Use require_running and target_running. Implement
20876 "monitor exit".
20877 (handle_v_attach, handle_v_run): New.
20878 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20879 (gdbserver_usage): Update.
20880 (main): Redo argument parsing. Handle --debug and --multi. Handle
20881 --attach along with other options or after the port. Save
20882 program_argv. Support no initial program. Resynchronize
20883 communication with GDB after an error. Handle "monitor exit".
20884 Use require_running and target_running. Always allow the extended
20885 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20886 restart in extended mode.
20887 * README: Refer to the GDB manual. Update --attach usage.
20888
7407e2de
AS
208892007-12-20 Andreas Schwab <schwab@suse.de>
20890
20891 * linux-low.c (STACK_SIZE): Define.
20892 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20893 (linux_test_for_tracefork): Likewise.
20894
b65d95c5
DJ
208952007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20896
20897 * linux-low.c (linux_wait_for_event): Update messages. Do not
20898 reinsert auto-delete breakpoints.
20899 * mem-break.c (struct breakpoint): Change return type of handler to
20900 int.
20901 (set_breakpoint_at): Update handler type.
20902 (reinsert_breakpoint_handler): Return 1 instead of calling
20903 delete_breakpoint.
20904 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20905 setting a new one.
20906 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20907 * mem-break.h (set_breakpoint_at): Update handler type.
20908 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20909 * win32-low.c (auto_delete_breakpoint): New.
20910 (get_child_debug_event): Use it.
20911
4e799345
DJ
209122007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20913
20914 * configure.ac: Check for pread and pwrite.
20915 * hostio.c (handle_pread): Fall back to lseek and read.
20916 (handle_pwrite): Fall back to lseek and write.
20917 * config.in, configure: Regenerated.
20918
27524b67
DJ
209192007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20920
20921 * server.c (myresume): Add own_buf argument.
20922 (main): Update calls.
20923
a20d5e98
DJ
209242007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20925
20926 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20927 * remote-utils.c (remote_open): Do not call disable_async_io.
20928 (block_async_io): Delete.
20929 (unblock_async_io): Make static.
20930 (initialize_async_io): New.
20931 * server.c (handle_v_cont): Handle async I/O here.
20932 (myresume): Likewise. Move other common resume tasks here...
20933 (main): ... from here. Call initialize_async_io. Disable async
20934 I/O before the main loop.
20935 * server.h (initialize_async_io): Declare.
20936 (block_async_io, unblock_async_io): Delete prototypes.
20937 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20938
b79d787e
DJ
209392007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20940
20941 * remote-utils.c (readchar): Allow binary data in received messages.
20942
d97903b2
PA
209432007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20944
20945 * win32-low.c (attaching): New global.
20946 (win32_create_inferior): Clear the `attaching' global.
20947 (win32_attach): Set the `attaching' global.
20948 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20949 attaching. Only set a breakpoint at the entry point if not
20950 attaching.
20951
311de423
PA
209522007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20953
20954 * server.c (main): Don't report dll events on the initial
20955 connection on attaches.
20956
6c2d16d2
PA
209572007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20958
20959 * server.c (main): Relax numerical bases supported for the pid of
20960 the --attach command line argument.
20961
5ca906e6
PA
209622007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20963
20964 * win32-low.c (win32_attach): Call OpenProcess before
20965 DebugActiveProcess, not after. Add last error output to error
20966 call.
20967
9c6c8194
PA
209682007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20969
20970 * win32-low.c (win32_get_thread_context)
20971 (win32_set_thread_context): New functions.
20972 (thread_rec): Use win32_get_thread_context.
20973 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20974 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20975 field.
20976
4d5d1aaa
PA
209772007-12-03 Leo Zayas
20978 Pedro Alves <pedro_alves@portugalmail.pt>
20979
20980 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20981 global variables.
20982 (child_add_thread): Minor cleanup.
20983 (child_continue): Resume artificially suspended threads before
20984 calling ContinueDebugEvent.
20985 (suspend_one_thread): New.
20986 (fake_breakpoint_event): New.
20987 (get_child_debug_event): Change return type to int. Check here if
20988 gdb sent an interrupt request. If a soft interrupt was requested,
20989 fake a breakpoint event. Return 0 if there is no event to handle,
20990 and 1 otherwise.
20991 (win32_wait): Don't check here if gdb sent an interrupt request.
20992 Ensure there is a valid event to handle.
20993 (win32_request_interrupt): Add soft interruption method as last
20994 resort.
20995
c436e841
PA
209962007-12-03 Leo Zayas
20997 Pedro Alves <pedro_alves@portugalmail.pt>
20998
20999 * win32-low.h (win32_thread_info): Add descriptions to the
21000 structure members. Replace `suspend_count' counter by a
21001 `suspended' flag.
21002 * win32-low.c (thread_rec): Update condition of when to get the
21003 context from the inferior. Rely on ContextFlags being set if it
21004 has already been retrieved. Only suspend the inferior thread if
21005 we haven't already. Warn if that fails.
21006 (continue_one_thread): s/suspend_count/suspended/. Only call
21007 ResumeThread once. Warn if that fails.
21008
e7b5fa67
PA
210092007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21010
21011 * win32-low.c (win32_wait): Don't read from the inferior when it
21012 has already exited.
21013
a385171d
PA
210142007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21015
21016 * Makefile.in (win32_low_h): New variable.
21017 (win32-low.o): Add dependency on $(win32_low_h).
21018 (win32-arm-low.o, win32-i386-low.o): New rules.
21019
f80c84b3
DJ
210202007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21021
21022 * hostio.c: Correct copyright year.
21023
a6b151f1
DJ
210242007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21025
21026 * Makefile.in (OBS): Add hostio.o.
21027 (hostio.o): New rule.
21028 * server.h (handle_vFile): Declare.
21029 * hostio.c: New file.
21030 * server.c (handle_v_requests): Take packet_len and new_packet_len
21031 for binary packets. Call handle_vFile.
21032 (main): Update call to handle_v_requests.
21033
f9387fc3
DJ
210342007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21035
21036 * linux-low.c: Include <sched.h>.
21037
51c2684e
DJ
210382007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21039
21040 * linux-low.c (linux_tracefork_grandchild): New.
21041 (linux_tracefork_child): Use clone.
21042 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21043
75f83163
JB
210442007-10-31 Joel Brobecker <brobecker@adacore.com>
21045
21046 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21047
da5898ce
DJ
210482007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21049
21050 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21051
24a09b5f
DJ
210522007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21053
21054 * inferiors.c (change_inferior_id): Delete.
21055 (add_pid_to_list, pull_pid_from_list): New.
21056 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21057 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21058 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21059 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21060 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21061 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21062 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21063 (using_threads): Always set to 1.
21064 (handle_extended_wait): New.
21065 (add_process): Do not set TID.
21066 (linux_create_inferior): Set must_set_ptrace_flags.
21067 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21068 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21069 (linux_thread_alive): Rename TID argument to LWPID.
21070 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21071 (linux_wait_for_event): Do not use TID or check using_threads. Update
21072 call to dead_thread_notify. Call handle_extended_wait.
21073 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21074 (send_sigstop): Delete sigstop_sent.
21075 (wait_for_sigstop): Avoid TID.
21076 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21077 (linux_test_for_tracefork): New.
21078 (linux_lookup_signals): Use thread_db_active and
21079 linux_supports_tracefork_flag.
21080 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21081 * linux-low.h (get_process_thread): Avoid TID.
21082 (struct process_ifo): Move thread_known and tid to the end. Remove
21083 sigstop_sent.
21084 (linux_attach_lwp, thread_db_init): Update prototypes.
21085 * server.h (change_inferior_id): Delete prototype.
21086 (add_pid_to_list, pull_pid_from_list): New prototypes.
21087 * thread-db.c (thread_db_use_events): New.
21088 (find_first_thread): Rename to...
21089 (find_one_thread): ...this. Update callers and messages. Do not
21090 call fatal. Check thread_db_use_events. Do not call
21091 change_inferior_id or new_thread_notify.
21092 (maybe_attach_thread): Update. Do not call new_thread_notify.
21093 (thread_db_init): Set thread_db_use_events. Check use_events.
21094 * utils.c (fatal, warning): Correct message prefix.
21095
30ed0a8f
DJ
210962007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21097
21098 * Makefile.in (clean): Remove new files.
21099 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21100 (powerpc-64.o, powerpc-64.c): New rules.
21101 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21102 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21103 with SPE.
21104 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21105 SPE targets.
21106 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21107 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21108 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21109 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21110 (target_regsets): Add AltiVec and SPE register sets.
21111 * configure.ac: Check for AltiVec and SPE.
21112 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21113 (ppc_fill_vrregset, ppc_store_vrregset): New.
21114 (target_regsets): Add AltiVec register set.
21115 * configure: Regenerated.
21116
fd462a61
DJ
211172007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21118
21119 * linux-low.c (O_LARGEFILE): Define.
21120 (linux_read_memory): Use /proc/PID/mem.
21121 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21122 * configure, config.in: Regenerated.
21123
69f223ed
DJ
211242007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21125
21126 * linux-low.c (linux_wait_for_event): Do not pass signals while
21127 single-stepping.
21128
aec18585
PA
211292007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21130
21131 * win32-low.c (create_process): New.
21132 (win32_create_inferior): Use create_process instead of
21133 CreateProcess. If create_process failed retry appending an ".exe"
21134 suffix. Store the GetLastError result immediatelly after
21135 create_process calls and use it on the call to error.
21136
34d86ddd
PA
211372007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21138
21139 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21140
5a0e3bd0
JB
211412007-08-23 Joel Brobecker <brobecker@adacore.com>
21142
21143 * configure.ac: Switch license to GPLv3.
21144
f88c79e6
MS
211452007-08-01 Michael Snyder <msnyder@access-company.com>
21146
21147 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21148
6b3d9b83
PA
211492007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21150
21151 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21152 typedef.
21153 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21154 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21155 CloseToolhelp32Snapshot.
21156 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21157 CloseToolhelp32Snapshot.
21158
c588c53c
MS
211592007-07-27 Michael Snyder <michael.snyder@access-company.com>
21160
21161 * server.c (main): Check for inferior exit before main loop.
21162
aa0403d9
PA
211632007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21164
21165 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21166 instead of on tmp_desc.
21167
255e7678
DJ
211682007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21169 Daniel Jacobowitz <dan@codesourcery.com>
21170
21171 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21172 (add_thread): Minor cleanups.
21173 (clear_inferiors): Move lower in the file. Clear the DLL
21174 list.
21175 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21176 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21177 (xml_escape_text): New.
21178 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21179 for qSupported.
21180 (handle_v_cont): Report errors.
21181 (gdbserver_version): Update.
21182 (main): Correct size of own_buf. Do not report initial DLL events.
21183 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21184 (unloaded_dll, xml_escape_text): New.
21185 * win32-low.c (enum target_waitkind): Update comments.
21186 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21187 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21188 (win32_EnumProcessModules, win32_GetModuleInformation)
21189 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21190 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21191 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21192 (win32_Module32First, win32_Module32Next, load_toolhelp)
21193 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21194 (get_child_debug_event): Handle DLL events.
21195 (win32_wait): Likewise.
21196
0d37add9
DJ
211972007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21198
21199 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21200 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21201
45e2715e
PA
212022007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21203
21204 * win32-low.c (handle_output_debug_string): Ignore event if not
21205 waiting.
21206
c5674cf1
PA
212072007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21208
21209 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21210
2bbe3cc1
DJ
212112007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21212
21213 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21214
ae13219e
DJ
212152007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21216
21217 * inferiors.c (change_inferior_id): Add comment.
21218 * linux-low.c (check_removed_breakpoint): Add an early
21219 prototype. Improve debug output.
21220 (linux_attach): Doc update.
21221 (linux_detach_one_process, linux_detach): Clean up before releasing
21222 each process.
21223 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21224 * linux-low.h (struct process_info): Doc improvement.
21225 * mem-break.c (delete_all_breakpoints): New.
21226 * mem-break.h (delete_all_breakpoints): New prototype.
21227 * thread-db.c (find_first_thread): New.
21228 (thread_db_create_event): Call it instead of
21229 thread_db_find_new_threads. Clean up unused variables.
21230 (maybe_attach_thread): Remove first thread handling.
21231 (thread_db_find_new_threads): Use find_first_thread.
21232 (thread_db_get_tls_address): Likewise.
21233
4105de34
DJ
212342007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21235
21236 * thread-db.c (thread_db_find_new_threads): Add prototype.
21237 (thread_db_create_event): Check for the main thread before adding
21238 a new thread.
21239 (maybe_attach_thread): Only enable event reporting if TID == 0.
21240 (thread_db_get_tls_address): Check for new threads.
21241
2b876972
DJ
212422007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21243
21244 * linux-low.c (linux_create_inferior): Try execv before execvp.
21245 * spu-low.c (spu_create_inferior): Likewise.
21246
7a245884
DJ
212472007-06-13 Mike Frysinger <vapier@gentoo.org>
21248
21249 * linux-low.c (linux_create_inferior): Change execv to execvp.
21250 * spu-low.c (spu_create_inferior): Likewies.
21251
117ce543
DJ
212522007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21253
21254 * Makefile.in (clean): Clean new files instead of deleted ones.
21255 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21256 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21257 rules.
21258 * configure.srv: Specify XML files and new regformats for MIPS and
21259 MIPS64 GNU/Linux.
21260 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21261 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21262 an entry for the restart register.
21263 (mips_cannot_fetch_register, mips_cannot_store_register)
21264 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21265 register names to match the XML descriptions.
21266 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21267 restart register instead of $0.
21268
0e7f50da
UW
212692007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21270 Markus Deuling <deuling@de.ibm.com>
21271
21272 * remote-utils.c (decode_xfer_write): New function.
21273 * server.h (decode_xfer_write): Add prototype.
21274 * server.c (handle_query): Add PACKET_LEN argument. Support
21275 qXfer:spu:read and qXfer:spu:write packets.
21276 (main): Pass packet_len to handle_query.
21277 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21278 * target.h (target_ops): Add qxfer_spu.
21279
374c1d38
UW
212802007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21281
21282 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21283 accessing non-seekable spufs files.
21284
bb63802a
UW
212852007-05-16 Markus Deuling <deuling@de.ibm.com>
21286
889bf7c5 21287 * server.c (handle_query): Add reply for qC packet.
bb63802a 21288
7390519e
PA
212892007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21290 Leo Zayas <lerele@champenstudios@com>
21291
21292 * server.h (check_remote_input_interrupt_request): New function.
21293 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21294 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21295 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21296 (check_remote_input_interrupt_request): New function.
21297 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 21298 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
21299 winapi_GenerateConsoleCtrlEvent): New typedefs.
21300 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21301 to 250 ms.
21302 (win32_wait): Check for remote interrupt request
21303 with check_remote_input_interrupt_request.
21304 (win32_request_interrupt): New function.
21305 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21306
34b34921
PA
213072007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21308
21309 * win32-low.c (debug_registers_changed,
21310 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21311 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21312 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21313 (thread_rec): Get context using the low target.
21314 (child_add_thread): Call thread_added on the low target,
21315 which does the same thing.
21316 (regptr): Delete.
21317 (do_initial_child_stuff): Remove debug registers references.
21318 Set context using the low target. Resume threads after
21319 setting the contexts.
21320 (child_continue): Remove dead variable. Remove debug
21321 registers references.
21322 (child_fetch_inferior_registers): Go through the low target.
21323 (do_child_store_inferior_registers): Remove.
21324 (child_store_inferior_registers): Go through the low target.
21325 (win32_resume): Remove debug registers references.
21326 Set context using the low target.
21327 (handle_exception): Change return type to void. Don't record
21328 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21329 first chance exception.
889bf7c5 21330 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21331 goto loop. Always return after waiting for debug event.
21332 (win32_wait): Convert to switch statement. Handle spurious
21333 events.
21334
21335 * win32-i386-low.c (debug_registers_changed,
21336 debug_registers_used): New.
21337 (initial_stuff): Rename to ...
21338 (i386_initial_stuff): ... this. Clear debug registers
21339 state variables.
21340 (store_debug_registers): Delete.
21341 (i386_get_thread_context): New.
21342 (load_debug_registers): Delete.
21343 (i386_set_thread_context): New.
21344 (i386_thread_added): New.
21345 (single_step): Rename to ...
21346 (i386_single_step): ... this.
21347 (do_fetch_inferior_registers): Rename to ...
21348 (i386_fetch_inferior_register): ... this.
21349 (i386_store_inferior_register): New.
21350 (the_low_target): Adapt to new interface.
21351
21352 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21353 (arm_get_thread_context): New.
21354 (arm_set_thread_context): New.
21355 (regptr): New.
21356 (do_fetch_inferior_registers): Rename to ...
21357 (arm_fetch_inferior_register): ... this.
21358 (arm_store_inferior_register): New.
21359 (arm_wince_breakpoint): Reimplement as unsigned long.
21360 (arm_wince_breakpoint_len): Define.
21361 (the_low_target): Adapt to new interface.
21362
21363 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21364 load_debug_registers. Add get_thread_context, set_thread_context,
21365 thread_added and store_inferior_register. Rename
21366 fetch_inferior_registers to fetch_inferior_register.
21367 (regptr): Remove declaration.
21368
dd6953e1
PA
213692007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21370
21371 * linux-low.c (linux_detach): Change return type to int. Return 0.
21372 * spu-low.c (spu_detach): Likewise.
21373
444d6139
PA
213742007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21375
21376 * target.h (target_ops): Change return type of detach to int.
21377 Add join.
21378 (join_inferior): New.
21379 * server.c (main): Don't skip detach support on mingw32.
21380 If the inferior doesn't support detaching return error.
21381 Call join_inferior instead of using waitpid.
21382 * linux-low.c (linux_join): New.
21383 (linux_target_op): Add linux_join.
21384 * spu-low.c (spu_join): New.
21385 (spu_target_ops): Add spu_join.
21386 * win32-low.c (win32_detach): Adapt to new interface.
21387 Reopen current_process_handle before detaching. Issue a child
21388 resume before detaching.
21389 (win32_join): New.
21390 (win32_target_op): Add win32_join.
21391
1d5315fe
PA
213922007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21393
21394 * win32-low.c (win32-attach): Fix return value.
21395 * target.h (target_ops): Describe ATTACH return values.
21396
bf914831
PA
213972007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21398
21399 * win32-low.c (GETPROCADDRESS): Define.
21400 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21401 (winapi_DebugSetProcessKillOnExit): Likewise.
21402 (win32_create_inferior): Force usage of ansi CreateProcessA.
21403 (win32_attach): Use GETPROCADDRESS.
21404 (win32_detach): Likewise.
21405
f72f3e60
PA
214062007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21407
21408 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21409
ed50f18f
PA
214102007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21411
21412 * win32-low.c: Commit leftover changes from 2007-03-29.
21413
0c2ead7e
DJ
214142007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21415
21416 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21417 fields short instead of int. Add explicit padding.
21418 (i387_cache_to_fsave): Remove unnecessary casts.
21419 (i387_fsave_to_cache): Doc fix.
21420 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21421
73725ff3
DJ
214222007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21423
21424 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21425 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21426
d99f33d8
PA
214272007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21428
21429 * configure.srv (arm*-*-mingw32ce*): Move near the other
21430 arm targets.
21431
68070c10
PA
214322007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21433
2482afc6 21434 * configure.ac: Add errno checking.
68070c10
PA
21435 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21436 sys/file.h and malloc.h.
21437 (AC_CHECK_DECLS): Add perror.
21438 (srv_mingwce): Handle.
2482afc6 21439 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21440 win32-i386-low.o to srv_tgtobj.
21441 (i[34567]86-*-mingw*): Likewise.
21442 (arm*-*-mingw32ce*): Add case.
21443 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21444 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21445 [__MINGW32CE__] (strerror): New function.
21446 [__MINGW32CE__] (errno): Define to GetLastError.
21447 [__MINGW32CE__] (COUNTOF): New macro.
21448 (remote_open): Remove extra close call.
21449 * mem-break.c (delete_breakpoint_at): New function.
21450 * mem-break.h (delete_breakpoint_at): Declare.
21451 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21452 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21453 [USE_WIN32API] (read, write): Add char* casts.
21454 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21455 * server.h: Include wincecompat.h on Windows CE.
21456 [HAVE_ERRNO_H]: Check.
21457 (perror): Declare if not declared.
21458 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21459 (perror_with_name): Remove errno declaration.
21460 * wincecompat.h: New.
21461 * wincecompat.c: New.
21462 * win32-low.h: New.
21463 * win32-arm-low.c: New.
21464 * win32-i386-low.c: New.
21465 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21466 (OUTMSG2): Make it safe.
21467 (_T): New macro.
21468 (COUNTOF): New macro.
21469 (NUM_REGS): Get it from the low target.
21470 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21471 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21472 (thread_rec): Let low target handle debug registers.
21473 (child_add_thread): Likewise.
21474 (child_init_thread_list): Likewise.
21475 (continue_one_thread): Likewise.
21476 (regptr): New.
21477 (do_child_fetch_inferior_registers): Move to ...
21478 * win32-i386-low.c: ... here, and rename to ...
21479 (do_fetch_inferior_registers): ... this.
889bf7c5 21480 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21481 Go through the low target.
21482 (do_child_store_inferior_registers): Use regptr.
21483 (strwinerror): New function.
21484 (win32_create_inferior): Handle Windows CE.
21485 Use strwinerror instead of strerror on Windows error
21486 codes. Add program to the error output.
21487 Don't close the main thread handle on Windows CE.
21488 (win32_attach): Use coredll.dll on Windows CE.
21489 (win32_kill): Close current process and current
21490 thread handles.
21491 (win32_detach): Use coredll.dll on Windows CE.
21492 (win32_resume): Let low target handle debug registers, and
21493 step request.
21494 (handle_exception): Add/Remove initial breakpoint. Avoid
21495 non-existant WSTOPSIG on Windows CE.
21496 (win32_read_inferior_memory): Cast to remove warning.
21497 (win32_arch_string): Go through the low target.
21498 (initialize_low): Call set_breakpoint_data with the low
21499 target's breakpoint.
21500 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21501 FOP_REGNUM, mappings): Move to ...
21502 * win32-i386-low.c: ... here.
21503 * win32-low.c (win32_thread_info): Move to ...
21504 * win32-low.h: ... here.
21505 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21506 win32-arm-low.c and wincecompat.c.
21507 (all:): Add $EXEEXT.
21508 (install-only:): Likewise.
21509 (gdbserver:): Likewise.
21510 (gdbreplay:): Likewise.
21511 * config.in: Regenerate.
21512 * configure: Regenerate.
21513
41093d81
PA
215142007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21515
21516 * win32-low.c: Rename typedef thread_info to
21517 win32_thread_info throughout.
21518
544afa54
PA
215192007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21520
21521 * win32-i386-low.c: Rename to ...
21522 * win32-low.c: ... this.
21523 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21524 * Makefile.in: Likewise.
21525
bce7165d
PA
215262007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21527
21528 * remote-utils.c (monitor_output): Constify msg parameter.
21529 * server.h (monitor_output): Likewise.
21530 * win32-i386-low.c (handle_output_debug_string): New.
21531 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21532 handle_output_debug_string.
21533 (get_child_debug_event): Likewise.
21534
506c7aa0
DJ
215352007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21536
21537 * server.c (main): Correct strtoul check.
21538
42c81e2a
DJ
215392007-03-27 Jon Ringle <jon@ringle.org>
21540
21541 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21542
9453113a
DJ
215432007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21544
21545 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21546
64a69107
DJ
215472007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21548
21549 * terminal.h: Check HAVE_SGTTY_H.
21550
215512007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21552
21553 * remote-utils.c (remote_open): Print out the assigned port number.
21554
c74d0ad8
DJ
215552007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21556
21557 * remote-utils.c (monitor_output): New function.
21558 * server.c (debug_threads): Define here.
21559 (monitor_show_help): New function.
21560 (handle_query): Handle qRcmd.
21561 (main): Do not handle 'd' packet.
21562 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21563 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21564 of debug_threads.
21565
de7c3b4a
PA
215662007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21567
21568 * Makefile.in (EXEEXT): New.
21569 (clean): Use $(EXEEXT).
21570
ef57601b
PA
215712007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21572
21573 * target.h (target_ops): Rename send_signal to request_interrupt,
21574 and remove enum target_signal parameter.
21575 * linux-low.c (linux_request_interrupt): Rename from
21576 linux_send_signal, and always send SIGINT.
21577 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21578 and always send SIGINT.
21579 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21580 of send_signal.
21581 (input_interrupt): Likewise.
21582
820f2bda
PA
215832007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21584
21585 * server.c (get_features_xml): Check if target implemented
21586 arch_string.
21587 * win32-i386-low.c (win32_arch_string): New.
21588 (win32_target_ops): Add win32_arch_string as arch_string member.
21589
ab39bf24
UW
215902007-02-22 Markus Deuling <deuling@de.ibm.com>
21591
21592 * spu-low.c (spu_arch_string): New.
21593 (spu_target_ops): Add spu_arch_string.
21594
61ff6e04
DJ
215952007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21596
21597 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21598 * configure.ac: Do not check for terminal.h.
21599 * configure, config.in: Regenerated.
21600
fb1e4ffc
DJ
216012007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21602
21603 * Makefile.in (OBS): Add $(XML_BUILTIN).
21604 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21605 (clean): Update.
21606 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21607 (arm-with-iwmmxt.c): New.
21608 * config.in, configure: Regenerate.
21609 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21610 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21611 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21612 (arm*-*-linux*): Add iWMMXt and regset support.
21613 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21614 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21615 (arm_store_wmmxregset, target_regsets): New.
21616 * server.c (get_features_xml): Take annex argument. Check builtin
21617 XML documents.
21618 (handle_query): Handle multiple annexes.
21619
0f48aa01
DJ
216202007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21621
21622 * remote-utils.c [USE_WIN32API] (read, write): Define.
21623 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21624 write.
21625
23181151
DJ
216262007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21627
21628 * linux-i386-low.c (the_low_target): Set arch_string.
21629 * linux-x86-64-low.c (the_low_target): Likewise.
21630 * linux-low.c (linux_arch_string): New.
21631 (linux_target_ops): Add it.
21632 * linux-low.h (struct linux_target_ops): Add arch_string.
21633 * server.c (write_qxfer_response): Use const void * for DATA.
21634 (get_features_xml): New.
21635 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21636 * target.h (struct target_ops): Add arch_string method.
21637
9d606399
DJ
216382007-01-03 Denis Pilat <denis.pilat@st.com>
21639 Daniel Jacobowitz <dan@codesourcery.com>
21640
21641 * linux-low.c (linux_kill): Handle being called with no threads.
21642 * win32-i386-low.c (win32_kill): Likewise.
21643 (get_child_debug_event): Clear current_process_handle.
21644
216452006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21646 Daniel Jacobowitz <dan@codesourcery.com>
21647
21648 * remote-utils.c (remote_open): Check the type of specified
21649 serial port devices before opening them.
21650 * server.c (main): Kill the inferior if an error occurs during
21651 the first remote_open.
21652
a5e13d24
DJ
216532006-12-05 Markus Deuling <deuling@de.ibm.com>
21654
21655 * README: Update supported targets.
21656
186947f7
DJ
216572006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21658
21659 * Makefile.in (clean): Remove reg-mips64.c.
21660 (reg-mips64.c, reg-mips64.o): New rules.
21661 * configure.srv: Handle mips64. Include regset support for mips.
21662 * linux-mips-low.c (union mips_register): New.
21663 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21664 (mips_breakpoint, mips_breakpoint_at): Use int.
21665 (mips_collect_register, mips_supply_register)
21666 (mips_collect_register_32bit, mips_supply_register_32bit)
21667 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21668 (mips_store_fpregset, target_regsets): New.
21669 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21670
a13e2c95
UW
216712006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21672
21673 * configure.srv: Add target "spu*-*-*".
21674 * Makefile.in (clean): Remove reg-spu.c.
21675 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21676 * spu-low.c: New file.
21677
cb7283db
DJ
216782006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21679
21680 * configure.ac: Correct td_thr_tls_get_addr test.
21681 * configure: Regenerated.
21682
89be2091
DJ
216832006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21684
21685 * linux-low.c (linux_wait_for_event): Reformat. Use the
21686 pass_signals array.
21687 * remote-utils.c (decode_address_to_semicolon): New.
21688 * server.c (pass_signals, handle_general_set): New.
21689 (handle_query): Mention QPassSignals for qSupported.
21690 (main): Call handle_general_set.
21691 * server.h (pass_signals, decode_address_to_semicolon): New.
21692
000ef4f0
DJ
216932006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21694
21695 * server.c (handle_query): Correct error handling for read_auxv.
21696
b7149293
UW
216972005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21698
21699 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21700 and srv_linux_thread_db to yes.
21701 * linux-s390-low.c (s390_fill_gregset): New function.
21702 (target_regsets): Define data structure.
21703
dae5f5cf
DJ
217042006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21705
21706 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21707 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21708 * config.in, configure: Regenerated.
21709 * inferiors.c (gdb_id_to_thread): New function.
21710 (gdb_id_to_thread_id): Use it.
21711 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21712 * linux-low.h (struct process_info): Add th member.
21713 (thread_db_get_tls_address): New prototype.
21714 * remote-utils.c (decode_address): Make non-static.
21715 * server.c (handle_query): Handle qGetTLSAddr.
21716 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21717 * target.h (struct target_ops): Add get_tls_address.
21718 * thread-db.c (maybe_attach_thread): Save the thread handle.
21719 (thread_db_get_tls_address): New.
21720
32ca6d61
DJ
217212006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21722
21723 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21724 (linux_resume_one_process): Take a siginfo_t *. Update all
21725 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21726 (struct pending_signals): Add a siginfo_t.
21727 (linux_wait_for_process): Always set last_status.
21728 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21729 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21730 * linux-low.h (struct process_info): Add last_status.
21731
5ffff7c1
DJ
217322006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21733
21734 * remote-utils.c (try_rle): New function.
21735 (putpkt_binary): Use it.
21736
8695c747
DJ
217372006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21738
21739 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21740 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21741 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21742 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21743 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21744 point registers.
21745
290fadea
RS
217462006-08-08 Richard Sandiford <richard@codesourcery.com>
21747
21748 * server.c (terminal_fd): New variable.
21749 (old_foreground_pgrp): Likewise.
21750 (restore_old_foreground_pgrp): New function.
21751 (start_inferior): Record the terminal file descriptor in terminal_fd
21752 and its original foreground group in old_foreground_pgrp. Register
21753 restore_old_foreground_pgrp with atexit().
21754
9f2e1e63
DJ
217552006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21756
21757 * server.c (handle_query): Correct qPart to qXfer.
21758
b80864fb
DJ
217592006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21760
21761 * configure.ac: Check for more headers which are missing on
21762 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21763 * configure.srv: Add Cygwin and mingw32.
21764 * remote-utils.c: Don't include headers unconditionally which
21765 are missing on mingw32. Include <winsock.h> for mingw32.
21766 (remote_open): Adjust for mingw32 support. Flush
21767 standard error after writing to it.
21768 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21769 (unblock_async_io, enable_async_io, disable_async_io)
21770 (readchar, getpkt): Update for Winsock support.
21771 (prepare_resume_reply): Expect a protocol signal number.
21772 * server.c: Disable <sys/wait.h> on mingw32.
21773 (start_inferior): Adjust for mingw32 support. Flush
21774 standard error after writing to it.
21775 (attach_inferior): Likewise. Use protocol signal
21776 numbers.
21777 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21778 and names.
21779 * win32-i386-low.c: New file.
21780 * Makefile.in (XM_CLIBS): Set.
21781 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21782 (win32-i386-low.o): New dependency rule.
21783 * linux-low.c (linux_wait): Use target signal numbers.
21784 * target.h (struct target_ops): Doc fix.
21785 * server.h (target_signal_to_name): New prototype.
21786 * gdbreplay.c: Don't include headers unconditionally which
21787 are missing on mingw32. Include <winsock.h> for mingw32.
21788 (remote_close, remote_open): Adjust for Winsock support.
21789 * configure, config.in: Regenerated.
21790
0876f84a
DJ
217912006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21792
21793 * server.c (decode_xfer_read, write_qxfer_response): New.
21794 (handle_query): Take a packet length argument. Handle
21795 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21796 the qSupported response.
21797 (main): Update call to handle_query.
21798
01f9e8fa
DJ
217992006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21800
21801 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21802 (putpkt_binary): Renamed from putpkt and adjusted for binary
21803 data.
21804 (putpkt): New wrapper for putpkt_binary.
21805 (readchar): Don't mask off the high bit.
21806 (decode_X_packet): New function.
21807 * server.c (main): Call putpkt_binary if a handler sets the packet
21808 length. Save the length of the incoming packet. Handle 'X'.
21809 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21810
be2a5f71
DJ
218112006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21812
21813 * server.c (handle_query): Handle qSupported.
21814
ea025f5f
DJ
218152006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21816
21817 * remote-utils.c (all_symbols_looked_up): New variable.
21818 (look_up_one_symbol): Check it.
21819 * server.h (look_up_one_symbol): New declaration.
21820 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21821
9308fc88
DJ
218222006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21823
21824 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21825 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21826 (PTRACE_GET_THREAD_AREA): Define.
21827 (ps_get_thread_area): New function.
21828
52fb6437
NS
218292006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21830
21831 * configure.srv (m68k*-*-uclinux*): New target.
21832 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21833 (linux_resume_one_process): Remove extraneous cast.
21834 (linux_read_offsets): New.
21835 (linux_target_op): Add linux_read_offsets on mmuless systems.
21836 * server.c (handle_query): Add qOffsets logic.
21837 * target.h (struct target_ops): Add read_offsets.
21838
21b0f40c
DJ
218392006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21840
21841 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21842 (PTRACE_GET_THREAD_AREA): Define.
21843 (ps_get_thread_area): New function.
21844 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21845 (linux-x86-64-low.o): Update.
21846
0050a760
DJ
218472006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21848
21849 * configure.ac: Remove checks for prfpregset_t.
21850 * gdb_proc_service.h: New file.
21851 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21852 new "gdb_proc_service.h".
21853 * proc-service.c: Likewise.
21854 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21855 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21856 * Makefile.in (gdb_proc_service_h): Updated.
21857 * configure, config.in: Regenerated.
21858
b92a518e
DJ
218592006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21860
21861 * remote-utils.c (prepare_resume_reply): Move declaration
21862 of gdb_id_from_wait to the top of the block.
21863
545587ee
DJ
218642006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21865
21866 * linux-low.c (regsets_store_inferior_registers): Read the regset
21867 from the target before filling it.
21868
9db87ebd
DJ
218692006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21870
21871 * server.c (attach_inferior): Return SIGTRAP for a successful
21872 attach.
21873
dd24457d
DJ
218742006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21875
21876 * Makefile.in (OBS): Add version.o.
21877 (STAGESTUFF): Delete.
21878 (version.o): Add dependencies.
21879 (version.c): Replace rule.
21880 (clean): Remove version.c.
21881 * server.c (gdbserver_version): New.
21882 (gdbserver_usage): Use printf.
21883 (main): Handle --version and --help.
21884 * server.h (version, host_name): Add declarations.
21885
6f0f660e
EZ
218862005-12-23 Eli Zaretskii <eliz@gnu.org>
21887
889bf7c5
PA
21888 * linux-arm-low.c:
21889 * linux-arm-low.c:
21890 * inferiors.c:
21891 * i387-fp.h:
21892 * i387-fp.c:
21893 * gdbreplay.c:
21894 * regcache.c:
21895 * proc-service.c:
21896 * mem-break.h:
21897 * mem-break.c:
21898 * linux-x86-64-low.c:
21899 * linux-sh-low.c:
21900 * linux-s390-low.c:
21901 * linux-ppc64-low.c:
21902 * linux-ppc-low.c:
21903 * linux-mips-low.c:
21904 * linux-m68k-low.c:
21905 * linux-m32r-low.c:
21906 * linux-low.h:
21907 * linux-low.c:
21908 * linux-ia64-low.c:
21909 * linux-i386-low.c:
21910 * linux-crisv32-low.c:
21911 * thread-db.c:
21912 * terminal.h:
21913 * target.h:
21914 * target.c:
21915 * server.h:
21916 * server.c:
21917 * remote-utils.c:
21918 * regcache.h:
21919 * utils.c:
21920 * Makefile.in:
21921 * configure.ac:
6f0f660e
EZ
21922 * gdbserver.1: Add (C) after Copyright. Update the FSF
21923 address.
21924
9d1fb177
DJ
219252005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21926
21927 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21928 (arm_breakpoint_at): Recognize both breakpoints.
21929 (the_low_target): Use the correct breakpoint instruction.
21930
011a70c2
DJ
219312005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21932
21933 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21934 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21935 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21936 (the_low_target): Update.
21937
7fb85e41
AS
219382005-10-25 Andreas Schwab <schwab@suse.de>
21939
21940 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21941
21942 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21943 (ia64_num_regs): Reduce to 462.
21944
3db0444b
DJ
219452005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21946
21947 * acinclude.m4: Correct quoting.
21948 * aclocal.m4: Regenerated.
21949
21950 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21951 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21952 (thread_db_init): Call thread_db_err_str.
21953 * configure.ac: Check for TD_VERSION.
21954 * config.in, configure: Regenerated.
21955
bee0189a
DJ
219562005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21957
21958 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21959
e9d25b98
DJ
219602005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21961
21962 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21963 is not available. Define HAVE_PTRACE_GETREGS if it is.
21964 * config.in, configure: Regenerated.
21965 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21966 * linux-i386-low.c, linux-m68k-low.c: Update to use
21967 HAVE_PTRACE_GETREGS.
21968 * linux-low.c (regsets_fetch_inferior_registers)
21969 (regsets_store_inferior_registers): Only return 0 if we processed
21970 GENERAL_REGS.
21971 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21972 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21973
a06660f7
DJ
219742005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21975
21976 * inferiors.c (struct thread_info): Add gdb_id.
21977 (add_thread): Add gdb_id argument.
21978 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21979 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21980 calls to add_thread.
21981 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21982 * server.c (handle_query): Use thread_to_gdb_id.
21983 (handle_v_cont, main): Use gdb_id_to_thread_id.
21984 * server.h (add_thread): Update prototype.
21985 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21986 prototypes.
21987
5a1f5858
DJ
219882005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21989
21990 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21991 left-padded registers.
21992 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21993 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21994
e122f1f5
SE
219952005-07-01 Steve Ellcey <sje@cup.hp.com>
21996
21997 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21998 * configure: Regenerate.
21999 * config.in: Regenerate.
22000 * server.h (NEED_DECLARATION_STRERROR):
22001 Replace with !HAVE_DECL_STRERROR.
22002
d592fa2f
DJ
220032005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
22004
22005 * linux-low.c (linux_wait, linux_send_signal): Don't test
22006 an unsigned long variable for > 0 if it could be MAX_ULONG.
22007 * server.c (myresume): Likewise.
22008 * target.c (set_desired_inferior): Likewise.
22009
ccbd4912
MK
220102005-06-13 Mark Kettenis <kettenis@gnu.org>
22011
22012 * configure.ac: Simplify and improve check for socklen_t.
22013 * configure, config.in: Regenerate.
22014
f450004a
DJ
220152005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
22016
22017 * acconfig.h: Remove.
22018 * configure.ac: Add a test for socklen_t. Use three-argument
22019 AC_DEFINE throughout.
22020 * config.in: Regenerated using autoheader 2.59.
22021 * configure: Regenerated.
22022
22023 * gdbreplay.c (socklen_t): Provide a default.
22024 (remote_open): Use socklen_t.
22025 * remote-utils.c (socklen_t): Provide a default.
22026 (remote_open): Use socklen_t.
22027 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
22028 unsigned char.
22029
22030 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22031 char for buffers.
22032 * linux-low.c (linux_read_memory, linux_write_memory)
22033 (linux_read_auxv): Likewise.
22034 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22035 (check_mem_write): Likewise.
22036 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22037 Likewise.
22038 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22039 (registers_from_string, register_data): Likewise.
22040 * server.c (handle_query, main): Likewise.
22041 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22042 (decode_M_packet): Likewise.
22043 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22044 * target.h (struct target_ops): Update read_memory, write_memory,
22045 and read_auxv.
22046 (read_inferior_memory, write_inferior_memory): Update.
22047 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22048 to unsigned char *.
22049 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22050 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22051 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22052 linux-s390-low.c, linux-sh-low.c: Update for changes in
22053 read_inferior_memory and the_low_target->breakpoint.
22054
eee84df1
DJ
220552005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22056
22057 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22058 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22059 * configure.srv: Add powerpc64-*-linux*.
22060 * linux-ppc64-low.c: New file.
22061
45b134e5
OF
220622005-05-23 Orjan Friberg <orjanf@axis.com>
22063
22064 * linux-cris-low.c: New file with support for CRIS.
22065 * linux-crisv32-low.c: Ditto for CRISv32.
22066 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22067 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 22068 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
22069 reg-crisv32.o, and reg-crisv32.c to make rules.
22070 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22071 recognized targets.
22072
48d93c75
UW
220732005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22074
22075 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22076 of sizeof (PTRACE_XFER_TYPE).
22077 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22078
e013ee27
OF
220792005-05-12 Orjan Friberg <orjanf@axis.com>
22080
889bf7c5 22081 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
22082 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22083 pointers for hardware watchpoint support.
22084 * linux-low.h (struct linux_target_ops): Ditto.
22085 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22086 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22087 to linux_target_ops.
22088 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22089 reply packet.
22090 * server.c (main): Recognize 'Z' and 'z' packets.
22091
b0ded00b
UW
220922005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22093
22094 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22095 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22096 (the_low_target): Add new members.
22097
8643e2ad
DJ
220982005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22099
22100 * proc-service.c (ps_lgetregs): Search all_processes instead of
22101 all_threads.
22102
fc620387
DJ
221032005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22104
22105 * server.c (start_inferior): Change return type to int.
22106 (attach_inferior): Change sigptr to int *.
22107 (handle_v_cont, handle_v_requests): Change signal to int *.
22108 (main): Change signal to int.
22109
221102005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
22111
22112 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22113 * configure.srv: Add m32r*-*-linux*.
22114 * linux-m32r-low.c: New file.
22115
e0e76420
DJ
221162005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22117
22118 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22119
a1928bad
DJ
221202005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22121
22122 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22123 Take unsigned long arguments for PIDs.
22124 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22125 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22126 (wait_for_sigstop, linux_resume_one_process)
22127 (regsets_fetch_inferior_registers, linux_send_signal)
22128 (linux_read_auxv): Likewise. Update the types of variables holding
22129 PIDs. Update format string specifiers.
22130 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22131 * remote-utils.c (prepare_resume_reply): Likewise.
22132 * server.c (cont_thread, general_thread, step_thread)
22133 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22134 unsigned long.
22135 (handle_query): Update format specifiers.
22136 (handle_v_cont, main): Use strtoul for thread IDs.
22137 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22138 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22139 (general_thread, step_thread, thread_from_wait)
22140 (old_thread_from_wait): Update.
22141 * target.h (struct thread_resume): Use unsigned long for THREAD.
22142 (struct target_ops): Use unsigned long for arguments to attach and
22143 thread_alive.
22144
dcdb98d2
DJ
221452005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22146
22147 * acinclude.m4: Include bfd/bfd.m4 directly.
22148 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22149 <agriffis@toolchain.org>.
22150 * aclocal.m4, configure: Regenerated.
22151
bec39cab
AC
221522005-01-07 Andrew Cagney <cagney@gnu.org>
22153
22154 * configure.ac: Rename configure.in, require autoconf 2.59.
22155 * configure: Re-generate.
22156
434c4c77
DJ
221572004-12-08 Daniel Jacobowitz <dan@debian.org>
22158
22159 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22160 LIBS when finished.
22161 * aclocal.m4: Regenerated.
22162 * configure: Regenerated.
22163
db1d3e1b
AS
221642004-11-21 Andreas Schwab <schwab@suse.de>
22165
22166 * linux-m68k-low.c (m68k_num_gregs): Define.
22167 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22168 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22169 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22170 (m68k_breakpoint_at): New. Add to the_low_target.
22171
22172 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22173 srv_linux_thread_db to yes.
22174
43360365
JB
221752004-10-20 Joel Brobecker <brobecker@gnat.com>
22176
22177 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22178 (ARCH_SET_FS): Likewise.
22179 (ARCH_GET_FS): Likewise.
22180 (ARCH_GET_GS): Likewise.
22181
fd500816
DJ
221822004-10-16 Daniel Jacobowitz <dan@debian.org>
22183
22184 * linux-i386-low.c (ps_get_thread_area): New.
22185 * linux-x86-64-low.c (ps_get_thread_area): New.
22186 * linux-low.c: Include <sys/syscall.h>.
22187 (linux_kill_one_process): Don't kill the first thread here.
22188 (linux_kill): Kill the first thread here.
22189 (kill_lwp): New function.
22190 (send_sigstop, linux_send_signal): Use it.
22191 * proc-service.c: Clean up #ifdefs.
22192 (fpregset_info): Delete.
22193 (ps_lgetregs): Update and enable implementation.
22194 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22195 implementations.
22196 * remote-utils.c (struct sym_cache, symbol_cache): New.
22197 (input_interrupt): Print a clearer message.
22198 (async_io_enabled): New variable.
22199 (enable_async_io, disable_async_io): Use it. Update comments.
22200 (look_up_one_symbol): Use the symbol cache.
22201 * thread-db.c (thread_db_look_up_symbols): New function.
22202 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22203
f6de3c42
DJ
222042004-10-16 Daniel Jacobowitz <dan@debian.org>
22205
22206 * configure.in: Test for -rdynamic.
22207 * configure: Regenerated.
22208 * Makefile (INTERNAL_LDFLAGS): New.
22209 (gdbserver, gdbreplay): Use it.
22210
2c0fc042
AC
222112004-09-02 Andrew Cagney <cagney@gnu.org>
22212
22213 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22214
075b3282
DJ
222152004-03-23 Daniel Jacobowitz <drow@mvista.com>
22216
22217 * linux-low.c (linux_wait): Clear all_processes list also.
22218
fa6a77dc
DJ
222192004-03-12 Daniel Jacobowitz <drow@mvista.com>
22220
22221 * linux-low.c: Include <errno.h>. Remove extern declaration of
22222 errno.
22223
6d782a97
DJ
222242004-03-12 Daniel Jacobowitz <drow@mvista.com>
22225
22226 * gdbreplay.c, server.h, utils.c: Update copyright years.
22227
3a7fb99b
DJ
222282004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22229
22230 * server.c (main): Print child status or termination signal from
22231 variable 'signal', not 'sig'.
22232
c3e735a6
DJ
222332004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22234
22235 * linux-low.c (linux_read_memory): Change return type to
22236 int. Check for and return error from ptrace().
22237 * target.c (read_inferior_memory): Change return type to int. Pass
22238 back return status from the_target->read_memory().
22239 * target.h (struct target_ops): Adapt *read_memory() prototype.
22240 Update comment.
22241 (read_inferior_memory): Adapt prototype.
22242 * server.c (main): Return an error packet if
22243 read_inferior_memory() returns an error.
22244
a59d1c82
DJ
222452004-03-04 Daniel Jacobowitz <drow@mvista.com>
22246
22247 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22248 Unify with other clean targets.
22249
dc3f8883
DJ
222502004-02-29 Daniel Jacobowitz <drow@mvista.com>
22251
22252 * server.c (handle_v_cont): Call set_desired_inferior.
22253
89a208da
DJ
222542004-02-29 Daniel Jacobowitz <drow@mvista.com>
22255
22256 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22257
62ea82f5
DJ
222582004-02-29 Daniel Jacobowitz <drow@mvista.com>
22259
22260 * linux-low.c (linux_wait): Unblock async I/O.
22261 (linux_resume): Block and enable async I/O.
22262 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22263 * server.h (block_async_io, unblock_async_io): Add prototypes.
22264
6910d122
DJ
222652004-02-29 Daniel Jacobowitz <drow@mvista.com>
22266
22267 * remote-utils.c (remote_open): Print a status notice after
22268 opening a TCP port.
22269 * server.c (attach_inferior): Print a status notice after
22270 attaching.
22271
222722004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
22273
22274 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22275
c89dc5d4
DJ
222762004-02-26 Daniel Jacobowitz <drow@mvista.com>
22277
22278 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22279 error packet.
22280 * server.c, target.h: Update copyright years.
22281
4b8dad4a
RM
222822004-02-25 Roland McGrath <roland@redhat.com>
22283
22284 * target.h (struct target_ops): New member `read_auxv'.
22285 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22286 * linux-low.c (linux_read_auxv): New function.
22287 (linux_target_ops): Initialize `read_auxv' member to that.
22288
d7446758
JB
222892004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22290
22291 Committed by Jim Blandy <jimb@redhat.com>.
22292
22293 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 22294 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
22295 instead of GPR_SIZE to distiguish s390 and s390x targets.
22296
5544ad89
DJ
222972004-01-31 Daniel Jacobowitz <drow@mvista.com>
22298
22299 * linux-low.c: Update copyright year.
22300 (check_removed_breakpoint): Clear pending_is_breakpoint.
22301 (linux_set_resume_request, linux_queue_one_thread)
22302 (resume_status_pending_p): New functions.
22303 (linux_continue_one_thread): Use process->resume.
22304 (linux_resume): Only resume threads if there are no pending events.
22305 * linux-low.h (struct process_info): Add resume request
22306 pointer.
22307
2a68b70e
DJ
223082004-01-30 Daniel Jacobowitz <drow@mvista.com>
22309
22310 * regcache.c (new_register_cache): Clear the allocated register
22311 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22312
64386c31
DJ
223132003-10-13 Daniel Jacobowitz <drow@mvista.com>
22314
22315 * linux-low.c (linux_resume): Take a struct thread_resume *
22316 argument.
22317 (linux_wait): Update call.
22318 (resume_ptr): New static variable.
22319 (linux_continue_one_thread): Renamed from
22320 linux_continue_one_process. Use resume_ptr.
22321 (linux_resume): Use linux_continue_one_thread.
22322 * server.c (handle_v_cont, handle_v_requests): New functions.
22323 (myresume): New function.
22324 (main): Handle 'v' case.
22325 * target.h (struct thread_resume): New type.
22326 (struct target_ops): Change argument of "resume" to struct
22327 thread_resume *.
22328 (myresume): Delete macro.
22329
c938e9b0
L
223302003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22331
22332 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22333 (uninstall): Support DESTDIR.
22334
7f313d07
BC
22335Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22336
22337 * configure.srv: Add xscale*linux copy of arm*linux entry.
22338
3b2fc2ea
DJ
223392003-07-24 Daniel Jacobowitz <drow@mvista.com>
22340
22341 * linux-arm-low.c (arm_reinsert_addr): New function.
22342 (the_low_target): Add arm_reinsert_addr.
22343
1c0a559e
MK
223442003-07-08 Mark Kettenis <kettenis@gnu.org>
22345
22346 * mem-break.c: Remove whitespace at end of file.
22347
43d5792c
DJ
223482003-06-28 Daniel Jacobowitz <drow@mvista.com>
22349
22350 * configure.in: Check whether we need to prototype strerror.
22351 * server.h: Optionally prototype strerror.
22352 * gdbreplay.c (perror_with_name): Use strerror.
22353 * linux-low.c (linux_attach_lwp): Use strerror.
22354 * utils.c (perror_with_name): Use strerror.
22355 * config.in, configure: Regenerated.
22356
c8a86edf
DJ
223572003-06-28 Daniel Jacobowitz <drow@mvista.com>
22358
22359 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22360 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22361
73d37363
DJ
223622003-06-20 Daniel Jacobowitz <drow@mvista.com>
22363
22364 * Makefile.in (SFILES): Update.
22365 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22366 low-sun3.c: Remove files.
22367
6ad8ae5c
DJ
223682003-06-17 Daniel Jacobowitz <drow@mvista.com>
22369
22370 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22371 (linux_detach_one_process, linux_detach): New functions.
22372 (linux_target_ops): Add linux_detach.
22373 * server.c (main): Handle 'D' packet.
22374 * target.h (struct target_ops): Add "detach" member.
22375 (detach_inferior): Define.
22376
1581182a
MK
223772003-06-13 Mark Kettenis <kettenis@gnu.org>
22378
22379 From Kelley Cook <kelleycook@wideopenwest.com>:
22380 * configure.srv: Accept i[34567]86 variants.
22381
e5379b03
DJ
223822003-06-05 Daniel Jacobowitz <drow@mvista.com>
22383
22384 * linux-low.c (linux_wait_for_event): Correct comment typos.
22385 (linux_resume_one_process): Call check_removed_breakpoint.
22386 (linux_send_signal): New function.
22387 (linux_target_ops): Add linux_send_signal.
22388 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22389 of kill.
22390 * target.h (struct target_ops): Add send_signal.
22391
2ff29de4
JB
223922003-05-29 Jim Blandy <jimb@redhat.com>
22393
22394 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22395 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22396 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22397 away part of the register's value.
22398
254787d4
DJ
223992003-03-26 Daniel Jacobowitz <drow@mvista.com>
22400
22401 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22402 (linux_wait_for_event, linux_init_signals): Likewise.
22403
94e10508
DJ
224042003-03-17 Daniel Jacobowitz <drow@mvista.com>
22405
22406 * configure.in: Check for stdlib.h.
22407 * configure: Regenerated.
22408 * config.in: Regenerated.
22409
4c0711e0
DJ
224102003-01-04 Andreas Schwab <schwab@suse.de>
22411
22412 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22413
ef66e766
AC
224142003-01-02 Andrew Cagney <ac131313@redhat.com>
22415
22416 * Makefile.in: Remove obsolete code.
22417
a1358604
DJ
224182002-11-20 Daniel Jacobowitz <drow@mvista.com>
22419
22420 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22421 defined(PT_FPR0_HI).
22422
23ce3b1c
DJ
224232002-11-17 Stuart Hughes <seh@zee2.com>
22424
22425 * linux-arm-low.c (arm_num_regs): Increase.
22426 (arm_regmap): Include status register.
22427
224282002-11-17 Daniel Jacobowitz <drow@mvista.com>
22429
22430 * linux-low.c (register_addr): Remove incorrect -1 check.
22431
a9fa9f7d
DJ
224322002-08-29 Daniel Jacobowitz <drow@mvista.com>
22433
22434 * linux-low.c (linux_create_inferior): Call setpgid. Return
22435 the new PID.
22436 (unstopped_p, linux_signal_pid): Remove.
22437 (linux_target_ops): Remove linux_signal_pid.
22438 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22439 global instead of target method.
22440 * target.h (struct target_ops): Remove signal_pid. Update comment
22441 for create_inferior.
22442 * server.c (signal_pid): New variable.
22443 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22444 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22445 (attach_inferior): Set signal_pid.
22446
17574093
DJ
224472002-08-23 Daniel Jacobowitz <drow@mvista.com>
22448
22449 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22450
224512002-08-20 Jim Blandy <jimb@redhat.com>
22452
22453 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22454 default for this.
22455
224562002-08-01 Andrew Cagney <cagney@redhat.com>
22457
22458 * Makefile.in: Make chill references obsolete.
22459
224602002-07-24 Kevin Buettner <kevinb@redhat.com>
22461
22462 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22463 * configure: Regenerate.
22464 * config.in: Regenerate.
22465
224662002-07-09 David O'Brien <obrien@FreeBSD.org>
22467
22468 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22469 (perror_with_name, remote_close, remote_open, expect, play): Static.
22470
224712002-07-04 Michal Ludvig <mludvig@suse.cz>
22472
4b8dad4a 22473 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22474 byte offsets instead of an array of indexes.
22475 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22476
224772002-06-13 Daniel Jacobowitz <drow@mvista.com>
22478
22479 * regcache.c: Add comment.
22480
224812002-06-11 Daniel Jacobowitz <drow@mvista.com>
22482
22483 * thread-db.c: New file.
22484 * proc-service.c: New file.
22485 * acinclude.m4: New file.
22486 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22487 proc-service.o, and thread-db.o.
22488 (linux-low.o): Add USE_THREAD_DB.
22489 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22490 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22491 * aclocal.m4: Regenerated.
22492 * config.in: Regenerated.
22493 * configure: Regenerated.
22494 * configure.in: Check for proc_service.h, sys/procfs.h,
22495 thread_db.h, and linux/elf.h headrs.
22496 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22497 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22498 Check for -lthread_db and thread support.
22499 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22500 PowerPC, and SuperH.
22501 * i387-fp.c: Constify arguments.
22502 * i387-fp.h: Likewise.
22503 * inferiors.c: (struct thread_info): Renamed from
22504 `struct inferior_info'. Remove PID member. Use generic inferior
22505 list header. All uses updated.
22506 (inferiors, signal_pid): Removed.
22507 (all_threads): New variable.
22508 (get_thread): Define.
22509 (add_inferior_to_list): New function.
22510 (for_each_inferior): New function.
22511 (change_inferior_id): New function.
22512 (add_inferior): Removed.
22513 (remove_inferior): New function.
22514 (add_thread): New function.
22515 (free_one_thread): New function.
22516 (remove_thread): New function.
22517 (clear_inferiors): Use for_each_inferior and free_one_thread.
22518 (find_inferior): New function.
22519 (find_inferior_id): New function.
22520 (inferior_target_data): Update argument type.
22521 (set_inferior_target_data): Likewise.
22522 (inferior_regcache_data): Likewise.
22523 (set_inferior_regcache_data): Likewise.
22524 * linux-low.c (linux_bp_reinsert): Remove.
22525 (all_processes, stopping_threads, using_thrads)
22526 (struct pending_signals, debug_threads, pid_of): New.
22527 (inferior_pid): Replace with macro.
22528 (struct inferior_linux_data): Remove.
22529 (get_stop_pc, add_process): New functions.
22530 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22531 Use add_process and add_thread.
22532 (linux_attach_lwp): New function, based on old linux_attach. Use
22533 add_process and add_thread. Set stop_expected for new threads.
22534 (linux_attach): New function.
22535 (linux_kill_one_process): New function.
22536 (linux_kill): Kill all LWPs.
22537 (linux_thread_alive): Use find_inferior_id.
22538 (check_removed_breakpoints, status_pending_p): New functions.
22539 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22540 Update. Use WNOHANG. Wait for cloned processes also. Update process
22541 struct for the found process.
22542 (linux_wait_for_event): New function.
22543 (linux_wait): Use it. Support LWPs.
22544 (send_sigstop, wait_for_sigstop, stop_all_processes)
22545 (linux_resume_one_process, linux_continue_one_process): New functions.
22546 (linux_resume): Support LWPs.
22547 (REGISTER_RAW_SIZE): Remove.
22548 (fetch_register): Use register_size instead. Call supply_register.
22549 (usr_store_inferior_registers): Likewise. Call collect_register.
22550 Fix recursive case.
22551 (regsets_fetch_inferior_registers): Improve error message.
22552 (regsets_store_inferior_registers): Add debugging.
22553 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22554 (unstopped_p, linux_signal_pid): New functions.
22555 (linux_target_ops): Add linux_signal_pid.
22556 (linux_init_signals): New function.
22557 (initialize_low): Call it. Initialize using_threads.
22558 * regcache.c (inferior_regcache_data): Add valid
22559 flag.
22560 (get_regcache): Fetch registers lazily. Add fetch argument
22561 and update all callers.
22562 (regcache_invalidate_one, regcache_invalidate): New
22563 functions.
22564 (new_register_cache): Renamed from create_register_cache.
22565 Return the new regcache.
22566 (free_register_cache): Change argument to a void *.
22567 (registers_to_string, registers_from_string): Call get_regcache
22568 with fetch flag set.
22569 (register_data): Make static. Pass fetch flag to get_regcache.
22570 (supply_register): Call get_regcache with fetch flag clear.
22571 (collect_register): Call get_regcache with fetch flag set.
22572 (collect_register_as_string): New function.
22573 * regcache.h: Update.
22574 * remote-utils.c (putpkt): Flush after debug output and use
22575 stderr.
22576 Handle input interrupts while waiting for an ACK.
22577 (input_interrupt): Use signal_pid method.
22578 (getpkt): Flush after debug output and use stderr.
22579 (outreg): Use collect_register_as_string.
22580 (new_thread_notify, dead_thread_notify): New functions.
22581 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22582 and general_thread.
22583 (look_up_one_symbol): Flush after debug output.
22584 * server.c (step_thread, server_waiting): New variables.
22585 (start_inferior): Don't use signal_pid. Update call to mywait.
22586 (attach_inferior): Update call to mywait.
22587 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22588 (main): Don't fetch/store registers explicitly. Use
22589 set_desired_inferior. Support proposed ``Hs'' packet. Update
22590 calls to mywait.
22591 * server.h: Update.
22592 (struct inferior_list, struct_inferior_list_entry): New.
22593 * target.c (set_desired_inferior): New.
22594 (write_inferior_memory): Constify.
22595 (mywait): New function.
22596 * target.h: Update.
22597 (struct target_ops): New signal_pid method.
22598 (mywait): Removed macro, added prototype.
22599
22600 * linux-low.h (regset_func): Removed.
22601 (regset_fill_func, regset_store_func): New.
22602 (enum regset_type): New.
22603 (struct regset_info): Add type field. Use new operation types.
22604 (struct linux_target_ops): stop_pc renamed to get_pc.
22605 Add decr_pc_after_break and breakpoint_at.
22606 (get_process, get_thread_proess, get_process_thread)
22607 (strut process_info, all_processes, linux_attach_lwp)
22608 (thread_db_init): New.
22609
22610 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22611 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22612 (the_low_target): Add new members.
22613 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22614 (i386_store_fpxregset): Constify.
22615 (target_regsets): Add new kind identifier.
22616 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22617 (i386_set_pc): Add debugging.
22618 (i386_breakpoint_at): New function.
22619 (the_low_target): Add new members.
22620 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22621 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22622 (mips_breakpoint_at): New.
22623 (the_low_target): Add new members.
22624 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22625 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22626 (the_low_target): Add new members.
22627 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22628 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22629 (the_low_target): Add new members.
22630 * linux-x86-64-low.c (target_regsets): Add new kind
22631 identifier.
22632
226332002-05-15 Daniel Jacobowitz <drow@mvista.com>
22634
22635 From Martin Pool <mbp@samba.org>:
22636 * server.c (gdbserver_usage): New function.
22637 (main): Call it.
22638
226392002-05-14 Daniel Jacobowitz <drow@mvista.com>
22640
22641 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22642 stop_at -> stop_pc.
22643
226442002-05-04 Andrew Cagney <ac131313@redhat.com>
22645
22646 * Makefile.in: Remove obsolete code.
22647
226482002-04-24 Michal Ludvig <mludvig@suse.cz>
22649
22650 * linux-low.c (regsets_fetch_inferior_registers),
22651 (regsets_store_inferior_registers): Removed cast to int from
22652 ptrace() calls.
22653 * regcache.h: Added declaration of struct inferior_info.
22654
226552002-04-20 Daniel Jacobowitz <drow@mvista.com>
22656
22657 * inferiors.c (struct inferior_info): Add regcache_data.
22658 (add_inferior): Call create_register_cache.
22659 (clear_inferiors): Call free_register_cache.
22660 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22661 * regcache.c (struct inferior_regcache_data): New.
22662 (registers): Remove.
22663 (get_regcache): New function.
22664 (create_register_cache, free_register_cache): New functions.
22665 (set_register_cache): Don't initialize the register cache here.
22666 (registers_to_string, registers_from_string, register_data): Call
22667 get_regcache.
22668 * regcache.h: Add prototypes.
22669 * server.h: Likewise.
22670
226712002-04-20 Daniel Jacobowitz <drow@mvista.com>
22672
22673 * mem-break.c: New file.
22674 * mem-break.h: New file.
22675 * Makefile.in: Add mem-break.o rule; update server.h
22676 dependencies.
22677 * inferiors.c (struct inferior_info): Add target_data
22678 member.
22679 (clear_inferiors): Free target_data member if set.
22680 (inferior_target_data, set_inferior_target_data): New functions.
22681 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22682 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22683 * linux-low.c (linux_bp_reinsert): New variable.
22684 (struct inferior_linux_data): New.
22685 (linux_create_inferior): Use set_inferior_target_data.
22686 (linux_attach): Likewise. Call add_inferior.
22687 (linux_wait_for_one_inferior): New function.
22688 (linux_wait): Call it.
22689 (linux_write_memory): Add const.
22690 (initialize_low): Call set_breakpoint_data.
22691 * linux-low.h (struct linux_target_ops): Add breakpoint
22692 handling members.
22693 * server.c (attach_inferior): Remove extra add_inferior
22694 call.
22695 * server.h: Include mem-break.h. Update inferior.c
22696 prototypes.
22697 * target.c (read_inferior_memory)
22698 (write_inferior_memory): New functions.
22699 * target.h (read_inferior_memory)
22700 (write_inferior_memory): Change macros to prototypes.
22701 (struct target_ops): Update comments. Add const to write_memory
22702 definition.
22703
227042002-04-11 Daniel Jacobowitz <drow@mvista.com>
22705
22706 * linux-low.c (usr_store_inferior_registers): Support
22707 registers which are allowed to fail to store.
22708 * linux-low.h (linux_target_ops): Likewise.
22709 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22710 (ppc_cannot_store_register): FPSCR may not be storable.
22711
227122002-04-09 Daniel Jacobowitz <drow@mvista.com>
22713
22714 * server.h: Include <string.h> if HAVE_STRING_H.
22715 * ChangeLog: Correct paths in last ChangeLog entry.
22716
227172002-04-09 Daniel Jacobowitz <drow@mvista.com>
22718
22719 * linux-low.h: Remove obsolete prototypes.
22720 (struct linux_target_ops): New.
22721 (extern the_low_target): New.
22722 * linux-low.c (num_regs, regmap): Remove declarations.
22723 (register_addr): Use the_low_target explicitly.
22724 (fetch_register): Likewise.
22725 (usr_fetch_inferior_registers): Likewise.
22726 (usr_store_inferior_registers): Likewise.
22727 * linux-arm-low.c (num_regs): Remove.
22728 (arm_num_regs): Define.
22729 (arm_regmap): Renamed from regmap, made static.
22730 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22731 made static.
22732 (arm_cannot_store_register): Renamed from cannot_store_register,
22733 made static.
22734 (the_low_target): New.
22735 * linux-i386-low.c (num_regs): Remove.
22736 (i386_num_regs): Define.
22737 (i386_regmap): Renamed from regmap, made static.
22738 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22739 made static.
22740 (i386_cannot_store_register): Renamed from cannot_store_register,
22741 made static.
22742 (the_low_target): New.
22743 * linux-ia64-low.c (num_regs): Remove.
22744 (ia64_num_regs): Define.
22745 (ia64_regmap): Renamed from regmap, made static.
22746 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22747 made static.
22748 (ia64_cannot_store_register): Renamed from cannot_store_register,
22749 made static.
22750 (the_low_target): New.
22751 * linux-m68k-low.c (num_regs): Remove.
22752 (m68k_num_regs): Define.
22753 (m68k_regmap): Renamed from regmap, made static.
22754 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22755 made static.
22756 (m68k_cannot_store_register): Renamed from cannot_store_register,
22757 made static.
22758 (the_low_target): New.
22759 * linux-mips-low.c (num_regs): Remove.
22760 (mips_num_regs): Define.
22761 (mips_regmap): Renamed from regmap, made static.
22762 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22763 made static.
22764 (mips_cannot_store_register): Renamed from cannot_store_register,
22765 made static.
22766 (the_low_target): New.
22767 * linux-ppc-low.c (num_regs): Remove.
22768 (ppc_num_regs): Define.
22769 (ppc_regmap): Renamed from regmap, made static.
22770 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22771 made static.
22772 (ppc_cannot_store_register): Renamed from cannot_store_register,
22773 made static.
22774 (the_low_target): New.
22775 * linux-s390-low.c (num_regs): Remove.
22776 (s390_num_regs): Define.
22777 (s390_regmap): Renamed from regmap, made static.
22778 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22779 made static.
22780 (s390_cannot_store_register): Renamed from cannot_store_register,
22781 made static.
22782 (the_low_target): New.
22783 * linux-sh-low.c (num_regs): Remove.
22784 (sh_num_regs): Define.
22785 (sh_regmap): Renamed from regmap, made static.
22786 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22787 made static.
22788 (sh_cannot_store_register): Renamed from cannot_store_register,
22789 made static.
22790 (the_low_target): New.
22791 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22792 (the_low_target): New.
22793
227942002-04-09 Daniel Jacobowitz <drow@mvista.com>
22795
22796 * Makefile.in: Add stamp-h target.
22797 * configure.in: Create stamp-h.
22798 * configure: Regenerated.
22799
228002002-04-09 Daniel Jacobowitz <drow@mvista.com>
22801
22802 * inferiors.c: New file.
22803 * target.c: New file.
22804 * target.h: New file.
22805 * Makefile.in: Add target.o and inferiors.o. Update
22806 dependencies.
22807 * linux-low.c (inferior_pid): New static variable,
22808 moved from server.c.
22809 (linux_create_inferior): Renamed from create_inferior.
22810 Call add_inferior. Return 0 on success instead of a PID.
22811 (linux_attach): Renamed from myattach.
22812 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22813 (linux_thread_alive): Renamed from mythread_alive.
22814 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22815 child dies.
22816 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22817 (regsets_store_inferior_registers): Correct error message.
22818 Add missing ``return 0''.
22819 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22820 (linux_store_registers): Renamed from store_inferior_registers.
22821 (linux_read_memory): Renamed from read_inferior_memory.
22822 (linux_write_memory): Renamed from write_inferior_memory.
22823 (linux_target_ops): New structure.
22824 (initialize_low): Call set_target_ops ().
22825 * remote-utils.c (unhexify): New function.
22826 (hexify): New function.
22827 (input_interrupt): Send signals to ``signal_pid''.
22828 * server.c (inferior_pid): Remove.
22829 (start_inferior): Update create_inferior call.
22830 (attach_inferior): Call add_inferior.
22831 (handle_query): New function.
22832 (main): Call handle_query for `q' packets.
22833 * server.h: Include "target.h". Remove obsolete prototypes.
22834 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22835
228362002-04-09 Daniel Jacobowitz <drow@mvista.com>
22837
22838 * Makefile.in: Add WARN_CFLAGS. Update configury
22839 dependencies.
22840 * configure.in: Check for <string.h>
22841 * configure: Regenerate.
22842 * config.in: Regenerate.
22843 * gdbreplay.c: Include needed system headers.
22844 (remote_open): Remove strchr prototype.
22845 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22846 * regcache.c (supply_register): Change buf argument to const void *.
22847 (supply_register_by_name): Likewise.
22848 (collect_register): Change buf argument to void *.
22849 (collect_register_by_name): Likewise.
22850 * regcache.h: Add missing prototypes.
22851 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22852 * server.c (handle_query): New function.
22853 (attached): New static variable, moved out of main.
22854 (main): Quiet longjmp clobber warnings.
22855 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22856 * utils.c (error): Remove NORETURN.
22857 (fatal): Likewise.
This page took 2.551875 seconds and 4 git commands to generate.