]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
sim: m68hc11: fix up cycle buffer printing
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
482155e6
TBA
12021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * server.cc (handle_v_attach)
4 (handle_v_run)
5 (handle_v_kill): Make void.
6
82288339
TT
72021-05-03 Tom Tromey <tromey@adacore.com>
8
9 PR build/27807:
10 * win32-i386-low.cc (i386_get_thread_context): Call
11 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
12
e228ef97
TT
132021-04-30 Tom Tromey <tromey@adacore.com>
14
15 * win32-low.cc (do_initial_child_stuff): Update.
16 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
17 Change parameter type.
18 (win32_add_dll, win32_add_all_dlls)
19 (windows_nat::handle_load_dll): Remove.
20 (get_child_debug_event): Call dll_loaded_event.
21
de071872
TT
222021-04-30 Tom Tromey <tromey@adacore.com>
23
24 * win32-low.cc (GETPROCADDRESS): Remove.
25 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
26 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
27 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
28 (win32_Wow64SetThreadContext): Remove.
29 (win32_set_thread_context, do_initial_child_stuff)
30 (win32_process_target::attach, win32_process_target::detach):
31 Update.
32 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
33 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
34 Remove.
35 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
36 (win32_GetModuleInformation, win32_GetModuleInformationA):
37 Remove.
38 (load_psapi): Remove.
39 (win32_add_dll, win32_process_target::request_interrupt): Update.
40 (initialize_low): Call initialize_loadable.
41
38ae2915
TT
422021-04-14 Tom Tromey <tromey@adacore.com>
43
44 * win32-low.cc (windows_nat::handle_load_dll): Don't check
45 _WIN32_WCE.
46
6cacd449
PA
472021-04-13 Pedro Alves <pedro@palves.net>
48
49 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
50
1228cb90
TT
512021-04-13 Tom Tromey <tromey@adacore.com>
52
53 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
54 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
55
0256da25
PA
562021-04-13 Pedro Alves <pedro@palves.net>
57
58 * Makefile.in (SFILES): Remove hostio-errno.cc.
59 * configure: Regenerate.
60 * configure.ac (GDBSERVER_DEPFILES): No longer add
61 $srv_hostio_err_objs.
62 * configure.srv (srv_hostio_err_objs): Delete.
63 * hostio-errno.cc: Delete.
64 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
65 here.
66 * hostio.h (hostio_last_error_from_errno): Delete.
67 * target.cc (process_stratum_target::hostio_last_error): Delete.
68 * target.h (class process_stratum_target) <hostio_last_error>:
69 Delete.
70
d4717483
SM
712021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
74 * win32-low.h: Likewise.
75
04977957
TBA
762021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
77
78 * target.h (class process_stratum_target) <pid_to_exec_file>:
79 Constify the return type. Update the definition/references below.
80 * target.cc (process_stratum_target::pid_to_exec_file)
81 * linux-low.h (class linux_process_target) <pid_to_exec_file>
82 * linux-low.cc (linux_process_target::pid_to_exec_file)
83 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
84 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
85 * server.cc (handle_qxfer_exec_file)
86
114ee2a4
EZ
872021-04-11 Eli Zaretskii <eliz@gnu.org>
88
89 * win32-low.cc (win32_add_dll): New function, with body almost
90 identical to what win32_add_all_dlls did. Accepts one argument;
91 if that is non-NULL, returns the file name of the DLL that is
92 loaded at the base address equal to that argument, or NULL if not
93 found. If the argument is NULL, add all the DLLs loaded by the
94 inferior to the list of solibs and return NULL.
95 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
96 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
97 failed to glean the file name of the DLL, call win32_add_dll to
98 try harder using the lpBaseOfDll member of the load-DLL event.
99
782c1ab8
LM
1002021-03-30 Luis Machado <luis.machado@linaro.org>
101
102 * server.cc (handle_general_set, handle_query): Update variable
103 to bool and fix verification logic.
104
41919a58
LM
1052021-03-24 Luis Machado <luis.machado@linaro.org>
106
107 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
108 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
109 nat/aarch64-mte-linux-ptrace.o.
110 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
111 (class aarch64_target) <supports_memory_tagging>
112 <fetch_memtags, store_memtags>: New method overrides.
113 (aarch64_target::supports_memory_tagging)
114 (aarch64_target::fetch_memtags)
115 (aarch64_target::store_memtags): New methods.
116
5e984dbf
LM
1172021-03-24 Luis Machado <luis.machado@linaro.org>
118
119 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
120 (aarch64_store_mteregset): New function.
121 (aarch64_regsets): Add MTE register set entry.
122 (aarch64_sve_regsets): Add MTE register set entry.
123
c1bd443b
LM
1242021-03-24 Luis Machado <luis.machado@linaro.org>
125
126 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
127 aarch64_linux_read_description.
128 (initialize_low_tracepoint): Likewise.
129 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
130 into account.
131 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
132 for MTE.
133 (aarch64_linux_read_description): Add mte_p parameter and update to
134 use it.
135 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
136 parameter.
137
04245125
LM
1382021-03-24 Luis Machado <luis.machado@linaro.org>
139
140 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
141
c2cfa654
LM
1422021-03-24 Luis Machado <luis.machado@linaro.org>
143
144 * server.cc (test_memory_tagging_functions): New function.
145 (captured_main): Register test_memory_tagging_functions.
146
546b77fe
LM
1472021-03-24 Luis Machado <luis.machado@linaro.org>
148
149 * remote-utils.cc (decode_m_packet_params): Renamed from ...
150 (decode_m_packet): ... this, which now calls decode_m_packet_params.
151 Make char * param/return const char *.
152 (decode_M_packet): Use decode_m_packet_params and make char * param
153 const char *.
154 * remote-utils.h (decode_m_packet_params): New prototype.
155 (decode_m_packet): Constify char pointers.
156 (decode_M_packet): Likewise.
157 * server.cc (create_fetch_memtags_reply)
158 (parse_store_memtags_request): New
159 functions.
160 (handle_general_set): Handle the QMemTags packet.
161 (parse_fetch_memtags_request): New function.
162 (handle_query): Handle the qMemTags packet and advertise memory
163 tagging support.
164 (captured_main): Initialize memory tagging flag.
165 * server.h (struct client_state): Initialize memory tagging flag.
166 * target.cc (process_stratum_target::supports_memory_tagging)
167 (process_stratum_target::fetch_memtags)
168 (process_stratum_target::store_memtags): New methods.
169 * target.h: Include gdbsupport/byte-vector.h.
170 (class process_stratum_target) <supports_memory_tagging>
171 <fetch_memtags, store_memtags>: New class virtual methods.
172 (target_supports_memory_tagging): Define.
173
d171632f
TBA
1742021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
175
176 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
177 fields.
178 * dll.h (loaded_dll)
179 (unloaded_dll): Declare an overloaded version that takes a proc
180 parameter.
181 * dll.cc (loaded_dll)
182 (unloaded_dll): Implement the overloaded versions.
183 (clear_dlls): Clear all process' dll lists.
184 (all_dlls, dlls_changed): Remove the global variables.
185 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
186 list per proc.
187 * server.cc (handle_qxfer_libraries): Ditto.
188 (handle_v_attach): Ditto.
189 (captured_main): Ditto.
190
1a48f002
SM
1912021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * linux-low.cc (linux_process_target::filter_event): Return
194 void.
195 * linux-low.h (class linux_process_target) <filter_event>:
196 Return void.
197
77fba254
TT
1982021-02-12 Tom Tromey <tromey@adacore.com>
199
200 * gdbreplay.cc (remote_desc): Remove.
201 (remote_desc_in, remote_desc_out): New globals.
202 (remote_close): Update.
203 (remote_open): Handle "-".
204 (remote_open): Update.
205 (logchar): Log to stderr.
206 (expect, play): Update.
207
c054dcd5
TT
2082021-02-12 Tom Tromey <tromey@adacore.com>
209
210 * gdbreplay.cc (remote_open): Constify.
211
9c9d63b1
PM
2122021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
213
214 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
215 gnulib free replacement too.
216 * common-defs.h [USE_WIN32API](read, write): Undefine
217 gnulib versions before defining these macros.
218
7e9cf1fe
PA
2192021-02-03 Pedro Alves <pedro@palves.net>
220
221 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
222 Discard step SIGTRAP, unless GDB wanted the thread to step.
223
b0083dd7
PA
2242021-02-03 Pedro Alves <pedro@palves.net>
225
226 * server.cc (discard_queued_stop_replies): Don't ever discard the
227 notification at the head of the list.
228
6bd434d6
SM
2292021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * ax.cc (bytecode_address_table): Make static.
232 * debug.cc (debug_file): Make static.
233 * linux-low.cc (stopping_threads): Make static.
234 (step_over_bkpt): Make static.
235 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
236 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
237 alloced_trace_state_variables, trace_buffer_ctrl,
238 tracing_start_time, tracing_stop_time, tracing_user_name,
239 tracing_notes, tracing_stop_note): Make static.
240
037e8112
TV
2412021-01-20 Tom de Vries <tdevries@suse.de>
242
243 * linux-x86-low.cc (collect_register_i386): New function.
244 (x86_fill_gregset): Remove memset. Use collect_register_i386.
245
78e49486
TV
2462021-01-07 Tom de Vries <tdevries@suse.de>
247
248 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
249 (LIBIBERTY_FOR_SHLIB): New var.
250 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
251 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
252
3ec3145c
SM
2532021-01-04 Simon Marchi <simon.marchi@efficios.com>
254
255 * debug.cc (debug_print_depth): New.
256
2b47c078
JB
2572021-01-01 Joel Brobecker <brobecker@adacore.com>
258
259 * server.cc (gdbserver_version): Update copyright year.
260 * gdbreplay.cc (gdbreplay_version): Likewise.
261
19007d95
LM
2622020-12-16 Luis Machado <luis.machado@linaro.org>
263
264 * linux-aarch64-low.cc (address_significant): New function.
265 (aarch64_target::low_stopped_data_address): Handle the TBI.
266
96648494
AB
2672020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * Makefile.in (IPA_LIB): Include libiberty library.
270
81fdd7ac
AB
2712020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * server.cc (gdbserver_usage): Add missing option to usage text.
274 (gdbserver_show_disableable): Likewise.
275
dda83cd7
SM
2762020-11-02 Simon Marchi <simon.marchi@efficios.com>
277
278 * ax.cc: Fix indentation.
279 * dll.cc: Fix indentation.
280 * inferiors.h: Fix indentation.
281 * linux-low.cc: Fix indentation.
282 * linux-nios2-low.cc: Fix indentation.
283 * linux-ppc-ipa.cc: Fix indentation.
284 * linux-ppc-low.cc: Fix indentation.
285 * linux-x86-low.cc: Fix indentation.
286 * linux-xtensa-low.cc: Fix indentation.
287 * regcache.cc: Fix indentation.
288 * server.cc: Fix indentation.
289 * tracepoint.cc: Fix indentation.
290
19dd0ae5
SM
2912020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
292
293 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
294 AC_LANG_PROGRAM.
295 * configure: Re-generate.
296
b6fb30ed
SM
2972020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
298
299 * configure: Re-generate.
864ca435
SM
300
3012020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
302
303 * configure: Re-generate.
b9442ec1
SM
304
3052020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
306
307 * configure: Re-generate.
b6fb30ed 308
5164c117
SM
3092020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
310
311 * configure: Re-generate.
312
7e8c7130
SM
3132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * configure.ac: Modernize.
316 * configure: Re-generate.
317
91e1a0ed
SM
3182020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
319
320 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
321 AC_CANONICAL_SYSTEM.
322 * configure: Re-generate.
323
d744f0f9
PA
3242020-10-26 Pedro Alves <pedro@palves.net>
325
326 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
327 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
328 explicit type.
329
006811bc
SM
3302020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * acinclude.m4: Update ptrace.m4 path.
333
92a048fd
SM
3342020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
335
336 * config.in: Re-generate.
337 * configure: Re-generate.
338
4dbe16c8
SM
3392020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * server.cc (handle_general_set): Don't use sprintf with
342 argument overlapping buffer.
343
a9b45cb7
TT
3442020-10-20 Tom Tromey <tromey@adacore.com>
345
346 PR gdb/26742:
347 * inferiors.cc (remove_thread): Clear current_thread before
348 freeing the thread.
349
b07993f6
KR
3502020-10-13 Kamil Rytarowski <n54@gmx.com>x
351
352 * netbsd-low.cc (netbsd_tdesc): Remove.
353 (netbsd_add_process): Likewise.
354 (netbsd_process_target::create_inferior): Update.
355
bbb826f5
AB
3562020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * linux-arc-low.cc (arc_linux_read_description): Release the
359 unique_ptr returned from arc_create_target_description.
360
361cb219
AB
3612020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
364 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
365
51a948fd
AB
3662020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
367
368 * linux-low.cc (linux_process_target::handle_extended_wait):
369 Release the unique_ptr returned from allocate_target_description.
370 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
371 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
372 (tdesc_i386_linux_no_xml): Change type.
373 (x86_linux_read_description): Borrow pointer from unique_ptr
374 object.
375 (x86_target::get_ipa_tdesc_idx): Likewise.
376 (initialize_low_arch): Likewise.
377 * tdesc.cc (allocate_target_description): Update return type.
378
60b74662
TT
3792020-10-07 Tom Tromey <tromey@adacore.com>
380
381 * server.cc (handle_search_memory): Remove dead code.
382
55b10d89
TT
3832020-10-07 Tom Tromey <tromey@adacore.com>
384
385 * server.cc (handle_search_memory_1): Remove.
386 (handle_search_memory): Use simple_search_memory.
387
a038ffd8
SM
3882020-10-07 Simon Marchi <simon.marchi@efficios.com>
389
390 * Makefile.in (COMPILE): Add CXXFLAGS.
391 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
392 (gdbserver$(EXEEXT)): Add CXXFLAGS.
393 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
394 ($(IPA_LIB)): Add CXXFLAGS.
395 (IPAGENT_COMPILE): Add CXXFLAGS.
396
bbe90b5d 3972020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
398
399 * configure.srv: Support ARC architecture.
400 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
401 * linux-arc-low.cc: New file.
402
48491055
KR
4032020-10-07 Kamil Rytarowski <n54@gmx.com>
404
405 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
406 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
407 (netbsd_process_target::qxfer_libraries_svr4): Update.
408
2be01f63
KR
4092020-10-07 Kamil Rytarowski <n54@gmx.com>
410
411 * netbsd-low.cc: Fix whitespace formatting.
412 * netbsd-amd64-low.cc: Likewise.
413
91e5e8db
KR
4142020-10-07 Kamil Rytarowski <n54@gmx.com>
415
416 * netbsd-low.cc (netbsd_process_target::read_memory)
417 (netbsd_process_target::write_memory): Update.
418
9529c852
KR
4192020-10-07 Kamil Rytarowski <n54@gmx.com>
420
421 * netbsd-aarch64-low.cc: Add.
422 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
423 * configure.srv: Add aarch64*-*-netbsd*.
424
981b570a
SV
4252020-10-06 Shahab Vahedi <shahab@synopsys.com>
426
427 * regcache.cc (register_data): Remove unused "fetch" argument.
428
6b01403b
SM
4292020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * server.cc (handle_monitor_command): Handle "set
432 debug-event-loop".
433 (captured_main): Handle "--debug-event-loop".
434 (monitor_show_help): Mention new setting.
435 (gdbserver_usage): Mention new flag.
436
2554f6f5
SM
4372020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
438
439 * linux-low.cc (linux_process_target::async): Pass name to
440 add_file_handler.
441 * remote-utils.cc (handle_accept_event): Likewise.
442 (remote_open): Likewise.
443
8b667fae
KR
4442020-10-01 Kamil Rytarowski <n54@gmx.com>
445
446 * netbsd-i386-low.cc: Add.
447 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
448 * configure.srv: Add i[34567]86-*-netbsd*.
449
15397b0e
KR
4502020-10-01 Kamil Rytarowski <n54@gmx.com>
451
452 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
453 (netbsd_target_regsets): Now const.
454 (the_low_target): Remove.
455 (class netbsd_amd64_target, the_netbsd_amd64_target)
456 (the_netbsd_target): Add.
457 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
458 low_arch_setup ().
459 (netbsd_process_target::fetch_registers)
460 (netbsd_process_target::store_registers, initialize_low): Update.
461 (the_netbsd_target): Remove.
462 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
463 (the_low_target, netbsd_tdesc): Remove.
464 (netbsd_process_target::get_regs_info)
465 (netbsd_process_target::low_arch_setup): Add.
466
99bb393f
HD
4672020-09-23 Hannes Domani <ssbssa@yahoo.de>
468
469 * win32-low.cc: Remove local wow64_process variable.
470 * win32-low.h: Remove local wow64_process variable.
471
b60cea74
TT
4722020-09-18 Tom Tromey <tromey@adacore.com>
473
474 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
475 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
476 (netbsd_process_target::wait): Change type of target_options.
477 * win32-low.h (class win32_process_target) <wait>: Update.
478 * win32-low.cc (win32_process_target::wait): Update.
479 * target.h (class process_stratum_target) <wait>: Update.
480 (mywait): Update.
481 * target.cc (mywait, target_wait): Change type of "options".
482 * linux-low.h (class linux_process_target) <wait, wait_1>:
483 Update.
484 * linux-low.cc (linux_process_target::wait)
485 (linux_process_target::wait_1): Update.
486
db92ac45
TT
4872020-09-15 Tom Tromey <tromey@adacore.com>
488
489 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
490 (xmltarget_amd64_linux_no_xml): Now arrays.
491
27087b7f
TT
4922020-09-14 Tom Tromey <tromey@adacore.com>
493
494 * tracepoint.cc (eval_result_names): Now const.
495 * ax.cc (gdb_agent_op_names): Now const.
496
62ba5048
KR
4972020-09-10 Kamil Rytarowski <n54@gmx.com>
498
499 * netbsd-low.cc: Add.
500 * netbsd-low.h: Likewise.
501 * netbsd-amd64-low.cc: Likewise.
502 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
503 "netbsd-amd64-low.cc".
504 * configure.srv: Add x86_64-*-netbsd*.
505
ece5bc8a
SM
5062020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * server.cc (captured_main): Accept multiple `--selftest=`
509 options. Pass all `--selftest=` arguments to run_tests.
510
c8693053
RO
5112020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
512
513 * configure, config.in: Regenerate.
514
05a6b8c2
EZ
5152020-07-26 Eli Zaretskii <eliz@gnu.org>
516
517 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
518 When checking whether socklen_t type is defined, use ws2tcpip.h if
519 it is available and sys/socket.h isn't.
520 * configure: Regenerate.
521 * config.in: Regenerate.
522
028a4603
PA
5232020-07-22 Pedro Alves <pedro@palves.net>
524
525 * inferiors.cc (switch_to_process): New, moved here from
526 thread-db.cc, and made extern.
527 * inferiors.h (switch_to_process): Declare.
528 * server.cc: Include "gdbsupport/scoped_restore.h".
529 (handle_qxfer_threads_proper): Now returns bool. Prepare to
530 access memory around target calls.
531 (handle_qxfer_threads): Handle errors.
532 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
533
05c309a8
SM
5342020-07-21 Simon Marchi <simon.marchi@efficios.com>
535
536 * linux-low.cc (stopped_pids): Make static.
537
0e267416
AB
5382020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * tdesc.cc (allocate_target_description): Add header comment.
541 (target_desc_deleter::operator()): New function.
542 * tdesc.h (struct target_desc): Declare as final.
543
b315b67d
SM
5442020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
545
546 * server.cc (handle_query): Use std::vector of
547 std::string for `qsupported` vector. Use separate
548 vector for unknowns.
549 * target.h (class process_stratum_target) <process_qsupported>:
550 Change parameters to array_view of const char *.
551 (target_process_qsupported): Remove `count` parameter.
552 * target.cc (process_stratum_target::process_qsupported): Change
553 parameters to array_view of const char *.
554 * linux-x86-low.cc (class x86_target) <process_qsupported>:
555 Likewise.
556
f638ed73
TV
5572020-06-29 Tom de Vries <tdevries@suse.de>
558
559 * ax.h: Include gdbsupport/debug_agent.h.
560
fbf42f4e
AB
5612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * tdesc.cc (struct tdesc_compatible_info): New struct.
564 (tdesc_compatible_info_list): New function.
565 (tdesc_compatible_info_arch_name): New function.
566
013e3554
TBA
5672020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
568
569 Use std::list to stop pending signal instead of manually-created
570 linked list.
571 * linux-low.h: Include <list>.
572 (struct pending_signal): Move here from linux-low.cc.
573 (struct lwp_info) <pending_signals>
574 <pending_signals_to_report>: Update the type.
575 * linux-low.cc (struct pending_signals): Remove.
576 (linux_process_target::delete_lwp)
577 (linux_process_target::add_lwp)
578 (enqueue_one_deferred_signal)
579 (dequeue_one_deferred_signal)
580 (enqueue_pending_signal)
581 (linux_process_target::resume_one_lwp_throw)
582 (linux_process_target::thread_needs_step_over)
583 (linux_process_target::resume_one_thread)
584 (linux_process_target::proceed_one_lwp): Update the use of pending
585 signal list.
586
7d458ea5
SM
5872020-06-17 Simon Marchi <simon.marchi@efficios.com>
588
589 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
590 Remove.
591
84b300de
SM
5922020-06-12 Simon Marchi <simon.marchi@efficios.com>
593
594 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
595 * configure.srv: Remove mingw32ce cases.
596 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
597 * win32-low.h (to_back_slashes): Remove.
598 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
599
96c16e2b
SM
6002020-06-12 Simon Marchi <simon.marchi@efficios.com>
601
602 * Makefile.in (SFILES): linux-tile-low.cc.
603 * configure.srv: Remove tilegx case.
604 * linux-tile-low.cc: Remove.
605
bd1467ae
SM
6062020-06-12 Simon Marchi <simon.marchi@efficios.com>
607
608 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
609 * configure.srv: Remove m32r case.
610 * linux-m32r-low.cc: Remove.
611
7b46bf6f
SM
6122020-06-12 Simon Marchi <simon.marchi@efficios.com>
613
614 * Makefile.in (SFILES): Remove linux-cris-low.c.
615 * configure.srv: Remove cris cases.
616 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
617
1fa29f56
SM
6182020-06-12 Simon Marchi <simon.marchi@efficios.com>
619
620 * Makefile.in (SFILES): Remove linux-bfin-low.c.
621 * configure.srv: Remove bfin case.
622 * linux-bfin-low.cc: Remove.
623 * linux-low.cc: Remove BFIN-conditional code.
624
613f149a
SM
6252020-06-12 Simon Marchi <simon.marchi@efficios.com>
626
627 * configure: Re-generate.
628 * configure.ac: Remove srv_qnx test.
629 * configure.srv: Remove nto case.
630 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
631 * remote-utils.c: Remove __QNX__-guarded code.
632
fdb95bf5
SM
6332020-06-12 Simon Marchi <simon.marchi@efficios.com>
634
635 * configure: Re-generate.
636 * configure.ac: Remove srv_lynxos test.
637 * configure.srv: Remove lynxos cases.
638 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
639 Remove.
640
c00094dc
SM
6412020-06-12 Simon Marchi <simon.marchi@efficios.com>
642
643 * README: Fix a few outdated or incoherent things.
644
6479bf85
HD
6452020-05-27 Hannes Domani <ssbssa@yahoo.de>
646
647 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
648 (win32_clear_inferiors): Use open_process_used.
649 (get_child_debug_event): Likewise.
650
bea571eb
MW
6512020-05-25 Michael Weghorn <m.weghorn@posteo.de>
652
653 PR gdbserver/25893
654 * linux-low.cc (linux_process_target::create_inferior),
655 lynx-low.cc (lynx_process_target::create_inferior),
656 win32-low.cc (win32_process_target::create_inferior): Use
657 construct_inferior_arguments instead of stringify_argv
658 to get string representation which properly escapes
659 special characters.
660 * server.cc (handle_v_run): Just pass empty program arg
661 as such, since any further processing is now handled via
662 construct_inferior_arguments.
663
ace6b919
MW
6642020-05-25 Michael Weghorn <m.weghorn@posteo.de>
665
666 * nto-low.cc (nto_process_target::create_inferior): Pass
667 argv to spawnp function as char **.
668
b69ca137
MW
6692020-05-25 Michael Weghorn <m.weghorn@posteo.de>
670
671 * server.cc (captured_main), (handle_v_run): No longer
672 insert extra NULL element to args vector.
673
51e2cfa2
PA
6742020-05-23 Pedro Alves <palves@redhat.com>
675
676 * gdb-safe-ctype.h: New.
677
8bbf0394
TBA
6782020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
679
680 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
681 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
682 (ia64_target::low_breakpoint_at): Ditto.
683
01370779
HD
6842020-05-15 Hannes Domani <ssbssa@yahoo.de>
685
686 * win32-i386-low.cc (i386_supports_z_point_type): Handle
687 Z_PACKET_HW_BP z_type.
688 (i386_insert_point): Handle raw_bkpt_type type.
689 (i386_remove_point): Likewise.
690
7d186bc0
HD
6912020-04-30 Hannes Domani <ssbssa@yahoo.de>
692
693 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
694 Add arch/i386.o.
695 * win32-arm-low.cc (arm_num_regs): New function.
696 (struct win32_target_ops): Use arm_num_regs.
697 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
698 processes.
699 (i386_get_thread_context): Likewise.
700 (i386_prepare_to_resume): Likewise.
701 (i386_thread_added): Likewise.
702 (i386_single_step): Likewise.
703 (i386_fetch_inferior_register): Likewise.
704 (i386_store_inferior_register): Likewise.
705 (i386_arch_setup): Likewise.
706 (i386_win32_num_regs): New function.
707 (struct win32_target_ops): Use i386_win32_num_regs.
708 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
709 processes.
710 (win32_require_context): Likewise.
711 (child_add_thread): Likewise.
712 (do_initial_child_stuff): Likewise.
713 (continue_one_thread): Likewise.
714 (win32_process_target::resume): Likewise.
715 (load_psapi): Likewise.
716 (win32_add_all_dlls): Likewise.
717 (maybe_adjust_pc): Likewise.
718 (win32_process_target::qxfer_siginfo): Likewise.
719 (initialize_low): Likewise.
720 * win32-low.h (struct win32_target_ops): Change num_regs to
721 callback function.
722
1eb39914
SM
7232020-04-27 Simon Marchi <simon.marchi@efficios.com>
724
725 * configure.ac: Remove check for fs_base/gs_base in
726 user_regs_struct.
727 * configure: Re-generate.
728 * config.in: Re-generate.
729 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
730 x86_store_gregset): Adjust.
731
51ac8e22
HD
7322020-04-22 Hannes Domani <ssbssa@yahoo.de>
733
734 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
735 comparison.
736
a010605f
TT
7372020-04-16 Tom Tromey <tromey@adacore.com>
738
739 * win32-low.cc (windows_nat::handle_access_violation): New
740 function.
741
e2275c6e
SM
7422020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
743
744 * win32-low.cc (get_child_debug_event): Fix format string warning.
745
73944e9f
TT
7462020-04-13 Tom Tromey <tom@tromey.com>
747
748 * server.h (gdb_fildes_t): Remove typedef.
749 * remote-utils.c (remote_desc, list_desc): Now int.
750 (INVALID_DESCRIPTOR): Remove.
751 (gdb_connected, remote_close)
752 (check_remote_input_interrupt_request): Update.
753 * utils.h (pfildes): Don't declare.
754 * utils.c (pfildes): Remove.
755
55d7aec8
TT
7562020-04-13 Tom Tromey <tom@tromey.com>
757
758 * server.h (handle_serial_event, handle_target_event): Update.
759 * server.c: Don't call initialize_event_loop.
760 (keep_processing_events): New global.
761 (handle_serial_event): Return void. Set keep_processing_events.
762 (handle_target_event): Return void.
763 (start_event_loop): Move from event-loop.c. Rewrite.
764 * remote-utils.c (handle_accept_event): Return void.
765 (reset_readchar): Use delete_timer.
766 (process_remaining): Return void.
767 (reschedule): Use create_timer.
768 * event-loop.h: Remove.
769 * event-loop.cc: Remove.
770 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
771
e487f994
TT
7722020-04-13 Tom Tromey <tom@tromey.com>
773
774 * server.c (invoke_async_signal_handlers)
775 (check_async_event_handlers, flush_streams, gdb_select): New
776 functions.
777
8ae8e197
TT
7782020-04-13 Tom Tromey <tom@tromey.com>
779
780 * configure: Rebuild.
781 * config.in: Rebuild.
782
360ad8b3
TT
7832020-04-08 Tom Tromey <tromey@adacore.com>
784
785 PR gdb/22992
786 * win32-low.c (child_continue): Call matching_pending_stop.
787 (get_child_debug_event): Call fetch_pending_stop. Push pending
788 stop when needed.
789
523d4f80
TT
7902020-04-08 Tom Tromey <tromey@adacore.com>
791
792 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
793 (win32_process_target::supports_stopped_by_sw_breakpoint):
794 Declare.
795 * win32-low.c (win32_supports_z_point_type): Always handle
796 Z_PACKET_SW_BP.
797 (win32_insert_point): Call insert_memory_breakpoint when needed.
798 (win32_remove_point): Call remove_memory_breakpoint when needed.
799 (win32_process_target::stopped_by_sw_breakpoint)
800 (win32_process_target::supports_stopped_by_sw_breakpoint): New
801 methods.
802 (win32_target_ops): Update.
803 (maybe_adjust_pc): New function.
804 (win32_wait): Call maybe_adjust_pc.
805
e54e5929
TT
8062020-04-08 Tom Tromey <tromey@adacore.com>
807
808 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
809 field.
810 * win32-i386-low.c (the_low_target): Update.
811 * win32-arm-low.c (the_low_target): Update.
812
d6225aff
TT
8132020-04-08 Tom Tromey <tromey@adacore.com>
814
815 * win32-low.h (win32_process_target::read_pc)
816 (win32_process_target::write_pc): Declare.
817 * win32-low.c (win32_process_target::read_pc)
818 (win32_process_target::write_pc): New methods.
819 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
820 functions.
821 (the_low_target): Update.
822 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
823 functions.
824 (the_low_target): Update.
825
2c1d95e8
TT
8262020-04-08 Tom Tromey <tromey@adacore.com>
827
828 * win32-low.c (win32_kill, get_child_debug_event): Use
829 wait_for_debug_event.
830
e758e19c
TT
8312020-04-08 Tom Tromey <tromey@adacore.com>
832
833 * win32-low.c (child_continue): Call continue_last_debug_event.
834
8d30e395
TT
8352020-04-08 Tom Tromey <tromey@adacore.com>
836
837 * win32-low.c (handle_exception): Remove.
838 (windows_nat::handle_ms_vc_exception): New function.
839 (get_child_debug_event): Add "continue_status" parameter.
840 Update.
841 (win32_wait): Update.
842
a816ba18
TT
8432020-04-08 Tom Tromey <tromey@adacore.com>
844
845 * win32-low.c (windows_nat::handle_load_dll): Rename from
846 handle_load_dll. No longer static.
847 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
848 No longer static.
849
d41b524f
TT
8502020-04-08 Tom Tromey <tromey@adacore.com>
851
852 * win32-low.c (handle_output_debug_string): Add parameter. Change
853 return type.
854 (win32_kill, get_child_debug_event): Update.
855
3c76026d
TT
8562020-04-08 Tom Tromey <tromey@adacore.com>
857
858 * win32-low.c (current_process_handle, current_process_id)
859 (main_thread_id, last_sig, current_event, siginfo_er): Move to
860 nat/windows-nat.c.
861
9d8679cc
TT
8622020-04-08 Tom Tromey <tromey@adacore.com>
863
864 * win32-low.c (get_image_name): Remove.
865 (handle_load_dll): Update.
866
28688adf
TT
8672020-04-08 Tom Tromey <tromey@adacore.com>
868
869 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
870 No longer static. Change parameters.
871 (child_add_thread, child_fetch_inferior_registers)
872 (child_store_inferior_registers, win32_resume)
873 (win32_get_tib_address): Update.
874
4834dad0
TT
8752020-04-08 Tom Tromey <tromey@adacore.com>
876
877 * win32-low.h (struct win32_target_ops): Use qualified names where
878 needed.
879 * win32-i386-low.c: Add "using namespace".
880 * win32-low.c: Add "using namespace".
881 * win32-arm-low.c: Add "using namespace".
882
65bafd5b
TT
8832020-04-08 Tom Tromey <tromey@adacore.com>
884
885 * win32-low.c (delete_thread_info): Don't call CloseHandle.
886
98a03287
TT
8872020-04-08 Tom Tromey <tromey@adacore.com>
888
889 * win32-low.c (win32_require_context, suspend_one_thread): Use
890 windows_thread_info::suspend.
891 (continue_one_thread): Use windows_thread_info::resume.
892 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
893
62fe396b
TT
8942020-04-08 Tom Tromey <tromey@adacore.com>
895
896 * win32-i386-low.c (update_debug_registers)
897 (i386_prepare_to_resume, i386_thread_added): Update.
898
e9534bd2
TT
8992020-04-08 Tom Tromey <tromey@adacore.com>
900
901 * win32-low.c (child_add_thread): Use new.
902 (delete_thread_info): Use delete.
903
ae1f8880
TT
9042020-04-08 Tom Tromey <tromey@adacore.com>
905
906 * win32-low.h (struct windows_thread_info): Remove.
907
e56f8ccb
TT
9082020-04-08 Tom Tromey <tromey@adacore.com>
909
910 * win32-low.h (struct windows_thread_info): Rename from
911 win32_thread_info. Remove typedef.
912 (struct win32_target_ops, win32_require_context): Update.
913 * win32-low.c (win32_get_thread_context)
914 (win32_set_thread_context, win32_prepare_to_resume)
915 (win32_require_context, thread_rec, child_add_thread)
916 (delete_thread_info, continue_one_thread)
917 (child_fetch_inferior_registers, child_store_inferior_registers)
918 (win32_resume, suspend_one_thread, win32_get_tib_address):
919 Update.
920 * win32-i386-low.c (update_debug_registers)
921 (win32_get_current_dr, i386_get_thread_context)
922 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
923 (i386_fetch_inferior_register, i386_store_inferior_register):
924 Update.
925 * win32-arm-low.c (arm_get_thread_context)
926 (arm_fetch_inferior_register, arm_store_inferior_register):
927 Update.
928
0dd7b52e
TBA
9292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
930
931 * linux-low.h (struct linux_target_ops): Remove.
932 (the_low_target): Remove.
933 * linux-x86-low.cc (the_low_target): Remove.
934 * linux-aarch64-low.cc (the_low_target): Ditto.
935 * linux-arm-low.cc (the_low_target): Ditto.
936 * linux-bfin-low.cc (the_low_target): Ditto.
937 * linux-cris-low.cc (the_low_target): Ditto.
938 * linux-crisv32-low.cc (the_low_target): Ditto.
939 * linux-ia64-low.cc (the_low_target): Ditto.
940 * linux-m32r-low.cc (the_low_target): Ditto.
941 * linux-m68k-low.cc (the_low_target): Ditto.
942 * linux-mips-low.cc (the_low_target): Ditto.
943 * linux-nios2-low.cc (the_low_target): Ditto.
944 * linux-ppc-low.cc (the_low_target): Ditto.
945 * linux-riscv-low.cc (the_low_target): Ditto.
946 * linux-s390-low.cc (the_low_target): Ditto.
947 * linux-sh-low.cc (the_low_target): Ditto.
948 * linux-sparc-low.cc (the_low_target): Ditto.
949 * linux-tic6x-low.cc (the_low_target): Ditto.
950 * linux-tile-low.cc (the_low_target): Ditto.
951 * linux-xtensa-low.cc (the_low_target): Ditto.
952
fc5ecdb6
TBA
9532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
954
955 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
956 linux target define the op by overriding the declaration in
957 process_stratum_target.
958
959 * linux-low.h (struct linux_target_ops): Remove the op.
960 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
961 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
962 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
963 (x86_get_ipa_tdesc_idx): Turn into...
964 (x86_target::get_ipa_tdesc_idx): ...this.
965 (the_low_target): Remove the op field.
966 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
967 (ppc_get_ipa_tdesc_idx): Turn into...
968 (ppc_target::get_ipa_tdesc_idx): ...this.
969 (the_low_target): Remove the op field.
970 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
971 (s390_get_ipa_tdesc_idx): Turn into...
972 (s390_target::get_ipa_tdesc_idx): ...this.
973 (the_low_target): Remove the op field.
974
9eedd27d
TBA
9752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
976
977 Turn the 'get_syscall_trapinfo' linux target op into a method
978 of process_stratum_target.
979
980 * linux-low.h (struct linux_target_ops): Remove the op.
981 (class linux_process_target) <get_syscall_trapinfo>
982 <gdb_catch_this_syscall>
983 <low_supports_catch_syscall>
984 <low_get_syscall_trapinfo>: Declare.
985 * linux-low.cc (get_syscall_trapinfo): Turn into...
986 (linux_process_target::get_syscall_trapinfo): ...this.
987 (linux_process_target::low_get_syscall_trapinfo): Define.
988 (gdb_catch_this_syscall_p): Turn into...
989 (linux_process_target::gdb_catch_this_syscall): ...this.
990 (linux_process_target::low_supports_catch_syscall): Define.
991
992 Update the callers below.
993
994 (linux_process_target::wait_1)
995 (linux_process_target::supports_catch_syscall)
996
997 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
998 <low_get_syscall_trapinfo>: Declare.
999 (x86_target::low_supports_catch_syscall): Define.
1000 (x86_get_syscall_trapinfo): Turn into...
1001 (x86_target::low_get_syscall_trapinfo): ...this.
1002 (the_low_target): Remove the op field.
1003 * linux-aarch64-low.cc (class aarch64_target)
1004 <low_supports_catch_syscall>
1005 <low_get_syscall_trapinfo>: Declare.
1006 (aarch64_target::low_supports_catch_syscall): Define.
1007 (aarch64_get_syscall_trapinfo): Turn into...
1008 (aarch64_target::low_get_syscall_trapinfo): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1011 <low_get_syscall_trapinfo>: Declare.
1012 (arm_target::low_supports_catch_syscall): Define.
1013 (arm_get_syscall_trapinfo): Turn into...
1014 (arm_target::low_get_syscall_trapinfo): ...this.
1015 (the_low_target): Remove the op field.
1016 * linux-ppc-low.cc (the_low_target): Remove the op field.
1017 * linux-s390-low.cc (the_low_target): Remove the op field.
1018
b31cdfa6
TBA
10192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1020
1021 Remove the 'supports_hardware_single_step' linux target op and
1022 override the process_stratum_target's op definition in
1023 linux_process_target to return true.
1024
1025 * linux-low.h (struct linux_target_ops): Remove the op.
1026 (class linux_process_target) <finish_step_over>
1027 <maybe_hw_step>: Declare.
1028 * linux-low.cc (can_hardware_single_step): Remove.
1029 (maybe_hw_step): Turn into...
1030 (linux_process_target::maybe_hw_step): ...this.
1031 (finish_step_over): Turn into...
1032 (linux_process_target::finish_step_over): ...this.
1033 (linux_process_target::supports_hardware_single_step): Update
1034 to return true.
1035
1036 Update the callers below.
1037
1038 (linux_process_target::single_step)
1039 (linux_process_target::resume_one_lwp_throw)
1040
1041 * linux-arm-low.cc (class arm_target)
1042 <supports_hardware_single_step>: Declare.
1043 (arm_supports_hardware_single_step): Turn into...
1044 (arm_target::supports_hardware_single_step): ...this.
1045 (the_low_target): Remove the op field.
1046 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1047 (the_low_target): Remove the op field.
1048 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1049 Remove.
1050 (the_low_target): Remove the op field.
1051 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1052 (the_low_target): Remove the op field.
1053 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1054 (the_low_target): Remove the op field.
1055 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1056 (the_low_target): Remove the op field.
1057 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1058 (the_low_target): Remove the op field.
1059 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1060 (the_low_target): Remove the op field.
1061 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1062 (the_low_target): Remove the op field.
1063 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1064 (the_low_target): Remove the op field.
1065 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1066 (the_low_target): Remove the op field.
1067 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1068 (the_low_target): Remove the op field.
1069 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1070 Remove.
1071 (the_low_target): Remove the op field.
1072
9cfd8715
TBA
10732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1074
1075 Turn the 'supports_range_stepping' linux target op into a method
1076 of linux_process_target.
1077
1078 * linux-low.h (struct linux_target_ops): Remove the op.
1079 (class linux_process_target) <low_supports_range_stepping>: Declare.
1080 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1081 Define.
1082 (linux_process_target::supports_range_stepping): Update the call
1083 site.
1084 * linux-x86-low.cc (class x86_target)
1085 <low_supports_range_stepping>: Declare.
1086 (x86_supports_range_stepping): Turn into...
1087 (x86_target::low_supports_range_stepping): ...this.
1088 (the_low_target): Remove the op field.
1089 * linux-aarch64-low.cc (class aarch64_target)
1090 <low_supports_range_stepping>: Declare.
1091 (aarch64_supports_range_stepping): Turn into...
1092 (aarch64_target::low_supports_range_stepping): ...this.
1093 (the_low_target): Remove the op field.
1094 * linux-arm-low.cc (the_low_target): Remove the op field.
1095 * linux-bfin-low.cc (the_low_target): Ditto.
1096 * linux-crisv32-low.cc (the_low_target): Ditto.
1097 * linux-m32r-low.cc (the_low_target): Ditto.
1098 * linux-m68k-low.cc (the_low_target): Ditto.
1099 * linux-ppc-low.cc (the_low_target): Ditto.
1100 * linux-s390-low.cc (the_low_target): Ditto.
1101 * linux-sh-low.cc (the_low_target): Ditto.
1102 * linux-tic6x-low.cc (the_low_target): Ditto.
1103 * linux-tile-low.cc (the_low_target): Ditto.
1104 * linux-xtensa-low.cc (the_low_target): Ditto.
1105
ab64c999
TBA
11062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1107
1108 Remove the 'emit_ops' linux target ops and let the concrete
1109 linux target define the op by overriding the declaration of
1110 process_stratum_target.
1111
1112 * linux-low.h (struct linux_target_ops): Remove the op.
1113 (class linux_process_target) <emit_ops>: Remove.
1114 * linux-low.cc (linux_process_target::emit_ops): Remove.
1115 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1116 (x86_emit_ops): Turn into...
1117 (x86_target::emit_ops): ...this.
1118 (the_low_target): Remove the op field.
1119 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1120 (aarch64_emit_ops): Turn into...
1121 (aarch64_target::emit_ops): ...this.
1122 (the_low_target): Remove the op field.
1123 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1124 (ppc_emit_ops): Turn into...
1125 (ppc_target::emit_ops): ...this.
1126 (the_low_target): Remove the op field.
1127 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1128 (s390_emit_ops): Turn into...
1129 (s390_target::emit_ops): ...this.
1130 (the_low_target): Remove the op field.
1131 * linux-arm-low.cc (the_low_target): Remove the op field.
1132 * linux-bfin-low.cc (the_low_target): Ditto.
1133 * linux-crisv32-low.cc (the_low_target): Ditto.
1134 * linux-m32r-low.cc (the_low_target): Ditto.
1135 * linux-m68k-low.cc (the_low_target): Ditto.
1136 * linux-sh-low.cc (the_low_target): Ditto.
1137 * linux-tic6x-low.cc (the_low_target): Ditto.
1138 * linux-tile-low.cc (the_low_target): Ditto.
1139 * linux-xtensa-low.cc (the_low_target): Ditto.
1140
809a0c35
TBA
11412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1142
1143 Remove the 'install_fast_tracepoint_jump_pad' and
1144 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1145 concrete linux target define the ops by overriding the declarations
1146 of process_stratum_target.
1147
1148 * linux-low.h (struct linux_target_ops): Remove the ops.
1149 (class linux_process_target) <supports_fast_tracepoints>
1150 <install_fast_tracepoint_jump_pad>
1151 <get_min_fast_tracepoint_insn_len>: Remove.
1152 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1153 (linux_process_target::install_fast_tracepoint_jump_pad)
1154 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1155 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1156 <install_fast_tracepoint_jump_pad>
1157 <get_min_fast_tracepoint_insn_len>: Declare.
1158 (x86_target::supports_fast_tracepoints): Define.
1159 (x86_install_fast_tracepoint_jump_pad): Turn into...
1160 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1161 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1162 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1163 (the_low_target): Remove the op fields.
1164 * linux-aarch64-low.cc (class aarch64_target)
1165 <supports_fast_tracepoints>
1166 <install_fast_tracepoint_jump_pad>
1167 <get_min_fast_tracepoint_insn_len>: Declare.
1168 (aarch64_target::supports_fast_tracepoints): Define.
1169 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1170 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1171 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1172 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1173 (the_low_target): Remove the op fields.
1174 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1175 <install_fast_tracepoint_jump_pad>
1176 <get_min_fast_tracepoint_insn_len>: Declare.
1177 (ppc_target::supports_fast_tracepoints): Define.
1178 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1179 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1180 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1181 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1182 (the_low_target): Remove the op fields.
1183 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1184 <install_fast_tracepoint_jump_pad>
1185 <get_min_fast_tracepoint_insn_len>: Declare.
1186 (s390_target::supports_fast_tracepoints): Define.
1187 (s390_install_fast_tracepoint_jump_pad): Turn into...
1188 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1189 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1190 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1191 (the_low_target): Remove the op fields.
1192 * linux-arm-low.cc (the_low_target): Remove the op fields.
1193 * linux-bfin-low.cc (the_low_target): Ditto.
1194 * linux-crisv32-low.cc (the_low_target): Ditto.
1195 * linux-m32r-low.cc (the_low_target): Ditto.
1196 * linux-m68k-low.cc (the_low_target): Ditto.
1197 * linux-sh-low.cc (the_low_target): Ditto.
1198 * linux-tic6x-low.cc (the_low_target): Ditto.
1199 * linux-tile-low.cc (the_low_target): Ditto.
1200 * linux-xtensa-low.cc (the_low_target): Ditto.
1201
13e567af
TBA
12022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1203
1204 Turn the 'get_thread_area' linux target op into a method of
1205 process_stratum_target.
1206
1207 * linux-low.h (struct linux_target_ops): Remove the op.
1208 (class linux_process_target) <stuck_in_jump_pad>
1209 <linux_fast_tracepoint_collecting>
1210 <low_get_thread_area>: Declare.
1211 * linux-low.cc (supports_fast_tracepoints): Remove.
1212 (linux_fast_tracepoint_collecting): Turn into...
1213 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1214 (linux_process_target::low_get_thread_area): Define.
1215 (stuck_in_jump_pad_callback): Turn into...
1216 (linux_process_target::stuck_in_jump_pad): ...this.
1217
1218 Update the caller below.
1219
1220 (linux_process_target::stabilize_threads)
1221
1222 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1223 Declare.
1224 (x86_get_thread_area): Turn into...
1225 (x86_target::low_get_thread_area): ...this.
1226 (the_low_target): Remove the op field.
1227 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1228 Declare.
1229 (aarch64_get_thread_area): Turn into...
1230 (aarch64_target::low_get_thread_area): ...this.
1231 (the_low_target): Remove the op field.
1232 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1233 Declare.
1234 (ppc_get_thread_area): Turn into...
1235 (ppc_target::low_get_thread_area): ...this.
1236 (the_low_target): Remove the op field.
1237 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1238 Declare.
1239 (s390_get_thread_area): Turn into...
1240 (s390_target::low_get_thread_area): ...this.
1241 (the_low_target): Remove the op field.
1242 * linux-arm-low.cc (the_low_target): Remove the op field.
1243 * linux-bfin-low.cc (the_low_target): Ditto.
1244 * linux-crisv32-low.cc (the_low_target): Ditto.
1245 * linux-m32r-low.cc (the_low_target): Ditto.
1246 * linux-m68k-low.cc (the_low_target): Ditto.
1247 * linux-sh-low.cc (the_low_target): Ditto.
1248 * linux-tic6x-low.cc (the_low_target): Ditto.
1249 * linux-tile-low.cc (the_low_target): Ditto.
1250 * linux-xtensa-low.cc (the_low_target): Ditto.
1251
47f70aa7
TBA
12522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1253
1254 Remote the 'supports_tracepoints' linux target op and let the
1255 concrete linux target define it by overriding the op declared in
1256 process_stratum_target.
1257
1258 * linux-low.h (struct linux_target_ops): Remove the op.
1259 (class linux_process_target) <supports_tracepoints>: Remove.
1260 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1261 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1262 Declare.
1263 (x86_supports_tracepoints): Turn into...
1264 (x86_target::supports_tracepoints): ...this.
1265 (the_low_target): Remove the op field.
1266 * linux-aarch64-low.cc (class aarch64_target)
1267 <supports_tracepoints>: Declare.
1268 (aarch64_supports_tracepoints): Turn into...
1269 (aarch64_target::supports_tracepoints): ...this.
1270 (the_low_target): Remove the op field.
1271 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1272 Declare.
1273 (ppc_supports_tracepoints): Turn into...
1274 (ppc_target::supports_tracepoints): ...this.
1275 (the_low_target): Remove the op field.
1276 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1277 Declare.
1278 (s390_supports_tracepoints): Turn into...
1279 (s390_target::supports_tracepoints): ...this.
1280 (the_low_target): Remove the op field.
1281 * linux-arm-low.cc (the_low_target): Remove the op field.
1282 * linux-bfin-low.cc (the_low_target): Ditto.
1283 * linux-crisv32-low.cc (the_low_target): Ditto.
1284 * linux-m32r-low.cc (the_low_target): Ditto.
1285 * linux-m68k-low.cc (the_low_target): Ditto.
1286 * linux-sh-low.cc (the_low_target): Ditto.
1287 * linux-tic6x-low.cc (the_low_target): Ditto.
1288 * linux-tile-low.cc (the_low_target): Ditto.
1289 * linux-xtensa-low.cc (the_low_target): Ditto.
1290
a5b5da92
TBA
12912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1292
1293 Remove the 'process_qsupported' linux target op and let a concrete
1294 linux target define the op by overriding the op declaration in
1295 process_stratum_target.
1296
1297 * linux-low.h (struct linux_target_ops): Remove the op.
1298 (class linux_process_target) <process_qsupported>: Remove.
1299 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1300 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1301 (x86_linux_process_qsupported): Turn into...
1302 (x86_target::process_qsupported): ...this.
1303 (the_low_target): Remove the op field.
1304 * linux-aarch64-low.cc (the_low_target): Remove the op
1305 field.
1306 * linux-arm-low.cc (the_low_target): Ditto.
1307 * linux-bfin-low.cc (the_low_target): Ditto.
1308 * linux-crisv32-low.cc (the_low_target): Ditto.
1309 * linux-m32r-low.cc (the_low_target): Ditto.
1310 * linux-m68k-low.cc (the_low_target): Ditto.
1311 * linux-ppc-low.cc (the_low_target): Ditto.
1312 * linux-s390-low.cc (the_low_target): Ditto.
1313 * linux-sh-low.cc (the_low_target): Ditto.
1314 * linux-tic6x-low.cc (the_low_target): Ditto.
1315 * linux-tile-low.cc (the_low_target): Ditto.
1316 * linux-xtensa-low.cc (the_low_target): Ditto.
1317
d7599cc0
TBA
13182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1319
1320 Turn the 'prepare_to_resume' linux target op into a method of
1321 linux_process_target.
1322
1323 * linux-low.h (struct linux_target_ops): Remove the op.
1324 (class linux_process_target) <low_prepare_to_resume>: Declare.
1325 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1326 Define.
1327
1328 Update the callers below:
1329
1330 (linux_process_target::resume_one_lwp_throw)
1331 (linux_process_target::low_prepare_to_resume)
1332
1333 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1334 Declare.
1335 (x86_target::low_prepare_to_resume): Define.
1336 (the_low_target): Remove the op field.
1337 * linux-aarch64-low.cc (class aarch64_target)
1338 <low_prepare_to_resume>: Declare.
1339 (aarch64_target::low_prepare_to_resume): Define.
1340 (the_low_target): Remove the op field.
1341 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1342 Declare.
1343 (arm_prepare_to_resume): Turn into...
1344 (arm_target::low_prepare_to_resume): ...this.
1345 (the_low_target): Remove the op field.
1346 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1347 Declare.
1348 (mips_linux_prepare_to_resume): Turn into...
1349 (mips_target::low_prepare_to_resume): ...this.
1350 (the_low_target): Remove the op field.
1351 * linux-bfin-low.cc (the_low_target): Remove the op field.
1352 * linux-crisv32-low.cc (the_low_target): Ditto.
1353 * linux-m32r-low.cc (the_low_target): Ditto.
1354 * linux-m68k-low.cc (the_low_target): Ditto.
1355 * linux-ppc-low.cc (the_low_target): Ditto.
1356 * linux-s390-low.cc (the_low_target): Ditto.
1357 * linux-sh-low.cc (the_low_target): Ditto.
1358 * linux-tic6x-low.cc (the_low_target): Ditto.
1359 * linux-tile-low.cc (the_low_target): Ditto.
1360 * linux-xtensa-low.cc (the_low_target): Ditto.
1361
fd000fb3
TBA
13622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1363
1364 Turn the 'new_process', 'delete_process', 'new_thread',
1365 'delete_thread', and 'new_fork' linux target ops into methods
1366 of linux_process_target.
1367
1368 * linux-low.h (struct linux_target_ops): Remove the ops.
1369 (class linux_process_target) <add_linux_process>
1370 <add_lwp>
1371 <delete_lwp>
1372 <attach_lwp>
1373 <detach_one_lwp>
1374 <check_zombie_leaders>
1375 <filter_exit_event>
1376 <low_new_process>
1377 <low_delete_process>
1378 <low_new_thread>
1379 <low_delete_thread>
1380 <low_new_fork>: Declare.
1381 * linux-low.cc (delete_lwp): Turn into...
1382 (linux_process_target::delete_lwp): ...this.
1383 (linux_process_target::low_delete_thread): Define.
1384 (linux_add_process): Turn into...
1385 (linux_process_target::add_linux_process): ...this.
1386 (linux_process_target::low_new_process): Define.
1387 (linux_process_target::low_delete_process): Define.
1388 (linux_process_target::low_new_fork): Define.
1389 (add_lwp): Turn into...
1390 (linux_process_target::add_lwp): ...this.
1391 (linux_process_target::low_new_thread): Define.
1392 (linux_attach_lwp): Turn into...
1393 (linux_process_target::attach_lwp): ...this.
1394 (linux_detach_one_lwp): Turn into...
1395 (linux_process_target::detach_one_lwp): ...this.
1396 (linux_detach_lwp_callback): Remove and inline...
1397 (linux_process_target::detach): ...here.
1398 (check_zombie_leaders): Turn into...
1399 (linux_process_target::check_zombie_leaders): ...this.
1400 (filter_exit_event): Turn into...
1401 (linux_process_target::filter_exit_event): ...this.
1402
1403 Update the callers below.
1404
1405 (linux_process_target::handle_extended_wait)
1406 (linux_process_target::create_inferior)
1407 (attach_proc_task_lwp_callback)
1408 (linux_process_target::attach)
1409 (linux_process_target::detach)
1410 (linux_process_target::mourn)
1411 * thread-db.cc (attach_thread)
1412
1413 * linux-x86-low.cc (class x86_target) <low_new_process>
1414 <low_delete_process>
1415 <low_new_thread>
1416 <low_delete_thread>
1417 <low_new_fork>: Declare.
1418 (x86_linux_new_process): Turn into...
1419 (x86_target::low_new_process): ...this.
1420 (x86_linux_delete_process): Turn into...
1421 (x86_target::low_delete_process): ...this.
1422 (x86_target::low_new_thread): Define.
1423 (x86_target::low_delete_thread): Define.
1424 (x86_linux_new_fork): Turn into...
1425 (x86_target::low_new_fork): ...this.
1426 (the_low_target): Remove the op fields.
1427 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1428 <low_delete_process>
1429 <low_new_thread>
1430 <low_delete_thread>
1431 <low_new_fork>: Declare.
1432 (aarch64_linux_new_process): Turn into...
1433 (aarch64_target::low_new_process): ...this.
1434 (aarch64_linux_delete_process): Turn into...
1435 (aarch64_target::low_delete_process): ...this.
1436 (aarch64_target::low_new_thread): Define.
1437 (aarch64_target::low_delete_thread): Define.
1438 (aarch64_linux_new_fork): Turn into...
1439 (aarch64_target::low_new_fork): ...this.
1440 (the_low_target): Remove the op fields.
1441 * linux-arm-low.cc (class arm_target) <low_new_process>
1442 <low_delete_process>
1443 <low_new_thread>
1444 <low_delete_thread>
1445 <low_new_fork>: Declare.
1446 (arm_new_process): Turn into...
1447 (arm_target::low_new_process): ...this.
1448 (arm_delete_process): Turn into...
1449 (arm_target::low_delete_process): ...this.
1450 (arm_new_thread): Turn into...
1451 (arm_target::low_new_thread): ...this.
1452 (arm_delete_thread): Turn into...
1453 (arm_target::low_delete_thread): ...this.
1454 (arm_new_fork): Turn into...
1455 (arm_target::low_new_fork): ...this.
1456 (the_low_target): Remove the op fields.
1457 * linux-mips-low.cc (class mips_target) <low_new_process>
1458 <low_delete_process>
1459 <low_new_thread>
1460 <low_delete_thread>
1461 <low_new_fork>: Declare.
1462 (mips_linux_new_process): Turn into...
1463 (mips_target::low_new_process): ...this.
1464 (mips_linux_delete_process): Turn into...
1465 (mips_target::low_delete_process): ...this.
1466 (mips_linux_new_thread): Turn into...
1467 (mips_target::low_new_thread): ...this.
1468 (mips_linux_delete_thread): Turn into...
1469 (mips_target::low_delete_thread): ...this.
1470 (mips_linux_new_fork): Turn into...
1471 (mips_target::low_new_fork): ...this.
1472 (the_low_target): Remove the op fields.
1473 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1474 * linux-crisv32-low.cc (the_low_target): Ditto.
1475 * linux-m32r-low.cc (the_low_target): Ditto.
1476 * linux-m68k-low.cc (the_low_target): Ditto.
1477 * linux-ppc-low.cc (the_low_target): Ditto.
1478 * linux-s390-low.cc (the_low_target): Ditto.
1479 * linux-sh-low.cc (the_low_target): Ditto.
1480 * linux-tic6x-low.cc (the_low_target): Ditto.
1481 * linux-tile-low.cc (the_low_target): Ditto.
1482 * linux-xtensa-low.cc (the_low_target): Ditto.
1483
cb63de7c
TBA
14842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1485
1486 Turn the 'siginfo_fixup' linux target op into a method of
1487 linux_process_target.
1488
1489 * linux-low.h (struct linux_target_ops): Remove the op.
1490 (class linux_process_target) <siginfo_fixup>
1491 <low_siginfo_fixup>: Declare.
1492 * linux-low.cc (siginfo_fixup): Turn into...
1493 (linux_process_target::siginfo_fixup): ...this.
1494 (linux_process_target::low_siginfo_fixup): Define.
1495 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1496 (x86_siginfo_fixup): Turn into...
1497 (x86_target::low_siginfo_fixup): ...this.
1498 (the_low_target): Remove the op field.
1499 * linux-aarch64-low.cc (class aarch64_target):
1500 <low_siginfo_fixup>: Declare.
1501 (aarch64_linux_siginfo_fixup): Turn into...
1502 (aarch64_target::low_siginfo_fixup): ...this.
1503 (the_low_target): Remove the op field.
1504 * linux-arm-low.cc (the_low_target): Remove the op field.
1505 * linux-bfin-low.cc (the_low_target): Ditto.
1506 * linux-crisv32-low.cc (the_low_target): Ditto.
1507 * linux-m32r-low.cc (the_low_target): Ditto.
1508 * linux-m68k-low.cc (the_low_target): Ditto.
1509 * linux-mips-low.cc (the_low_target): Ditto.
1510 * linux-ppc-low.cc (the_low_target): Ditto.
1511 * linux-s390-low.cc (the_low_target): Ditto.
1512 * linux-sh-low.cc (the_low_target): Ditto.
1513 * linux-tic6x-low.cc (the_low_target): Ditto.
1514 * linux-tile-low.cc (the_low_target): Ditto.
1515 * linux-xtensa-low.cc (the_low_target): Ditto.
1516
b35db733
TBA
15172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1518
1519 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1520 linux target ops into methods of linux_process_target.
1521
1522 * linux-low.h (struct linux_target_ops): Remove the ops.
1523 (class linux_process_target) <low_collect_ptrace_register>
1524 <low_store_ptrace_register>: Declare.
1525 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1526 (linux_process_target::low_supply_ptrace_register): Define.
1527
1528 Update the callers below.
1529
1530 (linux_process_target::fetch_register)
1531 (linux_process_target::store_register)
1532
1533 * linux-x86-low.cc (the_low_target): Remove the op fields.
1534 * linux-aarch64-low.cc (the_low_target): Ditto.
1535 * linux-arm-low.cc (the_low_target): Ditto.
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-sh-low.cc (the_low_target): Ditto.
1541 * linux-sparc-low.cc (the_low_target): Ditto.
1542 * linux-tic6x-low.cc (the_low_target): Ditto.
1543 * linux-tile-low.cc (the_low_target): Ditto.
1544 * linux-xtensa-low.cc (the_low_target): Ditto.
1545 * linux-mips-low.cc (class mips_target)
1546 <low_collect_ptrace_register>
1547 <low_supply_ptrace_register>: Declare.
1548 (mips_collect_ptrace_register): Turn into ...
1549 (mips_target::low_collect_ptrace_register): ...this.
1550 (mips_supply_ptrace_register): Turn into...
1551 (mips_target::low_supply_ptrace_register): ...this.
1552 (the_low_target): Remove the op fields.
1553 * linux-ppc-low.cc (class ppc_target)
1554 <low_collect_ptrace_register>
1555 <low_supply_ptrace_register>: Declare.
1556 (ppc_collect_ptrace_register): Turn into ...
1557 (ppc_target::low_collect_ptrace_register): ...this.
1558 (ppc_supply_ptrace_register): Turn into ...
1559 (ppc_target::low_supply_ptrace_register): ...this.
1560 (ppc_fill_gregset): Update for the calls to
1561 low_collect_ptrace_register.
1562 (the_low_target): Remove the op fields.
1563 * linux-s390-low.cc (class s390_target)
1564 <low_collect_ptrace_register>
1565 <low_supply_ptrace_register>: Declare.
1566 (s390_collect_ptrace_register): Turn into ...
1567 (s390_target::low_collect_ptrace_register): ...this.
1568 (s390_supply_ptrace_register): Turn into ...
1569 (s390_target::low_supply_ptrace_register): ...this.
1570 (s390_fill_gregset): Update for the calls to
1571 low_collect_ptrace_register.
1572 (the_low_target): Remove the op fields.
1573
ac1bbaca
TBA
15742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1575
1576 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1577 target ops into methods of linux_process_target.
1578
1579 * linux-low.h (struct linux_target_ops): Remove the ops.
1580 (class linux_process_target) <check_stopped_by_watchpoint>
1581 <low_stopped_by_watchpoint>
1582 <low_stopped_data_address>: Declare.
1583 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1584 (linux_process_target::check_stopped_by_watchpoint): ...this.
1585 (linux_process_target::low_stopped_by_watchpoint): Define.
1586 (linux_process_target::low_stopped_data_address): Define.
1587 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1588 <low_stopped_data_address>: Declare.
1589 (x86_stopped_by_watchpoint): Turn into...
1590 (x86_target::low_stopped_by_watchpoint): ...this.
1591 (x86_stopped_data_address): Turn into...
1592 (x86_target::low_stopped_data_address): ...this.
1593 (the_low_target): Remove the op fields.
1594 * linux-aarch64-low.cc (class aarch64_target)
1595 <low_stopped_by_watchpoint>
1596 <low_stopped_data_address>: Declare.
1597 (aarch64_stopped_by_watchpoint): Turn into...
1598 (aarch64_target::low_stopped_by_watchpoint): ...this.
1599 (aarch64_stopped_data_address): Turn into...
1600 (aarch64_target::low_stopped_data_address): ...this.
1601 (the_low_target): Remove the op fields.
1602 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1603 <low_stopped_data_address>: Declare.
1604 (arm_stopped_by_watchpoint): Turn into...
1605 (arm_target::low_stopped_by_watchpoint): ...this.
1606 (arm_stopped_data_address): Turn into...
1607 (arm_target::low_stopped_data_address): ...this.
1608 (the_low_target): Remove the op fields.
1609 * linux-crisv32-low.cc (class crisv32_target)
1610 <low_stopped_by_watchpoint>
1611 <low_stopped_data_address>: Declare.
1612 (cris_stopped_by_watchpoint): Turn into...
1613 (crisv32_target::low_stopped_by_watchpoint): ...this.
1614 (cris_stopped_data_address): Turn into...
1615 (crisv32_target::low_stopped_data_address): ...this.
1616 (the_low_target): Remove the op fields.
1617 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1618 <low_stopped_data_address>: Declare.
1619 (mips_stopped_by_watchpoint): Turn into...
1620 (mips_target::low_stopped_by_watchpoint): ...this.
1621 (mips_stopped_data_address): Turn into...
1622 (mips_target::low_stopped_data_address): ...this.
1623 (the_low_target): Remove the op fields.
1624 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1625 * linux-m32r-low.cc (the_low_target): Ditto.
1626 * linux-m68k-low.cc (the_low_target): Ditto.
1627 * linux-ppc-low.cc (the_low_target): Ditto.
1628 * linux-s390-low.cc (the_low_target): Ditto.
1629 * linux-sh-low.cc (the_low_target): Ditto.
1630 * linux-sparc-low.cc (the_low_target): Ditto.
1631 * linux-tic6x-low.cc (the_low_target): Ditto.
1632 * linux-tile-low.cc (the_low_target): Ditto.
1633 * linux-xtensa-low.cc (the_low_target): Ditto.
1634
9db9aa23
TBA
16352020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1636
1637 Turn the 'insert_point' and 'remove_point' linux target ops into
1638 methods of linux_process_target.
1639
1640 * linux-low.h (struct linux_target_ops): Remove the ops.
1641 (class linux_process_target) <low_insert_point>
1642 <low_remove_point>: Declare.
1643 * linux-low.cc (linux_process_target::low_insert_point)
1644 (linux_process_target::low_remove_point): Define.
1645 (linux_process_target::insert_point)
1646 (linux_process_target::remove_point): Update for calls to
1647 low_insert_point and low_remove_point.
1648 * linux-x86-low.cc (class x86_target) <low_insert_point>
1649 <low_remove_point>: Declare.
1650 (x86_insert_point): Turn into...
1651 (x86_target::low_insert_point): ...this.
1652 (x86_remove_point): Turn into...
1653 (x86_target::low_remove_point): ...this.
1654 (the_low_target): Remove the op fields.
1655 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1656 <low_remove_point>: Declare.
1657 (aarch64_insert_point): Turn into...
1658 (aarch64_target::low_insert_point): ...this.
1659 (aarch64_remove_point): Turn into...
1660 (aarch64_target::low_remove_point): ...this.
1661 (the_low_target): Remove the op fields.
1662 * linux-arm-low.cc (class arm_target) <low_insert_point>
1663 <low_remove_point>: Declare.
1664 (arm_insert_point): Turn into...
1665 (arm_target::low_insert_point): ...this.
1666 (arm_remove_point): Turn into...
1667 (arm_target::low_remove_point): ...this.
1668 (the_low_target): Remove the op fields.
1669 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1670 <low_remove_point>: Declare.
1671 (crisv32_insert_point): Turn into...
1672 (crisv32_target::low_insert_point): ...this.
1673 (crisv32_remove_point): Turn into...
1674 (crisv32_target::low_remove_point): ...this.
1675 (the_low_target): Remove the op fields.
1676 * linux-mips-low.cc (class mips_target) <low_insert_point>
1677 <low_remove_point>: Declare.
1678 (mips_insert_point): Turn into...
1679 (mips_target::low_insert_point): ...this.
1680 (mips_remove_point): Turn into...
1681 (mips_target::low_remove_point): ...this.
1682 (the_low_target): Remove the op fields.
1683 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1684 <low_remove_point>: Declare.
1685 (ppc_insert_point): Turn into...
1686 (ppc_target::low_insert_point): ...this.
1687 (ppc_remove_point): Turn into...
1688 (ppc_target::low_remove_point): ...this.
1689 (the_low_target): Remove the op fields.
1690 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1691 * linux-m32r-low.cc (the_low_target): Ditto.
1692 * linux-m68k-low.cc (the_low_target): Ditto.
1693 * linux-s390-low.cc (the_low_target): Ditto.
1694 * linux-sh-low.cc (the_low_target): Ditto.
1695 * linux-sparc-low.cc (the_low_target): Ditto.
1696 * linux-tic6x-low.cc (the_low_target): Ditto.
1697 * linux-tile-low.cc (the_low_target): Ditto.
1698 * linux-xtensa-low.cc (the_low_target): Ditto.
1699
007c9b97
TBA
17002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1701
1702 Remove the 'supports_z_point_type' linux target op and let the
1703 concrete linux target define it by overriding the op declared in
1704 process_stratum_target.
1705
1706 * linux-low.cc (linux_process_target::supports_z_point_type):
1707 Remove.
1708 * linux-low.h (struct linux_target_ops): Remove the op.
1709 (class linux_process_target) <supports_z_point_type>: Remove.
1710 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1711 Declare.
1712 (x86_supports_z_point_type): Turn into...
1713 (x86_target::supports_z_point_type): ...this.
1714 (the_low_target): Remove the op field.
1715 * linux-aarch64-low.cc (class aarch64_target)
1716 <supports_z_point_type>: Declare.
1717 (aarch64_supports_z_point_type): Turn into...
1718 (aarch64_target::supports_z_point_type): ...this.
1719 (the_low_target): Remove the op field.
1720 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1721 Declare.
1722 (arm_supports_z_point_type): Turn into...
1723 (arm_target::supports_z_point_type): ...this.
1724 (the_low_target): Remove the op field.
1725 * linux-crisv32-low.cc (class crisv32_target)
1726 <supports_z_point_type>: Declare.
1727 (cris_supports_z_point_type): Turn into...
1728 (crisv32_target::supports_z_point_type): ...this.
1729 (the_low_target): Remove the op field.
1730 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1731 Declare.
1732 (mips_supports_z_point_type): Turn into...
1733 (mips_target::supports_z_point_type): ...this.
1734 (the_low_target): Remove the op field.
1735 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1736 Declare.
1737 (ppc_supports_z_point_type): Turn into...
1738 (ppc_target::supports_z_point_type): ...this.
1739 (the_low_target): Remove the op field.
1740 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1741 Declare.
1742 (s390_supports_z_point_type): Turn into...
1743 (s390_target::supports_z_point_type): ...this.
1744 (the_low_target): Remove the op field.
1745 * linux-bfin-low.cc (the_low_target): Remove the op field.
1746 * linux-m32r-low.cc (the_low_target): Ditto.
1747 * linux-m68k-low.cc (the_low_target): Ditto.
1748 * linux-sh-low.cc (the_low_target): Ditto.
1749 * linux-sparc-low.cc (the_low_target): Ditto.
1750 * linux-tic6x-low.cc (the_low_target): Ditto.
1751 * linux-tile-low.cc (the_low_target): Ditto.
1752 * linux-xtensa-low.cc (the_low_target): Ditto.
1753
d7146cda
TBA
17542020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1755
1756 Turn the 'breakpoint_at' linux target op into a method of
1757 linux_process_target.
1758
1759 * linux-low.h (struct linux_target_ops): Remove the op.
1760 (class linux_process_target) <low_breakpoint_at>: Declare.
1761
1762 Update the callers below:
1763
1764 * linux-low.cc (linux_process_target::save_stop_reason)
1765 (linux_process_target::thread_still_has_status_pending)
1766 (linux_process_target::wait_1)
1767
1768 * linux-x86-low.cc (class x86_target)
1769 <low_breakpoint_at>: Declare.
1770 (x86_breakpoint_at): Turn into...
1771 (x86_target::low_breakpoint_at): ...this.
1772 (the_low_target): Remove the op field.
1773 * linux-aarch64-low.cc (class aarch64_target)
1774 <low_breakpoint_at>: Declare.
1775 (aarch64_breakpoint_at): Turn into...
1776 (aarch64_target::low_breakpoint_at): ...this.
1777 (the_low_target): Remove the op field.
1778 * linux-arm-low.cc (class arm_target)
1779 <low_breakpoint_at>: Declare.
1780 (arm_target::low_breakpoint_at): Define.
1781 (the_low_target): Remove the op field.
1782 * linux-bfin-low.cc (class bfin_target)
1783 <low_breakpoint_at>: Declare.
1784 (bfin_breakpoint_at): Turn into...
1785 (bfin_target::low_breakpoint_at): ...this.
1786 (the_low_target): Remove the op field.
1787 * linux-cris-low.cc (class cris_target)
1788 <low_breakpoint_at>: Declare.
1789 (cris_breakpoint_at): Turn into...
1790 (cris_target::low_breakpoint_at): ...this.
1791 (the_low_target): Remove the op field.
1792 * linux-crisv32-low.cc (class crisv32_target)
1793 <low_breakpoint_at>: Declare.
1794 (crisv32_breakpoint_at): Turn into...
1795 (crisv32_target::low_breakpoint_at): ...this.
1796 (the_low_target): Remove the op field.
1797 * linux-ia64-low.cc (class ia64_target)
1798 <low_breakpoint_at>: Declare.
1799 (ia64_target::low_breakpoint_at): Define.
1800 * linux-m32r-low.cc (class m32r_target)
1801 <low_breakpoint_at>: Declare.
1802 (m32r_breakpoint_at): Turn into...
1803 (m32r_target::low_breakpoint_at): ...this.
1804 (the_low_target): Remove the op field.
1805 * linux-m68k-low.cc (class m68k_target)
1806 <low_breakpoint_at>: Declare.
1807 (m68k_breakpoint_at): Turn into...
1808 (m68k_target::low_breakpoint_at): ...this.
1809 (the_low_target): Remove the op field.
1810 * linux-mips-low.cc (class mips_target)
1811 <low_breakpoint_at>: Declare.
1812 (mips_breakpoint_at): Turn into...
1813 (mips_target::low_breakpoint_at): ...this.
1814 (the_low_target): Remove the op field.
1815 * linux-nios2-low.cc (class nios2_target)
1816 <low_breakpoint_at>: Declare.
1817 (nios2_breakpoint_at): Turn into...
1818 (nios2_target::low_breakpoint_at): ...this.
1819 (the_low_target): Remove the op field.
1820 * linux-ppc-low.cc (class ppc_target)
1821 <low_breakpoint_at>: Declare.
1822 (ppc_breakpoint_at): Turn into...
1823 (ppc_target::low_breakpoint_at): ...this.
1824 (the_low_target): Remove the op field.
1825 * linux-riscv-low.cc (class riscv_target)
1826 <low_breakpoint_at>: Declare.
1827 (riscv_breakpoint_at): Turn into...
1828 (riscv_target::low_breakpoint_at): ...this.
1829 (the_low_target): Remove the op field.
1830 * linux-s390-low.cc (class s390_target)
1831 <low_breakpoint_at>: Declare.
1832 (s390_breakpoint_at): Turn into...
1833 (s390_target::low_breakpoint_at): ...this.
1834 (the_low_target): Remove the op field.
1835 * linux-sh-low.cc (class sh_target)
1836 <low_breakpoint_at>: Declare.
1837 (sh_breakpoint_at): Turn into...
1838 (sh_target::low_breakpoint_at): ...this.
1839 (the_low_target): Remove the op field.
1840 * linux-sparc-low.cc (class sparc_target)
1841 <low_breakpoint_at>: Declare.
1842 (sparc_breakpoint_at): Turn into...
1843 (sparc_target::low_breakpoint_at): ...this.
1844 (the_low_target): Remove the op field.
1845 * linux-tic6x-low.cc (class tic6x_target)
1846 <low_breakpoint_at>: Declare.
1847 (tic6x_breakpoint_at): Turn into...
1848 (tic6x_target::low_breakpoint_at): ...this.
1849 (the_low_target): Remove the op field.
1850 * linux-tile-low.cc (class tile_target)
1851 <low_breakpoint_at>: Declare.
1852 (tile_breakpoint_at): Turn into...
1853 (tile_target::low_breakpoint_at): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-xtensa-low.cc (class xtensa_target)
1856 <low_breakpoint_at>: Declare.
1857 (xtensa_breakpoint_at): Turn into...
1858 (xtensa_target::low_breakpoint_at): ...this.
1859 (the_low_target): Remove the op field.
1860
d4807ea2
TBA
18612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1862
1863 Turn the 'decr_pc_after_break' linux_target_ops field into
1864 a method of linux_process_target.
1865
1866 * linux-low.h (struct linux_target_ops)
1867 <decr_pc_after_break>: Remove.
1868 (class linux_process_target) <low_decr_pc_after_break>: New method
1869 declaration.
1870 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1871 New method implementation.
1872
1873 Update the users below.
1874
1875 (linux_process_target::save_stop_reason)
1876 (linux_process_target::wait_1)
1877 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1878 New declaration.
1879 (x86_target::low_decr_pc_after_break): New method implementation.
1880 (the_low_target): Remove the field.
1881 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1882 New declaration.
1883 (bfin_target::low_decr_pc_after_break): New method implementation.
1884 (the_low_target): Remove the field.
1885 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1886 New declaration.
1887 (m68k_target::low_decr_pc_after_break): New method implementation.
1888 (the_low_target): Remove the field.
1889 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1890 New declaration.
1891 (s390_target::low_decr_pc_after_break): New method implementation.
1892 (the_low_target): Remove the field.
1893 * linux-aarch64-low.cc (the_low_target): Remove the field.
1894 * linux-arm-low.cc (the_low_target): Remove the field.
1895 * linux-cris-low.cc (the_low_target): Remove the field.
1896 * linux-crisv32-low.cc (the_low_target): Remove the field.
1897 * linux-m32r-low.cc (the_low_target): Remove the field.
1898 * linux-mips-low.cc (the_low_target): Remove the field.
1899 * linux-nios2-low.cc (the_low_target): Remove the field.
1900 * linux-ppc-low.cc (the_low_target): Remove the field.
1901 * linux-riscv-low.cc (the_low_target): Remove the field.
1902 * linux-sh-low.cc (the_low_target): Remove the field.
1903 * linux-sparc-low.cc (the_low_target): Remove the field.
1904 * linux-tic6x-low.cc (the_low_target): Remove the field.
1905 * linux-tile-low.cc (the_low_target): Remove the field.
1906 * linux-xtensa-low.cc (the_low_target): Remove the field.
1907
7582c77c
TBA
19082020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1909
1910 Remove the 'supports_software_single_step' linux target op and let
1911 the concrete linux target define it by overriding the op in
1912 process_stratum_target.
1913 Turn the 'get_next_pcs' linux target op into a method of
1914 linux_process_target.
1915
1916 * linux-low.h (struct linux_target_ops): Remove the ops.
1917 (class linux_process_target) <supports_software_single_step>:
1918 Remove.
1919 <low_get_next_pcs>: Declare.
1920 * linux-low.cc (can_software_single_step): Remove.
1921 (linux_process_target::low_get_next_pcs): Define.
1922 (linux_process_target::supports_software_single_step): Remove.
1923
1924 Update the callers below.
1925
1926 (linux_process_target::handle_extended_wait)
1927 (linux_process_target::wait_1)
1928 (linux_process_target::install_software_single_step_breakpoints)
1929 (linux_process_target::single_step)
1930 (linux_process_target::thread_needs_step_over)
1931 (linux_process_target::proceed_one_lwp)
1932 (linux_process_target::supports_range_stepping)
1933
1934 * linux-x86-low.cc (the_low_target): Remove the op field.
1935 * linux-aarch64-low.cc (the_low_target): Ditto.
1936 * linux-bfin-low.cc (the_low_target): Ditto.
1937 * linux-cris-low.cc (the_low_target): Ditto.
1938 * linux-crisv32-low.cc (the_low_target): Ditto.
1939 * linux-m32r-low.cc (the_low_target): Ditto.
1940 * linux-m68k-low.cc (the_low_target): Ditto.
1941 * linux-mips-low.cc (the_low_target): Ditto.
1942 * linux-nios2-low.cc (the_low_target): Ditto.
1943 * linux-ppc-low.cc (the_low_target): Ditto.
1944 * linux-riscv-low.cc (the_low_target): Ditto.
1945 * linux-s390-low.cc (the_low_target): Ditto.
1946 * linux-sh-low.cc (the_low_target): Ditto.
1947 * linux-sparc-low.cc (the_low_target): Ditto.
1948 * linux-tic6x-low.cc (the_low_target): Ditto.
1949 * linux-tile-low.cc (the_low_target): Ditto.
1950 * linux-xtensa-low.cc (the_low_target): Ditto.
1951 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1952 <supports_software_single_step>: Declare.
1953 (arm_target::supports_software_single_step): Define.
1954 (arm_gdbserver_get_next_pcs): Turn into...
1955 (arm_target::low_get_next_pcs): ...this.
1956 (the_low_target): Remove the op field.
1957
3ca4edb6
TBA
19582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1959
1960 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1961 the concrete linux target define it by overriding the op
1962 in process_stratum_target.
1963
1964 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1965 Remove.
1966 * linux-low.h (struct linux_target_ops): Remove the op.
1967 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1968 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1969 Declare.
1970 (x86_sw_breakpoint_from_kind): Turn into...
1971 (x86_target::sw_breakpoint_from_kind): ...this.
1972 (the_low_target): Remove the op field.
1973 * linux-aarch64-low.cc (class aarch64_target)
1974 <sw_breakpoint_from_kind>: Declare.
1975 (aarch64_sw_breakpoint_from_kind): Turn into...
1976 (aarch64_target::sw_breakpoint_from_kind): ...this.
1977 (the_low_target): Remove the op field.
1978 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1979 Declare.
1980 (arm_target::sw_breakpoint_from_kind): Define.
1981 (the_low_target): Remove the op field.
1982 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1983 Declare.
1984 (bfin_sw_breakpoint_from_kind): Turn into...
1985 (bfin_target::sw_breakpoint_from_kind): ...this.
1986 (the_low_target): Remove the op field.
1987 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1988 Declare.
1989 (cris_sw_breakpoint_from_kind): Turn into...
1990 (cris_target::sw_breakpoint_from_kind): ...this.
1991 (the_low_target): Remove the op field.
1992 * linux-crisv32-low.cc (class crisv32_target)
1993 <sw_breakpoint_from_kind>: Declare.
1994 (cris_sw_breakpoint_from_kind): Turn into...
1995 (crisv32_target::sw_breakpoint_from_kind): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1998 Declare.
1999 (ia64_target::sw_breakpoint_from_kind): Define.
2000 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2001 Declare.
2002 (m32r_sw_breakpoint_from_kind): Turn into...
2003 (m32r_target::sw_breakpoint_from_kind): ...this.
2004 (the_low_target): Remove the op field.
2005 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2006 Declare.
2007 (m68k_sw_breakpoint_from_kind): Turn into...
2008 (m68k_target::sw_breakpoint_from_kind): ...this.
2009 (the_low_target): Remove the op field.
2010 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2011 Declare.
2012 (mips_sw_breakpoint_from_kind): Turn into...
2013 (mips_target::sw_breakpoint_from_kind): ...this.
2014 (the_low_target): Remove the op field.
2015 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2016 Declare.
2017 (nios2_sw_breakpoint_from_kind): Turn into...
2018 (nios2_target::sw_breakpoint_from_kind): ...this.
2019 (the_low_target): Remove the op field.
2020 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2021 Declare.
2022 (ppc_sw_breakpoint_from_kind): Turn into...
2023 (ppc_target::sw_breakpoint_from_kind): ...this.
2024 (the_low_target): Remove the op field.
2025 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2026 Declare.
2027 (riscv_sw_breakpoint_from_kind): Turn into...
2028 (riscv_target::sw_breakpoint_from_kind): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2031 Declare.
2032 (s390_sw_breakpoint_from_kind): Turn into...
2033 (s390_target::sw_breakpoint_from_kind): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2036 Declare.
2037 (sh_sw_breakpoint_from_kind): Turn into...
2038 (sh_target::sw_breakpoint_from_kind): ...this.
2039 (the_low_target): Remove the op field.
2040 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2041 Declare.
2042 (sparc_sw_breakpoint_from_kind): Turn into...
2043 (sparc_target::sw_breakpoint_from_kind): ...this.
2044 (the_low_target): Remove the op field.
2045 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2046 Declare.
2047 (tic6x_sw_breakpoint_from_kind): Turn into...
2048 (tic6x_target::sw_breakpoint_from_kind): ...this.
2049 (the_low_target): Remove the op field.
2050 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2051 Declare.
2052 (tile_sw_breakpoint_from_kind): Turn into...
2053 (tile_target::sw_breakpoint_from_kind): ...this.
2054 (the_low_target): Remove the op field.
2055 * linux-xtensa-low.cc (class xtensa_target)
2056 <sw_breakpoint_from_kind>: Declare.
2057 (xtensa_sw_breakpoint_from_kind): Turn into...
2058 (xtensa_target::sw_breakpoint_from_kind): ...this.
2059 (the_low_target): Remove the op field.
2060
06250e4e
TBA
20612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2062
2063 Remove the 'breakpoint_kind_from_pc' and
2064 'breakpoint_kind_from_current_state' linux target ops, and let the
2065 concrete linux target define them by overriding the ops of
2066 process_stratum_target.
2067
2068 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2069 Remove.
2070 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2071 * linux-low.h (struct linux_target_ops): Remove ops.
2072 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2073 <breakpoint_kind_from_current_state>: Remove.
2074 * linux-x86-low.cc (the_low_target): Remove the op fields.
2075 * linux-bfin-low.cc (the_low_target): Ditto.
2076 * linux-cris-low.cc (the_low_target): Ditto.
2077 * linux-crisv32-low.cc (the_low_target): Ditto.
2078 * linux-m32r-low.cc (the_low_target): Ditto.
2079 * linux-m68k-low.cc (the_low_target): Ditto.
2080 * linux-mips-low.cc (the_low_target): Ditto.
2081 * linux-nios2-low.cc (the_low_target): Ditto.
2082 * linux-ppc-low.cc (the_low_target): Ditto.
2083 * linux-s390-low.cc (the_low_target): Ditto.
2084 * linux-sh-low.cc (the_low_target): Ditto.
2085 * linux-sparc-low.cc (the_low_target): Ditto.
2086 * linux-tic6x-low.cc (the_low_target): Ditto.
2087 * linux-tile-low.cc (the_low_target): Ditto.
2088 * linux-xtensa-low.cc (the_low_target): Ditto.
2089 * linux-aarch64-low.cc (class aarch64_target)
2090 <breakpoint_kind_from_pc>
2091 <breakpoint_kind_from_current_state>: Declare.
2092 (aarch64_breakpoint_kind_from_pc): Turn into...
2093 (aarch64_target::breakpoint_kind_from_pc): ...this.
2094 (aarch64_breakpoint_kind_from_current_state): Turn into...
2095 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2096 (the_low_target): Remove the op fields.
2097 * linux-arm-low.cc (class arm_target):
2098 <breakpoint_kind_from_pc>
2099 <breakpoint_kind_from_current_state>: Declare.
2100 (arm_target::breakpoint_kind_from_pc): Define.
2101 (arm_target::breakpoint_kind_from_current_state): Define.
2102 (the_low_target): Remove the op fields.
2103 * linux-riscv-low.cc (class riscv_target):
2104 <breakpoint_kind_from_pc>: Declare.
2105 (riscv_breakpoint_kind_from_pc): Turn into...
2106 (riscv_target::breakpoint_kind_from_pc): ...this.
2107 (the_low_target): Remove the op fields.
2108
bf9ae9d8
TBA
21092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2110
2111 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2112 of linux_process_target.
2113
2114 * linux-low.h (struct linux_target_ops): Remove the ops.
2115 (class linux_process_target) <low_supports_breakpoints>
2116 <low_get_pc>
2117 <low_set_pc>: Declare.
2118 * linux-low.cc (supports_breakpoints): Turn into...
2119 (linux_process_target::low_supports_breakpoints): ...this.
2120 (linux_process_target::low_get_pc): Define.
2121 (linux_process_target::low_set_pc): Define.
2122
2123 Update the callers below.
2124
2125 (linux_process_target::get_pc)
2126 (linux_process_target::save_stop_reason)
2127 (linux_process_target::maybe_move_out_of_jump_pad)
2128 (linux_process_target::wait_1)
2129 (linux_process_target::resume_one_lwp_throw)
2130 (linux_process_target::resume)
2131 (linux_process_target::proceed_all_lwps)
2132 (linux_process_target::read_pc)
2133 (linux_process_target::write_pc)
2134
2135 * linux-x86-low.cc (class linux_process_target)
2136 <low_supports_breakpoints>
2137 <low_get_pc>
2138 <low_set_pc>: Declare.
2139 (x86_target::low_supports_breakpoints): Define.
2140 (x86_get_pc): Turn into...
2141 (x86_target::low_get_pc): ...this.
2142 (x86_set_pc): Turn into...
2143 (x86_target::low_set_pc): ...this.
2144 (the_low_target): Remove the op fields.
2145 * linux-arm-low.cc (class arm_target)
2146 <low_supports_breakpoints>
2147 <low_get_pc>
2148 <low_set_pc>: Declare.
2149 (arm_target::low_supports_breakpoints)
2150 (arm_target::low_get_pc)
2151 (arm_target::low_set_pc): Define.
2152 (the_low_target): Remove the op fields.
2153 * linux-bfin-low.cc (class bfin_target)
2154 <low_supports_breakpoints>
2155 <low_get_pc>
2156 <low_set_pc>: Declare.
2157 (bfin_target::low_supports_breakpoints)
2158 (bfin_target::low_get_pc)
2159 (bfin_target::low_set_pc): Define.
2160 (the_low_target): Remove the op fields.
2161 * linux-cris-low.cc (class cris_target)
2162 <low_supports_breakpoints>
2163 <low_get_pc>
2164 <low_set_pc>: Declare.
2165 (cris_target::low_supports_breakpoints)
2166 (cris_target::low_get_pc)
2167 (cris_target::low_set_pc): Define.
2168 (the_low_target): Remove the op fields.
2169 * linux-crisv32-low.cc (class crisv32_target)
2170 <low_supports_breakpoints>
2171 <low_get_pc>
2172 <low_set_pc>: Declare.
2173 (crisv32_target::low_supports_breakpoints)
2174 (crisv32_target::low_get_pc)
2175 (crisv32_target::low_set_pc): Define.
2176 (the_low_target): Remove the op fields.
2177 * linux-m32r-low.cc (class m32r_target)
2178 <low_supports_breakpoints>
2179 <low_get_pc>
2180 <low_set_pc>: Declare.
2181 (m32r_target::low_supports_breakpoints)
2182 (m32r_target::low_get_pc)
2183 (m32r_target::low_set_pc): Define.
2184 (the_low_target): Remove the op fields.
2185 * linux-m68k-low.cc (class m68k_target)
2186 <low_supports_breakpoints>
2187 <low_get_pc>
2188 <low_set_pc>: Declare.
2189 (m68k_target::low_supports_breakpoints)
2190 (m68k_target::low_get_pc)
2191 (m68k_target::low_set_pc): Define.
2192 (the_low_target): Remove the op fields.
2193 * linux-nios2-low.cc (class nios2_target)
2194 <low_supports_breakpoints>
2195 <low_get_pc>
2196 <low_set_pc>: Declare.
2197 (nios2_target::low_supports_breakpoints)
2198 (nios2_target::low_get_pc)
2199 (nios2_target::low_set_pc): Define.
2200 (the_low_target): Remove the op fields.
2201 * linux-sh-low.cc (class sh_target)
2202 <low_supports_breakpoints>
2203 <low_get_pc>
2204 <low_set_pc>: Declare.
2205 (sh_target::low_supports_breakpoints)
2206 (sh_target::low_get_pc)
2207 (sh_target::low_set_pc): Define.
2208 (the_low_target): Remove the op fields.
2209 * linux-xtensa-low.cc (class xtensa_target)
2210 <low_supports_breakpoints>
2211 <low_get_pc>
2212 <low_set_pc>: Declare.
2213 (xtensa_target::low_supports_breakpoints)
2214 (xtensa_target::low_get_pc)
2215 (xtensa_target::low_set_pc): Define.
2216 (the_low_target): Remove the op fields.
2217 * linux-sparc-low.cc (class sparc_target)
2218 <low_supports_breakpoints>
2219 <low_get_pc>: Declare.
2220 (sparc_target::low_supports_breakpoints)
2221 (sparc_target::low_get_pc): Define.
2222 (the_low_target): Remove the op fields.
2223 * linux-tile-low.cc (class tile_target)
2224 <low_supports_breakpoints>
2225 <low_get_pc>
2226 <low_set_pc>: Declare.
2227 (tile_target::low_supports_breakpoints)
2228 (tile_target::low_get_pc)
2229 (tile_target::low_set_pc): Define.
2230 (the_low_target): Remove the op fields.
2231 * linux-aarch64-low.cc (class aarch64_target)
2232 <low_supports_breakpoints>
2233 <low_get_pc>
2234 <low_set_pc>: Declare.
2235 (aarch64_target::low_supports_breakpoints): Define.
2236 (aarch64_get_pc): Turn into...
2237 (aarch64_target::low_get_pc): ...this.
2238 (aarch64_set_pc): Turn into...
2239 (aarch64_target::low_set_pc): ...this.
2240 (the_low_target): Remove the op fields.
2241 * linux-mips-low.cc (class mips_target)
2242 <low_supports_breakpoints>
2243 <low_get_pc>
2244 <low_set_pc>: Declare.
2245 (mips_target::low_supports_breakpoints): Define.
2246 (mips_get_pc): Turn into...
2247 (mips_target::low_get_pc): ...this.
2248 (mips_set_pc): Turn into...
2249 (mips_target::low_set_pc): ...this.
2250 (the_low_target): Remove the op fields.
2251 * linux-ppc-low.cc (class ppc_target)
2252 <low_supports_breakpoints>
2253 <low_get_pc>
2254 <low_set_pc>: Declare.
2255 (ppc_target::low_supports_breakpoints): Define.
2256 (ppc_get_pc): Turn into...
2257 (ppc_target::low_get_pc): ...this.
2258 (ppc_set_pc): Turn into...
2259 (ppc_target::low_set_pc): ...this.
2260 (the_low_target): Remove the op fields.
2261 * linux-riscv-low.cc (class riscv_target)
2262 <low_supports_breakpoints>
2263 <low_get_pc>
2264 <low_set_pc>: Declare.
2265 (riscv_target::low_supports_breakpoints): Define.
2266 (riscv_get_pc): Turn into...
2267 (riscv_target::low_get_pc): ...this.
2268 (riscv_set_pc): Turn into...
2269 (riscv_target::low_set_pc): ...this.
2270 (the_low_target): Remove the op fields.
2271 * linux-s390-low.cc (class s390_target)
2272 <low_supports_breakpoints>
2273 <low_get_pc>
2274 <low_set_pc>: Declare.
2275 (s390_target::low_supports_breakpoints): Define.
2276 (s390_get_pc): Turn into...
2277 (s390_target::low_get_pc): ...this.
2278 (s390_set_pc): Turn into...
2279 (s390_target::low_set_pc): ...this.
2280 (the_low_target): Remove the op fields.
2281 * linux-tic6x-low.cc (class tic6x_target)
2282 <low_supports_breakpoints>
2283 <low_get_pc>
2284 <low_set_pc>: Declare.
2285 (tic6x_target::low_supports_breakpoints): Define.
2286 (tic6x_get_pc): Turn into...
2287 (tic6x_target::low_get_pc): ...this.
2288 (tic6x_set_pc): Turn into...
2289 (tic6x_target::low_set_pc): ...this.
2290 (the_low_target): Remove the op fields.
2291
df95181f
TBA
22922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2293
2294 Turn some more static methods in linux-low into private methods
2295 of linux_process_target.
2296
2297 * linux-low.cc (get_pc): Turn into...
2298 (linux_process_target::get_pc): ...this.
2299 (save_stop_reason): Turn into...
2300 (linux_process_target::save_stop_reason): ...this.
2301 (thread_still_has_status_pending_p): Turn into...
2302 (linux_process_target::thread_still_has_status_pending): ...this.
2303 (status_pending_p_callback): Turn into...
2304 (linux_process_target::status_pending_p_callback): ...this.
2305 (resume_stopped_resumed_lwps): Turn into...
2306 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2307 (install_software_single_step_breakpoints): Turn into...
2308 (linux_process_target::install_software_single_step_breakpoints):
2309 ...this.
2310 (single_step): Turn into...
2311 (linux_process_target::single_step): ...this.
2312 (linux_resume_one_lwp_throw): Turn into...
2313 (linux_process_target::resume_one_lwp_throw): ...this.
2314 (linux_resume_one_lwp): Turn into...
2315 (linux_process_target::resume_one_lwp): ...this.
2316 (resume_status_pending_p): Turn into...
2317 (linux_process_target::resume_status_pending): ...this.
2318 (need_step_over_p): Turn into...
2319 (linux_process_target::thread_needs_step_over): ...this.
2320 (linux_resume_one_thread): Turn into...
2321 (linux_process_target::resume_one_thread): ...this.
2322 (proceed_one_lwp): Turn into...
2323 (linux_process_target::proceed_one_lwp): ...this.
2324 (unsuspend_and_proceed_one_lwp): Turn into...
2325 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2326
2327 Update the calls/references to the above functions below.
2328
2329 (linux_process_target::handle_extended_wait)
2330 (linux_process_target::filter_event)
2331 (linux_process_target::wait_for_event_filtered)
2332 (linux_process_target::wait_1)
2333 (linux_process_target::move_out_of_jump_pad)
2334 (linux_process_target::start_step_over)
2335 (linux_process_target::resume)
2336 (linux_process_target::proceed_all_lwps)
2337 (regsets_store_inferior_registers)
2338 (linux_process_target::store_register)
2339
2340 * linux-low.h (class linux_process_target)
2341 <get_pc>
2342 <save_stop_reason>
2343 <thread_still_has_status_pending>
2344 <status_pending_p_callback>
2345 <resume_stopped_resumed_lwps>
2346 <install_software_single_step_breakpoints>
2347 <single_step>
2348 <resume_one_lwp_throw>
2349 <resume_one_lwp>
2350 <resume_status_pending>
2351 <thread_needs_step_over>
2352 <resume_one_thread>
2353 <proceed_one_lwp>
2354 <unsuspend_and_proceed_one_lwp>: Declare.
2355
bd70b1f2
TBA
23562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2357
2358 Turn the 'fetch_register' linux target op into a method of
2359 linux_process_target.
2360
2361 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2362 (class linux_process_target) <low_fetch_register>: Declare.
2363 * linux-x86-low.cc (the_low_target)
2364 * linux-aarch64-low.cc (the_low_target)
2365 * linux-arm-low.cc (the_low_target)
2366 * linux-bfin-low.cc (the_low_target)
2367 * linux-cris-low.cc (the_low_target)
2368 * linux-crisv32-low.cc (the_low_target)
2369 * linux-m32r-low.cc (the_low_target)
2370 * linux-m68k-low.cc (the_low_target)
2371 * linux-nios2-low.cc (the_low_target)
2372 * linux-ppc-low.cc (the_low_target)
2373 * linux-s390-low.cc (the_low_target)
2374 * linux-sh-low.cc (the_low_target)
2375 * linux-sparc-low.cc (the_low_target)
2376 * linux-tic6x-low.cc (the_low_target)
2377 * linux-tile-low.cc (the_low_target)
2378 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2379 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2380 Declare.
2381 (ia64_fetch_register): Turn into...
2382 (ia64_target::low_fetch_register): ...this.
2383 (the_low_target): Remove the op field.
2384 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2385 Declare.
2386 (mips_fetch_register): Turn into...
2387 (mips_target::low_fetch_register): ...this.
2388 (the_low_target): Remove the op field.
2389 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2390 Declare.
2391 (riscv_fetch_register): Turn into...
2392 (riscv_target::low_fetch_register): ...this.
2393 (the_low_target): Remove the op field.
2394
2395 Update the callers below.
2396
2397 * linux-low.cc (linux_process_target::fetch_registers)
2398 (linux_process_target::low_fetch_register)
2399
daca57a7
TBA
24002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2401
2402 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2403 linux target ops into methods of linux_process_target.
2404
2405 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2406 (class linux_process_target) <fetch_register>
2407 <store_register>
2408 <usr_fetch_inferior_registers>
2409 <usr_store_inferior_registers>
2410 <low_cannot_fetch_register>
2411 <low_cannot_fetch_register> Declare.
2412 * linux-low.cc (fetch_register): Turn into...
2413 (linux_process_target::fetch_register): ...this.
2414 (store_register): Turn into ...
2415 (linux_process_target::store_register): ...this.
2416 (usr_fetch_inferior_registers): Turn into...
2417 (linux_process_target::usr_fetch_inferior_registers): ...this.
2418 (usr_store_inferior_registers): Turn into...
2419 (linux_process_target::usr_store_inferior_registers): ...this.
2420 * linux-x86-low.cc (class x86_target)
2421 <low_cannot_fetch_register>
2422 <low_cannot_store_register>: Declare.
2423 (x86_cannot_store_register): Turn into...
2424 (x86_target::low_cannot_store_register): ...this.
2425 (x86_cannot_fetch_register): Turn into...
2426 (x86_target::low_cannot_fetch_register): ...this.
2427 (the_low_target): Remove the target op fields.
2428 * linux-aarch64-low.cc (class aarch64_target)
2429 <low_cannot_fetch_register>
2430 <low_cannot_store_register>: Declare.
2431 (aarch64_target::low_cannot_fetch_register)
2432 (aarch64_target::low_cannot_store_register): Define.
2433 (the_low_target): Remove the op fields.
2434 * linux-arm-low.cc (class arm_target)
2435 <low_cannot_fetch_register>
2436 <low_cannot_store_register>: Declare.
2437 (arm_cannot_fetch_register): Turn into...
2438 (arm_target::low_cannot_fetch_register): ...this.
2439 (arm_cannot_store_register): Turn into...
2440 (arm_target::low_cannot_store_register): ...this.
2441 (the_low_target): Remove the op fields.
2442 * linux-bfin-low.cc (class bfin_target)
2443 <low_cannot_fetch_register>
2444 <low_cannot_store_register>: Declare.
2445 (bfin_cannot_fetch_register): Turn into...
2446 (bfin_target::low_cannot_fetch_register): ...this.
2447 (bfin_cannot_store_register): Turn into...
2448 (bfin_target::low_cannot_store_register): ...this.
2449 (the_low_target): Remove the op fields.
2450 * linux-cris-low.cc (class cris_target)
2451 <low_cannot_fetch_register>
2452 <low_cannot_store_register>: Declare.
2453 (cris_cannot_fetch_register): Turn into...
2454 (cris_target::low_cannot_fetch_register): ...this.
2455 (cris_cannot_store_register): Turn into...
2456 (cris_target::low_cannot_store_register): ...this.
2457 (the_low_target): Remove the op fields.
2458 * linux-crisv32-low.cc (class crisv32_target)
2459 <low_cannot_fetch_register>
2460 <low_cannot_store_register>: Declare.
2461 (crisv32_target::low_cannot_fetch_register)
2462 (crisv32_target::low_cannot_store_register): Define.
2463 (the_low_target): Remove the op fields.
2464 * linux-ia64-low.cc (class ia64_target)
2465 <low_cannot_fetch_register>
2466 <low_cannot_store_register>: Declare.
2467 (ia64_cannot_fetch_register): Turn into...
2468 (ia64_target::low_cannot_fetch_register): ...this.
2469 (ia64_cannot_store_register): Turn into...
2470 (ia64_target::low_cannot_store_register): ...this.
2471 (the_low_target): Remove the op fields.
2472 * linux-m32r-low.cc (class m32r_target)
2473 <low_cannot_fetch_register>
2474 <low_cannot_store_register>: Declare.
2475 (m32r_cannot_fetch_register): Turn into...
2476 (m32r_target::low_cannot_fetch_register): ...this.
2477 (m32r_cannot_store_register): Turn into...
2478 (m32r_target::low_cannot_store_register): ...this.
2479 (the_low_target): Remove the op fields.
2480 * linux-m68k-low.cc (class m68k_target)
2481 <low_cannot_fetch_register>
2482 <low_cannot_store_register>: Declare.
2483 (m68k_cannot_fetch_register): Turn into...
2484 (m68k_target::low_cannot_fetch_register): ...this.
2485 (m68k_cannot_store_register): Turn into...
2486 (m68k_target::low_cannot_store_register): ...this.
2487 (the_low_target): Remove the op fields.
2488 * linux-mips-low.cc (class mips_target)
2489 <low_cannot_fetch_register>
2490 <low_cannot_store_register>: Declare.
2491 (mips_cannot_fetch_register): Turn into...
2492 (mips_target::low_cannot_fetch_register): ...this.
2493 (mips_cannot_store_register): Turn into...
2494 (mips_target::low_cannot_store_register): ...this.
2495 (get_usrregs_info): Inline at the call sites in
2496 low_cannot_fetch_register and low_cannot_store_register,
2497 and remove.
2498 (the_low_target): Remove the op fields.
2499 * linux-nios2-low.cc (class nios2_target)
2500 <low_cannot_fetch_register>
2501 <low_cannot_store_register>: Declare.
2502 (nios2_cannot_fetch_register): Turn into...
2503 (nios2_target::low_cannot_fetch_register): ...this.
2504 (nios2_cannot_store_register): Turn into...
2505 (nios2_target::low_cannot_store_register): ...this.
2506 (the_low_target): Remove the op fields.
2507 * linux-ppc-low.cc (class ppc_target)
2508 <low_cannot_fetch_register>
2509 <low_cannot_store_register>: Declare.
2510 (ppc_cannot_fetch_register): Turn into...
2511 (ppc_target::low_cannot_fetch_register): ...this.
2512 (ppc_cannot_store_register): Turn into...
2513 (ppc_target::low_cannot_store_register): ...this.
2514 (the_low_target): Remove the op fields.
2515 * linux-riscv-low.cc (class riscv_target)
2516 <low_cannot_fetch_register>
2517 <low_cannot_store_register>: Declare.
2518 (riscv_target::low_cannot_fetch_register)
2519 (riscv_target::low_cannot_store_register): Define.
2520 (the_low_target): Remove the op fields.
2521 * linux-s390-low.cc (class s390_target)
2522 <low_cannot_fetch_register>
2523 <low_cannot_store_register>: Declare.
2524 (s390_cannot_fetch_register): Turn into...
2525 (s390_target::low_cannot_fetch_register): ...this.
2526 (s390_cannot_store_register): Turn into...
2527 (s390_target::low_cannot_store_register): ...this.
2528 (the_low_target): Remove the op fields.
2529 * linux-sh-low.cc (class sh_target)
2530 <low_cannot_fetch_register>
2531 <low_cannot_store_register>: Declare.
2532 (sh_cannot_fetch_register): Turn into...
2533 (sh_target::low_cannot_fetch_register): ...this.
2534 (sh_cannot_store_register): Turn into...
2535 (sh_target::low_cannot_store_register): ...this.
2536 (the_low_target): Remove the op fields.
2537 * linux-sparc-low.cc (class sparc_target)
2538 <low_cannot_fetch_register>
2539 <low_cannot_store_register>: Declare.
2540 (sparc_cannot_fetch_register): Turn into...
2541 (sparc_target::low_cannot_fetch_register): ...this.
2542 (sparc_cannot_store_register): Turn into...
2543 (sparc_target::low_cannot_store_register): ...this.
2544 (the_low_target): Remove the op fields.
2545 * linux-tic6x-low.cc (class tic6x_target)
2546 <low_cannot_fetch_register>
2547 <low_cannot_store_register>: Declare.
2548 (tic6x_cannot_fetch_register): Turn into...
2549 (tic6x_target::low_cannot_fetch_register): ...this.
2550 (tic6x_cannot_store_register): Turn into...
2551 (tic6x_target::low_cannot_store_register): ...this.
2552 (the_low_target): Remove the op fields.
2553 * linux-tile-low.cc (class tile_target)
2554 <low_cannot_fetch_register>
2555 <low_cannot_store_register>: Declare.
2556 (tile_cannot_fetch_register): Turn into...
2557 (tile_target::low_cannot_fetch_register): ...this.
2558 (tile_cannot_store_register): Turn into...
2559 (tile_target::low_cannot_store_register): ...this.
2560 (the_low_target): Remove the op fields.
2561 * linux-xtensa-low.cc (class xtensa_target)
2562 <low_cannot_fetch_register>
2563 <low_cannot_store_register>: Declare.
2564 (xtensa_target::low_cannot_fetch_register)
2565 (xtensa_target::low_cannot_store_register): Define.
2566 (the_low_target): Remove the op fields.
2567
aa8d21c9
TBA
25682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2569
2570 Turn the 'regs_info' linux target op into a method of
2571 linux_process_target.
2572
2573 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2574 (class linux_process_target) <get_regs_info>: Define.
2575
2576 Update the callers below.
2577
2578 * linux-low.cc (linux_process_target::fetch_registers)
2579 (linux_process_target::store_registers)
2580 * proc-service.cc (gregset_info)
2581
2582 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2583 (x86_linux_regs_info): Turn into ...
2584 (x86_target::get_regs_info): ...this.
2585 (the_low_target): Remove the op field.
2586 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2587 Declare.
2588 (aarch64_regs_info): Turn into ...
2589 (aarch64_target::get_regs_info): ...this.
2590 (the_low_target): Remove the op field.
2591 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2592 (arm_regs_info): Turn into ...
2593 (arm_target::get_regs_info): ...this.
2594 (the_low_target): Remove the op field.
2595 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2596 (bfin_regs_info): Turn into ...
2597 (bfin_target::get_regs_info): ...this.
2598 (the_low_target): Remove the op field.
2599 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2600 (cris_regs_info): Turn into ...
2601 (cris_target::get_regs_info): ...this.
2602 (the_low_target): Remove the op field.
2603 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2604 Declare.
2605 (crisv32_regs_info): Turn into ...
2606 (crisv32_target::get_regs_info): ...this.
2607 (the_low_target): Remove the op field.
2608 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2609 (ia64_regs_info): Turn into ...
2610 (ia64_target::get_regs_info): ...this.
2611 (the_low_target): Remove the op field.
2612 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2613 (m32r_regs_info): Turn into ...
2614 (m32r_target::get_regs_info): ...this.
2615 (the_low_target): Remove the op field.
2616 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2617 (m68k_regs_info): Turn into ...
2618 (m68k_target::get_regs_info): ...this.
2619 (the_low_target): Remove the op field.
2620 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2621 (mips_regs_info): Turn into ...
2622 (mips_target::get_regs_info): ...this.
2623 (the_low_target): Remove the op field.
2624 (get_usrregs_info): Update the call to the op.
2625 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2626 (nios2_regs_info): Turn into ...
2627 (nios2_target::get_regs_info): ...this.
2628 (the_low_target): Remove the op field.
2629 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2630 (ppc_regs_info): Turn into ...
2631 (ppc_target::get_regs_info): ...this.
2632 (the_low_target): Remove the op field.
2633 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2634 (riscv_regs_info): Turn into ...
2635 (riscv_target::get_regs_info): ...this.
2636 (the_low_target): Remove the op field.
2637 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2638 (s390_regs_info): Turn into ...
2639 (s390_target::get_regs_info): ...this.
2640 (the_low_target): Remove the op field.
2641 (s390_collect_ptrace_register)
2642 (s390_supply_ptrace_register)
2643 (s390_fill_gregset): Update the call to the op.
2644 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2645 (sh_regs_info): Turn into ...
2646 (sh_target::get_regs_info): ...this.
2647 (the_low_target): Remove the op field.
2648 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2649 (sparc_regs_info): Turn into ...
2650 (sparc_target::get_regs_info): ...this.
2651 (the_low_target): Remove the op field.
2652 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2653 (tic6x_regs_info): Turn into ...
2654 (tic6x_target::get_regs_info): ...this.
2655 (the_low_target): Remove the op field.
2656 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2657 (tile_regs_info): Turn into ...
2658 (tile_target::get_regs_info): ...this.
2659 (the_low_target): Remove the op field.
2660 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2661 Declare.
2662 (xtensa_regs_info): Turn into ...
2663 (xtensa_target::get_regs_info): ...this.
2664 (the_low_target): Remove the op field.
2665
797bcff5
TBA
26662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2667
2668 Turn the 'arch_setup' linux target op into a method of
2669 linux_process_target.
2670
2671 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2672 (class linux_process_target) <arch_setup_thread>
2673 <low_arch_setup>: New declarations.
2674 * linux-low.cc (linux_arch_setup): Delete.
2675 (linux_arch_setup_thread): Turn into...
2676 (linux_process_target::arch_setup_thread): ... this.
2677
2678 Update the callers below.
2679
2680 (linux_process_target::handle_extended_wait)
2681 (linux_process_target::post_create_inferior)
2682 (linux_process_target::filter_event)
2683
2684 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2685 declaration.
2686 (x86_linux_update_xmltarget): Turn into...
2687 (x86_target::update_xmltarget): ...this.
2688 (x86_linux_process_qsupported): Update the call to
2689 x86_linux_update_xmltarget.
2690 (x86_arch_setup): Turn into ...
2691 (x86_target::low_arch_setup): ...this.
2692 (the_low_target): Remove the op field.
2693 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2694 declaration.
2695 (aarch64_arch_setup): Turn into ...
2696 (aarch64_target::low_arch_setup): ...this.
2697 (the_low_target): Remove the op field.
2698 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2699 declaration.
2700 (arm_arch_setup): Turn into ...
2701 (arm_target::low_arch_setup): ...this.
2702 (the_low_target): Remove the op field.
2703 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2704 declaration.
2705 (bfin_arch_setup): Turn into ...
2706 (bfin_target::low_arch_setup): ...this.
2707 (the_low_target): Remove the op field.
2708 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2709 declaration.
2710 (cris_arch_setup): Turn into ...
2711 (cris_target::low_arch_setup): ...this.
2712 (the_low_target): Remove the op field.
2713 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2714 declaration.
2715 (crisv32_arch_setup): Turn into ...
2716 (crisv32_target::low_arch_setup): ...this.
2717 (the_low_target): Remove the op field.
2718 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2719 declaration.
2720 (ia64_arch_setup): Turn into ...
2721 (ia64_target::low_arch_setup): ...this.
2722 (the_low_target): Remove the op field.
2723 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2724 declaration.
2725 (m32r_arch_setup): Turn into ...
2726 (m32r_target::low_arch_setup): ...this.
2727 (the_low_target): Remove the op field.
2728 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2729 declaration.
2730 (m68k_arch_setup): Turn into ...
2731 (m68k_target::low_arch_setup): ...this.
2732 (the_low_target): Remove the op field.
2733 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2734 declaration.
2735 (mips_arch_setup): Turn into ...
2736 (mips_target::low_arch_setup): ...this.
2737 (the_low_target): Remove the op field.
2738 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2739 declaration.
2740 (nios2_arch_setup): Turn into ...
2741 (nios2_target::low_arch_setup): ...this.
2742 (the_low_target): Remove the op field.
2743 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2744 declaration.
2745 (ppc_arch_setup): Turn into ...
2746 (ppc_target::low_arch_setup): ...this.
2747 (the_low_target): Remove the op field.
2748 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2749 declaration.
2750 (riscv_arch_setup): Turn into ...
2751 (riscv_target::low_arch_setup): ...this.
2752 (the_low_target): Remove the op field.
2753 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2754 declaration.
2755 (s390_arch_setup): Turn into ...
2756 (s390_target::low_arch_setup): ...this.
2757 (the_low_target): Remove the op field.
2758 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2759 declaration.
2760 (sh_arch_setup): Turn into ...
2761 (sh_target::low_arch_setup): ...this.
2762 (the_low_target): Remove the op field.
2763 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2764 declaration.
2765 (sparc_arch_setup): Turn into ...
2766 (sparc_target::low_arch_setup): ...this.
2767 (the_low_target): Remove the op field.
2768 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2769 declaration.
2770 (tic6x_arch_setup): Turn into ...
2771 (tic6x_target::low_arch_setup): ...this.
2772 (the_low_target): Remove the op field.
2773 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2774 declaration.
2775 (tile_arch_setup): Turn into ...
2776 (tile_target::low_arch_setup): ...this.
2777 (the_low_target): Remove the op field.
2778 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2779 declaration.
2780 (xtensa_arch_setup): Turn into ...
2781 (xtensa_target::low_arch_setup): ...this.
2782 (the_low_target): Remove the op field.
2783
ef0478f6
TBA
27842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2785
2786 * linux-low.h (the_linux_target): New extern declaration.
2787 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2788 'the_target'.
2789 (the_linux_target): Remove.
2790 * linux-x86-low.cc (class x86_target): New class.
2791 (the_x86_target): New static object.
2792 (the_linux_target): Define as pointer to the_x86_target.
2793 * linux-aarch64-low.cc (class aarch64_target): New class.
2794 (the_aarch64_target): New static object.
2795 (the_linux_target): Define as pointer to the_aarch64_target.
2796 * linux-arm-low.cc (class arm_target): New class.
2797 (the_arm_target): New static object.
2798 (the_linux_target): Define as pointer to the_arm_target.
2799 * linux-bfin-low.cc (class bfin_target): New class.
2800 (the_bfin_target): New static object.
2801 (the_linux_target): Define as pointer to the_bfin_target.
2802 * linux-cris-low.cc (class cris_target): New class.
2803 (the_cris_target): New static object.
2804 (the_linux_target): Define as pointer to the_cris_target.
2805 * linux-crisv32-low.cc (class crisv32_target): New class.
2806 (the_crisv32_target): New static object.
2807 (the_linux_target): Define as pointer to the_crisv32_target.
2808 * linux-ia64-low.cc (class ia64_target): New class.
2809 (the_ia64_target): New static object.
2810 (the_linux_target): Define as pointer to the_ia64_target.
2811 * linux-m32r-low.cc (class m32r_target): New class.
2812 (the_m32r_target): New static object.
2813 (the_linux_target): Define as pointer to the_m32r_target.
2814 * linux-m68k-low.cc (class m68k_target): New class.
2815 (the_m68k_target): New static object.
2816 (the_linux_target): Define as pointer to the_m68k_target.
2817 * linux-mips-low.cc (class mips_target): New class.
2818 (the_mips_target): New static object.
2819 (the_linux_target): Define as pointer to the_mips_target.
2820 * linux-nios2-low.cc (class nios2_target): New class.
2821 (the_nios2_target): New static object.
2822 (the_linux_target): Define as pointer to the_nios2_target.
2823 * linux-ppc-low.cc (class ppc_target): New class.
2824 (the_ppc_target): New static object.
2825 (the_linux_target): Define as pointer to the_ppc_target.
2826 * linux-riscv-low.cc (class riscv_target): New class.
2827 (the_riscv_target): New static object.
2828 (the_linux_target): Define as pointer to the_riscv_target.
2829 * linux-s390-low.cc (class s390_target): New class.
2830 (the_s390_target): New static object.
2831 (the_linux_target): Define as pointer to the_s390_target.
2832 * linux-sh-low.cc (class sh_target): New class.
2833 (the_sh_target): New static object.
2834 (the_linux_target): Define as pointer to the_sh_target.
2835 * linux-sparc-low.cc (class sparc_target): New class.
2836 (the_sparc_target): New static object.
2837 (the_linux_target): Define as pointer to the_sparc_target.
2838 * linux-tic6x-low.cc (class tic6x_target): New class.
2839 (the_tic6x_target): New static object.
2840 (the_linux_target): Define as pointer to the_tic6x_target.
2841 * linux-tile-low.cc (class tile_target): New class.
2842 (the_tile_target): New static object.
2843 (the_linux_target): Define as pointer to the_tile_target.
2844 * linux-xtensa-low.cc (class xtensa_target): New class.
2845 (the_xtensa_target): New static object.
2846 (the_linux_target): Define as pointer to the_xtensa_target.
2847
d16f3f6c
TBA
28482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2849
2850 Turn some static functions in linux-low.cc into private methods of
2851 linux_process_target.
2852
2853 * linux-low.cc (handle_extended_wait): Turn into ...
2854 (linux_process_target::handle_extended_wait): ...this. Call
2855 'mourn' on 'this' object instead of 'the_target'.
2856 (maybe_move_out_of_jump_pad): Turn into...
2857 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2858 (linux_low_filter_event): Turn into...
2859 (linux_process_target::filter_event): ...this.
2860 (linux_wait_for_event_filtered): Turn into...
2861 (linux_process_target::wait_for_event_filtered): ...this.
2862 (linux_wait_for_event): Turn into...
2863 (linux_process_target::wait_for_event): ...this.
2864 (linux_wait_1): Turn into...
2865 (linux_process_target::wait_1): ...this.
2866 (wait_for_sigstop): Turn into...
2867 (linux_process_target::wait_for_sigstop): ...this.
2868 (move_out_of_jump_pad_callback): Turn into...
2869 (linux_process_target::move_out_of_jump_pad): ...this.
2870 (stop_all_lwps): Turn into...
2871 (linux_process_target::stop_all_lwps): ...this.
2872 (start_step_over): Turn into...
2873 (linux_process_target::start_step_over): ...this.
2874 (complete_ongoing_step_over): Turn into...
2875 (linux_process_target::complete_ongoing_step_over): ...this.
2876 (proceed_all_lwps): Turn into...
2877 (linux_process_target::proceed_all_lwps): ...this.
2878 (unstop_all_lwps): Turn into...
2879 (linux_process_target::unstop_all_lwps): ...this.
2880
2881 * linux-low.h (class linux_process_target)
2882 <handle_extended_wait>
2883 <maybe_move_out_of_jump_pad>
2884 filter_event>
2885 <wait_for_event_filtered>
2886 <wait_for_event>
2887 <wait_1>
2888 <wait_for_sigstop>
2889 <move_out_of_jump_pad>
2890 <stop_all_lwps>
2891 <start_step_over>
2892 <complete_ongoing_step_over>
2893 <proceed_all_lwps>
2894 <unstop_all_lwps>: Declare.
2895
2896 Update the callers below.
2897
2898 * linux-low.cc (linux_process_target::attach): Update.
2899 (linux_process_target::stabilize_threads): Ditto.
2900 (linux_process_target::wait): Ditto.
2901
a5863204
TBA
29022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2903
2904 * linux-low.h (struct linux_target_ops): Update the comment for
2905 'cannot_store_register' to return 0 or 1.
2906 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2907 of 2.
2908
c884cc46
SM
29092020-03-20 Simon Marchi <simon.marchi@efficios.com>
2910
2911 * config.in: Re-generate.
2912 * configure: Re-generate.
2913
5a82b8a1
KR
29142020-03-17 Kamil Rytarowski <n54@gmx.com>
2915
2916 * regcache.cc (find_register_by_number): Update.
2917 * tdesc.cc (init_target_desc): Likewise.
2918 * tdesc.h (target_desc::reg_defs): Likewise.
2919
4635ff97
TT
29202020-03-12 Tom Tromey <tom@tromey.com>
2921
2922 * configure: Rebuild.
2923 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2924 (WIN32APILIBS): New subst.
2925 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2926 gdbsupport files.
2927 (gdbsupport/%.o): Remove target.
2928 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2929 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2930 (WIN32APILIBS): New variable.
2931 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2932 (gdbreplay$(EXEEXT)): Likewise.
2933
9a665d62
TT
29342020-03-12 Tom Tromey <tom@tromey.com>
2935
2936 * config.in, configure: Rebuild.
2937 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2938 * acinclude.m4: Include gettext-sister.m4.
2939 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2940 variables.
2941 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2942 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2943
272cd5a3
SM
29442020-03-12 Simon Marchi <simon.marchi@efficios.com>
2945
2946 * acinclude.m4: Update path to selftest.m4.
2947
db6878ac
SM
29482020-03-12 Simon Marchi <simon.marchi@efficios.com>
2949
2950 * configure.ac: Don't source bfd/development.sh, move
2951 GDB_AC_COMMON higher.
2952 * configure: Re-generate.
2953
4d696a5c
SM
29542020-03-12 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * configure: Re-generate.
2957
a0761e34
SM
29582020-03-11 Simon Marchi <simon.marchi@efficios.com>
2959
2960 * configure: Re-generate.
2961
20ea4a60
AB
29622020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2963
2964 * .dir-locals.el: New file.
2965
842806cb
TBA
29662020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2967
2968 * .gitattributes: New file.
2969
442131c1
AB
29702020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2971
2972 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2973 reply into an S reply.
2974 * server.cc (disable_packet_T): New global.
2975 (captured_main): Set new global when appropriate.
2976 * server.h (disable_packet_T): Declare.
2977
dda42c0b
TT
29782020-02-21 Tom Tromey <tom@tromey.com>
2979
2980 * Makefile.in (mostlyclean): New target.
2981
52405d85
TBA
29822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2983
2984 * target.h (struct process_stratum_target): Remove.
2985 (class process_target): Rename to ...
2986 (class process_stratum_target): ... this.
2987 * linux-low.h (class linux_process_target): Derive from
2988 'process_stratum_target'.
2989 * linux-low.cc (linux_target_ops): Remove.
2990 (initialize_low): Set the_target to the singleton instance of
2991 linux_process_target.
2992 * lynx-low.h (class lynx_process_target): Derive from
2993 'process_stratum_target'.
2994 * lynx-low.cc (lynx_target_ops): Remove.
2995 (initialize_low): Set the_target to the singleton instance of
2996 lynx_process_target.
2997 * nto-low.h (class nto_process_target): Derive from
2998 'process_stratum_target'.
2999 * nto-low.cc (nto_target_ops): Remove.
3000 (initialize_low): Set the_target to the singleton instance of
3001 nto_process_target.
3002 * win32-low.h (class win32_process_target): Derive from
3003 'process_stratum_target'.
3004 * win32-low.cc (win32_target_ops): Remove.
3005 (initialize_low): Set the_target to the singleton instance of
3006 win32_process_target.
3007
3008 Replace 'the_target->pt' with 'the_target' in the uses below.
3009
3010 * hostio.cc (hostio_error)
3011 (handle_setfs)
3012 (handle_open)
3013 (handle_unlink)
3014 (handle_readlink)
3015 * linux-aarch32-low.cc (arm_breakpoint_at)
3016 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3017 * linux-arm-low.cc (arm_sigreturn_next_pc)
3018 (arm_get_hwcap)
3019 (arm_get_syscall_trapinfo)
3020 * linux-cris-low.cc (cris_breakpoint_at)
3021 * linux-crisv32-low.cc (cris_breakpoint_at)
3022 * linux-low.cc (handle_extended_wait)
3023 (linux_wait_1)
3024 (linux_read_memory)
3025 (linux_process_target::breakpoint_kind_from_pc)
3026 (linux_get_auxv)
3027 * linux-m32r-low.cc (m32r_breakpoint_at)
3028 * linux-mips-low.cc (mips_breakpoint_at)
3029 * linux-nios2-low.cc (nios2_breakpoint_at)
3030 * linux-ppc-low.cc (ppc_breakpoint_at)
3031 * linux-s390-low.cc (s390_get_hwcap)
3032 * linux-sh-low.cc (sh_breakpoint_at)
3033 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3034 (sparc_store_gregset_from_stack)
3035 (sparc_breakpoint_at)
3036 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3037 * linux-tile-low.cc (tile_breakpoint_at)
3038 * linux-x86-low.cc (x86_breakpoint_at)
3039 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3040 * mem-break.cc (bp_size)
3041 (bp_opcode)
3042 (insert_memory_breakpoint)
3043 (set_raw_breakpoint_at)
3044 (delete_raw_breakpoint)
3045 (z_type_supported)
3046 (uninsert_raw_breakpoint)
3047 (reinsert_raw_breakpoint)
3048 (validate_inserted_breakpoint)
3049 * regcache.cc (regcache_read_pc)
3050 (regcache_write_pc)
3051 * remote-utils.cc (putpkt_binary_1)
3052 (input_interrupt)
3053 (getpkt)
3054 (prepare_resume_reply)
3055 * server.cc (handle_general_set)
3056 (handle_detach)
3057 (handle_qxfer_auxv)
3058 (handle_qxfer_exec_file)
3059 (handle_qxfer_libraries_svr4)
3060 (handle_qxfer_osdata)
3061 (handle_qxfer_siginfo)
3062 (handle_qxfer_fdpic)
3063 (handle_query)
3064 (resume)
3065 (handle_v_requests)
3066 (queue_stop_reply_callback)
3067 (captured_main)
3068 * target.cc (prepare_to_access_memory)
3069 (done_accessing_memory)
3070 (read_inferior_memory)
3071 (target_write_memory)
3072 (target_stop_and_wait)
3073 (target_wait)
3074 (target_mourn_inferior)
3075 (target_continue_no_signal)
3076 (target_continue)
3077 (target_supports_multi_process)
3078 (kill_inferior)
3079 * target.h
3080 (target_create_inferior)
3081 (target_post_create_inferior)
3082 (myattach)
3083 (target_supports_fork_events)
3084 (target_supports_vfork_events)
3085 (target_supports_exec_events)
3086 (target_handle_new_gdb_connection)
3087 (detach_inferior)
3088 (mythread_alive)
3089 (fetch_inferior_registers)
3090 (store_inferior_registers)
3091 (join_inferior)
3092 (target_supports_non_stop)
3093 (target_async)
3094 (target_process_qsupported)
3095 (target_supports_catch_syscall)
3096 (target_get_ipa_tdesc_idx)
3097 (target_supports_tracepoints)
3098 (target_supports_fast_tracepoints)
3099 (target_get_min_fast_tracepoint_insn_len)
3100 (target_thread_stopped)
3101 (target_pause_all)
3102 (target_unpause_all)
3103 (target_stabilize_threads)
3104 (target_install_fast_tracepoint_jump_pad)
3105 (target_emit_ops)
3106 (target_supports_disable_randomization)
3107 (target_supports_agent)
3108 (target_enable_btrace)
3109 (target_disable_btrace)
3110 (target_read_btrace)
3111 (target_read_btrace_conf)
3112 (target_supports_range_stepping)
3113 (target_supports_stopped_by_sw_breakpoint)
3114 (target_stopped_by_sw_breakpoint)
3115 (target_supports_stopped_by_hw_breakpoint)
3116 (target_supports_hardware_single_step)
3117 (target_stopped_by_hw_breakpoint)
3118 (target_breakpoint_kind_from_pc)
3119 (target_breakpoint_kind_from_current_state)
3120 (target_supports_software_single_step)
3121 (target_core_of_thread)
3122 (target_thread_name)
3123 (target_thread_handle)
3124 * win32-low.cc (do_initial_child_stuff)
3125
3126 Rename target op default definitions listed below.
3127
3128 * target.cc (process_target::post_create_inferior): Rename as ...
3129 (process_stratum_target::post_create_inferior): ... this.
3130 (process_target::prepare_to_access_memory): Rename as ...
3131 (process_stratum_target::prepare_to_access_memory): ... this.
3132 (process_target::done_accessing_memory): Rename as ...
3133 (process_stratum_target::done_accessing_memory): ... this.
3134 (process_target::look_up_symbols): Rename as ...
3135 (process_stratum_target::look_up_symbols): ... this.
3136 (process_target::supports_read_auxv): Rename as ...
3137 (process_stratum_target::supports_read_auxv): ... this.
3138 (process_target::read_auxv): Rename as ...
3139 (process_stratum_target::read_auxv): ... this.
3140 (process_target::supports_z_point_type): Rename as ...
3141 (process_stratum_target::supports_z_point_type): ... this.
3142 (process_target::insert_point): Rename as ...
3143 (process_stratum_target::insert_point): ... this.
3144 (process_target::remove_point): Rename as ...
3145 (process_stratum_target::remove_point): ... this.
3146 (process_target::stopped_by_sw_breakpoint): Rename as ...
3147 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3148 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3149 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3150 (process_target::stopped_by_hw_breakpoint): Rename as ...
3151 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3152 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3153 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3154 (process_target::supports_hardware_single_step): Rename as ...
3155 (process_stratum_target::supports_hardware_single_step): ... this.
3156 (process_target::stopped_by_watchpoint): Rename as ...
3157 (process_stratum_target::stopped_by_watchpoint): ... this.
3158 (process_target::stopped_data_address): Rename as ...
3159 (process_stratum_target::stopped_data_address): ... this.
3160 (process_target::supports_read_offsets): Rename as ...
3161 (process_stratum_target::supports_read_offsets): ... this.
3162 (process_target::read_offsets): Rename as ...
3163 (process_stratum_target::read_offsets): ... this.
3164 (process_target::supports_get_tls_address): Rename as ...
3165 (process_stratum_target::supports_get_tls_address): ... this.
3166 (process_target::get_tls_address): Rename as ...
3167 (process_stratum_target::get_tls_address): ... this.
3168 (process_target::hostio_last_error): Rename as ...
3169 (process_stratum_target::hostio_last_error): ... this.
3170 (process_target::supports_qxfer_osdata): Rename as ...
3171 (process_stratum_target::supports_qxfer_osdata): ... this.
3172 (process_target::qxfer_osdata): Rename as ...
3173 (process_stratum_target::qxfer_osdata): ... this.
3174 (process_target::supports_qxfer_siginfo): Rename as ...
3175 (process_stratum_target::supports_qxfer_siginfo): ... this.
3176 (process_target::qxfer_siginfo): Rename as ...
3177 (process_stratum_target::qxfer_siginfo): ... this.
3178 (process_target::supports_non_stop): Rename as ...
3179 (process_stratum_target::supports_non_stop): ... this.
3180 (process_target::async): Rename as ...
3181 (process_stratum_target::async): ... this.
3182 (process_target::start_non_stop): Rename as ...
3183 (process_stratum_target::start_non_stop): ... this.
3184 (process_target::supports_multi_process): Rename as ...
3185 (process_stratum_target::supports_multi_process): ... this.
3186 (process_target::supports_fork_events): Rename as ...
3187 (process_stratum_target::supports_fork_events): ... this.
3188 (process_target::supports_vfork_events): Rename as ...
3189 (process_stratum_target::supports_vfork_events): ... this.
3190 (process_target::supports_exec_events): Rename as ...
3191 (process_stratum_target::supports_exec_events): ... this.
3192 (process_target::handle_new_gdb_connection): Rename as ...
3193 (process_stratum_target::handle_new_gdb_connection): ... this.
3194 (process_target::handle_monitor_command): Rename as ...
3195 (process_stratum_target::handle_monitor_command): ... this.
3196 (process_target::core_of_thread): Rename as ...
3197 (process_stratum_target::core_of_thread): ... this.
3198 (process_target::supports_read_loadmap): Rename as ...
3199 (process_stratum_target::supports_read_loadmap): ... this.
3200 (process_target::read_loadmap): Rename as ...
3201 (process_stratum_target::read_loadmap): ... this.
3202 (process_target::process_qsupported): Rename as ...
3203 (process_stratum_target::process_qsupported): ... this.
3204 (process_target::supports_tracepoints): Rename as ...
3205 (process_stratum_target::supports_tracepoints): ... this.
3206 (process_target::read_pc): Rename as ...
3207 (process_stratum_target::read_pc): ... this.
3208 (process_target::write_pc): Rename as ...
3209 (process_stratum_target::write_pc): ... this.
3210 (process_target::supports_thread_stopped): Rename as ...
3211 (process_stratum_target::supports_thread_stopped): ... this.
3212 (process_target::thread_stopped): Rename as ...
3213 (process_stratum_target::thread_stopped): ... this.
3214 (process_target::supports_get_tib_address): Rename as ...
3215 (process_stratum_target::supports_get_tib_address): ... this.
3216 (process_target::get_tib_address): Rename as ...
3217 (process_stratum_target::get_tib_address): ... this.
3218 (process_target::pause_all): Rename as ...
3219 (process_stratum_target::pause_all): ... this.
3220 (process_target::unpause_all): Rename as ...
3221 (process_stratum_target::unpause_all): ... this.
3222 (process_target::stabilize_threads): Rename as ...
3223 (process_stratum_target::stabilize_threads): ... this.
3224 (process_target::supports_fast_tracepoints): Rename as ...
3225 (process_stratum_target::supports_fast_tracepoints): ... this.
3226 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3227 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3228 (process_target::emit_ops): Rename as ...
3229 (process_stratum_target::emit_ops): ... this.
3230 (process_target::supports_disable_randomization): Rename as ...
3231 (process_stratum_target::supports_disable_randomization): ... this.
3232 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3233 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3234 (process_target::qxfer_libraries_svr4): Rename as ...
3235 (process_stratum_target::qxfer_libraries_svr4): ... this.
3236 (process_target::supports_agent): Rename as ...
3237 (process_stratum_target::supports_agent): ... this.
3238 (process_target::enable_btrace): Rename as ...
3239 (process_stratum_target::enable_btrace): ... this.
3240 (process_target::disable_btrace): Rename as ...
3241 (process_stratum_target::disable_btrace): ... this.
3242 (process_target::read_btrace): Rename as ...
3243 (process_stratum_target::read_btrace): ... this.
3244 (process_target::read_btrace_conf): Rename as ...
3245 (process_stratum_target::read_btrace_conf): ... this.
3246 (process_target::supports_range_stepping): Rename as ...
3247 (process_stratum_target::supports_range_stepping): ... this.
3248 (process_target::supports_pid_to_exec_file): Rename as ...
3249 (process_stratum_target::supports_pid_to_exec_file): ... this.
3250 (process_target::pid_to_exec_file): Rename as ...
3251 (process_stratum_target::pid_to_exec_file): ... this.
3252 (process_target::supports_multifs): Rename as ...
3253 (process_stratum_target::supports_multifs): ... this.
3254 (process_target::multifs_open): Rename as ...
3255 (process_stratum_target::multifs_open): ... this.
3256 (process_target::multifs_unlink): Rename as ...
3257 (process_stratum_target::multifs_unlink): ... this.
3258 (process_target::multifs_readlink): Rename as ...
3259 (process_stratum_target::multifs_readlink): ... this.
3260 (process_target::breakpoint_kind_from_pc): Rename as ...
3261 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3262 (process_target::breakpoint_kind_from_current_state): Rename as ...
3263 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3264 (process_target::thread_name): Rename as ...
3265 (process_stratum_target::thread_name): ... this.
3266 (process_target::thread_handle): Rename as ...
3267 (process_stratum_target::thread_handle): ... this.
3268 (process_target::supports_software_single_step): Rename as ...
3269 (process_stratum_target::supports_software_single_step): ... this.
3270 (process_target::supports_catch_syscall): Rename as ...
3271 (process_stratum_target::supports_catch_syscall): ... this.
3272 (process_target::get_ipa_tdesc_idx): Rename as ...
3273 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3274
478f9adf
PA
32752020-02-20 Pedro Alves <palves@redhat.com>
3276
3277 * target.cc (set_target_ops): Simply copy the given target pointer
3278 instead of creating a copy of the pointed object.
3279
d633e831
TBA
32802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3281
3282 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3283 of process_target.
3284
3285 * target.h (struct process_stratum_target): Remove the target op.
3286 (class process_target): Add the target op.
3287 (target_get_ipa_tdesc_idx): Update the macro.
3288 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3289
3290 Update the derived classes and callers below.
3291
3292 * linux-low.cc (linux_target_ops): Update.
3293 (linux_get_ipa_tdesc_idx): Turn into ...
3294 (linux_process_target::get_ipa_tdesc_idx): ... this.
3295 * linux-low.h (class linux_process_target): Update.
3296 * lynx-low.cc (lynx_target_ops): Update.
3297 * nto-low.cc (nto_target_ops): Update.
3298 * win32-low.cc (win32_target_ops): Update.
3299
bc8d3ae4
TBA
33002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3301
3302 Turn process_stratum_target's supports_catch_syscall op into a
3303 method of process_target.
3304
3305 * target.h (struct process_stratum_target): Remove the target op.
3306 (class process_target): Add the target op.
3307 (target_supports_catch_syscall): Update the macro.
3308 * target.cc (process_target::supports_catch_syscall): Define.
3309
3310 Update the derived classes and callers below.
3311
3312 * linux-low.cc (linux_target_ops): Update.
3313 (linux_supports_catch_syscall): Turn into ...
3314 (linux_process_target::supports_catch_syscall): ... this.
3315 * linux-low.h (class linux_process_target): Update.
3316 * lynx-low.cc (lynx_target_ops): Update.
3317 * nto-low.cc (nto_target_ops): Update.
3318 * win32-low.cc (win32_target_ops): Update.
3319
5303a34f
TBA
33202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3321
3322 Turn process_stratum_target's supports_software_single_step op
3323 into a method of process_target.
3324
3325 * target.h (struct process_stratum_target): Remove the target op.
3326 (class process_target): Add the target op.
3327 (target_supports_software_single_step): Update the macro.
3328 * target.cc (process_target::supports_software_single_step): Define.
3329
3330 Update the derived classes and callers below.
3331
3332 * linux-low.cc (linux_target_ops): Update.
3333 (linux_supports_software_single_step): Turn into ...
3334 (linux_process_target::supports_software_single_step): ... this.
3335 * linux-low.h (class linux_process_target): Update.
3336 * lynx-low.cc (lynx_target_ops): Update.
3337 * nto-low.cc (nto_target_ops): Update.
3338 * win32-low.cc (win32_target_ops): Update.
3339
7f63b89b
TBA
33402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3341
3342 Turn process_stratum_target's thread_name and thread_handle ops
3343 into methods of process_target.
3344
3345 * target.h (struct process_stratum_target): Remove the target ops.
3346 (class process_target): Add the target ops.
3347 (target_thread_name): Update the macro.
3348 (target_thread_handle): Update the macro.
3349 * target.cc (process_target::thread_name): Define.
3350 (process_target::thread_handle): Define.
3351
3352 Update the derived classes and callers below.
3353
3354 * linux-low.cc (linux_target_ops): Update.
3355 (linux_process_target::thread_name): Define.
3356 (linux_process_target::thread_handle): Define.
3357 * linux-low.h (class linux_process_target): Update.
3358 * lynx-low.cc (lynx_target_ops): Update.
3359 * nto-low.cc (nto_target_ops): Update.
3360 * win32-low.cc (win32_target_ops): Update.
3361
d367006f
TBA
33622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3363
3364 Turn process_stratum_target's breakpoint_kind_from_pc,
3365 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3366 ops into methods of process_target.
3367
3368 * target.h (struct process_stratum_target): Remove the target op.
3369 (class process_target): Add the target op.
3370 (target_breakpoint_kind_from_pc): Update the macro.
3371 (target_breakpoint_kind_from_current_state): Update the macro.
3372 (default_breakpoint_kind_from_pc): Remove declaration.
3373 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3374 (process_target::breakpoint_kind_from_pc): ... this.
3375 (process_target::breakpoint_kind_from_current_state): Define.
3376
3377 Update the derived classes and callers below.
3378
3379 * mem-break.cc (bp_size): Update.
3380 (bp_opcode): Update.
3381 * linux-low.cc (linux_target_ops): Update.
3382 (linux_wait_1): Update.
3383 (linux_breakpoint_kind_from_pc): Turn into ...
3384 (linux_process_target::breakpoint_kind_from_pc): ... this.
3385 (linux_sw_breakpoint_from_kind): Turn into ...
3386 (linux_process_target::sw_breakpoint_from_kind): ... this.
3387 (linux_breakpoint_kind_from_current_state): Turn into ...
3388 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3389 * linux-low.h (class linux_process_target): Update.
3390 * lynx-low.cc (lynx_target_ops): Update.
3391 (lynx_process_target::sw_breakpoint_from_kind): Define.
3392 * lynx-low.h (class lynx_process_target): Update.
3393 * nto-low.cc (nto_target_ops): Update.
3394 (nto_sw_breakpoint_from_kind): Turn into ...
3395 (nto_process_target::sw_breakpoint_from_kind): ... this.
3396 * nto-low.h (class nto_process_target): Update.
3397 * win32-low.cc (win32_target_ops): Update.
3398 (win32_sw_breakpoint_from_kind): Turn into ...
3399 (win32_process_target::sw_breakpoint_from_kind): ... this.
3400 * win32-low.h (class win32_process_target): Update.
3401
c9b7b804
TBA
34022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3403
3404 Turn process_stratum_target's multifs_open, multifs_readlink,
3405 multifs_unlink ops into methods of process_target.
3406
3407 * target.h (struct process_stratum_target): Remove the target ops.
3408 (class process_target): Add the target ops. Also add
3409 'supports_multifs'.
3410 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3411 "sys/stat.h".
3412 (process_target::supports_multifs): Define.
3413 (process_target::multifs_open): Define.
3414 (process_target::multifs_readlink): Define.
3415 (process_target::multifs_unlink): Define.
3416
3417 Update the derived classes and callers below.
3418
3419 * hostio.cc (handle_setfs): Update.
3420 (handle_open): Update.
3421 (handle_unlink): Update.
3422 (handle_readlink): Update.
3423 * linux-low.cc (linux_target_ops): Update.
3424 (linux_process_target::supports_multifs): Define.
3425 (linux_process_target::multifs_open): Define.
3426 (linux_process_target::multifs_readlink): Define.
3427 (linux_process_target::multifs_unlink): Define.
3428 * linux-low.h (class linux_process_target): Update.
3429 * lynx-low.cc (lynx_target_ops): Update.
3430 * nto-low.cc (nto_target_ops): Update.
3431 * win32-low.cc (win32_target_ops): Update.
3432
8247b823
TBA
34332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3434
3435 Turn process_stratum_target's pid_to_exec_file op into a method
3436 of process_target.
3437
3438 * target.h (struct process_stratum_target): Remove the target op.
3439 (class process_target): Add the target op. Also add
3440 'supports_pid_to_exec_file'.
3441 * target.cc (process_target::pid_to_exec_file): Define.
3442 (process_target::supports_pid_to_exec_file): Define.
3443
3444 Update the derived classes and callers below.
3445
3446 * server.cc (handle_qxfer_exec_file): Update.
3447 (handle_query): Update.
3448 * linux-low.cc (linux_target_ops): Update.
3449 (linux_process_target::supports_pid_to_exec_file): Define.
3450 (linux_process_target::pid_to_exec_file): Define.
3451 * linux-low.h (class linux_process_target): Update.
3452 * lynx-low.cc (lynx_target_ops): Update.
3453 * nto-low.cc (nto_target_ops): Update.
3454 * win32-low.cc (win32_target_ops): Update.
3455
2526e0cd
TBA
34562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3457
3458 Turn process_stratum_target's supports_range_stepping op into a
3459 method of process_target.
3460
3461 * target.h (struct process_stratum_target): Remove the target op.
3462 (class process_target): Add the target op.
3463 (target_supports_range_stepping): Update the macro.
3464 * target.cc (process_target::supports_range_stepping): Define.
3465
3466 Update the derived classes and callers below.
3467
3468 * linux-low.cc (linux_target_ops): Update.
3469 (linux_supports_range_stepping): Turn into ...
3470 (linux_process_target::supports_range_stepping): ... this.
3471 * linux-low.h (class linux_process_target): Update.
3472 * lynx-low.cc (lynx_target_ops): Update.
3473 * nto-low.cc (nto_target_ops): Update.
3474 * win32-low.cc (win32_target_ops): Update.
3475
79597bdd
TBA
34762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3477
3478 Turn process_stratum_target's btrace-related ops (enable_btrace,
3479 disable_btrace, read_btrace, read_btrace_conf) into methods of
3480 process_target.
3481
3482 * target.h (struct process_stratum_target): Remove the target ops.
3483 (class process_target): Add the target ops.
3484 (target_enable_btrace): Update.
3485 (target_disable_btrace): Update.
3486 (target_read_btrace): Update.
3487 (target_read_btrace_conf): Update.
3488 * target.cc (process_target::enable_btrace): Define.
3489 (process_target::disable_btrace): Define.
3490 (process_target::read_btrace): Define.
3491 (process_target::read_btrace_conf): Define.
3492
3493 Update the derived classes and callers below.
3494
3495 * linux-low.cc (linux_target_ops): Update.
3496 (linux_process_target:enable_btrace): Define as a wrapper around
3497 linux_enable_btrace.
3498 (linux_low_disable_btrace): Turn into ...
3499 (linux_process_target::disable_btrace): ... this.
3500 (linux_low_read_btrace): Turn into ...
3501 (linux_process_target::read_btrace): ... this.
3502 (linux_low_btrace_conf): Turn into ...
3503 (linux_process_target::read_btrace_conf): ... this.
3504 * linux-low.h (class linux_process_target): Update.
3505 * lynx-low.cc (lynx_target_ops): Update.
3506 * nto-low.cc (nto_target_ops): Update.
3507 * win32-low.cc (win32_target_ops): Update.
3508
c0245cb9
TBA
35092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3510
3511 Turn process_stratum_target's supports_agent op into a method of
3512 process_target.
3513
3514 * target.h (struct process_stratum_target): Remove the target op.
3515 (class process_target): Add the target op.
3516 (target_supports_agent): Update the macro.
3517 * target.cc (process_target::supports_agent): Define.
3518
3519 Update the derived classes and callers below.
3520
3521 * linux-low.cc (linux_target_ops): Update.
3522 (linux_supports_agent): Turn into ...
3523 (linux_process_target::supports_agent): ... this.
3524 * linux-low.h (class linux_process_target): Update.
3525 * lynx-low.cc (lynx_target_ops): Update.
3526 * nto-low.cc (nto_target_ops): Update.
3527 * win32-low.cc (win32_target_ops): Update.
3528
974387bb
TBA
35292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3530
3531 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3532 method of process_target.
3533
3534 * target.h (struct process_stratum_target): Remove the target op.
3535 (class process_target): Add the target op. Also add
3536 'supports_qxfer_libraries_svr4'.
3537 * target.cc (process_target::qxfer_libraries_svr4): Define.
3538 (process_target::supports_qxfer_libraries_svr4): Define.
3539
3540 Update the derived classes and callers below.
3541
3542 * server.cc (handle_qxfer_libraries_svr4): Update.
3543 (handle_query): Update.
3544 * linux-low.cc (linux_target_ops): Update.
3545 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3546 (linux_qxfer_libraries_svr4): Turn into ...
3547 (linux_process_target::qxfer_libraries_svr4): ... this.
3548 * linux-low.h (class linux_process_target): Update.
3549 * lynx-low.cc (lynx_target_ops): Update.
3550 * nto-low.cc (nto_target_ops): Update.
3551 * win32-low.cc (win32_target_ops): Update.
3552
c756403b
TBA
35532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3554
3555 Turn process_stratum_target's supports_disable_randomization op
3556 into a method of process_target.
3557
3558 * target.h (struct process_stratum_target): Remove the target op.
3559 (class process_target): Add the target op.
3560 (target_supports_disable_randomization): Update the macro.
3561 * target.cc (process_target::supports_disable_randomization): Define.
3562
3563 Update the derived classes and callers below.
3564
3565 * linux-low.cc (linux_target_ops): Update.
3566 (linux_supports_disable_randomization): Turn into ...
3567 (linux_process_target::supports_disable_randomization): ... this.
3568 * linux-low.h (class linux_process_target): Update.
3569 * lynx-low.cc (lynx_target_ops): Update.
3570 * nto-low.cc (nto_target_ops): Update.
3571 * win32-low.cc (win32_target_ops): Update.
3572
345dafad
TBA
35732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3574
3575 Turn process_stratum_target's emit_ops op into a method of
3576 process_target.
3577
3578 * target.h (struct process_stratum_target): Remove the target op.
3579 (class process_target): Add the target op.
3580 (target_emit_ops): Update the macro.
3581 * target.cc (process_target::emit_ops): Define.
3582
3583 Update the derived classes and callers below.
3584
3585 * linux-low.cc (linux_target_ops): Update.
3586 (linux_emit_ops): Turn into ...
3587 (linux_process_target::emit_ops): ... this.
3588 * linux-low.h (class linux_process_target): Update.
3589 * lynx-low.cc (lynx_target_ops): Update.
3590 * nto-low.cc (nto_target_ops): Update.
3591 * win32-low.cc (win32_target_ops): Update.
3592
c23c9391
TBA
35932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3594
3595 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3596 and get_min_fast_tracepoint_insn_len ops into methods of
3597 process_target.
3598
3599 * target.h (struct process_stratum_target): Remove the target ops.
3600 (class process_target): Add the target ops. Also add
3601 'supports_fast_tracepoints'.
3602 (target_supports_fast_tracepoints): Update the macro.
3603 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3604 (install_fast_tracepoint_jump_pad): Update and rename the macro
3605 to ...
3606 (target_install_fast_tracepoint_jump_pad): ... this.
3607 * target.cc (process_target::supports_fast_tracepoints): Define.
3608 (process_target::install_fast_tracepoint_jump_pad): Define.
3609 (process_target::get_min_fast_tracepoint_insn_len): Define.
3610
3611 Update the derived classes and callers below.
3612
3613 * tracepoint.cc (install_fast_tracepoint): Update.
3614 * linux-low.cc (linux_target_ops): Update.
3615 (linux_process_target::supports_fast_tracepoints): Define.
3616 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3617 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3618 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3619 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3620 * linux-low.h (class linux_process_target): Update.
3621 * lynx-low.cc (lynx_target_ops): Update.
3622 * nto-low.cc (nto_target_ops): Update.
3623 * win32-low.cc (win32_target_ops): Update.
3624
5c9eb2f2
TBA
36252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3626
3627 Turn process_stratum_target's stabilize_threads op into a
3628 method of process_target.
3629
3630 * target.h (struct process_stratum_target): Remove the target op.
3631 (class process_target): Add the target op.
3632 (target_stabilize_threads): Update the macro.
3633 * target.cc (process_target::stabilize_threads): Define.
3634
3635 Update the derived classes and callers below.
3636
3637 * server.cc (handle_status): Update.
3638 * tracepoint.cc (cmd_qtdp): Update.
3639 (cmd_qtstart): Update.
3640 * linux-low.cc (linux_target_ops): Update.
3641 (linux_stabilize_threads): Turn into ...
3642 (linux_process_target::stabilize_threads): ... this.
3643 (linux_wait_1): Update.
3644 * linux-low.h (class linux_process_target): Update.
3645 * lynx-low.cc (lynx_target_ops): Update.
3646 * nto-low.cc (nto_target_ops): Update.
3647 * win32-low.cc (win32_target_ops): Update.
3648
29e8dc09
TBA
36492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3650
3651 Turn process_stratum_target's pause_all and unpause_all ops
3652 into methods of process_target.
3653
3654 * target.h (struct process_stratum_target): Remove the target ops.
3655 (class process_target): Add the target ops.
3656 (pause_all): Update the macro and rename to...
3657 (target_pause_all): ... this.
3658 (unpause_all): Update the macro and rename to...
3659 (target_unpause_all): ... this.
3660 * target.cc (process_target::pause_all): Define.
3661 (process_target::unpause_all): Define.
3662
3663 Update the derived classes and callers below.
3664
3665 * server.cc (handle_status): Update.
3666 * tracepoint.cc (clear_installed_tracepoints): Update.
3667 (cmd_qtdp): Update.
3668 (cmd_qtstart): Update.
3669 (stop_tracing): Update.
3670 (cmd_qtstatus): Update.
3671 (upload_fast_traceframes): Update.
3672 (run_inferior_command): Update.
3673 * linux-low.cc (linux_target_ops): Update.
3674 (linux_pause_all): Turn into ...
3675 (linux_process_target::pause_all): ... this.
3676 (linux_unpause_all): Turn into ...
3677 (linux_process_target::unpause_all): ... this.
3678 (linux_process_target::prepare_to_access_memory): Update.
3679 (linux_process_target::done_accessing_memory): Update.
3680 * linux-low.h (class linux_process_target): Update.
3681 * lynx-low.cc (lynx_target_ops): Update.
3682 * nto-low.cc (nto_target_ops): Update.
3683 * win32-low.cc (win32_target_ops): Update.
3684
4e2e869c
TBA
36852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3686
3687 Turn process_stratum_target's get_tib_address op into a method of
3688 process_target.
3689
3690 * target.h (struct process_stratum_target): Remove the target op.
3691 (class process_target): Add the target op. Also add
3692 'supports_get_tib_address'.
3693 * target.cc (process_target::get_tib_address): Define.
3694 (process_target::supports_get_tib_address): Define.
3695
3696 Update the derived classes and callers below.
3697
3698 * server.cc (handle_query): Update.
3699 * linux-low.cc (win32_target_ops): Update.
3700 * lynx-low.cc (lynx_target_ops): Update.
3701 * nto-low.cc (nto_target_ops): Update.
3702 * win32-low.cc (win32_target_ops): Update.
3703 (win32_process_target::supports_get_tib_address): Define.
3704 (win32_get_tib_address): Turn into ...
3705 (win32_process_target::get_tib_address): ... this.
3706 * win32-low.h (class win32_process_target): Update.
3707
68119632
TBA
37082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3709
3710 Turn process_stratum_target's thread_stopped op into a method of
3711 process_target.
3712
3713 * target.h (struct process_stratum_target): Remove the target op.
3714 (class process_target): Add the target op. Also add
3715 'supports_thread_stopped'.
3716 (target_thread_stopped): Update the macro.
3717 * target.cc (process_target::thread_stopped): Define.
3718 (process_target::supports_thread_stopped): Define.
3719 (prepare_to_access_memory): Update.
3720
3721 Update the derived classes and callers below.
3722
3723 * server.cc (queue_stop_reply_callback): Update.
3724 * linux-low.cc (linux_target_ops): Update.
3725 (linux_process_target::supports_thread_stopped): Define.
3726 (linux_thread_stopped): Turn into ...
3727 (linux_process_target::thread_stopped): ... this.
3728 * linux-low.h (class linux_process_target): Update.
3729 * lynx-low.cc (lynx_target_ops): Update.
3730 * nto-low.cc (nto_target_ops): Update.
3731 * win32-low.cc (win32_target_ops): Update.
3732
770d8f6a
TBA
37332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3734
3735 Turn process_stratum_target's read_pc and write_pc ops into
3736 methods of process_target.
3737
3738 * target.h (struct process_stratum_target): Remove the target ops.
3739 (class process_target): Add the target ops.
3740 * target.cc (process_target::read_pc): Define.
3741 (process_target::write_pc): Define.
3742
3743 Update the derived classes and callers below.
3744
3745 * regcache.cc (regcache_read_pc): Update.
3746 (regcache_write_pc): Update.
3747 * linux-low.cc (linux_target_ops): Update.
3748 (linux_read_pc): Turn into ...
3749 (linux_process_target::read_pc): ... this.
3750 (linux_write_pc): Turn into ...
3751 (linux_process_target::write_pc): ... this.
3752 * linux-low.h (class linux_process_target): Update.
3753 * lynx-low.cc (lynx_target_ops): Update.
3754 * nto-low.cc (nto_target_ops): Update.
3755 * win32-low.cc (win32_target_ops): Update.
3756
290732bf
TBA
37572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3758
3759 Turn process_stratum_target's supports_tracepoints op into a
3760 method of process_target.
3761
3762 * target.h (struct process_stratum_target): Remove the target op.
3763 (class process_target): Add the target op.
3764 (target_supports_tracepoints): Update the macro.
3765 * target.cc (process_target::supports_tracepoints): Define.
3766
3767 Update the derived classes and callers below.
3768
3769 * linux-low.cc (linux_target_ops): Update.
3770 (linux_supports_tracepoints): Turn into ...
3771 (linux_process_target::supports_tracepoints): ... this.
3772 * linux-low.h (class linux_process_target): Update.
3773 * lynx-low.cc (lynx_target_ops): Update.
3774 * nto-low.cc (nto_target_ops): Update.
3775 * win32-low.cc (win32_target_ops): Update.
3776
0df28b1b
TBA
37772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3778
3779 Turn process_stratum_target's process_qsupported op into a method
3780 of process_target.
3781
3782 * target.h (struct process_stratum_target): Remove the target op.
3783 (class process_target): Add the target op.
3784 (target_process_qsupported): Update the macro.
3785 * target.cc (process_target::process_qsupported): Define.
3786
3787 Update the derived classes and callers below.
3788
3789 * linux-low.cc (linux_target_ops): Update.
3790 (linux_process_qsupported): Turn into ...
3791 (linux_process_target::process_qsupported): ... this.
3792 * linux-low.h (class linux_process_target): Update.
3793 * lynx-low.cc (lynx_target_ops): Update.
3794 * nto-low.cc (nto_target_ops): Update.
3795 * win32-low.cc (win32_target_ops): Update.
3796
9da41fda
TBA
37972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3798
3799 Turn process_stratum_target's read_loadmap op into a method of
3800 process_target.
3801
3802 * target.h (struct process_stratum_target): Remove the target op.
3803 (class process_target): Add the target op. Also add
3804 'supports_read_loadmap'.
3805 * target.cc (process_target::read_loadmap): Define.
3806 (process_target::supports_read_loadmap): Define.
3807
3808 Update the derived classes and callers below.
3809
3810 * server.cc (handle_qxfer_fdpic): Update.
3811 (handle_query): Update.
3812 * linux-low.cc (linux_target_ops): Update.
3813 (linux_process_target::supports_read_loadmap): Define.
3814 (linux_read_loadmap): Turn into ...
3815 (linux_process_target::read_loadmap): ... this.
3816 * linux-low.h (class linux_process_target): Update.
3817 * lynx-low.cc (lynx_target_ops): Update.
3818 * nto-low.cc (nto_target_ops): Update.
3819 * win32-low.cc (win32_target_ops): Update.
3820
95a45fc1
TBA
38212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3822
3823 Turn process_stratum_target's core_of_thread op into a method of
3824 process_target.
3825
3826 * target.h (struct process_stratum_target): Remove the target op.
3827 (class process_target): Add the target op.
3828 (target_core_of_thread): Update the macro.
3829 * target.cc (process_target::core_of_thread): Define.
3830
3831 Update the derived classes and callers below.
3832
3833 * linux-low.cc (linux_target_ops): Update.
3834 (linux_process_target::core_of_thread): Define.
3835 * linux-low.h (class linux_process_target): Update.
3836 * lynx-low.cc (lynx_target_ops): Update.
3837 * nto-low.cc (nto_target_ops): Update.
3838 * win32-low.cc (win32_target_ops): Update.
3839
55cf3021
TBA
38402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3841
3842 Turn process_stratum_target's handle_monitor_command op into a
3843 method of process_target.
3844
3845 * target.h (struct process_stratum_target): Remove the target op.
3846 (class process_target): Add the target op.
3847 (target_handle_monitor_command): Update the macro.
3848 * target.cc (process_target::handle_monitor_command): Define.
3849
3850 Update the derived classes and callers below.
3851
3852 * server.cc (handle_query): Update.
3853 * linux-low.cc (linux_target_ops): Update.
3854 (linux_process_target::handle_monitor_command): Define.
3855 * linux-low.h (class linux_process_target): Update.
3856 * lynx-low.cc (lynx_target_ops): Update.
3857 * nto-low.cc (nto_target_ops): Update.
3858 * win32-low.cc (win32_target_ops): Update.
3859
fb00dfce
TBA
38602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3861
3862 Turn process_stratum_target's handle_new_gdb_connection op into a
3863 method of process_target.
3864
3865 * target.h (struct process_stratum_target): Remove the target op.
3866 (class process_target): Add the target op.
3867 (target_handle_new_gdb_connection): Update the macro.
3868 * target.cc (process_target::handle_new_gdb_connection): Define.
3869
3870 Update the derived classes and callers below.
3871
3872 * linux-low.cc (linux_target_ops): Update.
3873 (linux_handle_new_gdb_connection): Turn into ...
3874 (linux_process_target::handle_new_gdb_connection): ... this.
3875 * linux-low.h (class linux_process_target): Update.
3876 * lynx-low.cc (lynx_target_ops): Update.
3877 * nto-low.cc (nto_target_ops): Update.
3878 * win32-low.cc (win32_target_ops): Update.
3879
9690a72a
TBA
38802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3881
3882 Turn process_stratum_target's supports_fork_events,
3883 supports_vfork_events, and supports_exec_events ops into methods
3884 of process_target.
3885
3886 * target.h (struct process_stratum_target): Remove the target ops.
3887 (class process_target): Add the target ops.
3888 (target_supports_fork_events): Update the macro.
3889 (target_supports_vfork_events): Update the macro.
3890 (target_supports_exec_events): Update the macro.
3891 * target.cc (process_target::supports_fork_events): Define.
3892 (process_target::supports_vfork_events): Define.
3893 (process_target::supports_exec_events): Define.
3894
3895 Update the derived classes and callers below.
3896
3897 * linux-low.cc (linux_target_ops): Update.
3898 (linux_supports_fork_events): Turn into ...
3899 (linux_process_target::supports_fork_events): ... this.
3900 (linux_supports_vfork_events): Turn into ...
3901 (linux_process_target::supports_vfork_events): ... this.
3902 (linux_supports_exec_events): Turn into ...
3903 (linux_process_target::supports_exec_events): ... this.
3904 * linux-low.h (class linux_process_target): Update.
3905 * lynx-low.cc (lynx_target_ops): Update.
3906 * nto-low.cc (nto_target_ops): Update.
3907 * win32-low.cc (win32_target_ops): Update.
3908
652aef77
TBA
39092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3910
3911 Turn process_stratum_target's supports_multi_process op into a
3912 method of process_target.
3913
3914 * target.h (struct process_stratum_target): Remove the target op.
3915 (class process_target): Add the target op.
3916 * target.cc (process_target::supports_multi_process): Define.
3917 (target_supports_multi_process): Update.
3918
3919 Update the derived classes and callers below.
3920
3921 * linux-low.cc (linux_target_ops): Update.
3922 (linux_supports_multi_process): Turn into ...
3923 (linux_process_target::supports_multi_process): ... this.
3924 * linux-low.h (class linux_process_target): Update.
3925 * lynx-low.cc (lynx_target_ops): Update.
3926 * nto-low.cc (nto_target_ops): Update.
3927 * win32-low.cc (win32_target_ops): Update.
3928
0dc587d4
TBA
39292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3930
3931 Turn process_stratum_target's supports_non_stop, async, and
3932 start_non_stop ops into methods of process_target.
3933
3934 * target.h (struct process_stratum_target): Remove the target ops.
3935 (class process_target): Add the target ops.
3936 (target_supports_non_stop): Update the macro.
3937 (target_async): Update the macro.
3938 (start_non_stop): Remove declaration.
3939 * target.cc (process_target::supports_non_stop): Define.
3940 (process_target::async): Define.
3941 (process_target::start_non_stop): Define.
3942 (start_non_stop): Remove.
3943
3944 Update the derived classes and callers below.
3945
3946 * server.cc (handle_qxfer_siginfo): Update.
3947 (handle_query): Update.
3948 * linux-low.cc (linux_target_ops): Update.
3949 (linux_supports_non_stop): Turn into ...
3950 (linux_process_target::supports_non_stop): ... this.
3951 (linux_async): Turn into ...
3952 (linux_process_target::async): ... this.
3953 (linux_start_non_stop): Turn into ...
3954 (linux_process_target::start_non_stop): ... 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 (nto_supports_non_stop): Remove; rely on the default behavior
3959 instead.
3960 * win32-low.cc (win32_target_ops): Update.
3961
d7abedf7
TBA
39622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3963
3964 Turn process_stratum_target's qxfer_siginfo op into a method of
3965 process_target.
3966
3967 * target.h (struct process_stratum_target): Remove the target op.
3968 (class process_target): Add the target op. Also add
3969 'supports_qxfer_siginfo'.
3970 * target.cc (process_target::qxfer_siginfo): Define.
3971 (process_target::supports_qxfer_siginfo): Define.
3972
3973 Update the derived classes and callers below.
3974
3975 * server.cc (handle_qxfer_siginfo): Update.
3976 (handle_query): Update.
3977 * linux-low.cc (linux_target_ops): Update.
3978 (linux_process_target::supports_qxfer_siginfo): Define.
3979 (linux_xfer_siginfo): Turn into ...
3980 (linux_process_target::qxfer_siginfo): ... this.
3981 * linux-low.h (class linux_process_target): Update.
3982 * lynx-low.cc (lynx_target_ops): Update.
3983 * nto-low.cc (nto_target_ops): Update.
3984 * win32-low.cc (win32_target_ops): Update.
3985
2d0795ee
TBA
39862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3987
3988 Turn process_stratum_target's qxfer_osdata op into a method of
3989 process_target.
3990
3991 * target.h (struct process_stratum_target): Remove the target op.
3992 (class process_target): Add the target op. Also add
3993 'supports_qxfer_osdata'.
3994 * target.cc (process_target::qxfer_osdata): Define.
3995 (process_target::supports_qxfer_osdata): Define.
3996
3997 Update the derived classes and callers below.
3998
3999 * server.cc (handle_qxfer_osdata): Update.
4000 (handle_query): Update.
4001 * linux-low.cc (linux_target_ops): Update.
4002 (linux_process_target::supports_qxfer_osdata): Define.
4003 (linux_qxfer_osdata): Turn into ...
4004 (linux_process_target::qxfer_osdata): ... this.
4005 * linux-low.h (class linux_process_target): Update.
4006 * lynx-low.cc (lynx_target_ops): Update.
4007 * nto-low.cc (nto_target_ops): Update.
4008 * win32-low.cc (win32_target_ops): Update.
4009
ea06bbaa
TBA
40102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4011
4012 Turn process_stratum_target's hostio_last_error op into a
4013 method of process_target.
4014
4015 * target.h (struct process_stratum_target): Remove the target op.
4016 (class process_target): Add the target op.
4017 * target.cc: Add "hostio.h" to includes.
4018 (process_target::hostio_last_error): Define.
4019
4020 Update the derived classes and callers below.
4021
4022 * hostio.cc (hostio_error): Update.
4023 * linux-low.cc: Remove "hostio.h" from includes.
4024 (linux_target_ops): Update.
4025 * lynx-low.cc (lynx_target_ops): Update.
4026 * nto-low.cc (nto_target_ops): Update.
4027 * win32-low.h (class win32_process_target): Update.
4028 * win32-low.cc (win32_target_ops): Update.
4029 (wince_hostio_last_error): Turn into ...
4030 (win32_process_target::hostio_last_error): ... this.
4031
6e3fd7e9
TBA
40322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4033
4034 Turn process_stratum_target's get_tls_address op into a method of
4035 process_target.
4036
4037 * target.h (struct process_stratum_target): Remove the target op.
4038 (class process_target): Add the target op. Also add
4039 'supports_get_tls_address'.
4040 * target.cc (process_target::get_tls_address): Define.
4041 (process_target::supports_get_tls_address): Define.
4042
4043 Update the derived classes and callers below.
4044
4045 * server.cc (handle_query): Update.
4046 * linux-low.cc (linux_target_ops): Update.
4047 (linux_process_target::supports_get_tls_address): Define.
4048 (linux_process_target::get_tls_address): Define.
4049 * linux-low.h (class linux_process_target): Update.
4050 * lynx-low.cc (lynx_target_ops): Update.
4051 * nto-low.cc (nto_target_ops): Update.
4052 * win32-low.cc (win32_target_ops): Update.
4053
5203ae1e
TBA
40542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4055
4056 Turn process_stratum_target's read_offsets op into a method of
4057 process_target.
4058
4059 * target.h (struct process_stratum_target): Remove the target op.
4060 (class process_target): Add the target op. Also add
4061 'supports_read_offsets'.
4062 * target.cc (process_target::read_offsets): Define.
4063 (process_target::supports_read_offsets): Define.
4064
4065 Update the derived classes and callers below.
4066
4067 * server.cc (handle_query): Update.
4068 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4069 (linux_target_ops): Update.
4070 (linux_process_target::supports_read_offsets): Define.
4071 (linux_read_offsets): Turn into ...
4072 (linux_process_target::read_offsets): ... this.
4073 * linux-low.h (class linux_process_target): Update.
4074 * lynx-low.cc (lynx_target_ops): Update.
4075 * nto-low.cc (nto_target_ops): Update.
4076 * win32-low.cc (win32_target_ops): Update.
4077
6eeb5c55
TBA
40782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4079
4080 Turn process_stratum_target's stopped_by_watchpoint and
4081 stopped_data_address ops into methods of process_target.
4082
4083 * target.h (struct process_stratum_target): Remove the target ops.
4084 (class process_target): Add the target ops.
4085 * target.cc (process_target::stopped_by_watchpoint): Define.
4086 (process_target::stopped_data_address): Define.
4087
4088 Update the derived classes and callers below.
4089
4090 * remote-utils.cc (prepare_resume_reply): Update.
4091 * linux-low.cc (linux_target_ops): Update.
4092 (linux_stopped_by_watchpoint): Turn into ...
4093 (linux_process_target::stopped_by_watchpoint): ... this.
4094 (linux_stopped_data_address): Turn into ...
4095 (linux_process_target::stopped_data_address): ... this.
4096 * linux-low.h (class linux_process_target): Update.
4097 * lynx-low.cc (lynx_target_ops): Update.
4098 * nto-low.cc (nto_target_ops): Update.
4099 (nto_stopped_by_watchpoint): Turn into ...
4100 (nto_process_target::stopped_by_watchpoint): ... this.
4101 (nto_stopped_data_address): Turn into ...
4102 (nto_process_target::stopped_data_address): ... this.
4103 * nto-low.h (class nto_process_target): Update.
4104 * win32-low.cc (win32_target_ops): Update.
4105 (win32_stopped_by_watchpoint): Turn into ...
4106 (win32_process_target::stopped_by_watchpoint): ... this.
4107 (win32_stopped_data_address): Turn into ...
4108 (win32_process_target::stopped_data_address): ... this.
4109 * win32-low.h (class win32_process_target): Update.
4110
22aa6223
TBA
41112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4112
4113 Turn process_stratum_target's supports_hardware_single_step op into
4114 a method of process_target.
4115
4116 * target.h (struct process_stratum_target): Remove the target op.
4117 (class process_target): Add the target op.
4118 (target_supports_hardware_single_step): Update the macro.
4119 (target_can_do_hardware_single_step): Remove declaration.
4120 * target.cc (process_target::supports_hardware_single_step): Define.
4121 (target_can_do_hardware_single_step): Remove.
4122
4123 Update the derived classes and callers below.
4124
4125 * linux-low.h (class linux_process_target): Update.
4126 * linux-low.cc (linux_target_ops): Update.
4127 (linux_supports_hardware_single_step): Turn into ...
4128 (linux_process_target::supports_hardware_single_step): ... this.
4129 * lynx-low.h (class lynx_process_target): Update.
4130 * lynx-low.cc (lynx_target_ops): Update.
4131 (lynx_process_target::supports_hardware_single_step): Define.
4132 * nto-low.h (class nto_process_target): Update.
4133 * nto-low.cc (nto_target_ops): Update.
4134 (nto_process_target::supports_hardware_single_step): Define.
4135 * win32-low.h (class win32_process_target): Update.
4136 * win32-low.cc (win32_target_ops): Update.
4137 (win32_process_target::supports_hardware_single_step): Define.
4138
93fe88b2
TBA
41392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4140
4141 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4142 ops into methods of process_target.
4143
4144 * target.h (struct process_stratum_target): Remove the target ops.
4145 (class process_target): Add the target ops.
4146 (target_stopped_by_hw_breakpoint): Update the macro.
4147 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4148 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4149 (process_target::supports_stopped_by_hw_breakpoint): Define.
4150
4151 Update the derived classes and callers below.
4152
4153 * linux-low.cc (linux_target_ops): Update.
4154 (linux_stopped_by_hw_breakpoint): Turn into ...
4155 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4156 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4157 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4158 * linux-low.h (class linux_process_target): Update.
4159 * lynx-low.cc (lynx_target_ops): Update.
4160 * nto-low.cc (nto_target_ops): Update.
4161 * win32-low.cc (win32_target_ops): Update.
4162
84320c4e
TBA
41632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4164
4165 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4166 ops into methods of process_target.
4167
4168 * target.h (struct process_stratum_target): Remove the target ops.
4169 (class process_target): Add the target ops.
4170 (target_stopped_by_sw_breakpoint): Update the macro.
4171 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4172 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4173 (process_target::supports_stopped_by_sw_breakpoint): Define.
4174
4175 Update the derived classes and callers below.
4176
4177 * linux-low.cc (linux_target_ops): Update.
4178 (linux_stopped_by_sw_breakpoint): Turn into ...
4179 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4180 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4181 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4182 * linux-low.h (class linux_process_target): Update.
4183 * lynx-low.cc (lynx_target_ops): Update.
4184 * nto-low.cc (nto_target_ops): Update.
4185 * win32-low.cc (win32_target_ops): Update.
4186
7e0bde70
TBA
41872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4188
4189 Turn process_stratum_target's insert_point and remove_point ops
4190 into methods of process_target.
4191
4192 * target.h (struct process_stratum_target): Remove the target ops.
4193 (class process_target): Add the target ops.
4194 * target.cc (process_target::insert_point): Define.
4195 (process_target::remove_point): Define.
4196
4197 Update the derived classes and callers below.
4198
4199 * mem-break.cc (set_raw_breakpoint_at): Update.
4200 (delete_raw_breakpoint): Update.
4201 (uninsert_raw_breakpoint): Update.
4202 (reinsert_raw_breakpoint): Update.
4203 * linux-low.cc (linux_target_ops): Update.
4204 (linux_insert_point): Turn into ...
4205 (linux_process_target::insert_point): ... this.
4206 (linux_remove_point): Turn into ...
4207 (linux_process_target::remove_point): ... this.
4208 * linux-low.h (class linux_process_target): Update.
4209 * lynx-low.cc (lynx_target_ops): Update.
4210 * nto-low.cc (nto_target_ops): Update.
4211 (nto_insert_point): Turn into ...
4212 (nto_process_target::insert_point): ... this.
4213 (nto_remove_point): Turn into ...
4214 (nto_process_target::remove_point): ... this.
4215 * nto-low.h (class nto_process_target): Update.
4216 * win32-low.cc (win32_target_ops): Update.
4217 (win32_insert_point): Turn into ...
4218 (win32_process_target::insert_point): ... this.
4219 (win32_remove_point): Turn into ...
4220 (win32_process_target::remove_point): ... this.
4221 * win32-low.h (class win32_process_target): Update.
4222
a2b2297a
TBA
42232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4224
4225 Turn process_stratum_target's supports_z_point_type op into a
4226 method of process_target.
4227
4228 * target.h (struct process_stratum_target): Remove the target op.
4229 (class process_target): Add the target op.
4230 * target.cc (process_target::supports_z_point_type): Define.
4231
4232 Update the derived classes and callers below.
4233
4234 * mem-break.cc (z_type_supported): Update.
4235 * linux-low.cc (linux_target_ops): Update.
4236 (linux_supports_z_point_type): Turn into ...
4237 (linux_process_target::supports_z_point_type): ... this.
4238 * linux-low.h (class linux_process_target): Update.
4239 * lynx-low.cc (lynx_target_ops): Update.
4240 * nto-low.cc (nto_target_ops): Update.
4241 (nto_supports_z_point_type): Turn into ...
4242 (nto_process_target::supports_z_point_type): ... this.
4243 * nto-low.h (class nto_process_target): Update.
4244 * win32-low.cc (win32_target_ops): Update.
4245 (win32_supports_z_point_type): Turn into ...
4246 (win32_process_target::supports_z_point_type): ... this.
4247 * win32-low.h (class win32_process_target): Update.
4248
eac215cc
TBA
42492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4250
4251 Turn process_stratum_target's read_auxv op into a method of
4252 process_target.
4253
4254 * target.h (class process_stratum_target): Remove the target op.
4255 (struct process_target): Add the target op. Also add
4256 'supports_read_auxv'.
4257 * target.cc (process_target::read_auxv): Define.
4258 (process_target::supports_read_auxv): Define.
4259
4260 Update the derived classes and callers below.
4261
4262 * server.cc (handle_qxfer_auxv): Update.
4263 (handle_query): Update.
4264 * linux-low.cc (linux_target_ops): Update.
4265 (linux_process_target::supports_read_auxv): Define.
4266 (linux_read_auxv): Turn into ...
4267 (linux_process_target::read_auxv): ... this.
4268 * linux-low.h (class linux_process_target): Update.
4269 * lynx-low.cc (lynx_target_ops): Update.
4270 * nto-low.cc (nto_target_ops): Update.
4271 (nto_process_target::supports_read_auxv): Define.
4272 (nto_read_auxv): Turn into ...
4273 (nto_process_target::read_auxv): ... this.
4274 * nto-low.h (class nto_process_target): Update.
4275 * win32-low.cc (win32_target_ops): Update.
4276
eb497a2a
TBA
42772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4278
4279 Turn process_stratum_target's request_interrupt op into a method of
4280 process_target.
4281
4282 * target.h (struct process_stratum_target): Remove the target op.
4283 (class process_target): Add the target op.
4284
4285 Update the derived classes and callers below.
4286
4287 * remote-utils.cc (putpkt_binary_1): Update.
4288 (input_interrupt): Update.
4289 (getpkt): Update.
4290 * server.cc (handle_v_requests): Update.
4291 * linux-low.cc (linux_target_ops): Update.
4292 (linux_request_interrupt): Turn into ...
4293 (linux_process_target::request_interrupt): ... this.
4294 * linux-low.h (class linux_process_target): Update.
4295 * lynx-low.cc (lynx_target_ops): Update.
4296 (lynx_request_interrupt): Turn into ...
4297 (lynx_process_target::request_interrupt): ... this.
4298 * lynx-low.h (class lynx_process_target): Update.
4299 * nto-low.cc (nto_target_ops): Update.
4300 (nto_request_interrupt): Turn into ...
4301 (nto_process_target::request_interrupt): ... this.
4302 * nto-low.h (class nto_process_target): Update.
4303 * win32-low.cc (win32_target_ops): Update.
4304 (win32_request_interrupt): Turn into ...
4305 (win32_process_target::request_interrupt): ... this.
4306 * win32-low.h (class win32_process_target): Update.
4307
2a31c7aa
TBA
43082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4309
4310 Turn process_stratum_target's look_up_symbols 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 * target.cc (process_target::look_up_symbols): Define.
4316
4317 Update the derived classes and callers below.
4318
4319 * server.cc (handle_query): Update.
4320 * linux-low.cc (linux_target_ops): Update.
4321 (linux_look_up_symbols): Turn into ...
4322 (linux_process_target::look_up_symbols): ... this.
4323 * linux-low.h (class linux_process_target): Update.
4324 * lynx-low.cc (lynx_target_ops): Update.
4325 * nto-low.cc (nto_target_ops): Update.
4326 * win32-low.cc (win32_target_ops): Update.
4327
e2558df3
TBA
43282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4329
4330 Turn process_stratum_target's read_memory and write_memory
4331 ops into methods of process_target.
4332
4333 * target.h (struct process_stratum_target): Remove the target ops.
4334 (class process_target): Add the target ops.
4335
4336 Update the derived classes and callers below.
4337
4338 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4339 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4340 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4341 (arm_get_syscall_trapinfo): Update.
4342 * linux-cris-low.cc (cris_breakpoint_at): Update.
4343 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4344 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4345 * linux-mips-low.cc (mips_breakpoint_at): Update.
4346 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4347 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4348 * linux-sh-low.cc (sh_breakpoint_at): Update.
4349 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4350 (sparc_store_gregset_from_stack): Update.
4351 (sparc_breakpoint_at): Update.
4352 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4353 * linux-tile-low.cc (tile_breakpoint_at): Update.
4354 * linux-x86-low.cc (x86_breakpoint_at): Update.
4355 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4356 * mem-brea.cc (insert_memory_breakpoint): Update.
4357 (validate_inserted_breakpoint): Update.
4358 * target.cc (read_inferior_memory): Update.
4359 (target_write_memory): Update.
4360 * linux-low.cc (linux_target_ops): Update.
4361 (linux_read_memory): Make a wrapper around the read_memory target
4362 op call.
4363 (linux_process_target::read_memory): Rename from linux_read_memory.
4364 (linux_write_memory): Turn into ...
4365 (linux_process_target::write_memory): ... this.
4366 * linux-low.h (class linux_process_target): Update.
4367 * lynx-low.cc (lynx_target_ops): Update.
4368 (lynx_read_memory): Turn into ...
4369 (lynx_process_target::read_memory): ... this.
4370 (lynx_write_memory): Turn into ...
4371 (lynx_process_target::write_memory): ... this.
4372 * lynx-low.h (class lynx_process_target): Update.
4373 * nto-low.cc (nto_target_ops): Update.
4374 (nto_read_memory): Turn into ...
4375 (nto_process_target::read_memory): ... this.
4376 (nto_write_memory): Turn into ...
4377 (nto_process_target::write_memory): ... this.
4378 * nto-low.h (class nto_process_target): Update.
4379 * win32-low.cc (win32_target_ops): Update.
4380 (win32_read_inferior_memory): Turn into ...
4381 (win32_process_target::read_memory): ... this.
4382 (win32_write_inferior_memory): Turn into ...
4383 (win32_process_target::write_memory): ... this.
4384 * win32-low.h (class win32_process_target): Update.
4385
79b44087
TBA
43862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4387
4388 Turn process_stratum_target's prepare_to_access_memory and
4389 done_accessing_memory ops into methods of process_target.
4390
4391 * target.h (struct process_stratum_target): Remove the target ops.
4392 (class process_target): Add the target ops.
4393 * target.cc (process_target::prepare_to_access_memory): Define.
4394 (process_target::done_accessing_memory): Define.
4395 (prepare_to_access_memory): Update.
4396 (done_accessing_memory): Update.
4397
4398 Update the derived classes and callers below.
4399
4400 * linux-low.cc (linux_target_ops): Update.
4401 (linux_prepare_to_access_memory): Turn into ...
4402 (linux_process_target::prepare_to_access_memory): ... this.
4403 (linux_done_accessing_memory): Turn into ...
4404 (linux_process_target::done_accessing_memory): ... this.
4405 * linux-low.h (class linux_process_target): Update.
4406 * lynx-low.cc (lynx_target_ops): Update.
4407 * nto-low.cc (nto_target_ops): Update.
4408 * win32-low.cc (win32_target_ops): Update.
4409
a5a4d4cd
TBA
44102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4411
4412 Turn process_stratum_target's fetch_registers and store_registers
4413 ops into methods of process_target.
4414
4415 * target.h (struct process_stratum_target): Remove the target ops.
4416 (class process_target): Add the target ops.
4417 (fetch_inferior_registers): Update the macro.
4418 (store_inferior_registers): Update the macro.
4419
4420 Update the derived classes and callers below.
4421
4422 * linux-low.cc (linux_target_ops): Update.
4423 (linux_fetch_registers): Turn into ...
4424 (linux_process_target::fetch_registers): ... this.
4425 (linux_store_registers): Turn into ...
4426 (linux_process_target::store_registers): ... this.
4427 * linux-low.h (class linux_process_target): Update.
4428 * lynx-low.cc (lynx_target_ops): Update.
4429 (lynx_fetch_registers): Turn into ...
4430 (lynx_process_target::fetch_registers): ... this.
4431 (lynx_store_registers): Turn into ...
4432 (lynx_process_target::store_registers): ... this.
4433 * lynx-low.h (class lynx_process_target): Update.
4434 * nto-low.cc (nto_target_ops): Update.
4435 (nto_fetch_registers): Turn into ...
4436 (nto_process_target::fetch_registers): ... this.
4437 (nto_store_registers): Turn into ...
4438 (nto_process_target::store_registers): ... this.
4439 * nto-low.h (class nto_process_target): Update.
4440 * win32-low.cc (win32_target_ops): Update.
4441 (win32_fetch_inferior_registers): Turn into ...
4442 (win32_process_target::fetch_registers): ... this.
4443 (win32_store_inferior_registers): Turn into ...
4444 (win32_process_target::store_registers): ... this.
4445 * win32-low.h (class win32_process_target): Update.
4446
6532e7e3
TBA
44472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4448
4449 Turn process_stratum_target's wait op into a method of
4450 process_target.
4451
4452 * target.h (struct process_stratum_target): Remove the target op.
4453 (class process_target): Add the target op.
4454
4455 Update the derived classes and callers below.
4456
4457 * target.cc (target_wait): Update.
4458 * linux-low.cc (linux_target_ops): Update.
4459 (linux_wait): Turn into ...
4460 (linux_process_target::wait): ... this.
4461 * linux-low.h (class linux_process_target): Update.
4462 * lynx-low.cc (lynx_target_ops): Update.
4463 (lynx_wait): Turn into ...
4464 (lynx_process_target::wait): ... this.
4465 * lynx-low.h (class lynx_process_target): Update.
4466 * nto-low.cc (nto_target_ops): Update.
4467 (nto_wait): Turn into ...
4468 (nto_process_target::wait): ... this.
4469 * nto-low.h (class nto_process_target): Update.
4470 * win32-low.cc (win32_target_ops): Update.
4471 (win32_wait): Turn into ...
4472 (win32_process_target::wait): ... this.
4473 (do_initial_child_stuff): Update.
4474 * win32-low.h (class win32_process_target): Update.
4475
0e4d7e35
TBA
44762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4477
4478 Turn process_stratum_target's resume op into a method of
4479 process_target.
4480
4481 * target.h (struct process_stratum_target): Remove the target op.
4482 (class process_target): Add the target op.
4483
4484 Update the derived classes and callers below.
4485
4486 * server.cc (resume): Update.
4487 * target.cc (target_stop_and_wait): Update.
4488 (target_continue_no_signal): Update.
4489 (target_continue): Update.
4490 * linux-low.cc (linux_target_ops): Update.
4491 (linux_resume): Turn into ...
4492 (linux_process_target::resume): ... this.
4493 * linux-low.h (class linux_process_target): Update.
4494 * lynx-low.cc (lynx_target_ops): Update.
4495 (lynx_resume): Turn into ...
4496 (lynx_process_target::resume): ... this.
4497 * lynx-low.h (class lynx_process_target): Update.
4498 * nto-low.cc (nto_target_ops): Update.
4499 (nto_resume): Turn into ...
4500 (nto_process_target::resume): ... this.
4501 * nto-low.h (class nto_process_target): Update.
4502 * win32-low.cc (win32_target_ops): Update.
4503 (win32_resume): Turn into ...
4504 (win32_process_target::resume): ... this.
4505 (win32_process_target::detach): Update.
4506 (do_initial_child_stuff): Update.
4507 * win32-low.h (class win32_process_target): Update.
4508
13d3d99b
TBA
45092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4510
4511 Turn process_stratum_target's thread_alive op into a method of
4512 process_target.
4513
4514 * target.h (struct process_stratum_target): Remove the target op.
4515 (class process_target): Add the target op.
4516 (mythread_alive): Update the macro.
4517
4518 Update the derived classes and callers below.
4519
4520 * linux-low.cc (linux_target_ops): Update.
4521 (linux_thread_alive): Turn into ...
4522 (linux_process_target::thread_alive): ... this.
4523 (wait_for_sigstop): Update.
4524 * linux-low.h (class linux_process_target): Update.
4525 * lynx-low.cc (lynx_target_ops): Update.
4526 (lynx_thread_alive): Turn into ...
4527 (lynx_process_target::thread_alive): ... this.
4528 * lynx-low.h (class lynx_process_target): Update.
4529 * nto-low.cc (nto_target_ops): Update.
4530 (nto_thread_alive): Turn into ...
4531 (nto_process_target::thread_alive): ... this.
4532 * nto-low.h (class nto_process_target): Update.
4533 * win32-low.cc (win32_target_ops): Update.
4534 (win32_thread_alive): Turn into ...
4535 (win32_process_target::thread_alive): ... this.
4536 * win32-low.h (class win32_process_target): Update.
4537
95a49a39
TBA
45382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4539
4540 Turn process_stratum_target's join op into a method of
4541 process_target.
4542
4543 * target.h (struct process_stratum_target): Remove the target op.
4544 (class process_target): Add the target op.
4545 (join_inferior): Update the macro.
4546
4547 Update the derived classes and callers below.
4548
4549 * linux-low.cc (linux_target_ops): Update.
4550 (linux_join): Turn into ...
4551 (linux_process_target::join): ... this.
4552 * linux-low.h (class linux_process_target): Update.
4553 * lynx-low.cc (lynx_target_ops): Update.
4554 (lynx_join): Turn into ...
4555 (lynx_process_target::join): ... this.
4556 * lynx-low.h (class lynx_process_target): Update.
4557 * nto-low.cc (nto_target_ops): Update.
4558 (nto_process_target::join): Define.
4559 * nto-low.h (class nto_process_target): Update.
4560 * win32-low.cc (win32_target_ops): Update.
4561 (win32_join): Turn into ...
4562 (win32_process_target::join): ... this.
4563 * win32-low.h (class win32_process_target): Update.
4564
8adb37b9
TBA
45652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4566
4567 Turn process_stratum_target's mourn op into a method of
4568 process_target.
4569
4570 * target.h (struct process_stratum_target): Remove the target op.
4571 (class process_target): Add the target op.
4572
4573 Update the derived classes and callers below.
4574
4575 * target.cc (target_mourn_inferior): Update.
4576 * linux-low.cc (linux_target_ops): Update.
4577 (linux_mourn): Turn into ...
4578 (linux_process_target::mourn): ... this.
4579 (handle_extended_wait): Update.
4580 (linux_process_target::kill): Update.
4581 (linux_process_target::detach): Update.
4582 * linux-low.h (class linux_process_target): Update.
4583 * lynx-low.cc (lynx_target_ops): Update.
4584 (lynx_mourn): Turn into ...
4585 (lynx_process_target::mourn): ... this.
4586 * lynx-low.h (class lynx_process_target): Update.
4587 * nto-low.cc (nto_target_ops): Update.
4588 (nto_mourn): Turn into ...
4589 (nto_process_target::mourn): ... this.
4590 * nto-low.h (class nto_process_target): Update.
4591 * win32-low.cc (win32_target_ops): Update.
4592 (win32_mourn): Turn into ...
4593 (win32_process_target::mourn): ... this.
4594 * win32-low.h (class win32_process_target): Update.
4595
9061c9cf
TBA
45962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4597
4598 Turn process_stratum_target's detach 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 (detach_inferior): Update the macro.
4604
4605 Update the derived classes and callers below.
4606
4607 * linux-low.cc (linux_target_ops): Update.
4608 (linux_detach): Turn into ...
4609 (linux_process_target::detach): ... this.
4610 * linux-low.h (class linux_process_target): Update.
4611 * lynx-low.cc (lynx_target_ops): Update.
4612 (lynx_detach): Turn into ...
4613 (lynx_process_target::detach): ... this.
4614 * lynx-low.h (class lynx_process_target): Update.
4615 * nto-low.cc (nto_target_ops): Update.
4616 (nto_detach): Turn into ...
4617 (nto_process_target::detach): ... this.
4618 * nto-low.h (class nto_process_target): Update.
4619 * win32-low.cc (win32_target_ops): Update.
4620 (win32_detach): Turn into ...
4621 (win32_process_target::detach): ... this.
4622 * win32-low.h (class win32_process_target): Update.
4623
c6885a57
TBA
46242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4625
4626 Turn process_stratum_target's kill op into a method of
4627 process_target.
4628
4629 * target.h (struct process_stratum_target): Remove the target op.
4630 (class process_target): Add the target op.
4631
4632 Update the derived classes and callers below.
4633
4634 * target.cc (kill_inferior): Update.
4635 * linux-low.cc (linux_target_ops): Update.
4636 (linux_kill): Turn into ...
4637 (linux_process_target::kill): ... this.
4638 * linux-low.h (class linux_process_target): Update.
4639 * lynx-low.cc (lynx_target_ops): Update.
4640 (lynx_kill): Turn into ...
4641 (lynx_process_target::kill): ... this.
4642 * lynx-low.h (class lynx_process_target): Update.
4643 * nto-low.cc (nto_target_ops): Update.
4644 (nto_kill): Turn into ...
4645 (nto_process_target::kill): ... this.
4646 * nto-low.h (class nto_process_target): Update.
4647 * win32-low.cc (win32_target_ops): Update.
4648 (win32_kill): Turn into ...
4649 (win32_process_target::kill): ... this.
4650 * win32-low.h (class win32_process_target): Update.
4651
ef03dad8
TBA
46522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4653
4654 Turn process_stratum_target's attach op into a method of
4655 process_target.
4656
4657 * target.h (struct process_stratum_target): Remove the target op.
4658 (class process_target): Add the target op.
4659 (myattach): Update the macro.
4660
4661 Update the derived classes and callers below.
4662
4663 * linux-low.cc (linux_target_ops): Update.
4664 (linux_attach): Turn into ...
4665 (linux_process_target::attach): ... this.
4666 * linux-low.h (class linux_process_target): Update.
4667 * lynx-low.cc (lynx_target_ops): Update.
4668 (lynx_attach): Turn into ...
4669 (lynx_process_target::attach): ... this.
4670 * lynx-low.h (class lynx_process_target): Update.
4671 * nto-low.cc (nto_target_ops): Update.
4672 (nto_attach): Turn into ...
4673 (nto_process_target::attach): ... this.
4674 * nto-low.h (class nto_process_target): Update.
4675 * win32-low.cc (win32_target_ops): Update.
4676 (win32_attach): Turn into ...
4677 (win32_process_target::attach): ... this.
4678 * win32-low.h (class win32_process_target): Update.
4679
6dee9afb
TBA
46802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4681
4682 Turn process_stratum_target's post_create_inferior op into a method
4683 of process_target.
4684
4685 * target.h (struct process_stratum_target): Remove the target op.
4686 (class process_target): Add the target op.
4687 (target_post_create_inferior): Update the macro.
4688 * target.cc (process_target::post_create_inferior): Define.
4689
4690 Update the derived classes and callers below.
4691
4692 * linux-low.cc (linux_target_ops): Update.
4693 (linux_post_create_inferior): Turn into ...
4694 (linux_process_target::post_create_inferior): ... this.
4695 * linux-low.h (class linux_process_target): Update.
4696 * lynx-low.cc (lynx_target_ops): Update.
4697 * nto-low.cc (nto_target_ops): Update.
4698 * win32-low.cc (win32_target_ops): Update.
4699
15295543
TBA
47002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4701
4702 Turn process_stratum_target's create_inferior op into a method of
4703 process_target.
4704
4705 * target.h (struct process_stratum_target): Remove the target op.
4706 (class process_target): Add the target op.
4707 (create_inferior): Rename the macro to ...
4708 (target_create_inferior): ... this.
4709
4710 Update the derived classes and callers below.
4711
4712 * server.cc (handle_v_run): Update.
4713 (captured_main): Update.
4714 (process_serial_event): Update.
4715 * linux-low.cc (linux_target_ops): Update.
4716 (linux_create_inferior): Turn into ...
4717 (linux_process_target::create_inferior): ... this.
4718 * linux-low.h (class linux_process_target): Update.
4719 * lynx-low.cc (lynx_target_ops): Update.
4720 (lynx_create_inferior): Turn into ...
4721 (lynx_process_target::create_inferior): ... this.
4722 * lynx-low.h (class lynx_process_target): Update.
4723 * nto-low.cc (nto_target_ops): Update.
4724 (nto_create_inferior): Turn into ...
4725 (nto_process_target::create_inferior): ... this.
4726 * nto-low.h (class nto_process_target): Update.
4727 * win32-low.cc (win32_target_ops): Update.
4728 (win32_create_inferior): Turn into ...
4729 (win32_process_target::create_inferior): ... this.
4730 * win32-low.h (class win32_process_target): Update.
4731
5ef9273d
TBA
47322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4733
4734 * target.h (class process_target): New class definition.
4735 (struct process_stratum_target) <pt>: New field with type
4736 'process_target*'.
4737 * linux-low.h (class linux_process_target): Define as a derived
4738 class of 'process_target'.
4739 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4740 as the 'pt' field.
4741 * lynx-low.h (class lynx_process_target): Define as a derived
4742 class of 'process_target'.
4743 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4744 as the 'pt' field.
4745 * nto-low.h (class nto_process_target): Define as a derived
4746 class of 'process_target'.
4747 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4748 as the 'pt' field.
4749 * win32-low.h (class win32_process_target): Define as a derived
4750 class of 'process_target'.
4751 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4752 as the 'pt' field.
4753
9f1528a1
AB
47542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4755
4756 * configure: Regenerate.
4757
bf84f706
MR
47582020-02-19 Maciej W. Rozycki <macro@wdc.com>
4759 Andrew Burgess <andrew.burgess@embecosm.com>
4760
4761 * linux-riscv-low.cc: New file.
4762 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4763 and nat/riscv-linux-tdesc.c.
4764 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4765 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4766 Define.
4767
1a627e7e
TT
47682020-02-14 Tom Tromey <tom@tromey.com>
4769
4770 * acinclude.m4: Don't include acx_configure_dir.m4.
4771 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4772 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4773 (all, install-only, uninstall, clean-info, clean)
4774 (maintainer-clean): Don't recurse.
4775 (subdir_do, all-lib): Remove.
4776 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4777 (GNULIB_H): Remove.
4778 (generated_files): Update.
4779 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4780 * configure: Rebuild.
4781 * configure.ac: Don't configure gnulib or libiberty.
4782 (GNULIB): Update.
4783
a9b34532
EZ
47842020-02-14 Eli Zaretskii <eliz@gnu.org>
4785
4786 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4787 preparing the command line for CreateProcess.
4788 (win32_create_inferior): Reflect the program name in debugging
4789 output that shows the process and its command line.
4790
feacfcac
SM
47912020-02-13 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * Makefile.in: Rename source files from .c to .cc.
4794 * %.c: Rename to %.cc.
4795 * configure.ac: Rename server.c to server.cc.
4796 * configure: Re-generate.
4797
06b3c5bd
SM
47982020-02-13 Simon Marchi <simon.marchi@efficios.com>
4799
4800 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4801
052793ad
HD
48022020-02-12 Hannes Domani <ssbssa@yahoo.de>
4803
4804 * win32-low.c (win32_create_inferior): Set signal_pid.
4805
f20e3e82
MR
48062020-02-12 Maciej W. Rozycki <macro@wdc.com>
4807 Pedro Alves <palves@redhat.com>
4808
4809 Skip building gdbserver in a cross-configuration.
4810 * configure.srv: Set $gdbserver_host depending on whether $target
4811 is $host. Use $gdbserver_host instead of $host.
4812
8ddd8e0e
SM
48132020-02-11 Simon Marchi <simon.marchi@efficios.com>
4814
4815 * configure: Re-generate.
4816
898e7f60
SM
48172020-02-11 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * configure: Re-generate.
4820
58df732b
SM
48212020-02-11 Simon Marchi <simon.marchi@efficios.com>
4822
4823 * acinclude.m4: Update warning.m4 path.
4824
7928d571
HD
48252020-02-09 Hannes Domani <ssbssa@yahoo.de>
4826
4827 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4828 (handle_exception): Set siginfo_er.
4829 (win32_xfer_siginfo): New function.
4830
919adfe8
TT
48312020-02-07 Tom Tromey <tom@tromey.com>
4832 Pedro Alves <palves@redhat.com>
4833
4834 * README: Update build documentation.
4835 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4836 host, not target.
4837 * configure.ac: Update paths.
4838 * configure: Rebuild.
4839 * acinclude.m4: Update paths.
4840 * Makefile.in: Update include paths.
4841 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4842 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4843 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4844 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4845 (%-generated.c): Update paths.
4846 * Move entire directory from ../gdb/gdbserver.
4847
287c844a
MR
48482020-01-29 Maciej W. Rozycki <macro@wdc.com>
4849
4850 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4851
548a204f
PFC
48522020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4853
4854 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4855 assignment instead of srv_linux_obj.
4856
a2236a08
HD
48572020-01-28 Hannes Domani <ssbssa@yahoo.de>
4858
4859 * server.c (handle_qxfer_libraries): Write segment-address with
4860 paddress.
4861
bdaed379
HD
48622020-01-24 Hannes Domani <ssbssa@yahoo.de>
4863
4864 * Makefile.in (install-strip): New target.
4865 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4866 * aclocal.m4: Regenerate.
4867 * configure: Regenerate.
4868 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4869
42cd72aa
MR
48702020-01-24 Maciej W. Rozycki <macro@wdc.com>
4871
4872 * Makefile.in (SFILES): Adjust paths to point to real files.
4873 (OBS): Move waitstatus.o to target/waitstatus.o.
4874 (TAGS): Transform paths appropriately.
4875 (%.o): Rename to...
4876 (nat/%.o): ... this pattern rule.
4877 (%.o): Rename to...
4878 (target/%.o): ... this pattern rule.
4879 * configure.srv: Adjust paths throughout to include nat/ prefix
4880 with the revant files.
4881 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4882 * configure: Regenerate.
4883
42ba50ec
MR
48842020-01-24 Maciej W. Rozycki <macro@wdc.com>
4885
4886 * Makefile.in (TAGS): Remove config files from the recipe.
4887
05ea2a05
TT
48882020-01-14 Tom Tromey <tom@tromey.com>
4889
4890 * configure: Rebuild.
4891 * configure.ac: Remove any checks that were added to common.m4.
4892 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4893 lib-link.m4.
4894
01027315
TT
48952020-01-14 Tom Tromey <tom@tromey.com>
4896
4897 * server.h: Include config.h.
4898 * gdbreplay.c: Include config.h.
4899 * configure: Rebuild.
4900 * configure.ac: Don't source common.host.
4901 * acinclude.m4: Update path.
4902 * Makefile.in (INCSUPPORT): New variable.
4903 (INCLUDE_CFLAGS): Add INCSUPPORT.
4904 (SFILES): Update paths.
4905 (version-generated.c): Update path to create-version.sh.
4906 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4907
b2ceabe8
TT
49082020-01-14 Tom Tromey <tom@tromey.com>
4909
4910 * configure.ac (LIBS): Use WIN32APILIBS.
4911 (USE_WIN32API): Don't define.
4912 * configure: Rebuild.
4913
25c51f71
TT
49142020-01-14 Tom Tromey <tom@tromey.com>
4915
4916 * configure: Rebuild.
4917
c0bd321d
SM
49182020-01-13 Simon Marchi <simon.marchi@efficios.com>
4919
4920 * Makefile.in (%-generated.c): Remove rule for files from
4921 regformats/i386.
4922
bb564c58
SM
49232020-01-13 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * configure: Re-generate.
4926
6e37c371
SM
49272020-01-13 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4930 Define to static.
4931 * tracepoint.c (stop_tracing, flush_trace_buffer,
4932 about_to_request_buffer_space, get_trace_state_variable_value,
4933 set_trace_state_variable_value, gdb_collect): Add declaration.
4934
df4a0200
SM
49352020-01-13 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4938 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4939 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4940 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4941 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4942 static.
4943
89e94ec9
SM
49442020-01-13 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * inferiors.c: Include gdbsupport/common-inferior.h.
4947
2552728a
SM
49482020-01-13 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * hostio-errno.c: Include hostio.h.
4951
4025fa09
SM
49522020-01-13 Simon Marchi <simon.marchi@efficios.com>
4953
4954 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4955 prerequisite.
4956
c0b0a142
SM
49572020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4958
4959 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4960 * linux-arm-tdesc.h: Include arch/arm.h.
4961
bb1183e2
SM
49622020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4963
4964 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4965
f5df0b5f
SM
49662020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4967
4968 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4969 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4970
5b6d1e4f
PA
49712020-01-10 Pedro Alves <palves@redhat.com>
4972
4973 * fork-child.c (post_fork_inferior): Pass target down to
4974 startup_inferior.
4975 * inferiors.c (switch_to_thread): Add process_stratum_target
4976 parameter.
4977 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4978 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4979 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4980 * remote-utils.c (prepare_resume_reply): Pass the target to
4981 switch_to_thread.
4982 * target.c (the_target): Now a process_stratum_target.
4983 (done_accessing_memory): Pass the target to switch_to_thread.
4984 (set_target_ops): Ajust to use process_stratum_target.
4985 * target.h (struct target_ops): Rename to ...
4986 (struct process_stratum_target): ... this.
4987 (the_target, set_target_ops): Adjust.
4988 (prepare_to_access_memory): Adjust comment.
4989 * win32-low.c (child_xfer_memory): Adjust to use
4990 process_stratum_target.
4991 (win32_target_ops): Now a process_stratum_target.
4992
559e7e50
EZ
49932020-01-06 Eli Zaretskii <eliz@gnu.org>
4994 Pedro Alves <palves@redhat.com>
4995
4996 * win32-low.c (get_child_debug_event): Extract the fatal exception
4997 from the exit status and convert to the equivalent Posix signal
4998 number.
4999 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5000 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5001
48189bec
HD
50022020-01-01 Hannes Domani <ssbssa@yahoo.de>
5003
5004 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5005
5dd8bf88
JB
50062020-01-01 Joel Brobecker <brobecker@adacore.com>
5007
5008 * server.c (gdbserver_version): Change copyright year to 2020.
5009 * gdbreplay.c (gdbreplay_version): Likewise.
5010
0ad6b8ee
CB
50112019-12-19 Christian Biesinger <cbiesinger@google.com>
5012
5013 * configure: Regenerate.
5014 * configure.ac: Quote variable arguments of test.
5015
1ee7b812
BE
50162019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5017
5018 * Makefile.in: Fix build with GNU Make 3.81
5019
d9fa87f4
TT
50202019-12-16 Tom Tromey <tromey@adacore.com>
5021
5022 * server.c (get_exec_file): Constify result.
5023
ab7d13f0
CB
50242019-12-10 Christian Biesinger <cbiesinger@google.com>
5025
5026 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5027 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5028 * config.in: Regenerate.
5029 * configure: Regenerate.
5030 * configure.ac: Don't check for strerror.
5031 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5032 Call safe_strerror instead of strerror.
5033 * server.h (strerror): Remove this now-unnecessary declaration.
5034 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5035 strerror.
5036 (gdb_agent_helper_thread): Likewise.
5037 * utils.c (perror_with_name): Likewise.
5038
4da8c3a8
TT
50392019-11-26 Tom Tromey <tom@tromey.com>
5040
5041 * configure, config.in: Rebuild.
5042
21987b9c
TT
50432019-11-26 Tom Tromey <tom@tromey.com>
5044
5045 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5046 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5047 gdb_sigmask.
5048 * configure, config.in: Rebuild.
5049
5e030278
TT
50502019-11-26 Tom Tromey <tom@tromey.com>
5051
5052 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5053 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5054 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5055 * acinclude.m4: Include ax_pthread.m4.
5056 * config.in, configure: Rebuild.
5057
6d91ce9a
CB
50582019-11-26 Christian Biesinger <cbiesinger@google.com>
5059
5060 * debug.c (debug_set_output): Call safe_strerror instead of
5061 strerror.
5062 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5063 (linux_kill_one_lwp): Likewise.
5064 (linux_detach_one_lwp): Likewise.
5065 (linux_wait_for_event_filtered): Likewise.
5066 (store_register): Likewise.
5067 * lynx-low.c (lynx_attach): Likewise.
5068 * mem-break.c (insert_memory_breakpoint): Likewise.
5069 (remove_memory_breakpoint): Likewise.
5070 (delete_fast_tracepoint_jump): Likewise.
5071 (set_fast_tracepoint_jump): Likewise.
5072 (uninsert_fast_tracepoint_jumps_at): Likewise.
5073 (reinsert_fast_tracepoint_jumps_at): Likewise.
5074 * nto-low.c (nto_xfer_memory): Likewise.
5075 (nto_resume): Likewise.
5076
6cdd651f
LM
50772019-11-20 Luis Machado <luis.machado@linaro.org>
5078
5079 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5080 instead of register count.
5081 * tdesc.c (tdesc_contains_feature): New function.
5082 * tdesc.h (tdesc_contains_feature): New prototype.
5083
cd850b40
CB
50842019-11-15 Christian Biesinger <cbiesinger@google.com>
5085
5086 * Makefile.in: Add safe-strerror.c.
5087 * configure: Regenerate.
5088 * configure.ac: Don't source common.host.
5089
5abebf3c
CB
50902019-11-15 Christian Biesinger <cbiesinger@google.com>
5091
5092 * config.in: Regenerate.
5093 * configure: Regenerate.
5094
e06f3d6e
AB
50952019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5096
5097 * ax.c (ax_printf): Handle size_t_arg.
5098
ca3a04f6
CB
50992019-11-06 Christian Biesinger <cbiesinger@google.com>
5100
5101 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5102 * mi/mi-main.c (output_cores): Likewise.
5103 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5104 (linux_xfer_osdata_modules): Likewise.
5105 * remote.c (register_remote_support_xml): Likewise.
5106 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5107 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5108
e48f6033
CB
51092019-11-01 Christian Biesinger <cbiesinger@google.com>
5110
5111 * configure: Regenerate.
5112 * configure.ac: Remove check for strerror_r.
5113
e7e97a2e
CB
51142019-10-31 Christian Biesinger <cbiesinger@google.com>
5115
5116 * config.in: Regenerate.
5117 * configure: Regenerate.
5118 * configure.ac: Also check for strerror_r.
5119
75cafaa6
CB
51202019-10-31 Christian Biesinger <cbiesinger@google.com>
5121
5122 * ax.h (debug_agent): Remove duplicate declaration.
5123
30baf67b
TV
51242019-10-26 Tom de Vries <tdevries@suse.de>
5125
5126 * linux-aarch64-low.c: Fix typos in comments.
5127 * linux-arm-low.c: Same.
5128 * linux-low.c: Same.
5129 * linux-ppc-low.c: Same.
5130 * proc-service.c: Same.
5131 * regcache.h: Same.
5132 * server.c: Same.
5133 * tracepoint.c: Same.
5134 * win32-low.c: Same.
5135
52c64cf7
TT
51362019-10-25 Tom Tromey <tromey@adacore.com>
5137
5138 * utils.c (xstrdup): Remove.
5139
c12d372d
TT
51402019-10-23 Tom Tromey <tom@tromey.com>
5141
5142 * configure, config.in: Rebuild.
5143
4d0b984b
TT
51442019-10-23 Tom Tromey <tom@tromey.com>
5145
5146 * configure: Rebuild.
5147 * acinclude.m4: Use m4_include, not sinclude.
5148
c5adaa19
TT
51492019-10-17 Tom Tromey <tromey@adacore.com>
5150
5151 * configure: Rebuild.
5152 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5153 in AC_CONFIG_FILES invocation.
5154 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5155 invocation.
5156
fec4e896
CB
51572019-10-16 Christian Biesinger <cbiesinger@google.com>
5158
5159 * server.c: Include xml-builtin.h.
5160 (get_xml_features): Don't declare xml_builtins here.
5161
00975ff6
AB
51622019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5163
5164 * Makefile.in: Remove references to vec-ipa.o.
5165
0dc32745
AB
51662019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5167
5168 * Makefile.in: Remove references to vec.c.
5169
3e6ec53a
CB
51702019-10-02 Christian Biesinger <cbiesinger@google.com>
5171
5172 * server.c (server_waiting): Change to bool.
5173 (extended_protocol): Likewise.
5174 (response_needed): Likewise.
5175 (exit_requested): Likewise.
5176 (run_once): Likewise.
5177 (report_no_resumed): Likewise.
5178 (non_stop): Likewise.
5179 (disable_packet_vCont): Likewise.
5180 (disable_packet_Tthread): Likewise.
5181 (disable_packet_qC): Likewise.
5182 (disable_packet_qfThreadInfo): Likewise.
5183 (handle_general_set): Update.
5184 (handle_detach): Update.
5185 (handle_monitor_command): Update.
5186 (handle_query): Update.
5187 (captured_main): Update.
5188 (process_serial_event): Update.
5189 * server.h (server_waiting): Change to bool.
5190 (disable_packet_vCont): Likewise.
5191 (disable_packet_Tthread): Likewise.
5192 (disable_packet_qC): Likewise.
5193 (disable_packet_qfThreadInfo): Likewise.
5194 (run_once): Likewise.
5195 (non_stop): Likewise.
5196 * target.c (target_stop_and_wait): Update.
5197
80fd2826
TT
51982019-10-02 Tom Tromey <tromey@adacore.com>
5199
5200 * Makefile.in (SFILES): Add common-inferior.c.
5201 (OBS): Add common-inferior.o.
5202 * server.c (startup_with_shell): Don't define.
5203
46f29a9a
AB
52042019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5205
5206 * linux-low.c (linux_low_read_btrace): Update for change to
5207 std::vector.
5208
f9d949fb
CB
52092019-09-20 Christian Biesinger <cbiesinger@google.com>
5210
5211 * debug.c (debug_threads): Remove comment in favor of the header.
5212 * debug.h (using_threads): Add declaration.
5213 (debug_threads): Add comment.
5214 * linux-aarch64-low.c: Include debug.h and remove declaration of
5215 debug_threads.
5216 * nto-low.c: Likewise.
5217 * remote-utils.c: Likewise.
5218 * thread-db.c: Likewise.
5219
abf516c6
UW
52202019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5221
5222 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5223 and powerpc-cell64l-ipa.o.
5224 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5225 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5226 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5227 (spu*-*-*): Remove.
5228
5229 * spu-low.c: Remove file.
5230
5231 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5232 (parse_spufs_run): Remove.
5233 (ppc_get_pc): Remove Cell/B.E. support.
5234 (ppc_set_pc): Likewise.
5235 (ppc_breakpoint_at): Likewise.
5236 (ppc_arch_setup): Likewise.
5237 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5238 tdesc_powerpc_cell32l.
5239 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5240 or init_registers_powerpc_cell32l.
5241 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5242 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5243 or init_registers_powerpc_cell32l.
5244 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5245 (init_registers_powerpc_cell32l): Remove prototype.
5246 (init_registers_powerpc_cell64l): Likewise.
5247
5248 * target.h (struct target_ops): Remove qxfer_spu member.
5249 * server.c (handle_qxfer_spu): Remove.
5250 (qxfer_packets): Remove entry for "spu".
5251 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5252 * linux-low.c (SPUFS_MAGIC): Remove.
5253 (spu_enumerate_spu_ids): Remove.
5254 (linux_qxfer_spu): Remove.
5255 (linux_target_ops): Remove qxfer_spu member.
5256 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5257 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5258 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5259
2d41fa11
SDJ
52602019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5261
5262 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5263 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5264 * config.in: Regenerate.
5265 * configure: Regenerate.
5266
d59b55f0
TT
52672019-08-15 Tom Tromey <tromey@adacore.com>
5268
5269 * target.c (target_write_memory): Use gdb::byte_vector.
5270
4196ab2a
TT
52712019-08-15 Tom Tromey <tromey@adacore.com>
5272
5273 * tracepoint.c (write_inferior_data_pointer)
5274 (write_inferior_integer, write_inferior_int8)
5275 (write_inferior_uinteger, m_tracepoint_action_download)
5276 (r_tracepoint_action_download, x_tracepoint_action_download)
5277 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5278 (download_agent_expr, download_tracepoint_1)
5279 (download_trace_state_variables, upload_fast_traceframes): Update.
5280 * server.c (gdb_write_memory): Update.
5281 * remote-utils.c (relocate_instruction): Update.
5282 * proc-service.c (ps_pdwrite): Update.
5283 * mem-break.c (remove_memory_breakpoint)
5284 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5285 (uninsert_fast_tracepoint_jumps_at)
5286 (reinsert_fast_tracepoint_jumps_at): Update.
5287 * linux-x86-low.c (append_insns)
5288 (i386_install_fast_tracepoint_jump_pad)
5289 (amd64_write_goto_address, i386_write_goto_address): Update.
5290 * linux-s390-low.c (append_insns, s390_write_goto_address):
5291 Update.
5292 * linux-ppc-low.c (ppc_relocate_instruction)
5293 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5294 (ppc_write_goto_address): Update.
5295 * linux-aarch64-low.c (append_insns): Update.
5296 * target.h (struct target_ops): Update.
5297 (write_inferior_memory): Don't declare.
5298 * target.c (target_write_memory): Rename from
5299 write_inferior_memory. Remove old target_write_memory.
5300
c6778d00
TT
53012019-08-15 Tom Tromey <tromey@adacore.com>
5302
5303 * target.c (write_inferior_memory): Use std::vector.
5304
404f2902
FCE
53052019-08-06 Frank Ch. Eigler <fche@redhat.com>
5306
5307 PR build/24886
5308 * configure.ac: Drop enable-libmcheck support.
5309 * configure, config.in: Rebuild.
5310 * acinclude.m4: Don't include it.
5311
4c5aa8e0
AH
53122019-07-19 Alan Hayward <alan.hayward@arm.com>
5313
5314 * configure.srv: Remove Arm xml files.
5315
7cc17433
AH
53162019-07-19 Alan Hayward <alan.hayward@arm.com>
5317
5318 * configure.srv: Add new files. Remove xml generated files.
5319 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5320 registers.
5321 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5322 * linux-aarch32-tdesc.c: New file.
5323 * linux-aarch32-tdesc.h: New file.
5324 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5325 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5326 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5327 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5328 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5329 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5330 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5331 (arm_read_description): Call arm_linux_read_description.
5332 (initialize_low_arch): Don't init registers.
5333 * linux-arm-tdesc.c: New file.
5334 * linux-arm-tdesc.h: New file.
5335
166a82be
AH
53362019-07-10 Alan Hayward <alan.hayward@arm.com>
5337
5338 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5339 Move counter inside for.
5340 (arm_read_description): Check ptrace earlier.
5341 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5342
268a13a5
TT
53432019-07-09 Tom Tromey <tom@tromey.com>
5344
5345 * configure: Rebuild.
5346 * configure.ac: Change common to gdbsupport.
5347 * acinclude.m4: Change common to gdbsupport.
5348 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5349 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5350 common to gdbsupport.
5351 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5352 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5353 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5354 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5355 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5356 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5357 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5358 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5359 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5360 common to gdbsupport.
5361
350fab54
AH
53622019-07-04 Alan Hayward <alan.hayward@arm.com>
5363
5364 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5365 defines.
5366 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5367
2b40fda7
AH
53682019-07-04 Alan Hayward <alan.hayward@arm.com>
5369
5370 * configure.srv: Remove legacy xml.
5371 * linux-aarch64-low.c (initialize_low_arch): Remove
5372 initialize_low_tdesc call.
5373 * linux-aarch64-tdesc-selftest.c: Remove file.
5374 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5375 * linux-x86-low.c (initialize_low_arch): Remove
5376 initialize_low_tdesc call.
5377 * linux-x86-tdesc-selftest.c: Remove file.
5378 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5379
7d10623d
TV
53802019-06-20 Tom de Vries <tdevries@suse.de>
5381
5382 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5383 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5384
8d6a48df
TV
53852019-06-19 Tom de Vries <tdevries@suse.de>
5386
5387 * debug.h (debug_write): Change return type to ssize_t.
5388 * debug.c (debug_write): Same.
5389
73cc7272
TT
53902019-06-14 Tom Tromey <tom@tromey.com>
5391
5392 * configure.ac: Use new path to gnulib.
5393 * configure: Rebuild.
5394 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5395 to gnulib.
5396
08f10e02
TT
53972019-06-11 Tom Tromey <tom@tromey.com>
5398
5399 * Makefile.in (SFILES): Add alloc.c.
5400 (OBS): Add alloc.o.
5401 (IPA_OBJS): Add alloc-ipa.o.
5402 (alloc-ipa.o): New target.
5403 (%.o: ../%.c): New pattern rule.
5404
422186a9
TT
54052019-06-10 Tom Tromey <tromey@adacore.com>
5406
5407 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5408 end warning with a newline.
5409 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5410 newline.
5411 * thread-db.c (attach_thread): Don't end warning with a newline.
5412 (thread_db_notice_clone): Likewise.
5413 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5414 newline.
5415 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5416 end warning with a newline.
5417
b02f78f9
PA
54182019-06-04 Pedro Alves <palves@redhat.com>
5419
5420 * server.c (captured_main): Use make_unique_xstrdup.
5421
88ed7edb
TT
54222019-06-02 Tom Tromey <tom@tromey.com>
5423
5424 * gdbreplay.c (fromhex): Remove.
5425 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5426
33a6bc35
TT
54272019-05-29 Tom Tromey <tromey@adacore.com>
5428
5429 * configure: Rebuild.
5430
e90a813d
KB
54312019-05-06 Kevin Buettner <kevinb@redhat.com>
5432
5433 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5434 sign extension code on 32-bit builds.
5435
353ea2d1
EZ
54362019-05-03 Eli Zaretskii <eliz@gnu.org>
5437
5438 * remote-utils.c:
5439 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5440
b494cdff
TT
54412019-04-19 Tom Tromey <tom@tromey.com>
5442
5443 * server.c (struct vstop_notif): Derive from notif_event.
5444 <base>: Remove.
5445 (queue_stop_reply): Update.
5446 (remove_all_on_match_ptid): Change type. Rewrite.
5447 (discard_queued_stop_replies): Rewrite.
5448 (in_queued_stop_replies_ptid): Change type.
5449 (in_queued_stop_replies): Rewrite.
5450 (notif_stop): Update.
5451 (queue_stop_reply_callback): Update.
5452 (captured_main): Don't call initialize_notif.
5453 (push_stop_notification): Update.
5454 * notif.c (notif_write_event, handle_notif_ack)
5455 (notif_event_enque, notif_push): Update.
5456 (notif_event_xfree, initialize_notif): Remove.
5457 * notif.h (struct notif_event): Include <list>, not
5458 "common/queue.h".
5459 (struct notif_server) <queue>: Now a std::list.
5460 (notif_event_p): Remove typedef.
5461 (initialize_notif): Don't declare.
5462 (struct notif_event): Add virtual destructor.
5463
a7e559cc
AH
54642019-04-17 Alan Hayward <alan.hayward@arm.com>
5465
5466 * ax.c (ax_vdebug): Call debug_printf.
5467 * debug.c (debug_write): New function.
5468 * debug.h (debug_write): New declaration.
5469 * linux-low.c (sigchld_handler): Call debug_write.
5470
aeb2e706
AH
54712019-04-17 Alan Hayward <alan.hayward@arm.com>
5472
5473 * debug.c (debug_set_output): New function.
5474 (debug_vprintf): Send output to debug_file.
5475 (debug_flush): Likewise.
5476 * debug.h (debug_set_output): New declaration.
5477 * server.c (handle_monitor_command): Add debug-file option.
5478 (captured_main): Likewise.
5479
c1bc0935
AH
54802019-04-17 Alan Hayward <alan.hayward@arm.com>
5481
5482 * debug.c (remote_debug): Add definition.
5483 * debug.h (remote_debug): Add declaration.
5484 * hostio.c (remote_debug): Remove declaration.
5485 * remote-utils.c (struct ui_file): Likewise.
5486 (remote_debug): Likewise.
5487 * remote-utils.h (remote_debug): Likewise,
5488 * server.c (remote_debug): Remove definition.
5489
3f52fdbc
KB
54902019-04-10 Kevin Buettner <kevinb@redhat.com>
5491
5492 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5493 when using a 64-bit gdbserver.
5494
b0319eaa
TT
54952019-04-09 Tom Tromey <tromey@adacore.com>
5496
5497 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5498
eedc3f4f
TT
54992019-04-08 Tom Tromey <tom@tromey.com>
5500
5501 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5502 throw.
5503 (linux_resume_one_lwp): Likewise.
5504
230d2906
TT
55052019-04-08 Tom Tromey <tom@tromey.com>
5506
5507 * gdbreplay.c: Update.
5508 * linux-low.c: Update.
5509 * server.c: Update.
5510
a70b8144
TT
55112019-04-08 Tom Tromey <tom@tromey.com>
5512
5513 * server.c: Use C++ exception handling.
5514 * linux-low.c: Use C++ exception handling.
5515 * gdbreplay.c: Use C++ exception handling.
5516
3d6e9d23
TT
55172019-04-08 Tom Tromey <tom@tromey.com>
5518
5519 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5520 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5521 (captured_main, main): Update.
5522 * gdbreplay.c (main): Update.
5523
0570503d
PFC
55242019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5525
5526 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5527 value in argument pointer, return 1 if the entry is found and 0
5528 otherwise. Move comment.
5529 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5530 * linux-low.h (linux_get_auxv): Declare.
5531 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5532
227a9e65
TT
55332019-04-05 Tom Tromey <tromey@adacore.com>
5534
5535 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5536 variables.
5537
69f4c9cc
AH
55382019-03-28 Alan Hayward <alan.hayward@arm.com>
5539
5540 * linux-low.c (AT_HWCAP2): Add define if not already included.
5541
974c89e0
AH
55422019-03-26 Alan Hayward <alan.hayward@arm.com>
5543
5544 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5545 (aarch64_arch_setup): Call linux_get_hwcap.
5546 * linux-arm-low.c (arm_get_hwcap): Remove function.
5547 (arm_read_description): Call linux_get_hwcap.
5548 * linux-low.c (linux_get_auxv): New function.
5549 (linux_get_hwcap): Likewise.
5550 (linux_get_hwcap2): Likewise.
5551 * linux-low.h (linux_get_hwcap): New declaration.
5552 (linux_get_hwcap2): Likewise.
5553 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5554 (ppc_arch_setup): Call linux_get_hwcap.
5555 * linux-s390-low.c (s390_get_hwcap): Remove function.
5556 (s390_arch_setup): Call linux_get_hwcap.
5557
1ef53e6b
AH
55582019-03-22 Alan Hayward <alan.hayward@arm.com>
5559 Jiong Wang <jiong.wang@arm.com>
5560
5561 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5562 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5563 to fail.
5564 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5565
ee4fbcfa
AH
55662019-03-22 Alan Hayward <alan.hayward@arm.com>
5567 Jiong Wang <jiong.wang@arm.com>
5568
5569 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5570 (aarch64_get_hwcap): New function.
5571 (aarch64_arch_setup): Read APIA hwcap.
5572
6dc0ebde
AH
55732019-03-22 Alan Hayward <alan.hayward@arm.com>
5574 Jiong Wang <jiong.wang@arm.com>
5575
5576 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5577 (initialize_low_tracepoint): Likewise.
5578 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5579 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5580 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5581 (aarch64_linux_read_description): Likewise.
5582 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5583
1163a4b7
JB
55842019-03-12 John Baldwin <jhb@FreeBSD.org>
5585
5586 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5587 i386_create_target_description for 'segments' parameter.
5588 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5589 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5590 * win32-i386-low.c (i386_arch_setup): Likewise.
5591
d3a70e03
TT
55922019-03-12 Tom Tromey <tromey@adacore.com>
5593
5594 * linux-low.c (iterate_over_lwps): Update.
5595
37991b4f
TT
55962019-03-06 Tom Tromey <tom@tromey.com>
5597
5598 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5599 (captured_main): Use SCOPE_EXIT.
5600
45950eb6
SDJ
56012019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5602
5603 * configure.srv: Use '$enable_unittest' instead of '$development'
5604 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5605 case.
5606
43ac54fc
TT
56072019-02-27 Tom Tromey <tromey@adacore.com>
5608
5609 * gdbreplay.c (logchar): Handle \r\n.
5610
df0da8a2
AH
56112019-02-07 Alan Hayward <alan.hayward@arm.com>
5612
5613 * linux-low.c (linux_attach): Add process before lwp.
5614 * server.c (attach_inferior): Check if already attached.
5615
1a5c2598
TT
56162019-02-07 Tom Tromey <tom@tromey.com>
5617
5618 * x86-tdesc.h: Rename include guard.
5619 * x86-low.h: Add include guard.
5620 * wincecompat.h: Rename include guard.
5621 * win32-low.h: Add include guard.
5622 * utils.h: Rename include guard.
5623 * tracepoint.h: Rename include guard.
5624 * tdesc.h: Rename include guard.
5625 * target.h: Rename include guard.
5626 * server.h: Rename include guard.
5627 * remote-utils.h: Rename include guard.
5628 * regcache.h: Rename include guard.
5629 * nto-low.h: Rename include guard.
5630 * notif.h: Add include guard.
5631 * mem-break.h: Rename include guard.
5632 * lynx-low.h: Add include guard.
5633 * linux-x86-tdesc.h: Add include guard.
5634 * linux-s390-tdesc.h: Add include guard.
5635 * linux-ppc-tdesc-init.h: Add include guard.
5636 * linux-low.h: Add include guard.
5637 * linux-aarch64-tdesc.h: Add include guard.
5638 * linux-aarch32-low.h: Add include guard.
5639 * inferiors.h: Rename include guard.
5640 * i387-fp.h: Rename include guard.
5641 * hostio.h: Rename include guard.
5642 * gdbthread.h: Rename include guard.
5643 * gdb_proc_service.h: Rename include guard.
5644 * event-loop.h: Rename include guard.
5645 * dll.h: Rename include guard.
5646 * debug.h: Rename include guard.
5647 * ax.h: Rename include guard.
5648
956cc47c
SN
56492018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5650
5651 PR gdb/23985
5652 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5653 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5654
a0707f3c
TT
56552019-01-25 Tom Tromey <tom@tromey.com>
5656
5657 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5658
0747795c
TT
56592019-01-25 Tom Tromey <tom@tromey.com>
5660
5661 * win32-low.c: Fix common/ includes.
5662 * win32-i386-low.c: Fix common/ includes.
5663 * tracepoint.c: Fix common/ includes.
5664 * thread-db.c: Fix common/ includes.
5665 * target.h: Fix common/ includes.
5666 * symbol.c: Fix common/ includes.
5667 * spu-low.c: Fix common/ includes.
5668 * server.h: Fix common/ includes.
5669 * server.c: Fix common/ includes.
5670 * remote-utils.c: Fix common/ includes.
5671 * regcache.h: Fix common/ includes.
5672 * regcache.c: Fix common/ includes.
5673 * nto-x86-low.c: Fix common/ includes.
5674 * notif.h: Fix common/ includes.
5675 * mem-break.h: Fix common/ includes.
5676 * lynx-low.c: Fix common/ includes.
5677 * lynx-i386-low.c: Fix common/ includes.
5678 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5679 * linux-x86-low.c: Fix common/ includes.
5680 * linux-low.c: Fix common/ includes.
5681 * inferiors.h: Fix common/ includes.
5682 * i387-fp.c: Fix common/ includes.
5683 * hostio.c: Fix common/ includes.
5684 * hostio-errno.c: Fix common/ includes.
5685 * gdbthread.h: Fix common/ includes.
5686 * gdbreplay.c: Fix common/ includes.
5687 * fork-child.c: Fix common/ includes.
5688 * event-loop.c: Fix common/ includes.
5689 * ax.c:
5690 (enum gdb_agent_op): Fix common/ includes.
5691
be6d4f74
TT
56922019-01-21 Tom Tromey <tom@tromey.com>
5693
5694 * tracepoint.c: Fix includes.
5695 * remote-utils.c: Fix includes.
5696 * linux-x86-low.c: Fix includes.
5697
66d91b39
JB
56982019-01-01 Joel Brobecker <brobecker@adacore.com>
5699
5700 * gdbreplay.c (gdbreplay_version): Update copyright year in
5701 version message.
5702 * server.c (gdbserver_version): Likewise.
5703
754e3168
AH
57042018-12-05 Alan Hayward <alan.hayward@arm.com>
5705
5706 * linux-low.c (add_lwp): Switch ordering.
5707
d105de22
TT
57082018-11-29 Tom Tromey <tom@tromey.com>
5709
5710 * win32-low.c (win32_join): Take pid, not process.
5711 * target.h (struct target_ops) <join>: Change argument type.
5712 (join_inferior): Change argument name.
5713 * spu-low.c (spu_join): Take pid, not process.
5714 * server.c (handle_detach): Preserve pid before destroying
5715 process.
5716 * lynx-low.c (lynx_join): Take pid, not process.
5717 * linux-low.c (linux_join): Take pid, not process.
5718
50138245
AH
57192018-11-23 Alan Hayward <alan.hayward@arm.com>
5720
5721 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5722 (aarch64_cannot_fetch_register): Likewise.
5723 (struct linux_target_ops): Update references.
5724
64f57f3d
PFC
57252018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5726
5727 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5728
8d619c01
EBM
57292018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5730
5731 * configure.srv (ipa_ppc_linux_regobj): Add
5732 powerpc-isa207-htm-vsx32l-ipa.o and
5733 powerpc-isa207-htm-vsx64l-ipa.o.
5734 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5735 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5736 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5737 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5738 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5739 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5740 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5741 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5742 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5743 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5744 (init_registers_powerpc_isa207_htm_vsx32l)
5745 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5746 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5747 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5748 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5749 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5750 (ppc_store_tm_ctarregset): New functions.
5751 (ppc_regsets): Add entries for HTM regsets.
5752 (ppc_arch_setup): Set htm in features struct when needed. Set
5753 sizes for the HTM regsets.
5754 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5755 (initialize_low_arch): Call
5756 init_registers_powerpc_isa207_htm_vsx32l and
5757 init_registers_powerpc_isa207_htm_vsx64l.
5758 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5759 PPC_TDESC_ISA207_HTM_VSX.
5760 (initialize_low_tracepoint): Call
5761 init_registers_powerpc_isa207_htm_vsx32l and
5762 init_registers_powerpc_isa207_htm_vsx64l.
5763
232bfb86
EBM
57642018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5765
5766 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5767 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5768 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5769 (ppc_store_pmuregset): New functions.
5770 (ppc_regsets): Add entries for ebb and pmu regsets.
5771 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5772 pmu regsets are available. Set sizes for these regsets.
5773
f2cf6173
EBM
57742018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5775
5776 * configure.srv (ipa_ppc_linux_regobj): Add
5777 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5778 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5779 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5780 rs6000/powerpc-isa207-vsx32l.xml, and
5781 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5782 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5783 <PPC_TDESC_ISA207_VSX>: New enum value.
5784 (init_registers_powerpc_isa207_vsx32l): Declare.
5785 (init_registers_powerpc_isa207_vsx64l): Declare.
5786 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5787 (ppc_store_tarregset): New function.
5788 (ppc_regsets): Add entry for the TAR regset.
5789 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5790 size for the TAR regsets.
5791 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5792 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5793 and init_registers_powerpc_isa207_vsx64l.
5794 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5795 (initialize_low_tracepoint): Call
5796 init_registers_powerpc_isa207_vsx32l and
5797 init_registers_powerpc_isa207_vsx64l.
5798
7ca18ed6
EBM
57992018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5800 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5801
5802 * configure.srv (ipa_ppc_linux_regobj): Add
5803 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5804 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5805 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5806 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5807 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5808 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5809 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5810 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5811 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5812 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5813 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5814 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5815 (ppc_hwcap): Add comment.
5816 (ppc_hwcap2): New global.
5817 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5818 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5819 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5820 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5821 when needed. Set sizes for the the DSCR and PPR regsets.
5822 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5823 (initialize_low_arch): Call
5824 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5825 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5826 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5827 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5828 (initialize_low_tracepoint): Call
5829 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5830 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5831
5c849b22
PFC
58322018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5833
5834 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5835
8ecfd7bd
SDJ
58362018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5837 Simon Marchi <simark@simark.ca>
5838
5839 * acinclude.m4: Include "../selftest.m4".
5840 * configure: Regenerate.
5841 * configure.ac: Use "GDB_AC_SELFTEST".
5842 * configure.srv: Use "$enable_unittests" instead of
5843 "$development" when checking whether unit tests have been
5844 enabled.
5845 * server.c (captured_main): Update message informing that
5846 selftests have been disabled.
5847
96643e35
TT
58482018-10-04 Tom Tromey <tom@tromey.com>
5849
5850 * configure: Rebuild.
5851
da4ae14a
TT
58522018-10-04 Tom Tromey <tom@tromey.com>
5853
5854 * server.c (handle_status): Rename inner "thread".
5855 (process_serial_event): Declare "res" in 'm' case.
5856 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5857 (iterate_over_lwps): Rename inner "thread".
5858 (linux_qxfer_libraries_svr4): Rename inner "len".
5859 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5860
7c619dbd
GB
58612018-10-01 Gary Benson <gbenson@redhat.com>
5862
5863 * gdb_proc_service.h: Moved common code to
5864 common/gdb_proc_service.h.
5865
3795e814
GB
58662018-10-01 Gary Benson <gbenson@redhat.com>
5867
5868 * gdb_proc_service.h: Synchronize comments and whitespace with
5869 GDB's version of this file.
5870
49b036f1
TT
58712018-09-25 Tom Tromey <tom@tromey.com>
5872
5873 * configure: Rebuild.
5874 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5875
8ff03f0b
SM
58762018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5877
5878 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5879 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5880 ($(IPA_LIB)): Sort IPA_OBJS.
5881
a1cd91dc
SM
58822018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5883
5884 * Makefile.in: Remove references to $(ADD_DEPS).
5885
752312ba
TT
58862018-09-16 Tom Tromey <tom@tromey.com>
5887
5888 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5889 variables.
5890 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5891 variables.
5892
f1628857
TT
58932018-09-05 Tom Tromey <tom@tromey.com>
5894
5895 * configure: Rebuild.
5896
ad202fcc
SM
58972018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5898
5899 PR build/23399
5900 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5901
d3d8724a
TT
59022018-08-27 Tom Tromey <tom@tromey.com>
5903
5904 PR build/23087:
5905 * configure: Rebuild.
5906
b4f183d2
TT
59072018-08-27 Tom Tromey <tom@tromey.com>
5908
5909 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5910 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5911 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5912 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5913 (s390x_emit_stack_adjust): Add casts to unsigned char.
5914
4e2aa472
SM
59152018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5916
5917 PR gdb/23374
5918 PR gdb/23375
5919 * server.h (struct client_state) <disable_randomization>:
5920 Initialize to 1.
5921
cf4088a9
SM
59222018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5923
5924 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5925 variable.
5926 (mips_supply_ptrace_register): Likewise.
5927
a0de763e
TT
59282018-07-22 Tom Tromey <tom@tromey.com>
5929
5930 * configure: Rebuild.
5931
b0a7723d
TT
59322018-07-22 Tom Tromey <tom@tromey.com>
5933
5934 * win32-low.c (win32_create_inferior): Remove unused variables.
5935 * gdbreplay.c (remote_open): Remove unused variable.
5936 * remote-utils.c (remote_prepare): Remove unused variable.
5937 * x86-tdesc.h (X86_TDESC_H): Define.
5938 (amd64_expedite_regs): Define conditionally.
5939 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5940 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5941 * remote-utils.c (readchar): Remove unused variable.
5942
a780ef4f
PA
59432018-07-13 Pedro Alves <palves@redhat.com>
5944
5945 * linux-low.c (linux_kill): Change parameter to process_info
5946 pointer instead of pid. Adjust.
5947 * lynx-low.c (lynx_kill): Likewise.
5948 * nto-low.c (nto_kill): Likewise.
5949 * spu-low.c (spu_kill): Likewise.
5950 * win32-low.c (win32_kill): Likewise.
5951 * server.c (handle_v_kill, kill_inferior_callback)
5952 (detach_or_kill_for_exit): Adjust.
5953 * target.c (kill_inferior): Change parameter to process_info
5954 pointer instead of pid. Adjust.
5955 * target.h (struct target_ops) <kill>: Change parameter to
5956 process_info pointer instead of pid. Adjust all implementations
5957 and callers.
5958 (kill_inferior): Likewise.
5959
ef2ddb33
PA
59602018-07-13 Pedro Alves <palves@redhat.com>
5961
5962 * linux-low.c (linux_detach, linux_join): Change parameter to
5963 process_info pointer instead of pid. Adjust.
5964 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5965 * nto-low.c (nto_detach): Likewise.
5966 * spu-low.c (spu_detach, spu_join): Likewise.
5967 * win32-low.c (win32_detach, win32_join): Likewise.
5968 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5969 * target.h (struct target_ops) <detach, join>: Change parameter to
5970 process_info pointer instead of pid. Adjust all implementations
5971 and callers.
5972 (detach_inferior, join_inferior): Rename 'pid' parameter to
5973 'proc'.
5974
c7ab0aef
SDJ
59752018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5976 Jan Kratochvil <jan.kratochvil@redhat.com>
5977 Paul Fertser <fercerpav@gmail.com>
5978 Tsutomu Seki <sekiriki@gmail.com>
5979
5980 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5981 (OBS): Add 'common/netstuff.o'.
5982 (GDBREPLAY_OBS): Likewise.
5983 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5984 (remote_open): Implement support for IPv6
5985 connections.
5986 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5987 and 'wspiapi.h'.
5988 (handle_accept_event): Accept connections from IPv6 sources.
5989 (remote_prepare): Handle IPv6-style hostnames; implement
5990 support for IPv6 connections.
5991 (remote_open): Implement support for printing connections from
5992 IPv6 sources.
5993
31445d10
PA
59942018-07-11 Pedro Alves <palves@redhat.com>
5995
5996 PR gdb/23377
5997 * mem-break.c (any_persistent_commands): Add process_info
5998 parameter and use it instead of relying on the current process.
5999 Change return type to bool.
6000 * mem-break.h (any_persistent_commands): Add process_info
6001 parameter and change return type to bool.
6002 * server.c (handle_detach): Remove require_running_or_return call.
6003 Look up the process_info for the process we're about to detach.
6004 If not found, return back error to GDB. Adjust
6005 any_persistent_commands call to pass down a process pointer.
6006
cb197132
PA
60072018-07-11 Pedro Alves <palves@redhat.com>
6008
6009 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6010 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6011 instead of collect_register_by_name.
6012 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6013 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6014
1b919490
VB
60152018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6016 Pedro Alves <palves@redhat.com>
6017
6018 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6019
d7e15655
TT
60202018-07-03 Tom Tromey <tom@tromey.com>
6021
6022 * linux-low.c: Update.
6023 * lynx-low.c: Update.
6024 * mem-break.c: Update.
6025 * nto-low.c: Update.
6026 * remote-utils.c: Update.
6027 * server.c: Update.
6028 * spu-low.c: Update.
6029 * target.c: Update.
6030 * win32-low.c: Update.
6031
26a57c92
TT
60322018-07-03 Tom Tromey <tom@tromey.com>
6033
6034 * server.c: Update.
6035
0e998d96
TT
60362018-07-03 Tom Tromey <tom@tromey.com>
6037
6038 * linux-low.c: Update.
6039
cc6bcb54
TT
60402018-07-03 Tom Tromey <tom@tromey.com>
6041
6042 * target.c: Update.
6043
e38504b3
TT
60442018-07-03 Tom Tromey <tom@tromey.com>
6045
6046 * linux-low.c: Update.
6047 * linux-mips-low.c: Update.
6048 * lynx-low.c: Update.
6049 * nto-low.c: Update.
6050 * remote-utils.c: Update.
6051 * server.c: Update.
6052 * spu-low.c: Update.
6053 * target.c: Update.
6054 * thread-db.c: Update.
6055
e99b03dc
TT
60562018-07-03 Tom Tromey <tom@tromey.com>
6057
6058 * linux-low.c: Update.
6059 * linux-mips-low.c: Update.
6060 * lynx-low.c: Update.
6061 * mem-break.c: Update.
6062 * nto-low.c: Update.
6063 * remote-utils.c: Update.
6064 * server.c: Update.
6065 * spu-low.c: Update.
6066 * target.c: Update.
6067 * tracepoint.c: Update.
6068
f2907e49
TT
60692018-07-03 Tom Tromey <tom@tromey.com>
6070
6071 * linux-low.c: Update.
6072 * linux-ppc-low.c: Update.
6073 * linux-x86-low.c: Update.
6074 * proc-service.c: Update.
6075 * server.c: Update.
6076 * spu-low.c: Update.
6077 * thread-db.c: Update.
6078 * win32-low.c: Update.
6079
fd79271b
TT
60802018-07-03 Tom Tromey <tom@tromey.com>
6081
6082 * linux-low.c: Update.
6083 * lynx-low.c: Update.
6084 * nto-low.c: Update.
6085 * remote-utils.c: Update.
6086 * spu-low.c: Update.
6087 * thread-db.c: Update.
6088 * win32-low.c: Update.
6089
c0867626
SDJ
60902018-06-29 Joel Brobecker <brobecker@adacore.com>
6091
6092 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6093 parameter in call to 'amd64_create_target_description'.
6094
2512d7ef
JK
60952018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6096
6097 * x86-tdesc.h: Remove executable permission flag.
6098
d0ac1c44
SM
60992018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6100
6101 * configure.ac: Remove AC_PREREQ, add missing quoting.
6102 * configure: Re-generate.
6103 * config.in: Re-generate.
6104 * aclocal.m4: Re-generate.
6105
c4eb05ff
SM
61062018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6107
6108 * tracepoint.h (current_traceframe): Remove declaration.
6109
02895270
AH
61102018-06-18 Alan Hayward <alan.hayward@arm.com>
6111
6112 * linux-aarch64-low.c (is_sve_tdesc): New function.
6113 (aarch64_sve_regs_copy_to_regcache): Likewise.
6114 (aarch64_sve_regs_copy_from_regcache): Likewise.
6115 (aarch64_regs_info): Add SVE checks.
6116 (initialize_low_arch): Initialize SVE.
6117
e9902bfc
AH
61182018-06-18 Alan Hayward <alan.hayward@arm.com>
6119
6120 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6121
fefa175e
AH
61222018-06-11 Alan Hayward <alan.hayward@arm.com>
6123
6124 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6125 (initialize_low_tracepoint): Likewise
6126 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6127 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6128 param.
6129 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6130 checks.
6131 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6132
b91ad3ff
AH
61332018-06-11 Alan Hayward <alan.hayward@arm.com>
6134
6135 * server.h (PBUFSIZ): Increase size
6136
f868386e
AH
61372018-06-11 Alan Hayward <alan.hayward@arm.com>
6138
6139 * regcache.c (regcache::raw_compare): New function.
6140 * regcache.h (regcache::raw_compare): New declaration.
6141
9c861883
AH
61422018-06-11 Alan Hayward <alan.hayward@arm.com>
6143
6144 * regcache.c (new_register_cache): Use new.
6145 (free_register_cache): Use delete.
6146 (register_data): Use const.
6147 (supply_register): Move body inside regcache.
6148 (regcache::raw_supply): New override function.
6149 (collect_register): Move body inside regcache.
6150 (regcache::raw_collect): New override function.
6151 (regcache::get_register_status): New override function.
6152 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6153
40591844
TT
61542018-06-09 Tom Tromey <tom@tromey.com>
6155
6156 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6157 declare queue.
6158 (event_queue): Use std::queue.
6159 (gdb_event_xfree): Remove.
6160 (initialize_event_loop, process_event, wait_for_event): Update.
6161
6341380d
SC
61622018-06-08 Stan Cox <scox@redhat.com>
6163
6164 * win32-low.c (win32_create_inferior): last_ptid and last_status
6165 moved to client_state.
6166
03349c93
PA
61672018-06-08 Pedro Alves <palves@redhat.com>
6168
6169 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6170 common/common-exceptions.o, common/common-utils.o,
6171 common/errors.o, common/print-utils.o and utils.o.
6172 * gdbreplay.c: Include "common-defs.h" instead of the two
6173 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6174 string.h or alloca.h.
6175 (perror_with_name): Delete.
6176 (remote_open): Use xstrdup instead of strdup.
6177 (main): Rename to ...
6178 (captured_main): ... this.
6179 (main): New.
6180
8dcc53b3
TT
61812018-06-08 Tom Tromey <tom@tromey.com>
6182
6183 * linux-low.c (linux_low_read_btrace): Update.
6184
c12a5089
SC
61852018-06-04 Stan Cox <scox@redhat.com>
6186
6187 * server.h (struct client_state): New.
6188 * server.c (cont_thread, general_thread, multi_process)
6189 (report_fork_events, report_vfork_events, report_exec_events)
6190 (report_thread_events, swbreak_feature, hwbreak_feature)
6191 (vCont_supported, disable_randomization, pass_signals)
6192 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6193 Moved to client_state.
6194 * remote-utils.c (remote_debug, noack_mode)
6195 (transport_is_reliable): Moved to client_state.
6196 * tracepoint.c (current_traceframe): Moved to client_state.
6197
6198 Update all callers.
6199 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6200 linux-low.c, remote-utils.h, target.c: Use client_state.
6201
122394f1
AH
62022018-05-31 Alan Hayward <alan.hayward@arm.com>
6203
6204 * configure.srv: Add new c/h file.
6205
95228a0d
AH
62062018-05-31 Alan Hayward <alan.hayward@arm.com>
6207
6208 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6209 null VQ.
6210
d8dab6c3
MR
62112018-05-25 Maciej W. Rozycki <macro@mips.com>
6212
6213 * gdb.arch/mips-fpregset-core.exp: New test.
6214 * gdb.arch/mips-fpregset-core.c: New test source.
6215
81e25b7c
EK
62162018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6217
6218 PR server/23198
6219 * hostio.c (require_int): Do not report overflow for integers
6220 between 0xfffffff and 0x7fffffff.
6221
7e947ad3
MR
62222018-05-22 Maciej W. Rozycki <macro@mips.com>
6223
6224 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6225 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6226 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6227 functions.
6228 (the_low_target): Wire them.
6229
1d75a658
PFC
62302018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6231
6232 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6233 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6234 mode. Call collect_register_by_name with vscr using
6235 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6236 (ppc_store_vrregset): Add and set vscr_offset variable as in
6237 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6238 vscr_offset.
6239
d078308a
PFC
62402018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6241
6242 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6243 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6244 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6245
7273b5fc
PFC
62462018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6247
6248 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6249 (ppc_store_vsxregset): Likewise.
6250 (ppc_fill_vrregset): Likewise.
6251 (ppc_store_vrregset): Likewise.
6252 (ppc_fill_evrregset): Likewise.
6253 (ppc_store_evrregset): Likewise.
6254 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6255 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6256 needed.
6257
2e077f5e
PFC
62582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6259
6260 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6261 wordsize of the inferior. Call ppc_linux_target_wordsize.
6262
bd64614e
PFC
62632018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6264
6265 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6266 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6267 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6268 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6269 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6270 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6271 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6272 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6273 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6274 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6275 (tdesc_powerpc_e500l): Remove.
6276 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6277 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6278 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6279 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6280 linux-ppc-tdesc.h.
6281 (ppc_arch_setup): Remove target description matching code. Fill a
6282 ppc_linux_features struct and call ppc_linux_match_description
6283 with it.
6284
75d74cca
MR
62852018-05-22 Maciej W. Rozycki <macro@mips.com>
6286
6287 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6288 width of the requested register exceeds the width of the
6289 `ptrace' data type.
6290 (mips_cannot_store_register): Likewise.
6291
e4439e43
MR
62922018-05-21 Maciej W. Rozycki <macro@mips.com>
6293
6294 * linux-mips-low.c (mips_fetch_register): New function. Update
6295 preceding comment.
6296 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6297 (the_low_target): Wire `mips_fetch_register'.
6298
55271bf9
JB
62992018-05-10 Joel Brobecker <brobecker@adacore.com>
6300
6301 * lynx-i386-low.c (LYNXOS_178): New macro.
6302 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6303 the layout on LynxOS-178.
6304 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6305 handle floating point registers that are not supported by
6306 LynxOS-178.
6307
1a34f210
TT
63082018-05-10 Tom Tromey <tom@tromey.com>
6309
6310 * configure: Rebuild.
6311
190852c8
JB
63122018-05-10 Joel Brobecker <brobecker@adacore.com>
6313
6314 PR server/23158:
6315 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6316 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6317 Use it to set the expedite_regs field in the given tdesc.
6318 * x86-tdesc.h: New file.
6319 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6320 Adjust following the addition of the new expedite_regs parameter
6321 to init_target_desc.
6322 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6323 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6324 (i386_linux_read_description, amd64_linux_read_description):
6325 Adjust following the addition of the new expedite_regs parameter
6326 to init_target_desc.
6327 * lynx-i386-low.c: #include "x86-tdesc.h".
6328 (lynx_i386_arch_setup): Adjust following the addition of the new
6329 expedite_regs parameter to init_target_desc.
6330 * nto-x86-low.c: #include "x86-tdesc.h".
6331 (nto_x86_arch_setup): Adjust following the addition of the new
6332 expedite_regs parameter to init_target_desc.
6333 * win32-i386-low.c: #include "x86-tdesc.h".
6334 (i386_arch_setup): Adjust following the addition of the new
6335 expedite_regs parameter to init_target_desc.
6336
7dbac825
JB
63372018-05-10 Joel Brobecker <brobecker@adacore.com>
6338
6339 PR server/23158:
6340 * win32-low.c (win32_create_inferior): Add call to my_wait
6341 setting last_status global.
6342
906994d9
JB
63432018-05-10 Joel Brobecker <brobecker@adacore.com>
6344
6345 PR server/23158:
6346 * win32-low.c (create_process): Only call gdb_tilde_expand if
6347 inferior_cwd is not NULL.
6348
8ee22052
AB
63492018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6350
6351 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6352 registers to the cache if their values have changed.
6353 (i387_xsave_to_cache): Provide default values for x87 control
6354 registers when these features are available, but disabled.
6355 * regcache.c (supply_register_by_name_zeroed): New function.
6356 * regcache.h (supply_register_by_name_zeroed): Declare new
6357 function.
6358
aff689d3
TT
63592018-05-07 Tom Tromey <tom@tromey.com>
6360
6361 * configure: Rebuild.
6362
85e26832
TT
63632018-05-04 Tom Tromey <tom@tromey.com>
6364
6365 * configure: Rebuild.
6366
a3b60e45
JK
63672018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6368 Pedro Alves <palves@redhat.com>
6369
6370 * linux-aarch64-low.c (aarch64_stopped_data_address):
6371 Likewise.
6372
632e107b
TT
63732018-04-27 Tom Tromey <tom@tromey.com>
6374
6375 * configure: Rebuild.
6376
458412c3
TT
63772018-04-23 Tom Tromey <tom@tromey.com>
6378
6379 * configure: Rebuild.
6380
f31c089e
SM
63812018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6382
6383 * Makefile.in (depcomp): Add "..".
6384 (all_deps_files): New and use it.
6385
b319b098
AH
63862018-04-18 Alan Hayward <alan.hayward@arm.com>
6387
6388 * configure.srv (aarch64*-*-linux*): Don't include xml.
6389 (i[34567]86-*-cygwin*): Likewise.
6390 (i[34567]86-*-linux*): Likewise.
6391 (i[34567]86-*-lynxos*): Likewise.
6392 (i[34567]86-*-mingw32ce*): Likewise.
6393 (i[34567]86-*-mingw*): Likewise.
6394 (i[34567]86-*-nto*): Likewise.
6395 (tic6x-*-uclinux): Likewise.
6396 (x86_64-*-linux*): Likewise.
6397 (x86_64-*-mingw*): Likewise.
6398 (x86_64-*-cygwin*): Likewise.
6399
3b74854b
AH
64002018-04-18 Alan Hayward <alan.hayward@arm.com>
6401
6402 * tdesc.c: Remove xml parameter.
6403
e98577a9
AH
64042018-04-18 Alan Hayward <alan.hayward@arm.com>
6405
6406 * server.c (get_features_xml): Remove cast.
6407 * tdesc.c (void target_desc::accept): Fill in function.
6408 (tdesc_get_features_xml): Remove old xml creation.
6409 (print_xml_feature::visit_pre): Add xml vistor.
6410 * tdesc.h (struct target_desc): Make xmltarget mutable.
6411 (tdesc_get_features_xml): Remove declaration.
6412
d278f585
AH
64132018-04-18 Alan Hayward <alan.hayward@arm.com>
6414
6415 * tdesc.c (tdesc_architecture_name): Add new function.
6416 (tdesc_osabi_name): Likewise.
6417 (tdesc_get_features_xml): Use new functions.
6418
eee8a18d
AH
64192018-04-18 Alan Hayward <alan.hayward@arm.com>
6420
6421 * tdesc.c (tdesc_create_flags): Remove.
6422 (tdesc_add_flag): Likewise.
6423 (tdesc_named_type): Likewise.
6424 (tdesc_create_union): Likewise.
6425 (tdesc_create_struct): Likewise.
6426 (tdesc_create_vector): Likewise.
6427 (tdesc_add_bitfield): Likewise.
6428 (tdesc_add_field): Likewise.
6429 (tdesc_set_struct_size): Likewise.
6430
82ec9bc7
AH
64312018-04-18 Alan Hayward <alan.hayward@arm.com>
6432
6433 * tdesc.c (~target_desc): Remove implictly deleted items.
6434 (init_target_desc): Iterate all features.
6435 (tdesc_get_features_xml): Use vector.
6436 (tdesc_create_feature): Create feature.
6437 * tdesc.h (tdesc_feature) Remove
6438 (target_desc): Add features.
6439
ea3e7d71
AH
64402018-04-18 Alan Hayward <alan.hayward@arm.com>
6441
6442 * Makefile.in: Add common/tdesc.c
6443 * tdesc.c (init_target_desc): init all reg_defs from register
6444 vector.
6445 (tdesc_create_reg): Create tdesc_reg.
6446 * tdesc.h (tdesc_feature): Add register vector.
6447
17d08cd4
SM
64482018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6449
6450 * tdesc.h (struct target_desc) <features>: Change type to
6451 std::vector<std::string>.
6452 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6453 changes.
6454 (tdesc_get_features_xml): Likewise.
6455 (tdesc_create_feature): Likewise.
6456
5cd3e386
AH
64572018-03-26 Alan Hayward <alan.hayward@arm.com>
6458
6459 * regcache.c (find_register_by_number): Return a ref.
6460 (find_regno): Use references.
6461 (register_size): Likewise.
6462 (register_data): Likewise.
6463 * tdesc.c (target_desc::~target_desc): Remove free calls.
6464 (target_desc::operator==): Use std::vector compare.
6465 (init_target_desc): Use reference.
6466 (tdesc_create_reg): Use reg constructors.
6467 * tdesc.h (struct target_desc): Replace pointer with object.
6468
dff7492c
AH
64692018-03-23 Alan Hayward <alan.hayward@arm.com>
6470
6471 * regcache.c (find_register_by_number): Make static.
6472 (find_regno): Use find_register_by_number
6473 * regcache.h (struct reg): Remove declaration.
6474
d80e5242
AH
64752018-03-23 Alan Hayward <alan.hayward@arm.com>
6476
6477 * tdesc.c (target_desc::~target_desc): Move to here.
6478 (target_desc::operator==): Likewise.
6479 * tdesc.h (target_desc::~target_desc): Move from here.
6480 (target_desc::operator==): Likewise.
6481
f69c5afb
AA
64822018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6483
6484 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6485
ce29f843
AA
64862018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6487
6488 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6489 S390_TDESC_GS.
6490 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6491 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6492 and init_registers_s390_gs_linux64.
6493
c49bd90b
AA
64942018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6495
6496 * linux-s390-low.c (s390_fill_gs): Remove function.
6497 (s390_fill_gsbc): Remove function.
6498 (s390_regsets): Set fill functions for the guarded storage regsets
6499 to NULL.
6500
7edb9bd3
AA
65012018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6502
6503 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6504 the word size. Add comment.
6505 (s390_get_wordsize): New function.
6506 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6507 pswm with it. Instead, use s390_get_wordsize to determine the
6508 word size first and derive the correct tdesc from that directly.
6509
39be3c7e
SM
65102018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6511
6512 * Makefile.in: Include silent-rules.mk.
6513 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6514 (COMPILE): Add ECHO_CXX.
6515 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6516 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6517 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6518 (version-generated.c): Add ECHO_GEN.
6519 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6520 (IPAGENT_COMPILE): Add ECHO_CXX.
6521 (%-generated.c): Add ECHO_REGDAT.
6522
3ae9ce5d
TT
65232018-03-14 Tom Tromey <tom@tromey.com>
6524
6525 PR cli/14977:
6526 * ax.c (ax_printf): Special case for NULL.
6527
e6a58aa8
SM
65282018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6529
6530 * linux-low.c (linux_qxfer_libraries_svr4): Use
6531 xml_escape_text_append.
6532
f6e8a41e
SM
65332018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6534
6535 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6536
b9671caf
SM
65372018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6538
6539 * server.c (handle_general_set): Remove unnecessary xstrdup.
6540
e80aaf61
SM
65412018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6542
6543 * server.c (parse_debug_format_options): Adjust to
6544 delim_string_to_char_ptr_vec changes.
6545 * thread-db.c (thread_db_load_search): Adjust to
6546 dirnames_to_char_ptr_vec changes.
6547
b1223e78
MM
65482018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6549
6550 * target.h (target_enable_btrace, target_disable_btrace)
6551 (target_read_btrace, target_read_btrace_conf): Turn macro into
6552 inline function. Throw error if target method is not defined.
6553 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6554 check for btrace target method. Be prepared to handle exceptions
6555 from btrace target methods.
6556
81561546
SDJ
65572018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6558
6559 * server.c (captured_main): Change order of error message printed
6560 when the current working directory cannot be found.
6561
25e3c82c
SDJ
65622018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6563
6564 * server.c: Include "filenames.h" and "pathstuff.h".
6565 (program_name): Delete variable.
6566 (program_path): New anonymous class.
6567 (get_exec_wrapper): Use "program_path" instead of
6568 "program_name".
6569 (handle_v_run): Likewise.
6570 (captured_main): Likewise.
6571 (process_serial_event): Likewise.
6572
b4987c95
SDJ
65732018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6574
6575 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6576 (OBJS): Add "pathstuff.o".
6577 * server.c (current_directory): New global variable.
6578 (captured_main): Initialize "current_directory".
6579
f46cd62a
AH
65802018-02-26 Alan Hayward <alan.hayward@arm.com>
6581
6582 * tdesc.c: Use common/tdesc.h.
6583 * tdesc.h: Likewise.
6584
a543c5ca
AH
65852018-02-20 Alan Hayward <alan.hayward@arm.com>
6586 Simon Marchi <simon.marchi@ericsson.com>
6587
6588 * Makefile.in: Switch order of make rules.
6589
b5884fa7
AH
65902018-02-19 Alan Hayward <alan.hayward@arm.com>
6591
6592 * Makefile.in: Add common directory in build.
6593 * configure.ac: Add common reference.
6594 * configure: Regenerate.
6595
de6242d3
MM
65962018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6597
6598 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6599 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6600 * spu-low.c (spu_target_ops): Likewise.
6601 * win32-low.c (win32_target_ops): Likewise.
6602 * server.c (supported_btrace_packets): Report packets unconditionally.
6603 * target.h (target_ops) <supports_btrace>: Remove.
6604 (target_supports_btrace): Remove.
6605
9ee23a85
MM
66062018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6607
6608 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6609 (handle_btrace_disable): Change return type to void. Use exceptions
6610 to report errors.
6611 (handle_btrace_general_set): Catch exception and copy message to
6612 return message.
6613
8ce47547
TT
66142018-02-08 Tom Tromey <tom@tromey.com>
6615
6616 * linux-low.c (install_software_single_step_breakpoints): Use
6617 make_scoped_restore.
6618 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6619 (do_restore_current_thread_cleanup): Remove.
6620 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6621 declare.
6622
45dd3607
TT
66232018-02-08 Tom Tromey <tom@tromey.com>
6624
6625 * mem-break.c (set_raw_breakpoint_at): Use
6626 gdb::unique_xmalloc_ptr.
6627
e671cd59
PA
66282018-01-30 Pedro Alves <palves@redhat.com>
6629
6630 PR gdb/13211
6631 * target.c (target_terminal::terminal_state): Rename to ...
6632 (target_terminal::m_terminal_state): ... this.
6633
a0aad537
JC
66342018-01-19 James Clarke <jrtc27@jrtc27.com>
6635
6636 * linux-low.c (handle_extended_wait): Surround call to
6637 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6638
4d9b86e1
SM
66392018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6640
6641 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6642 linux_ptrace_attach_fail_reason_string now returning an
6643 std::string.
6644 (linux_attach): Likewise.
6645 * thread-db.c (attach_thread): Likewise.
6646
f517c180
EA
66472018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6648
6649 PR gdb/21559
6650 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6651 checking for fs_base/gs_base fields in struct user_regs_struct.
6652 * configure: Regenerate.
6653
9a70f35c
YQ
66542018-01-16 Yao Qi <yao.qi@linaro.org>
6655
6656 PR gdb/18749
6657 * linux-low.c (fetch_register): Call supply_register instead of
6658 error.
6659
605fd3c6
YQ
66602018-01-08 Yao Qi <yao.qi@linaro.org>
6661 Simon Marchi <simon.marchi@ericsson.com>
6662
6663 * Makefile.in (OBS): Remove selftest.o.
6664 * configure.ac: Set srv_selftest_objs if $development is true.
6665 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6666 * configure: Re-generated.
6667 * server.c (captured_main): Wrap variable selftest_filter with
6668 GDB_SELF_TEST.
6669
2cc05030
SM
66702018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6671
6672 * server.c (parse_debug_format_options): Return std::string.
6673 (handle_monitor_command, captured_main): Adjust.
6674
e379cee6
PA
66752018-01-05 Pedro Alves <palves@redhat.com>
6676
6677 PR gdb/18653
6678 * server.c (captured_main): Pass quiet=false to
6679 save_original_signals_state.
6680
82e1e79a
JB
66812018-01-01 Joel Brobecker <brobecker@adacore.com>
6682
6683 * gdbreplay.c (gdbreplay_version): Update copyright year in
6684 version message.
6685 * server.c (gdbserver_version): Likewise.
6686
8e481c3b
TT
66872017-12-08 Tom Tromey <tom@tromey.com>
6688
6689 * ax.c (ax_printf): Update.
6690
a8806230
YQ
66912017-12-07 Yao Qi <yao.qi@linaro.org>
6692
6693 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6694 aarch64_linux_read_description.
6695 * linux-amd64-ipa.c (idx2mask): New array.
6696 (get_ipa_tdesc): Move idx2mask out.
6697 (initialize_low_tracepoint): Initialize target descriptions.
6698 * linux-i386-ipa.c (idx2mask): New array.
6699 (get_ipa_tdesc): Move idx2mask out.
6700 (initialize_low_tracepoint): Initialize target descriptions.
6701
d4a0e8b5
SM
67022017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6703
6704 * tdesc.c (struct tdesc_type): Change return type.
6705 (tdesc_add_flag): Change parameter type.
6706 (tdesc_add_bitfield): Likewise.
6707 (tdesc_add_field): Likewise.
6708 (tdesc_set_struct_size): Likewise.
6709
798a7429
SM
67102017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6711
6712 * regcache.c (registers_to_string): Remove unused variable.
6713
c0e15c9b
SM
67142017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6715
6716 * inferiors.c (for_each_inferior_with_data): Remove.
6717 * inferiors.h (for_each_inferior_with_data): Remove.
6718 * server.c (handle_qxfer_threads_worker): Change parameter type.
6719 (handle_qxfer_threads_proper): Use for_each_thread.
6720
f0045347
SM
67212017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6722
6723 * inferiors.c (for_each_inferior): Remove.
6724 (clear_inferiors): Use for_each_thread.
6725 * inferiors.h (for_each_inferior): Remove.
6726 * linux-low.c (linux_wait_for_event_filtered): Use
6727 for_each_thread.
6728 (linux_stabilize_threads): Likewise.
6729 * regcache.c (regcache_release): Likewise.
6730 * server.c (gdb_wants_all_threads_stopped): Likewise.
6731 (clear_pending_status_callback): Remove.
6732 (handle_status): Use for_each_thread.
6733 (captured_main): Likewise.
6734 * win32-low.c (child_init_thread_list): Likewise.
6735 (win32_clear_inferiors): Likewise.
6736 (fake_breakpoint_event): Likewise.
6737
9521758b
SM
67382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6739
6740 * inferiors.h (find_inferior): Remove.
6741 * inferiors.c (find_inferior): Remove.
6742
8f86d7aa
SM
67432017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6744
6745 * linux-low.c (resume_status_pending_p): Update comment.
6746 (need_step_over_p): Update comment.
6747
e2b44075
SM
67482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6749
6750 * linux-low.c (proceed_one_lwp): Return void, change parameter
6751 type.
6752 (unsuspend_and_proceed_one_lwp): Likewise.
6753 (proceed_all_lwps): Use for_each_thread.
6754 (unstop_all_lwps): Likewise.
6755
c80825ff
SM
67562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6757
6758 * linux-low.c (linux_resume_one_thread): Return void, take
6759 parameter directly.
6760 (linux_resume): Use for_each_thread.
6761
df3e4dbe
SM
67622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6763
6764 * linux-low.c (send_sigstop_callback): Return void, change
6765 parameter type. Rename to...
6766 (send_sigstop): ... this.
6767 (suspend_and_send_sigstop_callback): Return void, change parameter
6768 type. Rename to...
6769 (suspend_and_send_sigstop): ... this.
6770 (stop_all_lwps): Use for_each_thread.
6771
5a6b0a41
SM
67722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6773
6774 * linux-low.c (lwp_running): Return bool, remove unused
6775 argument.
6776 (linux_stabilize_threads): Use find_thread.
6777
39a64da5
SM
67782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6779
6780 * linux-low.c (select_singlestep_lwp_callback): Remove.
6781 (count_events_callback): Remove.
6782 (select_event_lwp_callback): Remove.
6783 (select_event_lwp): Use find_thread/for_each_thread.
6784
a1385b7b
SM
67852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6786
6787 * linux-low.c (not_stopped_callback): Return bool, take filter
6788 argument directly.
6789 (linux_wait_for_event_filtered): Use find_thread.
6790 (linux_wait_1): Likewise.
6791
454296a2
SM
67922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6793
6794 * linux-low.c (same_lwp): Remove.
6795 (find_lwp_pid): Use find_thread.
6796
6b2a85da
SM
67972017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * linux-low.c (delete_lwp_callback): Remove.
6800 (linux_mourn): Use for_each_thread.
6801
798a38e8
SM
68022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6803
6804 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6805 args parameter, don't check for pid.
6806 (linux_detach): Use for_each_thread.
6807
e4eb0dec
SM
68082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6809
6810 * linux-low.c (struct counter): Remove.
6811 (second_thread_of_pid_p): Remove.
6812 (last_thread_of_process_p): Use find_thread.
6813
83e1b6c1
SM
68142017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6815
6816 * inferiors.c (find_inferior_in_random): Remove.
6817 * inferiors.h (find_inferior_in_random): Remove.
6818 * linux-low.c (status_pending_p_callback): Return bool, accept
6819 parameter ptid directly.
6820 (linux_wait_for_event_filtered): Use find_thread_in_random.
6821 (linux_wait_1): Likewise.
6822
8dc7b443
SM
68232017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6824
6825 * inferiors.c (find_inferior_id): Remove.
6826 (find_thread_ptid): Move implemention from find_inferior_id to
6827 here.
6828 * inferiors.h (find_inferior_id): Remove.
6829 * server.c (handle_status): Use find_thread_ptid.
6830 (process_serial_event): Likewise.
6831 * thread-db.c (find_one_thread): Likewise.
6832 (thread_db_thread_handle): Likewise.
6833 * win32-low.c (thread_rec): Likewise.
6834 (child_delete_thread): Likewise.
6835 (win32_thread_alive): Likewise.
6836 (get_child_debug_event): Likewise.
6837
da25033c
SM
68382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6839
6840 * linux-mips-low.c (update_watch_registers_callback): Return
6841 void, remove pid_p parameter, don't check for pid.
6842 (mips_insert_point, mips_remove_point): Use for_each_thread.
6843
c91bb56b
SM
68442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6845
6846 * lynx.low (lynx_delete_thread_callback): Remove.
6847 (lynx_mourn): Use for_each_thread.
6848
634a3254
SM
68492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6850
6851 * regcache.c (regcache_invalidate_one): Remove.
6852 (regcache_invalidate_pid): use for_each_thread.
6853
41272101
TT
68542017-11-26 Tom Tromey <tom@tromey.com>
6855
6856 * linux-low.c (linux_create_inferior): Update.
6857
f5291a6f
UW
68582017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6859
6860 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6861
6654d750
AH
68622017-11-24 Alan Hayward <alan.hayward@arm.com>
6863
6864 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6865 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6866 * linux-aarch64-tdesc-selftest.c: New file.
6867 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6868
68692017-11-24 Alan Hayward <alan.hayward@arm.com>
6870
6871 * configure.srv: Add new file.
6872 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6873 * linux-aarch64-tdesc-selftest.c: New file.
6874 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6875
49bdb7ee
AH
68762017-11-24 Alan Hayward <alan.hayward@arm.com>
6877
6878 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6879 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6880 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6881
d6d7ce56
AH
68822017-11-24 Alan Hayward <alan.hayward@arm.com>
6883
6884 * configure.srv: Add new files.
6885 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6886 aarch64_linux_read_description.
6887 * linux-aarch64-low.c (aarch64_linux_read_description):
6888 Merge with aarch64_arch_setup.
6889 (aarch64_arch_setup): Call aarch64_linux_read_description.
6890 * linux-aarch64-tdesc.c: New file.
6891 * linux-aarch64-tdesc.h: New file.
6892
506fe5f4
YQ
68932017-11-24 Yao Qi <yao.qi@linaro.org>
6894
6895 * configure.srv: Set $srv_regobj for tic6x-linux.
6896 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6897 (tic6x_read_description): Move some code to tic6x_arch_setup.
6898 (tic6x_tdesc_test): New function.
6899 (initialize_low_arch): Call selftests::register_test.
6900
29f9a567
YQ
69012017-11-22 Yao Qi <yao.qi@linaro.org>
6902
6903 * remote-utils.c (prepare_resume_reply): Use memcpy.
6904
578290ec
SM
69052017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6906
6907 * linux-low.c (kill_one_lwp_callback): Return void, take
6908 argument directly, don't filter on pid.
6909 (linux_kill): Use for_each_thread.
6910
eca55aec
SM
69112017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6912
6913 * linux-low.c (need_step_over_p): Return bool, remove dummy
6914 argument.
6915 (linux_resume, proceed_all_lwps): Use find_thread.
6916
25c28b4d
SM
69172017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6918
6919 * linux-low.c (resume_status_pending_p): Return bool, remove
6920 flag_p argument.
6921 (linux_resume): Use find_thread.
6922
5fdda392
SM
69232017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6924
6925 * linux-low.c (struct thread_resume_array): Remove.
6926 (linux_set_resume_request): Return void, take arguments
6927 directly.
6928 (linux_resume): Use for_each_thread.
6929
fcb056a5
SM
69302017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6931
6932 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6933 return bool, remove data argument.
6934 (linux_stabilize_threads): Use find_thread.
6935
139720c5
SM
69362017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6937
6938 * linux-low.c (unsuspend_one_lwp): Remove.
6939 (unsuspend_all_lwps): Use for_each_thread, inline code from
6940 unsuspend_one_lwp.
6941
6d1e5673
SM
69422017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6943
6944 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6945 * linux-low.c (struct iterate_over_lwps_args): Remove.
6946 (iterate_over_lwps_filter): Remove.
6947 (iterate_over_lwps): Use find_thread.
6948
bbf550d5
SM
69492017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6950
6951 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6952 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6953 code from reset_lwp_ptrace_options_callback.
6954
00192f77
SM
69552017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6956
6957 * linux-arm-low.c (struct update_registers_data): Remove.
6958 (update_registers_callback): Return void, take arguments
6959 directly, don't check thread's pid.
6960 (arm_insert_point, arm_remove_point): Use for_each_thread.
6961
2bee2b6c
SM
69622017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6963
6964 * win32-low.c (continue_one_thread): Return void, take argument
6965 directly.
6966 (child_continue): Use for_each_thread.
6967
0b360f19
SM
69682017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6969
6970 * win32-i386-low.c (update_debug_registers_callback): Rename
6971 to ...
6972 (update_debug_registers): ... this, return void, remove pid_p arg.
6973 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6974
f27866ba
SM
69752017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6976
6977 * inferiors.h (struct process_info): Add constructor, initialize
6978 fields..
6979 <syscalls_to_catch>: Change type to std::vector<int>.
6980 * inferiors.c (add_process): Allocate process_info with new.
6981 (remove_process): Free process_info with delete.
6982 * linux-low.c (handle_extended_wait): Adjust.
6983 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6984 * server.c (handle_general_set): Adjust.
6985
e849ea89
PA
69862017-11-16 Pedro Alves <palves@redhat.com>
6987
6988 * remote-utils.c (remote_close): Block SIGIO signals instead of
6989 uninstalling the SIGIO handler.
6990
1d0aa65c
AH
69912017-11-16 Alan Hayward <alan.hayward@arm.com>
6992
6993 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6994
3491a34c
YQ
69952017-11-16 Yao Qi <yao.qi@linaro.org>
6996
6997 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6998 (tic6x_store_gregset): Likewise.
6999 (tic6x_usrregs_info): Move it up.
7000
a602f924
AH
70012017-11-15 Alan Hayward <alan.hayward@arm.com>
7002
7003 * Makefile.in: Update arch rules.
7004 * configure.srv: Explicitly mark arch/ files.
7005
5616b6c3
AS
70062017-11-13 Andreas Schwab <schwab@suse.de>
7007
7008 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7009 function.
7010 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7011
d1928160
PA
70122017-11-06 Pedro Alves <palves@redhat.com>
7013
7014 * config.in, configure: Regenerate.
7015
bac608e7
SM
70162017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7017
7018 * target.c (struct thread_search): Remove.
7019 (thread_search_callback): Remove.
7020 (prepare_to_access_memory): Use for_each_thread instead of
7021 find_inferior. Inline code from thread_search_callback.
7022
eaddb425
SM
70232017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7024
7025 * server.c (struct visit_actioned_threads_data): Remove.
7026 (visit_actioned_threads): Change prototype to take arguments
7027 directly.
7028 (resume): Use find_thread instead of find_inferior.
7029
99078d34
SM
70302017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7031
7032 * server.c (queue_stop_reply_callback): Change prototype, return
7033 void.
7034 (find_status_pending_thread_callback): Remove.
7035 (handle_status): Replace find_inferior with find_thread and
7036 for_each_thread.
7037
cc628f3d
AH
70382017-10-25 Alan Hayward <alan.hayward@arm.com>
7039
7040 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7041 with REGNO.
7042 (aarch64_store_gregset): Likewise.
7043 (aarch64_fill_fpregset): Likewise.
7044 (aarch64_store_fpregset): Likewise.
7045
4d3bb80e
SM
70462017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7047
7048 * gdbthread.h (find_thread, for_each_thread): New functions.
7049 * inferiors.c (thread_of_pid): Remove.
7050 (find_any_thread_of_pid): Use find_thread.
7051 * linux-low.c (num_lwps): Use for_each_thread.
7052
7a7cdfa0
YQ
70532017-10-17 Yao Qi <yao.qi@linaro.org>
7054
7055 * Makefile.in: Remove one rule.
7056 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7057
e675d170
YQ
70582017-10-17 Yao Qi <yao.qi@linaro.org>
7059
7060 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7061 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7062
7eb4e0f9
YQ
70632017-10-17 Yao Qi <yao.qi@linaro.org>
7064
7065 * configure.srv: Rename arm.o with arch/arm.o.
7066
60d6cfc9
YQ
70672017-10-17 Yao Qi <yao.qi@linaro.org>
7068
7069 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7070 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7071 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7072 (arch-i386.o, arch-amd64.o): Remove rules.
7073 (arch/%.o): New rule.
7074 Update POSTCOMPILE and COMPILE.pre.
7075 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7076 * configure: Re-generated.
7077 * configure.srv: Replace arch-i386.o with arch/i386.o.
7078 Replace arch-amd64.o with arch/amd64.o.
7079
5bfda255
YQ
70802017-10-16 Yao Qi <yao.qi@linaro.org>
7081
7082 * configure: Regenerated.
7083
9c80ecd6
SM
70842017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7085
7086 * inferiors.h: (struct inferior_list): Remove.
7087 (struct inferior_list_entry); Remove.
7088 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7089 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7090 get_first_inferior): Remove.
7091 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7092 find_inferior_id, find_inferior_in_random): Change signature.
7093 * inferiors.c (all_threads): Change type to
7094 std::list<thread_info *>.
7095 (get_thread): Remove macro.
7096 (find_inferior, find_inferior_id): Change signature, implement
7097 using find_thread.
7098 (find_inferior_in_random): Change signature, implement using
7099 find_thread_in_random.
7100 (for_each_inferior, for_each_inferior_with_data): Change
7101 signature, implement using for_each_thread.
7102 (add_inferior_to_list, remove_inferior): Remove.
7103 (add_thread, get_first_thread, thread_of_pid,
7104 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7105 (get_first_inferior, one_inferior_p, clear_inferior_list):
7106 Remove.
7107 (clear_inferiors, get_thread_process): Update.
7108 * gdbthread.h: Include <list>.
7109 (struct thread_info) <entry>: Remove field.
7110 <id>: New field.
7111 (all_threads): Change type to std::list<thread_info *>.
7112 (get_first_inferior): Add doc.
7113 (find_thread, for_each_thread, find_thread_in_random): New
7114 functions.
7115 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7116 * linux-arm-low.c (update_registers_callback): Update.
7117 * linux-low.c (second_thread_of_pid_p): Update.
7118 (kill_one_lwp_callback, linux_detach_lwp_callback,
7119 delete_lwp_callback, status_pending_p_callback, same_lwp,
7120 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7121 iterate_over_lwps, not_stopped_callback,
7122 resume_stopped_resumed_lwps, count_events_callback,
7123 select_singlestep_lwp_callback, select_event_lwp_callback,
7124 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7125 suspend_and_send_sigstop_callback, wait_for_sigstop,
7126 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7127 lwp_running, linux_set_resume_request, resume_status_pending_p,
7128 need_step_over_p, start_step_over, linux_resume_one_thread,
7129 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7130 reset_lwp_ptrace_options_callback): Update.
7131 * linux-mips-low.c (update_watch_registers_callback): Update.
7132 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7133 Update.
7134 (free_register_cache_thread_one): Remove.
7135 (regcache_release): Update.
7136 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7137 handle_qxfer_threads_worker): Update.
7138 (handle_query): Update, use list iterator.
7139 (visit_actioned_threads, handle_pending_status,
7140 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7141 clear_pending_status_callback, set_pending_status_callback,
7142 find_status_pending_thread_callback, handle_status,
7143 process_serial_event): Update.
7144 * target.c (thread_search_callback): Update.
7145 * thread-db.c (thread_db_get_tls_address): Update.
7146 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7147 Update.
7148 * win32-i386-low.c (update_debug_registers_callback): Update.
7149 * win32-low.c (delete_thread_info, child_delete_thread,
7150 continue_one_thread, suspend_one_thread,
7151 get_child_debug_event): Adjust.
7152
9179355e
SM
71532017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7154
7155 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7156 * inferiors.h: Include <list>.
7157 (struct process_info) <entry>: Remove field.
7158 <pid>: New field.
7159 (pid_of): Change macro to function.
7160 (ptid_of, lwpid_of): Remove macro.
7161 (all_processes): Change type to std::list<process_info *>.
7162 (ALL_PROCESSES): Remove macro.
7163 (for_each_process, find_process): New function.
7164 * inferiors.c (all_processes): Change type to
7165 std::list<process_info *>.
7166 (find_thread_process): Adjust.
7167 (add_process): Likewise.
7168 (remove_process): Likewise.
7169 (find_process_pid): Likewise.
7170 (get_first_process): Likewise.
7171 (started_inferior_callback): Remove.
7172 (have_started_inferiors_p): Adjust.
7173 (attached_inferior_callback): Remove.
7174 (have_attached_inferiors_p): Adjust.
7175 * linux-low.c (check_zombie_leaders): Likewise.
7176 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7177 (x86_linux_update_xmltarget): Adjust.
7178 * server.c (handle_query): Likewise.
7179 (gdb_reattached_process): Remove.
7180 (handle_status): Adjust.
7181 (kill_inferior_callback): Likewise.
7182 (detach_or_kill_inferior): Remove.
7183 (print_started_pid): Likewise.
7184 (print_attached_pid): Likewise.
7185 (detach_or_kill_for_exit): Update.
7186 (process_serial_event): Likewise.
7187 * linux-arm-low.c (arm_new_fork): Likewise.
7188
c9cb8905
SM
71892017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7190
7191 * dll.h: Include <list>.
7192 (struct dll_info): Add constructor.
7193 <entry>: Remove field.
7194 (all_dlls): Change type to std::list<dll_info>.
7195 * dll.c: Include <algorithm>.
7196 (get_dll): Remove macro.
7197 (all_dlls): Change type to std::list<dll_info *>.
7198 (free_one_dll): Remove.
7199 (match_dll): Likewise.
7200 (loaded_dll): Adjust.
7201 (unloaded_dll): Adjust to all_dlls type change, use
7202 std::find_if. Inline code from match_dll.
7203 (clear_dlls): Adjust to all_dlls type change.
7204 * server.c (emit_dll_description): Remove.
7205 (handle_qxfer_libraries): Adjust to all_dlls type change,
7206 integrate emit_dll_description's functionality.
7207
04ec7890
SM
72082017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7209
7210 * linux-low.h (struct linux_target_ops) <delete_process>: New
7211 field.
7212 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7213 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7214 (struct linux_target_ops): Add delete_process callback.
7215 * linux-arm-low.c (arm_delete_process): New.
7216 (struct linux_target_ops): Add delete_process callback.
7217 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7218 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7219 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7220 * linux-mips-low.c (mips_linux_delete_process): New.
7221 (struct linux_target_ops): Add delete_process callback.
7222 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7223 * linux-s390-low.c (struct linux_target_ops): Likewise.
7224 * linux-sh-low.c (struct linux_target_ops): Likewise.
7225 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7226 * linux-tile-low.c (struct linux_target_ops): Likewise.
7227 * linux-x86-low.c (x86_linux_delete_process): New.
7228 (struct linux_target_ops): Add delete_process callback.
7229 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7230
466eecee
SM
72312017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7232
7233 * linux-aarch64-low.c (the_low_target): Add thread delete
7234 callback.
7235 * linux-arm-low.c (arm_delete_thread): New function.
7236 (the_low_target): Add thread delete callback.
7237 * linux-bfin-low.c (the_low_target): Likewise.
7238 * linux-crisv32-low.c (the_low_target): Likewise.
7239 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7240 set.
7241 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7242 field.
7243 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7244 * linux-mips-low.c (mips_linux_delete_thread): New function.
7245 (the_low_target): Add thread delete callback.
7246 * linux-ppc-low.c (the_low_target): Likewise.
7247 * linux-s390-low.c (the_low_target): Likewise.
7248 * linux-sh-low.c (the_low_target): Likewise.
7249 * linux-tic6x-low.c (the_low_target): Likewise.
7250 * linux-tile-low.c (the_low_target): Likewise.
7251 * linux-x86-low.c (the_low_target): Likewise.
7252 * linux-xtensa-low.c (the_low_target): Likewise.
7253
b79f7801
YZ
72542017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7255
7256 * win32-low.c: Include "common-inferior.h".
7257
bc3b087d
SDJ
72582017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7259
7260 * inferiors.c (set_inferior_cwd): New function.
7261 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7262 (handle_query): Inform that QSetWorkingDir is supported.
7263 * win32-low.c (create_process): Pass the inferior's cwd to
7264 CreateProcess.
7265
d092c5a2
SDJ
72662017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7267
7268 * inferiors.c (current_inferior_cwd): New global variable.
7269 (get_inferior_cwd): New function.
7270 * inferiors.h (struct process_info) <cwd>: New field.
7271
7da0a886
SDJ
72722017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7273
7274 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7275 (OBS): Add gdb_tilde_expand.o.
7276
289a6840
SM
72772017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7278
7279 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7280 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7281
256642e8
PA
72822017-09-29 Pedro Alves <palves@redhat.com>
7283
7284 * ax.c (gdb_parse_agent_expr): Constify.
7285 * ax.h (gdb_parse_agent_expr): Constify.
7286 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7287 Constify.
7288 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7289 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7290 * remote-utils.h (read_ptid): Constify.
7291 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7292 (process_point_options, process_serial_event): Constify.
7293 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7294 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7295 (cmd_qtbuffer): Constify.
7296
5b9ca4d4
PA
72972017-09-29 Pedro Alves <palves@redhat.com>
7298
7299 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7300 fails.
7301
94c207e0
PA
73022017-09-29 Pedro Alves <palves@redhat.com>
7303
7304 * linux-low.c (handle_extended_wait): Pass parent thread instead
7305 of process to thread_db_notice_clone.
7306 * linux-low.h (thread_db_notice_clone): Replace parent process
7307 parameter with parent thread parameter.
7308 * thread-db.c (find_one_thread): Add comment.
7309 (thread_db_notice_clone): Replace parent process parameter with
7310 parent thread parameter. Temporarily switch to the parent thread.
7311
75352e28
SDJ
73122017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7313
7314 * gdbthread.h: Include "common-gdbthread.h".
7315 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7316 "if" when validating the ptid.
7317 * remote-utils.c: Include "gdbthread.h".
7318 (prepare_resume_reply): Use "switch_to_thread".
7319 * target.c (done_accessing_memory): Likewise.
7320
ad339634
AA
73212017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7322
7323 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7324 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7325 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7326 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7327 s390x-gs-linux64-ipa.o to ipa_obj.
7328 * linux-s390-low.c (HWCAP_S390_GS): New define.
7329 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7330 New functions.
7331 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7332 (s390_arch_setup): Check for guarded-storage support and choose
7333 appropriate tdesc.
7334 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7335 init_registers_s390x_gs_linux64.
7336 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7337 enum value.
7338 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7339 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7340
cc4d742f
SM
73412017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7342
7343 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7344
f6327dcb
KB
73452017-09-21 Kevin Buettner <kevinb@redhat.com>
7346
7347 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7348 (thread_db_thread_handle): Declare.
7349 * linux-low.c (linux_target_ops): Initialize thread_handle.
7350 * server.c (handle_qxfer_threads_worker): Add support for
7351 "handle" attribute.
7352 * target.h (struct target_ops): Add new function pointer,
7353 thread_handle.
7354 (target_thread_handle): Define.
7355 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7356 field in lwp.
7357 (thread_db_thread_handle): New function.
7358
86299109
KB
73592017-09-21 Kevin Buettner <kevinb@redhat.com>
7360
7361 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7362 * linux-low.h (thread_db_notice_clone): Declare.
7363 * thread-db.c (thread_db_notice_clone): New function.
7364
f557a88a
PA
73652017-09-21 Pedro Alves <palves@redhat.com>
7366
7367 * server.c (gdb_read_memory, handle_status, process_serial_event)
7368 (handle_serial_event, handle_target_event): Adjust to
7369 set_desired_thread prototype change.
7370 * target.c (set_desired_thread): Remove 'use_general' parameter
7371 and adjust.
7372 * target.h (set_desired_thread): Remove 'use_general' parameter.
7373
223ffa71
TT
73742017-09-20 Tom Tromey <tom@tromey.com>
7375
7376 * target.c (target_terminal::terminal_state): Define.
7377 (target_terminal::init): Rename from target_terminal_init.
7378 (target_terminal::inferior): Rename from
7379 target_terminal_inferior.
7380 (target_terminal::ours): Rename from target_terminal_ours.
7381 (target_terminal::ours_for_output, target_terminal::info): New.
7382
04fd3ba9
SM
73832017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7384
7385 * server.c (accumulate_file_name_length): Remove.
7386 (emit_dll_description): Adjust to std::string change.
7387 (handle_qxfer_libraries): Use std::string to hold document.
7388
5e187554
SM
73892017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7390
7391 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7392 return type of xml_escape_text.
7393 * server.c (emit_dll_description): Likewise.
7394
1526853e
SM
73952017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7396
7397 * server.c (captured_main): Accept argument for --selftest.
7398 Update run_tests call.
7399 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7400 when registering selftests.
7401
c4dfafab
SDJ
74022017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7403
7404 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7405 instead of "VEC" for "target_desc.reg_defs".
7406 (regcache_cpy): Likewise.
7407 (registers_to_string): Likewise.
7408 (registers_from_string): Likewise.
7409 (find_regno): Likewise.
7410 (supply_regblock): Likewise.
7411 (regcache_raw_read_unsigned): Likewise.
7412 * tdesc.c (init_target_desc): Likewise.
7413 (tdesc_create_reg): Likewise.
7414 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7415 (struct target_desc) <reg_defs>: Convert to "std::vector".
7416 (target_desc): Do not initialize "reg_defs".
7417 (~target_desc): Update code to use "std::vector" instead of "VEC"
7418 for "target_desc.reg_defs".
7419 (operator==): Likewise.
7420
124aceb4
SM
74212017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7422
7423 * inferiors.h (thread_to_gdb_id): Remove.
7424 * inferiors.c (thread_to_gdb_id): Remove.
7425 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7426 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7427 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7428 Likewise.
7429 * nto-low.c (nto_fetch_registers, nto_store_registers,
7430 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7431
96cde54f
SM
74322017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7433
7434 * inferiors.h (gdb_id_to_thread_id): Remove.
7435 * inferiors.c (gdb_id_to_thread_id): Remove.
7436 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7437 removal. Move pid declaration closer to where it's used.
7438
e8ca139e
SM
74392017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7440
7441 * server.c (handle_detach): New function.
7442 (process_serial_event): Move code out, call handle_detach.
7443
f8a4e119
SM
74442017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7445
7446 * server.c (require_running): Rename to ...
7447 (require_running_or_return): ... this ...
7448 (require_running_or_break): ... and this.
7449 (handle_query, process_serial_event): Adjust.
7450
0eb0a407
SM
74512017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7452
7453 * linux-low.c (linux_set_resume_request): Remove unused
7454 variables.
7455
785922a5
SM
74562017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7457
7458 * server.c (first_thread_of): Remove.
7459 (process_serial_event): Replace usage of first_thread_of with
7460 find_any_thread_of_pid.
7461 * tracepoint.c (same_process_p): Remove.
7462 (gdb_agent_about_to_close): Replace usage of same_process_p with
7463 find_any_thread_of_pid.
7464 * linux-x86-low.c (same_process_callback): Remove.
7465 (x86_arch_setup_process_callback): Replace usage of
7466 same_process_callback with find_any_thread_of_pid.
7467 * thread-db.c (any_thread_of): Remove.
7468 (switch_to_process): Replace usage of any_thread_of with
7469 find_any_thread_of_pid.
7470 * inferiors.c (thread_pid_matches_callback): Remove.
7471 (find_thread_process): Adjust to use find_any_thread_of_pid.
7472
a059f00c
SDJ
74732017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7474
7475 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7476 with "!VEC_empty".
a059f00c 7477
cc397f3a
SDJ
74782017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7479
7480 * linux-low.c (handle_extended_wait): Use
7481 "allocate_target_description" instead of "XNEW".
7482 * linux-x86-low.c (initialize_low_arch): Likewise.
7483
22916b07
YQ
74842017-09-05 Yao Qi <yao.qi@linaro.org>
7485
7486 * configure.srv (srv_i386_regobj): Remove.
7487 (srv_amd64_regobj): Remove.
7488 (srv_regobj): Set it to "" for x86 non-linux targets.
7489 * linux-x86-tdesc.c (i386_linux_read_description):
7490 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7491 (init_registers_i386): Remove the declaration.
7492 (tdesc_i386): Remove the declaration.
7493 (lynx_i386_arch_setup): Call i386_create_target_description.
7494 * nto-x86-low.c: Likewise.
7495 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7496 [!__x86_64__]: include arch/i386.h.
7497 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7498
38602d55
YQ
74992017-09-05 Yao Qi <yao.qi@linaro.org>
7500
7501 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7502 i386/amd64-XXX-linux from it.
7503
44b886ff
YQ
75042017-09-05 Yao Qi <yao.qi@linaro.org>
7505
7506 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7507 false.
7508 (ipa_amd64_linux_regobj): Remove.
7509 (ipa_x32_linux_regobj): Remove.
7510
b4570e4b
YQ
75112017-09-05 Yao Qi <yao.qi@linaro.org>
7512
7513 * Makefile.in (arch-amd64.o): New rule.
7514 * configure.srv: Append arch-amd64.o.
7515 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7516 (get_ipa_tdesc): Call amd64_linux_read_description.
7517 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7518 and init_registers_amd64_XXX.
7519 * linux-x86-low.c (x86_linux_read_description): Call
7520 amd64_linux_read_description.
7521 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7522 (initialize_low_arch): Don't call init_registers_x32_XXX and
7523 init_registers_amd64_XXX.
7524 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7525 and tdesc_amd64_XXX.
7526 [__x86_64__] (amd64_tdesc_test): New function.
7527 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7528 and init_registers_amd64_XXX.
7529 * linux-x86-tdesc.c: Include arch/amd64.h.
7530 (xcr0_to_tdesc_idx): New function.
7531 (i386_linux_read_description): New function.
7532 (amd64_get_ipa_tdesc_idx): New function.
7533 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7534 (amd64_get_ipa_tdesc): Declare.
7535
d1f28ea2
YQ
75362017-09-05 Yao Qi <yao.qi@linaro.org>
7537
7538 * configure.srv (srv_i386_linux_xmlfiles): Remove
7539 i386/i386-XXX-linux.xml from it.
7540
25a93583
YQ
75412017-09-05 Yao Qi <yao.qi@linaro.org>
7542
7543 * configure.srv: Set srv_i386_linux_regobj empty if $development
7544 is false.
7545 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7546 initialize_low_tdesc.
7547 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7548 with #if initialize_low_tdesc.
7549 * linux-x86-tdesc-selftest.c: New file.
7550 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7551
5f035c07
YQ
75522017-09-05 Yao Qi <yao.qi@linaro.org>
7553
7554 * Makefile.in (arch-i386.o): New rule.
7555 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7556 (x86_64-*-linux*): Likewise.
7557 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7558 include arch/i386.h.
7559 (i386_linux_read_description): Remove code and call
7560 i386_create_target_description.
7561 * tdesc.c (allocate_target_description): New function.
7562 * tdesc.h (set_tdesc_architecture): Remove declaration.
7563 (set_tdesc_osabi): Likewise.
7564
0abe8a89
YQ
75652017-09-05 Yao Qi <yao.qi@linaro.org>
7566
7567 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7568 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7569 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7570 .xmltarget.
7571 * server.c (get_features_xml): Call tdesc_get_features_xml.
7572 * tdesc.c (set_tdesc_architecture): New function.
7573 (set_tdesc_osabi): New function.
7574 (tdesc_get_features_xml): New function.
7575 (tdesc_create_feature): Add an argument.
7576 * tdesc.h (struct target_desc) <features>: New field.
7577 <arch, osabi>: New field.
7578 (~target_desc): xfree features, arch, and osabi.
7579 (target_desc::oerator==): Don't compare .xmltarget.
7580 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7581 (set_tdesc_osabi): Likewise.
7582 (tdesc_get_features_xml): Likewise.
7583
0a188386
YQ
75842017-09-05 Yao Qi <yao.qi@linaro.org>
7585
7586 * linux-x86-tdesc.c: Include selftest.h.
7587 (i386_tdesc_test): New function.
7588 (initialize_low_tdesc): Call selftests::register_test.
7589 * tdesc.h: Include regdef.h.
7590 (target_desc): Override operator == and !=.
7591
f49ff000
YQ
75922017-09-05 Yao Qi <yao.qi@linaro.org>
7593
7594 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7595 (ipa_obj): Likewise.
7596 * linux-i386-ipa.c: Include common/x86-xstate.h
7597 (get_ipa_tdesc): Call i386_linux_read_description.
7598 (initialize_low_tracepoint): Don't call init_registers_XXX
7599 functions, call initialize_low_tdesc instead.
7600 * linux-x86-low.c (x86_linux_read_description): Call
7601 i386_linux_read_description.
7602 (initialize_low_arch): Don't call init_registers_i386_XXX
7603 functions, call initialize_low_tdesc.
7604 * linux-x86-tdesc.c: New file.
7605 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7606 (i386_get_ipa_tdesc_idx): Declare.
7607 (i386_get_ipa_tdesc): Declare.
7608 (initialize_low_tdesc): Declare.
7609
2b68ef2f
YQ
76102017-09-05 Yao Qi <yao.qi@linaro.org>
7611
7612 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7613 instead of 0.
7614
f7000548
YQ
76152017-09-05 Yao Qi <yao.qi@linaro.org>
7616
7617 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7618 * regcache.c (get_thread_regcache): Use VEC_length.
7619 (init_register_cache): Likewise.
7620 (regcache_cpy): Likewise.
7621 (registers_to_string): Iterate reg_defs via VEC_iterate.
7622 (find_regno): Likewise.
7623 (find_register_by_number): Use VEC_index.
7624 (register_size): Call find_register_by_number.
7625 (register_data): Call find_register_by_number.
7626 (supply_regblock): Use VEC_length.
7627 (regcache_raw_read_unsigned): Likewise.
7628 * tdesc.c (init_target_desc): Iterate reg_defs via
7629 VEC_iterate.
7630 (default_description): Update initializer.
7631 (copy_target_description): Don't update field num_registers.
7632 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7633 <num_registers>: Remove.
7634
50a421ac
SM
76352017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7636
7637 * Makefile.in (.SECONDARY): Define target.
7638
23fdd69e
SM
76392017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7640
7641 * linux-low.c (linux_wait_1): Adjust.
7642 * server.c (queue_stop_reply_callback): Adjust.
7643
0a2dde4a
SDJ
76442017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7645
7646 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7647 QEnvironmentUnset and QEnvironmentReset packets.
7648 (handle_query): Inform remote that QEnvironmentHexEncoded,
7649 QEnvironmentUnset and QEnvironmentReset are supported.
7650
6afd337d
SM
76512017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7652
7653 * inferiors.h (inferior_target_data): Rename to ...
7654 (thread_target_data): ... this.
7655 (inferior_regcache_data): Rename to ...
7656 (thread_regcache_data): ... this.
7657 (set_inferior_regcache_data): Rename to ...
7658 (set_thread_regcache_data): ... this.
7659 * inferiors.c (inferior_target_data): Rename to ...
7660 (thread_target_data): ... this.
7661 (inferior_regcache_data): Rename to ...
7662 (thread_regcache_data): ... this.
7663 (set_inferior_regcache_data): Rename to ...
7664 (set_thread_regcache_data): ... this.
7665 (free_one_thread): Update.
7666 * linux-low.h (get_thread_lwp): Update.
7667 * regcache.c (get_thread_regcache): Update.
7668 (regcache_invalidate_thread): Update.
7669 (free_register_cache_thread): Update.
7670 * win32-i386-low.c (update_debug_registers_callback): Update.
7671 (win32_get_current_dr): Update.
7672 * win32-low.c (thread_rec): Update.
7673 (delete_thread_info): Update.
7674 (continue_one_thread): Update.
7675 (suspend_one_thread): Update.
7676
a160cc46
SM
76772017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7678
7679 * inferiors.c (set_inferior_target_data): Remove.
7680 * inferiors.h (set_inferior_target_data): Remove.
7681
6d580b63
YQ
76822017-08-18 Yao Qi <yao.qi@linaro.org>
7683
7684 * Makefile.in (OBS): Add selftest.o.
7685 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7686 * configure, config.in: Re-generated.
7687 * server.c: Include common/sefltest.h.
7688 (captured_main): Handle option --selftest.
7689
f5a29eb0
YQ
76902017-08-09 Yao Qi <yao.qi@linaro.org>
7691
7692 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7693 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7694 i386-avx-mpx.o and i386-mmx.o.
7695 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7696 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7697 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7698 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7699 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7700 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7701 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7702 i386/amd64-avx-mpx.xml.
7703
57757c2f
YQ
77042017-08-09 Yao Qi <yao.qi@linaro.org>
7705
7706 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7707 and x32-avx-avx512.o.
7708 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7709 i386/x32-avx-avx512.xml.
7710
229d26fc
SM
77112017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7712
7713 * tracepoint.h (enum class fast_tpoint_collect_result): New
7714 enumeration.
7715 (fast_tracepoint_collecting): Change return type to
7716 fast_tpoint_collect_result.
7717 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7718 * linux-low.h: Include tracepoint.h.
7719 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7720 fast_tpoint_collect_result.
7721 * linux-low.c (handle_tracepoints): Adjust.
7722 (linux_fast_tracepoint_collecting): Change return type to
7723 fast_tpoint_collect_result.
7724 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7725 linux_wait_1, stuck_in_jump_pad_callback,
7726 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7727 proceed_one_lwp): Adjust to type change.
7728
2e1e43e1
YQ
77292017-07-10 Yao Qi <yao.qi@linaro.org>
7730
7731 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7732
adc764e7
YQ
77332017-06-29 Yao Qi <yao.qi@linaro.org>
7734
7735 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7736 Remove.
7737 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7738
a206891a
SM
77392017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7740
7741 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7742
9a6c7d9c
SDJ
77432017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7744
7745 * linux-low.c (linux_create_inferior): Adjust code to access the
7746 environment information via 'gdb_environ' class.
7747 * lynx-low.c (lynx_create_inferior): Likewise.
7748 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7749 (get_environ): Return a pointer to 'our_environ'.
7750 (captured_main): Initialize 'our_environ'.
7751 * server.h (get_environ): Adjust prototype.
7752 * spu-low.c (spu_create_inferior): Adjust code to access the
7753 environment information via 'gdb_environ' class.
7754
ae3e2ccf
SM
77552017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7756
7757 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7758 usage of "register" keyword.
7759
3e019bdc
SM
77602017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7761
7762 * configure: Re-generate.
7763
8465943a
SM
77642017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7765
7766 * configure: Re-generate.
7767
cf0dd6f0
SM
77682017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7769
7770 * Makefile.in (COMPILE.pre): Add "-x c++".
7771
9845682b
SDJ
77722017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7773
7774 * fork-child.c: Conditionally include <signal.h>.
7775
aefd8b33
SDJ
77762017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7777
7778 * server.c (handle_general_set): Handle new packet
7779 "QStartupWithShell".
7780 (handle_query): Add "QStartupWithShell" to the list of supported
7781 packets.
7782 (gdbserver_usage): Add help text explaining the
7783 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7784 options.
7785 (captured_main): Recognize and act upon the presence of the new
7786 CLI options.
7787
2090129c
SDJ
77882017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7789 Pedro Alves <palves@redhat.com>
7790
7791 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7792 * configure: Regenerate.
7793 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7794 "fork-inferior.o".
7795 (i[34567]86-*-lynxos*): Likewise.
7796 (spu*-*-*): Likewise.
7797 * fork-child.c: New file.
7798 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7799 and "environ.h".
7800 (linux_ptrace_fun): New function.
7801 (linux_create_inferior): Adjust function prototype to reflect
7802 change on "target.h". Adjust function code to use
7803 "fork_inferior".
7804 (linux_request_interrupt): Delete "signal_pid".
7805 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7806 (lynx_ptrace_fun): New function.
7807 (lynx_create_inferior): Adjust function prototype to reflect
7808 change on "target.h". Adjust function code to use
7809 "fork_inferior".
7810 * nto-low.c (nto_create_inferior): Adjust function prototype and
7811 code to reflect change on "target.h". Update comments.
7812 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7813 "common-terminal.h" and "environ.h".
7814 (terminal_fd): Moved to fork-child.c.
7815 (old_foreground_pgrp): Likewise.
7816 (restore_old_foreground_pgrp): Likewise.
7817 (last_status): Make it global.
7818 (last_ptid): Likewise.
7819 (our_environ): New variable.
7820 (startup_with_shell): Likewise.
7821 (program_name): Likewise.
7822 (program_argv): Rename to...
7823 (program_args): ...this.
7824 (wrapper_argv): New variable.
7825 (start_inferior): Delete function.
7826 (get_exec_wrapper): New function.
7827 (get_exec_file): Likewise.
7828 (get_environ): Likewise.
7829 (prefork_hook): Likewise.
7830 (post_fork_inferior): Likewise.
7831 (postfork_hook): Likewise.
7832 (postfork_child_hook): Likewise.
7833 (handle_v_run): Update code to deal with arguments coming from the
7834 remote host. Update calls from "start_inferior" to
7835 "create_inferior".
7836 (captured_main): Likewise. Initialize environment variable. Call
7837 "have_job_control".
7838 * server.h (post_fork_inferior): New prototype.
7839 (get_environ): Likewise.
7840 (last_status): Declare.
7841 (last_ptid): Likewise.
7842 (signal_pid): Likewise.
7843 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7844 (spu_ptrace_fun): New function.
7845 (spu_create_inferior): Adjust function prototype to reflect change
7846 on "target.h". Adjust function code to use "fork_inferior".
7847 * target.c (target_terminal_init): New function.
7848 (target_terminal_inferior): Likewise.
7849 (target_terminal_ours): Likewise.
7850 * target.h: Include <vector>.
7851 (struct target_ops) <create_inferior>: Update prototype.
7852 (create_inferior): Update macro.
7853 * utils.c (gdb_flush_out_err): New function.
7854 * win32-low.c (win32_create_inferior): Adjust function prototype
7855 and code to reflect change on "target.h".
7856
043a4934
SDJ
78572017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7858
7859 * inferiors.c (switch_to_thread): New function.
7860
15652511
SDJ
78612017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7862
7863 * Makefile.in (SFILE): Add "common/job-control.c".
7864 (OBS): Add "job-control.o".
7865
21ea5acd
SDJ
78662017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7867
7868 * Makefile: Remove "@host_makefile_frag@".
7869
e13cb306
PA
78702017-05-05 Pedro Alves <palves@redhat.com>
7871
7872 * configure: Regenerate.
7873
c94fee56
SDJ
78742017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7875
7876 * configure: Regenerate.
7877
a0ff9e1a
SM
78782017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7879
7880 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7881 software_single_step change of return type to
7882 std::vector<CORE_ADDR>.
7883 * linux-low.c (install_software_single_step_breakpoints):
7884 Likewise.
7885 * linux-low.h (install_software_single_step_breakpoints):
7886 Likewise.
7887
be628ab8
SDJ
78882017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7889
7890 * remote-utils.c: Include "gdb_termios.h" instead of
7891 "terminal.h".
7892 * terminal.h: Delete file.
7893
7c5ded6a
SDJ
78942017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7895
7896 * server.c: Include <vector>.
7897 <program_argv, wrapper_argv>: Convert to std::vector.
7898 (start_inferior): Rewrite function to use C++.
7899 (handle_v_run): Likewise. Update code that calculates the argv
7900 based on the vRun packet; use C++.
7901 (captured_main): Likewise.
7902
436252de
SM
79032017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7904
7905 * server.c (handle_v_cont): Initialize thread_resume::thread
7906 with null_ptid.
7907
9bf2a700
PA
79082017-04-05 Pedro Alves <palves@redhat.com>
7909
7910 * configure: Regenerate.
7911
a121b7c1
PA
79122017-04-05 Pedro Alves <palves@redhat.com>
7913
7914 * gdbreplay.c (sync_error): Constify.
7915 * linux-x86-low.c (push_opcode): Constify.
7916
21c8a587
PA
79172017-04-05 Pedro Alves <palves@redhat.com>
7918
7919 * win32-low.c (get_child_debug_event)
7920 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7921 Report TARGET_WAITKIND_SPURIOUS instead.
7922
fb32b4f7
PA
79232017-04-05 Pedro Alves <palves@redhat.com>
7924
e79be6e5
SM
7925 * remote-utils.c (remote_prepare, remote_open): Constify.
7926 * remote-utils.h (remote_prepare, remote_open): Constify.
7927 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7928
65dd1e59
SM
79292017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7930
7931 * Makefile.in (clean): Clear .deps.
7932
8fa5b777
SM
79332017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7934
7935 * .gitignore: Remove generated files, replace with wildcard.
7936 * (clean): Replace removal of generated files with wildcard.
7937 (version.c): Replace with...
7938 (version-generated.c): ...this.
7939 (xml-builtin.c): Replace with...
7940 (xml-builtin-generated.c): ...this.
7941 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7942 (%.c: *regformats*): Replace with...
7943 (%-generated.c: *regformats*): ...this.
7944
a12e714b
MF
79452017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7946
7947 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7948 (xtensa_fill_gregset): Call collect_register_by_name for
7949 threadptr register.
7950 (xtensa_store_gregset): Call supply_register_by_name for
7951 threadptr register.
7952
1a09b50a
MF
79532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7954
7955 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7956 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7957 (xtensa_store_gregset): Call supply_register for all registers in
7958 a0_regnum..a0_regnum + C0_NREGS range.
7959
1a01e7c6
SM
79602017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7961
7962 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7963 (ax-ipa.o: ax.c): Remove.
7964 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7965 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7966 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7967 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7968 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7969
36bc18a8
SM
79702017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7971
7972 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7973 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7974 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7975 (errors-ipa.o: ../common/errors.c): Remove.
7976 (format-ipa.o: ../common/format.c): Remove.
7977 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7978
a8ebe3d5
SM
79792017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7980
7981 * Makefile.in (%-ipa.o: %.c): New rule.
7982 (tracepoint-ipa.o: tracepoint.c): Remove.
7983 (utils-ipa.o: utils.c): Remove.
7984 (remote-utils-ipa.o: remote-utils.c): Remove.
7985 (regcache-ipa.o: regcache.c): Remove.
7986 (i386-linux-ipa.o: i386-linux.c): Remove.
7987 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7988 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7989 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7990 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7991 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7992 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7993 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7994 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7995 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7996 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7997 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7998 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7999 (aarch64-ipa.o: aarch64.c): Remove.
8000 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8001 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8002 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8003 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8004 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8005 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8006 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8007 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8008 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8009 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8010 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8011 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8012 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8013 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8014 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8015 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8016 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8017 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8018 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8019 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8020 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8021 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8022 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8023 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8024 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8025 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8026 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8027 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8028 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8029 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8030 (tdesc-ipa.o: tdesc.c): Remove.
8031 (x32-linux-ipa.o: x32-linux.c): Remove.
8032 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8033 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8034
50cfacb7
SM
80352017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8036
8037 * Makefile.in (%.o: ../arch/%.c): New rule.
8038 (arm.o: ../arch/arm.c): Remove.
8039 (arm-linux.o: ../arch/arm-linux.c): Remove.
8040 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8041 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8042
c5a22423
SM
80432017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8044
8045 * Makefile.in (%.o: ../nat/%.c): New rule.
8046 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8047 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8048 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8049 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8050 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8051 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8052 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8053 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8054 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8055 (linux-personality.o: ../nat/linux-personality.c): Remove.
8056 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8057 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8058 (x86-linux.o: ../nat/x86-linux.c): Remove.
8059 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8060 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8061
6bda016b
SM
80622017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8063
8064 * Makefile.in (%.o: ../common/%.c): New rule.
8065 (signals.o: ../common/signals.c): Remove.
8066 (print-utils.o: ../common/print-utils.c): Remove.
8067 (rsp-low.o: ../common/rsp-low.c): Remove.
8068 (common-utils.o: ../common/common-utils.c): Remove.
8069 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8070 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8071 (vec.o: ../common/vec.c): Remove.
8072 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8073 (xml-utils.o: ../common/xml-utils.c): Remove.
8074 (ptid.o: ../common/ptid.c): Remove.
8075 (buffer.o: ../common/buffer.c): Remove.
8076 (format.o: ../common/format.c): Remove.
8077 (filestuff.o: ../common/filestuff.c): Remove.
8078 (agent.o: ../common/agent.c): Remove.
8079 (errors.o: ../common/errors.c): Remove.
8080 (environ.o: ../common/environ.c): Remove.
8081 (common-debug.o: ../common/common-debug.c): Remove.
8082 (cleanups.o: ../common/cleanups.c): Remove.
8083 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8084 (fileio.o: ../common/fileio.c): Remove.
8085 (common-regcache.o: ../common/common-regcache.c): Remove.
8086 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8087 (new-op.o: ../common/new-op.c): Remove.
8088 (btrace-common.o: ../common/btrace-common.c): Remove.
8089
21122961
SM
80902017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8091
8092 * Makefile.in (%.o: ../target/%.c): New rule.
8093 (waitstatus.o: ../target/waitstatus.c): Remove.
8094
c362e621
SM
80952017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8096
8097 * Makefile.in
8098 (%.c: ../regformats/%.dat,
8099 (%.c: ../regformats/arm/%.dat,
8100 (%.c: ../regformats/i386/%.dat,
8101 (%.c: ../regformats/rs6000/%.dat): New rules.
8102 (aarch64.c): Remove.
8103 (reg-arm.c): Remove.
8104 (arm-with-iwmmxt.c): Remove.
8105 (arm-with-vfpv2.c): Remove.
8106 (arm-with-vfpv3.c): Remove.
8107 (arm-with-neon.c): Remove.
8108 (reg-bfin.c): Remove.
8109 (reg-cris.c): Remove.
8110 (reg-crisv32.c): Remove.
8111 (i386.c): Remove.
8112 (i386-linux.c): Remove.
8113 (i386-avx.c): Remove.
8114 (i386-avx-linux.c): Remove.
8115 (i386-avx-avx512.c): Remove.
8116 (i386-avx-avx512-linux.c): Remove.
8117 (i386-mpx.c): Remove.
8118 (i386-mpx-linux.c): Remove.
8119 (i386-avx-mpx-avx512-pku.c): Remove.
8120 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8121 (i386-avx-mpx.c): Remove.
8122 (i386-avx-mpx-linux.c): Remove.
8123 (i386-mmx.c): Remove.
8124 (i386-mmx-linux.c): Remove.
8125 (reg-ia64.c): Remove.
8126 (reg-m32r.c): Remove.
8127 (reg-m68k.c): Remove.
8128 (reg-cf.c): Remove.
8129 (mips-linux.c): Remove.
8130 (mips-dsp-linux.c): Remove.
8131 (mips64-linux.c): Remove.
8132 (mips64-dsp-linux.c): Remove.
8133 (nios2-linux.c): Remove.
8134 (powerpc-32.c): Remove.
8135 (powerpc-32l.c): Remove.
8136 (powerpc-altivec32l.c): Remove.
8137 (powerpc-cell32l.c): Remove.
8138 (powerpc-vsx32l.c): Remove.
8139 (powerpc-isa205-32l.c): Remove.
8140 (powerpc-isa205-altivec32l.c): Remove.
8141 (powerpc-isa205-vsx32l.c): Remove.
8142 (powerpc-e500l.c): Remove.
8143 (powerpc-64l.c): Remove.
8144 (powerpc-altivec64l.c): Remove.
8145 (powerpc-cell64l.c): Remove.
8146 (powerpc-vsx64l.c): Remove.
8147 (powerpc-isa205-64l.c): Remove.
8148 (powerpc-isa205-altivec64l.c): Remove.
8149 (powerpc-isa205-vsx64l.c): Remove.
8150 (s390-linux32.c): Remove.
8151 (s390-linux32v1.c): Remove.
8152 (s390-linux32v2.c): Remove.
8153 (s390-linux64.c): Remove.
8154 (s390-linux64v1.c): Remove.
8155 (s390-linux64v2.c): Remove.
8156 (s390-te-linux64.c): Remove.
8157 (s390-vx-linux64.c): Remove.
8158 (s390-tevx-linux64.c): Remove.
8159 (s390x-linux64.c): Remove.
8160 (s390x-linux64v1.c): Remove.
8161 (s390x-linux64v2.c): Remove.
8162 (s390x-te-linux64.c): Remove.
8163 (s390x-vx-linux64.c): Remove.
8164 (s390x-tevx-linux64.c): Remove.
8165 (tic6x-c64xp-linux.c): Remove.
8166 (tic6x-c64x-linux.c): Remove.
8167 (tic6x-c62x-linux.c): Remove.
8168 (reg-sh.c): Remove.
8169 (reg-sparc64.c): Remove.
8170 (reg-spu.c): Remove.
8171 (amd64.c): Remove.
8172 (amd64-linux.c): Remove.
8173 (amd64-avx.c): Remove.
8174 (amd64-avx-linux.c): Remove.
8175 (amd64-avx-avx512.c): Remove.
8176 (amd64-avx-avx512-linux.c): Remove.
8177 (amd64-mpx.c): Remove.
8178 (amd64-mpx-linux.c): Remove.
8179 (amd64-avx-mpx-avx512-pku.c): Remove.
8180 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8181 (amd64-avx-mpx.c): Remove.
8182 (amd64-avx-mpx-linux.c): Remove.
8183 (x32.c): Remove.
8184 (x32-linux.c): Remove.
8185 (x32-avx.c): Remove.
8186 (x32-avx-linux.c): Remove.
8187 (x32-avx-avx512.c): Remove.
8188 (x32-avx-avx512-linux.c): Remove.
8189 (reg-xtensa.c): Remove.
8190 (reg-tilegx.c): Remove.
8191 (reg-tilegx32.c): Remove.
8192
1672e0d9
SDJ
81932017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8194
8195 * Makefile.in (SFILES): Add "common/environ.c".
8196 (OBJS): Add "common/environ.h".
8197
239b6d10
WT
81982017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8199
8200 * configure.ac: Check if the fs_base and gs_base members of
8201 `struct user_regs_struct' exist.
8202 * config.in: Regenerated.
8203 * configure: Likewise.
8204
694b382c
AT
82052017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8206
8207 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8208 target_read_memory.
8209 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8210 (get_next_pcs_syscall_next_pc): Likewise.
8211
7dc53023
LM
82122016-12-23 Luis Machado <lgustavo@codesourcery.com>
8213
8214 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8215 * nto-x86-low.c: Likewise.
8216
ad02e4fe
SM
82172016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8218
8219 * Makefile.in: Include disable-implicit-rules.mk.
8220
dcb07cfa
PA
82212016-11-23 Pedro Alves <palves@redhat.com>
8222
8223 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8224 (debug_vprintf): Use std::chrono::steady_clock instead of
8225 gettimeofday. Use '.' instead of ':'.
8226 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8227 (get_timestamp): Use std::chrono::steady_clock instead of
8228 gettimeofday.
8229
8629c02c
SM
82302016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8231
8232 * Makefile.in: Fix whitespace formatting.
8233
b593ecca
SM
82342016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8235
8236 * Makefile.in (SFILES, OBS): Flatten list and order
8237 alphabetically.
8238
9986ba08
PA
82392016-11-23 Pedro Alves <palves@redhat.com>
8240
8241 * event-loop.c (handle_file_event): Use warning.
8242 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8243 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8244 Use warning.
8245
4eefa7bc
PA
82462016-11-23 Pedro Alves <palves@redhat.com>
8247
8248 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8249 output.
8250 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8251 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8252 debug_printf and debug_flush for debug output.
8253 * server.c (handle_general_set): Likewise.
8254 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8255 output.
8256
5443506e
SM
82572016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8258
8259 * Makefile.in (.c.o): Replace rule with ...
8260 (%.o: %.c): ... this one.
8261
3b165252
SM
82622016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8263
8264 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8265 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8266 make.
8267 * configure.ac: Remove checks for the make program.
8268 * configure: Re-generate.
8269
0bcda685
PA
82702016-10-28 Pedro Alves <palves@redhat.com>
8271
8272 * Makefile.in (CXX_DIALECT): Get from configure.
8273 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8274 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8275 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8276 * config.in: Regenerate.
8277 * configure: Regenerate.
8278
c3805894
YQ
82792016-10-27 Yao Qi <yao.qi@linaro.org>
8280
8281 * linux-low.c (linux_supports_range_stepping): Return true if
8282 can_software_single_step return true.
8283
89342618
YQ
82842016-10-27 Yao Qi <yao.qi@linaro.org>
8285
8286 * inferiors.c (find_inferior_in_random): New function.
8287 * inferiors.h (find_inferior_in_random): Declare.
8288 * linux-low.c (linux_wait_for_event_filtered): Call
8289 find_inferior_in_random instead of find_inferior.
8290
e3652c84
YQ
82912016-10-27 Yao Qi <yao.qi@linaro.org>
8292
8293 * linux-low.c (linux_wait_1): If single-step breakpoints are
8294 inserted, remove them.
8295
5a04c4cf
PA
82962016-10-26 Pedro Alves <palves@redhat.com>
8297
8298 * linux-low.c (handle_extended_wait): Link parent/child fork
8299 threads.
8300 (linux_wait_1): Unlink them.
8301 (linux_set_resume_request): Ignore resume requests for
8302 already-resumed and unhandled fork child threads.
8303 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8304 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8305 New functions.
8306 (handle_v_requests) <vCont>: Don't call require_running.
8307 * server.h (in_queued_stop_replies): New declaration.
8308
cb93dc7f
YQ
83092016-10-24 Yao Qi <yao.qi@linaro.org>
8310
8311 PR server/20733
8312 * linux-aarch64-low.c (append_insns): Cast the return value to
8313 'uint32_t *'.
8314
a1078bea
YQ
83152016-10-10 Yao Qi <yao.qi@linaro.org>
8316
8317 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8318
1fb77080
SDJ
83192016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8320
8321 * target.c (target_supports_multi_process): New function, moved
8322 from...
8323 * target.h (target_supports_multi_process): ... here. Remove
8324 macro.
8325
39b5a3b9
TT
83262016-10-05 Tom Tromey <tom@tromey.com>
8327
8328 PR remote/20655:
8329 * tracepoint.c (handle_tracepoint_bkpts): Check
8330 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8331
c1d0b70a
YQ
83322016-10-05 Yao Qi <yao.qi@linaro.org>
8333
8334 * configure.srv: Update the path of arm-*.xml files.
8335
0a69eedb
YQ
83362016-10-05 Terry Guo <terry.guo@arm.com>
8337 Yao Qi <yao.qi@linaro.org>
8338
8339 * Makefile.in: Adjust the path of rules.
8340 * configure.srv: Update the path of xml files.
8341 * regformats/arm-with-iwmmxt.dat: Regenerated.
8342 * regformats/arm-with-neon.dat: Likewise.
8343 * regformats/arm-with-vfpv2.dat: Likewise.
8344 * regformats/arm-with-vfpv3.dat Likewise.
8345
17e16485
YQ
83462016-09-30 Yao Qi <yao.qi@linaro.org>
8347
8348 PR gdbserver/20627
8349 * target.c (target_stop_and_wait): Don't call
8350 target_continue_no_signal, use resume_stop instead.
8351
edeeb602
YQ
83522016-09-26 Yao Qi <yao.qi@linaro.org>
8353
8354 * linux-low.c (linux_wait_1): Call debug_exit.
8355
503b1c39
PA
83562016-09-23 Pedro Alves <palves@redhat.com>
8357
8358 * Makefile.in (SFILES): Add common/new-op.c.
8359 (OBS): Add common/new-op.o.
8360 (new-op.o): New rule.
8361
74172ecf
SM
83622016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8363
8364 * .gitinore: Ignore more files.
8365
fc6cda2e
YQ
83662016-09-21 Yao Qi <yao.qi@linaro.org>
8367
8368 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8369 23.
8370
bc1e6c81
SDJ
83712016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8372
8373 * server.c (start_inferior): Call target_mourn_inferior instead of
8374 mourn_inferior; pass ptid_t argument to it.
8375 (resume): Likewise.
8376 (handle_target_event): Likewise.
8377 * target.c (target_mourn_inferior): New function.
8378 * target.h (mourn_inferior): Delete macro.
8379
0e00e962
AA
83802016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8381
8382 * linux-low.c (lwp_is_stepping): New function.
8383
1d8cb77d
CL
83842016-09-06 Carl Love <cel@us.ibm.com>
8385
8386 * server.c (start_inferior): Fixed comment, requested comment change
8387 didn't get updated correctly. Removed reference to ptrace () call as
8388 it is only true on Linux systems.
8389
7313bced
CL
83902016-09-06 Carl Love <cel@us.ibm.com>
8391
8392 * server.c (start_inferior): Do not call
8393 function target_post_create_inferior () if the
8394 inferior process has already exited.
8395
cf6de44d
PA
83962016-09-05 Pedro Alves <palves@redhat.com>
8397
8398 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8399 (COMPILE.pre, CC_LD): Use CXX directly.
8400 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8401 * acinclude.m4: Don't include build-with-cxx.m4.
8402 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8403 * configure: Regenerate.
8404
c1da6748
AT
84052016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8406
8407 PR gdb/19495
8408 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8409 call writing data to own_buf.
8410
f2b9e3df
SDJ
84112016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8412
8413 * target.c (mywait): Call target_wait instead of
8414 the_target->wait.
8415 (target_wait): New function.
8416
049a8570
SDJ
84172016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8418
8419 * server.c (start_inferior): New variable 'ptid'. Replace calls
8420 to the_target->resume by target_continue{,_no_signal}, depending
8421 on the case.
8422 * target.c (target_stop_and_wait): Call target_continue_no_signal
8423 instead of the_target->resume.
8424 (target_continue): New function.
8425
3aa5cfa0
AT
84262016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8427
8428 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8429
754653a7
AZ
84302016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8431
8432 PR server/20491
8433 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8434 ps_prochandle.
8435 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8436 * linux-arm-low.c (ps_get_thread_area): Likewise.
8437 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8438 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8439 * linux-mips-low.c (ps_get_thread_area): Likewise.
8440 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8441 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8442 * linux-x86-low.c (ps_get_thread_area): Likewise.
8443 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8444
ed036b40
PA
84452016-08-19 Pedro Alves <palves@redhat.com>
8446
8447 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8448
c8ef42ee
PA
84492016-08-19 Pedro Alves <palves@redhat.com>
8450
8451 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8452 comment. Use memcpy instead of casting through unsigned long.
8453
9c235a72
PA
84542016-08-19 Pedro Alves <palves@redhat.com>
8455
8456 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8457 allocating around 0x80000000.
8458
201506da
PA
84592016-08-19 Pedro Alves <palves@redhat.com>
8460
8461 PR gdb/20415
8462 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8463 (x32-avx512-linux-ipa.o): New rules.
8464 * configure.ac (x86_64-*-linux*): New x32 check.
8465 * configure.srv (ipa_x32_linux_regobj): New.
8466 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8467 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8468 descriptions.
8469 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8470 descriptions.
8471 * configure: Regenerate.
8472
f348d89a
PA
84732016-08-09 Pedro Alves <palves@redhat.com>
8474
8475 PR gdb/18653
8476 * Makefile.in (OBS): Add signals-state-save-restore.o.
8477 (signals-state-save-restore.o): New rule.
8478 * config.in: Regenerate.
8479 * configure: Regenerate.
8480 * linux-low.c: Include "signals-state-save-restore.h".
8481 (linux_create_inferior): Call
8482 restore_original_signals_state.
8483 * server.c: Include "dispositions-save-restore.h".
8484 (captured_main): Call save_original_signals_state.
8485
1baf5149
PA
84862016-08-05 Pedro Alves <palves@redhat.com>
8487
8488 * configure: Regenerate.
8489
fcd4a73d
YQ
84902016-08-04 Yao Qi <yao.qi@linaro.org>
8491
8492 * linux-low.c (regsets_fetch_inferior_registers): Check
8493 errno is ESRCH or not.
8494
979659d0
YQ
84952016-08-02 Yao Qi <yao.qi@linaro.org>
8496
8497 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8498 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8499 (thread_db_load_search): Update.
8500 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8501 td_ta_set_event and td_ta_event_getmsg.
8502
6598661d
PA
85032016-07-26 Pedro Alves <palves@redhat.com>
8504
8505 PR server/20414
8506 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8507 of unsigned long for 64-bit registers and use uint32_t instead of
8508 unsigned int for 32-bit registers.
8509
9cf12d57
PA
85102016-07-26 Pedro Alves <palves@redhat.com>
8511
8512 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8513 to 'ptrace'.
8514
305450ed
TT
85152016-07-21 Tom Tromey <tom@tromey.com>
8516
8517 * configure: Rebuild.
8518
2583da7c
YQ
85192016-07-21 Yao Qi <yao.qi@linaro.org>
8520
8521 * mem-break.c (find_gdb_breakpoint): Cast bp to
8522 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8523
21536b36
YQ
85242016-07-21 Yao Qi <yao.qi@linaro.org>
8525
8526 * server.c (handle_v_requests): Support s and S actions
8527 if target_supports_software_single_step return true.
8528
8901d193
YQ
85292016-07-21 Yao Qi <yao.qi@linaro.org>
8530
8531 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8532 is resume_step, call maybe_hw_step.
8533 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8534 and unstop them.
8535 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8536 breakpoints or not.
8537 (proceed_one_lwp): If resume request is resume_step, install
8538 reinsert breakpoints and call maybe_hw_step.
8539
0e9a339e
YQ
85402016-07-21 Yao Qi <yao.qi@linaro.org>
8541
8542 * linux-low.c (proceed_one_lwp): Declare.
8543 (linux_resume_one_thread): Remove local variable 'step'.
8544 Lift code enqueue signal. Call proceed_one_lwp instead of
8545 linux_resume_one_lwp.
8546
4281b351
YQ
85472016-07-21 Yao Qi <yao.qi@linaro.org>
8548
8549 * linux-low.c (linux_resume_one_thread): Call
8550 enqueue_pending_signal.
8551
984a2c04
YQ
85522016-07-21 Yao Qi <yao.qi@linaro.org>
8553
8554 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8555 * inferiors.c (do_restore_current_thread_cleanup): New function.
8556 (make_cleanup_restore_current_thread): Likewise.
8557 * linux-low.c (install_software_single_step_breakpoints): Call
8558 make_cleanup_restore_current_thread. Switch current_thread to
8559 thread.
8560
bec903c9
YQ
85612016-07-21 Yao Qi <yao.qi@linaro.org>
8562
8563 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8564 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8565 (clone_one_breakpoint): Likewise.
8566 (delete_reinsert_breakpoints): Change parameter to thread.
8567 Callers updated.
8568 (has_reinsert_breakpoints): Likewise.
8569 (uninsert_reinsert_breakpoints): Likewise.
8570 (reinsert_reinsert_breakpoints): Likewise.
8571 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8572 (delete_reinsert_breakpoints): Likewise.
8573 (reinsert_reinsert_breakpoints): Likewise.
8574 (uninsert_reinsert_breakpoints): Likewise.
8575 (has_reinsert_breakpoints): Likewise.
8576
63c40ec7
YQ
85772016-07-21 Yao Qi <yao.qi@linaro.org>
8578
8579 * inferiors.c (get_thread_process): Make parameter const.
8580 * inferiors.h (get_thread_process): Update declaration.
8581 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8582 Add new parameters child_thread and parent_thread. Callers
8583 updated.
8584 * mem-break.h (clone_all_breakpoints): Update declaration.
8585
9aa76cd0
YQ
85862016-07-21 Yao Qi <yao.qi@linaro.org>
8587
8588 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8589 <command_list, handler>: Remove.
8590 (struct gdb_breakpoint): New.
8591 (struct other_breakpoint): New.
8592 (struct reinsert_breakpoint): New.
8593 (is_gdb_breakpoint): New function.
8594 (any_persistent_commands): Update command_list if
8595 is_gdb_breakpoint returns true.
8596 (set_breakpoint): Create breakpoints according to their types.
8597 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8598 (set_gdb_breakpoint_1): Likewise.
8599 (set_gdb_breakpoint): Likewise.
8600 (clear_breakpoint_conditions): Change parameter type to
8601 'struct gdb_breakpoint *'.
8602 (clear_breakpoint_commands): Likewise.
8603 (clear_breakpoint_conditions_and_commands): Likewise.
8604 (add_condition_to_breakpoint): Likewise.
8605 (add_breakpoint_condition): Likewise.
8606 (add_commands_to_breakpoint): Likewise.
8607 (check_breakpoints): Check other_breakpoint.
8608 (clone_one_breakpoint): Clone breakpopint according to its type.
8609 * mem-break.h (struct gdb_breakpoint): Declare.
8610 (set_gdb_breakpoint): Update declaration.
8611 (clear_breakpoint_conditions_and_commands): Likewise.
8612 (add_breakpoint_condition): Likewise.
8613 (add_breakpoint_commands): Likewise.
8614 * server.c (process_point_options): Change parameter type to
8615 'struct gdb_breakpoint *'.
8616
811f8301
YQ
86172016-07-21 Yao Qi <yao.qi@linaro.org>
8618
8619 * mem-break.c (set_breakpoint_at): Rename it to ...
8620 (set_breakpoint_type_at): ... it.
8621 (set_breakpoint_at): Call set_breakpoint_type_at.
8622 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8623 * mem-break.h (set_breakpoint_at): Update comments.
8624
b1c51e36
CLT
86252016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8626
8627 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8628 to buf parameter.
8629 (nios2_store_gregset): Likewise.
8630
ced2dffb
PA
86312016-07-01 Pedro Alves <palves@redhat.com>
8632 Antoine Tremblay <antoine.tremblay@ericsson.com>
8633
8634 * linux-low.c: Change interface to take the target lwp_info
8635 pointer directly and return void. Handle detaching from a zombie
8636 thread.
8637 (linux_detach_lwp_callback): New function.
8638 (linux_detach): Detach from the leader thread after detaching from
8639 the clone threads.
8640
2ac09a5b
YQ
86412016-06-28 Yao Qi <yao.qi@linaro.org>
8642
8643 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8644 for variable new_offset.
8645 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8646 (aarch64_ftrace_insn_reloc_cb): Likewise.
8647 (aarch64_ftrace_insn_reloc_tb): Likewise.
8648 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8649 PRIx64 instead of PRIx32.
8650
79e7fd4f
YQ
86512016-06-28 Yao Qi <yao.qi@linaro.org>
8652
8653 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8654 (the_low_target): Install arm_get_syscall_trapinfo.
8655
061fc021
YQ
86562016-06-28 Yao Qi <yao.qi@linaro.org>
8657
8658 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8659 function.
8660 (the_low_target): Install aarch64_get_syscall_trapinfo.
8661
4cc32bec
YQ
86622016-06-28 Yao Qi <yao.qi@linaro.org>
8663
8664 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8665 Callers updated.
8666 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8667 Remove parameter sysno.
8668 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8669 sysret.
8670
782c1122
AA
86712016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8672
8673 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8674 (s390_emit_ne_goto): Likewise.
8675 (s390_emit_lt_goto): Likewise.
8676 (s390_emit_le_goto): Likewise.
8677 (s390_emit_gt_goto): Likewise.
8678 (s390_emit_ge_goto): Likewise.
8679 (s390x_emit_eq_goto): Likewise.
8680 (s390x_emit_ne_goto): Likewise.
8681 (s390x_emit_lt_goto): Likewise.
8682 (s390x_emit_le_goto): Likewise.
8683 (s390x_emit_gt_goto): Likewise.
8684 (s390x_emit_ge_goto): Likewise.
8685 (s390_emit_ops_impl): Mark variable static.
8686 (s390x_emit_ops): Likewise.
8687
2e7b624b
YQ
86882016-06-17 Yao Qi <yao.qi@linaro.org>
8689
8690 * linux-low.c (handle_extended_wait): Call
8691 uninsert_reinsert_breakpoints for the parent process. Remove
8692 reinsert breakpoints from the child process. Reinsert them to
8693 the parent process when vfork is done.
8694 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8695 (reinsert_reinsert_breakpoints): New function.
8696 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8697 (reinsert_reinsert_breakpoints): Declare.
8698
8a81c5d7
YQ
86992016-06-17 Yao Qi <yao.qi@linaro.org>
8700
8701 * linux-low.c (handle_extended_wait): If the parent is doing
8702 step-over, remove the reinsert breakpoints from the forked child.
8703
f50bf8e5
YQ
87042016-06-17 Yao Qi <yao.qi@linaro.org>
8705
8706 * linux-low.c (unsuspend_all_lwps): Declare.
8707 (linux_low_filter_event): If thread exited, call finish_step_over.
8708 If step-over is finished, unsuspend other threads.
8709
8376a3cb
YQ
87102016-06-17 Yao Qi <yao.qi@linaro.org>
8711
8712 * linux-low.c (linux_resume_one_lwp_throw): Assert
8713 has_reinsert_breakpoints returns false.
8714 * mem-break.c (delete_disabled_breakpoints): Assert
8715 bp type isn't reinsert_breakpoint.
8716
f79b145d
YQ
87172016-06-17 Yao Qi <yao.qi@linaro.org>
8718
8719 * linux-low.c (maybe_hw_step): New function.
8720 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8721 (finish_step_over): Switch current_thread to lwp temporarily,
8722 and assert has_reinsert_breakpoints returns true.
8723 (proceed_one_lwp): Call maybe_hw_step.
8724 * mem-break.c (has_reinsert_breakpoints): New function.
8725 * mem-break.h (has_reinsert_breakpoints): Declare.
8726
0ae534d2
JT
87272016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8728
8729 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8730
fcdad592
YQ
87312016-05-17 Yao Qi <yao.qi@linaro.org>
8732
8733 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8734 instead of find_inferior.
8735
9e784964
YQ
87362016-05-05 Yao Qi <yao.qi@linaro.org>
8737
8738 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8739 Initialize res to zero.
8740
cf2ebb6e
YQ
87412016-05-05 Yao Qi <yao.qi@linaro.org>
8742
8743 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8744 to uint32_t.
8745
c1aebf87
UW
87462016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8747
8748 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8749 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8750 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8751
35fd2deb 87522016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8753 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8754
8755 * tracepoint.c (write_inferior_int8): New function.
8756 (cmd_qtenable_disable): Write enable flag using
8757 write_inferior_int8.
8758
484b3c32
YQ
87592016-04-25 Yao Qi <yao.qi@linaro.org>
8760
8761 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8762 (need_step_over_p): Return zero if the LWP has pending signals
8763 can be delivered on software single step target.
8764
85ba7d86
YQ
87652016-04-25 Yao Qi <yao.qi@linaro.org>
8766
8767 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8768 return instead of error.
8769
3539aa13
YQ
87702016-04-22 Yao Qi <yao.qi@linaro.org>
8771
8772 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8773 to 23.
8774
5b061e98
YQ
87752016-04-22 Yao Qi <yao.qi@linaro.org>
8776
8777 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8778 signal when stepping over breakpoint with software single
8779 step.
8780
3451269c
PA
87812016-04-21 Pedro Alves <palves@redhat.com>
8782
8783 * linux-s390-low.c (s390_collect_ptrace_register)
8784 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8785 add casts.
8786 (s390_check_regset): Use void * instead of gdb_byte *.
8787
a2358508
PA
87882016-04-20 Pedro Alves <palves@redhat.com>
8789
8790 * configure: Renegerate.
8791
6885166d
YQ
87922016-04-20 Yao Qi <yao.qi@linaro.org>
8793
8794 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8795 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8796 number 16.
8797 (arm_store_gregset): Likewise.
8798
2b863f51
WT
87992016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8800
8801 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8802 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8803 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8804 (amd64-avx-mpx-linux.c): New rules.
8805 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8806 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8807 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8808 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8809 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8810 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8811 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8812 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8813 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8814 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8815 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8816 * linux-x86-low.c (x86_linux_read_description): Add case for
8817 X86_XSTATE_AVX_MPX_MASK.
8818 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8819 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8820 init_registers_i386_avx_mpx_linux.
8821 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8822 (initialize_low_tracepoint): Call
8823 init_registers_i386_avx_mpx_linux.
8824 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8825 (initialize_low_tracepoint): Call
8826 init_registers_amd64_avx_mpx_linux.
8827 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8828 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8829 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8830 declarations.
8831
9b30624b
PA
88322016-04-18 Pedro Alves <palves@redhat.com>
8833
8834 * configure: Regenerate.
8835
45e3745e
AT
88362016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8837
8838 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8839 (aarch64_emit_sub): Likewise.
8840
2afc13ff
PA
88412016-04-12 Pedro Alves <palves@redhat.com>
8842
8843 * utils.c (prepare_to_throw_exception): Delete.
8844
6e774b13
SM
88452016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8846
8847 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8848
4dca19f8
MK
88492016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8850
8851 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8852
d0a9981f
MK
88532016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8854
8855 * linux-aarch64-ipa.c: Add <elf.h> include.
8856 * linux-ppc-ipa.c: Add <elf.h> include.
8857 * linux-s390-ipa.c: Add <elf.h> include.
8858
252db07e
MK
88592016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8860
8861 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8862 (get_raw_reg_ptr): Likewise.
8863 (get_trace_state_variable_value_ptr): Likewise.
8864 (set_trace_state_variable_value_ptr): Likewise.
8865 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8866 char *.
8867
14e2b6d9
MK
88682016-03-31 Wei-cheng Wang <cole945@gmail.com>
8869 Marcin Kościelnicki <koriakin@0x04.net>
8870
8871 PR/17221
8872 * linux-ppc-low.c (emit_insns): New function.
8873 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8874 (ppc_emit_prologue): New function.
8875 (ppc_emit_epilogue): New function.
8876 (ppc_emit_add): New function.
8877 (ppc_emit_sub): New function.
8878 (ppc_emit_mul): New function.
8879 (ppc_emit_lsh): New function.
8880 (ppc_emit_rsh_signed): New function.
8881 (ppc_emit_rsh_unsigned): New function.
8882 (ppc_emit_ext): New function.
8883 (ppc_emit_zero_ext): New function.
8884 (ppc_emit_log_not): New function.
8885 (ppc_emit_bit_and): New function.
8886 (ppc_emit_bit_or): New function.
8887 (ppc_emit_bit_xor): New function.
8888 (ppc_emit_bit_not): New function.
8889 (ppc_emit_equal): New function.
8890 (ppc_emit_less_signed): New function.
8891 (ppc_emit_less_unsigned): New function.
8892 (ppc_emit_ref): New function.
8893 (ppc_emit_const): New function.
8894 (ppc_emit_reg): New function.
8895 (ppc_emit_pop): New function.
8896 (ppc_emit_stack_flush): New function.
8897 (ppc_emit_swap): New function.
8898 (ppc_emit_stack_adjust): New function.
8899 (ppc_emit_call): New function.
8900 (ppc_emit_int_call_1): New function.
8901 (ppc_emit_void_call_2): New function.
8902 (ppc_emit_if_goto): New function.
8903 (ppc_emit_goto): New function.
8904 (ppc_emit_eq_goto): New function.
8905 (ppc_emit_ne_goto): New function.
8906 (ppc_emit_lt_goto): New function.
8907 (ppc_emit_le_goto): New function.
8908 (ppc_emit_gt_goto): New function.
8909 (ppc_emit_ge_goto): New function.
8910 (ppc_write_goto_address): New function.
8911 (ppc_emit_ops_impl): New static variable.
8912 (ppc64v1_emit_prologue): New function.
8913 (ppc64v2_emit_prologue): New function.
8914 (ppc64_emit_epilogue): New function.
8915 (ppc64_emit_add): New function.
8916 (ppc64_emit_sub): New function.
8917 (ppc64_emit_mul): New function.
8918 (ppc64_emit_lsh): New function.
8919 (ppc64_emit_rsh_signed): New function.
8920 (ppc64_emit_rsh_unsigned): New function.
8921 (ppc64_emit_ext): New function.
8922 (ppc64_emit_zero_ext): New function.
8923 (ppc64_emit_log_not): New function.
8924 (ppc64_emit_bit_and): New function.
8925 (ppc64_emit_bit_or): New function.
8926 (ppc64_emit_bit_xor): New function.
8927 (ppc64_emit_bit_not): New function.
8928 (ppc64_emit_equal): New function.
8929 (ppc64_emit_less_signed): New function.
8930 (ppc64_emit_less_unsigned): New function.
8931 (ppc64_emit_ref): New function.
8932 (ppc64_emit_const): New function.
8933 (ppc64v1_emit_reg): New function.
8934 (ppc64v2_emit_reg): New function.
8935 (ppc64_emit_pop): New function.
8936 (ppc64_emit_stack_flush): New function.
8937 (ppc64_emit_swap): New function.
8938 (ppc64v1_emit_call): New function.
8939 (ppc64v2_emit_call): New function.
8940 (ppc64v1_emit_int_call_1): New function.
8941 (ppc64v2_emit_int_call_1): New function.
8942 (ppc64v1_emit_void_call_2): New function.
8943 (ppc64v2_emit_void_call_2): New function.
8944 (ppc64_emit_if_goto): New function.
8945 (ppc64_emit_eq_goto): New function.
8946 (ppc64_emit_ne_goto): New function.
8947 (ppc64_emit_lt_goto): New function.
8948 (ppc64_emit_le_goto): New function.
8949 (ppc64_emit_gt_goto): New function.
8950 (ppc64_emit_ge_goto): New function.
8951 (ppc64v1_emit_ops_impl): New static variable.
8952 (ppc64v2_emit_ops_impl): New static variable.
8953 (ppc_emit_ops): New function.
8954 (linux_low_target): Wire in ppc_emit_ops.
8955
a2174ba4
MK
89562016-03-31 Wei-cheng Wang <cole945@gmail.com>
8957 Marcin Kościelnicki <koriakin@0x04.net>
8958
8959 PR/17221
8960 * Makefile.in: Add powerpc-*-ipa.o
8961 * configure.srv: Add ipa_obj for powerpc*-linux.
8962 * linux-ppc-ipa.c: New file.
8963 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8964 includes.
8965 (PPC_FIELD): New macro.
8966 (PPC_SEXT): New macro.
8967 (PPC_OP6): New macro.
8968 (PPC_BO): New macro.
8969 (PPC_LI): New macro.
8970 (PPC_BD): New macro.
8971 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8972 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8973 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8974 (ppc_get_thread_area): New function.
8975 (is_elfv2_inferior): New function.
8976 (gen_ds_form): New function.
8977 (GEN_STD): New macro.
8978 (GEN_STDU): New macro.
8979 (GEN_LD): New macro.
8980 (GEN_LDU): New macro.
8981 (gen_d_form): New function.
8982 (GEN_ADDI): New macro.
8983 (GEN_ADDIS): New macro.
8984 (GEN_LI): New macro.
8985 (GEN_LIS): New macro.
8986 (GEN_ORI): New macro.
8987 (GEN_ORIS): New macro.
8988 (GEN_LWZ): New macro.
8989 (GEN_STW): New macro.
8990 (GEN_STWU): New macro.
8991 (gen_xfx_form): New function.
8992 (GEN_MFSPR): New macro.
8993 (GEN_MTSPR): New macro.
8994 (GEN_MFCR): New macro.
8995 (GEN_MTCR): New macro.
8996 (GEN_SYNC): New macro.
8997 (GEN_LWSYNC): New macro.
8998 (gen_x_form): New function.
8999 (GEN_OR): New macro.
9000 (GEN_MR): New macro.
9001 (GEN_LWARX): New macro.
9002 (GEN_STWCX): New macro.
9003 (GEN_CMPW): New macro.
9004 (gen_md_form): New function.
9005 (GEN_RLDICL): New macro.
9006 (GEN_RLDICR): New macro.
9007 (gen_i_form): New function.
9008 (GEN_B): New macro.
9009 (GEN_BL): New macro.
9010 (gen_b_form): New function.
9011 (GEN_BNE): New macro.
9012 (GEN_LOAD): New macro.
9013 (GEN_STORE): New macro.
9014 (gen_limm): New function.
9015 (gen_atomic_xchg): New function.
9016 (gen_call): New function.
9017 (ppc_relocate_instruction): New function.
9018 (ppc_install_fast_tracepoint_jump_pad): New function.
9019 (ppc_get_min_fast_tracepoint_insn_len): New function.
9020 (ppc_get_ipa_tdesc_idx): New function.
9021 (the_low_target): Wire in the new functions.
9022 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9023 tdescs.
9024 * linux-ppc-tdesc.h: New file.
9025
a13c4696
MK
90262016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9027
9028 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9029 (alloc_jump_pad_buffer): New function.
9030 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9031 (alloc_jump_pad_buffer): New function.
9032 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9033 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9034 (alloc_jump_pad_buffer): New function.
9035 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9036 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9037 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9038 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9039
1cda1512
MK
90402016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9041
9042 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9043 * linux-amd64-ipa.c: Likewise.
9044 * linux-i386-ipa.c: Likewise.
9045 * linux-s390-ipa.c: Likewise.
9046 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9047 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9048 set_trace_state_variable_value_ptr.
9049 (struct ipa_sym_addresses): Likewise.
9050 (symbol_list): Likewise.
9051 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9052 accessing gdb_collect directly.
9053 (gdb_collect_ptr_type): New typedef.
9054 (get_raw_reg_ptr_type): New typedef.
9055 (get_trace_state_variable_value_ptr_type): New typedef.
9056 (set_trace_state_variable_value_ptr_type): New typedef.
9057 (gdb_collect_ptr): New global.
9058 (get_raw_reg_ptr): New global.
9059 (get_trace_state_variable_value_ptr): New global.
9060 (set_trace_state_variable_value_ptr): New global.
9061 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9062 accessing get_raw_reg directly.
9063 (get_get_tsv_func_addr): Likewise for
9064 get_trace_state_variable_value_ptr.
9065 (get_set_tsv_func_addr): Likewise for
9066 set_trace_state_variable_value_ptr.
9067 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9068
72fb5488
SM
90692016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9070
9071 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9072
28170b88
MK
90732016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9074
9075 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9076 packets.
9077 (relocate_instruction): Remove own_buf.
9078 * server.c (own_buf): Make global.
9079 (handle_v_requests): Make global.
9080 * server.h (own_buf): New declaration.
9081 (handle_v_requests): New prototype.
9082
f39e8743
MK
90832016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9084
9085 PR 18377
9086 * linux-s390-low.c (add_insns): New function.
9087 (s390_emit_prologue): New function.
9088 (s390_emit_epilogue): New function.
9089 (s390_emit_add): New function.
9090 (s390_emit_sub): New function.
9091 (s390_emit_mul): New function.
9092 (s390_emit_lsh): New function.
9093 (s390_emit_rsh_signed): New function.
9094 (s390_emit_rsh_unsigned): New function.
9095 (s390_emit_ext): New function.
9096 (s390_emit_log_not): New function.
9097 (s390_emit_bit_and): New function.
9098 (s390_emit_bit_or): New function.
9099 (s390_emit_bit_xor): New function.
9100 (s390_emit_bit_not): New function.
9101 (s390_emit_equal): New function.
9102 (s390_emit_less_signed): New function.
9103 (s390_emit_less_unsigned): New function.
9104 (s390_emit_ref): New function.
9105 (s390_emit_if_goto): New function.
9106 (s390_emit_goto): New function.
9107 (s390_write_goto_address): New function.
9108 (s390_emit_litpool): New function.
9109 (s390_emit_const): New function.
9110 (s390_emit_call): New function.
9111 (s390_emit_reg): New function.
9112 (s390_emit_pop): New function.
9113 (s390_emit_stack_flush): New function.
9114 (s390_emit_zero_ext): New function.
9115 (s390_emit_swap): New function.
9116 (s390_emit_stack_adjust): New function.
9117 (s390_emit_set_r2): New function.
9118 (s390_emit_int_call_1): New function.
9119 (s390_emit_void_call_2): New function.
9120 (s390_emit_eq_goto): New function.
9121 (s390_emit_ne_goto): New function.
9122 (s390_emit_lt_goto): New function.
9123 (s390_emit_le_goto): New function.
9124 (s390_emit_gt_goto): New function.
9125 (s390_emit_ge_goto): New function.
9126 (s390x_emit_prologue): New function.
9127 (s390x_emit_epilogue): New function.
9128 (s390x_emit_add): New function.
9129 (s390x_emit_sub): New function.
9130 (s390x_emit_mul): New function.
9131 (s390x_emit_lsh): New function.
9132 (s390x_emit_rsh_signed): New function.
9133 (s390x_emit_rsh_unsigned): New function.
9134 (s390x_emit_ext): New function.
9135 (s390x_emit_log_not): New function.
9136 (s390x_emit_bit_and): New function.
9137 (s390x_emit_bit_or): New function.
9138 (s390x_emit_bit_xor): New function.
9139 (s390x_emit_bit_not): New function.
9140 (s390x_emit_equal): New function.
9141 (s390x_emit_less_signed): New function.
9142 (s390x_emit_less_unsigned): New function.
9143 (s390x_emit_ref): New function.
9144 (s390x_emit_if_goto): New function.
9145 (s390x_emit_const): New function.
9146 (s390x_emit_call): New function.
9147 (s390x_emit_reg): New function.
9148 (s390x_emit_pop): New function.
9149 (s390x_emit_stack_flush): New function.
9150 (s390x_emit_zero_ext): New function.
9151 (s390x_emit_swap): New function.
9152 (s390x_emit_stack_adjust): New function.
9153 (s390x_emit_int_call_1): New function.
9154 (s390x_emit_void_call_2): New function.
9155 (s390x_emit_eq_goto): New function.
9156 (s390x_emit_ne_goto): New function.
9157 (s390x_emit_lt_goto): New function.
9158 (s390x_emit_le_goto): New function.
9159 (s390x_emit_gt_goto): New function.
9160 (s390x_emit_ge_goto): New function.
9161 (s390_emit_ops): New function.
9162 (struct linux_target_ops): Fill in emit_ops hook.
9163
abd9baf9
MK
91642016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9165
9166 PR 18377
9167 * Makefile.in: Add s390 IPA files.
9168 * configure.srv: Build IPA for s390.
9169 * linux-s390-ipa.c: New file.
9170 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9171 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9172 (tdesc_s390_linux32): Likewise.
9173 (init_registers_s390_linux32v1): Likewise.
9174 (tdesc_s390_linux32v1): Likewise.
9175 (init_registers_s390_linux32v2): Likewise.
9176 (tdesc_s390_linux32v2): Likewise.
9177 (init_registers_s390_linux64): Likewise.
9178 (tdesc_s390_linux64): Likewise.
9179 (init_registers_s390_linux64v1): Likewise.
9180 (tdesc_s390_linux64v1): Likewise.
9181 (init_registers_s390_linux64v2): Likewise.
9182 (tdesc_s390_linux64v2): Likewise.
9183 (init_registers_s390_te_linux64): Likewise.
9184 (tdesc_s390_te_linux64): Likewise.
9185 (init_registers_s390_vx_linux64): Likewise.
9186 (tdesc_s390_vx_linux64): Likewise.
9187 (init_registers_s390_tevx_linux64): Likewise.
9188 (tdesc_s390_tevx_linux64): Likewise.
9189 (init_registers_s390x_linux64): Likewise.
9190 (tdesc_s390x_linux64): Likewise.
9191 (init_registers_s390x_linux64v1): Likewise.
9192 (tdesc_s390x_linux64v1): Likewise.
9193 (init_registers_s390x_linux64v2): Likewise.
9194 (tdesc_s390x_linux64v2): Likewise.
9195 (init_registers_s390x_te_linux64): Likewise.
9196 (tdesc_s390x_te_linux64): Likewise.
9197 (init_registers_s390x_vx_linux64): Likewise.
9198 (tdesc_s390x_vx_linux64): Likewise.
9199 (init_registers_s390x_tevx_linux64): Likewise.
9200 (tdesc_s390x_tevx_linux64): Likewise.
9201 (have_hwcap_s390_vx): New static variable.
9202 (s390_arch_setup): Fill have_hwcap_s390_vx.
9203 (s390_get_thread_area): New function.
9204 (s390_ft_entry_gpr_esa): New const.
9205 (s390_ft_entry_gpr_zarch): New const.
9206 (s390_ft_entry_misc): New const.
9207 (s390_ft_entry_fr): New const.
9208 (s390_ft_entry_vr): New const.
9209 (s390_ft_main_31): New const.
9210 (s390_ft_main_64): New const.
9211 (s390_ft_exit_fr): New const.
9212 (s390_ft_exit_vr): New const.
9213 (s390_ft_exit_misc): New const.
9214 (s390_ft_exit_gpr_esa): New const.
9215 (s390_ft_exit_gpr_zarch): New const.
9216 (append_insns): New function.
9217 (s390_relocate_instruction): New function.
9218 (s390_install_fast_tracepoint_jump_pad): New function.
9219 (s390_get_min_fast_tracepoint_insn_len): New function.
9220 (s390_get_ipa_tdesc_idx): New function.
9221 (struct linux_target_ops): Wire in the above functions.
9222 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9223 * linux-s390-tdesc.h: New file.
9224
a4105d04
MK
92252016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9226
9227 * linux-s390-low.c (s390_supports_tracepoints): New function.
9228 (struct linux_target_ops): Fill supports_tracepoints hook.
9229
35ac8b3e
YQ
92302016-03-18 Yao Qi <yao.qi@linaro.org>
9231
9232 * linux-low.c (lwp_signal_can_be_delivered): New function.
9233 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9234
94610ec4
YQ
92352016-03-18 Yao Qi <yao.qi@linaro.org>
9236
9237 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9238 0 if signal is enqueued. Remove 'signal' from one debugging
9239 message. Move one debugging message to some lines below.
9240 Remove code setting 'signal' to 0.
9241
80aea927
YQ
92422016-03-18 Yao Qi <yao.qi@linaro.org>
9243
9244 * linux-low.c (linux_low_filter_event): Remove redundant
9245 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9246
b04fd3be
MK
92472016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9248
9249 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9250 (struct linux_target_ops): Wire in the above.
9251
c40c8d4b
YQ
92522016-03-03 Yao Qi <yao.qi@linaro.org>
9253
9254 * linux-low.c: Update comments to start_step_over.
9255
0f8288ae
YQ
92562016-03-03 Yao Qi <yao.qi@linaro.org>
9257
9258 PR server/19736
9259 * linux-low.c (handle_extended_wait): Set child suspended
9260 if event_lwp->bp_reinsert isn't zero.
9261
fdbd04a8
YQ
92622016-03-02 Yao Qi <yao.qi@linaro.org>
9263
9264 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9265 enqueue_pending_signal.
9266
6896a8fa
MK
92672016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9268
9269 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9270 is actually loaded.
9271
ab503087
MK
92722016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9273
9274 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9275 (s390_regmap_3264) [!__s390x__]: New global.
9276 (s390_collect_ptrace_register): Skip map entries containing -1.
9277 (s390_supply_ptrace_register): Ditto.
9278 (s390_fill_gprs_high): New function.
9279 (s390_store_gprs_high): New function.
9280 (s390_regsets): Add NT_S390_HIGH_GPRS.
9281 (s390_get_hwcap): Enable on 31-bit.
9282 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9283 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9284 Detect NT_S390_HIGH_GPRS.
9285 (s390_usrregs_info_3264): Enable on 31-bit.
9286 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9287 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9288
ae91f625
MK
92892016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9290
9291 PR gdb/13808
9292 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9293 * configure.srv: Ditto.
9294 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9295 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9296 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9297 (init_registers_amd64_linux): Remove prototype.
9298 (tdesc_amd64_linux): Remove declaration.
9299 (get_ipa_tdesc): New function.
9300 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9301 initialize remaining tdescs.
9302 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9303 (init_registers_i386_linux): Remove prototype.
9304 (tdesc_i386_linux): Remove declaration.
9305 (get_ipa_tdesc): New function.
9306 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9307 initialize remaining tdescs.
9308 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9309 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9310 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9311 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9312 (x86_get_ipa_tdesc_idx): New function.
9313 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9314 * linux-x86-tdesc.h: New file.
9315 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9316 (target_get_ipa_tdesc_idx): New macro.
9317 * tracepoint.c (ipa_tdesc_idx): New macro.
9318 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9319 (symbol_list): Add ipa_tdesc_idx.
9320 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9321 (ipa_tdesc): Remove.
9322 (ipa_tdesc_idx): New variable.
9323 (get_context_regcache): Use get_ipa_tdesc.
9324 (gdb_collect): Ditto.
9325 (gdb_probe): Ditto.
9326 * tracepoint.h (get_ipa_tdesc): New prototype.
9327 (ipa_tdesc): Remove.
9328
e7ad2f14
PA
93292016-02-24 Pedro Alves <palves@redhat.com>
9330
9331 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9332 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9333 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9334 Factor out common code between the USE_SIGTRAP_SIGINFO and
9335 !USE_SIGTRAP_SIGINFO blocks.
9336 (linux_low_filter_event): Call save_stop_reason instead of
9337 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9338 Update comments.
9339 (linux_wait_1): Update comments.
9340
657f9cde
WW
93412016-02-24 Wei-cheng Wang <cole945@gmail.com>
9342
9343 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9344 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9345 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9346 ppc_insert_point, ppc_remove_point.
9347
b00b61e1
MK
93482016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9349
9350 * linux-s390-low.c (s390_supports_z_point_type): New function.
9351 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9352
553cb527
YQ
93532016-02-16 Yao Qi <yao.qi@linaro.org>
9354
9355 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9356 PC. Get pc from regcache_read_pc.
9357
a5652c21
YQ
93582016-02-12 Yao Qi <yao.qi@linaro.org>
9359
9360 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9361 or linux_get_pc_32bit.
9362 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9363
ed443b61
YQ
93642016-02-12 Yao Qi <yao.qi@linaro.org>
9365
9366 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9367 arm_linux_get_next_pcs_fixup.
9368
020ecd38
MK
93692016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9370
9371 * tracepoint.c (x_tracepoint_action_download): Change
9372 write_inferior_data_ptr to write_inferior_data_pointer.
9373 (cmd_qtstart): Likewise.
9374 (write_inferior_data_ptr): Remove.
9375 (download_agent_expr): Change write_inferior_data_ptr to
9376 write_inferior_data_pointer.
9377 (download_tracepoint_1): Likewise.
9378 (download_tracepoint): Likewise.
9379 (download_trace_state_variables): Likewise.
9380
7cae9051
WW
93812016-02-11 Wei-cheng Wang <cole945@gmail.com>
9382 Marcin Kościelnicki <koriakin@0x04.net>
9383
9384 * tracepoint.c (struct tracepoint_action_ops): Remove.
9385 (struct tracepoint_action): Remove ops.
9386 (m_tracepoint_action_download, r_tracepoint_action_download)
9387 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9388 size and offset accordingly.
9389 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9390 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9391 (tracepoint_action_send, tracepoint_action_download): New functions.
9392 Helpers for trace action handlers.
9393 (add_tracepoint_action): Remove setup actions ops.
9394 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9395
9f6a71b4
YQ
93962016-02-10 Yao Qi <yao.qi@linaro.org>
9397
9398 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9399
1e94266c
SM
94002016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9401
9402 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9403 to AC_OUTPUT.
9404 * configure: Regenerate.
9405
8adce034
SM
94062016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9407
9408 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9409 void * to gdb_byte *.
9410 * linux-low.c (siginfo_fixup): Likewise.
9411 (linux_xfer_siginfo): Likewise.
9412 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9413 Likewise.
9414 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9415
93813b37
WT
94162016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9417
9418 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9419 to srv_tgtobj.
9420 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9421 to srv_tgtobj.
9422 * linux-x86-low.c [__x86_64__]: Include
9423 "nat/amd64-linux-siginfo.h".
9424 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9425 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9426 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9427 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9428 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9429 (cpt_si_fd, si_timerid, si_overrun): Move from
9430 nat/amd64-linux-siginfo.c.
9431 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9432
8424cc97
SM
94332016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9434
9435 * server.c (skip_to_semicolon): Remove.
9436 (process_point_options): Use strchrnul instead of
9437 skip_to_semicolon.
9438
4d18591b
YQ
94392016-01-26 Yao Qi <yao.qi@linaro.org>
9440
9441 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9442 * linux-low.c (install_software_single_step_breakpoints): Don't
9443 call regcache_read_pc.
9444 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9445 argument pc.
9446
d8020970
YQ
94472016-01-26 Yao Qi <yao.qi@linaro.org>
9448
9449 * linux-low.c (install_software_single_step_breakpoints): Call
9450 regcache_read_pc instead of get_pc.
9451
8b207339
YQ
94522016-01-26 Yao Qi <yao.qi@linaro.org>
9453
9454 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9455 (unblock_async_io): Rename to ...
9456 (block_unblock_async_io): ... it. New function.
9457 (enable_async_io): Don't install SIGIO handler. Unblock it
9458 instead.
9459 (disable_async_io): Don't ignore SIGIO. Block it instead.
9460 (initialize_async_io): Install SIGIO handler. Don't call
9461 unblock_async_io.
9462
18879fef
YQ
94632016-01-26 Yao Qi <yao.qi@linaro.org>
9464
9465 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9466 first character is '\003', call *the_target->request_interrupt.
9467
a0f8e08a
YQ
94682016-01-25 Yao Qi <yao.qi@linaro.org>
9469
9470 * remote-utils.c (new_thread_notify): Remove.
9471 (dead_thread_notify): Likewise.
9472 * remote-utils.h (new_thread_notify): Remove declaration.
9473 (dead_thread_notify): Likewise.
9474
cc5fd9ab
MK
94752016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9476
9477 * gdb.trace/pending.exp: Fix expected message on continue.
9478
99e8eb11
MK
94792016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9480
9481 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9482 it works properly on big-endian machines where sizeof (CORE_ADDR)
9483 != sizeof (void *).
9484
a994041d
PA
94852016-01-21 Pedro Alves <palves@redhat.com>
9486
9487 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9488 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9489 * configure: Regenerate.
9490
f7a6a40d
YQ
94912016-01-21 Yao Qi <yao.qi@linaro.org>
9492
9493 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9494 is_thumb and set it according to CPSR saved on the stack.
9495 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9496 arm_sigreturn_next_pc.
9497
6f69e520
YQ
94982016-01-18 Yao Qi <yao.qi@linaro.org>
9499
9500 * linux-low.c (linux_set_pc_64bit): New function.
9501 (linux_get_pc_64bit): New function.
9502 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9503 Declare.
9504 * linux-sparc-low.c (debug_threads): Remove declaration.
9505 (sparc_get_pc): Remove.
9506 (the_low_target): Use linux_get_pc_64bit instead of
9507 sparc_get_pc.
9508 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9509 (the_low_target): Use linux_get_pc_64bit and
9510 linux_set_pc_64bit.
9511
276d4552
YQ
95122016-01-18 Yao Qi <yao.qi@linaro.org>
9513
9514 * linux-arm-low.c (debug_threads): Remove declaration.
9515 (arm_get_pc, arm_set_pc): Remove.
9516 (the_low_target): Use linux_get_pc_32bit and
9517 linux_set_pc_32bit.
9518 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9519 (the_low_target): Use linux_get_pc_32bit and
9520 linux_set_pc_32bit.
9521 * linux-cris-low.c (debug_threads): Remove declaration.
9522 (cris_get_pc, cris_set_pc,): Remove.
9523 (the_low_target): Use linux_get_pc_32bit and
9524 linux_set_pc_32bit.
9525 * linux-crisv32-low.c (debug_threads): Remove declaration.
9526 (cris_get_pc, cris_set_pc): Remove.
9527 (the_low_target): Use linux_get_pc_32bit and
9528 linux_set_pc_32bit.
9529 * linux-low.c: Include inttypes.h.
9530 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9531 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9532 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9533 (the_low_target): Use linux_get_pc_32bit and
9534 linux_set_pc_32bit.
9535 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9536 (the_low_target): Use linux_get_pc_32bit and
9537 linux_set_pc_32bit.
9538 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9539 (the_low_target): Use linux_get_pc_32bit and
9540 linux_set_pc_32bit.
9541 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9542 (the_low_target): Use linux_get_pc_32bit and
9543 linux_set_pc_32bit.
9544 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9545 (the_low_target): Use linux_get_pc_32bit and
9546 linux_set_pc_32bit.
9547
eb0edac8
GB
95482016-01-18 Gary Benson <gbenson@redhat.com>
9549
9550 * configure.ac (AC_FUNC_FORK): New check.
9551 * config.in: Regenerate.
9552 * configure: Likewise.
9553
1b451dda
YQ
95542016-01-14 Yao Qi <yao.qi@linaro.org>
9555
9556 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9557 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9558 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9559 arm_get_next_pcs_ctor.
9560
82075af2
JS
95612016-01-12 Josh Stone <jistone@redhat.com>
9562 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9563
9564 * inferiors.h: Include "gdb_vecs.h".
9565 (struct process_info): Add syscalls_to_catch.
9566 * inferiors.c (remove_process): Free syscalls_to_catch.
9567 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9568 syscall_return stops.
9569 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9570 * server.c (handle_general_set): Handle QCatchSyscalls.
9571 (handle_query): Report support for QCatchSyscalls.
9572 * target.h (struct target_ops): Add supports_catch_syscall.
9573 (target_supports_catch_syscall): New macro.
9574 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9575 (struct lwp_info): Add syscall_state.
9576 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9577 Maintain syscall_state and syscalls_to_catch across exec.
9578 (get_syscall_trapinfo): New function, proxy to the_low_target.
9579 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9580 (linux_low_filter_event): Toggle syscall_state entry/return for
9581 syscall traps, and set it ignored for all others.
9582 (gdb_catching_syscalls_p): New function.
9583 (gdb_catch_this_syscall_p): New function.
9584 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9585 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9586 (linux_supports_catch_syscall): New function.
9587 (linux_target_ops): Install it.
9588 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9589 (the_low_target): Install it.
9590
8f13a3ce
MF
95912016-01-12 Mike Frysinger <vapier@gentoo.org>
9592
9593 * acinclude.m4: Include new ../warning.m4 file.
9594 * configure: Regenerated.
9595 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9596
5b3da067
MF
95972016-01-12 Mike Frysinger <vapier@gentoo.org>
9598
9599 * ax.c (is_goto_target): Mark static.
9600 * linux-low.c (register_addr): Likewise.
9601 (linux_fetch_registers, linux_store_registers): Likewise.
9602 * mem-break.c (any_persistent_commands): Fix old prototype.
9603 (add_commands_to_breakpoint): Mark static.
9604 * regcache.c (find_register_by_name): Delete unused func.
9605 * remote-utils.c (hex_or_minus_one): Mark static.
9606 * server.c (monitor_show_help): Mark static.
9607 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9608 handle_v_requests): Likewise.
9609
bc504a31
PA
96102016-01-12 Pedro Alves <palves@redhat.com>
9611
9612 Remove use of the registered trademark symbol throughout.
9613
5a0dd67a
YQ
96142016-01-08 Yao Qi <yao.qi@linaro.org>
9615
9616 * remote-utils.c (getpkt): If c is '\003', call target hook
9617 request_interrupt.
9618
b2ca446f
YQ
96192016-01-06 Yao Qi <yao.qi@linaro.org>
9620
9621 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9622 linux-aarch32-low.c.
9623 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9624 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9625 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9626 (thumb2_breakpoint): Declare.
9627 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9628 linux-aarch32-low.h.
9629 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9630 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9631 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9632
edd88788
JB
96332016-01-01 Joel Brobecker <brobecker@adacore.com>
9634
9635 * gdbreplay.c (gdbreplay_version): Change copyright year in
9636 version message.
9637 * server.c (gdbserver_version): Likewise.
9638
65da7f14
PP
96392015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9640
9641 * server.c (crc32_table): Delete.
9642 (crc32): Use libiberty's xcrc32 function.
9643
4abd5ed2
JB
96442015-12-22 Joel Brobecker <brobecker@adacore.com>
9645
9646 * lynx-low.c (lynx_delete_thread_callback): New function.
9647 (lynx_mourn): Properly delete our process and all of its
9648 threads. Remove call to clear_inferiors.
9649
0e50fe5c
JB
96502015-12-22 Joel Brobecker <brobecker@adacore.com>
9651
9652 * target.c (thread_search_callback): Add check that
9653 the thread_stopped target callback is not NULL before
9654 calling it.
9655
35adc03f
YQ
96562015-12-21 Yao Qi <yao.qi@linaro.org>
9657
9658 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9659 arm breakpoint.
9660
bd2b2909
AT
96612015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9662
9663 * server.c (handle_query): Call target_supports_software_single_step.
9664
7fe5e27e
AT
96652015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9666
9667 * linux-low.c (single_step): New function.
9668 (linux_resume_one_lwp_throw): Call single_step.
9669 (start_step_over): Likewise.
9670
d9311bfa
AT
96712015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9672
9673 * Makefile.in (SFILES): Append arch/arm-linux.c,
9674 arch/arm-get-next-pcs.c.
9675 (arm-linux.o): New rule.
9676 (arm-get-next-pcs.o): New rule.
9677 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9678 arm-linux.o.
9679 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9680 to linux-aarch32-low.c.
9681 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9682 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9683 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9684 (thumb2_breakpoint_len): Likewise.
9685 (arm_is_thumb_mode): Make non-static.
9686 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9687 from linux-aarch32-low.c.
9688 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9689 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9690 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9691 (thumb2_breakpoint_len): Likewise.
9692 (arm_is_thumb_mode): New declaration.
9693 * linux-arm-low.c: Include arch/arm-linux.h
9694 aarch/arm-get-next-pcs.h, sys/syscall.h.
9695 (get_next_pcs_ops): New struct.
9696 (get_next_pcs_addr_bits_remove): New function.
9697 (get_next_pcs_is_thumb): New function.
9698 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9699 (arm_sigreturn_next_pc): Likewise.
9700 (get_next_pcs_syscall_next_pc): Likewise.
9701 (arm_gdbserver_get_next_pcs): Likewise.
9702 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9703 Initialize.
9704 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9705 * server.h: Include gdb_vecs.h.
9706
68ce2059
AT
97072015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9708
9709 * Makefile.in (SFILES): Append common/common-regcache.c.
9710 (OBS): Append common-regcache.o.
9711 (common-regcache.o): New rule.
9712 * regcache.c (init_register_cache): Initialize cache to
9713 REG_UNAVAILABLE.
9714 (regcache_raw_read_unsigned): New function.
9715 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9716 register_status enum.
9717
fa5308bd
AT
97182015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9719
9720 * linux-aarch64-low.c (the_low_targets): Rename
9721 breakpoint_reinsert_addr to get_next_pcs.
9722 * linux-arm-low.c (the_low_targets): Likewise.
9723 * linux-bfin-low.c (the_low_targets): Likewise.
9724 * linux-cris-low.c (the_low_targets): Likewise.
9725 * linux-crisv32-low.c (the_low_targets): Likewise.
9726 * linux-low.c (can_software_single_step): Likewise.
9727 (install_software_single_step_breakpoints): New function.
9728 (start_step_over): Use install_software_single_step_breakpoints.
9729 * linux-low.h: New CORE_ADDR vector.
9730 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9731 get_next_pcs.
9732 * linux-mips-low.c (the_low_targets): Likewise.
9733 * linux-nios2-low.c (the_low_targets): Likewise.
9734 * linux-sparc-low.c (the_low_targets): Likewise.
9735
4a6ed09b
PA
97362015-12-17 Pedro Alves <palves@redhat.com>
9737
9738 * linux-low.c (linux_kill_one_lwp): Remove references to
9739 LinuxThreads.
9740 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9741 to 'kill'.
9742 (linux_init_signals): Delete.
9743 (initialize_low): Adjust.
9744 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9745
7544db95
PA
97462015-12-16 Pedro Alves <palves@redhat.com>
9747
9748 * configure.ac (compiler warning flags): When testing a
9749 -Wno-foo option, check whether -Wfoo works instead.
9750 * configure: Regenerate.
9751
8020350c
DB
97522015-12-11 Don Breazeal <donb@codesourcery.com>
9753
9754 * server.c (process_serial_event): Don't exit from gdbserver
9755 in remote mode if there are still active inferiors.
9756
db91f502
YQ
97572015-12-11 Yao Qi <yao.qi@linaro.org>
9758
9759 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9760 arm_breakpoint_at if the process is 32-bit.
9761
b37a6290
YQ
97622015-12-11 Yao Qi <yao.qi@linaro.org>
9763
9764 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9765 arm breakpoint.
9766
17b1509a
YQ
97672015-12-07 Yao Qi <yao.qi@linaro.org>
9768
9769 * configure.srv: Append arm.o to srv_tgtobj for
9770 aarch64*-*-linux* target.
9771 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9772 from linux-arm-low.c.
9773 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9774 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9775 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9776 (thumb2_breakpoint_len): Likewise.
9777 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9778 (arm_breakpoint_kinds): Likewise.
9779 (arm_breakpoint_kind_from_pc): Likewise.
9780 (arm_sw_breakpoint_from_kind): Likewise.
9781 (arm_breakpoint_kind_from_current_state): Likewise.
9782 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9783 (arm_sw_breakpoint_from_kind): Declare.
9784 (arm_breakpoint_kind_from_current_state): Declare.
9785 (arm_breakpoint_at): Declare.
9786 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9787 arm_sw_breakpoint_from_kind if process is 32-bit.
9788 (aarch64_breakpoint_kind_from_pc): New function.
9789 (aarch64_breakpoint_kind_from_current_state): New function.
9790 (the_low_target): Initialize fields breakpoint_kind_from_pc
9791 and breakpoint_kind_from_current_state.
9792 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9793 linux-aarch32-low.c.
9794 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9795 (arm_breakpoint, arm_breakpoint_len): Likewise.
9796 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9797 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9798 (arm_is_thumb_mode): Likewise.
9799 (arm_breakpoint_at): Likewise.
9800 (arm_breakpoint_kind_from_pc): Likewise.
9801 (arm_sw_breakpoint_from_kind): Likewise.
9802 (arm_breakpoint_kind_from_current_state): Likewise.
9803
9804 Revert:
9805 2015-08-04 Yao Qi <yao.qi@linaro.org>
9806
9807 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9808 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9809 * server.c (extended_protocol): Remove "static".
9810 * server.h (extended_protocol): Declare it.
9811
ece66d65
JS
98122015-12-04 Josh Stone <jistone@redhat.com>
9813
9814 * target.h (struct target_ops) <arch_setup>: Rename to ...
9815 (struct target_ops) <post_create_inferior>: ... this.
9816 (target_arch_setup): Rename to ...
9817 (target_post_create_inferior): ... this, calling post_create_inferior.
9818 * server.c (start_inferior): Update target_arch_setup calls to
9819 target_post_create_inferior.
9820 * linux-low.c (linux_low_ptrace_options): Forward declare.
9821 (linux_arch_setup): Update its comment for general use.
9822 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9823 (struct linux_target_ops): Use linux_post_create_inferior.
9824 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9825 to post_create_inferior.
9826 * nto-low.c (struct nto_target_ops): Likewise.
9827 * spu-low.c (struct spu_target_ops): Likewise.
9828 * win32-low.c (struct win32_target_ops): Likewise.
9829
e58c48b4
AT
98302015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9831
9832 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9833
fbec8956
AT
98342015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9835
9836 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9837 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9838 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9839 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9840 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9841 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9842 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9843 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9844 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9845 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9846 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9847 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9848
9b4c5f87
AT
98492015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9850
9851 * linux-low.c (linux_look_up_symbols): Don't call
9852 linux_supports_traceclone.
9853 * linux-low.h (thread_db_init): Remove use_events argument.
9854 * thread-db.c (thread_db_use_event): Remove global variable.
9855 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9856 (struct thread_db) <td_create_bp>: Remove field.
9857 (thread_db_create_event): Remove function.
9858 (thread_db_enable_reporting): Likewise.
9859 (find_one_thread): Don't check for thread_db_use_events.
9860 (attach_thread): Likewise.
9861 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9862 (try_thread_db_load_1): Don't check for thread_db_use_events.
9863 (thread_db_init): Remove use_events argument and thread events
9864 handling.
9865 (remove_thread_event_breakpoints): Remove function.
9866 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9867
7d00775e
AT
98682015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9869
9870 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9871 New function.
9872 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9873 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9874 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9875 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9876 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9877 Initialize.
9878 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9879 New function.
9880 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9881 * linux-low.c (can_hardware_single_step): Use
9882 supports_hardware_single_step.
9883 (can_software_single_step): New function.
9884 (start_step_over): Call can_software_single_step.
9885 (linux_supports_hardware_single_step): New function.
9886 (struct target_ops) <supports_software_single_step>: Initialize.
9887 * linux-low.h (struct linux_target_ops)
9888 <supports_hardware_single_step>: Initialize.
9889 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9890 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9891 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9892 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9893 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9894 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9895 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9896 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9897 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9898 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9899 Initialize.
9900 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9901 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9902 Initialize.
9903 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9904 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9905 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9906 New function.
9907 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9908 * target.h (struct target_ops): <supports_software_single_step>:
9909 New field.
9910 (target_supports_software_single_step): New macro.
9911
2d97cd35
AT
99122015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9913
9914 * linux-low.c (linux_wait_1): Fix pc advance condition.
9915 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9916 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9917
769ef81f
AT
99182015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9919
9920 * linux-arm-low.c (arm_is_thumb_mode): New function.
9921 (arm_breakpoint_at): Use arm_is_thumb_mode.
9922 (arm_breakpoint_kind_from_current_state): New function.
9923 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9924 Initialize.
9925 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9926 (linux_breakpoint_kind_from_current_state): New function.
9927 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9928 * linux-low.h (struct linux_target_ops)
9929 <breakpoint_kind_from_current_state>: New field.
9930 * target.h (struct target_ops): Likewise.
9931 (target_breakpoint_kind_from_current_state): New macro.
9932
1bebeeca
PA
99332015-11-30 Pedro Alves <palves@redhat.com>
9934
9935 * linux-low.c (linux_resume): Wake up the event loop before
9936 returning.
9937
a67a9fae
PA
99382015-11-30 Pedro Alves <palves@redhat.com>
9939
9940 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9941 check.
9942 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9943 to -1.
9944 * target.c (struct thread_search): New structure.
9945 (thread_search_callback): New function.
9946 (prev_general_thread): New global.
9947 (prepare_to_access_memory, done_accessing_memory): New functions.
9948 * target.h (prepare_to_access_memory, done_accessing_memory):
9949 Replace macros with function declarations.
9950
f2faf941
PA
99512015-11-30 Pedro Alves <palves@redhat.com>
9952
9953 PR 14618
9954 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9955 report TARGET_WAITKIND_NO_RESUMED.
9956 * remote-utils.c (prepare_resume_reply): Handle
9957 TARGET_WAITKIND_NO_RESUMED.
9958 * server.c (report_no_resumed): New global.
9959 (handle_query) <qSupported>: Handle "no-resumed+". Report
9960 "no-resumed+" support.
9961 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9962 return error if the client doesn't support no-resumed events.
9963 (push_stop_notification): New function.
9964 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9965 events if the client supports them.
9966
a681f9c9
PA
99672015-11-30 Pedro Alves <palves@redhat.com>
9968
9969 * linux-low.c (thread_still_has_status_pending_p): Don't check
9970 vCont;t here.
9971 (lwp_resumed): New function.
9972 (status_pending_p_callback): Return early if the LWP is not
9973 supposed to be resumed.
9974
65706a29
PA
99752015-11-30 Pedro Alves <palves@redhat.com>
9976
9977 * linux-low.c (handle_extended_wait): Assert that the LWP's
9978 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9979 thread create events, leave the new child's status pending.
9980 (linux_low_filter_event): If GDB wants to hear about thread exit
9981 events, leave the LWP marked dead and don't delete it.
9982 (linux_wait_for_event_filtered): Don't check for thread exit.
9983 (filter_exit_event): New function.
9984 (linux_wait_1): Use it, when returning an exit event.
9985 (linux_resume_one_lwp_throw): Assert that the LWP's
9986 waitstatus is TARGET_WAITKIND_IGNORE.
9987 * remote-utils.c (prepare_resume_reply): Handle
9988 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9989 * server.c (report_thread_events): New global.
9990 (handle_general_set): Handle QThreadEvents.
9991 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9992 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9993 TARGET_WAITKIND_THREAD_EXITED.
9994 * server.h (report_thread_events): Declare.
9995
56cf4bed
PA
99962015-11-30 Pedro Alves <palves@redhat.com>
9997
9998 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9999 the thread's last_resume_kind was resume_stop.
10000
500c1d85
PA
100012015-11-30 Pedro Alves <palves@redhat.com>
10002
10003 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10004 before returning.
10005
de979965
PA
100062015-11-30 Pedro Alves <palves@redhat.com>
10007
10008 * server.c (handle_v_requests): Handle vCtrlC.
10009
34c65914
PA
100102015-11-30 Pedro Alves <palves@redhat.com>
10011
10012 * gdbthread.h (find_any_thread_of_pid): Declare.
10013 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10014 functions.
10015 * server.c (handle_query): If current_thread is NULL, look for
10016 another thread of the selected process.
10017
79efa585 100182015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 10019 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
10020
10021 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10022 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10023 name in reply.
10024 * target.h (struct target_ops) <thread_name>: New field.
10025 (target_thread_name): New macro.
10026
80d82c19
JB
100272015-11-23 Joel Brobecker <brobecker@adacore.com>
10028
10029 * regcache.h (regcache_invalidate_pid): Add declaration.
10030 * regcache.c (regcache_invalidate_pid): New function, extracted
10031 from regcache_invalidate.
10032 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10033 Add trivial documentation comment.
10034 * lynx-low.c: Use regcache_invalidate_pid instead of
10035 regcache_invalidate.
10036
64da5dd5
JB
100372015-11-23 Joel Brobecker <brobecker@adacore.com>
10038
10039 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10040 and Elf64_auxv_t if the target is Android.
10041
37ce4055
DE
100422015-11-22 Doug Evans <xdje42@gmail.com>
10043
10044 * target.h: #include <sys/types.h>.
10045
06e03fff
PA
100462015-11-19 Pedro Alves <palves@redhat.com>
10047
10048 * linux-low.c (linux_process_qsupported): Change prototype.
10049 Adjust.
10050 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10051 Change prototype.
10052 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10053 and adjust to loop over all features.
10054 * server.c (handle_query) <qSupported>: Adjust to call
10055 target_process_qsupported once, passing it a vector of unprocessed
10056 features.
10057 * target.h (struct target_ops) <process_qsupported>: Change
10058 prototype.
10059 (target_process_qsupported): Adjust.
10060
9a084706
PA
100612015-11-19 Pedro Alves <palves@redhat.com>
10062
10063 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10064 mode.
10065 * configure: Regenerate.
10066
dad44a1f
PA
100672015-11-19 Pedro Alves <palves@redhat.com>
10068
10069 * configure: Regenerate.
10070
231c0592
YQ
100712015-11-19 Yao Qi <yao.qi@linaro.org>
10072
10073 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10074 type to uint32_t.
10075
6c1c9a8b
YQ
100762015-11-19 Yao Qi <yao.qi@linaro.org>
10077
10078 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10079 (struct aarch64_operand): Move enum out.
10080
9caa3311
YQ
100812015-11-19 Yao Qi <yao.qi@linaro.org>
10082
10083 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10084 struct user_fpsimd_state *.
10085 (aarch64_store_fpregset): Likewise.
10086
6a69a054
YQ
100872015-11-19 Yao Qi <yao.qi@linaro.org>
10088
10089 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10090 struct user_pt_regs *.
10091 (aarch64_store_gregset): Likewise.
10092
1798301e
PA
100932015-11-18 Pedro Alves <palves@redhat.com>
10094
10095 * Makefile.in (all_object_files): Add $IPA_OBJS.
10096
ce7715e2
PA
100972015-11-17 Pedro Alves <palves@redhat.com>
10098
10099 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10100 GDB_SIGNAL_0 and gdb_signal_to_string.
10101
c0879059
PA
101022015-11-17 Pedro Alves <palves@redhat.com>
10103
10104 * win32-low.c (handle_output_debug_string): Remove parameter.
10105 (win32_kill): Remove our_status local and adjust call to
10106 handle_output_debug_string.
10107 (get_child_debug_event): Adjust call to
10108 handle_output_debug_string.
10109
1996e237
SM
101102015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10111
10112 * linux-mips-low.c (mips_fill_gregset): Add cast.
10113 (mips_store_gregset): Likewise.
10114 (mips_fill_fpregset): Likewise.
10115 (mips_store_fpregset): Likewise.
10116
cbec665b
SM
101172015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10118
10119 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10120 priv.
10121
eb3e3c67
SM
101222015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10123
10124 * linux-mips-low.c (mips_linux_new_thread): Change type of
10125 watch_type to enum target_hw_bp_type.
10126
171de4b8
SM
101272015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10128
10129 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10130 Change return type to arm_hwbp_type.
10131
04248ead
SM
101322015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10133
10134 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10135 (arm_store_gregset): Likewise.
10136 * linux-arm-low.c (arm_get_hwcap): Likewise.
10137 (arm_read_description): Likewise.
10138
04b3479c
SM
101392015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10140
10141 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10142
2bc84e8a
SM
101432015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10144
10145 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10146 (ppc_fill_vsxregset): Likewise.
10147 (ppc_store_vsxregset): Likewise.
10148 (ppc_fill_vrregset): Likewise.
10149 (ppc_store_vrregset): Likewise.
10150 (ppc_fill_evrregset): Likewise.
10151 (ppc_store_evrregset): Likewise.
10152
e6c5bb05
SM
101532015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10154
10155 * linux-ppc-low.c (ppc_usrregs_info): Remove
10156 forward-declaration.
10157 (ppc_arch_setup): Move lower in file.
10158
7ea45d72
SM
101592015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10160
10161 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10162 (ps_pdwrite): Likewise.
10163
69291610
HW
101642015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10165
10166 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10167 to after assert checks.
10168
b42945fd
SM
101692015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10170
10171 * proc-service.c (ps_pdread): Add/adjust casts.
10172 (ps_pdwrite): Add/adjust casts.
10173
d6f85c84
SM
101742015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10175
10176 * server.c (handle_search_memory_1): Cast return value of
10177 memmem.
10178
f98cd059
SM
101792015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10180
10181 * server.c (write_qxfer_response): Change type of data to
10182 gdb_byte *.
10183
d2412fa5
PA
101842015-10-29 Pedro Alves <palves@redhat.com>
10185
10186 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10187
c17414a2
PA
101882015-10-29 Pedro Alves <palves@redhat.com>
10189
10190 * tracepoint.c (clear_installed_tracepoints): Add casts.
10191
e053fbc4
PA
101922015-10-29 Pedro Alves <palves@redhat.com>
10193
10194 * server.c (handle_v_cont, process_serial_event): Add enum
10195 gdb_signal casts to signal parsing code.
10196
add67df8
PA
101972015-10-29 Pedro Alves <palves@redhat.com>
10198
10199 * linux-low.h (NULL_REGSET): Define.
10200 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10201 * linux-arm-low.c (arm_regsets): Likewise.
10202 * linux-crisv32-low.c (cris_regsets): Likewise.
10203 * linux-m68k-low.c (m68k_regsets): Likewise.
10204 * linux-mips-low.c (mips_regsets): Likewise.
10205 * linux-nios2-low.c (nios2_regsets): Likewise.
10206 * linux-ppc-low.c (ppc_regsets): Likewise.
10207 * linux-s390-low.c (s390_regsets): Likewise.
10208 * linux-sh-low.c (sh_regsets): Likewise.
10209 * linux-sparc-low.c (sparc_regsets): Likewise.
10210 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10211 * linux-tile-low.c (tile_regsets): Likewise.
10212 * linux-x86-low.c (x86_regsets): Likewise.
10213 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10214
50bc912a
PA
102152015-10-29 Pedro Alves <palves@redhat.com>
10216
10217 * linux-low.h (NULL_REGSET): Define.
10218 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10219 * linux-arm-low.c (arm_regsets): Likewise.
10220 * linux-crisv32-low.c (cris_regsets): Likewise.
10221 * linux-m68k-low.c (m68k_regsets): Likewise.
10222 * linux-mips-low.c (mips_regsets): Likewise.
10223 * linux-nios2-low.c (nios2_regsets): Likewise.
10224 * linux-ppc-low.c (ppc_regsets): Likewise.
10225 * linux-s390-low.c (s390_regsets): Likewise.
10226 * linux-sh-low.c (sh_regsets): Likewise.
10227 * linux-sparc-low.c (sparc_regsets): Likewise.
10228 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10229 * linux-tile-low.c (tile_regsets): Likewise.
10230 * linux-x86-low.c (x86_regsets): Likewise.
10231 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10232
682b2546
DE
102332015-10-26 Doug Evans <dje@google.com>
10234
10235 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10236
963843d4
DE
102372015-10-26 Doug Evans <dje@google.com>
10238
10239 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10240
d41401ac
DE
102412015-10-26 Doug Evans <dje@google.com>
10242
10243 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10244 for debug_printf.
10245 (attach_thread, find_new_threads_callback): Ditto.
10246
3db28855
AT
102472015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10248
10249 * mem-break.h (set_breakpoint_data): Remove.
10250
fb78e89c
AT
102512015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10252
10253 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10254 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10255 (initialize_low): Remove set_breakpoint_data call.
10256 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10257 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10258 (initialize_low): Remove set_breakpoint_data call.
10259 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10260 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10261 (initialize_low): Remove set_breakpoint_data call.
10262
2e6ee069
AT
102632015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10264
10265 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10266 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10267 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10268 * target.h (target_breakpoint_kind_from_pc): New macro.
10269
1652a986
AT
102702015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10271
10272 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10273 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10274 the default breakpoint kind.
10275
abeead09
AT
102762015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10277
10278 * linux-arm-low.c (arm_supports_z_point_type): Add software
10279 breakpoint support.
10280
b0b4b501
AT
102812015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10282
10283 * linux-arm-low.c: Refactor breakpoint definitions.
10284 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10285 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10286
8689682c
AT
102872015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10288
10289 * Makefile.in: Add arm.c/o.
10290 * configure.srv: Likewise.
10291 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10292 (arm_breakpoint_kind_from_pc): New function.
10293 (arm_sw_breakpoint_from_kind): Return proper kind.
10294 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10295
27165294
AT
102962015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10297
10298 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10299 removal.
10300 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10301 (struct raw_breakpoint) <size>: Remove.
10302 (struct raw_breakpoint) <kind>: Add.
10303 (bp_size): New function.
10304 (bp_opcode): Likewise.
10305 (find_raw_breakpoint_at): Adjust for kind.
10306 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10307 (remove_memory_breakpoint): Adjust for kind call bp_size.
10308 (set_raw_breakpoint_at): Adjust for kind.
10309 (set_breakpoint): Likewise.
10310 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10311 (delete_raw_breakpoint): Adjust for kind.
10312 (delete_breakpoint): Likewise.
10313 (find_gdb_breakpoint): Likewise.
10314 (set_gdb_breakpoint_1): Likewise.
10315 (set_gdb_breakpoint): Likewise.
10316 (delete_gdb_breakpoint_1): Likewise.
10317 (delete_gdb_breakpoint): Likewise.
10318 (uninsert_raw_breakpoint): Likewise.
10319 (reinsert_raw_breakpoint): Likewise.
10320 (set_breakpoint_data): Remove.
10321 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10322 (check_mem_read): Adjust for kind call bp_size.
10323 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10324 (clone_one_breakpoint): Adjust for kind.
10325 * mem-break.h (set_gdb_breakpoint): Likewise.
10326 (delete_gdb_breakpoint): Likewise.
10327 * server.c (process_serial_event): Likewise.
10328
dd373349
AT
103292015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10330
10331 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10332 (struct linux_target_ops) <breakpoint>: Remove.
10333 (struct linux_target_ops) <breakpoint_len>: Remove.
10334 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10335 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10336 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10337 (arm_sw_breakpoint_from_kind): New function.
10338 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10339 (struct linux_target_ops) <breakpoint>: Remove.
10340 (struct linux_target_ops) <breakpoint_len>: Remove.
10341 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10342 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10343 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10344 (struct linux_target_ops) <breakpoint>: Remove.
10345 (struct linux_target_ops) <breakpoint_len>: Remove.
10346 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10347 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10348 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10349 (struct linux_target_ops) <breakpoint>: Remove.
10350 (struct linux_target_ops) <breakpoint_len>: Remove.
10351 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10352 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10353 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10354 and sw_breakpoint_from_kind to increment the pc.
10355 (linux_breakpoint_kind_from_pc): New function.
10356 (linux_sw_breakpoint_from_kind): New function.
10357 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10358 (initialize_low): Call breakpoint_kind_from_pc and
10359 sw_breakpoint_from_kind to replace breakpoint_data/len.
10360 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10361 New field.
10362 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10363 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10364 (struct linux_target_ops) <breakpoint>: Remove.
10365 (struct linux_target_ops) <breakpoint_len>: Remove.
10366 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10367 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10368 * linux-m68k-low.c (m68k_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-mips-low.c (mips_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-nios2-low.c (nios2_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-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10384 (struct linux_target_ops) <breakpoint>: Remove.
10385 (struct linux_target_ops) <breakpoint_len>: Remove.
10386 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10387 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10388 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10389 (struct linux_target_ops) <breakpoint>: Remove.
10390 (struct linux_target_ops) <breakpoint_len>: Remove.
10391 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10392 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10393 * linux-sh-low.c (sh_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-sparc-low.c (sparc_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-tic6x-low.c (tic6x_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-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10409 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10410 (struct linux_target_ops) <breakpoint>: Remove.
10411 (struct linux_target_ops) <breakpoint_len>: Remove.
10412 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10413 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10414 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10415 (struct linux_target_ops) <breakpoint>: Remove.
10416 (struct linux_target_ops) <breakpoint_len>: Remove.
10417 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10418 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10419
4cd98a19
AT
104202015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10421
10422 * linux-cris-low.c (cris_get_pc): Remove void arg.
10423
774ee6d2
AR
104242015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10425
10426 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10427 variable name.
10428
833dcd29
AR
104292015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10430
10431 * inferiors.c (thread_pid_matches_callback): New function.
10432 (find_thread_process): New function.
10433 (remove_thread): Reset current_thread.
10434 (remove_process): Assert threads have been removed first.
10435
8d689ee5
YQ
104362015-10-15 Yao Qi <yao.qi@linaro.org>
10437
10438 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10439 if it is 3.
10440 (aarch64_remove_point): Likewise.
10441 * regcache.c (regcache_register_size): New function.
10442
1c2e1515
YQ
104432015-10-12 Yao Qi <yao.qi@linaro.org>
10444
10445 * linux-aarch64-low.c: Update all callers as emit_load_store
10446 is renamed to aarch64_emit_load_store.
10447
e1c587c3
YQ
104482015-10-12 Yao Qi <yao.qi@linaro.org>
10449
10450 * linux-aarch64-low.c: Update all callers of function renaming
10451 from emit_insn to aarch64_emit_insn.
10452
b6542f81
YQ
104532015-10-12 Yao Qi <yao.qi@linaro.org>
10454
10455 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10456 arch/aarch64-insn.h.
10457 (struct aarch64_memory_operand): Likewise.
10458 (ENCODE): Likewise.
10459 (emit_insn): Move to arch/aarch64-insn.c.
10460 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10461 (emit_load_store): Move to arch/aarch64-insn.c.
10462 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10463 (can_encode_int32): Remove.
10464
246994ce
YQ
104652015-10-12 Yao Qi <yao.qi@linaro.org>
10466
10467 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10468 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10469 (aarch64_relocate_instruction): Likewise.
10470 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10471 (struct aarch64_insn_visitor): Likewise.
10472
0badd99f
YQ
104732015-10-12 Yao Qi <yao.qi@linaro.org>
10474
10475 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10476 (struct aarch64_insn_visitor): New.
10477 (struct aarch64_insn_relocation_data): New.
10478 (aarch64_ftrace_insn_reloc_b): New function.
10479 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10480 (aarch64_ftrace_insn_reloc_cb): Likewise.
10481 (aarch64_ftrace_insn_reloc_tb): Likewise.
10482 (aarch64_ftrace_insn_reloc_adr): Likewise.
10483 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10484 (aarch64_ftrace_insn_reloc_others): Likewise.
10485 (visitor): New.
10486 (aarch64_relocate_instruction): Use visitor.
10487
dfaffe9d
YQ
104882015-10-12 Yao Qi <yao.qi@linaro.org>
10489
10490 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10491 int. Add argument buf.
10492 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10493 aarch64_relocate_instruction.
10494
70b439f0
YQ
104952015-10-12 Yao Qi <yao.qi@linaro.org>
10496
10497 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10498 argument insn. Remove local variable insn. Don't call
10499 target_read_uint32.
10500 (aarch64_install_fast_tracepoint_jump_pad): Call
10501 target_read_uint32.
10502
7781c06f
YQ
105032015-09-30 Yao Qi <yao.qi@linaro.org>
10504
10505 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10506 (emit_load_store_pair): Likewise.
10507
9a3c8263
SM
105082015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10509
10510 * dll.c (match_dll): Add cast(s).
10511 (unloaded_dll): Likewise.
10512 * linux-low.c (second_thread_of_pid_p): Likewise.
10513 (delete_lwp_callback): Likewise.
10514 (count_events_callback): Likewise.
10515 (select_event_lwp_callback): Likewise.
10516 (linux_set_resume_request): Likewise.
10517 * server.c (accumulate_file_name_length): Likewise.
10518 (emit_dll_description): Likewise.
10519 (handle_qxfer_threads_worker): Likewise.
10520 (visit_actioned_threads): Likewise.
10521 * thread-db.c (any_thread_of): Likewise.
10522 * tracepoint.c (same_process_p): Likewise.
10523 (match_blocktype): Likewise.
10524 (build_traceframe_info_xml): Likewise.
10525
224c3ddb
SM
105262015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10527
10528 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10529 assignment.
10530 (gdb_unparse_agent_expr): Likewise.
10531 * hostio.c (require_data): Likewise.
10532 (handle_pread): Likewise.
10533 * linux-low.c (disable_regset): Likewise.
10534 (fetch_register): Likewise.
10535 (store_register): Likewise.
10536 (get_dynamic): Likewise.
10537 (linux_qxfer_libraries_svr4): Likewise.
10538 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10539 (set_fast_tracepoint_jump): Likewise.
10540 (uninsert_fast_tracepoint_jumps_at): Likewise.
10541 (reinsert_fast_tracepoint_jumps_at): Likewise.
10542 (validate_inserted_breakpoint): Likewise.
10543 (clone_agent_expr): Likewise.
10544 * regcache.c (init_register_cache): Likewise.
10545 * remote-utils.c (putpkt_binary_1): Likewise.
10546 (decode_M_packet): Likewise.
10547 (decode_X_packet): Likewise.
10548 (look_up_one_symbol): Likewise.
10549 (relocate_instruction): Likewise.
10550 (monitor_output): Likewise.
10551 * server.c (handle_search_memory): Likewise.
10552 (handle_qxfer_exec_file): Likewise.
10553 (handle_qxfer_libraries): Likewise.
10554 (handle_qxfer): Likewise.
10555 (handle_query): Likewise.
10556 (handle_v_cont): Likewise.
10557 (handle_v_run): Likewise.
10558 (captured_main): Likewise.
10559 * target.c (write_inferior_memory): Likewise.
10560 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10561 * tracepoint.c (init_trace_buffer): Likewise.
10562 (add_tracepoint_action): Likewise.
10563 (add_traceframe): Likewise.
10564 (add_traceframe_block): Likewise.
10565 (cmd_qtdpsrc): Likewise.
10566 (cmd_qtdv): Likewise.
10567 (cmd_qtstatus): Likewise.
10568 (response_source): Likewise.
10569 (response_tsv): Likewise.
10570 (cmd_qtnotes): Likewise.
10571 (gdb_collect): Likewise.
10572 (initialize_tracepoint): Likewise.
10573
afbe19f8
PL
105742015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10575
10576 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10577 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10578 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10579 <NOP>: New.
10580 (enum aarch64_condition_codes): New enum.
10581 (w0): New static global.
10582 (fp): Likewise.
10583 (lr): Likewise.
10584 (struct aarch64_memory_operand) <type>: New
10585 MEMORY_OPERAND_POSTINDEX type.
10586 (postindex_memory_operand): New helper function.
10587 (emit_ret): New function.
10588 (emit_load_store_pair): New function, factored out of emit_stp
10589 with support for MEMORY_OPERAND_POSTINDEX.
10590 (emit_stp): Rewrite using emit_load_store_pair.
10591 (emit_ldp): New function.
10592 (emit_load_store): Likewise.
10593 (emit_ldr): Mention post-index instruction in comment.
10594 (emit_ldrh): New function.
10595 (emit_ldrb): New function.
10596 (emit_ldrsw): Mention post-index instruction in comment.
10597 (emit_str): Likewise.
10598 (emit_subs): New function.
10599 (emit_cmp): Likewise.
10600 (emit_and): Likewise.
10601 (emit_orr): Likewise.
10602 (emit_orn): Likewise.
10603 (emit_eor): Likewise.
10604 (emit_mvn): Likewise.
10605 (emit_lslv): Likewise.
10606 (emit_lsrv): Likewise.
10607 (emit_asrv): Likewise.
10608 (emit_mul): Likewise.
10609 (emit_sbfm): Likewise.
10610 (emit_sbfx): Likewise.
10611 (emit_ubfm): Likewise.
10612 (emit_ubfx): Likewise.
10613 (emit_csinc): Likewise.
10614 (emit_cset): Likewise.
10615 (emit_nop): Likewise.
10616 (emit_ops_insns): New helper function.
10617 (emit_pop): Likewise.
10618 (emit_push): Likewise.
10619 (aarch64_emit_prologue): New function.
10620 (aarch64_emit_epilogue): Likewise.
10621 (aarch64_emit_add): Likewise.
10622 (aarch64_emit_sub): Likewise.
10623 (aarch64_emit_mul): Likewise.
10624 (aarch64_emit_lsh): Likewise.
10625 (aarch64_emit_rsh_signed): Likewise.
10626 (aarch64_emit_rsh_unsigned): Likewise.
10627 (aarch64_emit_ext): Likewise.
10628 (aarch64_emit_log_not): Likewise.
10629 (aarch64_emit_bit_and): Likewise.
10630 (aarch64_emit_bit_or): Likewise.
10631 (aarch64_emit_bit_xor): Likewise.
10632 (aarch64_emit_bit_not): Likewise.
10633 (aarch64_emit_equal): Likewise.
10634 (aarch64_emit_less_signed): Likewise.
10635 (aarch64_emit_less_unsigned): Likewise.
10636 (aarch64_emit_ref): Likewise.
10637 (aarch64_emit_if_goto): Likewise.
10638 (aarch64_emit_goto): Likewise.
10639 (aarch64_write_goto_address): Likewise.
10640 (aarch64_emit_const): Likewise.
10641 (aarch64_emit_call): Likewise.
10642 (aarch64_emit_reg): Likewise.
10643 (aarch64_emit_pop): Likewise.
10644 (aarch64_emit_stack_flush): Likewise.
10645 (aarch64_emit_zero_ext): Likewise.
10646 (aarch64_emit_swap): Likewise.
10647 (aarch64_emit_stack_adjust): Likewise.
10648 (aarch64_emit_int_call_1): Likewise.
10649 (aarch64_emit_void_call_2): Likewise.
10650 (aarch64_emit_eq_goto): Likewise.
10651 (aarch64_emit_ne_goto): Likewise.
10652 (aarch64_emit_lt_goto): Likewise.
10653 (aarch64_emit_le_goto): Likewise.
10654 (aarch64_emit_gt_goto): Likewise.
10655 (aarch64_emit_ge_got): Likewise.
10656 (aarch64_emit_ops_impl): New static global variable.
10657 (aarch64_emit_ops): New target function, return
10658 &aarch64_emit_ops_impl.
10659 (struct linux_target_ops): Install it.
10660
bb903df0
PL
106612015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10662
10663 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10664 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10665 aarch64-ipa.o.
10666 * linux-aarch64-ipa.c: New file.
10667 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10668 and endian.h.
10669 (aarch64_get_thread_area): New target method.
10670 (extract_signed_bitfield): New helper function.
10671 (aarch64_decode_ldr_literal): New function.
10672 (enum aarch64_opcodes): New enum.
10673 (struct aarch64_register): New struct.
10674 (struct aarch64_operand): New struct.
10675 (x0): New static global.
10676 (x1): Likewise.
10677 (x2): Likewise.
10678 (x3): Likewise.
10679 (x4): Likewise.
10680 (w2): Likewise.
10681 (ip0): Likewise.
10682 (sp): Likewise.
10683 (xzr): Likewise.
10684 (aarch64_register): New helper function.
10685 (register_operand): Likewise.
10686 (immediate_operand): Likewise.
10687 (struct aarch64_memory_operand): New struct.
10688 (offset_memory_operand): New helper function.
10689 (preindex_memory_operand): Likewise.
10690 (enum aarch64_system_control_registers): New enum.
10691 (ENCODE): New macro.
10692 (emit_insn): New helper function.
10693 (emit_b): New function.
10694 (emit_bcond): Likewise.
10695 (emit_cb): Likewise.
10696 (emit_tb): Likewise.
10697 (emit_blr): Likewise.
10698 (emit_stp): Likewise.
10699 (emit_ldp_q_offset): Likewise.
10700 (emit_stp_q_offset): Likewise.
10701 (emit_load_store): Likewise.
10702 (emit_ldr): Likewise.
10703 (emit_ldrsw): Likewise.
10704 (emit_str): Likewise.
10705 (emit_ldaxr): Likewise.
10706 (emit_stxr): Likewise.
10707 (emit_stlr): Likewise.
10708 (emit_data_processing_reg): Likewise.
10709 (emit_data_processing): Likewise.
10710 (emit_add): Likewise.
10711 (emit_sub): Likewise.
10712 (emit_mov): Likewise.
10713 (emit_movk): Likewise.
10714 (emit_mov_addr): Likewise.
10715 (emit_mrs): Likewise.
10716 (emit_msr): Likewise.
10717 (emit_sevl): Likewise.
10718 (emit_wfe): Likewise.
10719 (append_insns): Likewise.
10720 (can_encode_int32_in): New helper function.
10721 (aarch64_relocate_instruction): New function.
10722 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10723 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10724 (struct linux_target_ops): Install aarch64_get_thread_area,
10725 aarch64_install_fast_tracepoint_jump_pad and
10726 aarch64_get_min_fast_tracepoint_insn_len.
10727
787749ea
PL
107282015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10729
10730 * Makefile.in (aarch64-insn.o): New rule.
10731 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10732
9812b2e6
YQ
107332015-09-21 Yao Qi <yao.qi@linaro.org>
10734
10735 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10736
18fe412b
YQ
107372015-09-21 Yao Qi <yao.qi@linaro.org>
10738
10739 * tracepoint.c (max_jump_pad_size): Remove.
10740
a0cc84cd
YQ
107412015-09-18 Yao Qi <yao.qi@linaro.org>
10742
10743 * linux-aarch64-low.c: Don't include sys/uio.h.
10744 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10745
d78908cf
WW
107462015-09-16 Wei-cheng Wang <cole945@gmail.com>
10747
10748 * tracepoint.c (eval_result_type): Change prototype.
10749 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10750
d57e0d50
PA
107512015-09-15 Pedro Alves <palves@redhat.com>
10752
10753 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10754 Check whether to report exec events instead of checking whether
10755 multiprocess is enabled.
10756
5a676acc
PA
107572015-09-15 Pedro Alves <palves@redhat.com>
10758
10759 PR remote/18965
10760 * remote-utils.c (prepare_resume_reply): Merge
10761 TARGET_WAITKIND_VFORK_DONE switch case with the
10762 TARGET_WAITKIND_FORKED case.
10763
7c5d0fad
YQ
107642015-09-15 Yao Qi <yao.qi@linaro.org>
10765
10766 * server.c (handle_query): Check string comparison using
10767 "else if" instead of "if".
10768
750ce8d1
YQ
107692015-09-15 Yao Qi <yao.qi@linaro.org>
10770
10771 * server.c (vCont_supported): New global variable.
10772 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10773 matches. Append ";vContSupported+" to own_buf.
10774 (handle_v_requests): Append ";s;S" to own_buf if target supports
10775 hardware single step or vCont_supported is false.
10776 (capture_main): Set vCont_supported to zero.
10777
70b90b91
YQ
107782015-09-15 Yao Qi <yao.qi@linaro.org>
10779
10780 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10781 it to ...
10782 (linux_supports_hardware_single_step): ... New function.
10783 (linux_target_ops): Update.
10784 * lynx-low.c (lynx_target_ops): Set field
10785 supports_hardware_single_step to target_can_do_hardware_single_step.
10786 * nto-low.c (nto_target_ops): Likewise.
10787 * spu-low.c (spu_target_ops): Likewise.
10788 * win32-low.c (win32_target_ops): Likewise.
10789 * target.c (target_can_do_hardware_single_step): New function.
10790 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10791 Remove. <supports_hardware_single_step>: New field.
10792 (target_supports_conditional_breakpoints): Remove.
10793 (target_supports_hardware_single_step): New macro.
10794 (target_can_do_hardware_single_step): Declare.
10795 * server.c (handle_query): Use target_supports_hardware_single_step
10796 instead of target_supports_conditional_breakpoints.
10797
ade90bde
YQ
107982015-09-15 Yao Qi <yao.qi@linaro.org>
10799
10800 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10801 function.
10802 (struct linux_target_ops the_low_target): Install
10803 aarch64_linux_siginfo_fixup.
10804
94585166
DB
108052015-09-11 Don Breazeal <donb@codesourcery.com>
10806 Luis Machado <lgustavo@codesourcery.com>
10807
10808 * linux-low.c (linux_mourn): Static declaration.
10809 (linux_arch_setup): Move in front of
10810 handle_extended_wait.
10811 (linux_arch_setup_thread): New function.
10812 (handle_extended_wait): Handle exec events. Call
10813 linux_arch_setup_thread. Make event_lwp argument a
10814 pointer-to-a-pointer.
10815 (check_zombie_leaders): Do not check stopped threads.
10816 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10817 (linux_low_filter_event): Add lwp and thread for exec'ing
10818 non-leader thread if leader thread has been deleted.
10819 Refactor code into linux_arch_setup_thread and call it.
10820 Pass child lwp pointer by reference to handle_extended_wait.
10821 (linux_wait_for_event_filtered): Update comment.
10822 (linux_wait_1): Prevent clobbering exec event status.
10823 (linux_supports_exec_events): New function.
10824 (linux_target_ops) <supports_exec_events>: Initialize new member.
10825 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10826 new member.
10827 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10828 * server.c (report_exec_events): New global variable.
10829 (handle_query): Handle qSupported query for exec-events feature.
10830 (captured_main): Initialize report_exec_events.
10831 * server.h (report_exec_events): Declare new global variable.
10832 * target.h (struct target_ops) <supports_exec_events>: New
10833 member.
10834 (target_supports_exec_events): New macro.
10835 * win32-low.c (win32_target_ops) <supports_exec_events>:
10836 Initialize new member.
10837
0568462b
MM
108382015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10839
10840 * linux-low.c (linux_low_enable_btrace): Remove.
10841 (linux_target_ops): Replace linux_low_enable_btrace with
10842 linux_enable_btrace.
10843
39edd165
YQ
108442015-09-03 Yao Qi <yao.qi@linaro.org>
10845
10846 * linux-aarch64-low.c (aarch64_insert_point): Call
10847 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10848 returns true.
10849
1db33b5a
UW
108502015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10851
10852 * linux-low.c (check_stopped_by_breakpoint): Use
10853 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10854
ab290430
PA
108552015-08-27 Pedro Alves <palves@redhat.com>
10856
10857 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10858
8d749320
SM
108592015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10860
6711b7f8
SM
10861 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10862 the XNEW-family equivalent.
8d749320
SM
10863 (compile_bytecodes): Likewise.
10864 * dll.c (loaded_dll): Likewise.
10865 * event-loop.c (append_callback_event): Likewise.
10866 (create_file_handler): Likewise.
10867 (create_file_event): Likewise.
10868 * hostio.c (handle_open): Likewise.
10869 * inferiors.c (add_thread): Likewise.
10870 (add_process): Likewise.
10871 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10872 * linux-arm-low.c (arm_new_process): Likewise.
10873 (arm_new_thread): Likewise.
10874 * linux-low.c (add_to_pid_list): Likewise.
10875 (linux_add_process): Likewise.
10876 (handle_extended_wait): Likewise.
10877 (add_lwp): Likewise.
10878 (enqueue_one_deferred_signal): Likewise.
10879 (enqueue_pending_signal): Likewise.
10880 (linux_resume_one_lwp_throw): Likewise.
10881 (linux_resume_one_thread): Likewise.
10882 (linux_read_memory): Likewise.
10883 (linux_write_memory): Likewise.
10884 * linux-mips-low.c (mips_linux_new_process): Likewise.
10885 (mips_linux_new_thread): Likewise.
10886 (mips_add_watchpoint): Likewise.
10887 * linux-x86-low.c (initialize_low_arch): Likewise.
10888 * lynx-low.c (lynx_add_process): Likewise.
10889 * mem-break.c (set_raw_breakpoint_at): Likewise.
10890 (set_breakpoint): Likewise.
10891 (add_condition_to_breakpoint): Likewise.
10892 (add_commands_to_breakpoint): Likewise.
10893 (clone_agent_expr): Likewise.
10894 (clone_one_breakpoint): Likewise.
10895 * regcache.c (new_register_cache): Likewise.
10896 * remote-utils.c (look_up_one_symbol): Likewise.
10897 * server.c (queue_stop_reply): Likewise.
10898 (start_inferior): Likewise.
10899 (queue_stop_reply_callback): Likewise.
10900 (handle_target_event): Likewise.
10901 * spu-low.c (fetch_ppc_memory): Likewise.
10902 (store_ppc_memory): Likewise.
10903 * target.c (set_target_ops): Likewise.
10904 * thread-db.c (thread_db_load_search): Likewise.
10905 (try_thread_db_load_1): Likewise.
10906 * tracepoint.c (add_tracepoint): Likewise.
10907 (add_tracepoint_action): Likewise.
10908 (create_trace_state_variable): Likewise.
10909 (cmd_qtdpsrc): Likewise.
10910 (cmd_qtro): Likewise.
10911 (add_while_stepping_state): Likewise.
10912 * win32-low.c (child_add_thread): Likewise.
10913 (get_image_name): Likewise.
10914
ed8b7b42
YQ
109152015-08-25 Yao Qi <yao.qi@linaro.org>
10916
10917 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10918
db3cb7cb
YQ
109192015-08-25 Yao Qi <yao.qi@linaro.org>
10920
10921 * Makefile.in (aarch64-linux.o): New rule.
10922 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10923 srv_tgtobj.
10924 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10925 (aarch64_init_debug_reg_state): Make it extern.
10926 (aarch64_linux_prepare_to_resume): Remove.
10927
f6011a1c
YQ
109282015-08-25 Yao Qi <yao.qi@linaro.org>
10929
10930 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10931 lwp_arch_private_info and ptid_of_lwp.
10932
88e2cf7e
YQ
109332015-08-25 Yao Qi <yao.qi@linaro.org>
10934
10935 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10936 Find proc_info by find_process_pid. All callers updated.
10937
5e35436e
YQ
109382015-08-25 Yao Qi <yao.qi@linaro.org>
10939
10940 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10941 Remove.
10942 (debug_reg_change_callback): Remove.
10943 (aarch64_notify_debug_reg_change): Remove.
10944
4a8a7965
YQ
109452015-08-25 Yao Qi <yao.qi@linaro.org>
10946
10947 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10948 Call current_lwp_ptid.
10949
32a271ee
YQ
109502015-08-25 Yao Qi <yao.qi@linaro.org>
10951
10952 * linux-aarch64-low.c (debug_reg_change_callback): Use
10953 debug_printf.
10954
0d51c8d7
YQ
109552015-08-25 Yao Qi <yao.qi@linaro.org>
10956
10957 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10958
31a43dd5
YQ
109592015-08-25 Yao Qi <yao.qi@linaro.org>
10960
10961 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10962
8ee52567
YQ
109632015-08-25 Yao Qi <yao.qi@linaro.org>
10964
10965 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10966 the code.
10967
ff3f0f45
YQ
109682015-08-25 Yao Qi <yao.qi@linaro.org>
10969
10970 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10971 Remove.
10972 (debug_reg_change_callback): Remove argument entry and add argument
10973 lwp. Remove local variable thread. Don't print thread id in the
10974 debugging output. Don't check whether pid of thread equals to pid.
10975 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10976 iterate_over_lwps instead find_inferior.
10977
3d40fbb5
PA
109782015-08-24 Pedro Alves <palves@redhat.com>
10979
10980 * inferiors.c (get_first_process): New function.
10981 * inferiors.h (get_first_process): New declaration.
10982 * remote-utils.c (read_ptid): Default to the first process in the
10983 list, instead of to the current thread's process.
10984
438e1e42
PA
109852015-08-24 Pedro Alves <palves@redhat.com>
10986
10987 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10988 * event-loop.c: Likewise.
10989 * remote-utils.c: Likewise.
10990 * tracepoint.c: Likewise.
10991
a8c6d4fc
PA
109922015-08-24 Pedro Alves <palves@redhat.com>
10993
10994 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10995 ptid_get_lwp.
10996
99b0bb12
PA
109972015-08-21 Pedro Alves <palves@redhat.com>
10998
10999 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11000 instead of literal 1.
11001
f8904751
PA
110022015-08-21 Pedro Alves <palves@redhat.com>
11003
11004 * tdesc.c (default_description): Explicitly zero-initialize.
11005
465a859e
PA
110062015-08-21 Pedro Alves <palves@redhat.com>
11007
11008 PR gdb/18749
11009 * inferiors.c (remove_thread): Discard any pending stop reply for
11010 this thread.
11011 * server.c (remove_all_on_match_pid): Rename to ...
11012 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11013 instead of a pid.
11014 (discard_queued_stop_replies): Change parameter to a ptid. Now
11015 extern.
11016 (handle_v_kill, kill_inferior_callback, captured_main)
11017 (process_serial_event): Adjust.
11018 * server.h (discard_queued_stop_replies): Declare.
11019
f0db101d
PA
110202015-08-21 Pedro Alves <palves@redhat.com>
11021
11022 * linux-low.c (wait_for_sigstop): Always switch to no thread
11023 selected if the previously current thread dies.
11024 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11025 process instead of the current thread's.
11026 * remote-utils.c (input_interrupt): Don't check if there's no
11027 current thread.
11028 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11029 current thread to the general thread fails, error out.
11030 (handle_qxfer_auxv, handle_qxfer_libraries)
11031 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11032 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11033 (handle_query): Check if there's a thread selected instead of
11034 checking whether there's any thread in the thread list.
11035 (handle_qxfer_threads, handle_qxfer_btrace)
11036 (handle_qxfer_btrace_conf): Don't error out early if there's no
11037 thread in the thread list.
11038 (handle_v_cont, myresume): Don't set the current thread to the
11039 continue thread.
11040 (process_serial_event) <Hg handling>: Also set thread_id if the
11041 previous general thread is still alive.
11042 (process_serial_event) <g/G handling>: If setting the current
11043 thread to the general thread fails, error out.
11044 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11045 thread's lwp instead of the current thread's.
11046 * target.c (set_desired_thread): If the desired thread was not
11047 found, leave the current thread pointing to NULL. Return an int
11048 (boolean) indicating success.
11049 * target.h (set_desired_thread): Change return type to int.
11050
40045d91
MF
110512015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11052
11053 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11054 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11055 #includes.
11056 (ps_get_thread_area): New function.
11057
45face3b
GB
110582015-08-19 Gary Benson <gbenson@redhat.com>
11059
11060 * hostio.c (handle_pread): Do not attempt to read more data
11061 than hostio_reply_with_data can fit in a packet.
11062
16d5f642
JB
110632015-08-18 Joel Brobecker <brobecker@adacore.com>
11064
11065 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11066
a738da3a
MF
110672015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11068
11069 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11070
33ebda9d
PA
110712015-08-06 Pedro Alves <palves@redhat.com>
11072
11073 * tracepoint.c (expr_eval_result): Now an int.
11074
a44892be
PA
110752015-08-06 Pedro Alves <palves@redhat.com>
11076
11077 * gdbthread.h (struct regcache): Forward declare.
11078 (struct thread_info) <regcache_data>: Now a struct regcache
11079 pointer.
11080 * inferiors.c (inferior_regcache_data)
11081 (set_inferior_regcache_data): Now work with struct regcache
11082 pointers.
11083 * inferiors.h (struct regcache): Forward declare.
11084 (inferior_regcache_data, set_inferior_regcache_data): Now work
11085 with struct regcache pointers.
11086 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11087 (free_register_cache_thread): Remove struct regcache pointer
11088 casts.
11089
608a1e46
PA
110902015-08-06 Pedro Alves <palves@redhat.com>
11091
11092 * server.c (captured_main): On error, print the exception message
11093 to stderr, and if run_once is set, throw a quit.
11094
f0ce0d3a
PA
110952015-08-06 Pedro Alves <palves@redhat.com>
11096
11097 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11098 the current thread.
11099
bf47e248
PA
111002015-08-06 Pedro Alves <palves@redhat.com>
11101
11102 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11103 reading beyond the passed in buffer length.
11104
b6b9ffcc
PL
111052015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11106
11107 * tracepoint.c (symbol_list) <required>: Remove.
11108
863d01bd
PA
111092015-08-06 Pedro Alves <palves@redhat.com>
11110
11111 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11112 count if stopping and suspending threads.
11113 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11114 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11115 (linux_detach): Complete an ongoing step-over.
11116 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11117 throughout.
11118 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11119 (linux_wait_1): If passing a signal to the inferior after
11120 finishing a step-over, unsuspend and re-resume all lwps. If we
11121 see a single-step event but the thread should be continuing, don't
11122 pass the trap to gdb.
11123 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11124 internal_error instead of gdb_assert.
11125 (enqueue_pending_signal): New function.
11126 (check_ptrace_stopped_lwp_gone): Add debug output.
11127 (start_step_over): Use internal_error instead of gdb_assert.
11128 (complete_ongoing_step_over): New function.
11129 (linux_resume_one_thread): Don't resume a suspended thread.
11130 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11131 it stepping.
11132
00db26fa
PA
111332015-08-06 Pedro Alves <palves@redhat.com>
11134
11135 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11136 (linux_thread_alive): Use lwp_is_marked_dead.
11137 (extended_event_reported): Delete.
11138 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11139 instead of extended_event_reported.
11140 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11141 as well.
11142 (lwp_is_marked_dead): New function.
11143 (lwp_running): Use lwp_is_marked_dead.
11144 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11145 comment.
11146
ad071a30
PA
111472015-08-06 Pedro Alves <palves@redhat.com>
11148
11149 * linux-low.c (linux_wait_1): Move fork event output out of the
11150 !report_to_gdb check. Pass event_child->waitstatus to
11151 target_waitstatus_to_string instead of ourstatus.
11152
524b57e6
YQ
111532015-08-04 Yao Qi <yao.qi@linaro.org>
11154
11155 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11156 if current_thread is 32 bit.
11157
6085d6f6
YQ
111582015-08-04 Yao Qi <yao.qi@linaro.org>
11159
11160 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11161 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11162 * server.c (extended_protocol): Remove "static".
11163 * server.h (extended_protocol): Declare it.
11164
8a7e4587
YQ
111652015-08-04 Yao Qi <yao.qi@linaro.org>
11166
11167 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11168 both aarch64 and aarch32.
11169 (aarch64_set_pc): Likewise.
11170
3b53ae99
YQ
111712015-08-04 Yao Qi <yao.qi@linaro.org>
11172
11173 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11174 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11175 arm-with-neon.xml to srv_xmlfiles.
11176 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11177 (is_64bit_tdesc): New function.
11178 (aarch64_linux_read_description): New function.
11179 (aarch64_arch_setup): Call aarch64_linux_read_description.
11180 (regs_info): Rename to regs_info_aarch64.
11181 (aarch64_regs_info): Return right regs_info.
11182 (initialize_low_arch): Call initialize_low_arch_aarch32.
11183
bd9e6534
YQ
111842015-08-04 Yao Qi <yao.qi@linaro.org>
11185
11186 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11187 * linux-aarch32-low.c: New file.
11188 * linux-aarch32-low.h: New file.
11189 * linux-arm-low.c (arm_fill_gregset): Move it to
11190 linux-aarch32-low.c.
11191 (arm_store_gregset): Likewise.
11192 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11193 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11194 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11195 (regs_info): Rename to regs_info_arm.
11196 (arm_regs_info): Return regs_info_aarch32 if
11197 have_ptrace_getregset is 1 and target description is
11198 arm_with_neon or arm_with_vfpv3.
11199 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11200 Call initialize_low_arch_aarch32 instead.
11201
ded48a5e
YQ
112022015-08-04 Yao Qi <yao.qi@linaro.org>
11203
11204 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11205 * linux-low.c: ... here.
11206 * linux-low.h (have_ptrace_getregset): Declare it.
11207
96e9210f
PA
112082015-08-04 Pedro Alves <palves@redhat.com>
11209
11210 * thread-db.c (struct thread_db): Use new typedefs.
11211 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11212 CHK calls.
11213 (disable_thread_event_reporting): Cast result of dlsym to
11214 destination function pointer type.
11215 (thread_db_mourn): Use td_ta_delete_ftype.
11216
af60a1ef
SL
112172015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11218
11219 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11220 arch variant.
11221 (CDX_BREAKPOINT): Define for R2.
11222 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11223 (the_low_target): Add comments.
11224
e8b41681
YQ
112252015-07-30 Yao Qi <yao.qi@linaro.org>
11226
11227 * linux-arm-low.c (arm_hwcap): Remove it.
11228 (arm_read_description): New local variable arm_hwcap. Don't
11229 set arm_hwcap to zero.
11230
89abb039
YQ
112312015-07-30 Yao Qi <yao.qi@linaro.org>
11232
11233 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11234 Use regcache->tdesc instead.
11235 (arm_store_wmmxregset): Likewise.
11236 (arm_fill_vfpregset): Likewise.
11237 (arm_store_vfpregset): Likewise.
11238
deca266c
YQ
112392015-07-30 Yao Qi <yao.qi@linaro.org>
11240
11241 * linux-arm-low.c: Include arch/arm.h.
11242 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11243 (arm_store_gregset): Likewise.
11244
aa58a496
SM
112452015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11246
11247 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11248 ptrace's 4th parameter.
11249
50904b25
YQ
112502015-07-27 Yao Qi <yao.qi@linaro.org>
11251
11252 * configure.srv (case aarch64*-*-linux*): Don't set
11253 srv_linux_usrregs.
11254
5826e159
PA
112552015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11256
11257 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11258 sys/ptrace.h.
11259 * linux-arm-low.c: Likewise.
11260 * linux-cris-low.c: Likewise.
11261 * linux-crisv32-low.c: Likewise.
11262 * linux-low.c: Likewise.
11263 * linux-m68k-low.c: Likewise.
11264 * linux-mips-low.c: Likewise.
11265 * linux-nios2-low.c: Likewise.
11266 * linux-s390-low.c: Likewise.
11267 * linux-sparc-low.c: Likewise.
11268 * linux-tic6x-low.c: Likewise.
11269 * linux-tile-low.c: Likewise.
11270 * linux-x86-low.c: Likewise.
11271
54019719
PA
112722015-07-24 Pedro Alves <palves@redhat.com>
11273
11274 * config.in: Regenerate.
11275 * configure: Regenerate.
11276
eb7aa561
PA
112772015-07-24 Pedro Alves <palves@redhat.com>
11278
11279 * acinclude.m4: Include ../ptrace.m4.
11280 * configure.ac: Call GDB_AC_PTRACE.
11281 * config.in, configure: Regenerate.
11282
55d7b841
YQ
112832015-07-24 Yao Qi <yao.qi@linaro.org>
11284
11285 * linux-low.c (linux_create_inferior): Remove setting to
11286 proc->priv->new_inferior.
11287 (linux_attach): Likewise.
11288 (linux_low_filter_event): Likewise.
11289 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11290
c06cbd92
YQ
112912015-07-24 Yao Qi <yao.qi@linaro.org>
11292
11293 * linux-low.c (linux_arch_setup): New function.
11294 (linux_low_filter_event): If proc->tdesc is NULL and
11295 proc->attached is true, call the_low_target.arch_setup.
11296 Otherwise, keep status pending, and return.
11297 (linux_resume_one_lwp_throw): Don't call get_pc if
11298 thread->while_stepping isn't NULL. Don't call
11299 get_thread_regcache if proc->tdesc is NULL.
11300 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11301 (linux_target_ops): Install arch_setup.
11302 * server.c (start_inferior): Call the_target->arch_setup.
11303 * target.h (struct target_ops) <arch_setup>: New field.
11304 (target_arch_setup): New marco.
11305 * lynx-low.c (lynx_target_ops): Update.
11306 * nto-low.c (nto_target_ops): Update.
11307 * spu-low.c (spu_target_ops): Update.
11308 * win32-low.c (win32_target_ops): Update.
11309
5ae3ebba
YQ
113102015-07-24 Yao Qi <yao.qi@linaro.org>
11311
11312 * linux-low.c (linux_add_process): Don't set
11313 proc->priv->new_inferior.
11314 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11315 (linux_attach): Likewise.
11316
eb97750b
YQ
113172015-07-24 Yao Qi <yao.qi@linaro.org>
11318
11319 * server.c (start_inferior): Code refactor.
11320
51aee833
YQ
113212015-07-24 Yao Qi <yao.qi@linaro.org>
11322
11323 * server.c (process_serial_event): Set general_thread.
11324
af1b22f3
YQ
113252015-07-21 Yao Qi <yao.qi@linaro.org>
11326
11327 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11328 aarch64_linux_get_debug_reg_capacity.
11329
554717a3
YQ
113302015-07-17 Yao Qi <yao.qi@linaro.org>
11331
11332 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11333 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11334 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11335 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11336 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11337 (AARCH64_HWP_ALIGNMENT): Likewise.
11338 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11339 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11340 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11341 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11342 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11343 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11344 (struct aarch64_debug_reg_state): Likewise.
11345 (struct arch_lwp_info): Likewise.
11346 (aarch64_align_watchpoint): Likewise.
11347 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11348 (aarch64_watchpoint_length): Likewise.
11349 (aarch64_point_encode_ctrl_reg): Likewise
11350 (aarch64_point_is_aligned): Likewise.
11351 (aarch64_align_watchpoint): Likewise.
11352 (aarch64_linux_set_debug_regs):
11353 (aarch64_dr_state_insert_one_point): Likewise.
11354 (aarch64_dr_state_remove_one_point): Likewise.
11355 (aarch64_handle_breakpoint): Likewise.
11356 (aarch64_handle_aligned_watchpoint): Likewise.
11357 (aarch64_handle_unaligned_watchpoint): Likewise.
11358 (aarch64_handle_watchpoint): Likewise.
11359
c67ca4de
YQ
113602015-07-17 Yao Qi <yao.qi@linaro.org>
11361
11362 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11363 and don't aarch64_get_debug_reg_state. All callers update.
11364 (aarch64_handle_aligned_watchpoint): Likewise.
11365 (aarch64_handle_unaligned_watchpoint): Likewise.
11366 (aarch64_handle_watchpoint): Likewise.
11367 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11368 (aarch64_remove_point): Likewise.
11369
25abf979
YQ
113702015-07-17 Yao Qi <yao.qi@linaro.org>
11371
11372 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11373 debug_printf.
11374 (aarch64_handle_unaligned_watchpoint): Likewise.
11375
db1ff28b
JK
113762015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11377
11378 Revert the previous 3 commits:
11379 Move gdb_regex* to common/
11380 Move linux_find_memory_regions_full & co.
11381 gdbserver build-id attribute generator
11382
700ca40f
JK
113832015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11384 Jan Kratochvil <jan.kratochvil@redhat.com>
11385
11386 gdbserver build-id attribute generator.
11387 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11388 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11389 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11390 (find_phdr): New.
11391 (get_dynamic): Use find_pdhr to traverse program headers.
11392 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11393 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11394 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11395 (get_hex_build_id): New.
11396 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11397 to reply XML document.
11398
9904185c
JK
113992015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11400 Jan Kratochvil <jan.kratochvil@redhat.com>
11401
11402 * target.c: Include target/target-utils.h and fcntl.h.
11403 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11404 (target_fileio_read_stralloc): New functions.
11405
6e5b4429
JK
114062015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11407
11408 * Makefile.in (OBS): Add gdb_regex.o.
11409 (gdb_regex.o): New.
11410 * config.in: Rebuilt.
11411 * configure: Rebuilt.
11412
ddc98fbf
JK
114132015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11414 Jan Kratochvil <jan.kratochvil@redhat.com>
11415
11416 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11417 * Makefile.in (OBS): Add target-utils.o.
11418 (linux-maps.o, target-utils.o): New.
11419 * configure.srv (srv_linux_obj): Add linux-maps.o.
11420
e57bb7a0
PL
114212015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11422
11423 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11424 function, return 1.
11425 (the_low_target): Install it.
11426
586b02a9
PA
114272015-07-14 Pedro Alves <palves@redhat.com>
11428
11429 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11430 Instead, ignore ECHILD, and throw an error for other errnos.
11431
58c1b36c
PA
114322015-07-10 Pedro Alves <palves@redhat.com>
11433
11434 * event-loop.c (struct callback_event) <data>: Change type to
11435 gdb_client_data instance instead of gdb_client_data pointer.
11436 (append_callback_event): Adjust.
11437
421530db
PL
114382015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11439
11440 * linux-aarch64-low.c: Add comments for each linux_target_ops
11441 method. Remove comments already covered in target_ops and
11442 linux_target_ops definitions.
11443 (the_low_target): Add comments for each unimplemented method.
11444
c2d65f38
YQ
114452015-07-09 Yao Qi <yao.qi@linaro.org>
11446
11447 * linux-aarch64-low.c (aarch64_regmap): Remove.
11448 (aarch64_usrregs_info): Remove.
11449 (regs_info): Set field usrregs to NULL.
11450
b20a6524
MM
114512015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11452
11453 * linux-low.c: Include "rsp-low.h"
11454 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11455 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11456 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11457 (handle_btrace_enable_pt): New.
11458 (handle_btrace_general_set): Support "pt".
11459 (handle_btrace_conf_general_set): Support "pt:size".
11460
96c97461
PL
114612015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11462
11463 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11464 Z_PACKET_SW_BP.
11465
37d66942
PL
114662015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11467
11468 * linux-aarch64-low.c: Remove comment about endianness.
11469 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11470 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11471 memcmp.
11472
dc06243f
GB
114732015-06-24 Gary Benson <gbenson@redhat.com>
11474
11475 * linux-i386-ipa.c (stdint.h): Do not include.
11476 * lynx-i386-low.c (stdint.h): Likewise.
11477 * lynx-ppc-low.c (stdint.h): Likewise.
11478 * mem-break.c (stdint.h): Likewise.
11479 * thread-db.c (stdint.h): Likewise.
11480 * tracepoint.c (stdint.h): Likewise.
11481 * win32-low.c (stdint.h): Likewise.
11482
124e13d9
SM
114832015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11484
11485 * server.c (write_qxfer_response): Update call to
11486 remote_escape_output.
11487
909c2cda
JK
114882015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11489 Jan Kratochvil <jan.kratochvil@redhat.com>
11490
11491 Merge multiple hex conversions.
11492 * gdbreplay.c (tohex): Rename to 'fromhex'.
11493 (logchar): Use fromhex.
11494
24c05f46
JK
114952015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11496
11497 * server.c (handle_qxfer_libraries): Set `version' attribute for
11498 <library-list>.
11499
14d2069a
GB
115002015-06-10 Gary Benson <gbenson@redhat.com>
11501
11502 * target.h (struct target_ops) <multifs_open>: New field.
11503 <multifs_unlink>: Likewise.
11504 <multifs_readlink>: Likewise.
11505 * linux-low.c (nat/linux-namespaces.h): New include.
11506 (linux_target_ops): Initialize the_target->multifs_open,
11507 the_target->multifs_unlink and the_target->multifs_readlink.
11508 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11509 * hostio.c (hostio_fs_pid): New static variable.
11510 (hostio_handle_new_gdb_connection): New function.
11511 (handle_setfs): Likewise.
11512 (handle_open): Use the_target->multifs_open as appropriate.
11513 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11514 (handle_readlink): Use the_target->multifs_readlink as
11515 appropriate.
11516 (handle_vFile): Handle vFile:setfs packets.
11517 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11518 after target_handle_new_gdb_connection.
11519
4b8b5e72
GB
115202015-06-10 Gary Benson <gbenson@redhat.com>
11521
11522 * configure.ac (AC_CHECK_FUNCS): Add setns.
11523 * config.in: Regenerate.
11524 * configure: Likewise.
11525 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11526 (linux-namespaces.o): New rule.
11527 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11528
3ac2e371
GB
115292015-06-09 Gary Benson <gbenson@redhat.com>
11530
11531 * hostio.c (handle_open): Process mode argument with
11532 fileio_to_host_mode.
11533
ca9b78ce
YQ
115342015-06-01 Yao Qi <yao.qi@linaro.org>
11535
11536 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11537 * linux-x86-low.c: Likewise.
11538
bfacd19d
DB
115392015-05-28 Don Breazeal <donb@codesourcery.com>
11540
11541 * linux-low.c (handle_extended_wait): Initialize
11542 thread_info.last_resume_kind for new fork children.
11543
452003ef
PA
115442015-05-15 Pedro Alves <palves@redhat.com>
11545
11546 * target.h (target_handle_new_gdb_connection): Rewrite using if
11547 wrapped in do/while.
11548
1041a03c
JB
115492015-05-14 Joel Brobecker <brobecker@adacore.com>
11550
11551 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11552 * configure, config.in: Regenerate.
11553 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11554 Declare typedef.
11555
c269dbdb
DB
115562015-05-12 Don Breazeal <donb@codesourcery.com>
11557
11558 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11559 PTRACE_EVENT_VFORK_DONE.
11560 (linux_low_ptrace_options, extended_event_reported): Add vfork
11561 events.
11562 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11563 and "vforkdone" for RSP 'T' Stop Reply Packet.
11564 * server.h (report_vfork_events): Declare
11565 global variable.
11566
3a8a0396
DB
115672015-05-12 Don Breazeal <donb@codesourcery.com>
11568
11569 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11570 (the_low_target) <new_fork>: Initialize new member.
11571 * linux-arm-low.c (arm_new_fork): New function.
11572 (the_low_target) <new_fork>: Initialize new member.
11573 * linux-low.c (handle_extended_wait): Call new target function
11574 new_fork.
11575 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11576 * linux-mips-low.c (mips_add_watchpoint): New function
11577 extracted from mips_insert_point.
11578 (the_low_target) <new_fork>: Initialize new member.
11579 (mips_linux_new_fork): New function.
11580 (mips_insert_point): Call mips_add_watchpoint.
11581 * linux-x86-low.c (x86_linux_new_fork): New function.
11582 (the_low_target) <new_fork>: Initialize new member.
11583
de0d863e
DB
115842015-05-12 Don Breazeal <donb@codesourcery.com>
11585
11586 * linux-low.c (handle_extended_wait): Implement return value,
11587 rename argument 'event_child' to 'event_lwp', handle
11588 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11589 (linux_low_ptrace_options): New function.
11590 (linux_low_filter_event): Call linux_low_ptrace_options,
11591 use different argument fo linux_enable_event_reporting,
11592 use return value from handle_extended_wait.
11593 (extended_event_reported): New function.
11594 (linux_wait_1): Call extended_event_reported and set
11595 status to report fork events.
11596 (linux_write_memory): Add pid to debug message.
11597 (reset_lwp_ptrace_options_callback): New function.
11598 (linux_handle_new_gdb_connection): New function.
11599 (linux_target_ops): Initialize new structure member.
11600 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11601 * lynx-low.c: Initialize new structure member.
11602 * remote-utils.c (prepare_resume_reply): Implement stop reason
11603 "fork" for "T" stop message.
11604 * server.c (handle_query): Call handle_new_gdb_connection.
11605 * server.h (report_fork_events): Declare global flag.
11606 * target.h (struct target_ops) <handle_new_gdb_connection>:
11607 New member.
11608 (target_handle_new_gdb_connection): New macro.
11609 * win32-low.c: Initialize new structure member.
11610
ddcbc397
DB
116112015-05-12 Don Breazeal <donb@codesourcery.com>
11612
11613 * mem-break.c (APPEND_TO_LIST): Define macro.
11614 (clone_agent_expr): New function.
11615 (clone_one_breakpoint): New function.
11616 (clone_all_breakpoints): New function.
11617 * mem-break.h: Declare new functions.
11618
89245bc0
DB
116192015-05-12 Don Breazeal <donb@codesourcery.com>
11620
11621 * linux-low.c (linux_supports_fork_events): New function.
11622 (linux_supports_vfork_events): New function.
11623 (linux_target_ops): Initialize new structure members.
11624 (initialize_low): Call linux_check_ptrace_features.
11625 * lynx-low.c (lynx_target_ops): Initialize new structure
11626 members.
11627 * server.c (report_fork_events, report_vfork_events):
11628 New global flags.
11629 (handle_query): Add new features to qSupported packet and
11630 response.
11631 (captured_main): Initialize new global variables.
11632 * target.h (struct target_ops) <supports_fork_events>:
11633 New member.
11634 <supports_vfork_events>: New member.
11635 (target_supports_fork_events): New macro.
11636 (target_supports_vfork_events): New macro.
11637 * win32-low.c (win32_target_ops): Initialize new structure
11638 members.
11639
835205d0
GB
116402015-05-12 Gary Benson <gbenson@redhat.com>
11641
11642 * server.c (handle_qxfer_exec_file): Use current process
11643 if annex is empty.
11644
21e94bd9
SL
116452015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11646
11647 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11648 Remove HAVE_PTRACE_GETREGS conditionals.
11649 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11650 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11651
45614f15
YQ
116522015-05-08 Yao Qi <yao.qi@linaro.org>
11653
11654 * linux-low.c (linux_supports_conditional_breakpoints): New
11655 function.
11656 (linux_target_ops): Install new target method.
11657 * lynx-low.c (lynx_target_ops): Install NULL hook for
11658 supports_conditional_breakpoints.
11659 * nto-low.c (nto_target_ops): Likewise.
11660 * spu-low.c (spu_target_ops): Likewise.
11661 * win32-low.c (win32_target_ops): Likewise.
11662 * server.c (handle_query): Check
11663 target_supports_conditional_breakpoints.
11664 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11665 New field.
11666 (target_supports_conditional_breakpoints): New macro.
11667
80ad801e
PA
116682015-05-06 Pedro Alves <palves@redhat.com>
11669
11670 PR server/18081
11671 * server.c (start_inferior): If the process exits, mourn it.
11672
819843c7
GB
116732015-04-21 Gary Benson <gbenson@redhat.com>
11674
11675 * hostio.c (fileio_open_flags_to_host): Factored out to
11676 fileio_to_host_openflags in common/fileio.c. Single use
11677 updated.
11678
a2d5a9d7
MF
116792015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11680
11681 * linux-xtensa-low.c (xtensa_fill_gregset)
11682 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11683 XCHAL_HAVE_LOOP.
11684
deb44829
MF
116852015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11686
11687 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11688 (regs_info): Replace usrregs pointer with NULL.
11689
e57f1de3
GB
116902015-04-17 Gary Benson <gbenson@redhat.com>
11691
11692 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11693 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11694 * server.c (handle_qxfer_exec_file): New function.
11695 (qxfer_packets): Add exec-file entry.
11696 (handle_query): Report qXfer:exec-file:read as supported packet.
11697
62828379
RN
116982015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11699
11700 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11701
b88bb450
GB
117022015-04-09 Gary Benson <gbenson@redhat.com>
11703
11704 * hostio-errno.c (errno_to_fileio_error): Remove function.
11705 Update caller to use remote_fileio_to_fio_error.
11706
c8f4bfdd
YQ
117072015-04-09 Yao Qi <yao.qi@linaro.org>
11708
11709 * linux-low.c (linux_insert_point): Call
11710 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11711 (linux_remove_point): Call remove_memory_breakpoint if type is
11712 raw_bkpt_type_sw.
11713 * linux-x86-low.c (x86_insert_point): Don't call
11714 insert_memory_breakpoint.
11715 (x86_remove_point): Don't call remove_memory_breakpoint.
11716
41f98f02
PA
117172015-04-01 Pedro Alves <palves@redhat.com>
11718 Cleber Rosa <crosa@redhat.com>
11719
11720 * server.c (gdbserver_usage): Reorganize and extend the usage
11721 message.
11722
2bf6fb9d
PA
117232015-03-24 Pedro Alves <palves@redhat.com>
11724
11725 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11726 output. Also dump TRAP_TRACE.
11727 (linux_low_filter_event): In debug output, distinguish a
11728 resume_stop SIGSTOP from a delayed SIGSTOP.
11729
369f6daa
GB
117302015-03-24 Gary Benson <gbenson@redhat.com>
11731
11732 * linux-x86-low.c (x86_linux_new_thread): Moved to
11733 nat/x86-linux.c.
11734 (x86_linux_prepare_to_resume): Likewise.
11735
8e5d4070
GB
117362015-03-24 Gary Benson <gbenson@redhat.com>
11737
11738 * Makefile.in (x86-linux-dregs.o): New rule.
11739 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11740 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11741 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11742 (x86_linux_dr_get): Likewise.
11743 (x86_linux_dr_set): Likewise.
11744 (update_debug_registers_callback): Likewise.
11745 (x86_linux_dr_set_addr): Likewise.
11746 (x86_linux_dr_get_addr): Likewise.
11747 (x86_linux_dr_set_control): Likewise.
11748 (x86_linux_dr_get_control): Likewise.
11749 (x86_linux_dr_get_status): Likewise.
11750 (x86_linux_update_debug_registers): Likewise.
11751
2b95d440
GB
117522015-03-24 Gary Benson <gbenson@redhat.com>
11753
11754 * linux-x86-low.c (x86_linux_update_debug_registers):
11755 New function, factored out from...
11756 (x86_linux_prepare_to_resume): ...this.
11757
14b0bc68
GB
117582015-03-24 Gary Benson <gbenson@redhat.com>
11759
11760 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11761 (x86_linux_dr_set): Likewise.
11762 (update_debug_registers_callback): Likewise.
11763 (x86_linux_dr_set_addr): Likewise.
11764 (x86_linux_dr_get_addr): Likewise.
11765 (x86_linux_dr_set_control): Likewise.
11766 (x86_linux_dr_get_control): Likewise.
11767 (x86_linux_dr_get_status): Likewise.
11768 (x86_linux_prepare_to_resume): Likewise.
11769
5dfe6ca8
GB
117702015-03-24 Gary Benson <gbenson@redhat.com>
11771
11772 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11773 Use perror_with_name. Pass string through gettext.
11774 (x86_linux_dr_set): Likewise.
11775
d33472ad
GB
117762015-03-24 Gary Benson <gbenson@redhat.com>
11777
11778 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11779 (x86_linux_dr_set_addr): ...this.
11780 (x86_dr_low_get_addr): Rename to...
11781 (x86_linux_dr_get_addr): ...this.
11782 (x86_dr_low_set_control): Rename to...
11783 (x86_linux_dr_set_control): ...this.
11784 (x86_dr_low_get_control): Rename to...
11785 (x86_linux_dr_get_control): ...this.
11786 (x86_dr_low_get_status): Rename to...
11787 (x86_linux_dr_get_status): ...this.
11788 (x86_dr_low): Update with new function names.
11789
4b134ca1
GB
117902015-03-24 Gary Benson <gbenson@redhat.com>
11791
11792 * Makefile.in (x86-linux.o): New rule.
11793 * configure.srv: Add x86-linux.o to relevant targets.
11794 * linux-low.c (lwp_set_arch_private_info): New function.
11795 (lwp_arch_private_info): Likewise.
11796 * linux-x86-low.c: Include nat/x86-linux.h.
11797 (arch_lwp_info): Removed structure.
11798 (update_debug_registers_callback):
11799 Use lwp_set_debug_registers_changed.
11800 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11801 and lwp_set_debug_registers_changed.
11802 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11803
34c703da
GB
118042015-03-24 Gary Benson <gbenson@redhat.com>
11805
11806 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11807 * linux-arm-low.c (arm_new_thread): Likewise.
11808 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11809 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11810 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11811 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11812
cff068da
GB
118132015-03-24 Gary Benson <gbenson@redhat.com>
11814
11815 * linux-low.c (ptid_of_lwp): New function.
11816 (lwp_is_stopped): Likewise.
11817 (lwp_stop_reason): Likewise.
11818 * linux-x86-low.c (update_debug_registers_callback):
11819 Use lwp_is_stopped.
11820 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11821 lwp_stop_reason.
11822
b2f7c7e8
GB
118232015-03-24 Gary Benson <gbenson@redhat.com>
11824
11825 * linux-low.h (linux_stop_lwp): Remove declaration.
11826
6d4ee8c6
GB
118272015-03-24 Gary Benson <gbenson@redhat.com>
11828
11829 * linux-low.h: Include nat/linux-nat.h.
11830 * linux-low.c (iterate_over_lwps_args): New structure.
11831 (iterate_over_lwps_filter): New function.
11832 (iterate_over_lwps): Likewise.
11833 * linux-x86-low.c (update_debug_registers_callback):
11834 Update signature to what iterate_over_lwps expects.
11835 Remove PID check that iterate_over_lwps now performs.
11836 (x86_dr_low_set_addr): Use iterate_over_lwps.
11837 (x86_dr_low_set_control): Likewise.
11838
70a0bb6b
GB
118392015-03-24 Gary Benson <gbenson@redhat.com>
11840
11841 * linux-x86-low.c (x86_debug_reg_state): New function.
11842 (x86_linux_prepare_to_resume): Use the above.
11843
7b669087
GB
118442015-03-24 Gary Benson <gbenson@redhat.com>
11845
11846 * linux-low.c (current_lwp_ptid): New function.
11847 * linux-x86-low.c: Include nat/linux-nat.h.
11848 (x86_dr_low_get_addr): Use current_lwp_ptid.
11849 (x86_dr_low_get_control): Likewise.
11850 (x86_dr_low_get_status): Likewise.
11851
eef49a3d
PA
118522015-03-20 Pedro Alves <palves@redhat.com>
11853
11854 * tracepoint.c (cmd_qtstatus): Make "str" const.
11855
b2333d22
PA
118562015-03-20 Pedro Alves <palves@redhat.com>
11857
11858 * server.c (handle_general_set): Make "req_str" const.
11859
23f238d3
PA
118602015-03-19 Pedro Alves <palves@redhat.com>
11861
11862 * linux-low.c (linux_resume_one_lwp): Rename to ...
11863 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11864 instead call perror_with_name.
11865 (check_ptrace_stopped_lwp_gone): New function.
11866 (linux_resume_one_lwp): Reimplement as wrapper around
11867 linux_resume_one_lwp_throw that swallows errors if the LWP is
11868 gone.
11869
91baf43f
PA
118702015-03-19 Pedro Alves <palves@redhat.com>
11871
11872 * linux-low.c (count_events_callback, select_event_lwp_callback):
11873 No longer check whether the thread has resume_stop as last resume
11874 kind.
11875
8bf3b159
PA
118762015-03-19 Pedro Alves <palves@redhat.com>
11877
11878 * linux-low.c (count_events_callback, select_event_lwp_callback):
11879 Use the lwp's status_pending_p field, not the thread's.
11880
b90fc188
PA
118812015-03-19 Pedro Alves <palves@redhat.com>
11882
11883 * linux-low.c (select_event_lwp_callback): Update comments to
11884 no longer mention SIGTRAP.
11885
464b0089
GB
118862015-03-18 Gary Benson <gbenson@redhat.com>
11887
11888 * server.c (handle_query): Do not report vFile:fstat as supported.
11889
aa9e327f
GB
118902015-03-11 Gary Benson <gbenson@redhat.com>
11891
11892 * hostio.c (sys/types.h): New include.
11893 (sys/stat.h): Likewise.
11894 (common-remote-fileio.h): Likewise.
11895 (handle_fstat): New function.
11896 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11897
791c0056
GB
118982015-03-11 Gary Benson <gbenson@redhat.com>
11899
11900 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11901 struct stat.st_blocks and struct stat.st_blksize.
11902 * configure: Regenerate.
11903 * config.in: Likewise.
11904 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11905 (OBS): Add common-remote-fileio.o.
11906 (common-remote-fileio.o): New rule.
11907
9a9df970
PA
119082015-03-09 Pedro Alves <palves@redhat.com>
11909
11910 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11911 'struct sockaddr' pointer in 'accept' call.
11912
9eb1356e
PA
119132015-03-09 Pedro Alves <palves@redhat.com>
11914
11915 Revert:
11916 2015-03-07 Pedro Alves <palves@redhat.com>
11917 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11918 or <winsock2.h> here. Instead include "gdb_socket.h".
11919 (remote_open): Use union gdb_sockaddr_u.
11920 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11921 or <winsock2.h> here. Instead include "gdb_socket.h".
11922 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11923 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11924 or <sys/un.h>.
11925 (init_named_socket, gdb_agent_helper_thread): Use union
11926 gdb_sockaddr_u.
11927
aac331e4
PA
119282015-03-07 Pedro Alves <palves@redhat.com>
11929
11930 * configure.ac (build_warnings): Move
11931 -Wdeclaration-after-statement to the C-specific set.
11932 * configure: Regenerate.
11933
366c75fc
PA
119342015-03-07 Pedro Alves <palves@redhat.com>
11935
11936 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11937 or <winsock2.h> here. Instead include "gdb_socket.h".
11938 (remote_open): Use union gdb_sockaddr_u.
11939 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11940 or <winsock2.h> here. Instead include "gdb_socket.h".
11941 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11942 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11943 or <sys/un.h>.
11944 (init_named_socket, gdb_agent_helper_thread): Use union
11945 gdb_sockaddr_u.
11946
492d29ea
PA
119472015-03-07 Pedro Alves <palves@redhat.com>
11948
11949 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11950 instead.
11951
60a191ed
YQ
119522015-03-06 Yao Qi <yao.qi@linaro.org>
11953
11954 * linux-aarch64-low.c (aarch64_insert_point): Use
11955 show_debug_regs as a boolean.
11956 (aarch64_remove_point): Likewise.
11957
f5771b1d
PA
119582015-03-05 Pedro Alves <palves@redhat.com>
11959
11960 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11961 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11962 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11963 * nto-low.c (nto_target_ops): Likewise.
11964 * spu-low.c (spu_target_ops): Likewise.
11965 * win32-low.c (win32_target_ops): Likewise.
11966
3e572f71
PA
119672015-03-04 Pedro Alves <palves@redhat.com>
11968
72f4393d 11969 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11970 Decide whether a breakpoint triggered based on the SIGTRAP's
11971 siginfo.si_code.
72f4393d
L
11972 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11973 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11974 (linux_low_filter_event): Check for breakpoints before checking
11975 watchpoints.
11976 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11977 siginfo.si_code.
72f4393d
L
11978 (linux_stopped_by_sw_breakpoint)
11979 (linux_supports_stopped_by_sw_breakpoint)
11980 (linux_stopped_by_hw_breakpoint)
11981 (linux_supports_stopped_by_hw_breakpoint): New functions.
11982 (linux_target_ops): Install new target methods.
3e572f71 11983
1ec68e26
PA
119842015-03-04 Pedro Alves <palves@redhat.com>
11985
11986 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11987 * server.c (swbreak_feature, hwbreak_feature): New globals.
11988 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11989 (captured_main): Clear swbreak_feature and hwbreak_feature.
11990 * server.h (swbreak_feature, hwbreak_feature): Declare.
11991 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11992 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11993 supports_stopped_by_hw_breakpoint>: New fields.
11994 (target_supports_stopped_by_sw_breakpoint)
11995 (target_stopped_by_sw_breakpoint)
11996 (target_supports_stopped_by_hw_breakpoint)
11997 (target_stopped_by_hw_breakpoint): Declare.
11998
15c66dd6
PA
119992015-03-04 Pedro Alves <palves@redhat.com>
12000
12001 enum lwp_stop_reason -> enum target_stop_reason
12002 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12003 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12004 (linux_wait_1, stuck_in_jump_pad_callback)
12005 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12006 (linux_stopped_by_watchpoint):
12007 * linux-low.h (enum lwp_stop_reason): Delete.
12008 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12009 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12010
98fc70d6
YQ
120112015-03-04 Yao Qi <yao.qi@linaro.org>
12012
12013 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12014
dd2ac174
GB
120152015-03-03 Gary Benson <gbenson@redhat.com>
12016
12017 * hostio.c (handle_vFile): Fix prefix lengths.
12018
d68e53f4
MM
120192015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12020
12021 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12022 ptr_bits.
12023
bf2d68ab
AA
120242015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12025
12026 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12027 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12028 (clean): Add "rm -f" for above C files.
12029 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12030 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12031 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12032 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12033 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12034 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12035 (init_registers_s390x_vx_linux64)
12036 (init_registers_s390x_tevx_linux64)
12037 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12038 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12039 declarations.
12040 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12041 (s390_store_vxrs_high): New functions.
12042 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12043 NT_S390_VXRS_HIGH.
12044 (s390_arch_setup): Add logic for selecting one of the new target
12045 descriptions. Activate the new vector regsets if applicable.
12046 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12047 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12048 and init_registers_s390x_tevx_linux64.
12049
c966a859
PA
120502015-03-01 Pedro Alves <palves@redhat.com>
12051
12052 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12053 parameter.
12054
4180215b
PA
120552015-02-27 Pedro Alves <palves@redhat.com>
12056
12057 * linux-x86-low.c (u_debugreg_offset): New function.
12058 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12059
749bab01
PA
120602015-02-27 Pedro Alves <palves@redhat.com>
12061
12062 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12063 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12064 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12065 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12066 (ps_lsetfpregs, ps_getpid)
12067 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12068 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12069 (ps_lsetxregs, ps_plog): Declare.
12070
3c14e5a3
PA
120712015-02-27 Pedro Alves <palves@redhat.com>
12072
12073 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12074 IP_AGENT_EXPORT_FUNC.
12075 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12076 IP_AGENT_EXPORT_FUNC.
12077 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12078 (IP_AGENT_EXPORT): Delete.
12079 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12080 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12081 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12082 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12083 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12084 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12085 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12086 (traceframe_read_count, traceframe_write_count)
12087 (traceframes_created, trace_state_variables, get_raw_reg)
12088 (get_trace_state_variable_value, set_trace_state_variable_value)
12089 (ust_loaded, helper_thread_id, cmd_buf): Use
12090 IPA_SYM_EXPORTED_NAME.
12091 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12092 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12093 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12094 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12095 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12096 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12097 EXTERN_C_PUSH/EXTERN_C_POP.
12098 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12099 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12100 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12101 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12102 (traceframe_write_count, traceframe_read_count)
12103 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12104 (about_to_request_buffer_space, get_trace_state_variable_value)
12105 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12106 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12107 EXTERN_C_PUSH/EXTERN_C_POP.
12108 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12109 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12110 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12111 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12112 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12113 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12114 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12115 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12116 Define.
12117 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12118 (IP_AGENT_EXPORT_VAR_DECL): Define.
12119 (tracing): Declare.
12120 (gdb_agent_get_raw_reg): Declare.
12121
fe978cb0
PA
121222015-02-27 Tom Tromey <tromey@redhat.com>
12123 Pedro Alves <palves@redhat.com>
12124
12125 Rename symbols whose names are reserved C++ keywords throughout.
12126
3bc3d82a
PA
121272015-02-27 Pedro Alves <palves@redhat.com>
12128
12129 * Makefile.in (COMPILER): New, get it from autoconf.
12130 (CXX): Get from autoconf instead.
12131 (COMPILE.pre): Use COMPILER.
12132 (CC-LD): Rename to ...
12133 (CC_LD): ... this. Use COMPILER.
12134 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12135 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12136 * acinclude.m4: Include build-with-cxx.m4.
12137 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12138 Disable -Werror by default if building in C++ mode.
12139 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12140 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12141 the C++ compiler. Save/restore CXXFLAGS too.
12142 * configure: Regenerate.
12143
07697489
PA
121442015-02-27 Pedro Alves <palves@redhat.com>
12145
12146 * acinclude.m4: Include libiberty.m4.
12147 * configure.ac: Call libiberty_INIT.
12148 * config.in, configure: Regenerate.
12149
9beb7c4e
PA
121502015-02-26 Pedro Alves <palves@redhat.com>
12151
12152 * linux-low.c (linux_wait_1): When incrementing the PC past a
12153 program breakpoint always use the_low_target.breakpoint_len as
12154 increment, rather than the maximum between that and
12155 the_low_target.decr_pc_after_break.
12156
8090aef2
PA
121572015-02-23 Pedro Alves <palves@redhat.com>
12158
12159 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12160 thread was doing a step-over; always adjust the PC if
12161 we stepped over a permanent breakpoint.
12162 (linux_wait_1): If we stepped over breakpoint that was on top of a
12163 permanent breakpoint, manually advance the PC past it.
12164
bc9540e8
PA
121652015-02-23 Pedro Alves <palves@redhat.com>
12166
12167 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12168 modes.
12169 (x86_fill_gregset, x86_store_gregset): Use it when handling
12170 $orig_eax.
12171
2db9a427
PA
121722015-02-20 Pedro Alves <palves@redhat.com>
12173
12174 * thread-db.c: Include "nat/linux-procfs.h".
12175 (thread_db_init): Skip listing new threads if the kernel supports
12176 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12177
afa8d396
PA
121782015-02-20 Pedro Alves <palves@redhat.com>
12179
12180 * linux-low.c (status_pending_p_callback): Use ptid_match.
12181
c9587f88
AT
121822015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12183
12184 PR breakpoints/16812
12185 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12186 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12187 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12188
b05ec7a5
AT
121892015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12190
12191 PR breakpoints/15956
12192 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12193
d33501a5
MM
121942015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12195
12196 * linux-low.c (linux_low_btrace_conf): Print size.
12197 * server.c (handle_btrace_conf_general_set): New.
12198 (hanle_general_set): Call handle_btrace_conf_general_set.
12199 (handle_query): Report Qbtrace-conf:bts:size as supported.
12200
f4abbc16
MM
122012015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12202
12203 * linux-low.c (linux_low_enable_btrace): Update parameters.
12204 (linux_low_btrace_conf): New.
12205 (linux_target_ops)<to_btrace_conf>: Initialize.
12206 * server.c (current_btrace_conf): New.
12207 (handle_btrace_enable): Rename to ...
12208 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12209 to target_enable_btrace. Update comment. Update users.
12210 (handle_qxfer_btrace_conf): New.
12211 (qxfer_packets): Add btrace-conf entry.
12212 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12213 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12214 (target_ops)<read_btrace_conf>: New.
12215 (target_enable_btrace): Update parameters.
12216 (target_read_btrace_conf): New.
12217
043c3577
MM
122182015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12219
12220 * server.c (handle_btrace_general_set): Remove call to
12221 target_supports_btrace.
12222 (supported_btrace_packets): New.
12223 (handle_query): Call supported_btrace_packets.
12224 * target.h: include btrace-common.h.
12225 (btrace_target_info): Removed.
12226 (supports_btrace, target_supports_btrace): Update parameters.
12227
734b0e4b
MM
122282015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12229
12230 * Makefile.in (SFILES): Add common/btrace-common.c.
12231 (OBS): Add common/btrace-common.o.
12232 (btrace-common.o): Add build rules.
12233 * linux-low: Include btrace-common.h.
12234 (linux_low_read_btrace): Use struct btrace_data. Call
12235 btrace_data_init and btrace_data_fini.
12236
d6c146e9
PA
122372015-02-06 Pedro Alves <palves@redhat.com>
12238
12239 * thread-db.c (find_new_threads_callback): Add debug output.
12240
20ba1ce6
PA
122412015-02-04 Pedro Alves <palves@redhat.com>
12242
12243 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12244 (resume_stopped_resumed_lwps): New function.
12245 (linux_wait_for_event_filtered): Use it.
12246
8cc73a39
SDJ
122472015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12248
12249 * Makefile.in (SFILES): Add linux-personality.c.
12250 (linux-personality.o): New rule.
12251 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12252 list of objects to be built.
12253 * linux-low.c: Include nat/linux-personality.h.
12254 (linux_create_inferior): Remove code to disable address space
12255 randomization (moved to ../nat/linux-personality.c). Create
12256 cleanup to disable address space randomization.
12257
fb23d554
SDJ
122582015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12259
12260 * Makefile.in (posix-strerror.o): New rule.
12261 (mingw-strerror.o): Likewise.
12262 * configure: Regenerated.
12263 * configure.ac: Source file ../common/common.host. Initialize new
12264 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12265
cdf43629
YQ
122662015-01-14 Yao Qi <yao@codesourcery.com>
12267
12268 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12269 (ppc-linux.o): New rule.
12270 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12271 * configure.ac: AC_CHECK_FUNCS(getauxval).
12272 * config.in: Re-generated.
12273 * configure: Re-generated.
12274 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12275 ppc64_64bit_inferior_p
12276
514c5338
YQ
122772015-01-14 Yao Qi <yao@codesourcery.com>
12278
12279 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12280 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12281 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12282 (PT_ORIG_R3, PT_TRAP): Likewise.
12283 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12284 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12285 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12286
3368c1e5
JB
122872015-01-10 Joel Brobecker <brobecker@adacore.com>
12288
12289 * i387-fp.c (i387_cache_to_xsave): In look over
12290 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12291 zmmh_low_space field by use of zmmh_high_space.
12292
582511be
PA
122932015-01-09 Pedro Alves <palves@redhat.com>
12294
12295 * linux-low.c (step_over_bkpt): Move higher up in the file.
12296 (handle_extended_wait): Don't store the stop_pc here.
12297 (get_stop_pc): Adjust comments and rename to ...
12298 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12299 stopped for a software breakpoint or hardware breakpoint.
12300 (thread_still_has_status_pending_p): New function.
12301 (status_pending_p_callback): Use
12302 thread_still_has_status_pending_p. If the event is no longer
12303 interesting, resume the LWP.
12304 (handle_tracepoints): Add assert.
12305 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12306 (wstatus_maybe_breakpoint): New function.
12307 (cancel_breakpoint): Delete function.
12308 (check_stopped_by_watchpoint): New function, factored out from
12309 linux_low_filter_event.
12310 (lp_status_maybe_breakpoint): Delete function.
12311 (linux_low_filter_event): Remove filter_ptid argument.
12312 Leave thread group exits pending here. Store the LWP's stop PC.
12313 Always leave events pending.
12314 (linux_wait_for_event_filtered): Pull all events out of the
12315 kernel, and leave them all pending.
12316 (count_events_callback, select_event_lwp_callback): Consider all
12317 events.
12318 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12319 (select_event_lwp): Only give preference to the stepping LWP in
12320 all-stop mode. Adjust comments.
12321 (ignore_event): New function.
12322 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12323 references to cancel_breakpoints. Adjust to renames. Also give
12324 equal priority to all LWPs that have had events in non-stop mode.
12325 If reporting a software breakpoint event, unadjust the LWP's PC.
12326 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12327 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12328 Adjust.
12329 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12330 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12331 (linux_stopped_by_watchpoint): Adjust.
12332 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12333 * linux-low.h (enum lwp_stop_reason): New.
12334 (struct lwp_info) <stop_pc>: Adjust comment.
12335 <stopped_by_watchpoint>: Delete field.
12336 <stop_reason>: New field.
12337 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12338 * mem-break.c (software_breakpoint_inserted_here)
12339 (hardware_breakpoint_inserted_here): New function.
12340 * mem-break.h (software_breakpoint_inserted_here)
12341 (hardware_breakpoint_inserted_here): Declare.
12342 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12343 (cancel_breakpoints): Delete.
12344 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12345 (upload_fast_traceframes): Remove references to
12346 cancel_breakpoints.
12347
a33e3959
PA
123482015-01-09 Pedro Alves <palves@redhat.com>
12349
12350 * thread-db.c (find_new_threads_callback): Ignore thread if the
12351 kernel thread ID is -1.
12352
8784d563
PA
123532015-01-09 Pedro Alves <palves@redhat.com>
12354
12355 * linux-low.c (linux_attach_fail_reason_string): Move to
12356 nat/linux-ptrace.c, and rename.
12357 (linux_attach_lwp): Update comment.
12358 (attach_proc_task_lwp_callback): New function.
12359 (linux_attach): Adjust to rename and use
12360 linux_proc_attach_tgid_threads.
12361 (linux_attach_fail_reason_string): Delete declaration.
12362
76f2b779
JB
123632015-01-01 Joel Brobecker <brobecker@adacore.com>
12364
12365 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12366 * server.c (gdbserver_version): Likewise.
12367
fafcc06a
SDJ
123682014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12369
12370 * remote-utils.c: Include ctype.h.
12371 (input_interrupt): Explicitly handle the case when the char
12372 received is the NUL byte. Improve the printing of non-ASCII
12373 characters.
12374
beed38b8
JB
123752014-12-16 Joel Brobecker <brobecker@adacore.com>
12376
12377 * linux-low.c (linux_low_filter_event): Update call to
12378 linux_enable_event_reporting following the addition of
12379 a new parameter to that function.
12380
bf330350
CU
123812014-12-16 Catalin Udma <catalin.udma@freescale.com>
12382
12383 PR server/17457
12384 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12385 (AARCH64_FPCR_REGNO): Likewise.
12386 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12387 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12388 (aarch64_store_fpregset): Likewise.
12389
5227d625
JB
123902014-12-15 Joel Brobecker <brobecker@adacore.com>
12391
12392 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12393 Remove FIXME comment about assumption about N.
12394
f93b65a0
JB
123952014-12-13 Joel Brobecker <brobecker@adacore.com>
12396
12397 * configure.ac: If large-file support is disabled in GDBserver,
12398 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12399 * configure: Regenerate.
12400
e5a9158d
AA
124012014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12402
12403 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12404 warning upon ENODATA from ptrace.
12405 * linux-s390-low.c (s390_store_tdb): New.
12406 (s390_regsets): Add regset for NT_S390_TDB.
12407
feea5f36
AA
124082014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12409
12410 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12411 without a fill_function.
12412 * linux-s390-low.c (s390_fill_last_break): Remove.
12413 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12414 (s390_arch_setup): Use regset's size instead of fill_function for
12415 loop end condition.
12416
098dbe61
AA
124172014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12418
12419 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12420 the regset's store function when ptrace returned an error.
12421 * regcache.c (get_thread_regcache): Invalidate register cache
12422 before fetching inferior's registers.
12423
28eef672
AA
124242014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12425
12426 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12427 while-loop as for-loop.
12428 (regsets_store_inferior_registers): Likewise.
12429
bdca27a2
YQ
124302014-11-28 Yao Qi <yao@codesourcery.com>
12431
12432 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12433 * config.in, configure: Re-generate.
12434 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12435 is defined.
12436
9c232dda
YQ
124372014-11-21 Yao Qi <yao@codesourcery.com>
12438
12439 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12440 (AC_CHECK_HEADERS): Remove malloc.h.
12441 * configure: Re-generated.
12442 * config.in: Re-generated.
12443 * server.h: Don't include alloca.h and malloc.h.
12444 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12445 Don't include malloc.h.
12446
43968415
JB
124472014-11-17 Joel Brobecker <brobecker@adacore.com>
12448
12449 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12450 corresponding ERRNO check in same block.
12451
40e91bc7
PA
124522014-11-12 Pedro Alves <palves@redhat.com>
12453
12454 * server.c (cont_thread): Update comment.
12455 (start_inferior, attach_inferior): No longer clear cont_thread.
12456 (handle_v_cont): No longer set cont_thread.
12457 (captured_main): Clear cont_thread each time a GDB connects.
12458
c2c118cf
PA
124592014-11-12 Pedro Alves <palves@redhat.com>
12460
12461 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12462 thread, and don't resume all threads if the Hc thread has exited.
12463
78708b7c
PA
124642014-11-12 Pedro Alves <palves@redhat.com>
12465
12466 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12467 the process group instead of to a specific LWP.
12468
a2abc7de
PA
124692014-10-15 Pedro Alves <palves@redhat.com>
12470
12471 PR server/17487
12472 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12473 parameter.
12474 (arm_set_thread_context): Delete.
12475 (the_low_target): Adjust.
12476 * win32-i386-low.c (debug_registers_changed)
12477 (debug_registers_used): Delete.
12478 (update_debug_registers_callback): New function.
12479 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12480 needing to update their debug registers.
12481 (win32_get_current_dr): New function.
12482 (x86_dr_low_get_addr, x86_dr_low_get_control)
12483 (x86_dr_low_get_status): Fetch the debug register from the thread
12484 record's context.
12485 (i386_initial_stuff): Adjust.
12486 (i386_get_thread_context): Remove current_event parameter. Don't
12487 clear debug_registers_changed nor copy DR values to
12488 debug_reg_state.
12489 (i386_set_thread_context): Delete.
12490 (i386_prepare_to_resume): New function.
12491 (i386_thread_added): Mark the thread as needing to update irs
12492 debug registers.
12493 (the_low_target): Remove i386_set_thread_context and install
12494 i386_prepare_to_resume.
12495 * win32-low.c (win32_get_thread_context): Adjust.
12496 (win32_set_thread_context): Use SetThreadContext
12497 directly.
12498 (win32_prepare_to_resume): New function.
12499 (win32_require_context): New function, factored out from ...
12500 (thread_rec): ... this.
12501 (continue_one_thread): Call win32_prepare_to_resume on each thread
12502 we're about to continue.
12503 (win32_resume): Call win32_prepare_to_resume on the event thread.
12504 * win32-low.h (struct win32_thread_info)
12505 <debug_registers_changed>: New field.
12506 (struct win32_target_ops): Change prototype of set_thread_context,
12507 delete set_thread_context and add prepare_to_resume.
12508 (win32_require_context): New declaration.
12509
a442d071
GB
125102014-10-08 Gary Benson <gbenson@redhat.com>
12511
12512 * server.h: Do not include common-exceptions.h.
12513
6f1947e8
GB
125142014-10-08 Gary Benson <gbenson@redhat.com>
12515
12516 * server.h: Do not include cleanups.h.
12517
63b434a4
JH
125182014-09-30 James Hogan <james.hogan@imgtec.com>
12519
12520 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12521 mips64-dsp-linux.c.
12522
c4d9ceb6
YQ
125232014-09-23 Yao Qi <yao@codesourcery.com>
12524
12525 * linux-low.c (lp_status_maybe_breakpoint): New function.
12526 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12527 (count_events_callback): Likewise.
12528 (select_event_lwp_callback): Likewise.
12529 (cancel_breakpoints_callback): Likewise.
12530
89a5711c
DB
125312014-09-19 Don Breazeal <donb@codesourcery.com>
12532
12533 * linux-low.c (handle_extended_wait): Call
12534 linux_ptrace_get_extended_event.
12535 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12536 linux_is_extended_waitstatus.
12537
bffc0964
JB
125382014-09-16 Joel Brobecker <brobecker@adacore.com>
12539
12540 * Makefile.in (CPPFLAGS): Define.
12541 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12542 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12543
0bfdf32f
GB
125442014-09-16 Gary Benson <gbenson@redhat.com>
12545
12546 * inferiors.h (current_inferior): Renamed as...
12547 (current_thread): New variable. All uses updated.
12548 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12549 (maybe_move_out_of_jump_pad): Likewise.
12550 (cancel_breakpoint): Likewise.
12551 (linux_low_filter_event): Likewise.
12552 (wait_for_sigstop): Likewise.
12553 (linux_resume_one_lwp): Likewise.
12554 (need_step_over_p): Likewise.
12555 (start_step_over): Likewise.
12556 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12557 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12558 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12559 and save_inferior as saved_thread.
12560 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12561 saved_thread.
12562 (regcache_invalidate_thread): Likewise.
12563 * remote-utils.c (prepare_resume_reply): Likewise.
12564 * thread-db.c (thread_db_get_tls_address): Likewise.
12565 (disable_thread_event_reporting): Likewise.
12566 (remove_thread_event_breakpoints): Likewise.
12567 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12568 as saved_thread.
12569 * target.h (set_desired_inferior): Renamed as...
12570 (set_desired_thread): New declaration. All uses updated.
12571 * server.c (myresume): Updated comment to reference thread instead
12572 of inferior.
12573 (handle_serial_event): Likewise.
12574 (handle_target_event): Likewise.
12575
361c8ade
GB
125762014-09-12 Tom Tromey <tromey@redhat.com>
12577 Gary Benson <gbenson@redhat.com>
12578
12579 * regcache.h: Include common-regcache.h.
12580 (regcache_read_pc): Don't declare.
12581 * regcache.c (get_thread_regcache_for_ptid): New function.
12582
bd9269f7
GB
125832014-09-11 Tom Tromey <tromey@redhat.com>
12584 Gary Benson <gbenson@redhat.com>
12585
12586 * symbol.c: New file.
12587 * Makefile.in (SFILES): Add symbol.c.
12588 (OBS): Add symbol.o.
12589
f8c1d06b
GB
125902014-09-11 Gary Benson <gbenson@redhat.com>
12591
12592 * target.c (target_stop_ptid, target_continue_ptid): New
12593 functions.
12594
721ec300
GB
125952014-09-11 Tom Tromey <tromey@redhat.com>
12596 Gary Benson <gbenson@redhat.com>
12597
12598 * target.h: Include target/target.h.
12599 * target.c (target_read_memory, target_read_uint32)
12600 (target_write_memory): New functions.
12601
c5e92cca
GB
126022014-09-11 Gary Benson <gbenson@redhat.com>
12603
12604 * server.h (debug_hw_points): Don't declare.
12605 * server.c (debug_hw_points): Don't define. Replace all uses
12606 with show_debug_regs.
12607 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12608 all uses with show_debug_regs.
12609
2e4bb98a
EBM
126102014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12611
12612 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12613 endianness into account.
12614 (ppc_supply_ptrace_register): Likewise.
12615
ac740bc7
JH
126162014-09-03 James Hogan <james.hogan@imgtec.com>
12617
12618 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12619 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12620
97ea6506
GB
126212014-09-03 Gary Benson <gbenson@redhat.com>
12622
12623 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12624 ALL_DEBUG_ADDRESS_REGISTERS.
12625
df7e5265
GB
126262014-09-02 Gary Benson <gbenson@redhat.com>
12627
12628 * i386-low.h: Renamed as...
12629 * x86-low.h: New file. All type, function and variable name
12630 prefixes changed from "i386_" to "x86_". All references updated.
12631 * i386-low.c: Renamed as...
12632 * x86-low.c: New file. All type, function and variable name
12633 prefixes changed from "i386_" to "x86_". All references updated.
12634
ed859da7
GB
126352014-09-02 Gary Benson <gbenson@redhat.com>
12636
12637 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12638 (x86_linux_new_thread): Likewise.
12639
860789c7
GB
126402014-08-29 Gary Benson <gbenson@redhat.com>
12641
12642 * server.h (setjmp.h): Do not include.
12643 (toplevel): Do not declare.
12644 (common-exceptions.h): Include.
12645 (cleanups.h): Likewise.
12646 * server.c (toplevel): Do not define.
12647 (exit_code): New static global.
12648 (detach_or_kill_for_exit_cleanup): New function.
12649 (main): New function. Original main renamed to...
12650 (captured_main): New function.
12651 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12652
ff55e1b5
GB
126532014-08-29 Gary Benson <gbenson@redhat.com>
12654
12655 * Makefile.in (SFILES): Add common/common-exceptions.c.
12656 (OBS): Add common-exceptions.o.
12657 (common-exceptions.o): New rule.
12658 * utils.c (prepare_to_throw_exception): New function.
12659
e9bcb658
GB
126602014-08-29 Gary Benson <gbenson@redhat.com>
12661
12662 * config.in: Regenerate.
12663 * configure: Likewise.
12664
e3180625
GB
126652014-08-29 Gary Benson <gbenson@redhat.com>
12666
12667 * Makefile.in (SFILES): Add common/cleanups.c.
12668 (OBS): cleanups.o.
12669 (cleanups.o): New rule.
12670
e3d6ba5d
GB
126712014-08-29 Gary Benson <gbenson@redhat.com>
12672
12673 * utils.c (internal_vwarning): New function.
12674
7096e886
GB
126752014-08-28 Gary Benson <gbenson@redhat.com>
12676
12677 * utils.h (fatal): Remove declaration.
12678 * utils.c (fatal): Remove function.
12679
14ce3192
GB
126802014-08-28 Gary Benson <gbenson@redhat.com>
12681
12682 * tracepoint.c (gdb_agent_init): Replace fatal with
12683 perror_with_name.
12684 (initialize_tracepoint): Likewise.
12685
50278d59
GB
126862014-08-28 Gary Benson <gbenson@redhat.com>
12687
12688 * remote-utils.c (remote_prepare): Replace fatal with error.
12689
aa96c426
GB
126902014-08-28 Gary Benson <gbenson@redhat.com>
12691
12692 * linux-low.c (linux_async): Replace fatal with warning.
12693 Tidy up and return.
12694 (linux_start_non_stop): Return -1 if linux_async failed.
12695
f7160e97
GB
126962014-08-28 Gary Benson <gbenson@redhat.com>
12697
12698 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12699 gdb_assert.
12700 (i386_dr_low_get_addr): Remove vague comment.
12701 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12702 gdb_assert.
12703
38e08fca
GB
127042014-08-28 Gary Benson <gbenson@redhat.com>
12705
12706 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12707 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12708 internal_error.
12709 (linux_resume_one_lwp): Likewise.
12710 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12711 gdb_assert.
12712 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12713 with internal_error.
12714 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12715 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12716 (find_register_by_name): Replace fatal with internal_error.
12717 (find_regno): Likewise.
12718 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12719 * thread-db.c (thread_db_create_event): Likewise.
12720 (thread_db_load_search): Likewise.
12721 (try_thread_db_load_1): Likewise.
12722 * tracepoint.c (get_jump_space_head): Replace fatal with
12723 internal_error.
12724 (claim_trampoline_space): Likewise.
12725 (have_fast_tracepoint_trampoline_buffer): Likewise.
12726 (cmd_qtstart): Likewise.
12727 (stop_tracing): Likewise.
12728 (fast_tracepoint_collecting): Likewise.
12729 (target_malloc): Likewise.
12730 (download_tracepoint): Likewise.
12731 (download_trace_state_variables): Replace check with gdb_assert.
12732 (upload_fast_traceframes): Replace fatal with internal_error.
12733
34abf635
GB
127342014-08-19 Tom Tromey <tromey@redhat.com>
12735 Gary Benson <gbenson@redhat.com>
12736
12737 * Makefile.in (SFILES): Add common/common-debug.c.
12738 (OBS): Add common-debug.o.
12739 (common-debug.o): New rule.
12740 * debug.h (debug_printf): Don't declare.
12741 * debug.c (debug_printf): Renamed and rewritten as...
12742 (debug_vprintf): New function.
12743
f6e94d78
GB
127442014-08-19 Gary Benson <gbenson@redhat.com>
12745
12746 * utils.h: Do not include print-utils.h.
12747
9239eeab
GB
127482014-08-19 Tom Tromey <tromey@redhat.com>
12749 Gary Benson <gbenson@redhat.com>
12750
12751 * server.h: Add static assertion.
12752 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12753
ef87c8bb
GB
127542014-08-19 Tom Tromey <tromey@redhat.com>
12755 Gary Benson <gbenson@redhat.com>
12756
12757 * Makefile.in (SFILES): Add common/errors.c.
12758 (OBS): Add errors.o.
12759 (IPA_OBS): Add errors-ipa.o.
12760 (errors.o): New rule.
12761 (errors-ipa.o): Likewise.
12762 * utils.h (perror_with_name, error, warning): Don't declare.
12763 * utils.c (warning): Renamed and rewritten as...
12764 (vwarning): New function.
12765 (error): Renamed and rewritten as...
12766 (verror): New function.
12767 (internal_error): Renamed and rewritten as...
12768 (internal_verror): New function.
12769
bb974a24
GB
127702014-08-07 Gary Benson <gbenson@redhat.com>
12771
12772 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12773 * configure: Regenerate.
12774 * config.in: Likewise.
12775 * server.h: Do not include errno.h.
12776 * event-loop.c: Likewise.
12777 * hostio-errno.c: Likewise.
12778 * linux-low.c: Likewise.
12779 * remote-utils.c: Likewise.
12780 * spu-low.c: Likewise.
12781 * utils.c: Likewise.
12782 * gdbreplay.c: Unconditionally include errno.h.
12783
6d3d12eb
GB
127842014-08-07 Gary Benson <gbenson@redhat.com>
12785
12786 * server.h: Do not include string.h.
12787 * event-loop.c: Likewise.
12788 * linux-low.c: Likewise.
12789 * regcache.c: Likewise.
12790 * remote-utils.c: Likewise.
12791 * spu-low.c: Likewise.
12792 * utils.c: Likewise.
12793
dccbb609
GB
127942014-08-07 Gary Benson <gbenson@redhat.com>
12795
12796 * server.h: Do not include gdb_assert.h.
12797
e76df0d0
GB
127982014-08-07 Gary Benson <gbenson@redhat.com>
12799
12800 * server.h: Do not include common-utils.h.
12801
4cb9c816
GB
128022014-08-07 Gary Benson <gbenson@redhat.com>
12803
12804 * server.h: Do not include ptid.h.
12805 * notif.h: Likewise.
12806
3995eeee
GB
128072014-08-07 Gary Benson <gbenson@redhat.com>
12808
12809 * server.h: Do not include gdb_locale.h.
12810
cb9f1a9b
GB
128112014-08-07 Gary Benson <gbenson@redhat.com>
12812
12813 * server.h: Do not include gdb/signals.h.
12814 * win32-low.c: Likewise.
12815
a5fceff8
GB
128162014-08-07 Gary Benson <gbenson@redhat.com>
12817
12818 * server.h: Do not include pathmax.h.
12819
b9391142
GB
128202014-08-07 Gary Benson <gbenson@redhat.com>
12821
12822 * server.h: Do not include libiberty.h.
12823 * linux-bfin-low.c: Likewise.
12824
0e443c87
GB
128252014-08-07 Gary Benson <gbenson@redhat.com>
12826
12827 * server.h: Do not include ansidecl.h.
12828
8ebb3f56
GB
128292014-08-07 Gary Benson <gbenson@redhat.com>
12830
12831 * linux-x86-low.c: Do not include stddef.h.
12832 * lynx-ppc-low.c: Likewise.
12833 * tracepoint.c: Likewise.
12834
8980bdf6
GB
128352014-08-07 Gary Benson <gbenson@redhat.com>
12836
12837 * server.h: Do not include stdarg.h.
12838 * nto-low.c: Likewise.
12839
d7096f71
GB
128402014-08-07 Gary Benson <gbenson@redhat.com>
12841
12842 * server.h: Do not include stdlib.h.
12843 * inferiors.c: Likewise.
12844 * linux-low.c: Likewise.
12845 * regcache.c: Likewise.
12846 * spu-low.c: Likewise.
12847 * tracepoint.c: Likewise.
12848 * utils.c: Likewise.
12849
d02f550d
GB
128502014-08-07 Gary Benson <gbenson@redhat.com>
12851
12852 * server.h: Do not include stdio.h.
12853 * linux-low.c: Likewise.
12854 * remote-utils.c: Likewise.
12855 * spu-low.c: Likewise.
12856 * utils.c: Likewise.
12857 * wincecompat.c: Likewise.
12858
87f6c4e3
GB
128592014-08-06 Gary Benson <gbenson@redhat.com>
12860
12861 * regcache.c (init_register_cache): Move conditionals inside if.
12862
7089dca4
GB
128632014-08-06 Gary Benson <gbenson@redhat.com>
12864
12865 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12866
462f517e
GB
128672014-07-31 Gary Benson <gbenson@redhat.com>
12868
12869 * ax.h: Do not include server.h.
12870 * gdbthread.h: Likewise.
12871 * lynx-low.h: Likewise.
12872 * notif.h: Likewise.
12873
976411d6
GB
128742014-07-30 Gary Benson <gbenson@redhat.com>
12875
12876 * server.h: Include common-defs.h.
12877 Do not include config.h or build-gnulib-gdbserver/config.h.
12878
d41f6d8e
GB
128792014-07-30 Gary Benson <gbenson@redhat.com>
12880
12881 * hostio-errno.c: Move server.h to top of includes list.
12882 * inferiors.c: Likewise.
12883 * linux-x86-low.c: Likewise.
12884 * notif.c: Include server.h.
12885
314c6a35
TT
128862014-07-24 Tom Tromey <tromey@redhat.com>
12887 Gary Benson <gbenson@redhat.com>
12888
12889 * server.h (CORE_ADDR): Now unsigned.
12890
69ff6be5
PA
128912014-07-16 Pedro Alves <palves@redhat.com>
12892
12893 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12894
ce9e3fe7
PA
128952014-07-15 Pedro Alves <palves@redhat.com>
12896
12897 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12898 copy.
12899
e76126e8
PA
129002014-07-11 Pedro Alves <palves@redhat.com>
12901
12902 * linux-low.c (kill_wait_lwp): New function, based on
12903 kill_one_lwp_callback, but use my_waitpid directly.
12904 (kill_one_lwp_callback, linux_kill): Use it.
12905
8e9db26e
PA
129062014-06-23 Pedro Alves <palves@redhat.com>
12907
12908 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12909 before setting DR0..DR3.
12910
698b3e08
GB
129112014-06-20 Gary Benson <gbenson@redhat.com>
12912
12913 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12914 * configure: Regenerated.
12915 * config.in: Likewise.
12916
125f8a3d
GB
129172014-06-20 Gary Benson <gbenson@redhat.com>
12918
12919 * Makefile.in (SFILES): Update locations for files moved
12920 from common to nat.
12921 (object file files): Reordered.
12922
42995dbd
GB
129232014-06-20 Gary Benson <gbenson@redhat.com>
12924
12925 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12926 (i386_dr_low_set_addr): Likewise.
12927 (i386_dr_low_get_addr): Likewise.
12928 (i386_dr_low_can_set_control): Likewise.
12929 (i386_dr_low_set_control): Likewise.
12930 (i386_dr_low_get_control): Likewise.
12931 (i386_dr_low_get_status): Likewise.
12932 (i386_get_debug_register_length): Likewise.
12933 * linux-x86-low.c (i386_dr_low_set_addr):
12934 Changed signature. Made static.
12935 (i386_dr_low_get_addr): Likewise.
12936 (i386_dr_low_set_control): Likewise.
12937 (i386_dr_low_get_control): Likewise.
12938 (i386_dr_low_get_status): Likewise.
12939 (i386_dr_low): New global variable.
12940 * win32-i386-low.c (i386_dr_low_set_addr):
12941 Changed signature. Made static.
12942 (i386_dr_low_get_addr): Likewise.
12943 (i386_dr_low_set_control): Likewise.
12944 (i386_dr_low_get_control): Likewise.
12945 (i386_dr_low_get_status): Likewise.
12946 (i386_dr_low): New global variable.
12947
e1d2394b
MS
129482014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12949
12950 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12951 * Makefile.in (AR, AR_FLAGS): Define.
12952 * configure: Regenerate.
12953
3a8ee006
GB
129542014-06-19 Gary Benson <gbenson@redhat.com>
12955
12956 * Makefile.in (i386-dregs.o): New rule.
12957 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12958 * i386-low.c (target.h): Remove include.
12959 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12960 (DR_CONTROL_SHIFT): Likewise.
12961 (DR_CONTROL_SIZE): Likewise.
12962 (DR_RW_EXECUTE): Likewise.
12963 (DR_RW_WRITE): Likewise.
12964 (DR_RW_READ): Likewise.
12965 (DR_RW_IORW): Likewise.
12966 (DR_LEN_1): Likewise.
12967 (DR_LEN_2): Likewise.
12968 (DR_LEN_4): Likewise.
12969 (DR_LEN_8): Likewise.
12970 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12971 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12972 (DR_ENABLE_SIZE): Likewise.
12973 (DR_LOCAL_SLOWDOWN): Likewise.
12974 (DR_GLOBAL_SLOWDOWN): Likewise.
12975 (DR_CONTROL_RESERVED): Likewise.
12976 (I386_DR_CONTROL_MASK): Likewise.
12977 (I386_DR_VACANT): Likewise.
12978 (I386_DR_LOCAL_ENABLE): Likewise.
12979 (I386_DR_GLOBAL_ENABLE): Likewise.
12980 (I386_DR_DISABLE): Likewise.
12981 (I386_DR_SET_RW_LEN): Likewise.
12982 (I386_DR_GET_RW_LEN): Likewise.
12983 (I386_DR_WATCH_HIT): Likewise.
12984 (i386_wp_op_t): Likewise.
12985 (i386_show_dr): Likewise.
12986 (i386_length_and_rw_bits): Likewise.
12987 (i386_insert_aligned_watchpoint): Likewise.
12988 (i386_remove_aligned_watchpoint): Likewise.
12989 (i386_handle_nonaligned_watchpoint): Likewise.
12990 i386_update_inferior_debug_regs(): Likewise.
12991 (i386_dr_insert_watchpoint): Likewise.
12992 (i386_dr_remove_watchpoint): Likewise.
12993 (i386_dr_region_ok_for_watchpoint): Likewise.
12994 (i386_dr_stopped_data_address): Likewise.
12995 (i386_dr_stopped_by_watchpoint): Likewise.
12996
8f26655c
GB
129972014-06-19 Gary Benson <gbenson@redhat.com>
12998
12999 * i386-low.c (i386_dr_show): Renamed to
13000 i386_show_dr and made static. All uses updated.
13001 (i386_dr_length_and_rw_bits): Renamed to
13002 i386_length_and_rw_bits and made static.
13003 All uses updated.
13004 (i386_dr_insert_aligned_watchpoint): Renamed to
13005 i386_insert_aligned_watchpoint and made static.
13006 All uses updated.
13007 (i386_dr_remove_aligned_watchpoint): Renamed to
13008 i386_remove_aligned_watchpoint and made static.
13009 All uses updated.
13010 (i386_dr_update_inferior_debug_regs): Renamed to
13011 i386_update_inferior_debug_regs and made static.
13012 All uses updated.
13013
b9228891
GB
130142014-06-18 Gary Benson <gbenson@redhat.com>
13015
5171def3
GB
13016 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13017 (i386_dr_low_can_set_control): Likewise.
13018 (i386_get_debug_register_length): Likewise.
13019 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13020 (i386_dr_low_can_set_control): Likewise.
13021 (i386_get_debug_register_length): Likewise.
13022
130232014-06-17 Gary Benson <gbenson@redhat.com>
13024
b9228891
GB
13025 * i386-low.h (i386-dregs.h): New include.
13026 (DR_FIRSTADDR): Now in i386-dregs.h.
13027 (DR_LASTADDR): Likewise.
13028 (DR_NADDR): Likewise.
13029 (DR_STATUS): Likewise.
13030 (DR_CONTROL): Likewise.
13031 (i386_debug_reg_state): Likewise.
13032 (i386_dr_insert_watchpoint): Likewise.
13033 (i386_dr_remove_watchpoint): Likewise.
13034 (i386_dr_region_ok_for_watchpoint): Likewise.
13035 (i386_dr_stopped_data_address): Likewise.
13036 (i386_dr_stopped_by_watchpoint): Likewise.
13037 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13038
4be83cc2
GB
130392014-06-18 Gary Benson <gbenson@redhat.com>
13040
13041 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13042 i386_dr_insert_watchpoint.
13043 (i386_low_remove_watchpoint): Renamed to
13044 i386_dr_remove_watchpoint.
13045 (i386_low_region_ok_for_watchpoint): Renamed to
13046 i386_dr_region_ok_for_watchpoint.
13047 (i386_low_stopped_data_address): Renamed to
13048 i386_dr_stopped_data_address.
13049 (i386_low_stopped_by_watchpoint): Renamed to
13050 i386_dr_stopped_by_watchpoint.
13051 * i386-low.c (i386_show_dr): Renamed to
13052 i386_dr_show and made nonstatic. All uses updated.
13053 (i386_length_and_rw_bits): Renamed to
13054 i386_dr_length_and_rw_bits and made nonstatic.
13055 All uses updated.
13056 (i386_insert_aligned_watchpoint): Renamed to
13057 i386_dr_insert_aligned_watchpoint and made nonstatic.
13058 All uses updated.
13059 (i386_remove_aligned_watchpoint): Renamed to
13060 i386_dr_remove_aligned_watchpoint and made nonstatic.
13061 All uses updated.
13062 (i386_update_inferior_debug_regs): Renamed to
13063 i386_dr_update_inferior_debug_regs and made nonstatic.
13064 All uses updated.
13065 (i386_low_insert_watchpoint): Renamed to
13066 i386_dr_insert_watchpoint. All uses updated.
13067 (i386_low_remove_watchpoint): Renamed to
13068 i386_dr_remove_watchpoint. All uses updated.
13069 (i386_low_region_ok_for_watchpoint): Renamed to
13070 i386_dr_region_ok_for_watchpoint. All uses updated.
13071 (i386_low_stopped_data_address): Renamed to
13072 i386_dr_stopped_data_address. All uses updated.
13073 (i386_low_stopped_by_watchpoint): Renamed to
13074 i386_dr_stopped_by_watchpoint. All uses updated.
13075
131aa0d4
GB
130762014-06-18 Gary Benson <gbenson@redhat.com>
13077
13078 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13079 (i386_dr_low_can_set_control): Likewise.
13080 (i386_insert_aligned_watchpoint): New check.
13081
d9305f7f
GB
130822014-06-18 Gary Benson <gbenson@redhat.com>
13083
13084 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13085 Renamed to state.
13086
e927c9fc
GB
130872014-06-18 Gary Benson <gbenson@redhat.com>
13088
13089 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13090 instead of fatal and error.
13091 (i386_handle_nonaligned_watchpoint): Likewise.
13092
1b6d4134
GB
130932014-06-18 Gary Benson <gbenson@redhat.com>
13094
13095 * i386-low.c (i386_get_debug_register_length): New macro.
13096 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13097 (i386_show_dr): Use debug_printf instead of fprintf. Use
13098 phex to format values.
13099
6e62758f
GB
131002014-06-18 Gary Benson <gbenson@redhat.com>
13101
13102 * i386-low.h: Comment changes.
13103 * i386-low.c: Likewise.
13104
fc6e2f03
GB
131052014-06-18 Gary Benson <gbenson@redhat.com>
13106
13107 * i386-low.c: Whitespace changes.
13108
f9d1eeed
TT
131092014-06-12 Tom Tromey <tromey@redhat.com>
13110
13111 * utils.c (freeargv): Remove.
13112
0b04e523
TT
131132014-06-12 Tom Tromey <tromey@redhat.com>
13114
13115 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13116 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13117 (parse_debug_format_options): Likewise.
13118 (gdbserver_usage): Likewise.
13119 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13120 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13121 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13122 against libiberty.
13123 ($(LIBGNU)): Depend on libiberty.
13124 (all-lib): Recurse into all subdirs.
13125 (install-only): Invoke "install" target in subdirs.
13126 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13127 targets.
13128 * configure: Rebuild.
13129 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13130 for vasprintf, vsnprintf, or gettimeofday.
13131 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13132 srv_tgtobj.
13133
270c9937
JB
131342014-06-05 Joel Brobecker <brobecker@adacore.com>
13135
13136 * development.sh: Delete.
13137 * Makefile.in (config.status): Adjust dependency on development.sh.
13138 * configure.ac: Adjust development.sh source call.
13139 * configure: Regenerate.
13140
0a261ed8
PA
131412014-06-02 Pedro Alves <palves@redhat.com>
13142
13143 * ax.c (gdb_free_agent_expr): New function.
13144 * ax.h (gdb_free_agent_expr): New declaration.
13145 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13146 list.
13147 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13148 static.
13149 (clear_breakpoint_conditions_and_commands): New function.
13150 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13151 (clear_breakpoint_conditions_and_commands): New declaration.
13152
e9dae05e
RR
131532014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13154
13155 * linux-aarch64-low.c (asm/ptrace.h): Include.
13156
5876f503
JK
131572014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13158
13159 Fix TLS access for -static -pthread.
13160 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13161 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13162 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13163
802e8e6d
PA
131642014-05-20 Pedro Alves <palves@redhat.com>
13165
13166 * linux-aarch64-low.c (aarch64_insert_point)
13167 (aarch64_remove_point): No longer check whether the type is
13168 supported here. Adjust to new interface.
13169 (the_low_target): Install aarch64_supports_z_point_type as
13170 supports_z_point_type method.
13171 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13172 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13173 instead of a Z packet char. Adjust.
13174 (arm_supports_z_point_type): New function.
13175 (arm_insert_point, arm_remove_point): Adjust to new interface.
13176 (the_low_target): Install arm_supports_z_point_type.
13177 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13178 (cris_insert_point, cris_remove_point): Adjust to new interface.
13179 Don't check whether the type is supported here.
13180 (the_low_target): Install cris_supports_z_point_type.
13181 * linux-low.c (linux_supports_z_point_type): New function.
13182 (linux_insert_point, linux_remove_point): Adjust to new interface.
13183 * linux-low.h (struct linux_target_ops) <insert_point,
13184 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13185 raw_breakpoint pointer parameter.
13186 <supports_z_point_type>: New method.
13187 * linux-mips-low.c (mips_supports_z_point_type): New function.
13188 (mips_insert_point, mips_remove_point): Adjust to new interface.
13189 Use mips_supports_z_point_type.
13190 (the_low_target): Install mips_supports_z_point_type.
13191 * linux-ppc-low.c (the_low_target): Install NULL as
13192 supports_z_point_type method.
13193 * linux-s390-low.c (the_low_target): Install NULL as
13194 supports_z_point_type method.
13195 * linux-sparc-low.c (the_low_target): Install NULL as
13196 supports_z_point_type method.
13197 * linux-x86-low.c (x86_supports_z_point_type): New function.
13198 (x86_insert_point): Adjust to new insert_point interface. Use
13199 insert_memory_breakpoint. Adjust to new
13200 i386_low_insert_watchpoint interface.
13201 (x86_remove_point): Adjust to remove_point interface. Use
13202 remove_memory_breakpoint. Adjust to new
13203 i386_low_remove_watchpoint interface.
13204 (the_low_target): Install x86_supports_z_point_type.
13205 * lynx-low.c (lynx_target_ops): Install NULL as
13206 supports_z_point_type callback.
13207 * nto-low.c (nto_supports_z_point_type): New.
13208 (nto_insert_point, nto_remove_point): Adjust to new interface.
13209 (nto_target_ops): Install nto_supports_z_point_type.
13210 * mem-break.c: Adjust intro comment.
13211 (struct raw_breakpoint) <raw_type, size>: New fields.
13212 <inserted>: Update comment.
13213 <shlib_disabled>: Delete field.
13214 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13215 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13216 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13217 (raw_bkpt_type_to_target_hw_bp_type): New function.
13218 (find_enabled_raw_code_breakpoint_at): New function.
13219 (find_raw_breakpoint_at): New type and size parameters. Use them.
13220 (insert_memory_breakpoint): New function, based off
13221 set_raw_breakpoint_at.
13222 (remove_memory_breakpoint): New function.
13223 (set_raw_breakpoint_at): Reimplement.
13224 (set_breakpoint): New, based on set_breakpoint_at.
13225 (set_breakpoint_at): Reimplement.
13226 (delete_raw_breakpoint): Go through the_target->remove_point
13227 instead of assuming memory breakpoints.
13228 (find_gdb_breakpoint_at): Delete.
13229 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13230 (find_gdb_breakpoint): New function.
13231 (set_gdb_breakpoint_at): Delete.
13232 (z_type_supported): New function.
13233 (set_gdb_breakpoint_1): New function, loosely based off
13234 set_gdb_breakpoint_at.
13235 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13236 (delete_gdb_breakpoint_at): Delete.
13237 (delete_gdb_breakpoint_1): New function, loosely based off
13238 delete_gdb_breakpoint_at.
13239 (delete_gdb_breakpoint): New function.
13240 (clear_gdb_breakpoint_conditions): Rename to ...
13241 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13242 breakpoint.
13243 (add_condition_to_breakpoint): Make static.
13244 (add_breakpoint_condition): Take a struct breakpoint pointer
13245 instead of an address. Adjust.
13246 (gdb_condition_true_at_breakpoint): Rename to ...
13247 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13248 z_type parameter.
13249 (gdb_condition_true_at_breakpoint): Reimplement.
13250 (add_breakpoint_commands): Take a struct breakpoint pointer
13251 instead of an address. Adjust.
13252 (gdb_no_commands_at_breakpoint): Rename to ...
13253 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13254 parameter. Return true if no breakpoint was found. Change debug
13255 output.
13256 (gdb_no_commands_at_breakpoint): Reimplement.
13257 (run_breakpoint_commands): Rename to ...
13258 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13259 and change return type to boolean.
13260 (run_breakpoint_commands): New function.
13261 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13262 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13263 breakpoint. Go through the_target->remove_point instead of
13264 assuming memory breakpoint.
13265 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13266 software and hardware breakpoints.
13267 (reinsert_raw_breakpoint): Go through the_target->insert_point
13268 instead of assuming memory breakpoint.
13269 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13270 software and hardware breakpoints.
13271 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13272 Check both software and hardware breakpoints.
13273 (validate_inserted_breakpoint): Assert the breakpoint is a
13274 software breakpoint. Set the inserted flag to -1 instead of
13275 setting shlib_disabled.
13276 (delete_disabled_breakpoints): Adjust.
13277 (validate_breakpoints): Only validate software breakpoints.
13278 Adjust to inserted flag change.
13279 (check_mem_read, check_mem_write): Skip breakpoint types other
13280 than software breakpoints. Adjust to inserted flag change.
13281 * mem-break.h (enum raw_bkpt_type): New enum.
13282 (raw_breakpoint, struct process_info): Forward declare.
13283 (Z_packet_to_target_hw_bp_type): Delete declaration.
13284 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13285 (set_gdb_breakpoint, delete_gdb_breakpoint)
13286 (clear_breakpoint_conditions): New declarations.
13287 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13288 (breakpoint_inserted_here): Update comment.
13289 (add_breakpoint_condition, add_breakpoint_commands): Replace
13290 address parameter with a breakpoint pointer parameter.
13291 (gdb_breakpoint_here): Update comment.
13292 (delete_gdb_breakpoint_at): Delete.
13293 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13294 * server.c (process_point_options): Take a struct breakpoint
13295 pointer instead of an address. Adjust.
13296 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13297 delete_gdb_breakpoint.
13298 * spu-low.c (spu_target_ops): Install NULL as
13299 supports_z_point_type method.
13300 * target.h: Include mem-break.h.
13301 (struct target_ops) <prepare_to_access_memory>: Update comment.
13302 <supports_z_point_type>: New field.
13303 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13304 instead of a char. Also take a raw breakpoint pointer.
13305 * win32-arm-low.c (the_low_target): Install NULL as
13306 supports_z_point_type.
13307 * win32-i386-low.c (i386_supports_z_point_type): New function.
13308 (i386_insert_point, i386_remove_point): Adjust to new interface.
13309 (the_low_target): Install i386_supports_z_point_type.
13310 * win32-low.c (win32_supports_z_point_type): New function.
13311 (win32_insert_point, win32_remove_point): Adjust to new interface.
13312 (win32_target_ops): Install win32_supports_z_point_type.
13313 * win32-low.h (struct win32_target_ops):
13314 <supports_z_point_type>: New method.
13315 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13316 instead of a char. Also take a raw breakpoint pointer.
13317
932539e3
PA
133182014-05-20 Pedro Alves <palves@redhat.com>
13319
13320 * mem-break.h: Include break-common.h.
13321 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13322 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13323 (Z_packet_to_target_hw_bp_type): New declaration.
13324 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13325 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13326 (Z_PACKET_ACCESS_WP): Delete macros.
13327 (Z_packet_to_hw_type): Delete function.
13328 * i386-low.h: Don't include break-common.h here.
13329 (Z_packet_to_hw_type): Delete declaration.
13330 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13331 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13332 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13333 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13334 * linux-aarch64-low.c: Don't include break-common.h here.
13335 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13336 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13337 (Z_packet_to_target_hw_bp_type): Delete function.
13338 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13339 function.
13340 (mips_insert_point, mips_remove_point): Use
13341 Z_packet_to_target_hw_bp_type.
13342
4ff0d3d8
PA
133432014-05-20 Pedro Alves <palves@redhat.com>
13344
13345 * linux-aarch64-low.c: Include break-common.h.
13346 (enum target_point_type): Delete.
13347 (Z_packet_to_point_type): Rename to ...
13348 (Z_packet_to_target_hw_bp_type): ... this, and return a
13349 target_hw_bp_type instead.
13350 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13351 instead of an enum target_point_type.
13352 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13353 breakpoint type.
13354 (aarch64_dr_state_insert_one_point)
13355 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13356 (aarch64_handle_aligned_watchpoint)
13357 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13358 Take an enum target_hw_bp_type instead of an enum
13359 target_point_type.
13360 (aarch64_supports_z_point_type): New function.
13361 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13362 use Z_packet_to_target_hw_bp_type.
13363
786dc519
JB
133642014-05-20 Joel Brobecker <brobecker@adacore.com>
13365
13366 * configure.ac: Only use -Werror by default when DEVELOPMENT
13367 is true.
13368 * configure: Regenerate.
13369
9e0aa64f
JK
133702014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13371
13372 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13373 * linux-x86-low.c (X86_64_USER_REGS): New.
13374 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13375
2b577b92
YQ
133762014-04-28 Yao Qi <yao@codesourcery.com>
13377
13378 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13379 name.
13380
94611da2
PA
133812014-04-25 Pedro Alves <palves@redhat.com>
13382
13383 PR server/16255
13384 * linux-low.c (linux_attach_fail_reason_string): New function.
13385 (linux_attach_lwp): Delete.
13386 (linux_attach_lwp_1): Rename to ...
13387 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13388 argument. Remove "initial" parameter. Return int instead of
13389 void. Don't error or warn here.
13390 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13391 failure to attach to the tgid. Call warning when failing to
13392 attach to an lwp.
13393 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13394 argument. Remove "initial" parameter. Return int instead of
13395 void. Don't error or warn here.
13396 (linux_attach_fail_reason_string): New declaration.
13397 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13398 interface change. Use linux_attach_fail_reason_string.
13399
01f9f808
MS
134002014-04-24 Michael Sturm <michael.sturm@mintel.com>
13401 Walfred Tedeschi <walfred.tedeschi@intel.com>
13402
13403 * Makefile.in: Added rules to handle new files
13404 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13405 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13406 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13407 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13408 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13409 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13410 x32-avx512-linux.o.
13411 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13412 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13413 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13414 i386/x32-avx512.xml.
13415 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13416 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13417 i386/x32-avx512-linux.xml.
13418 * i387-fp.c (num_avx512_k_registers): New constant for number
13419 of K registers.
13420 (num_avx512_zmmh_low_registers): New constant for number of
13421 lower ZMM registers (0-15).
13422 (num_avx512_zmmh_high_registers): New constant for number of
13423 higher ZMM registers (16-31).
13424 (num_avx512_ymmh_registers): New contant for number of higher
13425 YMM registers (ymm16-31 added by avx521 on x86_64).
13426 (num_avx512_xmm_registers): New constant for number of higher
13427 XMM registers (xmm16-31 added by AVX512 on x86_64).
13428 (struct i387_xsave): Add space for AVX512 registers.
13429 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13430 Add code to handle AVX512 registers.
13431 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13432 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13433 prototypei from generated file.
13434 (tdesc_amd64_avx512_linux): Likewise.
13435 (init_registers_x32_avx512_linux): Likewise.
13436 (tdesc_x32_avx512_linux): Likewise.
13437 (init_registers_i386_avx512_linux): Likewise.
13438 (tdesc_i386_avx512_linux): Likewise.
13439 (x86_64_regmap): Add AVX512 registers.
13440 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13441 mask.
13442 (initialize_low_arch): Add code to initialize AVX512 registers.
13443
51aa91f9
PA
134442014-04-23 Pedro Alves <palves@redhat.com>
13445
13446 * mem-break.c (find_gdb_breakpoint_at): Make static.
13447 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13448
a4165e94
PA
134492014-04-23 Pedro Alves <palves@redhat.com>
13450
13451 * i386-low.c: Don't include break-common.h here.
13452 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13453 prototype to take target_hw_bp_type as argument instead of a Z
13454 packet char.
13455 * i386-low.h: Include break-common.h here.
13456 (Z_packet_to_hw_type): Declare.
13457 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13458 prototypes.
13459 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13460 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13461 (x86_remove_point): Convert the packet number to a
13462 target_hw_bp_type before calling i386_low_remove_watchpoint.
13463 * win32-i386-low.c (i386_insert_point): Convert the packet number
13464 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13465 (i386_remove_point): Convert the packet number to a
13466 target_hw_bp_type before calling i386_low_remove_watchpoint.
13467
b8acf843
PA
134682014-04-23 Pedro Alves <palves@redhat.com>
13469
13470 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13471
d708bcd1
PA
134722014-04-10 Pedro Alves <palves@redhat.com>
13473
13474 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13475 Check if the condition or command is NULL before checking if the
13476 breakpoint is known. On success, return true.
13477 * mem-break.h (add_breakpoint_condition): Document return.
13478 (add_breakpoint_commands): Add describing comment.
13479 * server.c (skip_to_semicolon): New function.
13480 (process_point_options): Use it.
13481
2eec7d5b
PA
134822014-04-09 Pedro Alves <palves@redhat.com>
13483
13484 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13485 to lwpid_of.
13486
fa96cb38
PA
134872014-02-27 Pedro Alves <palves@redhat.com>
13488
13489 PR 12702
13490 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13491 macros.
13492 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13493 output.
13494 (last_thread_of_process_p): Take a PID argument instead of a
13495 thread pointer.
13496 (linux_wait_for_lwp): Delete.
13497 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13498 functions.
13499 (linux_low_filter_event): New function, party factored out from
13500 linux_wait_for_event.
13501 (linux_wait_for_event): Rename to ...
13502 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13503 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13504 sigsuspend. Check for zombie leaders.
13505 (linux_wait_for_event): Reimplement as wrapper around
13506 linux_wait_for_event_filtered.
13507 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13508 a normal or signal exit is seen, it's the whole process exiting.
13509 (wait_for_sigstop): No longer a for_each_inferior callback.
13510 Rewrite on top of linux_wait_for_event_filtered.
13511 (stop_all_lwps): Call wait_for_sigstop directly.
13512 * server.c (resume, handle_target_event): Handle
13513 TARGET_WAITKIND_NO_RESUMED.
13514
d763de10
JB
135152014-02-26 Joel Brobecker <brobecker@adacore.com>
13516
13517 * win32-low.c (psapi_get_dll_name,
13518 * win32_CreateToolhelp32Snapshot): Delete.
13519 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13520 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13521 Delete.
13522 (handle_load_dll): Add function description.
13523 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13524
850a0f76
JB
135252014-02-26 Joel Brobecker <brobecker@adacore.com>
13526
13527 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13528 Add comment.
13529 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13530 base address when calling win32_add_one_solib.
13531 (handle_load_dll): Delete local variable load_addr.
13532 Remove 0x1000 offset applied to DLL base address when calling
13533 win32_add_one_solib.
13534 (handle_unload_dll): Add comment.
13535
f25b3fc3
JB
135362014-02-26 Joel Brobecker <brobecker@adacore.com>
13537
13538 * win32-low.c (win32_add_all_dlls): Renames
13539 win32_ensure_ntdll_loaded. Rewrite function documentation.
13540 Adjust implementation to always load all DLLs.
13541 Add 0x1000 offset to DLL base address when calling
13542 win32_add_one_solib.
13543 (child_initialization_done): New static global.
13544 (do_initial_child_stuff): Set child_initialization_done to
13545 zero during child initialization, and 1 after. Replace call
13546 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13547 Add comment.
13548 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13549 (handle_unload_dll): Add function documentation.
13550 (get_child_debug_event): Ignore load and unload DLL events
13551 during child initialization.
13552
d86d4aaf
DE
135532014-02-20 Doug Evans <dje@google.com>
13554
3bc32da3 13555 Remove global all_lwps.
d86d4aaf
DE
13556 * inferiors.h (ptid_of): Move here from linux-low.h.
13557 (pid_of, lwpid_of): Ditto.
13558 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13559 parameter is a struct thread_info * now.
13560 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13561 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13562 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13563 directly.
13564 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13565 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13566 * linux-arm-low.c (update_registers_callback): Update, "entry"
13567 parameter is a struct thread_info * now.
13568 Fetch lwpid from current_inferior directly.
13569 (arm_insert_point): Pass &all_threads to find_inferior instead of
13570 &all_lwps.
13571 (arm_remove_point): Ditto.
13572 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13573 (arm_prepare_to_resume): Fetch pid from thread.
13574 (arm_read_description): Fetch lwpid from current_inferior directly.
13575 * linux-low.c (all_lwps): Delete.
13576 (delete_lwp): Delete call to remove_inferior.
13577 (handle_extended_wait): Fetch lwpid from thread.
13578 (add_lwp): Don't set lwp->entry.id. Remove call to
13579 add_inferior_to_list.
13580 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13581 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13582 (kill_one_lwp_callback): Ditto.
13583 (linux_kill): Don't dereference NULL pointer.
13584 Fetch ptid,lwpid from thread.
13585 (get_detach_signal): Fetch ptid from thread.
13586 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13587 Simplify call to regcache_invalidate_thread.
13588 (delete_lwp_callback): Update, "entry" parameter is a
13589 struct thread_info * now. Fetch pid from thread.
13590 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13591 (status_pending_p_callback): Update, "entry" parameter is a
13592 struct thread_info * now. Fetch ptid from thread.
13593 (find_lwp_pid): Update, "entry" parameter is a
13594 struct thread_info * now.
13595 (linux_wait_for_lwp): Fetch pid from thread.
13596 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13597 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13598 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13599 (dequeue_one_deferred_signal): Ditto.
13600 (cancel_breakpoint): Fetch ptid from current_inferior.
13601 (linux_wait_for_event): Pass &all_threads to find_inferior,
13602 not &all_lwps. Fetch ptid, lwpid from thread.
13603 (count_events_callback): Update, "entry" parameter is a
13604 struct thread_info * now.
13605 (select_singlestep_lwp_callback): Ditto.
13606 (select_event_lwp_callback): Ditto.
13607 (cancel_breakpoints_callback): Ditto.
13608 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13609 not &all_lwps.
13610 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13611 (unsuspend_one_lwp): Update, "entry" parameter is a
13612 struct thread_info * now.
13613 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13614 not &all_lwps.
13615 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13616 Fetch lwpid from thread, not lwp.
13617 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13618 Pass &all_threads to find_inferior, not &all_lwps.
13619 (send_sigstop): Fetch lwpid from thread, not lwp.
13620 (send_sigstop_callback): Update, "entry" parameter is a
13621 struct thread_info * now.
13622 (suspend_and_send_sigstop_callback): Ditto.
13623 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13624 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13625 struct thread_info * now.
13626 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13627 from thread, lwp.
13628 (lwp_running): Update, "entry" parameter is a
13629 struct thread_info * now.
13630 (stop_all_lwps): Fetch ptid from thread.
13631 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13632 (linux_resume_one_lwp): Fetch lwpid from thread.
13633 (linux_set_resume_request): Update, "entry" parameter is a
13634 struct thread_info * now. Fetch pid, lwpid from thread.
13635 (resume_status_pending_p): Update, "entry" parameter is a
13636 struct thread_info * now.
13637 (need_step_over_p): Ditto. Fetch lwpid from thread.
13638 (start_step_over): Fetch lwpid from thread.
13639 (linux_resume_one_thread): Update, "entry" parameter is a
13640 struct thread_info * now. Fetch lwpid from thread.
13641 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13642 (proceed_one_lwp): Update, "entry" parameter is a
13643 struct thread_info * now. Fetch lwpid from thread.
13644 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13645 struct thread_info * now.
13646 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13647 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13648 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13649 directly.
13650 (regsets_store_inferior_registers): Ditto.
13651 (fetch_register, store_register): Ditto.
13652 (linux_read_memory, linux_write_memory): Ditto.
13653 (linux_request_interrupt): Ditto.
13654 (linux_read_auxv): Ditto.
13655 (linux_xfer_siginfo): Ditto.
13656 (linux_qxfer_spu): Ditto.
13657 (linux_qxfer_libraries_svr4): Ditto.
13658 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13659 moved to inferiors.h.
13660 (get_lwp): Delete.
13661 (get_thread_lwp): Update.
13662 (struct lwp_info): Delete member "entry". Simplify comment for
13663 member "thread".
13664 (all_lwps): Delete.
13665 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13666 current_inferior directly.
13667 (update_watch_registers_callback): Update, "entry" parameter is a
13668 struct thread_info * now. Fetch pid from thread.
13669 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13670 (mips_insert_point): Fetch lwpid from current_inferior.
13671 Pass &all_threads to find_inferior, not &all_lwps.
13672 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13673 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13674 directly.
13675 (mips_stopped_data_address): Ditto.
13676 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13677 directly.
13678 * linux-tile-low.c (tile_arch_setup): Ditto.
13679 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13680 (update_debug_registers_callback): Update, "entry" parameter is a
13681 struct thread_info * now. Fetch pid from thread.
13682 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13683 Pass &all_threads to find_inferior, not &all_lwps.
13684 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13685 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13686 Pass &all_threads to find_inferior, not &all_lwps.
13687 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13688 (i386_dr_low_get_status): Ditto.
13689 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13690 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13691 (x86_linux_read_description): Ditto.
13692 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13693
3b8361aa
DE
136942014-02-20 Doug Evans <dje@google.com>
13695
13696 * inferiors.c (get_first_inferior): Fix buglet.
13697
f7667f0d
DE
136982014-02-19 Doug Evans <dje@google.com>
13699
13700 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13701 * inferiors.c (add_thread): Change result type to struct thread_info *.
13702 All callers updated.
13703 (add_lwp): Call add_thread here instead of in callers.
13704 All callers updated.
13705 * linux-low.h (get_lwp_thread): Rewrite.
13706 (struct lwp_info): New member "thread".
13707
b3312d80
DE
137082014-02-19 Doug Evans <dje@google.com>
13709
13710 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13711 All callers updated.
13712
ecc6f45c
DE
137132014-02-19 Doug Evans <dje@google.com>
13714
13715 * inferiors.c (add_thread): Fix whitespace.
13716
649ebbca
DE
137172014-02-19 Doug Evans <dje@google.com>
13718
13719 * dll.c (clear_dlls): Replace accessing list implemention details
13720 with API function.
13721 * gdbthread.h (get_first_thread): Declare.
13722 * inferiors.c (for_each_inferior_with_data): New function.
13723 (get_first_thread): New function.
13724 (find_thread_ptid): Simplify.
13725 (get_first_inferior): New function.
13726 (clear_list): Delete.
13727 (one_inferior_p): New function.
13728 (clear_inferior_list): New function.
13729 (clear_inferiors): Update.
13730 * inferiors.h (for_each_inferior_with_data): Declare.
13731 (clear_inferior_list): Declare.
13732 (one_inferior_p): Declare.
13733 (get_first_inferior): Declare.
13734 * linux-low.c (linux_wait_for_event): Replace accessing list
13735 implemention details with API function.
13736 * server.c (target_running): Ditto.
13737 (accumulate_file_name_length): New function.
13738 (emit_dll_description): New function.
13739 (handle_qxfer_libraries): Replace accessing list implemention
13740 details with API function.
13741 (handle_qxfer_threads_worker): New function.
13742 (handle_qxfer_threads_proper): Replace accessing list implemention
13743 details with API function.
13744 (handle_query): Ditto.
13745 (visit_actioned_threads_callback_ftype): New typedef.
13746 (visit_actioned_threads_data): New struct.
13747 (visit_actioned_threads): Rewrite to be find_inferior callback.
13748 (resume): Call find_inferior.
13749 (handle_status): Replace accessing list implemention
13750 details with API function.
13751 (process_serial_event): Replace accessing list implemention details
13752 with API function.
13753 * target.c (set_desired_inferior): Replace accessing list implemention
13754 details with API function.
13755 * tracepoint.c (same_process_p): New function.
13756 (gdb_agent_about_to_close): Replace accessing list implemention
13757 details with API function.
13758 * win32-low.c (child_delete_thread): Replace accessing list
13759 implemention details with API function.
13760 (match_dll_by_basename): New function.
13761 (dll_is_loaded_by_basename): New function.
13762 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13763 details call to dll_is_loaded_by_basename.
13764
80894984
DE
137652014-02-19 Doug Evans <dje@google.com>
13766
13767 * dll.h (struct dll_info): Add comment.
13768 * gdbthread.h (struct thread_info): Add comment.
13769 (current_ptid): Simplify.
13770 * inferiors.c (add_process): Update.
13771 (remove_process): Update.
13772 * inferiors.h (struct process_info): Rename member "head" to "entry".
13773 * linux-low.c (delete_lwp): Update.
13774 (add_lwp): Update.
13775 (last_thread_of_process_p): Update.
13776 (kill_one_lwp_callback, linux_kill): Update.
13777 (status_pending_p_callback): Update.
13778 (wait_for_sigstop): Update. Simplify read of ptid.
13779 (start_step_over): Update.
13780 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13781 (get_lwp_thread): Update.
13782 (struct lwp_info): Rename member "head" to "entry".
13783 * regcache.h (inferior_list_entry): Delete.
13784 * server.c (kill_inferior_callback): Update.
13785 (detach_or_kill_inferior_callback): Update.
13786 (print_started_pid): Update.
13787 (print_attached_pid): Update.
13788 (process_serial_event): Simplify read of ptid.
13789 * thread-db.c (thread_db_create_event): Update.
13790 (thread_db_get_tls_address): Update.
13791 * win32-low.c (current_inferior_ptid): Simplify.
13792
46917d26
TT
137932014-02-19 Tom Tromey <tromey@redhat.com>
13794
13795 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13796 argument.
13797 (target_supports_btrace): Update.
13798
0759a81e
YQ
137992014-02-14 Yao Qi <yao@codesourcery.com>
13800
13801 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13802 (rsp-low-ipa.o): New target.
13803
a7191e8b
TT
138042014-02-12 Tom Tromey <tromey@redhat.com>
13805
13806 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13807 convert_ascii_to_int.
13808 * regcache.c (registers_to_string): Likewise.
13809 * remote-utils.c (decode_M_packet): Likewise.
13810 * server.c (process_serial_event): Likewise.
13811
ff0e980e
TT
138122014-02-12 Tom Tromey <tromey@redhat.com>
13813
13814 * server.c (handle_query, handle_v_run): Use hex2bin, not
13815 unhexify.
13816 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13817
e9371aff
TT
138182014-02-12 Tom Tromey <tromey@redhat.com>
13819
13820 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13821 convert_int_to_ascii.
13822 * regcache.c (registers_to_string, collect_register_as_string):
13823 Likewise.
13824 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13825 Likewise.
13826 * server.c (process_serial_event): Likewise.
13827 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13828 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13829
971dc0b8
TT
138302014-02-12 Tom Tromey <tromey@redhat.com>
13831
13832 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13833 bin2hex, not hexify.
13834 * tracepoint.c (cmd_qtstatus): Likewise.
13835
0a822afb
TT
138362014-02-12 Tom Tromey <tromey@redhat.com>
13837
13838 * remote-utils.c (monitor_output): Pass explicit length to
13839 hexify.
13840
9c3d6531
TT
138412014-02-12 Tom Tromey <tromey@redhat.com>
13842
13843 * tracepoint.c: Include rsp-low.h.
13844 * server.c: Include rsp-low.h.
13845 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13846 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13847 declare.
13848 * remote-utils.c: Include rsp-low.h.
13849 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13850 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13851 (convert_int_to_ascii, convert_ascii_to_int): Move to
13852 common/rsp-low.c.
13853 * regcache.c: Include rsp-low.h.
13854 * ax.c: Include rsp-low.h.
13855 * Makefile.in (SFILES): Add common/rsp-low.c.
13856 (OBS): Add rsp-low.o.
13857 (rsp-low.o): New target.
13858
01fd3ea5
TT
138592014-02-12 Tom Tromey <tromey@redhat.com>
13860
13861 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13862 Include print-utils.h.
13863 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13864 (plongest, thirty_two, phex_nz): Remove.
13865 * Makefile.in (SFILES): Add common/print-utils.c.
13866 (OBS): Add print-utils.o.
13867 (print-utils-ipa.o): New target.
13868 (print-utils.o): New target.
13869 (IPA_OBJS): Add print-utils-ipa.o.
13870
e99dc820
TT
138712014-02-06 Tom Tromey <tromey@redhat.com>
13872
13873 * Makefile.in (SFILES): Fix indentation.
13874
ee1e2d4f
DE
138752014-02-05 Doug Evans <dje@google.com>
13876
13877 * linux-low.c (linux_wait_for_event): Improve comment.
13878 (linux_wait_1): Keep current_inferior in sync with event_child.
13879
f5a02773
DE
138802014-01-22 Doug Evans <dje@google.com>
13881
13882 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13883
87ce2a04
DE
138842014-01-22 Doug Evans <dje@google.com>
13885
13886 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13887 * configure: Regenerate.
13888 * config.in: Regenerate.
13889 * Makefile.in (SFILES): Add debug.c.
13890 (OBS): Add debug.o.
13891 * debug.c: New file.
13892 * debug.h: New file.
13893 * linux-aarch64-low.c (*): Update all debugging printfs to use
13894 debug_printf instead of fprintf.
13895 * linux-arm-low.c (*): Ditto.
13896 * linux-cris-low.c (*): Ditto.
13897 * linux-crisv32-low.c (*): Ditto.
13898 * linux-m32r-low.c (*): Ditto.
13899 * linux-sparc-low.c (*): Ditto.
13900 * linux-x86.c (*): Ditto.
13901 * linux-low.c (*): Ditto.
13902 (linux_wait_1): Add calls to debug_enter, debug_exit.
13903 (linux_wait): Remove redundant debugging printf.
13904 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13905 (linux_resume, unstop_all_lwps): Ditto.
13906 * mem-break.c (*): Update all debugging printfs to use
13907 debug_printf instead of fprintf.
13908 * remote-utils.c (*): Ditto.
13909 * thread-db.c (*): Ditto.
13910 * server.c #include <ctype.h>, "gdb_vecs.h".
13911 (debug_threads): Moved to debug.c.
13912 (*): Update all debugging printfs to use debug_printf instead of
13913 fprintf.
13914 (start_inferior): Replace call to fflush with call to debug_flush.
13915 (monitor_show_help): Mention set debug-format.
13916 (parse_debug_format_options): New function.
13917 (handle_monitor_command): Handle "monitor set debug-format".
13918 (gdbserver_usage): Mention --debug-format.
13919 (main): Parse --debug-format.
13920 * server.h (debug_threads): Declaration moved to debug.h.
13921 #include "debug.h".
13922 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13923 trace_debug_1 that uses debug_printf.
13924 (tracepoint_look_up_symbols): Update all debugging printfs to use
13925 debug_printf instead of fprintf.
13926
e671835b
BS
139272014-01-20 Baruch Siach <baruch@tkos.co.il>
13928
13929 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13930 sys/ptrace.h.
13931
b5737fa9
PA
139322014-01-17 Pedro Alves <palves@redhat.com>
13933
ea38d2a9 13934 PR build/16445
c7faa97a
PA
13935 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13936 defined after including gdb_proc_service.h.
b5737fa9 13937
40ed484e
DE
139382014-01-16 Doug Evans <dje@google.com>
13939
13940 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13941 (match_dll): Use it.
13942
969c39fb
MM
139432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13944
13945 * target.h (target_ops) <read_btrace>: Change parameters and
13946 return type to allow error reporting.
13947 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13948 trace reading errors on.
13949 * linux-low.c (linux_low_read_btrace): Pass trace reading
13950 errors on.
13951 (linux_low_disable_btrace): New.
13952
ab7f45ba
DE
139532014-01-15 Doug Evans <dje@google.com>
13954
13955 * inferiors.c (thread_id_to_gdb_id): Delete.
13956 * inferiors.h (thread_id_to_gdb_id): Delete.
13957
66af0f44
EZ
139582014-01-13 Eli Zaretskii <eliz@gnu.org>
13959
13960 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13961 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13962 versions.
13963
9939e131
PA
139642014-01-08 Pedro Alves <palves@redhat.com>
13965
13966 * server.c (handle_status): Don't discard previous queued stop
13967 replies or thread's pending status here.
13968 (main) <disconnection>: Do it here instead.
13969
b7ea362b
PA
139702014-01-08 Pedro Alves <palves@redhat.com>
13971
13972 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13973 * server.c (visit_actioned_threads, handle_pending_status): New
13974 function.
13975 (handle_v_cont): Factor out parts to ...
13976 (resume): ... this new function. If in all-stop, and a thread
13977 being resumed has a pending status, report it without actually
13978 resuming.
13979 (myresume): Adjust to use the new 'resume' function.
13980 (clear_pending_status_callback, set_pending_status_callback)
13981 (find_status_pending_thread_callback): New functions.
13982 (handle_status): Handle the case of multiple threads having
13983 interesting statuses to report. Report threads' real last signal
13984 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13985 with an interesting thread to report the status for, instead of
13986 always reporting the status of the first thread.
13987
28498c42
JB
139882014-01-01 Joel Brobecker <brobecker@adacore.com>
13989
13990 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13991 * gdbreplay.c (gdbreplay_version): Likewise.
13992
f45c82da
YZ
139932013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13994
13995 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13996 iov.iov_len with the real length in use.
13997
379a5e2d
JB
139982013-12-13 Joel Brobecker <brobecker@adacore.com>
13999
14000 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14001 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14002 for all targets that use win32-low.c.
14003 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14004 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14005
4210d83e
PA
140062013-12-13 Pedro Alves <palves@redhat.com>
14007
14008 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14009 if equal to TARGET_WAITKIND_LOADED.
14010 * win32-low.c (cached_status): New static global.
14011 (win32_wait): Add declaration.
14012 (do_initial_child_stuff): Flush all initial pending debug events
14013 up to the initial breakpoint.
14014 (win32_wait): If CACHED_STATUS was set, return that instead
14015 of doing a real wait. Remove the code resuming the execution
14016 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14017 during the initial phase. Also remove the code changing
14018 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14019 TARGET_WAITKIND_STOPPED.
14020
e7f0d979
YQ
140212013-12-11 Yao Qi <yao@codesourcery.com>
14022
14023 * notif.c (handle_notif_ack): Return 0 if no notification
14024 matches.
14025
ebcf782c
DE
140262013-11-20 Doug Evans <dje@google.com>
14027
14028 * linux-low.c (linux_set_resume_request): Fix comment.
14029
20ad9378
DE
140302013-11-20 Doug Evans <dje@google.com>
14031
14032 * linux-low.c (resume_status_pending_p): Tweak comment.
14033
a196ebeb
WT
140342013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14035
14036 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14037 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14038 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14039 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14040 (srv_amd64_regobj): Add amd64-mpx.o.
14041 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14042 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14043 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14044 * i387-fp.c (num_pl_bnd_register) Added constant.
14045 (num_pl_bnd_cfg_registers) Added constant.
14046 (struct i387_xsave) Added reserved area and MPX fields.
14047 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14048 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14049 function.
14050 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14051 (init_registers_amd64_mpx_linux): Declare new function.
14052 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14053 (x86_64_regmap): Add MPX registers.
14054 (x86_linux_read_description): Add MPX case.
14055 (initialize_low_arch): Initialize MPX targets.
14056
0080a2f6
TT
140572013-11-18 Tom Tromey <tromey@redhat.com>
14058
14059 * configure: Rebuild.
14060 * configure.ac: Don't check for stdlib.h.
14061 * gdbreplay.c: Unconditionally include stdlib.h.
14062
2978b111
TT
140632013-11-18 Tom Tromey <tromey@redhat.com>
14064
14065 * config.in: Rebuild.
14066 * configure: Rebuild.
14067 * configure.ac: Don't use AC_HEADER_DIRENT.
14068
a3d08894
TT
140692013-11-18 Tom Tromey <tromey@redhat.com>
14070
14071 * server.h: Don't check HAVE_STRING_H.
14072 * gdbreplay.c: Don't check HAVE_STRING_H.
14073 * configure: Rebuild.
14074
0a5dd17d
TT
140752013-11-18 Tom Tromey <tromey@redhat.com>
14076
14077 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14078 LIBGNU.
14079
1bd2f0ba
TT
140802013-11-08 Tom Tromey <tromey@redhat.com>
14081
14082 * configure, config.in: Rebuild.
14083 * configure.ac: Remove unused configury.
14084
3266f10b
TT
140852013-11-08 Tom Tromey <tromey@redhat.com>
14086
14087 * acinclude.m4: Include common.m4, codeset.m4.
14088 * configure, config.in: Rebuild.
14089 * configure.ac: Use GDB_AC_COMMON.
14090
6682d959
AA
140912013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14092
14093 * linux-s390-low.c (HWCAP_S390_TE): New define.
14094 (s390_arch_setup): Consider the TE field in the HWCAP for
14095 determining 'have_regset_tdb'.
14096
fd0a4d76
SDJ
140972013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14098
14099 PR gdb/16014
14100 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14101 call to sizeof.
14102
1a3d890b
PA
141032013-10-02 Pedro Alves <palves@redhat.com>
14104
14105 * server.c (process_serial_event): Don't output "GDBserver
14106 exiting" if GDB is connected through stdio.
14107 * target.c (mywait): Likewise, be silent if GDB is connected
14108 through stdio.
14109
97ad4581
JB
141102013-10-01 Joel Brobecker <brobecker@adacore.com>
14111
14112 * lynx-low.c (lynx_add_threads_after_attach): New function.
14113 (lynx_attach): Remove call to add_thread. Add call to
14114 lynx_add_threads_after_attach instead.
14115
5b4e221c
MF
141162013-09-28 Mike Frysinger <vapier@gentoo.org>
14117
14118 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14119 * config.in, configure: Regenerated.
14120
ee47b2f8
YQ
141212013-09-18 Yao Qi <yao@codesourcery.com>
14122
14123 PR server/15959
14124 * server.c (start_inferior): Clear 'resume_info'.
14125
d6707650 141262013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14127
d6707650
JW
14128 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14129 for each register.
14130
9243dd0e 141312013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14132
9243dd0e
JW
14133 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14134 linux-tile-low.o to srv_tgtobj.
14135
c623a6ef
WN
141362013-09-16 Will Newton <will.newton@linaro.org>
14137
14138 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14139 out regs.
14140
fb71d39e
PA
141412013-09-06 Pedro Alves <palves@redhat.com>
14142
14143 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14144 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14145 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14146 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14147 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14148 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14149
8e7e9910
PA
141502013-09-06 Pedro Alves <palves@redhat.com>
14151
14152 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14153 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14154
7c3a12ca
PA
141552013-09-06 Pedro Alves <palves@redhat.com>
14156
14157 * linux-amd64-ipa.c: Include tracepoint.h.
14158 * linux-i386-ipa.c: Include tracepoint.h.
14159
8eb3d7b6
RW
141602013-09-06 Ricard Wanderlof <ricardw@axis.com>
14161
14162 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14163 (ps_get_thread_area): New function.
14164
eddddb9d
RW
141652013-09-06 Ricard Wanderlof <ricardw@axis.com>
14166
14167 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14168 (initialize_low_arch): Call init_registers_crisv32 rather than
14169 init_register_crisv32.
14170
533b0600
PA
141712013-09-05 Pedro Alves <palves@redhat.com>
14172
14173 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14174 to ...
14175 * hostio.h: ... this new file.
14176 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14177 win32-low.c: Include hostio.h.
14178
0ce3d3b5
PA
141792013-09-05 Pedro Alves <palves@redhat.com>
14180
14181 * server.h (gdb_client_data, handler_func, callback_handler_func)
14182 (delete_file_handler, add_file_handler, append_callback_event)
14183 (delete_callback_event, start_event_loop, initialize_event_loop):
14184 Move to event-loop.h and include it.
14185 * event-loop.h: New file.
14186
799cdc37
PA
141872013-09-05 Pedro Alves <palves@redhat.com>
14188
14189 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14190 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14191 (loaded_dll, unloaded_dll): Move to ...
14192 * dll.h: ... this new file.
14193 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14194
6a6bbd9d
PA
141952013-09-05 Pedro Alves <palves@redhat.com>
14196
14197 * server.h (current_process, get_thread_process, all_processes)
14198 (add_inferior_to_list, for_each_inferior, current_inferior)
14199 (remove_inferior, add_process, remove_process, find_process_pid)
14200 (have_started_inferiors_p, have_attached_inferiors_p)
14201 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14202 (clear_inferiors, find_inferior, find_inferior_id)
14203 (inferior_target_data, set_inferior_target_data)
14204 (inferior_regcache_data, set_inferior_regcache_data): Move to
14205 inferiors.h, and include it.
14206 * inferiors.h: New file.
14207
f699aaba
PA
142082013-09-05 Pedro Alves <palves@redhat.com>
14209
14210 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14211 Move ...
72f4393d 14212 * ax.h: ... here.
f699aaba 14213
c144c7a0
PA
142142013-09-05 Pedro Alves <palves@redhat.com>
14215
14216 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14217 tracepoint.h.
14218 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14219 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14220 (handle_tracepoint_general_set, handle_tracepoint_query)
14221 (tracepoint_finished_step, tracepoint_was_hit)
14222 (release_while_stepping_state_list, current_traceframe)
14223 (in_readonly_region, traceframe_read_mem)
14224 (fetch_traceframe_registers, traceframe_read_sdata)
14225 (traceframe_read_info, struct fast_tpoint_collect_status)
14226 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14227 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14228 (supply_fast_tracepoint_registers)
14229 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14230 (ipa_tdesc, claim_trampoline_space)
14231 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14232 (agent_mem_read, agent_get_trace_state_variable_value)
14233 (agent_set_trace_state_variable_value, agent_tsv_read)
14234 (agent_mem_read_string, get_raw_reg_func_addr)
14235 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14236 * tracepoint.h: ... this new file.
14237
ff42e6ab
PA
142382013-09-05 Pedro Alves <palves@redhat.com>
14239
14240 * server.h (perror_with_name, error, fatal, warning, paddress)
14241 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14242 include it.
14243 * utils.h: New file.
14244
541af0f4
PA
142452013-09-05 Pedro Alves <palves@redhat.com>
14246
14247 * server.h (remote_debug, noack_mode, transport_is_reliable)
14248 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14249 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14250 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14251 (write_enn, initialize_async_io, enable_async_io)
14252 (disable_async_io, check_remote_input_interrupt_request)
14253 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14254 (dead_thread_notify, prepare_resume_reply)
14255 (decode_address_to_semicolon, decode_address, decode_m_packet)
14256 (decode_M_packet, decode_X_packet, decode_xfer_write)
14257 (decode_search_memory_packet, unhexify, hexify)
14258 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14259 (look_up_one_symbol, relocate_instruction)
14260 (monitor_output): Move to remote-utils.h, and include it.
14261 * remote-utils.h: New file.
14262
eebdf26b
PA
142632013-09-05 Pedro Alves <palves@redhat.com>
14264
14265 * server.h (_): Delete.
14266
3aafd2ff
PA
142672013-09-02 Pedro Alves <palves@redhat.com>
14268
14269 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14270 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14271 allocated.
14272 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14273
cee83bcb
PM
142742013-09-02 Pierre Muller <muller@sourceware.org>
14275
14276 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14277 or WriteProcessMemory complete successfully and handle
14278 ERROR_PARTIAL_COPY error.
14279
9a13b2fa
PA
142802013-09-02 Pedro Alves <palves@redhat.com>
14281
14282 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14283 error instead of EIO.
14284
602e3198
JK
142852013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14286
14287 PR server/15604
14288 * linux-low.c: Include filestuff.h.
14289 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14290 * lynx-low.c: Include filestuff.h.
14291 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14292 * server.c: Include filestuff.h.
14293 (main): Call notice_open_fds.
14294 * spu-low.c: Include filestuff.h.
14295 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14296
96d7229d
LM
142972013-08-22 Luis Machado <lgustavo@codesourcery.com>
14298
14299 * Makefile.in: Explain why ../target and ../nat are not
14300 listed as include file search paths.
14301 (linux-waitpid.o): New object file rule.
14302 * configure.srv (srv_native_linux_obj): New variable.
14303 Replace all occurrences of linux native object files with
14304 $srv_native_linux_obj.
14305 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14306 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14307 (linux_enable_event_reporting): Remove declaration.
14308 (my_waitpid): Moved to common/linux-waitpid.c.
14309 (linux_wait_for_event): Pass ptid when calling
14310 linux_enable_event_reporting.
14311 (linux_supports_tracefork_flag): Remove.
14312 (linux_enable_event_reporting): Likewise.
14313 (linux_tracefork_grandchild): Remove.
14314 (STACK_SIZE): Moved to common/linux-ptrace.c.
14315 (linux_tracefork_child): Remove.
14316 (linux_test_for_tracefork): Remove.
14317 (linux_look_up_symbols): Call linux_supports_traceclone.
14318 (initialize_low): Remove call to linux_test_for_tracefork.
14319 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14320 common/linux-ptrace.h.
14321 (PTRACE_TYPE_ARG4): Likewise.
14322 Include linux-ptrace.h.
14323
32940073
PA
143242013-08-21 Pedro Alves <palves@redhat.com>
14325
14326 * config.in: Renegerate.
14327
33b60d58 143282013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14329
33b60d58
LM
14330 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14331 (SFILES): Remove $(srcdir)/common/target-common.c and
14332 add $(srcdir)/target/waitstatus.c.
14333 (OBS): Remove target-common.o and add waitstatus.o.
14334 (server_h): Remove $(srcdir)/../common/target-common.h and
14335 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14336 and $(srcdir)/../target/waitstatus.h.
14337 (target-common.o): Remove.
14338 (waitstatus.o): New target object file.
14339 * target.h: Do not include target-common.h and
14340 include target/resume.h, target/wait.h and
14341 target/waitstatus.h.
14342
b8e1b30e
LM
143432013-08-13 Luis Machado <lgustavo@codesourcery.com>
14344
14345 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14346 to PTRACE_TYPE_ARG3.
14347 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14348 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14349 PTRACE_TYPE_ARG4.
14350 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14351 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14352
7a60ad40
YQ
143532013-07-27 Jie Zhang <jie@codesourcery.com>
14354 Daniel Jacobowitz <dan@codesourcery.com>
14355 Yao Qi <yao@codesourcery.com>
14356
14357 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14358 (mips-linux-watch.o): New rule.
14359 (mips_linux_watch_h): New variable.
14360 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14361 srv_tgtobj.
14362 * linux-mips-low.c: Include mips-linux-watch.h.
14363 (struct arch_process_info, struct arch_lwp_info): New.
14364 (update_watch_registers_callback): New function.
14365 (mips_linux_new_process, mips_linux_new_thread) New functions.
14366 (mips_linux_prepare_to_resume, mips_insert_point): New
14367 functions.
14368 (mips_remove_point, mips_stopped_by_watchpoint): New
14369 functions.
14370 (rsp_bp_type_to_target_hw_bp_type): New function.
14371 (mips_stopped_data_address): New function.
14372 (the_low_target): Add watchpoint support functions.
14373
de6f69ad
YQ
143742013-07-27 Yao Qi <yao@codesourcery.com>
14375
14376 * i386-low.c: Include break-common.h.
14377 (enum target_hw_bp_type): Remove.
14378
3360c0bf
LM
143792013-07-24 Luis Machado <lgustavo@codesourcery.com>
14380
14381 * Makefile.in (SFILES): /common/target-common.c.
14382 (OBS): Add target-common.o.
14383 (server_h): Add $(srcdir)/../common/target-common.h.
14384 (target-common.o): New target.
14385 * server.c (queue_stop_reply_callback): Free
14386 status string after use.
14387 * target.c (target_waitstatus_to_string): Remove.
14388 * target.h: Include target-common.h.
14389 (resume_kind): Likewise.
14390 (target_waitkind): Likewise.
14391 (target_waitstatus): Likewise.
14392 (TARGET_WNOHANG): Likewise.
14393
bd885420
YQ
143942013-07-04 Yao Qi <yao@codesourcery.com>
14395
14396 * Makefile.in (host_alias): Use @host_noncanonical@.
14397 (target_alias): Use @target_noncanonical@.
14398 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14399 ACX_NONCANONICAL_HOST.
14400 * configure: Regenerated.
14401
14402 Revert:
14403 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14404
14405 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14406 * configure: Rebuild.
14407 * Makefile.in (version_host, version_target): Get from configure.
14408 (version.c): Use $(version_host) and $(version_target).
14409
17ef446e
PA
144102013-07-03 Pedro Alves <palves@redhat.com>
14411
14412 * Makefile.in (config.status): Depend on development.sh.
14413 * acinclude.m4: Include libmcheck.m4.
14414 * configure: Regenerate.
14415
7a9a7487
MG
144162013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14417
14418 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14419 attribute inside the parentheses.
14420 (winapi_DebugSetProcessKillOnExit): Ditto.
14421 (winapi_DebugBreakProcess): Ditto.
14422 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14423
49b64de6
MG
144242013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14425
14426 * notif.h (notif_event): Add a dummy member to avoid compiler
14427 errors.
14428
d5749ee7
PA
144292013-07-01 Pedro Alves <palves@redhat.com>
14430
14431 * hostio.c (HOSTIO_PATH_MAX): Define.
14432 (require_filename, handle_open, handle_unlink, handle_readlink):
14433 Use it.
14434
d8d2a3ee
PA
144352013-07-01 Pedro Alves <palves@redhat.com>
14436
14437 * server.h: Include "pathmax.h".
14438 * linux-low.c: Don't include sys/param.h.
14439 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14440 MAXPATHLEN.
14441 * win32-low.c: Don't include sys/param.h.
14442 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14443
bc7dea8d
PA
144442013-07-01 Pedro Alves <palves@redhat.com>
14445
14446 * event-loop.c: Don't check HAVE_UNISTD_H before including
14447 <unistd.h>.
14448 * gdbreplay.c: Likewise.
14449 * remote-utils.c: Likewise.
14450 * server.c: Likewise.
14451 * configure.ac: Don't check for unistd.h.
14452 * configure: Regenerate.
14453
d6c2da54
TT
144542013-06-28 Tom Tromey <tromey@redhat.com>
14455
14456 * Makefile.in (version.c): Use version.in, not
14457 common/version.in.
14458
257b6bec
MG
144592013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14460
14461 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14462 * configure: Rebuild.
14463 * Makefile.in (version_host, version_target): Get from configure.
14464 (version.c): Use $(version_host) and $(version_target).
14465
86ebe149
DK
144662013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14467
14468 Fix trace-status to output user name without trailing colon.
14469 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14470
f30aa5af
DK
144712013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14472
14473 Fix trace-status to output proper start-time and stop-time.
14474 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14475 output start time and stop time in hex as gdb expects.
14476
28a93511
YQ
144772013-06-26 Pedro Alves <pedro@codesourcery.com>
14478
14479 * tracepoint.c (build_traceframe_info_xml): Output trace state
14480 variables present in the trace buffer.
14481
01208463
TT
144822013-06-24 Tom Tromey <tromey@redhat.com>
14483
14484 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14485 create-version.sh.
14486 (version.o): Remove.
14487 * gdbreplay.c: Include version.h.
14488 (version, host_name): Don't declare.
14489 * server.h: Include version.h.
14490 (version, host_name): Don't declare.
14491
760256f9
PA
144922013-06-12 Pedro Alves <palves@redhat.com>
14493
14494 * linux-x86-low.c (linux_is_elf64): Delete global.
14495 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14496 with local linux_pid_exe_is_elf_64_file use.
14497
030031ee
PA
144982013-06-11 Pedro Alves <palves@redhat.com>
14499
14500 * linux-low.c (regset_disabled, disable_regset): New functions.
14501 (regsets_fetch_inferior_registers)
14502 (regsets_store_inferior_registers): Use them.
14503 (initialize_regsets_info); Don't allocate the disabled_regsets
14504 array here.
14505 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14506 comment.
14507
5da6eb0a
PA
145082013-06-11 Pedro Alves <palves@redhat.com>
14509
14510 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14511 xmalloc.
14512
7e5aaa09
PA
145132013-06-11 Pedro Alves <palves@redhat.com>
14514
14515 * linux-x86-low.c (initialize_low_arch): Call
14516 init_registers_x32_avx_linux.
14517
d878444c
JK
145182013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14519
14520 Fix compatibility with Android Bionic.
14521 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14522 it is not empty.
14523
3aee8918
PA
145242013-06-07 Pedro Alves <palves@redhat.com>
14525
5f2b57b5 14526 PR server/14823
3aee8918
PA
14527 * Makefile.in (OBS): Add tdesc.o.
14528 (IPA_OBJS): Add tdesc-ipa.o.
14529 (tdesc-ipa.o): New rule.
14530 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14531 interface.
14532 * linux-low.c (new_inferior): Delete.
14533 (disabled_regsets, num_regsets): Delete.
14534 (linux_add_process): Adjust to set the new per-process
14535 new_inferior flag.
14536 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14537 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14538 was a stop. When calling arch_setup, switch the current inferior
14539 to the thread that got an event.
14540 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14541 (regsets_fetch_inferior_registers)
14542 (regsets_store_inferior_registers): New regsets_info parameter.
14543 Adjust to use it.
14544 (linux_register_in_regsets): New regs_info parameter. Adjust to
14545 use it.
14546 (register_addr, fetch_register, store_register): New usrregs_info
14547 parameter. Adjust to use it.
14548 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14549 parameter regs_info. Adjust to use it.
14550 (linux_fetch_registers): Get the current inferior's regs_info, and
14551 adjust to use it.
14552 (linux_store_registers): Ditto.
14553 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14554 (initialize_low): Don't initialize the target_regsets here. Call
14555 initialize_low_arch.
14556 * linux-low.h (target_regsets): Delete declaration.
14557 (struct regsets_info): New.
14558 (struct usrregs_info): New.
14559 (struct regs_info): New.
14560 (struct process_info_private) <new_inferior>: New field.
14561 (struct linux_target_ops): Delete the num_regs, regmap, and
14562 regset_bitmap fields. New field regs_info.
14563 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14564 * i387-fp.c (num_xmm_registers): Delete.
14565 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14566 calls to new interface.
14567 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14568 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14569 Infer the number of xmm registers from the regcache's target
14570 description.
14571 * i387-fp.h (num_xmm_registers): Delete.
14572 * inferiors.c (add_thread): Don't install the thread's regcache
14573 here.
14574 * proc-service.c (gregset_info): Fetch the current inferior's
14575 regs_info. Adjust to use it.
14576 * regcache.c: Include tdesc.h.
14577 (register_bytes, reg_defs, num_registers)
14578 (gdbserver_expedite_regs): Delete.
14579 (get_thread_regcache): If the thread doesn't have a regcache yet,
14580 create one, instead of aborting gdbserver.
14581 (regcache_invalidate_one): Rename to ...
14582 (regcache_invalidate_thread): ... this.
14583 (regcache_invalidate_one): New.
14584 (regcache_invalidate): Only invalidate registers of the current
14585 process.
14586 (init_register_cache): Add target_desc parameter, and use it.
14587 (new_register_cache): Ditto. Assert the target description has a
14588 non zero registers_size.
14589 (regcache_cpy): Add assertions. Adjust.
14590 (realloc_register_cache, set_register_cache): Delete.
14591 (registers_to_string, registers_from_string): Adjust.
14592 (find_register_by_name, find_regno, find_register_by_number)
14593 (register_cache_size): Add target_desc parameter, and use it.
14594 (free_register_cache_thread, free_register_cache_thread_one)
14595 (regcache_release, register_cache_size): New.
14596 (register_size): Add target_desc parameter, and use it.
14597 (register_data, supply_register, supply_register_zeroed)
14598 (supply_regblock, supply_register_by_name, collect_register)
14599 (collect_register_as_string, collect_register_by_name): Adjust.
14600 * regcache.h (struct target_desc): Forward declare.
14601 (struct regcache) <tdesc>: New field.
14602 (init_register_cache, new_register_cache): Add target_desc
14603 parameter.
14604 (regcache_invalidate_thread): Declare.
14605 (regcache_invalidate_one): Delete declaration.
14606 (regcache_release): Declare.
14607 (find_register_by_number, register_cache_size, register_size)
14608 (find_regno): Add target_desc parameter.
14609 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14610 declarations.
14611 * remote-utils.c: Include tdesc.h.
14612 (outreg, prepare_resume_reply): Adjust.
14613 * server.c: Include tdesc.h.
14614 (gdbserver_xmltarget): Delete declaration.
14615 (get_features_xml, process_serial_event): Adjust.
14616 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14617 declare.
14618 (struct process_info) <tdesc>: New field.
14619 (ipa_tdesc): Declare.
14620 * tdesc.c: New file.
14621 * tdesc.h: New file.
14622 * tracepoint.c: Include tdesc.h.
14623 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14624 (get_context_regcache): Adjust to pass ipa_tdesc down.
14625 (do_action_at_tracepoint): Adjust to get the register cache size
14626 from the context regcache's description.
14627 (traceframe_walk_blocks): Adjust to get the register cache size
14628 from the current trace frame's description.
14629 (traceframe_get_pc): Adjust to get current trace frame's
14630 description and pass it down.
14631 (gdb_collect): Adjust to get the register cache size from the
14632 IPA's description.
14633 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14634 (gdbserver_xmltarget): Delete.
14635 (initialize_low_tracepoint): Set the ipa's target description.
14636 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14637 (initialize_low_tracepoint): Set the ipa's target description.
14638 * linux-x86-low.c: Include tdesc.h.
14639 [__x86_64__] (is_64bit_tdesc): New.
14640 (ps_get_thread_area, x86_get_thread_area): Use it.
14641 (i386_cannot_store_register): Rename to ...
14642 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14643 (i386_cannot_fetch_register): Rename to ...
14644 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14645 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14646 to new interface.
14647 (target_regsets): Rename to ...
14648 (x86_regsets): ... this.
14649 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14650 interface.
14651 (x86_siginfo_fixup): Use is_64bit_tdesc.
14652 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14653 (tdesc_x32_avx_linux, tdesc_x32_linux)
14654 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14655 Declare.
14656 (x86_linux_update_xmltarget): Delete.
14657 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14658 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14659 (AMD64_LINUX_USER64_CS): New.
14660 (x86_linux_read_description): New, based on
14661 x86_linux_update_xmltarget.
14662 (same_process_callback): New.
14663 (x86_arch_setup_process_callback): New.
14664 (x86_linux_update_xmltarget): New.
14665 (x86_regsets_info): New.
14666 (amd64_linux_regs_info): New.
14667 (i386_linux_usrregs_info): New.
14668 (i386_linux_regs_info): New.
14669 (x86_linux_regs_info): New.
14670 (x86_arch_setup): Reimplement.
14671 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14672 (x86_emit_ops): Ditto.
14673 (the_low_target): Adjust. Install x86_linux_regs_info,
14674 x86_cannot_fetch_register, and x86_cannot_store_register.
14675 (initialize_low_arch): New.
14676 * linux-ia64-low.c (tdesc_ia64): Declare.
14677 (ia64_fetch_register): Adjust.
14678 (ia64_usrregs_info, regs_info): New globals.
14679 (ia64_regs_info): New function.
14680 (the_low_target): Adjust.
14681 (initialize_low_arch): New function.
14682 * linux-sparc-low.c (tdesc_sparc64): Declare.
14683 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14684 Adjust.
14685 (sparc_arch_setup): New function.
14686 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14687 (the_low_target): Adjust.
14688 (initialize_low_arch): New function.
14689 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14690 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14691 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14692 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14693 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14694 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14695 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14696 (tdesc_powerpc_isa205_vsx64l): Declare.
14697 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14698 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14699 (ppc_set_pc, ppc_get_hwcap): Adjust.
14700 (ppc_usrregs_info): Forward declare.
14701 (!__powerpc64__) ppc_regmap_adjusted: New global.
14702 (ppc_arch_setup): Adjust to the current process'es target
14703 description.
14704 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14705 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14706 (ppc_store_evrregset): Adjust.
14707 (target_regsets): Rename to ...
14708 (ppc_regsets): ... this, and make static.
14709 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14710 (ppc_regs_info): New function.
14711 (the_low_target): Adjust.
14712 (initialize_low_arch): New function.
14713 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14714 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14715 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14716 (tdesc_s390x_linux64v2): Declare.
14717 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14718 (s390_fill_gregset, s390_store_last_break): Adjust.
14719 (target_regsets): Rename to ...
14720 (s390_regsets): ... this, and make static.
14721 (s390_get_pc, s390_set_pc): Adjust.
14722 (s390_get_hwcap): New target_desc parameter, and use it.
14723 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14724 (s390_arch_setup): Adjust to set the current process'es target
14725 description. Don't adjust the regmap.
14726 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14727 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14728 (regs_info_3264): New globals.
14729 (s390_regs_info): New function.
14730 (the_low_target): Adjust.
14731 (initialize_low_arch): New function.
14732 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14733 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14734 [__mips64] (init_registers_mips_linux)
14735 (init_registers_mips_dsp_linux): Delete defines.
14736 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14737 (have_dsp): New global.
14738 (mips_read_description): New, based on mips_arch_setup.
14739 (mips_arch_setup): Reimplement.
14740 (get_usrregs_info): New function.
14741 (mips_cannot_fetch_register, mips_cannot_store_register)
14742 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14743 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14744 (target_regsets): Rename to ...
14745 (mips_regsets): ... this, and make static.
14746 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14747 (dsp_regs_info, regs_info): New globals.
14748 (mips_regs_info): New function.
14749 (the_low_target): Adjust.
14750 (initialize_low_arch): New function.
14751 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14752 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14753 Declare.
14754 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14755 (arm_read_description): New, with bits factored from
14756 arm_arch_setup.
14757 (arm_arch_setup): Reimplement.
14758 (target_regsets): Rename to ...
14759 (arm_regsets): ... this, and make static.
14760 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14761 (arm_regs_info): New function.
14762 (the_low_target): Adjust.
14763 (initialize_low_arch): New function.
14764 * linux-m68k-low.c (tdesc_m68k): Declare.
14765 (target_regsets): Rename to ...
14766 (m68k_regsets): ... this, and make static.
14767 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14768 (m68k_regs_info): New function.
14769 (m68k_arch_setup): New function.
14770 (the_low_target): Adjust.
14771 (initialize_low_arch): New function.
14772 * linux-sh-low.c (tdesc_sharch): Declare.
14773 (target_regsets): Rename to ...
14774 (sh_regsets): ... this, and make static.
14775 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14776 (sh_regs_info, sh_arch_setup): New functions.
14777 (the_low_target): Adjust.
14778 (initialize_low_arch): New function.
14779 * linux-bfin-low.c (tdesc_bfin): Declare.
14780 (bfin_arch_setup): New function.
14781 (bfin_usrregs_info, regs_info): New globals.
14782 (bfin_regs_info): New function.
14783 (the_low_target): Adjust.
14784 (initialize_low_arch): New function.
14785 * linux-cris-low.c (tdesc_cris): Declare.
14786 (cris_arch_setup): New function.
14787 (cris_usrregs_info, regs_info): New globals.
14788 (cris_regs_info): New function.
14789 (the_low_target): Adjust.
14790 (initialize_low_arch): New function.
14791 * linux-cris-low.c (tdesc_crisv32): Declare.
14792 (cris_arch_setup): New function.
14793 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14794 (cris_regs_info): New function.
14795 (the_low_target): Adjust.
14796 (initialize_low_arch): New function.
14797 * linux-m32r-low.c (tdesc_m32r): Declare.
14798 (m32r_arch_setup): New function.
14799 (m32r_usrregs_info, regs_info): New globals.
14800 (m32r_regs_info): Adjust.
14801 (initialize_low_arch): New function.
14802 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14803 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14804 (tic6x_usrregs_info): Forward declare.
14805 (tic6x_read_description): New function, based on ...
14806 (tic6x_arch_setup): ... this. Reimplement.
14807 (target_regsets): Rename to ...
14808 (tic6x_regsets): ... this, and make static.
14809 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14810 (tic6x_regs_info): New function.
14811 (the_low_target): Adjust.
14812 (initialize_low_arch): New function.
14813 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14814 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14815 (target_regsets): Rename to ...
14816 (xtensa_regsets): ... this, and make static.
14817 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14818 globals.
14819 (xtensa_arch_setup, xtensa_regs_info): New functions.
14820 (the_low_target): Adjust.
14821 (initialize_low_arch): New function.
14822 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14823 (nios2_arch_setup): Set the current process'es tdesc.
14824 (target_regsets): Rename to ...
14825 (nios2_regsets): ... this.
14826 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14827 (nios2_regs_info): New function.
14828 (the_low_target): Adjust.
14829 (initialize_low_arch): New function.
a261b8f5
PA
14830 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14831 (aarch64_arch_setup): Set the current process'es tdesc.
14832 (target_regsets): Rename to ...
14833 (aarch64_regsets): ... this.
14834 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14835 (aarch64_regs_info): New function.
14836 (the_low_target): Adjust.
14837 (initialize_low_arch): New function.
3aee8918
PA
14838 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14839 globals.
14840 (target_regsets): Rename to ...
14841 (tile_regsets): ... this.
14842 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14843 (tile_regs_info): New function.
14844 (tile_arch_setup): Set the current process'es tdesc.
14845 (the_low_target): Adjust.
14846 (initialize_low_arch): New function.
14847 * spu-low.c (tdesc_spu): Declare.
14848 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14849 * win32-arm-low.c (tdesc_arm): Declare.
14850 (arm_arch_setup): New function.
14851 (the_low_target): Install arm_arch_setup instead of
14852 init_registers_arm.
14853 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14854 (init_windows_x86): Rename to ...
14855 (i386_arch_setup): ... this. Set `win32_tdesc'.
14856 (the_low_target): Adjust.
14857 * win32-low.c (win32_tdesc): New global.
14858 (child_add_thread): Don't create the thread cache here.
14859 (do_initial_child_stuff): Set the new process'es tdesc.
14860 * win32-low.h (struct target_desc): Forward declare.
14861 (win32_tdesc): Declare.
14862 * lynx-i386-low.c (tdesc_i386): Declare global.
14863 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14864 * lynx-low.c (lynx_tdesc): New global.
14865 (lynx_add_process): Set the new process'es tdesc.
14866 * lynx-low.h (struct target_desc): Forward declare.
14867 (lynx_tdesc): Declare global.
14868 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14869 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14870 * nto-low.c (nto_tdesc): New global.
14871 (do_attach): Set the new process'es tdesc.
14872 * nto-low.h (struct target_desc): Forward declare.
14873 (nto_tdesc): Declare.
14874 * nto-x86-low.c (tdesc_i386): Declare.
14875 (nto_x86_arch_setup): Set `nto_tdesc'.
14876
b1fbec62
GB
148772013-06-04 Gary Benson <gbenson@redhat.com>
14878
14879 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14880 to qSupported response when appropriate.
14881 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14882 with nonzero-length annex.
14883 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14884 arguments supplied in annex.
14885
d1ec4ce7
DE
148862013-05-31 Doug Evans <dje@google.com>
14887
ac44adcb 14888 PR server/15594
d1ec4ce7
DE
14889 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14890 64 bits in 64-cross-32 environment.
14891
9b25f2d3
PA
148922013-05-28 Pedro Alves <palves@redhat.com>
14893
14894 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14895 (aarch64-without-fpu.c): Delete rule.
14896 * configure.srv (aarch64*-*-linux*): Remove references to
14897 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14898 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14899 declaration.
14900
6740dc9c
PA
149012013-05-24 Pedro Alves <palves@redhat.com>
14902
14903 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14904 instead of strchr/decode_address. Error if the range isn't split
14905 with a ','. Don't assume there's be a ':' in the action.
14906
c2d6af84
PA
149072013-05-23 Yao Qi <yao@codesourcery.com>
14908 Pedro Alves <palves@redhat.com>
14909
14910 * linux-low.c (lwp_in_step_range): New function.
14911 (linux_wait_1): If the thread was range stepping and stopped
14912 outside the stepping range, report the stop to GDB. Otherwise,
14913 continue stepping. Add range stepping debug output.
14914 (linux_set_resume_request): Copy the step range from the resume
14915 request to the lwp.
14916 (linux_supports_range_stepping): New.
14917 (linux_target_ops) <supports_range_stepping>: Set to
14918 linux_supports_range_stepping.
14919 * linux-low.h (struct linux_target_ops)
14920 <supports_range_stepping>: New field.
14921 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14922 * linux-x86-low.c (x86_supports_range_stepping): New.
14923 (the_low_target) <supports_range_stepping>: Set to
14924 x86_supports_range_stepping.
14925 * server.c (handle_v_cont): Handle 'r' action.
14926 (handle_v_requests): Append ";r" if the target supports range
14927 stepping.
14928 * target.h (struct thread_resume) <step_range_start,
14929 step_range_end>: New fields.
14930 (struct target_ops) <supports_range_stepping>:
14931 New field.
14932 (target_supports_range_stepping): New macro.
14933
58794e1a
JB
149342013-05-17 Joel Brobecker <brobecker@adacore.com>
14935
14936 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14937 confusion in comment.
14938
d631c5a7
JB
149392013-05-17 Joel Brobecker <brobecker@adacore.com>
14940
14941 * lynx-low.c (struct process_info_private): New type.
14942 (lynx_add_process): New function.
14943 (lynx_create_inferior, lynx_attach): Replace calls to
14944 add_process by calls to lynx_add_process.
14945 (lynx_resume): If PTID is null, then try using
14946 current_process()->private->last_wait_event_ptid.
14947 Add comments.
14948 (lynx_clear_inferiors): Delete. The contents of that function
14949 has been inlined in lynx_mourn;
14950 (lynx_wait_1): Save the ptid in the process's private data.
14951 (lynx_mourn): Free the process' private data. Replace call
14952 to lynx_clear_inferiors by call to clear_inferiors.
14953
96f7a20f
YQ
149542013-05-17 Yao Qi <yao@codesourcery.com>
14955
14956 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14957 the right place.
14958
db0dfaa0
LM
149592013-05-16 Luis Machado <lgustavo@codesourcery.com>
14960
14961 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14962 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14963 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14964 PT_TEXT_END_ADDR guards. Update comments.
14965 (linux_target_op) <read_offsets>: Conditionally define to
14966 linux_read_offsets if the target is UCLIBC and if it defines
14967 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14968
68f5f838
SL
149692013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14970 Andrew Jenner <andrew@codesourcery.com>
14971
14972 * Makefile.in (SFILES): Add linux-nios2-low.c.
14973 (clean): Add action to delete nios2-linux.c.
14974 (nios2-linux.c): New rule.
14975 * configure.srv: Add nios2*-*-linux*.
14976 * linux-nios2-low.c: New.
14977
1ebff1fd
HAQ
149782013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14979
14980 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14981
f6150862
HZ
149822013-04-25 Hui Zhu <hui@codesourcery.com>
14983
14984 PR gdb/15186
f6150862
HZ
14985 * ax.c (ax_printf): Add fflush.
14986
614c279d
TT
149872013-04-22 Tom Tromey <tromey@redhat.com>
14988
14989 * Makefile.in (SFILES): Add filestuff.c.
14990 (OBS): Add filestuff.o.
14991 (filestuff.o): New target.
14992 * config.in, configure: Rebuild.
14993 * configure.ac: Check for fdwalk, pipe2.
14994
7d4e5717
PA
149952013-04-17 Pedro Alves <palves@redhat.com>
14996
14997 * configure.ac (USE_THREAD_DB): Delete variable.
14998 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14999 Don't AC_SUBST USE_THREAD_DB.
15000 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15001 * config.in, configure: Regenerate.
15002
d5c93e41
PA
150032013-04-16 Pedro Alves <palves@redhat.com>
15004
15005 * linux-low.h (struct lwp_info) <thread_known>: Move under
15006 the USE_THREAD_DB #ifdef.
15007
04f5fe89
PA
150082013-04-16 Pedro Alves <palves@redhat.com>
15009
15010 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15011 (linux-low.o): Delete rule.
15012 * linux-low.h: Always include "gdb_thread_db.h" instead of
15013 conditionally including thread_db.h.
15014 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15015 HAVE_THREAD_DB_H.
15016
480b27bf
JK
150172013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15018
15019 * Makefile.in (install-only): Fix make install regression.
15020
43662968
JK
150212013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15022
15023 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15024 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15025 installation.
15026 * gdbserver.1: Remove.
15027
3e74e146
PA
150282013-03-22 Pedro Alves <palves@redhat.com>
15029
15030 * linux-low.c (handle_extended_wait): Don't call
15031 linux_enable_event_reporting.
15032
a8347a2a
TT
150332013-03-15 Tony Theodore <tonyt@logyst.com>
15034
15035 PR build/9098:
15036 * Makefile.in (SHELL): Use @SHELL@.
15037
eeb56fa7
SDJ
150382013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15039
15040 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15041 compiler warning.
15042
4fa7e2ff
JB
150432013-03-13 Joel Brobecker <brobecker@adacore.com>
15044
15045 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15046 Remove extraneous NULL element.
15047
8ddb1965
YQ
150482013-03-13 Yao Qi <yao@codesourcery.com>
15049
15050 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15051 'V' block in trace frame.
15052
9accd112
MM
150532013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15054
15055 * target.h (struct target_ops): Add btrace ops.
15056 (target_supports_btrace): New macro.
15057 (target_enable_btrace): New macro.
15058 (target_disable_btrace): New macro.
15059 (target_read_btrace): New macro.
15060 * gdbthread.h (struct thread_info): Add btrace field.
15061 * server.c: Include btrace-common.h.
15062 (handle_btrace_general_set): New function.
15063 (handle_btrace_enable): New function.
15064 (handle_btrace_disable): New function.
15065 (handle_general_set): Call handle_btrace_general_set.
15066 (handle_qxfer_btrace): New function.
15067 (struct qxfer qxfer_packets[]): Add btrace entry.
15068 * inferiors.c (remove_thread): Disable btrace.
15069 * linux-low: Include linux-btrace.h.
15070 (linux_low_enable_btrace): New function.
15071 (linux_low_read_btrace): New function.
15072 (linux_target_ops): Add btrace ops.
15073 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15074 Add srv_linux_btrace=yes.
15075 (x86_64-*-linux*): Add linux-btrace.o.
15076 Add srv_linux_btrace=yes.
15077 * configure.ac: Define HAVE_LINUX_BTRACE.
15078 * config.in: Regenerated.
15079 * configure: Regenerated.
15080
5cc22e4c
MM
150812013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15082
15083 * server.c (handle_qxfer): Preserve error message if -3 is
15084 returned.
15085 (qxfer): Document the -3 return value.
15086
7c97f91e
MM
150872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15088
15089 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15090 (linux_btrace_h): New variable.
15091 (linux-btrace.o): New rule.
15092
be9a119c 150932013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
15094 Hafiz Abid Qadeer <abidh@codesourcery.com>
15095
15096 * tracepoint.c (trace_buffer_size): New global.
15097 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15098 (init_trace_buffer): Change to one-argument function. Allocate
15099 trace buffer memory.
15100 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15101 handle QTBuffer:size packet.
15102 (cmd_bigqtbuffer_size): New function.
15103 (initialize_tracepoint): Call init_trace_buffer with
15104 DEFAULT_TRACE_BUFFER_SIZE.
15105 * server.c (handle_query): Add QTBuffer:size in the
15106 supported packets.
15107
e64f7499
YQ
151082013-03-07 Yao Qi <yao@codesourcery.com>
15109
15110 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15111 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15112 of -1.
15113 (cmd_qtsp): Adjust condition. Do post increment.
15114 Set cur_action and cur_step_action back to 0.
15115
f0ae6fc3
PA
151162013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15117
15118 PR server/15236
15119 * linux-low.c (linux_write_memory): Return early success if LEN is
15120 zero.
15121
b5b0b0af
CV
151222013-03-05 Corinna Vinschen <vinschen@redhat.de>
15123
334ad4a8 15124 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 15125
589bc927
TT
151262013-02-28 Tom Tromey <tromey@redhat.com>
15127
15128 * configure.ac: Invoke AC_SYS_LARGEFILE.
15129 * configure, config.in: Rebuild.
15130
dfe07582
CV
151312013-02-28 Corinna Vinschen <vinschen@redhat.com>
15132
15133 * win32-low.c: Throughout, fix format strings and casts of
15134 printf-like functions to avoid type related warnings on all
15135 platforms.
15136 (get_child_debug_event): Print dwDebugEventCode as hex since
15137 that's how it's usually documented.
15138
736cd585
YQ
151392013-02-28 Yao Qi <yao@codesourcery.com>
15140
15141 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15142 pulongest.
15143
e1f58301
JW
151442013-02-27 Jiong Wang <jiwang@tilera.com>
15145
15146 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15147 (reg-tilegx32.c): New rule.
15148 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15149 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15150 different register info initializer according to elf class.
15151 (init_registers_tilgx32): New function. The tilegx32 register info
15152 initializer.
15153 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15154 (tile_store_gregset): Likewise.
15155
d171ca78
YQ
151562013-02-27 Yao Qi <yao@codesourcery.com>
15157
15158 * server.c (process_point_options): Print debug message when
15159 debug_threads is true.
15160
282bbdf3
YQ
151612013-02-26 Yao Qi <yao@codesourcery.com>
15162
15163 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15164
aca22551
PA
151652013-02-19 Pedro Alves <palves@redhat.com>
15166 Kai Tietz <ktietz@redhat.com>
15167
15168 PR gdb/15161
15169
15170 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15171 instead of strtoul to extract address from packet.
15172 (process_serial_event) <'z'>: Likewise.
15173
4f3cee1c
YQ
151742013-02-18 Yao Qi <yao@codesourcery.com>
15175
15176 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15177
8e1d55a3
PA
151782013-02-14 Pedro Alves <palves@redhat.com>
15179
15180 Plug memory leak.
15181
15182 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15183 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15184
458820da
PA
151852013-02-14 Pedro Alves <palves@redhat.com>
15186
15187 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15188
baea0dae
PA
151892013-02-14 Pedro Alves <palves@redhat.com>
15190
15191 * tracepoint.c (save_string): Delete.
15192 (add_tracepoint_action): Use savestring instead of save_string.
15193
0b1afbb3
PA
151942013-02-12 Pedro Alves <palves@redhat.com>
15195
15196 * linux-xtensa-low.c: Ditto.
15197 * xtensa-xtregs.c: Ditto.
15198
8a4ac37e
PA
151992013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15200
15201 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15202 thread_db.
15203
148de6bb
MS
152042013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15205
15206 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15207 aarch64_num_wp_regs and aarch64_num_bp_regs to
15208 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15209
55fac6e0
MS
152102013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15211
15212 * linux-aarch64-low.c (ps_get_thread_area): Replace
15213 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15214
176eb98c
MS
152152013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15216 Marcus Shawcroft <marcus.shawcroft@arm.com>
15217 Nigel Stephens <nigel.stephens@arm.com>
15218 Yufeng Zhang <yufeng.zhang@arm.com>
15219
15220 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15221 (aarch64.c, aarch64-without-fpu.c): New targets.
15222 * configure.srv (aarch64*-*-linux*): New.
15223 * linux-aarch64-low.c: New file.
15224
56f7af9c
MS
152252013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15226
43aaf8b6 15227 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
15228 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15229 (dequeue_one_deferred_signal, linux_resume_one_thread)
15230 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15231 (linux_tracefork_grandchild, linux_test_for_tracefork)
15232 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15233 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15234 where the argument is 0.
15235
60f662b0
YQ
152362013-01-25 Yao Qi <yao@codesourcery.com>
15237
15238 * event-loop.c: Include "queue.h".
15239 (gdb_event_p): New typedef.
15240 (struct gdb_event) <next_event>: Remove.
15241 (event_queue): Change to QUEUE(gdb_event_p).
15242 (async_queue_event): Remove.
15243 (gdb_event_xfree): New.
15244 (initialize_event_loop): New.
15245 (process_event): Use API from QUEUE.
15246 (wait_for_event): Likewise.
15247 * server.c (main): Call initialize_event_loop.
15248 * server.h (initialize_event_loop): Declare.
15249
5ae4861a
YQ
152502013-01-18 Yao Qi <yao@codesourcery.com>
15251
15252 * ax.h (struct eval_agent_expr_context): New.
15253 (gdb_eval_agent_expr): Update declaration.
15254 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15255 TFRAME. Add new argument CTX.
15256 * server.h (struct eval_agent_expr_context): Declare.
15257 (agent_mem_read, agent_tsv_read): Update declaration.
15258 (agent_mem_read_string): Likewise.
15259 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15260 (add_traceframe_block): Add new argument TPOINT.
15261 Increase TPOINT->traceframe_usage.
15262 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15263 eval_tracepoint_agent_expr.
15264 (condition_true_at_tracepoint): Likewise.
15265 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15266 (agent_mem_read_string, agent_tsv_read): Likewise.
15267
85e00e85
YQ
152682013-01-16 Yao Qi <yao@codesourcery.com>
15269
15270 * linux-low.c (linux_resume_one_lwp): Don't check
15271 'lwp->bp_reinsert != 0'.
15272
4039cf45
JB
152732013-01-07 Joel Brobecker <brobecker@adacore.com>
15274 Pedro Alves <palves@redhat.com>
15275
15276 * lynx-low.c (ptrace_request_to_str): Define a temporary
15277 macro and use it to simplify this function's implementation.
15278
9044dee2
JB
152792013-01-07 Joel Brobecker <brobecker@adacore.com>
15280
15281 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15282 sets errno.
15283
e6352c8f
JB
152842013-01-07 Joel Brobecker <brobecker@adacore.com>
15285
15286 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15287
50681a27
JB
152882013-01-07 Joel Brobecker <brobecker@adacore.com>
15289
15290 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15291
3f6e77ef
JB
152922013-01-07 Joel Brobecker <brobecker@adacore.com>
15293
15294 * lynx-low.c (lynx_resume): Use the resume_info parameter
15295 to determine the ptid for the lynx_ptrace call, unless
15296 it is equal to minus_one_ptid, in which case we use the
15297 ptid of the current_inferior.
15298 (lynx_wait_1): After having received a thread create/exit
15299 event, resume the inferior's execution using the signaling
15300 thread's ptid, rather than the old ptid.
15301
7fda33ae
JB
153022013-01-07 Joel Brobecker <brobecker@adacore.com>
15303
15304 * lynx-low.c (lynx_resume): Delete variable ret.
15305
b9786c74
JB
153062013-01-01 Joel Brobecker <brobecker@adacore.com>
15307
15308 * gdbreplay.c (gdbreplay_version): Update copyright year.
15309 * server.c (gdbserver_version): Likewise.
15310
8b93d60f
JB
153112012-12-17 Joel Brobecker <brobecker@adacore.com>
15312
15313 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15314 new thread.
15315
037335a7
JB
153162012-12-17 Joel Brobecker <brobecker@adacore.com>
15317
15318 * lynx-low.c (ptrace_request_to_str): Add handling for
15319 PTRACE_GETTRACESIG.
15320
52d4cbd8
JB
153212012-12-17 Joel Brobecker <brobecker@adacore.com>
15322
15323 * lynx-low.c (lynx_attach): Delete variable new_process.
15324
ab8f6ca9
JB
153252012-12-17 Joel Brobecker <brobecker@adacore.com>
15326
15327 * lynx-low.c (lynx_create_inferior): Delete variable
15328 new_process.
15329
78cbc024
JB
153302012-12-17 Joel Brobecker <brobecker@adacore.com>
15331
15332 * lynx-low.c (ptrace_request_to_str): Do not handle
15333 PTRACE_GETTHREADLIST if this macro does not exist.
15334
14a00470
YQ
153352012-12-15 Yao Qi <yao@codesourcery.com>
15336
15337 * Makefile.in (OBS): Add notif.o.
15338 * notif.c, notif.h: New.
15339 * server.c: Include "notif.h".
15340 (struct vstop_notif) <next>: Remove.
15341 <base>: New field.
15342 (queue_stop_reply): Update.
15343 (push_event, send_next_stop_reply): Remove.
15344 (discard_queued_stop_replies): Update.
15345 (notif_stop): New variable.
15346 (handle_v_stopped): Remove.
15347 (handle_v_requests): Don't call handle_v_stopped. Call
15348 handle_ack_notif instead.
15349 (queue_stop_reply_callback): Call notif_event_enque instead
15350 of queue_stop_reply.
15351 (handle_status): Don't call send_next_stop_reply, call
15352 notif_write_event instead.
15353 (kill_inferior_callback): Likewise.
15354 (detach_or_kill_inferior_callback): Likewise.
15355 (main): Call initialize_notif.
15356 (process_serial_event): Call QUEUE_is_empty.
15357 (handle_target_event): Call notif_push instead of push event.
15358 * server.h (push_event): Remove declaration.
15359
61c125b9
TT
153602012-12-10 Tom Tromey <tromey@redhat.com>
15361
15362 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15363 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15364 macros.
15365 (.c.o): Rewrite.
15366 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15367 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15368 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15369 (amd64-linux-ipa.o, ax.o): Rewrite.
15370 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15371 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15372 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15373 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15374 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15375 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15376 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15377 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15378 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15379 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15380 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15381 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15382 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15383 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15384 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15385 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15386 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15387 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15388 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15389 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15390 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15391 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15392 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15393 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15394 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15395 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15396 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15397 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15398 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15399 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15400 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15401 (reg-tilegx.o): Remove.
15402 (all_object_files): New macro.
15403 Include .deps files.
15404 * aclocal.m4, configure: Rebuild.
15405 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15406 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15407 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15408
e90e9ad9
TT
154092012-12-05 Tom Tromey <tromey@redhat.com>
15410
15411 PR gdb/14917:
15412 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15413
02d403bf 154142012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15415
15416 * configure.ac: Check for linux/perf_event.h.
15417 * config.in: Regenerated.
15418 * configure: Regenerated.
15419
0270a750
PA
154202012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15421
15422 * hostio.c (handle_readlink): Decrease buffer size
15423 parameter passed to readlink by one byte.
15424
8c29b58e
YQ
154252012-11-26 Yao Qi <yao@codesourcery.com>
15426
15427 * configure.ac (build_warnings): Append '-Wempty-body'.
15428 * configure: Regenerated.
15429 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15430 body.
15431
8bdce1ff
PM
154322012-11-15 Pierre Muller <muller@sourceware.org>
15433
15434 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15435 * config.in: Regenerate.
15436 * configure: Regenerate.
15437 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15438 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15439 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15440 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15441 header.
15442 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15443 instead of <sys/wait.h> header.
15444 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15445
02d403bf 154462012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15447
15448 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15449 (various make rules): Remove -DGDBSERVER
15450
fbd5db48
YQ
154512012-11-09 Yao Qi <yao@codesourcery.com>
15452
15453 * spu-low.c (current_ptid): Move it to ..
15454 * gdbthread.h: ... here. New.
15455 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15456 * server.c (myresume, process_serial_event): Likewise.
15457 * thread-db.c (thread_db_find_new_threads): Likewise.
15458 * tracepoint.c (run_inferior_command): Likewise.
15459
b3dc46ff
AB
154602012-10-01 Andrew Burgess <aburgess@broadcom.com>
15461
15462 * server.c (handle_search_memory_1): Include access length in
15463 warning message.
15464
07c04788
HPN
154652012-09-05 Michael Brandt <michael.brandt@axis.com>
15466
15467 * linux-crisv32-low.c: Fix compile errors.
15468
918d227b
YQ
154692012-09-04 Yao Qi <yao@codesourcery.com>
15470
15471 * tracepoint.c (cmd_qtsv): Adjust debug message.
15472 Don't check CUR_TPOINT.
15473
18c1b81a
YQ
154742012-08-28 Yao Qi <yao@codesourcery.com>
15475
15476 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15477 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15478 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15479 Remove declarations of xmalloc, xreallloc, xstrdup and
15480 freeargv.
15481 * Makefile.in (libiberty_h): New.
15482 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15483 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15484
dc82f37b
YQ
154852012-08-23 Yao Qi <yao@codesourcery.com>
15486
15487 * server.h: Remove declaration of 'xsnprintf'.
15488
406b1477
KS
154892012-08-22 Keith Seitz <keiths@redhat.com>
15490
15491 * server.h: Include build-gnulib-gbserver/config.h.
15492 * gdbreplay.c: Likewise.
15493
e6712ff1
DE
154942012-08-08 Doug Evans <dje@google.com>
15495
15496 * Makefile.in (SFILES): Add gdb_vecs.c.
15497 (OBS): Add gdb_vecs.o.
15498 (gdb_vecs_h, host_defs_h): New variables.
15499 (thread-db.o): Add $(gdb_vecs_h) dependency.
15500 (gdb_vecs.o): New rule.
15501 * thread-db.c: #include "gdb_vecs.h".
15502 (thread_db_load_search): Use a vector to iterate over path elements.
15503 Handle text appearing after "$pdir".
15504
15505 * configure.ac: Add check for strstr.
15506 * config.in: Regenerate.
15507 * configure: Regenerate.
15508
7c3270ae
UW
155092012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15510
15511 * hostio.c (handle_pread): If pread fails, fall back to attempting
15512 lseek/read.
15513 (handle_pwrite): Likewise for pwrite.
15514
b62e2b27
UW
155152012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15516
15517 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15518 between unsupported TYPE and unimplementable ADDR/LEN combination.
15519 (arm_insert_point): Act on new return value.
15520
78a99e91
PA
155212012-07-31 Pedro Alves <palves@redhat.com>
15522
15523 * server.c (process_point_options): Only skip tokens if we find
15524 one that is unrecognized. Don't treat 'X' specially while
15525 skipping unrecognized tokens.
15526
fcf303ab
UW
155272012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15528
15529 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15530 to 4-byte-align HW breakpoint addresses for Thumb.
15531
7255706c
YQ
155322012-07-27 Yao Qi <yao@codesourcery.com>
15533
15534 PR remote/14161.
15535
15536 * server.h: Declare gdb_agent_about_to_close.
15537 * target.c (kill_inferior): Include "agent.h".
15538 New. Send command 'kill'.
15539 * target.h (kill_inferior): Removed macro.
15540 * tracepoint.c (gdb_agent_about_to_close): New.
15541 (gdb_agent_helper_thread): Handle command 'close'.
15542 Wait endlessly until the inferior stops.
15543 Install gdb_agent_remove_socket to atexit hook.
15544 (agent_socket_name): New static variable.
15545 (gdb_agent_socket_init): Replace local variable 'name' with
15546 'agent_socket_name'.
15547 (gdb_agent_remove_socket): New.
15548
5a3f286f
YQ
155492012-07-27 Yao Qi <yao@codesourcery.com>
15550
15551 * server.c (process_point_options): Stop at 'X' when parsing.
15552
961bd387
ME
155532012-07-19 Michael Eager <eager@eagercon.com>
15554
a261b8f5 15555 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15556 to hw_execute.
15557 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15558 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15559 hardware breakpoint.
15560
aa7c7447
JK
155612012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15562
15563 * gdbserver/linux-low.c (initialize_low): Call
15564 linux_ptrace_init_warnings.
15565
7f216e7c
DE
155662012-07-02 Doug Evans <dje@google.com>
15567
15568 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15569 pointer to int.
15570
d3ce09f5
SS
155712012-07-02 Stan Shebs <stan@codesourcery.com>
15572
15573 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15574 (ax.o): Add it to build rule.
15575 (ax-ipa.o): Ditto.
15576 (OBS): Add format.o.
15577 (IPA_OBS): Add format.o.
15578 * server.c (handle_query): Claim support for breakpoint commands.
15579 (process_point_options): Add command case.
15580 (process_serial_event): Leave running if there are printfs in
15581 effect.
15582 * mem-break.h (any_persistent_commands): Declare.
15583 (add_breakpoint_commands): Declare.
15584 (gdb_no_commands_at_breakpoint): Declare.
15585 (run_breakpoint_commands): Declare.
15586 * mem-break.c (struct point_command_list): New struct.
15587 (struct breakpoint): New field command_list.
15588 (any_persistent_commands): New function.
15589 (add_commands_to_breakpoint): New function.
15590 (add_breakpoint_commands): New function.
15591 (gdb_no_commands_at_breakpoint): New function.
15592 (run_breakpoint_commands): New function.
15593 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15594 locally.
15595 * ax.c: Include format.h.
15596 (ax_printf): New function.
15597 (gdb_eval_agent_expr): Add printf opcode.
15598
2f8f6aed
YQ
155992012-06-13 Yao Qi <yao@codesourcery.com>
15600
15601 * server.c (start_inferior): Remove duplicated writes to fields
15602 'last_resume_kind' and 'last_status' of 'current_inferior'.
15603
0c9070b3
YQ
156042012-06-12 Yao Qi <yao@codesourcery.com>
15605 Pedro Alves <palves@redhat.com>
15606
15607 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15608 comment.
15609 * server.c (handle_v_cont): Extend comment.
15610
c52daf70
YQ
156112012-06-11 Yao Qi <yao@codesourcery.com>
15612
15613 * linux-low.c (linux_attach): Add 'static'.
15614
d38bbb0a
YQ
156152012-06-06 Yao Qi <yao@codesourcery.com>
15616
15617 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15618
89dc0afd
JK
156192012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15620
15621 Fix gcc -flto compilation warning.
15622 * server.c (main): Make variable multi_mode and attach volatile.
15623
75f62ce7
TJB
156242012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15625
15626 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15627 if the platform doesn't know about it.
15628
65f479b6
PA
156292012-05-30 Jeff Kenton <jkenton@tilera.com>
15630
15631 * Makefile.in (SFILES): Add linux-tile-low.c.
15632 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15633 * configure.srv: Handle tilegx-*-linux*.
15634 * linux-tile-low.c: New file.
15635
0c5bf5a9
JK
156362012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15637
15638 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15639
a493e3e2
PA
156402012-05-24 Pedro Alves <palves@redhat.com>
15641
15642 PR gdb/7205
15643
43aaf8b6 15644 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15645
2ea28649
PA
156462012-05-24 Pedro Alves <palves@redhat.com>
15647
15648 PR gdb/7205
15649
15650 Replace target_signal with gdb_signal throughout.
15651
8d409d16
MR
156522012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15653
15654 * linux-low.c (linux_store_registers): Avoid the copying sequence
15655 when no data has been retrieved by ptrace.
15656
23512c01
MGD
156572012-05-22 Will Deacon <will.deacon@arm.com>
15658
15659 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15660 Include asm/ptrace.h.
15661 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15662 already defined.
15663
4934b29e
MR
156642012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15665
15666 * linux-low.c (linux_store_registers): Don't re-retrieve data
15667 with ptrace that has already been obtained from /proc. Always
15668 copy any data retrieved with ptrace to the buffer supplied.
15669
bde24c0a
PA
156702012-05-11 Yao Qi <yao@codesourcery.com>
15671 Pedro Alves <palves@redhat.com>
15672
15673 * linux-low.c (enum stopping_threads_kind): New.
15674 (stopping_threads): Change type to `enum stopping_threads_kind'.
15675 (handle_extended_wait): If stopping and suspending threads, leave
15676 the new_lwp suspended too.
15677 (linux_wait_for_event): Adjust.
15678 (stop_all_lwps): Set `stopping_threads' to
15679 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15680 whether we're suspending threads or just stopping them. Assert no
15681 recursion happens.
15682
623b6bdf
YQ
156832012-04-29 Yao Qi <yao@codesourcery.com>
15684
15685 * server.h: Move some code to ...
15686 * gdbthread.h: ... here. New.
15687 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15688 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15689 (nto-low.o, win32-low.o): Likewise.
15690 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15691 * regcache.c, remote-utils.c, server.c: Likewise.
15692 * target.c, tracepoint.c, win32-low.c: Likewise.
15693
f15f9948
TJB
156942012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15695
15696 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15697 (PTRACE_ARG4_TYPE): Likewise.
15698 (PTRACE_XFER_TYPE): Likewise.
15699 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15700 ptrace to PTRACE_ARG3_TYPE.
15701 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15702 (PTRACE_ARG4_TYPE): Likewise.
15703 (PTRACE_XFER_TYPE): Likewise.
15704 (linux_detach_one_lwp): Cast fourth argument of
15705 ptrace to long then PTRACE_ARG4_TYPE.
15706 (regsets_fetch_inferior_registers): Cast third argument of
15707 ptrace to long then PTRACE_ARG3_TYPE.
15708 (regsets_store_inferior_registers): Likewise.
15709
38ea300a
PA
157102012-04-20 Pedro Alves <palves@redhat.com>
15711
15712 * configure: Regenerate.
15713
c971b7fa
PA
157142012-04-19 Pedro Alves <palves@redhat.com>
15715
43aaf8b6 15716 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15717 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15718 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15719 (all, install-only, uninstall, clean-info, all-lib, clean): No
15720 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15721 (maintainer-clean realclean distclean): Use subdir_do.
15722 (subdir_do): New.
15723 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15724 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15725 * acinclude.m4: Include acx_configure_dir.m4.
15726 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15727 calls. Call AC_PROG_RANLIB. Configure gnulib using
15728 ACX_CONFIGURE_DIR.
15729 (GNULIB): New.
15730 (GNULIB_STDINT_H): Adjust.
15731 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15732 * gdbreplay.c: Include build-gnulib/config.h.
15733 * server.h: Likewise.
15734 * aclocal.m4: Regenerate.
15735 * config.in: Regenerate.
15736 * configure: Regenerate.
c971b7fa 15737
809277f8
PA
157382012-04-19 Pedro Alves <palves@redhat.com>
15739
15740 * Makefile.in (LIBGNU, INCGNU): Adjust.
15741 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15742 (all, install-only, uninstall, clean-info, all-lib, clean)
15743 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15744 * configure.ac: Adjust AC_OUTPUT output.
15745 * aclocal.m4: Regenerate.
15746 * configure: Regenerate.
15747
fd9bb8b8
PA
157482012-04-19 Pedro Alves <palves@redhat.com>
15749
15750 * Makefile.in (generated_files): New.
15751 (server_h): Remove the explicit dependency on config.h, and depend
15752 on $generated_files.
15753
1c298c66
PA
157542012-04-19 Pedro Alves <palves@redhat.com>
15755
15756 * Makefile.in (INCGNU): Add -Ignulib.
15757
57c4b50b
PA
157582012-04-19 Pedro Alves <palves@redhat.com>
15759
15760 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15761 (INCGNU): ... this, and spell out -I here.
15762 (GNULIB_LIB): Rename to ...
15763 (LIBGNU): ... this.
15764 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15765
1030e047
PA
157662012-04-19 Pedro Alves <palves@redhat.com>
15767
15768 * config.in: Regenerate.
15769
447d4319
PA
157702012-04-19 Pedro Alves <palves@redhat.com>
15771
15772 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15773 * server.h (memmem): Remove declaration.
15774 * config.in: Regenerate.
15775 * configure: Regenerate.
15776
aad9eab9
YQ
157772012-04-19 Yao Qi <yao@codesourcery.com>
15778
15779 * Makefile.in (SFILES): Add common/vec.c.
15780 (OBS): Add vec.o.
15781 (vec.o): New rule.
15782
3e10640f
YQ
157832012-04-19 Yao Qi <yao@codesourcery.com>
15784
15785 * remote-utils.c (prepare_resume_reply): Replace with macro
15786 target_core_of_thread.
15787 * server.c (handle_qxfer_threads_proper): Likewise.
15788 * target.h (traget_core_of_thread): New macro.
15789
71622373
PA
157902012-04-18 Pedro Alves <palves@redhat.com>
15791
15792 * aclocal.m4: Regenerate.
15793 * configure: Regenerate.
15794
80d26939
YQ
157952012-04-16 Yao Qi <yao@codesourcery.com>
15796
15797 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15798 duplicated on address.
15799
42476b70
YQ
158002012-04-16 Yao Qi <yao@codesourcery.com>
15801
15802 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15803 (struct tracepoint_action_ops) <send>: New field.
15804 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15805 (agent_expr_send, x_tracepoint_action_send): New.
15806 (l_tracepoint_action_send): New.
15807 (cmd_qtdp): Download and install tracepoint
15808 according to `use_agent'.
15809 (run_inferior_command): Add one more parameter `len'.
15810 Update callers.
15811 (tracepoint_send_agent): New.
15812 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15813
7bc83639
YQ
158142012-04-16 Yao Qi <yao@codesourcery.com>
15815
15816 * tracepoint.c (download_tracepoints): Moved to ...
15817 (cmd_qtstart): ... here.
15818
5f18041e
YQ
158192012-04-14 Yao Qi <yao@codesourcery.com>
15820
15821 * tracepoint.c: Include inttypes.h.
15822 (struct collect_memory_action): Use sized types.
15823 (struct tracepoint): Likewise.
15824 (cmd_qtdp, stop_tracing): Update print specifiers.
15825 (cmd_qtp, response_tracepoint): Likewise.
15826 (collect_data_at_tracepoint): Likewise.
15827 (collect_data_at_step): Likewise.
15828
55a8c076
YQ
158292012-04-14 Yao Qi <yao@codesourcery.com>
15830
15831 Import gnulib module inttypes.
15832 * aclocal.m4, config.in, configure: Regenerated.
15833
dc750257
YQ
158342012-04-14 Yao Qi <yao@codesourcery.com>
15835
15836 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15837 Makefile and config.status at last.
15838
0ab5faf9
YQ
158392012-04-13 Yao Qi <yao@codesourcery.com>
15840
15841 * tracepoint.c: Include stdint.h unconditionally.
15842
18f5fd81
TJB
158432012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15844
15845 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15846 on BFD_HAVE_SYS_PROCFS_TYPE.
15847 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15848 * configure: Regenerate.
15849 * config.in: Likewise.
15850
4d47af5c
L
158512012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15852
15853 * Makefile.in (clean): Also remove x32.c x32-linux.c
15854 x32-avx.c x32-avx-linux.c.
15855 (x32.o): New target.
15856 (x32.c): Likewise.
15857 (x32-linux.o): Likewise.
15858 (x32-linux.c): Likewise.
15859 (x32-avx.o): Likewise.
15860 (x32-avx.c): Likewise.
15861 (x32-avx-linux.o): Likewise.
15862 (x32-avx-linux.c): Likewise.
15863
15864 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15865 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15866 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15867 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15868 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15869 i386/x32-avx-linux.xml.
15870
15871 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15872 (init_registers_x32_avx_linux): Likwise.
15873 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15874 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15875
ecedbe58
PA
158762012-04-13 Pedro Alves <palves@redhat.com>
15877
15878 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15879 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15880 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15881 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15882 the sub-make.
15883
c92b5177
L
158842012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15885
15886 * linux-x86-low.c (compat_x32_clock_t): New.
15887 (compat_x32_siginfo_t): Likewise.
15888 (compat_x32_siginfo_from_siginfo): Likewise.
15889 (siginfo_from_compat_x32_siginfo): Likewise.
15890 (linux_is_elf64): Likewise.
15891 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15892 and siginfo_from_compat_x32_siginfo for x32.
15893 (x86_arch_setup): Set linux_is_elf64.
15894
214d508e
L
158952012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15896
15897 PR gdb/13969
15898 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15899 e_machine field.
15900 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15901 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15902 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15903 compatible with process.
15904
c9a1864a
YQ
159052012-04-12 Yao Qi <yao@codesourcery.com>
15906
15907 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15908 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15909 (install-only, install-info, clean): Handle sub dir gnulib.
15910 (all-lib, am--refresh): New targets.
15911 (memmem.o): Remove target.
15912 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15913 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15914 (AC_REPLACE_FUNCS): Remove memmem.
15915 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15916 (AC_OUTPUT): Generate Makefile in gnulib/.
15917 * aclocal.m4, config.in, configure: Regenerated.
15918
367ba2c2
MR
159192012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15920
15921 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15922
9d236627
PA
159232012-04-05 Pedro Alves <palves@redhat.com>
15924
15925 -Werror=strict-aliasing
15926
15927 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15928 pointer.
15929
111217b3
PA
159302012-04-04 Pedro Alves <palves@redhat.com>
15931
15932 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15933 (sparc_store_gregset_from_stack, sparc_store_gregset)
15934 (sparc_breakpoint_at): Fix formatting.
15935
8365dcf5
TJB
159362012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15937
15938 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15939 are available.
15940 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15941 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15942 * config.in: Regenerate.
15943 * configure: Likewise.
15944
689cc2ae
PA
159452012-03-29 Pedro Alves <palves@redhat.com>
15946
15947 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15948 Correct ptrace arguments.
15949
c14dfd32
PA
159502012-03-28 Pedro Alves <palves@redhat.com>
15951
15952 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15953 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15954 (IA64_FR1_REGNUM): New defines.
15955 (ia64_fetch_register): New.
15956 (the_low_target): Install it.
15957 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15958 field.
15959 * linux-low.c (linux_fetch_registers): Try the
15960 the_low_target.fetch_register hook first.
15961
15962 * linux-arm-low.c (the_low_target): Adjust.
15963 * linux-bfin-low.c (the_low_target): Adjust.
15964 * linux-cris-low.c (the_low_target): Adjust.
15965 * linux-crisv32-low.c (the_low_target): Adjust.
15966 * linux-m32r-low.c (the_low_target): Adjust.
15967 * linux-m68k-low.c (the_low_target): Adjust.
15968 * linux-mips-low.c (the_low_target): Adjust.
15969 * linux-ppc-low.c (the_low_target): Adjust.
15970 * linux-s390-low.c (the_low_target): Adjust.
15971 * linux-sh-low.c (the_low_target): Adjust.
15972 * linux-sparc-low.c (the_low_target): Adjust.
15973 * linux-tic6x-low.c (the_low_target): Adjust.
15974 * linux-x86-low.c (the_low_target): Adjust.
15975 * linux-xtensa-low.c (the_low_target): Adjust.
15976
63c88e13
PA
159772012-03-26 Pedro Alves <palves@redhat.com>
15978
15979 * server.c (handle_qxfer_libraries): Don't bail early if
15980 the_target->qxfer_libraries_svr4 is not NULL.
15981
fb723180
PA
159822012-03-26 Pedro Alves <palves@redhat.com>
15983
15984 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15985
0afae3cf
PA
159862012-03-23 Pedro Alves <palves@redhat.com>
15987
15988 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15989 "library-list-svr4" element's start tag when the the DSO list is
15990 empty.
15991
485f1ee4
PA
159922012-03-23 Pedro Alves <palves@redhat.com>
15993
15994 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15995 a variable whose type size is the same as the inferior's pointer
15996 size.
15997
a5362b9a
TS
159982012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15999
16000 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16001 struct siginfo.
16002 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16003 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16004 * linux-low.h: Include <signal.h>.
16005 (struct siginfo): Remove forward declaration.
16006 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16007 struct siginfo.
16008
d226c142
MF
160092012-03-21 Mike Frysinger <vapier@gentoo.org>
16010
16011 * .gitignore: Ignore more files.
16012
122f36ef
PA
160132012-03-19 Pedro Alves <palves@redhat.com>
16014 Jan Kratochvil <jan.kratochvil@redhat.com>
16015
16016 * server.c (cont_thread, general_thread): Add describing comments.
16017 (start_inferior): Clear `cont_thread'.
16018 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16019 of a process.
16020
fc3e5175
YQ
160212012-03-15 Yao Qi <yao@codesourcery.com>
16022
16023 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16024 handling to ...
16025 (cmd_qtdp): ... here.
16026
8d0d92cd
YQ
160272012-03-15 Yao Qi <yao@codesourcery.com>
16028
16029 * tracepoint.c (struct tracepoint_action_ops): New.
16030 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16031 (m_tracepoint_action_download): New.
16032 (r_tracepoint_action_download): New.
16033 (x_tracepoint_action_download): New.
16034 (l_tracepoint_action_download): New.
16035 (add_tracepoint_action): Install `action->ops' according type.
16036 (download_tracepoint_1): Move code `download' function pointer
16037 of various tracepoint_action_ops.
16038
87b0bb13
JK
160392012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16040
16041 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16042 linux_ptrace_attach_warnings.
16043
5f572dec
JK
160442012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16045
16046 * Makefile.in (linux-ptrace.o): New.
16047 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16048 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16049 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16050 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16051 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16052 of these targets.
16053 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16054
f4647387
YQ
160552012-03-08 Yao Qi <yao@codesourcery.com>
16056 Pedro Alves <palves@redhat.com>
16057
16058 Fix PR server/13392.
16059 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16060 offset of JMP insn.
16061 * tracepoint.c (remove_tracepoint): New.
16062 (cmd_qtdp): Call remove_tracepoint when failed to install.
16063
9b224c5e
PA
160642012-03-07 Pedro Alves <palves@redhat.com>
16065
16066 * linux-low.c (get_detach_signal): New.
16067 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16068 Pass on pending signals to PTRACE_DETACH. Check the result of the
16069 ptrace call.
16070 * server.c (program_signals, program_signals_p): New.
16071 (handle_general_set): Handle QProgramSignals.
16072 * server.h (program_signals, program_signals_p): Declare.
16073
e237a7e2
JK
160742012-03-05 Pedro Alves <palves@redhat.com>
16075 Jan Kratochvil <jan.kratochvil@redhat.com>
16076
16077 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16078 New comment why.
16079
5808517f
YQ
160802012-03-03 Yao Qi <yao@codesourcery.com>
16081
16082 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16083 agent_look_up_symbols.
16084
58b4daa5
YQ
160852012-03-03 Yao Qi <yao@codesourcery.com>
16086
16087 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16088 (linux-x86-low.o): Likewise.
16089 * server.h: Remove in_process_agent_loaded.
16090 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16091 common/agent.c.
16092 Update callers.
16093
8ffcbaaf
YQ
160942012-03-03 Yao Qi <yao@codesourcery.com>
16095
16096 * tracepoint.c (gdb_agent_capability): New global.
16097 (in_process_agent_loaded_ust): Renamed to
16098 `in_process_agent_supports_ust'.
16099 Update callers.
16100 (in_process_agent_supports_ust): Call agent_capability_check.
16101 (clear_installed_tracepoints): Assert that agent supports
16102 agent.
16103
d1feda86
YQ
161042012-03-03 Yao Qi <yao@codesourcery.com>
16105
16106 * linux-low.c (linux_supports_agent): New.
16107 (linux_target_ops): Initialize field `supports_agent' with
16108 linux_supports_agent.
16109 * target.h (struct target_ops) <supports_agent>: New.
16110 (target_supports_agent): New macro.
16111 * server.c (handle_general_set): Handle packet 'QAgent'.
16112 (handle_query): Send `QAgent+'.
16113 * Makefile.in (server.o): Depends on agent.h.
16114
2fa291ac
YQ
161152012-03-03 Yao Qi <yao@codesourcery.com>
16116
16117 * Makefile.in (OBS): Add agent.o.
16118 Add new rule for agent.o.
16119 Track dependence of tracepoint.c on agent.h.
16120 * tracepoint.c (run_inferior_command_1):
16121 (run_inferior_command): Call agent_run_command.
16122 (gdb_ust_connect_sync_socket): Deleted. Move it to
16123 common/agent.c.
16124 (resume_thread, stop_thread): Likewise.
16125 (gdb_ust_socket_init): Renamed to ...
16126 (gdb_agent_socket_init): ... New.
16127 (gdb_ust_thread): Renamed to ...
16128 (gdb_agent_helper_thread): ... New.
16129 (gdb_ust_init): Move some code to ...
16130 (gdb_agent_init): ... here. New.
16131 [HAVE_UST]: Call gdb_ust_init.
16132 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16133 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16134 * config.in, configure: Regenerated.
16135
05044653
PA
161362012-03-02 Pedro Alves <palves@redhat.com>
16137
16138 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16139 * linux-low.c (struct simple_pid_list): New.
16140 (stopped_pids): New a struct simple_pid_list pointer.
16141 (add_to_pid_list, pull_pid_from_list): New.
16142 (handle_extended_wait): Don't assume the first signal new children
16143 report is SIGSTOP. Adjust call to pull_pid_from_list.
16144 (linux_wait_for_lwp): Adjust.
16145
8d00225b
YQ
161462012-03-02 Yao Qi <yao@codesourcery.com>
16147
16148 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16149 debug log.
16150
19560ba5
YQ
161512012-03-02 Yao Qi <yao@codesourcery.com>
16152
16153 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16154 `stop_pc' and `tpoint'. Update caller.
16155
1faeff08
MR
161562012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16157
16158 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16159 * linux-low.c (use_linux_regsets): New macro.
16160 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16161 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16162 (linux_register_in_regsets): New function.
16163 (usr_fetch_inferior_registers): Skip registers covered by
16164 regsets.
16165 (usr_store_inferior_registers): Likewise.
16166 (usr_fetch_inferior_registers): New macro.
16167 (usr_store_inferior_registers): Likewise.
16168 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16169 (linux_store_registers): Likewise.
16170 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16171 prototype.
16172 (init_registers_mips64_dsp_linux): Likewise.
16173 (init_registers_mips_linux): New macro.
16174 (init_registers_mips_dsp_linux): Likewise.
16175 (mips_dsp_num_regs): Likewise.
16176 (DSP_BASE, DSP_CONTROL): New fallback macros.
16177 (mips_base_regs): New macro.
16178 (mips_regmap): Use it. Fix the size.
16179 (mips_dsp_regmap): New variable.
16180 (mips_dsp_regset_bitmap): Likewise.
16181 (mips_arch_setup): New function.
16182 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16183 than mips_regmap.
16184 (mips_cannot_store_register): Likewise.
16185 (the_low_target): Update .arch_setup, .num_regs and .regmap
16186 initializers. Add .regset_bitmap initializer.
16187 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16188 initializer.
16189 * linux-bfin-low.c (the_low_target): Likewise.
16190 * linux-cris-low.c (the_low_target): Likewise.
16191 * linux-crisv32-low.c (the_low_target): Likewise.
16192 * linux-ia64-low.c (the_low_target): Likewise.
16193 * linux-m32r-low.c (the_low_target): Likewise.
16194 * linux-m68k-low.c (the_low_target): Likewise.
16195 * linux-ppc-low.c (the_low_target): Likewise.
16196 * linux-s390-low.c (the_low_target): Likewise.
16197 * linux-sh-low.c (the_low_target): Likewise.
16198 * linux-sparc-low.c (the_low_target): Likewise.
16199 * linux-tic6x-low.c (the_low_target): Likewise.
16200 * linux-x86-low.c (the_low_target): Likewise.
16201 * linux-xtensa-low.c (the_low_target): Likewise.
16202 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16203 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16204 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16205 srv_xmlfiles.
16206 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16207 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16208
c03e6ccc
YQ
162092012-02-29 Yao Qi <yao@codesourcery.com>
16210 Pedro Alves <palves@redhat.com>
16211
16212 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16213 `step_over_finished' is true.
16214
644cebc9
PA
162152012-02-27 Pedro Alves <palves@redhat.com>
16216
16217 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16218 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16219
c14d7ab2
PA
162202012-02-27 Pedro Alves <palves@redhat.com>
16221
16222 PR server/9684
16223 * linux-low.c (pid_is_stopped): New.
16224 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16225
412c89dd
LM
162262012-02-25 Luis Machado <lgustavo@codesourcery.com>
16227
16228 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16229 of conditions.
16230
b745defe
MR
162312012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16232
16233 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16234
9f3a5c85
LM
162352012-02-24 Luis Machado <lgustavo@codesourcery>
16236
16237 * server.c (handle_query): Advertise support for target-side
16238 breakpoint condition evaluation.
16239 (process_point_options): New function.
16240 (process_serial_event): When inserting a breakpoint, check for
16241 a target-side condition that should be evaluated.
16242
16243 * mem-break.c: Include regcache.h and ax.h.
16244 (point_cond_list_t): New data structure.
16245 (breakpoint) <cond_list>: New field.
16246 (find_gdb_breakpoint_at): Make non-static.
16247 (delete_gdb_breakpoint_at): Clear any target-side
16248 conditions.
16249 (clear_gdb_breakpoint_conditions): New function.
16250 (add_condition_to_breakpoint): Likewise.
16251 (add_breakpoint_condition): Likewise.
16252 (gdb_condition_true_at_breakpoint): Likewise.
16253 (gdb_breakpoint_here): Return result directly instead
16254 of going through a local variable.
16255
16256 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16257 (clear_gdb_breakpoint_conditions): Likewise.
16258 (add_breakpoint_condition): Likewise.
16259 (gdb_condition_true_at_breakpoint): Likewise.
16260
16261 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16262 (need_step_over_p): Take target-side breakpoint condition into
16263 consideration.
16264
5e1dc496
LM
162652012-02-24 Luis Machado <lgustavo@codesourcery>
16266
16267 * server.h: Include tracepoint.h.
16268 (agent_mem_read, agent_get_trace_state_variable_value,
16269 agent_set_trace_state_variable_value,
16270 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16271 get_set_tsv_func_addr): New prototypes.
16272
16273 * ax.h: New include file.
16274 * ax.c: New source file.
16275
16276 * tracepoint.c: Include ax.h.
16277 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16278 agent_expr, eval_result_type): Move to ax.h.
16279 (parse_agent_expr): Rename to ...
16280 (gdb_parse_agent_expr): ... this, make it non-static and move
16281 to ax.h.
16282 (unparse_agent_expr) Rename to ...
16283 (gdb_unparse_agent_expr): ... this, make it non-static and move
16284 to ax.h.
16285 (eval_agent_expr): Rename to ...
16286 (eval_tracepoint_agent_expr): ... this.
16287 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16288 forward declarations.
16289 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16290 (agent_get_trace_state_variable_value): New function.
16291 (agent_set_trace_state_variable_value): New function.
16292 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16293 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16294 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16295 (condition_true_at_tracepoint): Likewise.
16296 (parse_agent_expr): Rename to ...
16297 (gdb_parse_agent_expr): ... this and move to ax.c.
16298 (unparse_agent_expr): Rename to ...
16299 (gdb_unparse_agent_expr): ... this and move to ax.c.
16300 (gdb_agent_op_name): Move to ax.c.
16301 (eval_agent_expr): Rename to ...
16302 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16303 and move to ax.c.
16304 (eval_tracepoint_agent_expr): New function.
16305 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16306 non-static.
5e1dc496
LM
16307 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16308 ax.c.
16309 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16310 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16311 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16312 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16313 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16314 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16315 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16316 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16317 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16318 (compile_bytecodes): Remove forward declaration.
16319 (is_goto_target): Move to ax.c.
16320 (compile_bytecodes): Move to ax.c and call
16321 agent_get_trace_state_variable_value (...) and
16322 agent_set_trace_state_variable_value (...).
16323
16324 * Makefile.in: Update ax.c and IPA dependencies.
16325
277e4e52
PA
163262012-02-24 Pedro Alves <palves@redhat.com>
16327
16328 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16329 (cmd_bigqtbuffer_circular): ... this. Only handle
16330 'QTBuffer:circular:'.
16331 (handle_tracepoint_general_set): Adjust.
16332
bf4c19f7
YQ
163332012-02-16 Yao Qi <yao@codesourcery.com>
16334
16335 * inferiors.c: Move code to ...
16336 * dll.c: .... here. New.
16337 * server.h: Declare clear_dlls.
16338 * Makefile.in (SFILES): Add dll.c.
16339 (OBS): Add dll.o
16340 (dll.o): New rule.
16341
d73f2619
YQ
163422012-02-11 Yao Qi <yao@codesourcery.com>
16343
16344 * server.c: (handle_monitor_command): Add a new parameter
16345 `own_buf'.
16346 (handle_query): Update caller.
16347
f8255c2a
JB
163482012-02-09 Joel Brobecker <brobecker@adacore.com>
16349
16350 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16351 * configure, config.in: Regenerate.
16352 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16353 is not defined.
16354
da84f473
PA
163552012-02-02 Pedro Alves <palves@redhat.com>
16356
16357 Try SIGKILL first, then PTRACE_KILL.
16358 * linux-low.c (linux_kill_one_lwp): New.
16359 (linux_kill_one_lwp): Rename to ...
16360 (kill_one_lwp_callback): ... this. Use the new
16361 linux_kill_one_lwp.
16362
e886a173
PA
163632012-02-02 Pedro Alves <palves@redhat.com>
16364
16365 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16366 inferior.
16367
be07f1a2
PA
163682012-01-27 Pedro Alves <palves@redhat.com>
16369
16370 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16371 (elf_64_file_p): Make static.
16372 (linux_pid_exe_is_elf_64_file): New.
16373 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16374 Delete declarations.
16375 (linux_pid_exe_is_elf_64_file): Declare.
16376 * linux-x86-low.c (x86_arch_setup): Use
16377 linux_pid_exe_is_elf_64_file.
16378
d8301ad1
JK
163792012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16380
16381 * linux-low.c (linux_wait_for_event_1): Rename to ...
16382 (linux_wait_for_event): ... here and merge it with former
16383 linux_wait_for_event - new variable wait_ptid, use it.
16384 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16385
01b17894
PA
163862012-01-23 Pedro Alves <palves@redhat.com>
16387
16388 * server.c (main): Avoid yet another case of infinite loop while
16389 detaching/killing after a longjmp.
16390
e825046f
JK
163912012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16392
16393 Code cleanup.
16394 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16395
b9e7b9c3
UW
163962012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16397
16398 * hostio.c (handle_readlink): New function.
16399 (handle_vFile): Call it to handle "vFile:readlink" packets.
16400
901f9912
UW
164012012-01-20 Pedro Alves <palves@redhat.com>
16402 Ulrich Weigand <ulrich.weigand@linaro.org>
16403
16404 * server.c (handle_v_requests): Only support vAttach and vRun to
16405 start multiple processes when in extended protocol mode.
16406
fc1ab1a0
PA
164072012-01-17 Pedro Alves <palves@redhat.com>
16408
16409 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16410 memalign plus mprotect to allocate the scratch buffer.
16411
7d5d4e98
PA
164122012-01-13 Pedro Alves <palves@redhat.com>
16413
16414 * server.c (attach_inferior): Clear `cont_thread'.
16415
f128d5e9
PA
164162012-01-13 Pedro Alves <palves@redhat.com>
16417
16418 * server.c (main): Avoid infinite loop while detaching/killing
16419 after a longjmp.
16420
06db92f0
DE
164212012-01-09 Doug Evans <dje@google.com>
16422
16423 * server.c (start_inferior): Set last_ptid in --wrapper case.
16424
32d92999
YQ
164252012-01-06 Yao Qi <yao@codesourcery.com>
16426
16427 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16428 defined.
16429 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16430
5e0a92a9
YQ
164312012-01-04 Yao Qi <yao@codesourcery.com>
16432
16433 * tracepoint.c (cmd_qtdp): Print debug message
16434 for static tracepoint.
16435
ae639e8c
YQ
164362012-01-04 Yao Qi <yao@codesourcery.com>
16437
16438 * tracepoint.c (trace_vdebug): Differentiate debug message
16439 between gdbserver and IPA.
16440
f72429c5
YQ
164412012-01-03 Yao Qi <yao@codesourcery.com>
16442
16443 * tracepoint.c (tracepoint_was_hit): Don't collect for
16444 static tracepoint.
16445
12c3e59c
JB
164462012-01-02 Joel Brobecker <brobecker@adacore.com>
16447
16448 * terminal.h: Reformat copyright header.
16449
67827812
JB
164502012-01-02 Joel Brobecker <brobecker@adacore.com>
16451
16452 * server.c (gdbserver_version): Update copyright year.
16453 * gdbreplay.c (gdbreplay_version): Likewise.
16454
3e52c33d
JK
164552011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16456
16457 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16458
16459 Revert:
16460 2011-12-18 Hui Zhu <teawater@gmail.com>
16461 * linux-low.c (linux_create_inferior): Save return value to ret.
16462
66f1260e
HZ
164632011-12-18 Hui Zhu <teawater@gmail.com>
16464
16465 * linux-low.c (linux_create_inferior): Save return value to ret.
16466
e77616d7
DE
164672011-12-16 Doug Evans <dje@google.com>
16468
e7b06c57
DE
16469 * linux-low.c (linux_create_inferior): If stdio connection,
16470 redirect stdin from /dev/null, stdout to stderr.
16471 * remote-utils.c (remote_is_stdio): New static global.
16472 (remote_connection_is_stdio): New function.
16473 (remote_prepare): Handle stdio connection.
16474 (remote_open): Ditto.
16475 (remote_close): Don't close stdin for stdio connections.
16476 (read_prim,write_prim): New functions. Replace all calls to
16477 read/write to these.
16478 * server.c (main): Watch for "-" argument. Move call to
16479 remote_prepare before start_inferior.
16480 * server.h (STDIO_CONNECTION_NAME): New macro.
16481 (remote_connection_is_stdio): Declare.
16482
e77616d7
DE
16483 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16484 in debugging output.
16485
82067193
YQ
164862011-12-15 Yao Qi <yao@codesourcery.com>
16487
16488 * tracepoint.c: Include sys/syscall.h.
16489 (gdb_ust_thread): Remove preprocessor conditional.
16490
82bfbe7e
PA
164912011-12-14 Pedro Alves <pedro@codesourcery.com>
16492
16493 * linux-low.c (linux_detach_one_lwp): Call
16494 the_low_target.prepare_to_resume before detaching.
16495
712c6575
YQ
164962011-12-14 Yao Qi <yao@codesourcery.com>
16497
16498 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16499 of write.
16500
d54d1edf
YQ
165012011-12-14 Yao Qi <yao@codesourcery.com>
16502
16503 * i386-low.c (i386_low_stopped_data_address): Initialize local
16504 variable `control'.
16505
6210a125
PA
165062011-12-13 Pedro Alves <pedro@codesourcery.com>
16507
16508 PR remote/13492
16509
16510 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16511 DR_CONTROL unless necessary. Extend comments.
16512 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16513 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16514
2ece8244
YQ
165152011-12-13 Yao Qi <yao@codesourcery.com>
16516
16517 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16518 macros.
16519 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16520
784867a5
JK
165212011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16522
16523 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16524 Print new debug message for such case.
16525
6bf36717
JK
165262011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16527
16528 Fix overlapping memcpy.
16529 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16530 the read_inferior_memory transfer.
16531 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16532 write_inferior_memory transfer.
16533 (set_fast_tracepoint_jump): New variable buf. Use it for the
16534 read_inferior_memory and write_inferior_memory transfers.
16535 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16536 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16537 Use it for the write_inferior_memory transfer.
16538 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16539 buffers.
16540
50275556
MR
165412011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16542
16543 * linux-low.c (fetch_register, store_register): Make code
16544 consistent, fix formatting.
16545
7325beb4
MR
165462011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16547
16548 * linux-low.c (usr_store_inferior_registers): Factor out code
16549 to handle individual registers into...
16550 (store_register): ... this new function.
16551
c642a434
UW
165522011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16553
16554 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16555 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16556 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16557 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16558 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16559 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16560 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16561 (srv_xmlfiles): Add new XML files.
16562
16563 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16564 and <sys/uio.h>.
16565 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16566 (init_registers_s390_linux32v1): Add prototype.
16567 (init_registers_s390_linux32v2): Likewise.
16568 (init_registers_s390_linux64v1): Likewise.
16569 (init_registers_s390_linux64v2): Likewise.
16570 (init_registers_s390x_linux64v1): Likewise.
16571 (init_registers_s390x_linux64v2): Likewise.
16572 (s390_num_regs): Increment to 52.
16573 (s390_regmap): Add orig_r2 register.
16574 (s390_num_regs_3264): Increment to 68.
16575 (s390_regmap_3264): Add orig_r2 register.
16576 (s390_collect_ptrace_register): Handle orig_r2 register.
16577 (s390_supply_ptrace_register): Likewise.
16578 (s390_fill_last_break): New function.
16579 (s390_store_last_break): Likewise.
16580 (s390_fill_system_call): New function.
16581 (s390_store_system_call): Likewise.
16582 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16583 register sets.
16584 (s390_check_regset): New function.
16585 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16586 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16587 Update target_regsets for available register sets.
16588
2268b414
JK
165892011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16590 Jan Kratochvil <jan.kratochvil@redhat.com>
16591
16592 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16593 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16594 New.
16595 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16596 * linux-low.h (struct process_info_private): New member r_debug.
16597 * server.c (handle_qxfer_libraries): Call
16598 the_target->qxfer_libraries_svr4.
16599 (handle_qxfer_libraries_svr4): New function.
16600 (qxfer_packets): New entry "libraries-svr4".
16601 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16602 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16603 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16604 PACKET_qXfer_libraries_svr4.
16605
d6db1fab
UW
166062011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16607
16608 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16609 PSW address/mask between 8-byte and 16-byte formats.
16610 (s390_supply_ptrace_register): Likewise.
16611 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16612 basic addressing mode bit.
16613
242f5f1c
SS
166142011-11-24 Stan Shebs <stan@codesourcery.com>
16615
16616 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16617
f196051f
SS
166182011-11-17 Stan Shebs <stan@codesourcery.com>
16619
16620 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16621 (tracing_start_time): New global.
16622 (tracing_stop_time): New global.
16623 (tracing_user_name): New global.
16624 (tracing_notes): New global.
16625 (tracing_stop_note): New global.
16626 (cmd_qtstart): Set traceframe_usage, start_time.
16627 (stop_tracing): Set stop_time.
16628 (cmd_qtstatus): Report additional status.
16629 (cmd_qtp): New function.
16630 (handle_tracepoint_query): Call it.
16631 (cmd_qtnotes): New function.
16632 (handle_tracepoint_general_set): Call it.
16633 (get_timestamp): Rename from tsv_get_timestamp.
16634
405f8e94
SS
166352011-11-14 Stan Shebs <stan@codesourcery.com>
16636 Kwok Cheung Yeung <kcy@codesourcery.com>
16637
16638 * linux-x86-low.c (small_jump_insn): New.
16639 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16640 trampoline and error message, build a trampoline and issue a small
16641 jump instruction to it.
16642 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16643 trampoline and error message.
16644 (x86_get_min_fast_tracepoint_insn_len): New.
16645 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16646 * linux-low.h (struct linux_target_ops): Add arguments to
16647 install_fast_tracepoint_jump_pad operation, add new operation.
16648 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16649 arguments.
16650 (linux_get_min_fast_tracepoint_insn_len): New function.
16651 (linux_target_op): Add new operation.
16652 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16653 (gdb_trampoline_buffer_end): Ditto.
16654 (gdb_trampoline_buffer_error): Ditto.
16655 (struct ipa_sym_addresses): Add fields for new IPA variables.
16656 (symbol_list): Add entries for new IPA variables.
16657 (struct tracepoint): Add fields to hold the address range of the
16658 trampoline used by the tracepoint.
16659 (trampoline_buffer_head): New static variable.
16660 (trampoline_buffer_tail): Ditto.
16661 (claim_trampoline_space): New function.
16662 (have_fast_tracepoint_trampoline_buffer): New function.
16663 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16664 structure.
16665 (install_fast_tracepoint): Ditto, also add error buffer argument.
16666 (cmd_qtminftpilen): New function.
16667 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16668 (fast_tracepoint_from_trampoline_address): New function.
16669 (fast_tracepoint_collecting): Handle trampoline as part of jump
16670 pad space.
16671 (set_trampoline_buffer_space): New function.
16672 (initialize_tracepoint): Initialize new IPA variables.
16673 * target.h (struct target_ops): Add arguments to
16674 install_fast_tracepoint_jump_pad operation, add new
16675 get_min_fast_tracepoint_insn_len operation.
16676 (target_get_min_fast_tracepoint_insn_len): New.
16677 (install_fast_tracepoint_jump_pad): Add arguments.
16678 * server.h (IPA_BUFSIZ): Define.
16679 * linux-i386-ipa.c: Include extra header files.
16680 (initialize_fast_tracepoint_trampoline_buffer): New function.
16681 (initialize_low_tracepoint): Call it.
16682 * server.h (set_trampoline_buffer_space): Declare.
16683 (claim_trampoline_space): Ditto.
16684 (have_fast_tracepoint_trampoline_buffer): Ditto.
16685
1e4d1764
YQ
166862011-11-14 Yao Qi <yao@codesourcery.com>
16687
16688 * server.c (handle_query): Handle InstallInTrace for qSupported.
16689 * tracepoint.c (add_tracepoint): Sort list.
16690 (install_tracepoint, download_tracepoint): New.
16691 (cmd_qtdp): Call them to install and download tracepoints.
16692 (sort_tracepoints): Removed.
16693 (cmd_qtstart): Update.
16694
5c73ff4e
YQ
166952011-11-14 Yao Qi <yao@codesourcery.com>
16696
16697 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16698 * mem-break.h: Declare.
16699 * tracepoint.c (cmd_qtstart): Move some code to ...
16700 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16701 New.
16702 (download_tracepoints): Move some code to ...
16703 (download_tracepoint_1): ... here. New.
16704
86a30030
YQ
167052011-11-08 Yao Qi <yao@codesourcery.com>
16706
16707 * remote-utils.c (relocate_instruction): A comment fix.
16708
8d26e50c
JB
167092011-11-07 Joel Brobecker <brobecker@adacore.com>
16710
16711 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16712 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16713 dr_status_mirror and dr_control_mirror from debug_reg_state.
16714 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16715 (i386_initial_stuff): Remove use of deleted globals.
16716 (i386_get_thread_context, i386_set_thread_context,
16717 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16718 from debug_reg_state.
16719
a59306a3
YQ
167202011-11-05 Yao Qi <yao@codesourcery.com>
16721
16722 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16723 address as TPOINT's.
16724
3065dfb6
SS
167252011-11-02 Stan Shebs <stan@codesourcery.com>
16726
16727 * tracepoint.c (agent_mem_read_string): New function.
16728 (eval_agent_expr): Call it for tracenz.
16729 * server.c (handle_query): Report support for tracenz.
16730
fd0d8c7c
YQ
167312011-11-02 Yao Qi <yao@codesourcery.com>
16732
16733 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16734
609086b1
YQ
167352011-11-02 Yao Qi <yao@codesourcery.com>
16736
16737 * target.h: Fix a typo in comment.
16738
b9fd1791
PA
167392011-10-31 Pedro Alves <pedro@codesourcery.com>
16740
16741 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16742 clobber the breakpoints' shadows with fast tracepoint jumps.
16743 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16744 * target.c (write_inferior_memory): Also pass MYADDR down to
16745 check_mem_write.
16746
03583c20
UW
167472011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16748
16749 * configure.ac: Check support for personality routine.
16750 * configure: Regenerate.
16751 * config.in: Likewise.
16752 * linux-low.c: Include <sys/personality.h>.
16753 Define ADDR_NO_RANDOMIZE if necessary.
16754 (linux_create_inferior): Disable address space randomization when
16755 forking inferior, if requested.
16756 (linux_supports_disable_randomization): New function.
16757 (linux_target_ops): Install it.
16758 * server.h (disable_randomization): Declare.
16759 * server.c (disable_randomization): New global variable.
16760 (handle_general_set): Handle QDisableRandomization.
16761 (handle_query): Likewise for qSupported.
16762 (main): Support --disable-randomization and --no-disable-randomization
16763 command line arguments.
16764 * target.h (struct target_ops): Add supports_disable_randomization.
16765 (target_supports_disable_randomization): New macro.
16766
723b724b
MF
167672011-09-29 Mike Frysinger <vapier@gentoo.org>
16768
16769 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16770 ifdef check.
16771 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16772 [!PT_GETDSBT] (target_loadmap): New definition.
16773 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16774 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16775 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16776 and PT_GETDSBT to LINUX_LOADMAP.
16777 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16778 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16779
55329a5c 167802011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16781
16782 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16783 (arm_linux_hwbp_cap): New static variable.
16784 (arm_linux_get_hwbp_cap): Replace by ...
16785 (arm_linux_init_hwbp_cap): ... this new function.
16786 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16787 (arm_linux_get_hw_watchpoint_count): Likewise.
16788 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16789 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16790 (arm_prepare_to_resume): Use perror_with_name instead of error.
16791
55329a5c 167922011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16793
16794 * linux-arm-low.c: Include <signal.h>.
16795 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16796 (struct arm_linux_hwbp_cap): New data type.
16797 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16798 (struct arm_linux_hw_breakpoint): New data type.
16799 (MAX_BPTS, MAX_WPTS): Define.
16800 (struct arch_process_info, struct arch_lwp_info): New data types.
16801 (arm_linux_get_hwbp_cap): New function.
16802 (arm_linux_get_hw_breakpoint_count): Likewise.
16803 (arm_linux_get_hw_watchpoint_count): Likewise.
16804 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16805 (arm_hwbp_control_initialize): Likewise.
16806 (arm_hwbp_control_is_enabled): Likewise.
16807 (arm_hwbp_control_is_initialized): Likewise.
16808 (arm_hwbp_control_disable): Likewise.
16809 (arm_linux_hw_breakpoint_equal): Likewise.
16810 (arm_linux_hw_point_initialize): Likewise.
16811 (struct update_registers_data): New data structure.
16812 (update_registers_callback: New function.
16813 (arm_insert_point): Likewise.
16814 (arm_remove_point): Likewise.
16815 (arm_stopped_by_watchpoint): Likewise.
16816 (arm_stopped_data_address): Likewise.
16817 (arm_new_process): Likewise.
16818 (arm_new_thread): Likewise.
16819 (arm_prepare_to_resume): Likewise.
16820 (the_low_target): Register arm_insert_point, arm_remove_point,
16821 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16822 arm_new_thread, and arm_prepare_to_resume.
16823
6b9801d4
SS
168242011-09-15 Stan Shebs <stan@codesourcery.com>
16825
16826 * server.h (struct emit_ops): Add compare-goto fields.
16827 * tracepoint.c (gdb_agent_op_sizes): New table.
16828 (emit_eq_goto): New function.
16829 (emit_ne_goto): New function.
16830 (emit_lt_goto): New function.
16831 (emit_le_goto): New function.
16832 (emit_gt_goto): New function.
16833 (emit_ge_goto): New function.
16834 (is_goto_target): New function.
16835 (compile_bytecodes): Recognize special cases of compare-goto
16836 combinations and call specialized emitters for them.
16837 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16838 (amd64_emit_ne_goto): New function.
16839 (amd64_emit_lt_goto): New function.
16840 (amd64_emit_le_goto): New function.
16841 (amd64_emit_gt_goto): New function.
16842 (amd64_emit_ge_goto): New function.
16843 (amd64_emit_ops): Add the new functions.
16844 (i386_emit_eq_goto): New function.
16845 (i386_emit_ne_goto): New function.
16846 (i386_emit_lt_goto): New function.
16847 (i386_emit_le_goto): New function.
16848 (i386_emit_gt_goto): New function.
16849 (i386_emit_ge_goto): New function.
16850 (i386_emit_ops): Add the new functions.
16851
bf15cbda
SS
168522011-09-08 Stan Shebs <stan@codesourcery.com>
16853
16854 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16855 (i386_emit_epilogue): Restore %ebx.
16856
943ca1dd
JZ
168572011-08-31 Jie Zhang <jzhang918@gmail.com>
16858
16859 * server.c (step_thread): Remove definition.
16860 (process_serial_event): Don't handle Hs.
16861 * server.h (step_thread): Remove declaration.
16862 * target.c (set_desired_inferior): Remove use of step_thread.
16863
e3deef73
LM
168642011-08-24 Luis Machado <lgustavo@codesourcery.com>
16865
16866 * linux-low.c: Include linux-procfs.h.
16867 (linux_attach_lwp_1): Update comments.
16868 (linux_attach): Scan for existing threads when attaching to a
16869 process that is the tgid.
16870 * Makefile.in: Update dependencies.
16871
13da1c97
LM
168722011-08-24 Luis Machado <lgustavo@codesourcery.com>
16873
16874 * configure.srv: Add linux-procfs.o dependencies.
16875
881127c9
YQ
168762011-08-14 Yao Qi <yao@codesourcery.com>
16877
16878 * target.h (struct target_ops): Fix indent.
16879 * win32-low.c (win32_target_ops): Fix comment.
16880
58dbd541
YQ
168812011-08-14 Andrew Jenner <andrew@codesourcery.com>
16882 Yao Qi <yao@codesourcery.com>
16883
16884 * Makefile.in (clean): Remove tic6x-*.c files.
16885 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16886 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16887 (tic6x-c64xp-linux.c): Likewise.
16888 * configure.srv: Add support for tic6x-*-uclinux.
16889 * linux-tic6x-low.c: New.
16890 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16891
78d85199
YQ
168922011-08-14 Andrew Stubbs <ams@codesourcery.com>
16893 Yao Qi <yao@codesourcery.com>
16894
16895 * target.h (struct target_ops): Add read_loadmap.
16896 * linux-low.c (struct target_loadseg): New type.
16897 (struct target_loadmap): New type.
16898 (linux_read_loadmap): New function.
16899 (linux_target_ops): Add linux_read_loadmap.
16900 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16901 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16902 to NULL.
78d85199 16903
a959a88d
EZ
169042011-08-05 Eli Zaretskii <eliz@gnu.org>
16905
16906 * win32-low.c: Include <stdint.h>.
16907
1ced966e
PA
169082011-07-22 Pedro Alves <pedro@codesourcery.com>
16909
16910 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16911 to the inferior here.
16912 (i386_remove_aligned_watchpoint): Ditto.
16913 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16914 fit part of the watchpoint in the debug registers.
16915 (i386_update_inferior_debug_regs): New.
16916 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16917 registers, and only update the inferior on success.
16918 (i386_low_remove_watchpoint): Ditto.
16919
d26e3629
KY
169202011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16921
16922 * linux-low.c (compare_ints, unique, list_threads, show_process,
16923 linux_core_of_thread): Delete.
16924 (linux_target_ops): Change linux_core_of_thread to
16925 linux_common_core_of_thread.
16926 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16927 * utils.c (malloc_failure): Change type of argument.
16928 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16929 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16930 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16931 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16932 (IPA_OBJS): Add common-utils-ipa.o.
16933 (ptid_h, linux_osdata_h): New macros.
16934 (server_h): Add common/common-utils.h, common/xml-utils.h,
16935 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16936 common/ptid.h.
16937 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16938 ptid.o, buffer.o): New rules.
16939 (linux-low.o): Add common/linux-osdata.h as a dependency.
16940 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16941 * configure.ac: Add AC_HEADER_DIRENT check.
16942 * config.in: Regenerate.
16943 * configure: Regenerate.
16944 * remote-utils.c (xml_escape_text): Delete.
16945 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16946 buffer_xml_printf): Move to common/buffer.c.
16947 * server.c (main): Remove call to initialize_inferiors.
16948 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16949 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16950 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16951 internal_error, gdb_assert, gdb_assert_fail): Delete.
16952 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16953 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16954 common/buffer.h.
16955 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16956 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16957 initialize_inferiors): Delete.
16958
2275a1a7
PA
169592011-07-20 Pedro Alves <pedro@codesourcery.com>
16960
16961 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16962 symbol error.
16963
0a5b1e09
PA
169642011-05-31 Pedro Alves <pedro@codesourcery.com>
16965
16966 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16967 assertion.
16968 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16969
6938fd34
YQ
169702011-05-26 Yao Qi <yao@codesourcery.com>
16971
16972 * Makefile.in (thread-db.o): Track dependence to
16973 common/gdb_thread_db.h.
16974 * thread-db.c: include gdb_thread_db.h from right place.
16975
b481f9e0
TT
169762011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16977
16978 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16979 __FILE__ and __LINE__ to internal_error.
16980
98a5dd13
DE
169812011-05-13 Doug Evans <dje@google.com>
16982
16983 * thread-db.c (try_thread_db_load_from_sdir): New function.
16984 (try_thread_db_load_from_dir): New function.
16985 (thread_db_load_search): Handle $sdir, ignore $pdir.
16986 Remove trying of system directories if search of
16987 libthread-db-search-path fails, that is now done via $sdir.
16988
d248b706
KY
169892011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16990
16991 * server.c (handle_query): Add EnableDisableTracepoints to the list
16992 of supported features.
43aaf8b6 16993 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16994 tracepoints.
43aaf8b6
PA
16995 (cmd_qtenable_disable): New.
16996 (cmd_qtstart): Install tracepoints even if disabled.
16997 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16998 receiving a QTEnable or QTDisable packet.
16999 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17000 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17001 tracepoints.
17002 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 17003
84e578fb
DE
170042011-05-10 Doug Evans <dje@google.com>
17005
17006 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17007
71f55dd8
DE
170082011-05-04 Doug Evans <dje@google.com>
17009
17010 * linux-low.c (linux_join): Skip process lookup.
17011 * spu-low.c (spu_join): Ditto.
17012 * server.c (join_inferiors_callback): Delete.
17013 (process_serial_event): For 'D' packet (detach) call join_inferior
17014 directly.
17015
4d393d60
JM
170162011-05-04 Joseph Myers <joseph@codesourcery.com>
17017
17018 * README: Don't mention xscale*-*-linux*.
17019 * configure.srv (xscale*-*-linux*): Don't handle target.
17020
b00ad6ff
NF
170212011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17022
17023 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17024 casting pointers.
17025 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17026 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17027 (i386_emit_void_call_2): Likewise.
17028
af96c192
YQ
170292011-04-26 Yao Qi <yao@codesourcery.com>
17030
43aaf8b6
PA
17031 * linux-low.c: Move common macros to linux-ptrace.h.
17032 Include linux-ptrace.h.
af96c192
YQ
17033 * Makefile.in (linux_ptrace_h): New.
17034 (linux-low.o): Depends on linux-ptrace.h.
17035
03f2bd59
JK
170362011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17037
17038 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17039 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17040 (remote_prepare): New function with most of the TCP code from ...
17041 (remote_open): ... here. Detect PORT here unconditionally. Move also
17042 setting transport_is_reliable.
17043 * server.c (run_once): New variable.
17044 (gdbserver_usage): Document it.
17045 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17046 the first run if RUN_ONCE.
17047 * server.h (run_once, remote_prepare): New declarations.
17048
7a9dd1b2
TT
170492011-04-19 Tom Tromey <tromey@redhat.com>
17050
17051 * win32-low.c (handle_load_dll): Remove duplicate "the".
17052
81239425
PM
170532011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17054
17055 Remove support for old Cygwin 1.5 versions.
17056 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17057 function to avoid warning.
17058 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17059 warning.
17060
9e0627f1
PM
170612011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17062
17063 * gdbserver/server.h (Macro _): Define it if not available.
17064
588eebee
MS
170652011-03-14 Michael Snyder <msnyder@vmware.com>
17066
348af9f7 17067 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 17068
43f70d4c
JB
170692011-03-10 Joel Brobecker <brobecker@adacore.com>
17070
17071 * Makefile.in (maintainer-clean realclean distclean): Remove
17072 "make ... subdir_do" command.
17073
348af9f7
MS
170742011-03-10 Michael Snyder <msnyder@vmware.com>
17075
17076 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17077
17078 * server.c (handle_v_run): Free alloced buffer on early return.
17079
e637a4f5
YQ
170802011-03-09 Yao Qi <yao@codesourcery.com>
17081
17082 Revert:
17083 2011-03-04 Yao Qi <yao@codesourcery.com>
17084
17085 * Makefile.in: Remove GNU make feature --directory.
17086
17087 2011-03-05 Yao Qi <yao@codesourcery.com>
17088
17089 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17090 (subdir_do): New make target. Copied from gdb/Makefile.
17091 (maintainer-clean, realclean, distclean, clean): Call corresponding
17092 make targets in common/Makefile.
17093
17094 2011-02-11 Yao Qi <yao@codesourcery.com>
17095
17096 * configure.ac: Call AC_PROG_RANLIB.
17097 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17098 * configure: Regenerate.
17099
e6edda56
JK
171002011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17101
17102 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17103
e5141119
JB
171042011-03-06 Yao Qi <yao@codesourcery.com>
17105
17106 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17107
64794aa4
JB
171082011-03-05 Yao Qi <yao@codesourcery.com>
17109
17110 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17111 (subdir_do): New make target. Copied from gdb/Makefile.
17112 (maintainer-clean, realclean, distclean, clean): Call corresponding
17113 make targets in common/Makefile.
17114
7a762829
YQ
171152011-03-04 Yao Qi <yao@codesourcery.com>
17116
17117 * Makefile.in: Remove GNU make feature --directory.
17118
348af9f7
MS
171192011-03-04 Michael Snyder <msnyder@vmware.com>
17120
17121 * server.c (queue_stop_reply): Call xmalloc not malloc.
17122
171232011-03-02 Michael Snyder <msnyder@vmware.com>
17124
17125 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17126
9f72fee2
MS
171272011-02-28 Michael Snyder <msnyder@vmware.com>
17128
588eebee
MS
17129 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17130 (cmd_qtframe): Ditto.
17131 (cmd_qtbuffer): Ditto.
17132 (cmd_bigqtbuffer): Ditto.
17133
9f72fee2
MS
17134 * utils.c (decimal2str): Initialize 'width' to nine, then
17135 don't mess with it.
17136
8040bd49
UW
171372011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17138
17139 * hostio.c (require_data): Free *data, not data.
17140
7e52cbd0
JK
171412011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17142
17143 * hostio.c (require_data): Use free, not xfree.
17144
9130f83e
MS
171452011-02-27 Michael Snyder <msnyder@vmware.com>
17146
4b812f4e
MS
17147 * server.c (handle_query): Discard unused value.
17148
9130f83e
MS
17149 * hostio.c (require_data): Free malloc memory before returning
17150 error.
17151
69d37113
MS
171522011-02-26 Michael Snyder <msnyder@vmware.com>
17153
17154 * linux-low.c (list_threads): Call closedir for dirent.
17155
35f5825a
MS
171562011-02-27 Michael Snyder <msnyder@vmware.com>
17157
2a589cef
MS
17158 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17159 a case statement falls through.
17160
0adea5f7
MS
17161 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17162
35f5825a
MS
17163 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17164 in comparison.
17165
238f1c74
MS
171662011-02-26 Michael Snyder <msnyder@vmware.com>
17167
17168 * utils.c (decimal2str): Eliminate dead code and dead param.
17169 (pulongest): Drop dead param from call to decimal2str.
17170 (plongest): Ditto.
17171
633ff500
JB
171722011-02-24 Joel Brobecker <brobecker@adacore.com>
17173
17174 Revert the following patch (not approved yet):
17175 2011-02-21 Hui Zhu <teawater@gmail.com>
17176 * tracepoint.c (tp_printf): New function.
17177 (eval_agent_expr): Handle gdb_agent_op_printf.
17178
f9c6ff72
HZ
171792011-02-21 Hui Zhu <teawater@gmail.com>
17180
17181 * tracepoint.c (tp_printf): New function.
17182 (eval_agent_expr): Handle gdb_agent_op_printf.
17183
94d5e490
TT
171842011-02-18 Tom Tromey <tromey@redhat.com>
17185
17186 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17187 (tracepoint.o): Likewise.
17188 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17189 (gdb_agent_op_names): Likewise.
17190
c7f96d2b
TT
171912011-02-18 Tom Tromey <tromey@redhat.com>
17192
17193 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17194 gdb_agent_op_rot>: New constants.
17195 (gdb_agent_op_names): Add pick and roll.
17196 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17197 cases.
17198
0feedb2c
JK
171992011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17200
17201 * aclocal.m4: Regenerated with aclocal-1.11.1.
17202
b3b9301e
PA
172032011-02-14 Pedro Alves <pedro@codesourcery.com>
17204
17205 * server.c (handle_qxfer_traceframe_info): New.
17206 (qxfer_packets): Register "traceframe-info".
17207 (handle_query): Report support for qXfer:traceframe-info:read+.
17208 * tracepoint.c (match_blocktype): New.
17209 (traceframe_find_block_type): Rename to ...
17210 (traceframe_walk_blocks): ... this. Add callback filter argument,
17211 and use it.
17212 (traceframe_find_block_type): New, reimplemented on top of
17213 traceframe_walk_blocks.
17214 (build_traceframe_info_xml): New.
17215 (traceframe_read_info): New.
17216 * server.h (traceframe_read_info): Declare.
17217
4f3e6fb7
YQ
172182011-02-11 Yao Qi <yao@codesourcery.com>
17219
17220 * configure.ac: Call AC_PROG_RANLIB.
17221 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17222 * configure: Regenerate.
17223
764880b7
PA
172242011-02-07 Pedro Alves <pedro@codesourcery.com>
17225
17226 * server.c (gdb_read_memory): Change return semantics to allow
17227 partial transfers.
17228 (handle_search_memory_1): Adjust.
17229 (process_serial_event) <'m' packet>: Handle partial transfers.
17230 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17231
1c79eb8a
PA
172322011-01-28 Pedro Alves <pedro@codesourcery.com>
17233
17234 * regcache.c (init_register_cache): Initialize
17235 regcache->register_status.
17236 (free_register_cache): Release regcache->register_status.
17237 (regcache_cpy): Copy register_status.
17238 (registers_to_string): Print 'x's for unavailable registers.
17239 (supply_register): Mark the register's status valid or
17240 unavailable, depending on whether a buffer was passed in or not.
17241 (supply_register_zeroed): New.
17242 (supply_regblock): Mark the registers' status valid or
17243 unavailable, depending on whether a buffer was passed in or not.
17244 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17245 (struct regcache): New `register_status' field.
17246 (supply_register_zeroed): Declare.
17247 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17248 supply_register_zeroed, rather than passing a NULL buffer to
17249 supply_register.
17250 * tracepoint.c (fetch_traceframe_registers): Update comment.
17251
85724a0e
PA
172522011-01-28 Pedro Alves <pedro@codesourcery.com>
17253
17254 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17255 buffer explicit.
17256
d08aafef
PA
172572011-01-25 Pedro Alves <pedro@codesourcery.com>
17258
17259 * server.h (decode_xfer_write): Change prototype.
17260 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17261 and don't extract the annex here.
17262 * server.c (decode_xfer_read): Remove `annex' parameter,
17263 and don't extract the annex here.
17264 (decode_xfer): New.
17265 (struct qxfer): New.
17266 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17267 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17268 (handle_qxfer_statictrace): New functions, abstracted out from
17269 handle_query, and made to use the struct qxfer interface.
17270 (handle_threads_qxfer_proper): Rename to ...
17271 (handle_qxfer_threads_proper): ... this.
17272 (handle_threads_qxfer): Rename to ...
17273 (handle_qxfer_threads): ... this. Adjust.
17274 (qxfer_packets): New array.
17275 (handle_qxfer): New function.
17276 (handle_query): Use handle_qxfer.
17277
493e2a69
MS
172782011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17279
17280 * gdbreplay.c: Shorten lines of >= 80 columns.
17281 * linux-low.c: Ditto.
17282 * linux-ppc-low.c: Ditto.
17283 * linux-s390-low.c: Ditto.
17284 * linux-sparc-low.c: Ditto.
17285 * linux-x86-low.c: Ditto.
17286 * linux-xtensa-low.c: Ditto.
17287 * mem-break.c: Ditto.
17288 * nto-low.c: Ditto.
17289 * regcache.h: Ditto.
17290 * remote-utils.c: Ditto.
17291 * server.c: Ditto.
17292 * server.h: Ditto.
17293 * thread-db.c: Ditto.
17294 * tracepoint.c: Ditto.
17295 * utils.c: Ditto.
17296 * win32-low.h: Ditto.
17297
44944448
JB
172982011-01-05 Joel Brobecker <brobecker@adacore.com>
17299
17300 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17301 update.
17302
71ce852c
JB
173032011-01-01 Joel Brobecker <brobecker@adacore.com>
17304
17305 * server.c (gdbserver_version): Update copyright year in version
17306 output.
17307 * gdbreplay.c (gdbreplay_version): Ditto.
17308
eb826dc6
MF
173092010-12-29 Jie Zhang <jie.zhang@analog.com>
17310
17311 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17312 * linux-bfin-low.c: New file.
17313 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17314 PT_DATA_ADDR for BFIN targets.
17315 * Makefile.in (SFILES): Add linux-bfin-low.c.
17316 (clean): Remove reg-bfin.c.
17317 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17318 * README: Mention supported Blackfin targets.
17319
39ab222a
MF
173202010-12-23 Mike Frysinger <vapier@gentoo.org>
17321
17322 * .gitignore: New file.
17323
a1f2ce7d
MF
173242010-11-16 Mike Frysinger <vapier@gentoo.org>
17325
17326 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17327
f474844c
JZ
173282010-10-22 Jie Zhang <jie@codesourcery.com>
17329
17330 * Makefile.in: Add FLAGS_TO_PASS variable.
17331 (install): Remove dependency of install-only and recursively
17332 invoke make for install-only.
17333
f1048712
DE
173342010-10-04 Doug Evans <dje@google.com>
17335
17336 * Makefile.in (uninstall): Use $(DESTDIR).
17337
b53a1623
PA
173382010-09-24 Pedro Alves <pedro@codesourcery.com>
17339
e6ee044d
PA
17340 PR gdb/11842
17341
b53a1623
PA
17342 * linux-x86-low.c (compat_siginfo_from_siginfo)
17343 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17344 si_code is < 0. Check for si_code == SI_TIMER before checking for
17345 si_code < 0.
17346
fa1bd1e4
JB
173472010-09-13 Joel Brobecker <brobecker@adacore.com>
17348
17349 * lynx-i386-low.c: New file.
17350 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17351
47fac8f8
JB
173522010-09-13 Joel Brobecker <brobecker@adacore.com>
17353
17354 * lynx-low.c (ptrace_request_to_str): Remove handling for
17355 request values that have been removed in LynxOS 5.x.
17356
1adfc54d
JB
173572010-09-13 Joel Brobecker <brobecker@adacore.com>
17358
17359 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17360 <ptrace.h>
17361
c2a66c29
NS
173622010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17363
17364 * configure.ac: Add --enable-inprocess-agent option.
17365 * configure: Rebuilt.
17366
32fcada3
YQ
173672010-09-06 Yao Qi <yao@codesourcery.com>
17368
17369 * linux-low.c (linux_kill): Remove unused variable.
17370 (linux_stabilize_threads): Likewise.
17371 * server.c (start_inferior): Likewise.
17372 (queue_stop_reply_callback): Likewise.
17373 * tracepoint.c (do_action_at_tracepoint): Likewise.
17374
0cccb683
YQ
173752010-09-06 Yao Qi <yao@codesourcery.com>
17376
17377 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17378 on return.
17379
423ec54c
JK
173802010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17381
17382 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17383
12ac6819
PA
173842010-09-06 Pedro Alves <pedro@codesourcery.com>
17385
17386 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17387 "$(IPA_DEPFILES)".
17388
8ed54b31
JB
173892010-09-01 Joel Brobecker <brobecker@adacore.com>
17390
17391 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17392 gdbserver/lynx-ppc-low.c: New files.
17393 * Makefile.in (lynx_low_h): New variable.
17394 (lynx-low.o, lynx-ppc-low.o): New rules.
17395 * configure.ac: On LynxOS, link with -lnetinet.
17396 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17397 * configure: regenerate.
17398
bb0116a4
JB
173992010-09-01 Joel Brobecker <brobecker@adacore.com>
17400
17401 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17402 * configure.ac: Add check for vasprintf and vsnprintf.
17403 * configure, config.in: Regenerate.
17404 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17405
a778ab81 174062010-09-01 Joel Brobecker <brobecker@adacore.com>
17407
17408 * gdbreplay.c: Move include of alloca.h up, next to include of
17409 malloc.h.
17410 * server.h: Add include of malloc.h.
17411 * mem-break.c: Remove include of malloc.h.
17412 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17413
8b034a19 174142010-09-01 Joel Brobecker <brobecker@adacore.com>
17415
17416 * Makefile.in (memmem.o): Build with -Wno-error.
17417
174182010-09-01 Joel Brobecker <brobecker@adacore.com>
17419
17420 * utils.c (xsnprintf): Make non-static.
17421 * server.h: Add xsnprintf declaration.
17422 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17423 replace calls to snprintf by calls to xsnprintf throughout.
17424
174252010-09-01 Joel Brobecker <brobecker@adacore.com>
17426
17427 * configure.ac: Add configure check for alloca.
17428 * configure, config.in: Regenerate.
17429 * server.h: Include alloca.h if it exists.
17430 * gdbreplay.c: Include alloca.h if it exists.
17431
1a981360
PA
174322010-08-28 Pedro Alves <pedro@codesourcery.com>
17433
17434 * linux-low.c (__SIGRTMIN): Define if not already defined.
17435 (linux_create_inferior): Check for __ANDROID__ rather than
17436 __SIGRTMIN.
17437 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17438 are already deferred.
17439 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17440 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17441 stopped and already has a pending signal to report.
17442 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17443 a pending signal to report or is moving out of a jump pad.
17444 (linux_init_signals): Check for __ANDROID__ rather than
17445 __SIGRTMIN.
17446
b4d51a55
PA
174472010-08-28 Pedro Alves <pedro@codesourcery.com>
17448
17449 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17450 debug_threads check. Avoid a linear search when not doing debug
17451 output.
17452
ec48365d
PA
174532010-08-27 Pedro Alves <pedro@codesourcery.com>
17454
17455 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17456 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17457 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17458 (process_event): Change local fd's type to gdb_fildes_t.
17459 (create_file_handler): Adjust prototype.
17460 (delete_file_handler): Adjust prototype.
17461 (handle_file_event): Adjust prototype. Use pfildes.
17462 (create_file_event): Adjsut prototype.
17463 * remote-utils.c (remote_desc, listen_desc): Change type to
17464 gdb_fildes_t.
17465 * server.h: New gdb_fildes_t typedef.
17466 [USE_WIN32API]: Include winsock2.h.
17467 (delete_file_handler, add_file_handler): Adjust prototypes.
17468 (pfildes): Declare.
17469 * utils.c (pfildes): New.
17470
854d88f0
PA
174712010-08-27 Pedro Alves <pedro@codesourcery.com>
17472
17473 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17474 * configure: Regenerate.
17475
0146f85b
PA
174762010-08-27 Pedro Alves <pedro@codesourcery.com>
17477
17478 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17479 (linux_done_accessing_memory): ... this.
17480 (linux_target_ops): Adjust.
17481 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17482 * nto-low.c (nto_target_ops): Adjust comment.
17483 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17484 * spu-low.c (spu_target_ops): Adjust comment.
17485 * target.h (target_ops): Rename unprepare_to_access_memory field
17486 to done_accessing_memory.
17487 (unprepare_to_access_memory): Rename to ...
17488 (done_accessing_memory): ... this.
17489
90d74c30
PA
174902010-08-26 Pedro Alves <pedro@codesourcery.com>
17491
17492 * linux-low.c (linux_prepare_to_access_memory): New.
17493 (linux_unprepare_to_access_memory): New.
17494 (linux_target_ops): Install them.
17495 * server.c (read_memory): Rename to ...
17496 (gdb_read_memory): ... this. Use
17497 prepare_to_access_memory/prepare_to_access_memory.
17498 (write_memory): Rename to ...
17499 (gdb_write_memory): ... this. Use
17500 prepare_to_access_memory/prepare_to_access_memory.
17501 (handle_search_memory_1): Adjust.
17502 (process_serial_event): Adjust.
17503 * target.h (struct target_ops): New fields
17504 prepare_to_access_memory and unprepare_to_access_memory.
17505 (prepare_to_access_memory, unprepare_to_access_memory): New.
17506 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17507 prepare_to_access_memory/prepare_to_access_memory.
17508 * nto-low.c (nto_target_ops): Adjust.
17509 * spu-low.c (spu_target_ops): Adjust.
17510 * win32-low.c (win32_target_ops): Adjust.
17511
fd467969
PA
175122010-08-26 Pedro Alves <pedro@codesourcery.com>
17513
17514 * Makefile.in (WARN_CFLAGS): Get it from configure.
17515 (WERROR_CFLAGS): New.
17516 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17517 * configure.ac: Introduce --enable-werror, which adds -Werror to
17518 the compiler command line. Enabled by default. Disable with
17519 --disable-werror. Add -Wdeclaration-after-statement
17520 Wpointer-arith and -Wformat-nonliteral to warning flags.
17521 * configure: Regenerate.
17522
331e2f5f
PA
175232010-08-26 Pedro Alves <pedro@codesourcery.com>
17524
17525 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17526
e581f2b4
PA
175272010-08-26 Pedro Alves <pedro@codesourcery.com>
17528
17529 * gdbreplay.c (remote_error): New.
17530 (gdbchar): New.
17531 (expect): Use gdbchar. Check for error reading from GDB.
17532 Clarify sync error output.
17533 (play): Check for errors writing to GDB.
17534 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17535 * remote-utils.c (getpkt): Check for errors writing to the remote
17536 descriptor.
17537
3c11dd79
PA
175382010-08-25 Pedro Alves <pedro@codesourcery.com>
17539
17540 * linux-low.c (linux_wait_1): Move non-debugging code out of
17541 `debug_threads' control.
17542
d20a8ad9
PA
175432010-08-25 Pedro Alves <pedro@codesourcery.com>
17544
17545 * linux-low.c (linux_wait_1): Don't set last_status here.
17546 * server.c (push_event, queue_stop_reply_callback): Assert we're
17547 not pushing a TARGET_WAITKIND_IGNORE event.
17548 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17549 (myresume, handle_target_event): Set the thread's last_resume_kind
17550 and last_status from the target returned status.
17551
964e4306
PA
175522010-08-25 Pedro Alves <pedro@codesourcery.com>
17553
17554 PR threads/10729
17555
17556 * linux-x86-low.c (update_debug_registers_callback): New.
17557 (i386_dr_low_set_addr): Use it.
17558 (i386_dr_low_get_addr): New.
17559 (i386_dr_low_set_control): Use update_debug_registers_callback.
17560 (i386_dr_low_get_control): New.
17561 (i386_dr_low_get_status): Adjust.
17562 * linux-low.c (linux_stop_lwp): New.
17563 * linux-low.h (linux_stop_lwp): Declare.
17564
17565 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17566 argument instead of a i386_debug_reg_state.
17567 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17568 a i386_debug_reg_state.
17569 (i386_insert_aligned_watchpoint): Adjust.
17570 (i386_remove_aligned_watchpoint): Adjust.
17571 (i386_low_stopped_data_address): Read the debug registers from the
17572 inferior instead of from the mirrors.
17573 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17574 (i386_dr_low_get_addr): Declare.
17575 (i386_dr_low_get_control): Declare.
17576 (i386_dr_low_get_status): Change prototype.
17577
17578 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17579 (i386_dr_low_get_addr): New.
17580 (i386_dr_low_get_control): New.
17581 (i386_dr_low_get_status): Adjust prototype. Return
17582 dr_status_mirror.
17583 (i386_initial_stuff): Clear dr_status_mirror and
17584 dr_control_mirror.
17585 (i386_get_thread_context): Adjust.
17586 (i386_set_thread_context): Adjust.
17587 (i386_thread_added): Adjust.
17588
5f21a75b
PA
175892010-08-24 Pedro Alves <pedro@codesourcery.com>
17590
17591 * linux-low.h (linux_thread_area): Delete declaration.
17592
3e4c1235
TS
175932010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17594
17595 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17596 after its termination.
17597
1971b033
PA
175982010-08-09 Pedro Alves <pedro@codesourcery.com>
17599
17600 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17601 (gdb_wants_all_stopped): Delete.
17602 (linux_wait_1): Don't call them.
17603 * server.c (handle_v_cont): Tag all threads as want-stopped.
17604 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17605 stopped as "client-wants-stopped".
17606
310444ac
PA
176072010-07-31 Pedro Alves <pedro@codesourcery.com>
17608
17609 * Makefile.in (signals_h): New.
17610 (server_h): Depend on it.
17611 (server.o): Don't depend on $(signals_def).
17612 (signals.o): Depend on $(signals_def).
17613
a19cae16
JK
176142010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17615
17616 * Makefile.in (signals_def): New.
17617 (server_h): Append include/gdb/signals.h and signals_def.
17618 (server.o): Append signals_def.
17619
30d50328
JK
176202010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17621
17622 * server.c (handle_target_event): Use target_signal_to_host for
17623 resume_info.sig initialization.
17624 * target.h (struct thread_resume) <sig>: New comment.
17625
5c3216e2
OS
176262010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17627
c6f46ca0
OS
17628 * server.c (handle_query): strcpy() the returned string from paddress()
17629 instead of sprintf().
5c3216e2
OS
17630 * utils.c (paddress): Return phex_nz().
17631
6bd31874
JB
176322010-07-07 Joel Brobecker <brobecker@adacore.com>
17633
17634 * server.c (handle_v_cont): Call mourn_inferior if process
17635 just exited.
17636 (myresume): Likewise.
17637
0fb4aa4b
PA
176382010-07-01 Pedro Alves <pedro@codesourcery.com>
17639
17640 Static tracepoints, and integration with UST.
17641
17642 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17643 * mem-break.c (uninsert_all_breakpoints)
17644 (reinsert_all_breakpoints): New.
17645 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17646 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17647 (gdb_agent_ust_loaded, helper_thread_id)
17648 (gdb_agent_helper_thread_id): New macros.
17649 (struct ipa_sym_addresses): Add addr_ust_loaded,
17650 addr_helper_thread_id, addr_cmd_buf.
17651 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17652 (in_process_agent_loaded_ust): New.
17653 (write_e_ust_not_loaded): New.
17654 (maybe_write_ipa_ust_not_loaded): New.
17655 (struct collect_static_trace_data_action): New.
17656 (enum tracepoint_type) <static_tracepoint>: New.
17657 (struct tracepoint) <handle>: Mention static tracepoints.
17658 (struct static_tracepoint_ctx): New.
17659 (CMD_BUF_SIZE): New.
17660 (add_tracepoint_action): Handle static tracepoint actions.
17661 (unprobe_marker_at): New.
17662 (clear_installed_tracepoints): Handle static tracepoints.
17663 (cmd_qtdp): Handle static tracepoints.
17664 (probe_marker_at): New.
17665 (cmd_qtstart): Handle static tracepoints.
17666 (response_tracepoint): Handle static tracepoints.
17667 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17668 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17669 (get_context_regcache): Handle static tracepoints.
17670 (do_action_at_tracepoint): Handle static tracepoint actions.
17671 (traceframe_find_block_type): Handle static trace data blocks.
17672 (traceframe_read_sdata): New.
17673 (download_tracepoints): Download static tracepoint actions.
17674 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17675 (GDB_PROBE_NAME): New.
17676 (ust_ops): New.
17677 (GET_UST_SYM): New.
17678 (USTF): New.
17679 (dlsym_ust): New.
17680 (ust_marker_to_static_tracepoint): New.
17681 (gdb_probe): New.
17682 (collect_ust_data_at_tracepoint): New.
17683 (gdb_ust_probe): New.
17684 (UNIX_PATH_MAX, SOCK_DIR): New.
17685 (gdb_ust_connect_sync_socket): New.
17686 (resume_thread, stop_thread): New.
17687 (run_inferior_command): New.
17688 (init_named_socket): New.
17689 (gdb_ust_socket_init): New.
17690 (cstr_to_hexstr): New.
17691 (next_st): New.
17692 (first_marker, next_marker): New.
17693 (response_ust_marker): New.
17694 (cmd_qtfstm, cmd_qtsstm): New.
17695 (unprobe_marker_at, probe_marker_at): New.
17696 (cmd_qtstmat, gdb_ust_thread): New.
17697 (gdb_ust_init): New.
17698 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17699 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17700 (ST_REGENTRY): New.
17701 (x86_64_st_collect_regmap): New.
17702 (X86_64_NUM_ST_COLLECT_GREGS): New.
17703 (AMD64_RIP_REGNUM): New.
17704 (supply_static_tracepoint_registers): New.
17705 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17706 (ST_REGENTRY): New.
17707 (i386_st_collect_regmap): New.
17708 (i386_NUM_ST_COLLECT_GREGS): New.
17709 (supply_static_tracepoint_registers): New.
17710 * server.c (handle_query): Handle qXfer:statictrace:read.
17711 <qSupported>: Report support for StaticTracepoints, and
17712 qXfer:statictrace:read features.
17713 * server.h (traceframe_read_sdata)
17714 (supply_static_tracepoint_registers): Declare.
17715 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17716 (unpack_varlen_hex): Include in IPA build.
17717 * Makefile.in (ustlibs, ustinc): New.
17718 (IPA_OBJS): Add remote-utils-ipa.o.
17719 ($(IPA_LIB)): Link -ldl and -lpthread.
17720 (UST_CFLAGS): New.
17721 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17722 * config.in, configure: Regenerate.
17723
9e4344e5
PA
177242010-06-20 Ian Lance Taylor <iant@google.com>
17725 Pedro Alves <pedro@codesourcery.com>
17726
17727 * linux-x86-low.c (always_true): Delete.
17728 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17729 trying to fool the compiler with always_true.
17730
c6beb2cb
PA
177312010-06-20 Pedro Alves <pedro@codesourcery.com>
17732
17733 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17734 conditions in gdbserver.
17735
d2ed6730
UW
177362010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17737
17738 * spu-low.c (spu_read_memory): Wrap around local store limit.
17739 (spu_write_memory): Likewise.
17740
4e29fb54
PA
177412010-06-15 Pedro Alves <pedro@codesourcery.com>
17742
17743 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17744 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17745 LONGEST uses.
17746 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17747 uses.
17748 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17749 uses with LONGEST uses.
17750
6a271cae
PA
177512010-06-14 Stan Shebs <stan@codesourcery.com>
17752 Pedro Alves <pedro@codesourcery.com>
17753
17754 Bytecode compiler.
17755
17756 * linux-x86-low.c: Include limits.h.
17757 (add_insns): New.
17758 (always_true): New.
17759 (EMIT_ASM): New.
17760 (EMIT_ASM32): New.
17761 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17762 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17763 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17764 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17765 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17766 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17767 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17768 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17769 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17770 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17771 (amd64_emit_void_call_2): New.
17772 (amd64_emit_ops): New.
17773 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17774 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17775 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17776 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17777 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17778 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17779 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17780 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17781 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17782 (i386_emit_stack_adjust, i386_emit_int_call_1)
17783 (i386_emit_void_call_2): New.
17784 (i386_emit_ops): New.
17785 (x86_emit_ops): New.
17786 (the_low_target): Install x86_emit_ops.
17787 * server.h (struct emit_ops): New.
17788 (get_raw_reg_func_addr): Declare.
17789 (current_insn_ptr, emit_error): Declare.
17790 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17791 (set_trace_state_variable_value): New defines.
17792 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17793 addr_get_trace_state_variable_value and
17794 addr_set_trace_state_variable_value.
17795 (symbol_list): New fields for get_raw_reg,
17796 get_trace_state_variable_value and set_trace_state_variable_value.
17797 (condfn): New typedef.
17798 (struct tracepoint): New field `compiled_cond'.
17799 (do_action_at_tracepoint): Clear compiled_cond.
17800 (get_trace_state_variable_value, set_trace_state_variable_value):
17801 Export in the IPA.
17802 (condition_true_at_tracepoint): If there's a compiled condition,
17803 run that.
17804 (current_insn_ptr, emit_error): New globals.
17805 (struct bytecode_address): New.
17806 (get_raw_reg_func_addr): New.
17807 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17808 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17809 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17810 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17811 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17812 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17813 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17814 (compile_tracepoint_condition, compile_bytecodes): New.
17815 * target.h (emit_ops): Forward declare.
17816 (struct target_ops): New field emit_ops.
17817 (target_emit_ops): New.
17818 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17819 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17820 * linux-low.c (linux_emit_ops): New.
17821 (linux_target_ops): Install it.
17822 * linux-low.h (struct linux_target_ops): New field emit_ops.
17823
92b72907
UW
178242010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17825
17826 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17827 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17828
fa593d66
PA
178292010-06-01 Pedro Alves <pedro@codesourcery.com>
17830 Stan Shebs <stan@codesourcery.com>
17831
17832 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17833 (all): Depend on $(extra_libraries).
17834 (install-only): Install the IPA.
17835 (IPA_OBJS, IPA_LIB): New.
17836 (clean): Remove the IPA lib.
17837 (IPAGENT_CFLAGS): New.
17838 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17839 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17840 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17841 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17842 * configure.ac: Check for atomic builtins support in the compiler.
17843 (IPA_DEPFILES, extra_libraries): Define.
17844 * configure.srv (ipa_obj): Add description.
17845 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17846 (i[34567]86-*-linux*): Set ipa_obj.
17847 (x86_64-*-linux*): Set ipa_obj.
17848 * linux-low.c (stabilizing_threads): New.
17849 (supports_fast_tracepoints): New.
17850 (linux_detach): Stabilize threads before detaching.
17851 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17852 the lwp is either not stabilizing, or is moving out of a jump pad.
17853 (linux_fast_tracepoint_collecting): New.
17854 (maybe_move_out_of_jump_pad): New.
17855 (enqueue_one_deferred_signal): New.
17856 (dequeue_one_deferred_signal): New.
17857 (linux_wait_for_event_1): If moving out of a jump pad, defer
17858 pending signals to later.
17859 (linux_stabilize_threads): New.
17860 (linux_wait_1): Check if threads need moving out of jump pads, and
17861 do it if so.
17862 (stuck_in_jump_pad_callback): New.
17863 (move_out_of_jump_pad_callback): New.
17864 (lwp_running): New.
17865 (linux_resume_one_lwp): Handle moving out of jump pads.
17866 (linux_set_resume_request): Dequeue deferred signals.
17867 (need_step_over_p): Also step over fast tracepoint jumps.
17868 (start_step_over): Also uninsert fast tracepoint jumps.
17869 (finish_step_over): Also reinsert fast tracepoint jumps.
17870 (linux_install_fast_tracepoint_jump): New.
17871 (linux_target_ops): Install linux_stabilize_threads and
17872 linux_install_fast_tracepoint_jump_pad.
17873 * linux-low.h (linux_target_ops) <get_thread_area,
17874 install_fast_tracepoint_jump_pad>: New fields.
17875 (struct lwp_info) <collecting_fast_tracepoint,
17876 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17877 (linux_get_thread_area): Declare.
17878 * linux-x86-low.c (jump_insn): New.
17879 (x86_get_thread_area): New.
17880 (append_insns): New.
17881 (push_opcode): New.
17882 (amd64_install_fast_tracepoint_jump_pad): New.
17883 (i386_install_fast_tracepoint_jump_pad): New.
17884 (x86_install_fast_tracepoint_jump_pad): New.
17885 (the_low_target): Install x86_get_thread_area and
17886 x86_install_fast_tracepoint_jump_pad.
17887 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17888 (struct fast_tracepoint_jump): New.
17889 (fast_tracepoint_jump_insn): New.
17890 (fast_tracepoint_jump_shadow): New.
17891 (find_fast_tracepoint_jump_at): New.
17892 (fast_tracepoint_jump_here): New.
17893 (delete_fast_tracepoint_jump): New.
17894 (set_fast_tracepoint_jump): New.
17895 (uninsert_fast_tracepoint_jumps_at): New.
17896 (reinsert_fast_tracepoint_jumps_at): New.
17897 (set_breakpoint_at): Use write_inferior_memory.
17898 (uninsert_raw_breakpoint): Use write_inferior_memory.
17899 (check_mem_read): Mask out fast tracepoint jumps.
17900 (check_mem_write): Mask out fast tracepoint jumps.
17901 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17902 (set_fast_tracepoint_jump): Declare.
17903 (delete_fast_tracepoint_jump)
17904 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17905 (reinsert_fast_tracepoint_jumps_at): Declare.
17906 * regcache.c: Don't compile many functions when building the
17907 in-process agent library.
17908 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17909 the register buffer in the heap.
17910 (free_register_cache): If the register buffer isn't owned by the
17911 regcache, don't free it.
17912 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17913 pre-existing register caches.
17914 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17915 type.
17916 (convert_ascii_to_int): : Constify `from' parameter type.
17917 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17918 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17919 the needed buffer in-place.
17920 (relocate_instruction): New.
17921 * server.c (handle_query) <qSymbols>: If the target supports
17922 tracepoints, give it a chance of looking up symbols. Report
17923 support for fast tracepoints.
17924 (handle_status): Stabilize threads.
17925 (process_serial_event): Adjust.
17926 * server.h (struct fast_tracepoint_jump): Forward declare.
17927 (struct process_info) <fast_tracepoint_jumps>: New field.
17928 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17929 (decode_X_packet, decode_M_packet): Adjust.
17930 (relocate_instruction): Declare.
17931 (in_process_agent_loaded): Declare.
17932 (tracepoint_look_up_symbols): Declare.
17933 (struct fast_tpoint_collect_status): Declare.
17934 (fast_tracepoint_collecting): Declare.
17935 (force_unlock_trace_buffer): Declare.
17936 (handle_tracepoint_bkpts): Declare.
17937 (initialize_low_tracepoint)
17938 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17939 * target.h (struct target_ops) <stabilize_threads,
17940 install_fast_tracepoint_jump_pad>: New fields.
17941 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17942 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17943 [HAVE_STDINT_H]: Include stdint.h.
17944 (trace_debug_1): Rename to ...
17945 (trace_vdebug): ... this.
17946 (trace_debug): Rename to ...
17947 (trace_debug_1): ... this. Add `level' parameter.
17948 (trace_debug): New.
17949 (ATTR_USED, ATTR_NOINLINE): New.
17950 (IP_AGENT_EXPORT): New.
17951 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17952 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17953 (about_to_request_buffer_space, trace_buffer_is_full)
17954 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17955 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17956 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17957 (traceframe_write_count, traceframes_created)
17958 (trace_state_variables)
17959 New renaming defines.
17960 (struct ipa_sym_addresses): New.
17961 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17962 (symbol_list): New.
17963 (ipa_sym_addrs): New.
17964 (all_tracepoint_symbols_looked_up): New.
17965 (in_process_agent_loaded): New.
17966 (write_e_ipa_not_loaded): New.
17967 (maybe_write_ipa_not_loaded): New.
17968 (tracepoint_look_up_symbols): New.
17969 (debug_threads) [IN_PROCESS_AGENT]: New.
17970 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17971 (UNKNOWN_SIDE_EFFECTS): New.
17972 (stop_tracing): New.
17973 (flush_trace_buffer): New.
17974 (stop_tracing_bkpt): New.
17975 (flush_trace_buffer_bkpt): New.
17976 (read_inferior_integer): New.
17977 (read_inferior_uinteger): New.
17978 (read_inferior_data_pointer): New.
17979 (write_inferior_data_pointer): New.
17980 (write_inferior_integer): New.
17981 (write_inferior_uinteger): New.
17982 (struct collect_static_trace_data_action): Delete.
17983 (enum tracepoint_type): New.
17984 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17985 <actions_str, step_actions, step_actions_str>: Only include in
17986 GDBserver.
fa593d66
PA
17987 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17988 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17989 (tracepoints): Use IP_AGENT_EXPORT.
17990 (last_tracepoint): Don't include in the IPA.
17991 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17992 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17993 (alloced_trace_state_variables): New.
17994 (trace_state_variables): Use IP_AGENT_EXPORT.
17995 (traceframe_t): Delete unused variable.
17996 (circular_trace_buffer): Don't include in the IPA.
17997 (trace_buffer_start): Delete.
17998 (struct trace_buffer_control): New.
17999 (trace_buffer_free): Delete.
18000 (struct ipa_trace_buffer_control): New.
18001 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18002 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18003 New.
18004 (trace_buffer_ctrl): New.
18005 (TRACE_BUFFER_CTRL_CURR): New.
18006 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18007 Reimplement as macros.
18008 (trace_buffer_wrap): Delete.
18009 (traceframe_write_count, traceframe_read_count)
18010 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18011 (struct tracepoint_hit_ctx) <type>: New field.
18012 (struct fast_tracepoint_ctx): New.
18013 (memory_barrier): New.
18014 (cmpxchg): New.
18015 (record_tracepoint_error): Update atomically in the IPA.
18016 (clear_inferior_trace_buffer): New.
18017 (about_to_request_buffer_space): New.
18018 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18019 updating the same buffer.
18020 (add_tracepoint): Default the tracepoint's type to trap
18021 tracepoint, and orig_size to -1.
18022 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18023 internal variables.
18024 (create_trace_state_variable): New parameter `gdb'. Handle it.
18025 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18026 (cmd_qtdp): Handle fast tracepoints.
18027 (cmd_qtdv): Adjust.
18028 (max_jump_pad_size): New.
18029 (gdb_jump_pad_head): New.
18030 (get_jump_space_head): New.
18031 (claim_jump_space): New.
18032 (sort_tracepoints): New.
18033 (MAX_JUMP_SIZE): New.
18034 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18035 IPA.
18036 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18037 support. Upload fast traceframes, and delete internal IPA
18038 breakpoints.
18039 (stop_tracing_handler): New.
18040 (flush_trace_buffer_handler): New.
18041 (cmd_qtstop): Upload fast tracepoints.
18042 (response_tracepoint): Handle fast tracepoints.
18043 (tracepoint_finished_step): Upload fast traceframes. Set the
18044 tracepoint hit context's tracepoint type.
18045 (handle_tracepoint_bkpts): New.
18046 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18047 type. Add comment about fast tracepoints.
18048 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18049 non-existing action_str field.
18050 (get_context_regcache): Handle fast tracepoints.
18051 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18052 to the regcache.
18053 (fast_tracepoint_from_jump_pad_address): New.
18054 (fast_tracepoint_from_ipa_tpoint_address): New.
18055 (collecting_t): New.
18056 (force_unlock_trace_buffer): New.
18057 (fast_tracepoint_collecting): New.
18058 (collecting): New.
18059 (gdb_collect): New.
18060 (write_inferior_data_ptr): New.
18061 (target_tp_heap): New.
18062 (target_malloc): New.
18063 (download_agent_expr): New.
18064 (UALIGN): New.
18065 (download_tracepoints): New.
18066 (download_trace_state_variables): New.
18067 (upload_fast_traceframes): New.
18068 (IPA_FIRST_TRACEFRAME): New.
18069 (IPA_NEXT_TRACEFRAME_1): New.
18070 (IPA_NEXT_TRACEFRAME): New.
18071 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18072 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18073 (gdb_jump_pad_buffer_end): New.
18074 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18075 (initialize_tracepoint): Adjust.
18076 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18077 buffer. Initialize the low module.
18078 * utils.c (PREFIX, TOOLNAME): New.
18079 (malloc_failure): Use PREFIX.
18080 (error): In the IPA, an error causes an exit.
18081 (fatal, warning): Use PREFIX.
18082 (internal_error): Use TOOLNAME.
18083 (NUMCELLS): Increase to 10.
18084 * configure, config.in: Regenerate.
18085
d149dd1d
PA
180862010-06-01 Pedro Alves <pedro@codesourcery.com>
18087
18088 * server.c (handle_query) <qSupported>: Do two passes over the
18089 qSupported string to avoid nesting strtok.
18090
f6528abd
JK
180912010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18092
18093 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18094 (CDEPS): New.
18095 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18096 -Wl,--dynamic-list.
18097 * configure: Regenerate.
18098 * proc-service.list: New.
18099
ca2a87a0
JK
181002010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18101
18102 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18103 New comment.
18104
363a6e9f
OS
181052010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18106
18107 * gdbreplay.c (remote_open): Check error return from socket() call by
18108 its equality to -1 not by it being negative.
18109 * remote-utils.c (remote_open): Likewise.
18110
d23b6cb1
PA
181112010-05-23 Pedro Alves <pedro@codesourcery.com>
18112
18113 * config.h: Regenerate.
18114
28d3cf85
MK
181152010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18116
18117 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18118 doesn't provide PTRACE_GET_THREAD_AREA.
18119
fea36a59
MK
181202010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18121
18122 * linux-m68k-low.c: Include <asm/ptrace.h>
18123 (ps_get_thread_area): Implement.
18124
24b066ba
DE
181252010-05-03 Doug Evans <dje@google.com>
18126
18127 * event-loop.c (struct callback_event): New struct.
18128 (callback_list): New global.
18129 (append_callback_event, delete_callback_event): New functions.
18130 (process_callback): New function.
18131 (start_event_loop): Call it.
18132 * remote-utils.c (NOT_SCHEDULED): Define.
18133 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18134 moved out of readchar.
18135 (readchar): Rewrite. Call reschedule before returning.
18136 (reset_readchar): New function.
18137 (remote_close): Call it.
18138 (process_remaining, reschedule): New functions.
18139 * server.h (callback_handler_func): New typedef.
18140 (append_callback_event, delete_callback_event): Declare.
18141
9836d6ea
PA
181422010-05-03 Pedro Alves <pedro@codesourcery.com>
18143
18144 * proc-service.c (ps_pglobal_lookup): Use
18145 thread_db_look_up_one_symbol.
18146 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18147 parameter. Use it instead of all_symbols_looked_up.
18148 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18149 field.
18150 (all_symbols_looked_up): Don't declare.
18151 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18152 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18153 field.
18154 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18155 Set all_symbols_looked_up here.
18156 (thread_db_look_up_one_symbol): New.
18157 (thread_db_get_tls_address): Adjust.
18158 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18159 thread_db object on the heap, and tentatively set it in the
18160 process structure.
18161 (thread_db_init): Don't set all_symbols_looked_up here.
18162 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18163
7984d532
PA
181642010-05-03 Pedro Alves <pedro@codesourcery.com>
18165
18166 * linux-low.c (linux_kill, linux_detach): Adjust.
18167 (status_pending_p_callback): Remove redundant statement. Check
18168 for !TARGET_WAITIKIND_IGNORE, instead of
18169 TARGET_WAITKIND_STOPPED.
18170 (handle_tracepoints): Make sure LWP is locked. Adjust.
18171 (linux_wait_for_event_1): Adjust.
18172 (linux_cancel_breakpoints): New.
18173 (unsuspend_one_lwp): New.
18174 (unsuspend_all_lwps): New.
18175 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18176 (send_sigstop_callback): Change return type to int, add new
18177 `except' parameter and handle it.
18178 (suspend_and_send_sigstop_callback): New.
18179 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18180 pass them down. If SUSPEND, also increment the lwp's suspend
18181 count.
18182 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18183 (need_step_over_p): Don't consider suspended LWPs.
18184 (start_step_over): Adjust.
18185 (proceed_one_lwp): Change return type to int, add new `except'
18186 parameter and handle it.
18187 (unsuspend_and_proceed_one_lwp): New.
18188 (proceed_all_lwps): Use find_inferior instead of
18189 for_each_inferior.
18190 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18191 also decrement the suspend count of LWPs. Pass `except' down,
18192 instead of hacking its suspend count.
18193 (linux_pause_all): Add `freeze' parameter. Adjust.
18194 (linux_unpause_all): New.
18195 (linux_target_ops): Install linux_unpause_all.
18196 * server.c (handle_status): Adjust.
18197 * target.h (struct target_ops): New fields `unpause_all' and
18198 `cancel_breakpoints'. Add new parameter to `pause_all'.
18199 (pause_all): Add new `freeze' parameter.
18200 (unpause_all): New.
18201 (cancel_breakpoints): New.
18202 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18203 cancel breakpoints.
18204 (cmd_qtstart): Pause threads.
18205 (stop_tracing): Pause threads, and cancel breakpoints.
18206 * win32-low.c (win32_target_ops): Adjust.
18207
e471f25b
PA
182082010-05-03 Pedro Alves <pedro@codesourcery.com>
18209
18210 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18211 the inferior right away from here...
18212 (linux_wait_1): ... to here, and adjust to check the thread's
18213 last_resume_kind instead of the lwp's step or stop_expected flags.
18214
1915ef4f
PA
182152010-05-02 Pedro Alves <pedro@codesourcery.com>
18216
18217 * README: Use consistent `GDB' and `GDBserver' spellings.
18218
f9e39928
PA
182192010-05-02 Pedro Alves <pedro@codesourcery.com>
18220
18221 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18222 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18223 (linux_detach_one_lwp): Assume the lwp is stopped.
18224 (any_thread_of): Delete.
18225 (linux_detach): Stop all lwps here. Don't blindly delete all
18226 breakpoints.
18227 (delete_lwp_callback): New.
18228 (linux_mourn): Delete all lwps of the process that is gone.
18229 (linux_wait_1): Don't delete the last lwp of the process here.
18230 * mem-break.h (mark_breakpoints_out): Declare.
18231 * mem-break.c (mark_breakpoints_out): New.
18232 (free_all_breakpoints): Use it.
18233 * server.c (handle_target_event): If the process is gone, mark
18234 breakpoints out.
18235 * thread-db.c (struct thread_db) <create_bp>: New field.
18236 (thread_db_enable_reporting): Fix prototype. Store a thread event
18237 breakpoint reference in the thread_db struct.
18238 (thread_db_load_search): Clear the thread_db object.
18239 (try_thread_db_load_1): Ditto.
18240 (switch_to_process): New.
18241 (disable_thread_event_reporting): Use it.
18242 (remove_thread_event_breakpoints): New.
18243 (thread_db_detach, thread_db_mourn): Use it.
18244
1e7fc18c
PA
182452010-05-01 Pedro Alves <pedro@codesourcery.com>
18246
18247 * linux-low.c (linux_enable_event_reporting): New.
18248 (linux_wait_for_event_1, handle_extended_wait): Use it.
18249
02fc4de7
PA
182502010-04-30 Pedro Alves <pedro@codesourcery.com>
18251
18252 * linux-low.c (linux_kill_one_lwp, linux_kill)
18253 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18254 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18255 SIGSTOP even if the LWP is stopped.
18256 (send_sigstop_callback): New.
18257 (stop_all_lwps): Use send_sigstop_callback instead.
18258 (linux_resume_one_thread): Adjust.
18259 (proceed_one_lwp): Still proceed an LWP that the client has
18260 requested to stop, if we haven't reported it as stopped yet. Make
18261 sure that LWPs the client want stopped, have a pending SIGSTOP.
18262
bc3b5632
DE
182632010-04-26 Doug Evans <dje@google.com>
18264
ae1ada35
DE
18265 * server.c (handle_general_set): Make static.
18266
bc3b5632
DE
18267 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18268 Print received char after testing for error/eof instead of before.
18269 (input_interrupt): Tweak comment.
18270
65730243
DE
182712010-04-23 Doug Evans <dje@google.com>
18272
18273 * server.c (start_inferior): Print inferior argv if --debug.
18274
a8ae7dc0
AR
182752010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18276
18277 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18278 * nto-x86-low.c: Include server.h
18279
1c07cc19
PM
182802010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18281
18282 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18283 be consistent with other sources of this directory.
18284 (init_registers_amd64): Correct name of source file of this function
18285 in the comment.
18286
e0a61e09
PM
182872010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18288
18289 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18290 64-bit executables.
18291
54709339
PM
182922010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18293
18294 * win32-i386-low.c: Add 64-bit support.
18295 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18296 (init_registers_amd64): Declare.
18297 (mappings): Add 64-bit version of array.
18298 (init_windows_x86): New function.
18299 (the_low_target): Change init_arch field to init_windows_x86.
18300
e8f0053d
PM
183012010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18302
18303 * win32-low.c: Adapt to support also 64-bit architecture.
18304 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18305 (get_image_name): Use SIZE_T type for local variable `done'.
18306 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18307 (toolhelp_get_dll_name): Idem.
18308 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18309 Use uintptr_t typecast to avoid warning.
18310 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18311 (handle_exception): Use phex_nz to avoid warning.
18312 (win32_wait): Remove unused local variable `process'.
18313
c481e77e
PM
183142010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18315
18316 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18317 `amd64-avx.o'.
18318
12ea4b69
PM
183192010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18320
18321 * configure.ac: Use `ws2_32' library for srv_mingw.
18322 * configure: Regenerate.
18323 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18324 * remote-utils.c: Likewise.
18325
f6d1620c
L
183262010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18327
18328 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18329 if __x86_64__ is defined.
18330
8e642873
PM
183312010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18332
18333 * configure: Regenerate.
18334
711e434b
PM
183352010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18336
18337 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18338 * target.h (target_ops): New get_tib_address field.
18339 * win32-low.h (win32_thread_info): Add thread_local_base field.
18340 * win32-low.c (child_add_thread): Add tlb argument.
18341 Set thread_local_base field to TLB.
18342 (get_child_debug_event): Adapt to child_add_thread change.
18343 (win32_get_tib_address): New function.
18344 (win32_target_ops): Set get_tib_address field to
18345 win32_get_tib_address.
18346 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18347
505106cd
PA
183482010-04-12 Pedro Alves <pedro@codesourcery.com>
18349
505106cd
PA
18350 * linux-low.c (linux_mourn): Also remove the process.
18351 * server.c (handle_target_event): Don't remove the process here.
18352 * nto-low.c (nto_mourn): New.
18353 (nto_target_ops): Install it.
18354 * spu-low.c (spu_mourn): New.
18355 (spu_target_ops): Install it.
18356 * win32-low.c (win32_mourn): New.
18357 (win32_target_ops): Install it.
18358
e8470a06
PA
183592010-04-12 Pedro Alves <pedro@codesourcery.com>
18360
18361 * server.h (buffer_xml_printf): Remove redundant `;'.
18362
45ba0d02
PA
183632010-04-12 Pedro Alves <pedro@codesourcery.com>
18364
18365 * regcache.c (set_register_cache): Invalidate regcaches before
18366 changing the register cache layout.
18367 (regcache_invalidate_one): Allow a NULL regcache.
18368 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18369 regcaches before changing the register cache layout or the target
18370 regsets.
18371
59e04013
L
183722010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18373
18374 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18375 variable warning on Linux/x86-64.
18376
8336d594
PA
183772010-04-11 Pedro Alves <pedro@codesourcery.com>
18378
18379 GDBserver disconnected tracing support.
18380
18381 * linux-low.c (linux_remove_process): Delete.
18382 (add_lwp): Don't set last_resume_kind here.
18383 (linux_kill): Use `mourn'.
18384 (linux_detach): Use `thread_db_detach', and `mourn'.
18385 (linux_mourn): New.
18386 (linux_attach_lwp_1): Adjust comment.
18387 (linux_attach): last_resume_kind moved the thread_info; adjust.
18388 (status_pending_p_callback): Adjust.
18389 (linux_wait_for_event_1): Adjust.
18390 (count_events_callback, select_singlestep_lwp_callback)
18391 (select_event_lwp_callback, cancel_breakpoints_callback)
18392 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18393 (proceed_one_lwp): Adjust.
18394 (linux_async): Add debug output.
18395 (linux_thread_stopped): New.
18396 (linux_pause_all): New.
18397 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18398 linux_pause_all.
18399 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18400 (thread_db_free): Delete declaration.
18401 (thread_db_detach, thread_db_mourn): Declare.
18402 * thread-db.c (thread_db_init): Use thread_db_mourn.
18403 (thread_db_free): Delete, split in two.
18404 (disable_thread_event_reporting): New.
18405 (thread_db_detach): New.
18406 (thread_db_mourn): New.
18407
18408 * server.h (struct thread_info) <last_resume_kind>: New field.
18409 <attached>: Add comment.
18410 <gdb_detached>: New field.
18411 (handler_func): Change return type to int.
18412 (handle_serial_event, handle_target_event): Ditto.
18413 (gdb_connected): Declare.
18414 (tracing): Delete.
18415 (disconnected_tracing): Declare.
18416 (stop_tracing): Declare.
18417
18418 * server.c (handle_query) <qSupported>: Report support for
18419 disconnected tracing.
18420 (queue_stop_reply_callback): Account for running threads.
18421 (gdb_wants_thread_stopped): New.
18422 (gdb_wants_all_threads_stopped): New.
18423 (gdb_reattached_process): New.
18424 (handle_status): Clear the `gdb_detached' flag of all processes.
18425 In all-stop, stop all threads.
18426 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18427 (process_serial_event): If the remote connection breaks, or if an
18428 exit was forced with "monitor exit", force an event loop exit.
18429 Handle disconnected tracing on detach.
18430 (handle_serial_event): Adjust.
18431 (handle_target_event): If GDB isn't connected, forward events back
18432 to the inferior, unless the last process exited, in which case,
18433 exit gdbserver. Adjust interface.
18434
18435 * remote-utils.c (remote_open): Don't block in accept. Instead
18436 register an event loop source on the listen socket file
18437 descriptor. Refactor bits into ...
18438 (listen_desc): ... this new global.
18439 (gdb_connected): ... this new function.
18440 (enable_async_notification): ... this new function.
18441 (handle_accept_event): ... this new function.
18442 (remote_close): Clear remote_desc.
18443
18444 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18445
18446 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18447 New fields.
18448 (mourn_inferior): Define.
18449 (target_process_qsupported): Avoid the dangling else problem.
18450 (thread_stopped): Define.
18451 (pause_all): Define.
18452 (target_waitstatus_to_string): Declare.
18453 * target.c (target_waitstatus_to_string): New.
18454
18455 * tracepoint.c (tracing): Make extern.
18456 (disconnected_tracing): New.
18457 (stop_tracing): Make extern. Handle tracing stops due to GDB
18458 disconnecting.
18459 (cmd_qtdisconnected): New.
18460 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18461 (handle_tracepoint_general_set): Handle QTDisconnected.
18462
18463 * event-loop.c (event_handler_func): Change return type to int.
18464 (process_event): Bail out if the event handler wants the event
18465 loop to stop.
18466 (handle_file_event): Ditto.
18467 (start_event_loop): Bail out if the event handler wants the event
18468 loop to stop.
18469
18470 * nto-low.c (nto_target_ops): Adjust.
18471 * spu-low.c (spu_wait): Don't remove the process here.
18472 (spu_target_ops): Adjust.
18473 * win32-low.c (win32_wait): Don't remove the process here.
18474 (win32_target_ops): Adjust.
18475
5d267c4c
PA
184762010-04-11 Pedro Alves <pedro@codesourcery.com>
18477
18478 * regcache.c (realloc_register_cache): Invalidate inferior's
18479 regcache before recreating it.
18480
623ccd72
PA
184812010-04-09 Pedro Alves <pedro@codesourcery.com>
18482
18483 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18484
219f2f23
PA
184852010-04-09 Stan Shebs <stan@codesourcery.com>
18486 Pedro Alves <pedro@codesourcery.com>
18487
18488 * server.h (LONGEST): New.
18489 (struct thread_info) <while_stepping>: New field.
18490 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18491 Declare.
18492 (initialize_tracepoint, handle_tracepoint_general_set)
18493 (handle_tracepoint_query, tracepoint_finished_step)
18494 (tracepoint_was_hit, release_while_stepping_state_list):
18495 (current_traceframe): Declare.
18496 * server.c (handle_general_set): Handle tracepoint packets.
18497 (read_memory): New.
18498 (write_memory): New.
18499 (handle_search_memory_1): Use read_memory.
18500 (handle_query): Report support for conditional tracepoints, trace
18501 state variables, and tracepoint sources. Handle tracepoint
18502 queries.
18503 (main): Initialize the tracepoints module.
18504 (process_serial_event): Handle traceframe reads/writes.
18505
18506 * linux-low.c (handle_tracepoints): New.
18507 (linux_wait_1): Call it.
18508 (linux_resume_one_lwp): Handle while-stepping.
18509 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18510 (linux_target_ops): Install them.
18511 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18512 New field.
18513 * linux-x86-low.c (x86_supports_tracepoints): New.
18514 (the_low_target). Install it.
18515
18516 * mem-break.h (delete_breakpoint): Declare.
18517 * mem-break.c (delete_breakpoint): Make external.
18518
18519 * target.h (struct target_ops): Add `supports_tracepoints',
18520 `read_pc', and `write_pc' fields.
18521 (target_supports_tracepoints): Define.
18522 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18523 (phex_nz): New.
18524
18525 * regcache.h (struct regcache) <registers_owned>: New field.
18526 (init_register_cache, regcache_cpy): Declare.
18527 (regcache_read_pc, regcache_write_pc): Declare.
18528 (register_cache_size): Declare.
18529 (supply_regblock): Declare.
18530 * regcache.c (init_register_cache): New.
18531 (new_register_cache): Use it.
18532 (regcache_cpy): New.
18533 (register_cache_size): New.
18534 (supply_regblock): New.
18535 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18536
219f2f23
PA
18537 * tracepoint.c: New.
18538
18539 * Makefile.in (OBS): Add tracepoint.o.
18540 (tracepoint.o): New rule.
18541
3a13a53b
L
185422010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18543
18544 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18545 (i386-mmx.o): New.
18546 (i386-mmx.c): Likewise.
18547 (i386-mmx-linux.o): Likewise.
18548 (i386-mmx-linux.c): Likewise.
18549
18550 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18551 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18552 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18553 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18554
18555 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18556 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18557 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18558
1570b33e
L
185592010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18560
18561 * Makefile.in (clean): Updated.
18562 (i386-avx.o): New.
18563 (i386-avx.c): Likewise.
18564 (i386-avx-linux.o): Likewise.
18565 (i386-avx-linux.c): Likewise.
18566 (amd64-avx.o): Likewise.
18567 (amd64-avx.c): Likewise.
18568 (amd64-avx-linux.o): Likewise.
18569 (amd64-avx-linux.c): Likewise.
18570
18571 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18572 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18573 (srv_amd64_regobj): Add amd64-avx.o.
18574 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18575 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18576 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18577 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18578 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18579 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18580 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18581
18582 * i387-fp.c: Include "i386-xstate.h".
18583 (i387_xsave): New.
18584 (i387_cache_to_xsave): Likewise.
18585 (i387_xsave_to_cache): Likewise.
18586 (x86_xcr0): Likewise.
18587
18588 * i387-fp.h (i387_cache_to_xsave): Likewise.
18589 (i387_xsave_to_cache): Likewise.
18590 (x86_xcr0): Likewise.
18591
18592 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18593 * linux-crisv32-low.c (target_regsets): Likewise.
18594 * linux-m68k-low.c (target_regsets): Likewise.
18595 * linux-mips-low.c (target_regsets): Likewise.
18596 * linux-ppc-low.c (target_regsets): Likewise.
18597 * linux-s390-low.c (target_regsets): Likewise.
18598 * linux-sh-low.c (target_regsets): Likewise.
18599 * linux-sparc-low.c (target_regsets): Likewise.
18600 * linux-xtensa-low.c (target_regsets): Likewise.
18601
18602 * linux-low.c: Include <sys/uio.h>.
18603 (regsets_fetch_inferior_registers): Support nt_type.
18604 (regsets_store_inferior_registers): Likewise.
18605 (linux_process_qsupported): New.
18606 (linux_target_ops): Add linux_process_qsupported.
18607
18608 * linux-low.h (regset_info): Add nt_type.
18609 (linux_target_ops): Add process_qsupported.
18610
18611 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18612 and <sys/uio.h>.
18613 (init_registers_i386_avx_linux): New.
18614 (init_registers_amd64_avx_linux): Likewise.
18615 (xmltarget_i386_linux_no_xml): Likewise.
18616 (xmltarget_amd64_linux_no_xml): Likewise.
18617 (PTRACE_GETREGSET): Likewise.
18618 (PTRACE_SETREGSET): Likewise.
18619 (x86_fill_xstateregset): Likewise.
18620 (x86_store_xstateregset): Likewise.
18621 (use_xml): Likewise.
18622 (x86_linux_update_xmltarget): Likewise.
18623 (x86_linux_process_qsupported): Likewise.
18624 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18625 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18626 init_registers_i386_linux here. Call
18627 x86_linux_update_xmltarget.
18628 (the_low_target): Add x86_linux_process_qsupported.
18629
18630 * server.c (handle_query): Call target_process_qsupported.
18631
18632 * target.h (target_ops): Add process_qsupported.
18633 (target_process_qsupported): New.
18634
fc7238bb
PA
186352010-04-03 Pedro Alves <pedro@codesourcery.com>
18636
18637 * inferiors.c (add_thread): Set last_status kind to
18638 TARGET_WAITKIND_IGNORE.
18639 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18640 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18641 (linux_wait_1): Move `thread' local definition to block that uses
18642 it. Don't NULL initialize `event_child'.
18643 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18644 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18645 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18646
bdabb078
PA
186472010-04-01 Pedro Alves <pedro@codesourcery.com>
18648
18649 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18650 an extended waitstatus, or by a watchpoint.
18651 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18652 thread was stepping or has been stopped by a watchpoint.
18653
d3bbe7a0
PA
186542010-04-01 Pedro Alves <pedro@codesourcery.com>
18655
18656 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18657 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18658 of another, then delete the previous, and validate all
18659 breakpoints.
18660 (validate_inserted_breakpoint): New.
18661 (delete_disabled_breakpoints): New.
18662 (validate_breakpoints): New.
18663 (check_mem_read): Validate breakpoints before trusting their
18664 shadow. Delete disabled breakpoints.
18665 (check_mem_write): Validate breakpoints before trusting they
18666 should be inserted. Delete disabled breakpoints.
18667 * mem-break.h (validate_breakpoints):
18668 * server.c (handle_query): Validate breakpoints when we see a
18669 qSymbol query.
18670
8b07ae33
PA
186712010-04-01 Pedro Alves <pedro@codesourcery.com>
18672
18673 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18674 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18675 if we could tell there's a GDB breakpoint at stop_pc.
18676 (need_step_over_p): Don't do a step over if we find a GDB
18677 breakpoint at the resume PC.
18678
18679 * mem-break.c (struct raw_breakpoint): New.
18680 (enum bkpt_type): New type `gdb_breakpoint'.
18681 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18682 fields. New field `raw'.
18683 (find_raw_breakpoint_at): New.
18684 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18685 breakpoint instead.
18686 (set_breakpoint_at): Adjust.
18687 (delete_raw_breakpoint): New.
18688 (release_breakpoint): New.
18689 (delete_breakpoint): Rename to...
18690 (delete_breakpoint_1): ... this. Add proc parameter. Use
18691 release_breakpoint. Return ENOENT.
18692 (delete_breakpoint): Reimplement.
18693 (find_breakpoint_at): Delete.
18694 (find_gdb_breakpoint_at): New.
18695 (delete_breakpoint_at): Delete.
18696 (set_gdb_breakpoint_at): New.
18697 (delete_gdb_breakpoint_at): New.
18698 (gdb_breakpoint_here): New.
18699 (set_reinsert_breakpoint): Use release_breakpoint.
18700 (uninsert_breakpoint): Rename to ...
18701 (uninsert_raw_breakpoint): ... this.
18702 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18703 (reinsert_raw_breakpoint): Change parameter type to
18704 raw_breakpoint.
18705 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18706 instead.
18707 (check_breakpoints): Adjust. Use release_breakpoint.
18708 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18709 (breakpoint_inserted_here): Ditto.
18710 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18711 Don't trust the breakpoint's shadow if it is not inserted.
18712 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18713 (delete_all_breakpoints): Adjust.
18714 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18715 use delete_breakpoint_1.
18716
18717 * mem-break.h (breakpoints_supported): Delete declaration.
18718 (set_gdb_breakpoint_at): Declare.
18719 (gdb_breakpoint_here): Declare.
18720 (delete_breakpoint_at): Delete.
18721 (delete_gdb_breakpoint_at): Declare.
18722
18723 * server.h (struct raw_breakpoint): Forward declare.
18724 (struct process_info): New field `raw_breakpoints'.
18725
18726 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18727 breakpoints.
18728
6bf5e0ba
PA
187292010-03-24 Pedro Alves <pedro@codesourcery.com>
18730
18731 * linux-low.c (status_pending_p_callback): Fix comment.
18732 (linux_wait_for_event_1): Move most of the internal breakpoint
18733 handling from here...
18734 (linux_wait_1): ... to here.
18735 (count_events_callback): New.
18736 (select_singlestep_lwp_callback): New.
18737 (select_event_lwp_callback): New.
18738 (cancel_breakpoints_callback): New.
18739 (select_event_lwp): New.
18740 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18741 priority to all LWPs that have had events that should be reported
18742 to the client. Cancel breakpoints when about to reporting the
18743 event to the client, not while stopping lwps. No longer cancel
18744 finished single-steps here.
18745 (cancel_finished_single_step): Delete.
18746 (cancel_finished_single_steps): Delete.
18747
414a389f
PA
187482010-03-24 Pedro Alves <pedro@codesourcery.com>
18749
18750 * mem-break.c (enum bkpt_type): New.
18751 (struct breakpoint): New field `type'.
18752 (set_breakpoint_at): Change return type to struct breakpoint
18753 pointer. Set type to `other_breakpoint' by default.
18754 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18755 in the breakpoint list.
18756 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18757 (reinsert_breakpoint): Rename to ...
18758 (reinsert_raw_breakpoint): ... this.
18759 (reinsert_breakpoints_at): Adjust.
18760 * mem-break.h (struct breakpoint): Declare.
18761 (set_breakpoint_at): Change return type to struct breakpoint
18762 pointer.
18763
2280c721
PA
187642010-03-24 Pedro Alves <pedro@codesourcery.com>
18765
18766 * server.c (handle_query): Assign, not compare.
18767
d50171e4
PA
187682010-03-24 Pedro Alves <pedro@codesourcery.com>
18769
18770 Teach linux gdbserver to step-over-breakpoints.
18771
18772 * linux-low.c (can_hardware_single_step): New.
18773 (supports_breakpoints): New.
18774 (handle_extended_wait): If stopping threads, read the stop pc of
18775 the new cloned LWP.
18776 (get_pc): New.
18777 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18778 low target doesn't support retrieving the PC.
18779 (add_lwp): Set last_resume_kind to resume_continue.
18780 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18781 (linux_attach): Don't clear stop_expected. Set the lwp's
18782 last_resume_kind to resume_stop.
18783 (linux_detach_one_lwp): Don't check for removed breakpoints.
18784 (check_removed_breakpoint): Delete.
18785 (status_pending_p): Rename to ...
18786 (status_pending_p_callback): ... this. Don't check for removed
18787 breakpoints. Don't consider threads that are stopped from GDB's
18788 perspective.
18789 (linux_wait_for_lwp): Always read the stop_pc here.
18790 (cancel_breakpoint): New.
18791 (step_over_bkpt): New global.
18792 (linux_wait_for_event_1): Implement stepping over breakpoints.
18793 (gdb_wants_lwp_stopped): New.
18794 (gdb_wants_all_stopped): New.
18795 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18796 single-step traps here. Store the thread's last reported target
18797 wait status.
18798 (send_sigstop): Don't clear stop_expected. Always set it,
18799 instead.
18800 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18801 (cancel_finished_single_step): New.
18802 (cancel_finished_single_steps): New.
18803 (wait_for_sigstop): Don't cancel finished single-step traps here.
18804 (linux_resume_one_lwp): Don't check for removed breakpoints.
18805 Don't set `step' on non-hardware step archs.
18806 (linux_set_resume_request): Ignore resume_stop requests if already
18807 stopping or stopped. Set the lwp's last_resume_kind.
18808 (resume_status_pending_p): Don't check for removed breakpoints.
18809 (need_step_over_p): New.
18810 (start_step_over): New.
18811 (finish_step_over): New.
18812 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18813 requests. Clear the thread's last reported target waitstatus.
18814 Don't use the `suspended' flag. Don't consider pending breakpoints.
18815 (linux_resume): Start a step-over if necessary.
18816 (proceed_one_lwp): New.
18817 (proceed_all_lwps): New.
18818 (unstop_all_lwps): New.
18819 * linux-low.h (struct lwp_info): Rewrite comment for the
18820 `suspended' flag. Add the `stop_pc' field. Delete the
18821 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18822 Add `'last_resume_kind' and `need_step_over' fields.
18823 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18824 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18825 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18826 (set_raw_breakpoint_at): New.
18827 (set_breakpoint_at): Rewrite to use it.
18828 (reinsert_breakpoint_handler): Delete.
18829 (set_reinsert_breakpoint): New.
18830 (reinsert_breakpoint_by_bp): Delete.
18831 (delete_reinsert_breakpoints): New.
18832 (uninsert_breakpoint): Rewrite.
18833 (uninsert_breakpoints_at): New.
18834 (reinsert_breakpoint): Rewrite.
18835 (reinsert_breakpoints_at): New.
18836 (check_breakpoints): Rewrite.
18837 (breakpoint_here): New.
18838 (breakpoint_inserted_here): New.
18839 (check_mem_read): Adjust.
18840 * mem-break.h (breakpoints_supported, breakpoint_here)
18841 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18842 (reinsert_breakpoint_by_bp): Delete declaration.
18843 (delete_reinsert_breakpoints): Declare.
18844 (reinsert_breakpoint): Delete declaration.
18845 (reinsert_breakpoints_at): Declare.
18846 (uninsert_breakpoint): Delete declaration.
18847 (uninsert_breakpoints_at): Declare.
18848 (check_breakpoints): Adjust prototype.
18849 * server.h: Adjust include order.
18850 (struct thread_info): Declare here. Add a `last_status' field.
18851
30ba68cb
MS
188522010-03-23 Michael Snyder <msnyder@vmware.com>
18853
18854 * server.c (crc32): New function.
18855 (handle_query): Add handling for 'qCRC:' request.
18856
b9a881c2
PA
188572010-03-23 Pedro Alves <pedro@codesourcery.com>
18858
18859 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18860 lwp had been stopped by a watchpoint.
18861
e92d13d5
PA
188622010-03-16 Pedro Alves <pedro@codesourcery.com>
18863
18864 * server.h (internal_error): Declare.
18865 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18866 * utils.c (internal_error): New function.
18867
64daa791
AS
188682010-03-15 Andreas Schwab <schwab@redhat.com>
18869
18870 * configure.srv: Fix typo setting srv_regobj.
18871
f52cd8cd
PA
188722010-03-15 Pedro Alves <pedro@codesourcery.com>
18873
18874 * linux-low.c (fetch_register): Avoid passing a non string literal
18875 format to `error'.
18876 (usr_store_inferior_registers): Ditto.
18877
93ae6fdc
PA
188782010-03-14 Pedro Alves <pedro@codesourcery.com>
18879
18880 * linux-low.c (linux_write_memory): Bail out early if peeking
18881 memory failed.
18882
c3adc08c
PA
188832010-03-14 Pedro Alves <pedro@codesourcery.com>
18884
18885 * linux-low.h (struct lwp_info): New fields
18886 `stopped_by_watchpoint' and `stopped_data_address'.
18887 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18888 here, and cache them in the lwp object.
18889 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18890 directly.
18891 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18892 field.
18893 (linux_stopped_by_watchpoint): Rewrite.
18894 (linux_stopped_data_address): Rewrite.
18895
bce522a2
PA
188962010-03-06 Simo Melenius <simo.melenius@iki.fi>
18897
18898 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18899 switching the current inferior, not before.
18900
90884b2b
L
189012010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18902
18903 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18904 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18905 i386-linux.c and amd64-linux.c.
18906 (reg-i386.o): Removed.
18907 (reg-i386.c): Likewise.
18908 (reg-i386-linux.o): Likewise.
18909 (reg-i386-linux.c): Likewise.
18910 (reg-x86-64.o): Likewise.
18911 (reg-x86-64.c): Likewise.
18912 (reg-x86-64-linux.o): Likewise.
18913 (reg-x86-64-linux.c): Likewise.
18914 (i386.o): New.
18915 (i386.c): Likewise.
18916 (i386-linux.o): Likewise.
18917 (i386-linux.c): Likewise.
18918 (amd64.o): Likewise.
18919 (amd64.c): Likewise.
18920 (amd64-linux.o): Likewise.
18921 (amd64-linux.c): Likewise.
18922
18923 * configure.srv (srv_i386_regobj): New.
18924 (srv_i386_linux_regobj): Likewise.
18925 (srv_amd64_regobj): Likewise.
18926 (srv_amd64_linux_regobj): Likewise.
18927 (srv_i386_32bit_xmlfiles): Likewise.
18928 (srv_i386_64bit_xmlfiles): Likewise.
18929 (srv_i386_xmlfiles): Likewise.
18930 (srv_amd64_xmlfiles): Likewise.
18931 (srv_i386_linux_xmlfiles): Likewise.
18932 (srv_amd64_linux_xmlfiles): Likewise.
18933 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18934 srv_xmlfiles to $srv_i386_xmlfiles.
18935 (i[34567]86-*-mingw32ce*): Likewise.
18936 (i[34567]86-*-mingw*): Likewise.
18937 (i[34567]86-*-nto*): Likewise.
18938 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18939 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18940 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18941 (x86_64-*-linux*): Likewise.
18942
18943 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18944 (init_registers_amd64_linux): New.
18945 (x86_arch_setup): Replace init_registers_x86_64_linux with
18946 init_registers_amd64_linux.
18947
193f13e6
MK
189482010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18949
18950 * configure.ac: Check for libdl. If it is not available link against
18951 static libthread_db.
18952 * configure: Regenerate.
18953
85d721b8
PA
189542010-02-22 Pedro Alves <pedro@codesourcery.com>
18955
18956 PR9605
18957
18958 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18959 handing a read watchpoint.
18960 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18961
6076632b
DE
189622010-02-12 Doug Evans <dje@google.com>
18963
18964 * linux-low.c (linux_supports_tracefork_flag): Document.
18965 (linux_look_up_symbols): Add comment.
18966
3327ccf7
L
189672010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18968
18969 * regcache.c (supply_register): Clear regcache if buf is NULL.
18970
0718675c 189712010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18972 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18973
18974 * inferiors.c (find_inferior): Add function documentation.
18975 (unloaded_dll): Handle the case where the unloaded dll has not
18976 been previously registered in the dll list.
18977
177321bd
DJ
189782010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18979
18980 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18981 (thumb2_breakpoint): New.
18982 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18983
2b009048
DJ
189842010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18985
18986 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18987 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18988 breakpoints.
18989
3be029c7
PA
189902010-01-21 Pedro Alves <pedro@codesourcery.com>
18991
18992 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18993
18f5de3b
JK
189942010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18995
18996 * linux-s390-low.c (s390_collect_ptrace_register)
18997 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18998
3743bb4f
DE
189992010-01-21 Doug Evans <dje@google.com>
19000
14ce3065
DE
19001 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19002 (PTRACE_ARG4_TYPE): New macro.
19003 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19004 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19005 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19006 (usr_store_inferior_registers): Ditto.
19007 (linux_read_memory, linux_write_memory): Ditto.
19008 (linux_test_for_tracefork): Ditto.
19009
3743bb4f
DE
19010 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19011 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19012
8b315be5
PA
190132010-01-21 Pedro Alves <pedro@codesourcery.com>
19014
19015 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19016 target.
19017
85492558
PA
190182010-01-21 Pedro Alves <pedro@codesourcery.com>
19019
19020 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19021 prototype to take a regcache. Adjust.
19022
442ea881
PA
190232010-01-20 Pedro Alves <pedro@codesourcery.com>
19024
19025 * regcache.h (struct thread_info): Forward declare.
19026 (struct regcache): New.
19027 (new_register_cache): Adjust prototype.
19028 (get_thread_regcache): Declare.
19029 (free_register_cache): Adjust prototype.
19030 (registers_to_string, registers_from_string): Ditto.
19031 (supply_register, supply_register_by_name, collect_register)
19032 (collect_register_as_string, collect_register_by_name): Ditto.
19033 * regcache.c (struct inferior_regcache_data): Delete.
19034 (get_regcache): Rename to ...
19035 (get_thread_regcache): ... this. Adjust. Switch inferior before
19036 fetching registers.
19037 (regcache_invalidate_one): Adjust.
19038 (regcache_invalidate): Fix prototype.
19039 (new_register_cache): Return the new register cache.
19040 (free_register_cache): Change prototype.
19041 (realloc_register_cache): Adjust.
19042 (registers_to_string): Change prototype to take a regcache. Adjust.
19043 (registers_from_string): Ditto.
19044 (register_data): Ditto.
19045 (supply_register): Ditto.
19046 (supply_register_by_name): Ditto.
19047 (collect_register): Ditto.
19048 (collect_register_as_string): Ditto.
19049 (collect_register_by_name): Ditto.
19050 * server.c (process_serial_event): Adjust.
19051 * linux-low.h (regset_fill_func, regset_store_func): Change
19052 prototype.
19053 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19054 Change prototype.
19055 * linux-low.c (get_stop_pc): Adjust.
19056 (check_removed_breakpoint): Adjust.
19057 (linux_wait_for_event): Adjust.
19058 (linux_resume_one_lwp): Adjust.
19059 (fetch_register): Add regcache parameter. Adjust.
19060 (usr_store_inferior_registers): Ditto.
19061 (regsets_fetch_inferior_registers): Ditto.
19062 (regsets_store_inferior_registers): Ditto.
19063 (linux_fetch_registers, linux_store_registers): Ditto.
19064 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19065 regcache. Adjust.
43aaf8b6
PA
19066 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19067 Ditto.
442ea881
PA
19068 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19069 prototype to take a regcache.
19070 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19071 * remote-utils.c (convert_ascii_to_int, outreg)
19072 (prepare_resume_reply): Change prototype to take a regcache.
19073 Adjust.
19074 * target.h (struct target_ops) <fetch_registers, store_registers>:
19075 Change prototype to take a regcache.
19076 (fetch_inferior_registers, store_inferior_registers): Change
19077 prototype to take a regcache. Adjust.
19078 * proc-service.c (ps_lgetregs): Adjust.
19079 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19080 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19081 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19082 take a regcache. Adjust.
19083 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19084 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19085 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19086 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19087 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19088 (cris_cannot_fetch_register):
19089 (cris_breakpoint_at): Change prototype to take a regcache.
19090 Adjust.
19091 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19092 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19093 to take a regcache. Adjust.
19094 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19095 Adjust.
19096 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19097 take a regcache. Adjust.
19098 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19099 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19100 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19101 * linux-mips-low.c (mips_get_pc):
19102 (mips_set_pc): Change prototype to take a regcache. Adjust.
19103 (mips_reinsert_addr): Adjust.
19104 (mips_collect_register): Change prototype to take a regcache.
19105 Adjust.
19106 (mips_supply_register):
19107 (mips_collect_register_32bit, mips_supply_register_32bit)
19108 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19109 (mips_store_fpregset): Ditto.
43aaf8b6
PA
19110 * linux-ppc-low.c (ppc_supply_ptrace_register)
19111 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
19112 (parse_spufs_run): Adjust.
19113 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19114 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19115 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19116 take a regcache. Adjust.
19117 * linux-s390-low.c (s390_collect_ptrace_register)
19118 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19119 (s390_set_pc): Change prototype to take a regcache. Adjust.
19120 (s390_arch_setup): Adjust.
19121 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19122 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19123 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19124 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19125 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19126 regcache. Adjust.
19127 (sparc_breakpoint_at): Adjust.
19128 * linux-xtensa-low.c (xtensa_fill_gregset):
19129 (xtensa_store_gregset):
19130 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19131 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19132 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19133 prototype to take a regcache. Adjust.
19134 * win32-arm-low.c (arm_fetch_inferior_register)
19135 (arm_store_inferior_register): Change prototype to take a
19136 regcache. Adjust.
19137 * win32-i386-low.c (i386_fetch_inferior_register)
19138 (i386_store_inferior_register): Change prototype to take a
19139 regcache. Adjust.
19140 * win32-low.c (child_fetch_inferior_registers)
19141 (child_store_inferior_registers): Change prototype to take a
19142 regcache. Adjust.
19143 (win32_wait): Adjust.
19144 (win32_fetch_inferior_registers): Change prototype to take a
19145 regcache. Adjust.
19146 (win32_store_inferior_registers): Adjust.
19147 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19148 store_inferior_register>: Change prototype to take a regcache.
19149
60c3d7b0
DE
191502010-01-20 Doug Evans <dje@google.com>
19151
19152 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19153 #ifdef.
19154 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 19155 (W_STOPCODE): Provide definition if missing.
60c3d7b0 19156
dc146f7c
VP
191572010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19158
19159 * linux-low.c (linux_core_of_thread): New.
19160 (compare_ints, show_process, list_threads): New.
19161 (linux_qxfer_osdata): Report threads and cores.
19162 (linux_target_op): Register linux_core_of_thread.
19163 * remote-utils.c (prepare_resume_reply): Report the core.
19164 (buffer_xml_printf): Support %d specifier.
19165 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19166 New.
19167 (handle_query): Handle qXfer:threads. Announce availability
19168 thereof.
19169 * target.h (struct target_ops): New field core_of_thread.
19170
7803799a
UW
191712010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19172
19173 * Makefile.in (clean): Remove new generated files.
19174 (reg-s390.o, reg-s390.c): Remove rules.
19175 (reg-s390x.o, reg-s390x.c): Likewise.
19176 (s390-linux32.o, s390-linux32.c): Add rules.
19177 (s390-linux64.o, s390-linux64.c): Likewise.
19178 (s390x-linux64.o, s390x-linux64.c): Likewise.
19179 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19180 * linux-s390-low.c: Include <elf.h>.
19181 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19182 (init_registers_s390): Remove prototype.
19183 (init_registers_s390x): Likewise.
19184 (init_registers_s390_linux32): Add prototype.
19185 (init_registers_s390_linux64): Likewise.
19186 (init_registers_s390x_linux64): Likewise.
19187 (s390_num_regs_3264): New define.
19188 (s390_regmap_3264): New global variable.
19189 (s390_cannot_fetch_register): Remove obsolete check.
19190 (s390_cannot_store_register): Likewise.
19191 (s390_collect_ptrace_register): Handle upper/lower register halves.
19192 (s390_supply_ptrace_register): Likewise.
19193 (s390_fill_gregset): Update to register number changes.
19194 (s390_get_hwcap): New routine.
19195 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19196 Install appropriate regmap and register set.
19197
6e7ffa39
JB
191982010-01-01 Joel Brobecker <brobecker@adacore.com>
19199
19200 * server.c (gdbserver_version): Update copyright year to 2010.
19201 * gdbreplay.c (gdbreplay_version): Likewise.
19202
957f3f49
DE
192032009-12-28 Doug Evans <dje@google.com>
19204
19205 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19206 elf/external.h. Include <elf.h> instead but only if necessary.
19207
ca5c370d
PA
192082009-12-28 Pedro Alves <pedro@codesourcery.com>
19209
19210 * linux-low.c (linux_remove_process): Remove `detaching'
19211 parameter. Don't release/detach from thread_db here.
19212 (linux_kill): Release/detach from thread_db here, ...
19213 (linux_detach): ... and here, before actually detaching.
19214 (linux_wait_1): ... and here, when a process exits.
19215 * thread-db.c (any_thread_of): New.
19216 (thread_db_free): Switch the current inferior to a thread of the
19217 passed in process.
19218
4ee62156
DE
192192009-12-21 Doug Evans <dje@google.com>
19220
d90e6a88
DE
19221 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19222
c5f62d5f
DE
19223 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19224 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19225 warning ifndef __NR_tkill. Move setting of errno there too.
19226 Delete unnecessary resetting of errno after syscall.
19227 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19228
10e86dd7
DE
19229 * configure.ac: Check for dladdr.
19230 * config.in: Regenerate.
19231 * configure: Regenerate.
19232 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19233 (try_thread_db_load): Update.
19234
4ee62156
DE
19235 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19236
00f515da
DE
192372009-12-18 Doug Evans <dje@google.com>
19238
e9464885
DE
19239 * event-loop.c: Include unistd.h if it exists.
19240
07d4f67e
DE
19241 * linux-low.c (my_waitpid): Move definition away from being in
19242 between linux_tracefork_child/linux_test_for_tracefork.
19243
00f515da
DE
19244 * gdb_proc_service.h (psaddr_t): Fix type.
19245 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19246 signature to match glibc.
19247
1de1badb
DE
192482009-12-16 Doug Evans <dje@google.com>
19249
19250 * linux-low.c (linux_read_memory): Fix argument to read.
19251
aeeb81d1
PA
192522009-11-26 Pedro Alves <pedro@codesourcery.com>
19253
19254 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19255 events, don't leave current_inferior pointing at null.
19256
10357975
PA
192572009-11-26 Pedro Alves <pedro@codesourcery.com>
19258
19259 * win32-low.c (LOG): Delete.
19260 (OUTMSG): Output to stderr.
19261 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19262 on compile time LOG macro.
19263 (win32_wait): Fix debug output.
19264
cf6e3471
PA
192652009-11-26 Pedro Alves <pedro@codesourcery.com>
19266
19267 * win32-low.c (win32_add_one_solib): If the dll name is
19268 "ntdll.dll", prepend the system directory to the dll path.
19269
0c85e18e
MK
192702009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19271
19272 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19273
9ac544ce 192742009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 19275 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
19276
19277 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19278 * configure.ac: Check for __mcoldfire__ and set
19279 gdb_cv_m68k_is_coldfire.
19280 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19281 reg-cf.o and reg-m68k.o.
19282 * configure: Regenerated.
19283
fd7dd3e6
PA
192842009-11-16 Pedro Alves <pedro@codesourcery.com>
19285
19286 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19287 Pass it to thread_db_free.
19288 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19289 proper `detaching' argument to linux_remove_process.
19290 * linux-low.h (thread_db_free): Add `detaching' parameter.
19291 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19292 to thread_db_free.
19293 (thread_db_free): Add `detaching' parameter. Only
19294 call td_ta_clear_event if detaching from process.
19295
75aa492e
MK
192962009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19297
19298 * thread-db.c (thread_db_free): Fix typo.
19299
21e1bee4
PP
193002009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19301
19302 PR gdb/10838
19303 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19304
8838b45e
NS
193052009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19306
19307 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19308 with an i686 compiler.
19309 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19310 needed.
19311 * configure: Rebuilt.
19312
8a35fb51
SL
193132009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19314
19315 PR gdb/10783
19316
19317 * server.c (handle_search_memory_1): Correct read_addr initialization
19318 in loop for searching subsequent chunks.
19319
96f15937
PP
193202009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19321
19322 * configure.ac: New --with-libthread-db option.
19323 * thread-db.c: Allow direct dependence on libthread_db.
19324 (thread_db_free): Adjust.
19325 * config.in: Regenerate.
19326 * configure: Likewise.
889bf7c5 19327
5f7d1694
PP
193282009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19329
19330 PR gdb/10757
19331 * thread-db.c (attach_thread): New function.
19332 (maybe_attach_thread): Return success/failure.
19333 (find_new_threads_callback): Adjust.
889bf7c5
PA
19334 (thread_db_find_new_threads): Loop until no new threads.
19335
88e3b899
PA
193362009-10-13 Pedro Alves <pedro@codesourcery.com>
19337
19338 * proc-service.c (ps_lgetregs): Formatting.
19339
cdbfd419
PP
193402009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19341
19342 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19343 * configure.ac: Adjust.
19344 * linux-low.h (struct process_info_private): Move members to struct
19345 thread_db.
19346 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19347 * linux-low.c (linux_remove_process): Adjust.
19348 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19349 * server.c (handle_query): Move code ...
19350 (handle_monitor_command): ... here. New function.
19351 * target.h (struct target_ops): New member.
19352 * thread-db.c (struct thread_db): New.
19353 (libthread_db_search_path): New variable.
19354 (thread_db_create_event, thread_db_enable_reporting)
19355 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19356 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19357 (try_thread_db_load_1, dladdr_to_soname): New functions.
19358 (try_thread_db_load, thread_db_load_search): New functions.
19359 (thread_db_init): Search for libthread_db.
19360 (thread_db_free): New function.
19361 (thread_db_handle_monitor_command): Likewise.
19362 * config.in: Regenerate.
19363 * configure: Regenerate.
889bf7c5 19364
4168d2d6
UW
193652009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19366
19367 * spu-low.c (spu_kill): Wait for inferior to terminate.
19368 Call clear_inferiors.
19369 (spu_detach): Call clear_inferiors.
19370
81ecdfbb
RW
193712009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19372
19373 * aclocal.m4: Regenerate.
19374 * config.in: Likewise.
19375 * configure: Likewise.
19376
0b9ff2c0
UW
193772009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19378
19379 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19380 (parse_spufs_run): New function.
19381 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19382 (ppc_breakpoint_at): Handle SPU breakpoints.
19383
efcbbd14
UW
193842009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19385
19386 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19387 (SPUFS_MAGIC): Define.
19388 (spu_enumerate_spu_ids): New function.
19389 (linux_qxfer_spu): New function.
19390 (linux_target_ops): Install linux_qxfer_spu.
19391
f4d9bade
UW
193922009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19393
19394 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19395 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19396 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19397 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19398 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19399 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19400 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19401 (init_registers_powerpc_cell32l): Add prototype.
19402 (init_registers_powerpc_cell64l): Likewise.
19403 (ppc_arch_setup): Detect Cell/B.E. architecture.
19404
96e946ca
RW
194052009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19406
19407 * Makefile.in (datarootdir): New variable.
19408
58d6951d
DJ
194092009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19410
19411 * linux-low.c (linux_write_memory): Update debugging output.
19412 * Makefile.in (clean): Add new descriptions.
19413 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19414 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19415 * configure.srv: Add new files for arm*-*-linux*.
19416 * linux-arm-low.c: Add new declarations.
19417 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19418 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19419 (HWCAP_VFPv3D16): New.
19420 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19421 instead of __IWMMXT__.
19422 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19423 (arm_arch_setup): New.
19424 (target_regsets): Remove #ifdef. Add VFP regset.
19425 (the_low_target): Use arm_arch_setup.
19426
12b42a12
DJ
194272009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19428
19429 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19430 the main thread again.
19431
ac8c974e
AR
194322009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19433
19434 Adding Neutrino gdbserver.
19435 * configure: Regenerated.
19436 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19437 * configure.srv (i[34567]86-*-nto*): New target.
19438 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19439 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19440 (nto_comctrl) [__QNX__]: New function.
19441 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19442
4424e0c3 194432009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19444
19445 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19446 srv_tgtobj.
19447
912cf4ba
PA
194482009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19449 Pedro Alves <pedro@codesourcery.com>
19450
19451 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19452 don't support CONTEXT_EXTENDED_REGISTERS.
19453 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19454 (the_low_target): Install them.
19455 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19456 failing with ERROR_PIPE_NOT_CONNECTED.
19457
aa5ca48f
DE
194582009-06-30 Doug Evans <dje@google.com>
19459 Pierre Muller <muller@ics.u-strasbg.fr>
19460
19461 Add h/w watchpoint support to x86-linux, win32-i386.
19462 * Makefile.in (SFILES): Add i386-low.c
19463 (i386_low_h): Define.
19464 (i386-low.o): Add dependencies.
19465 (linux-x86-low.o): Add i386-low.h dependency.
19466 (win32-i386-low.o): Ditto.
19467 * i386-low.c: New file.
19468 * i386-low.h: New file.
19469 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19470 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19471 * linux-low.c (linux_add_process): Initialize arch_private.
19472 (linux_remove_process): Free arch_private.
19473 (add_lwp): Initialize arch_private.
19474 (delete_lwp): Free arch_private.
19475 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19476 provided.
19477 * linux-low.h (process_info_private): New member arch_private.
19478 (lwp_info): New member arch_private.
19479 (linux_target_ops): New members new_process, new_thread,
19480 prepare_to_resume.
19481 (ptid_of): New macro.
19482 * linux-x86-low.c: Include stddef.h, i386-low.h.
19483 (arch_process_info): New struct.
19484 (arch_lwp_info): New struct.
19485 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19486 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19487 (i386_dr_low_get_status): New function.
19488 (x86_insert_point, x86_remove_point): New functions.
19489 (x86_stopped_by_watchpoint): New function.
19490 (x86_stopped_data_address): New function.
19491 (x86_linux_new_process, x86_linux_new_thread): New functions.
19492 (x86_linux_prepare_to_resume): New function.
19493 (the_low_target): Add entries for insert_point, remove_point,
19494 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19495 prepare_to_resume.
19496 * server.c (debug_hw_points): New global.
19497 (monitor_show_help): Document set debug-hw-points.
19498 (handle_query): Process "set debug-hw-points".
19499 * server.h (debug_hw_points): Declare.
19500 (paddress): Declare.
19501 * utils.c (NUMCELLS, CELLSIZE): New macros.
19502 (get_sell, xsnprintf, paddress): New functions.
19503 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19504 remove_point, stopped_by_watchpoint, stopped_data_address.
19505 * win32-i386-low.c: Include i386-low.h.
19506 (debug_reg_state): Replaces dr.
19507 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19508 (i386_dr_low_get_status): New function.
19509 (i386_insert_point, i386_remove_point): New functions.
19510 (i386_stopped_by_watchpoint): New function.
19511 (i386_stopped_data_address): New function.
19512 (i386_initial_stuff): Update.
19513 (get_thread_context,set_thread_context,i386_thread_added): Update.
19514 (the_low_target): Add entries for insert_point,
19515 remove_point, stopped_by_watchpoint, stopped_data_address.
19516 * win32-low.c (win32_insert_watchpoint): New function.
19517 (win32_remove_watchpoint): New function.
19518 (win32_stopped_by_watchpoint): New function.
19519 (win32_stopped_data_address): New function.
19520 (win32_target_ops): Add entries for insert_watchpoint,
19521 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19522 * win32-low.h (win32_target_ops): New members insert_point,
19523 remove_point, stopped_by_watchpoint, stopped_data_address.
19524
d993e290
PA
195252009-06-25 Pedro Alves <pedro@codesourcery.com>
19526
19527 * server.c (process_serial_event): Re-return unsupported, not
19528 error, if the type isn't recognized. Re-allow supporting only
19529 insert or remove packets. Also call require_running for
19530 breakpoints. Add missing break statement to default case. Tidy.
19531 * target.h (struct target_ops): Rename insert_watchpoint to
19532 insert_point, and remove_watchpoint to remove_point.
19533
19534 * linux-low.h (struct linux_target_ops): Likewise.
19535 * linux-low.c (linux_insert_watchpoint): Rename to ...
19536 (linux_insert_point): ... this. Adjust.
19537 (linux_remove_watchpoint): Rename to ...
19538 (linux_remove_point): ... this. Adjust.
19539 (linux_target_ops): Adjust.
19540 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19541 (cris_insert_point): ... this.
19542 (cris_remove_watchpoint): Rename to ...
19543 (cris_remove_point): ... this.
19544 (the_low_target): Adjust.
19545
0f54c268
PM
195462009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19547
19548 * server.c (handle_v_kill): Pass signal_pid to
19549 kill_inferior if multi_process is zero.
19550
c6314022
AR
195512009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19552
19553 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19554 * target.h (target_ops): Comment for *_watchpoint to make it clear
19555 the functions can get types '0' and '1'.
19556
4463ce24
AR
195572009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19558
19559 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19560 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19561 * regcache.c (get_regcache): Likewise.
19562 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19563 * win32-low.c (child_fetch_inferior_registers): Remove check for
19564 regno 0.
19565
cf8fd78b
PA
195662009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19567 Pedro Alves <pedro@codesourcery.com>
19568
19569 * target.h (struct target_ops) <supports_multi_process>: New
19570 callback.
19571 (target_supports_multi_process): New.
19572 * server.c (handle_query): Even if GDB reports support, only
19573 enable multi-process if the target also supports it. Report
19574 multi-process support only if the target backend supports it.
19575 * linux-low.c (linux_supports_multi_process): New function.
19576 (linux_target_ops): Install it as target_supports_multi_process
19577 callback.
19578
47c0c975
DE
195792009-05-24 Doug Evans <dje@google.com>
19580
e09875d4
DE
19581 Global renaming of find_thread_pid to find_thread_ptid.
19582 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19583 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19584 All callers updated.
19585
e27d73f6
DE
19586 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19587 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19588 directly.
19589
47c0c975
DE
19590 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19591 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19592 (linux_resume_one_lwp): Ditto.
19593
2acc282a
DE
195942009-05-23 Doug Evans <dje@google.com>
19595
19596 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19597 from struct inferior_list_entry * to struct lwp_info *.
19598 All callers updated.
19599
9f1036c1
DE
196002009-05-13 Doug Evans <dje@google.com>
19601
19602 * linux-x86-low.c: Don't include assert.h.
19603 (x86_siginfo_fixup): Use fatal, not assert.
19604 (x86_arch_setup): Fix comment.
19605
d0722149
DE
196062009-05-12 Doug Evans <dje@google.com>
19607
19608 Biarch support for i386/amd64 gdbserver.
19609 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19610 Add linux-x86-low.c.
19611 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19612 (linux-x86-low.o): Add.
19613 * linux-x86-64-low.c: Delete.
19614 * linux-i386-low.c: Delete.
19615 * linux-x86-low.c: New file.
19616 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19617 linux-x86-low.o.
19618 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19619 linux-x86-low.o.
19620 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19621 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19622 (linux_child_pid_to_exec_file): New function.
19623 (elf_64_header_p, elf_64_file_p): New functions.
19624 (siginfo_fixup): New function.
19625 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19626 give target a chance to convert layout.
19627 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19628 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19629
fdeb2a12
DE
196302009-05-07 Doug Evans <dje@google.com>
19631
19632 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19633 (regsets_store_inferior_registers): Ditto.
19634
a6dbe5df
PA
196352009-05-06 Pedro Alves <pedro@codesourcery.com>
19636
19637 PR server/10048
19638
19639 * linux-low.c (must_set_ptrace_flags): Delete.
19640 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19641 of the global.
19642 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19643 `lwp->must_set_ptrace_flags' instead.
ba42693b 19644 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19645 (linux_wait_1): ... not here.
19646
5091eb23
DE
196472009-04-30 Doug Evans <dje@google.com>
19648
9f767825
DE
19649 * inferiors.c (started_inferior_callback): New function.
19650 (attached_inferior_callback): New function.
19651 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19652 * server.c (print_started_pid, print_attached_pid): New functions.
19653 (detach_or_kill_for_exit): New function.
19654 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19655 * server.h (have_started_inferiors_p): Declare.
19656 (have_attached_inferiors_p): Declare.
19657
5091eb23
DE
19658 * inferiors.c (remove_process): Fix memory leak, free process.
19659 * linux-low.c (linux_remove_process): New function.
19660 (linux_kill): Call it instead of remove_process.
19661 (linux_detach, linux_wait_1): Ditto.
19662
155c8968
PA
196632009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19664
19665 * configure.srv: Add x86 Windows CE target.
19666
7fe519cb
UW
196672009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19668
19669 * inferiors.c (get_thread_process): Make global.
19670 * server.h (get_thread_process): Add prototype.
19671 * thread-db.c (find_one_thread): Use get_thread_process
19672 instead of current_process.
19673 (thread_db_get_tls_address): Do not crash if called when
19674 thread layer is not yet initialized.
19675
5472f405
UW
196762009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19677
19678 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19679 * spu-low.c (current_tid): Rename to ...
19680 (current_ptid): ... this.
19681 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19682 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19683 ptid_get_lwp (current_ptid) instead of current_tid.
19684 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19685 instead of current_tid. Use find_process_pid to verify pid
19686 argument is valid. Pass proper argument to remove_process.
19687 (spu_thread_alive): Compare current_ptid instead of current_tid.
19688 (spu_resume): Likewise.
19689
55ac2b99
PA
196902009-04-02 Pedro Alves <pedro@codesourcery.com>
19691
19692 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19693 variable.
19694
95954743
PA
196952009-04-01 Pedro Alves <pedro@codesourcery.com>
19696
19697 Implement the multiprocess extensions, and add linux multiprocess
19698 support.
19699
19700 * server.h (ULONGEST): Declare.
19701 (struct ptid, ptid_t): New.
19702 (minus_one_ptid, null_ptid): Declare.
19703 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19704 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19705 (struct inferior_list_entry): Change `id' type from unsigned from
19706 to ptid_t.
19707 (struct sym_cache, struct breakpoint, struct
19708 process_info_private): Forward declare.
19709 (struct process_info): Declare.
19710 (current_process): Declare.
19711 (all_processes): Declare.
19712 (initialize_inferiors): Declare.
19713 (add_thread): Adjust to use ptid_t.
19714 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19715 (add_process, remove_process, find_thread_pid): Declare.
19716 (find_inferior_id): Adjust to use ptid_t.
19717 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19718 (multi_process): Declare.
19719 (push_event): Adjust to use ptid_t.
19720 (read_ptid, write_ptid): Declare.
19721 (prepare_resume_reply): Adjust to use ptid_t.
19722 (clear_symbol_cache): Declare.
19723 * inferiors.c (all_processes): New.
19724 (null_ptid, minus_one_ptid): New.
19725 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19726 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19727 (add_thread): Change unsigned long to ptid. Remove gdb_id
19728 parameter. Adjust.
19729 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19730 (gdb_id_to_thread): Rename to ...
19731 (find_thread_pid): ... this. Change unsigned long to ptid.
19732 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19733 (loaded_dll, pull_pid_from_list): Adjust.
19734 (add_process, remove_process, find_process_pid)
19735 (get_thread_process, current_process, initialize_inferiors): New.
19736 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19737 (struct target_waitstatus) <related_pid>: Ditto.
19738 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19739 return type to int.
19740 (struct target_ops) <join>: Add `pid' argument.
19741 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19742 (struct target_ops) <wait>: Add `ptid' field. Change return type
19743 to ptid.
19744 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19745 (mywait): Add `ptid' argument. Change return type to ptid_t.
19746 (target_pid_to_str): Declare.
19747 * target.c (set_desired_inferior): Adjust to use ptids.
19748 (mywait): Add new `ptid' argument. Adjust.
19749 (target_pid_to_str): New.
19750 * mem-break.h (free_all_breakpoints): Declare.
19751 * mem-break.c (breakpoints): Delelete.
19752 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19753 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19754 to use per-process breakpoint list.
19755 (free_all_breakpoints): New.
19756 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19757 (symbol_cache, all_symbols_looked_up): Delete.
19758 (hexchars): New.
19759 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19760 read_ptid): New.
19761 (prepare_resume_reply): Change ptid argument's type from unsigned
19762 long to ptid_t. Adjust. Implement W;process and X;process.
19763 (free_sym_cache, clear_symbol_cache): New.
19764 (look_up_one_symbol): Adjust to per-process symbol cache. *
19765 * server.c (cont_thread, general_thread, step_thread): Change type
19766 to ptid_t.
19767 (attached): Delete.
19768 (multi_process): New.
19769 (last_ptid): Change type to ptid_t.
19770 (struct vstop_notif) <ptid>: Change type to ptid_t.
19771 (queue_stop_reply, push_event): Change `ptid' argument's type to
19772 ptid_t.
19773 (discard_queued_stop_replies): Add `pid' argument.
19774 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19775 changes. Don't reference the `attached' global.
19776 (attach_inferior): Adjust to mywait interface changes.
19777 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19778 features. Handle and report "multiprocess+". Handle
19779 "qAttached:PID".
19780 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19781 changes.
19782 (handle_v_kill): New.
19783 (handle_v_stopped): Adjust to use target_pid_to_str.
19784 (handle_v_requests): Allow multiple attaches and runs when
19785 multiprocess extensions are in effect. Handle "vKill".
19786 (myresume): Adjust to use ptids.
19787 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19788 (handle_status): Adjust to discard_queued_stop_replies interface
19789 change.
19790 (first_thread_of, kill_inferior_callback)
19791 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19792 (main): Call initialize_inferiors. Adjust to use ptids, killing
19793 and detaching from all inferiors. Handle multiprocess packet
19794 variants.
19795 * linux-low.h: Include gdb_proc_service.h.
19796 (struct process_info_private): New.
19797 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19798 <lwpid_of>: Use ptid_get_lwp.
19799 (get_lwp_thread): Adjust.
19800 (struct lwp_info): Add `dead' member.
19801 (find_lwp_pid): Declare.
19802 * linux-low.c (thread_db_active): Delete.
19803 (new_inferior): Adjust comment.
19804 (inferior_pid): Delete.
19805 (linux_add_process): New.
19806 (handle_extended_wait): Adjust.
19807 (add_lwp): Change unsigned long to ptid.
19808 (linux_create_inferior): Add process to processes table. Adjust
19809 to use ptids. Don't set new_inferior here.
19810 (linux_attach_lwp): Rename to ...
19811 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19812 it. Adjust to use ptids.
19813 (linux_attach_lwp): New.
19814 (linux_attach): Add process to processes table. Don't set
19815 new_inferior here.
19816 (struct counter): New.
19817 (second_thread_of_pid_p, last_thread_of_process_p): New.
19818 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19819 multiple processes.
19820 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19821 processes. Remove process from process table.
19822 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19823 to multiple processes.
19824 (any_thread_of): New.
19825 (linux_detach): Add `pid' argument, and handle it. Remove process
19826 from processes table.
19827 (linux_join): Add `pid' argument. Handle it.
19828 (linux_thread_alive): Change unsighed long argument to ptid_t.
19829 Consider dead lwps as not being alive.
19830 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19831 threads we're not interested in.
19832 (same_lwp, find_lwp_pid): New.
19833 (linux_wait_for_lwp): Change `pid' argument's type from int to
19834 ptid_t. Adjust.
19835 (linux_wait_for_event): Rename to ...
19836 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19837 from int to ptid_t. Adjust.
19838 (linux_wait_for_event): New.
19839 (linux_wait_1): Add `ptid' argument. Change return type to
19840 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19841 that exit from the process table.
19842 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19843 Adjust.
19844 (mark_lwp_dead): New.
19845 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19846 stopping all threads, mark its main lwp as dead.
19847 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19848 ptids.
19849 (fetch_register, usr_store_inferior_registers)
19850 (regsets_fetch_inferior_registers)
19851 (regsets_store_inferior_registers, linux_read_memory)
19852 (linux_write_memory): Inline `inferior_pid'.
19853 (linux_look_up_symbols): Adjust to use per-process
19854 `thread_db_active'.
19855 (linux_request_interrupt): Adjust to use ptids.
19856 (linux_read_auxv): Inline `inferior_pid'.
19857 (initialize_low): Don't reference thread_db_active.
19858 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19859 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19860 (ps_getpid): Return the pid of the current inferior.
19861 * thread-db.c (proc_handle, thread_agent): Delete.
19862 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19863 per-process data.
19864 (find_one_thread): Change argument type to ptid_t. Adjust to
19865 per-process data.
19866 (maybe_attach_thread): Adjust to per-process data and ptids.
19867 (thread_db_find_new_threads): Ditto.
19868 (thread_db_init): Ditto.
19869 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19870 processes table. Adjust to use ptids.
19871 (spu_kill, spu_detach): Adjust interface. Remove process from
19872 processes table.
19873 (spu_join, spu_thread_alive): Adjust interface.
19874 (spu_wait): Adjust interface. Remove process from processes
19875 table. Adjust to use ptids.
19876 * win32-low.c (current_inferior_tid): Delete.
19877 (current_inferior_ptid): New.
19878 (debug_event_ptid): New.
19879 (thread_rec): Take a ptid. Adjust.
19880 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19881 (child_delete_thread): Ditto.
19882 (do_initial_child_stuff): Add `attached' argument. Add process to
19883 processes table.
19884 (child_fetch_inferior_registers, child_store_inferior_registers):
19885 Adjust.
19886 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19887 (win32_attach): Pass 1 to do_initial_child_stuff.
19888 (win32_kill): Adjust interface. Remove process from processes
19889 table.
19890 (win32_detach): Ditto.
19891 (win32_join): Adjust interface.
19892 (win32_thread_alive): Take a ptid.
19893 (win32_resume): Adjust to use ptids.
19894 (get_child_debug_event): Ditto.
19895 (win32_wait): Adjust interface. Remove exiting process from
19896 processes table.
19897
bd99dc85
PA
198982009-04-01 Pedro Alves <pedro@codesourcery.com>
19899
19900 Non-stop mode support.
19901
19902 * server.h (non_stop): Declare.
19903 (gdb_client_data, handler_func): Declare.
19904 (delete_file_handler, add_file_handler, start_event_loop):
19905 Declare.
19906 (handle_serial_event, handle_target_event, push_event)
19907 (putpkt_notif): Declare.
19908 * target.h (enum resume_kind): New.
19909 (struct thread_resume): Replace `step' field by `kind' field.
19910 (TARGET_WNOHANG): Define.
19911 (struct target_ops) <wait>: Add `options' argument.
19912 <supports_non_stop, async, start_non_stop>: New fields.
19913 (target_supports_non_stop, target_async): New.
19914 (start_non_stop): Declare.
19915 (mywait): Add `options' argument.
19916 * target.c (mywait): Add `options' argument. Print child exit
19917 notifications here.
19918 (start_non_stop): New.
19919 * server.c (non_stop, own_buf, mem_buf): New globals.
19920 (struct vstop_notif): New.
19921 (notif_queue): New global.
19922 (queue_stop_reply, push_event, discard_queued_stop_replies)
19923 (send_next_stop_reply): New.
19924 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19925 interface changes.
19926 (attach_inferior): In non-stop mode, don't wait for the target
19927 here.
19928 (handle_general_set): Handle QNonStop.
19929 (handle_query): When handling qC, return the current general
19930 thread, instead of the first thread of the list.
19931 (handle_query): If the backend supports non-stop mode, include
19932 QNonStop+ in the qSupported query response.
19933 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19934 and non-stop mode.
19935 (handle_v_attach, handle_v_run): Handle non-stop mode.
19936 (handle_v_stopped): New.
19937 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19938 (myresume): Adjust to use resume_kind. Handle non-stop.
19939 (queue_stop_reply_callback): New.
19940 (handle_status): Handle non-stop mode.
19941 (main): Clear non_stop flag on reconnection. Use the event-loop.
19942 Refactor serial protocol handling from here ...
19943 (process_serial_event): ... to this new function. When GDB
19944 selects any thread, select one here. In non-stop mode, wait until
19945 GDB acks all pending events before exiting.
19946 (handle_serial_event, handle_target_event): New.
19947 * remote-utils.c (remote_open): Install remote_desc in the event
19948 loop.
19949 (remote_close): Remove remote_desc from the event loop.
19950 (putpkt_binary): Rename to...
19951 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19952 (putpkt_binary): New as wrapper around putpkt_binary_1.
19953 (putpkt_notif): New.
19954 (prepare_resume_reply): In non-stop mode, don't change the
19955 general_thread.
19956 * event-loop.c: New.
19957 * Makefile.in (OBJ): Add event-loop.o.
19958 (event-loop.o): New rule.
19959
19960 * linux-low.h (pid_of): Moved here.
19961 (lwpid_of): New.
19962 (get_lwp_thread): Use lwpid_of.
19963 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19964 * linux-low.c (pid_of): Delete.
19965 (inferior_pid): Use lwpid_of.
19966 (linux_event_pipe): New.
19967 (target_is_async_p): New.
19968 (delete_lwp): New.
19969 (handle_extended_wait): Use lwpid_of.
19970 (add_lwp): Don't set lwpid field.
19971 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19972 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19973 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19974 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19975 first. Adjust to linux_wait_for_event interface changes. Use
19976 lwpid_of.
19977 (linux_detach): Don't delete the main lwp here.
19978 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19979 (status_pending_p): Don't consider explicitly suspended lwps.
19980 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19981 pointer. Add OPTIONS argument. Change return type to int. Use
19982 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19983 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19984 pointer. Add status pointer argument. Return a pid instead of a
19985 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19986 changes. In non-stop mode, don't switch to a random thread.
19987 (linux_wait): Rename to...
19988 (linux_wait_1): ... this. Add target_options argument, and handle
19989 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19990 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19991 clean exit and signal exit code. Don't stop all threads in
19992 non-stop mode. In all-stop mode, only stop all threads when
19993 reporting a stop to GDB. Handle explicit thread stop requests.
19994 (async_file_flush, async_file_mark): New.
19995 (linux_wait): New.
19996 (send_sigstop): Use lwpid_of.
19997 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19998 interface changes. In non-stop mode, don't switch to a random
19999 thread.
20000 (linux_resume_one_lwp): Use lwpid_of.
20001 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20002 (linux_resume_one_thread): ... this. Handle resume_stop. In
20003 non-stop mode, don't look for pending flag in all threads.
20004 (resume_status_pending_p): Don't consider explicitly suspended
20005 threads.
20006 (my_waitpid): Reimplement. Emulate __WALL.
20007 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20008 Use lwpid_of.
20009 (sigchld_handler, linux_supports_non_stop, linux_async)
20010 (linux_start_non_stop): New.
20011 (linux_target_ops): Register linux_supports_non_stop, linux_async
20012 and linux_start_non_stop.
20013 (initialize_low): Install SIGCHLD handler.
20014 * thread-db.c (thread_db_create_event, find_one_thread)
20015 (thread_db_get_tls_address): Use lwpid_of.
20016 * win32-low.c (win32_detach): Adjust to use resume_kind.
20017 (win32_wait): Add `options' argument.
20018 * spu-low.c (spu_resume): Adjust to use resume_kind.
20019 (spu_wait): Add `options' argument.
20020
5b1c542e
PA
200212009-04-01 Pedro Alves <pedro@codesourcery.com>
20022
20023 Decouple target code from remote protocol.
20024
20025 * target.h (enum target_waitkind): New.
20026 (struct target_waitstatus): New.
20027 (struct target_ops) <wait>: Return an unsigned long. Take a
20028 target_waitstatus pointer instead of a char pointer.
20029 (mywait): Likewise.
20030 * target.c (mywait): Change prototype to return an unsigned long.
20031 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20032 * server.h (thread_from_wait, old_thread_from_wait): Delete
20033 declarations.
20034 (prepare_resume_reply): Change prototype to take a
20035 target_waitstatus.
20036 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20037 (last_status, last_ptid): New.
20038 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20039 pid instead of a signal.
20040 (attach_inferior): Remove "status" and "signal" parameters.
20041 Adjust.
20042 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20043 not as an address.
20044 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20045 (handle_v_requests, myresume): Remove "status" and "signal"
20046 parameters. Adjust.
20047 (handle_status): New.
20048 (main): Delete local `status'. Adjust.
20049 * remote-utils.c: Include target.h.
20050 (prepare_resume_reply): Change prototype to take a
20051 target_waitstatus. Adjust.
20052
20053 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20054 interface.
20055 * spu-low.c (spu_wait): Adjust.
20056 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20057 Delete.
20058 (win32_wait): Adjust.
20059
2bd7c093
PA
200602009-04-01 Pedro Alves <pedro@codesourcery.com>
20061
20062 * target.h (struct thread_resume): Delete leave_stopped member.
20063 (struct target_ops): Add a `n' argument to the `resume' callback.
20064 * server.c (start_inferior): Adjust.
20065 (handle_v_cont, myresume): Adjust.
20066 * linux-low.c (check_removed_breakpoint): Adjust to resume
20067 interface change, and to removed leave_stopped field.
20068 (resume_ptr): Delete.
20069 (struct thread_resume_array): New.
20070 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20071 resume interface change.
20072 (linux_continue_one_thread, linux_queue_one_thread)
20073 (resume_status_pending_p): Check if the resume field is NULL
20074 instead of checking the leave_stopped member.
20075 (linux_resume): Adjust to the target resume interface change.
20076 * spu-low.c (spu_resume): Adjust to the target resume interface
20077 change.
20078 * win32-low.c (win32_detach, win32_resume): Ditto.
20079
c35fafde
PA
200802009-04-01 Pedro Alves <pedro@codesourcery.com>
20081
20082 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20083 flag.
20084 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20085 pending.
20086 (linux_continue_one_thread): Only preserve the stepping flag if
20087 there's a pending breakpoint.
20088
0a59d50b
PA
200892009-03-31 Pedro Alves <pedro@codesourcery.com>
20090
20091 * server.c (main): After the inferior having exited, call
20092 remote_close before exiting gdbserver.
20093
f04c6d38
TJB
200942009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20095
20096 Fix size of FPSCR in Power 7 processors.
20097 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20098 (PPC_FEATURE_HAS_DFP): New #define.
20099 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20100 size of the FPSCR.
20101
78e5cee6
PA
201022009-03-23 Pedro Alves <pedro@codesourcery.com>
20103
20104 * server.c (handle_query) Whitespace and formatting.
20105
1b3f6016
PA
201062009-03-22 Pedro Alves <pedro@codesourcery.com>
20107
20108 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20109 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20110 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20111 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20112 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20113 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20114 Makefile.in, configure.ac: Fix whitespace throughout.
20115 * configure: Regenerate.
20116
a07b2135
PA
201172009-03-22 Pedro Alves <pedro@codesourcery.com>
20118
20119 * inferiors.c (find_inferior): Make it safe for the callback
20120 function to delete the currently iterated inferior.
20121
67cc2626
PA
201222009-03-22 Pedro Alves <pedro@codesourcery.com>
20123
20124 * Makefile.in (linuw_low_h): Move higher.
20125 (thread-db.o): Depend on $(linux_low_h).
20126
54a0b537
PA
201272009-03-17 Pedro Alves <pedro@codesourcery.com>
20128
20129 Rename "process" to "lwp" throughout.
20130
20131 * linux-low.c (all_processes): Rename to...
20132 (all_lwps): ... this.
20133 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20134 (add_process): Rename to ...
20135 (add_lwp): ... this. Adjust.
20136 (linux_create_inferior): Adjust.
20137 (linux_attach_lwp): Adjust.
20138 (linux_attach): Adjust.
20139 (linux_kill_one_process): Rename to ...
20140 (linux_kill_one_lwp): ... this. Adjust.
20141 (linux_kill): Adjust.
20142 (linux_detach_one_process): Rename to ...
20143 (linux_detach_one_lwp): ... this. Adjust.
20144 (linux_detach): Adjust.
20145 (check_removed_breakpoint): Adjust.
20146 (status_pending_p): Adjust.
20147 (linux_wait_for_process): Rename to ...
20148 (linux_wait_for_lwp): ... this. Adjust.
20149 (linux_wait_for_event): Adjust.
20150 (send_sigstop): Adjust.
20151 (wait_for_sigstop): Adjust.
20152 (stop_all_processes): Rename to ...
20153 (stop_all_lwps): ... this.
20154 (linux_resume_one_process): Rename to ...
20155 (linux_resume_one_lwp): ... this. Adjust.
20156 (linux_set_resume_request, linux_continue_one_thread)
20157 (linux_queue_one_thread, resume_status_pending_p)
20158 (usr_store_inferior_registers, regsets_store_inferior_registers)
20159 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20160 Adjust.
20161 * linux-low.h (get_process): Rename to ...
20162 (get_lwp): ... this. Adjust.
20163 (get_thread_process): Rename to ...
20164 (get_thread_lwp): ... this. Adjust.
20165 (get_process_thread): Rename to ...
20166 (get_lwp_thread): ... this. Adjust.
20167 (struct process_info): Rename to ...
20168 (struct lwp_info): ... this.
20169 (all_processes): Rename to ...
20170 (all_lwps): ... this.
20171 * proc-service.c (ps_lgetregs): Adjust.
20172 * thread-db.c (thread_db_create_event, find_one_thread)
20173 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20174
0b16c5cf
PA
201752009-03-14 Pedro Alves <pedro@codesourcery.com>
20176
20177 * server.c (handle_query): Handle "qAttached".
20178
32de4b9d
NS
201792009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20180
20181 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20182 GPLv3, update license URL.
20183
2aecd87f
DE
201842009-03-01 Doug Evans <dje@google.com>
20185
93efd302 20186 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
20187 (server_h): Add gdb_signals.h.
20188 (signals.o): Update.
20189 * server.h (target_signal_from_host,target_signal_to_host_p)
20190 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20191
86b1f9c5
PM
201922009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20193
20194 * remote-utils.c (getpkt): Also generate remote-debug
20195 information if noack_mode is set.
20196
4aa995e1
PA
201972009-02-06 Pedro Alves <pedro@codesourcery.com>
20198
20199 * server.c (handle_query): Report qXfer:siginfo:read and
20200 qXfer:siginfo:write as supported and handle them.
20201 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20202 * linux-low.c (linux_xfer_siginfo): New.
20203 (linux_target_ops): Set it.
20204
62709adf
PA
202052009-01-26 Pedro Alves <pedro@codesourcery.com>
20206
20207 * server.c (gdbserver_usage): Mention --remote-debug.
20208 (main): Accept '--remote-debug' switch.
20209
aef93bd7
DE
202102009-01-18 Doug Evans <dje@google.com>
20211
20212 * regcache.c (new_register_cache): No need to check result of xcalloc.
20213 * server.c (handle_search_memory): Back out calls to xmalloc,
20214 result is checked and error is returned to user upon failure.
20215 (handle_query): Ditto. Add more checks for result of malloc.
20216 (handle_v_cont): Check result of malloc, report error back to
20217 user upon failure.
20218 (handle_v_run): Ditto. Call freeargv.
20219 * server.h (freeargv): Declare.
20220 * utils.c (freeargv): New fn.
20221
54363045
DE
202222009-01-15 Doug Evans <dje@google.com>
20223
f626972c
DE
20224 * gdbreplay.c (perror_with_name): Make arg const char *.
20225 * server.h (target_signal_to_name): Make return type const char *.
0842e787 20226 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 20227 * utils.c (perror_with_name): Make arg const char *.
54363045 20228
18aae699
PA
202292009-01-14 Pedro Alves <pedro@codesourcery.com>
20230
20231 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20232 when handling a EXIT_PROCESS_DEBUG_EVENT.
20233
ff703abe
JB
202342009-01-06 Joel Brobecker <brobecker@adacore.com>
20235
20236 * gdbreplay.c (gdbreplay_version): Update copyright year.
20237 * server.c (gdbserver_version): Likewise.
20238
f21cc1a2 202392009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
20240
20241 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 20242 (handle_extended_wait): Improve comment.
0e21c1ec 20243
bca929d3
DE
202442008-12-13 Doug Evans <dje@google.com>
20245
20246 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20247 * server.h (ATTR_MALLOC): New macro.
20248 (xmalloc,xcalloc,xstrdup): Declare.
20249 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20250 * inferiors.c: Ditto.
20251 * linux-low.c: Ditto.
20252 * mem-break.c: Ditto.
20253 * regcache.c: Ditto.
20254 * remote-utils.c: Ditto.
20255 * server.c: Ditto.
20256 * target.c: Ditto.
20257 * win32-low.c: Ditto.
20258
97438e3f
DE
202592008-12-12 Doug Evans <dje@google.com>
20260
896c7fbb
DE
20261 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20262 in debugging printf.
20263
97438e3f
DE
20264 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20265
e3b886f8
DE
202662008-12-09 Doug Evans <dje@google.com>
20267
20268 * linux-low.h (struct process_info): Delete member tid, unused.
20269 * thread-db.c (find_one_thread): Update.
20270 (maybe_attach_thread): Update.
20271
07e059b5
VP
202722008-12-02 Pedro Alves <pedro@codesourcery.com>
20273
889bf7c5
PA
20274 * target.h (struct target_ops): Add qxfer_osdata member.
20275 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20276 and dirent.h.
20277 (linux_qxfer_osdata): New functions.
20278 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20279 callback.
20280 * server.c (handle_query): Handle "qXfer:osdata:read:".
20281 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20282 (buffer_xml_printf): New functions.
20283 * server.h (struct buffer): New.
20284 (buffer_grow_str, buffer_grow_str0): New macros.
20285 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20286 (buffer_xml_printf): Declare.
07e059b5 20287
4cab47ab
DE
202882008-11-24 Doug Evans <dje@google.com>
20289
20290 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20291
f142445f
DJ
202922008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20293
20294 * server.c (handle_v_run): Always use the supplied argument list.
20295
d0107bb6 202962008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20297
d0107bb6
BW
20298 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20299 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20300
2c4ad781
TJB
203012008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20302
20303 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20304 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20305 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20306 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20307 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20308 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20309 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20310 XML target descriptions.
20311 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20312 when inferior is running on an ISA 2.05 or later processor. Add
20313 special case to return offset for full 64-bit slot of FPSCR when
20314 in 32-bits.
20315
dfb64f85
DJ
203162008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20317
20318 * Makefile.in (SFILES, clean): Added sparc64 files.
20319 (reg-sparc64.o, reg-sparc64.c): New.
20320 * configure.srv (sparc*-*-linux*): New configuration.
20321 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20322 syscall arguments for SPARC.
20323 (regsets_store_inferior_registers): Likewise.
20324 * linux-sparc-low.c: New file.
20325
66b6e1dd
DE
203262008-10-21 Doug Evans <dje@google.com>
20327
20328 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20329 (READLINE_DIR,READLINE_DEP): Delete.
20330 (INTERNAL_CFLAGS): Update.
20331 (LINTFLAGS): Update.
20332
9b710a42
PA
203332008-10-10 Pedro Alves <pedro@codesourcery.com>
20334
20335 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20336 whole argv from the last run, not just argv[0].
20337
5822d809
PA
203382008-09-08 Pedro Alves <pedro@codesourcery.com>
20339
20340 * regcache.c (new_register_cache): Return NULL if the register
20341 cache size isn't known yet.
20342 (free_register_cache): Avoid dereferencing a NULL regcache.
20343
74aac56f
DJ
203442008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20345
20346 * configure.srv: Merge MIPS and MIPS64.
20347
400b20f5
MR
203482008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20349
20350 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20351
677c5bb1
LM
203522008-08-18 Luis Machado <luisgpm@br.ibm.com>
20353
20354 * Makefile.in: Add required vsx dependencies.
20355
20356 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20357 Declare init_registers_powerpc_vsx32l.
20358 Declare init_registers_powerpc_vsx64l.
20359 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20360 (ppc_arch_setup): Check for VSX in hwcap.
20361 (ppc_fill_vsxregset): New function.
20362 (ppc_store_vsxregset): New function.
20363 Add new VSX entry in regset_info target_regsets.
20364
20365 * configure.srv: Add new VSX dependencies.
20366
a6f3e723
SL
203672008-08-12 Pedro Alves <pedro@codesourcery.com>
20368
20369 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20370 (remote_open): Set or clear transport_is_reliable.
20371 (putpkt_binary): Don't expect acks in noack mode.
20372 (getpkt): Don't send ack/nac in noack mode.
20373 * server.c (handle_general_set): Handle QStartNoAckMode.
20374 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20375 qSupported.
20376 (main): Reset noack_mode on every connection.
20377 * server.h (noack_mode): Declare.
20378
a417dc56
RW
203792008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20380
20381 * Makefile.in (GDBREPLAY_OBS): New variable.
20382 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20383
3221518c
UW
203842008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20385 Daniel Jacobowitz <dan@codesourcery.com>
20386
20387 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20388 (usr_store_inferior_registers): Likewise.
20389 (regsets_store_inferior_registers): Likewise.
20390
ec56be1b
PA
203912008-07-31 Rolf Jansen <rj@surtec.com>
20392 Pedro Alves <pedro@codesourcery.com>
20393
20394 * configure.ac: Check for memmem declaration.
20395 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20396 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20397 (disable_packet_qfThreadInfo): Unconditionally compile.
20398 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20399 * configure, config.in: Regenerate.
20400
2fe5e3ff
DE
204012008-07-28 Doug Kwan <dougkwan@google.com>
20402
20403 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20404 (linux_write_memory): Remove declaration of errno.
20405
836acd6d
UW
204062008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20407
20408 * linux-low.c (handle_extended_wait): Do not use "status"
20409 variable uninitialized.
20410
aeba519e
PA
204112008-07-07 Pedro Alves <pedro@codesourcery.com>
20412
20413 * server.c (handle_v_attach): Inhibit reporting dll changes.
20414
db42f210
PA
204152008-06-27 Pedro Alves <pedro@codesourcery.com>
20416
20417 * remote-utils.c (prepare_resume_reply): If requested, don't
20418 output "thread:TID" in the T stop reply.
20419
20420 * server.c (disable_packet_vCont, disable_packet_Tthread)
20421 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20422 (handle_query): If requested, disable support for qC, qfThreadInfo
20423 and qsThreadInfo.
20424 (handle_v_requests): If requested, disable support for vCont.
20425 (gdbserver_show_disableable): New.
20426 (main): Handle --disable-packet and --disable-packet=LIST.
20427
20428 * server.h (disable_packet_vCont, disable_packet_Tthread)
20429 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20430
8e4c5421
CD
204312008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20432
20433 * server.c (gdbserver_usage): Mention --version.
20434
6e23a804
DJ
204352008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20436
20437 * Makefile.in (gdbreplay.o): New rule.
20438
90aa6a40
JM
204392008-06-06 Joseph Myers <joseph@codesourcery.com>
20440
20441 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20442 message, not gdbserver.
20443
c16158bc 204442008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20445 Nathan Sidwell <nathan@codesourcery.com>
20446 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20447
20448 * acinclude.m4: Include ../../config/acx.m4.
20449 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20450 * configure, config.in: Regenerate.
20451 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20452 * server.c (gdbserver_version): Print PKGVERSION.
20453 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20454 (main): Adjust gdbserver_usage calls.
20455 * gdbreplay.c (version, host_name): Add declarations.
20456 (gdbreplay_version, gdbreplay_usage): New.
20457 (main): Accept --version and --help options.
20458
aeb75bf5
DJ
204592008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20460
20461 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20462 (arm_breakpoint_at): Handle Thumb.
20463 (the_low_target): Add comment.
20464
76b233dd
UW
204652008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20466
20467 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20468
08388c79
DE
204692008-05-09 Doug Evans <dje@google.com>
20470
a3c83fae
DE
20471 * server.h (decode_search_memory_packet): Declare.
20472 * remote-utils.c (decode_search_memory_packet): New fn.
20473 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20474 (handle_search_memory): New fn.
20475 (handle_query): Process qSearch:memory packets.
20476
bb9c3d36
UW
204772008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20478
20479 * regcache.c (registers_length): Remove.
20480 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20481 full register packet.
20482 * regcache.h (registers_length): Remove prototype.
20483 * server.h (PBUFSIZ): Define to 16384.
20484
7284e1be
UW
204852008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20486
20487 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20488 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20489 powerpc-64l.o, and powerpc-altivec64l.o.
20490 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20491 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20492 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20493 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20494 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20495 to srv_xmlfiles.
20496
20497 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20498 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20499 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20500 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20501 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20502 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20503 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20504 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20505 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20506 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20507 (clean): Update.
20508
20509 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20510 (init_registers_powerpc_32l): ... this new prototype.
20511 (init_registers_powerpc_32): Remove, replace by ...
20512 (init_registers_powerpc_altivec32l): ... this new prototype.
20513 (init_registers_powerpc_e500): Remove, replace by ...
20514 (init_registers_powerpc_e500l): ... this new prototype.
20515 (init_registers_ppc64): Remove, replace by ...
20516 (init_registers_powerpc_64l): ... this new prototype.
20517 (init_registers_powerpc_64): Remove, replace by ...
20518 (init_registers_powerpc_altivec64l): ... this new prototype.
20519 (ppc_num_regs): Set to 73.
20520 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20521 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20522 (ppc_cannot_store_register): Handle orig_r3 and trap.
20523 (ppc_arch_setup): Update init_registers_... calls.
20524 (ppc_fill_gregset): Handle orig_r3 and trap.
20525
20526 * inferiors.c (clear_inferiors): Reset current_inferior.
20527
fdc59709
PB
205282008-04-23 Paolo Bonzini <bonzini@gnu.org>
20529
889bf7c5
PA
20530 * acinclude.m4: Add override.m4.
20531 * configure: Regenerate.
fdc59709 20532
c9b2f845
UW
205332008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20534
20535 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20536 initial call to init_register_ppc64.
20537
550512b8
UW
205382008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20539
43aaf8b6
PA
20540 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20541 single powerpc*-*-linux* case.
550512b8
UW
20542 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20543
b6430ec3
UW
205442008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20545
20546 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20547 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20548 from reg_xmlfiles.
20549 * linux-ppc-low.c: Include <elf.h>.
20550 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20551 (ppc_hwcap): New global variable.
20552 (ppc_regmap): Remove __SPE__ #ifdef sections.
20553 (ppc_regmap_e500): New global variable.
20554 (ppc_cannot_store_register): Update __SPE__ special case.
20555 (ppc_get_hwcap): New function.
20556 (ppc_arch_setup): Use it to determine whether inferior supports
20557 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20558 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20559 Do not access registers if target does not support AltiVec.
20560 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20561 Do not access registers if target does not support SPE.
20562 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20563
52fa2412
UW
205642008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20565
20566 * linux-low.c (disabled_regsets, num_regsets): New.
20567 (use_regsets_p): Delete.
20568 (linux_wait_for_process): Clear disabled_regsets.
20569 (regsets_fetch_inferior_registers): Check and set it.
20570 (regsets_store_inferior_registers): Likewise.
20571 (linux_fetch_registers, linux_store_registers): Do not use
20572 use_regsets_p.
20573 (initialize_low): Allocate disabled_regsets.
20574
e28b3332
DJ
205752008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20576
20577 * Makefile.in (LIBOBJS): New.
20578 (OBS): Use LIBOBJS.
20579 (memmem.o): New rule.
20580 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20581 * configure: Regenerated.
20582
4536995d
UW
205832008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20584
20585 * server.c (handle_query): Never return "unsupported" for
20586 qXfer:features:read queries.
20587
221c031f
UW
205882008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20589
20590 * server.c (get_features_xml): Fix inverted condition.
20591 (handle_query): Always support qXfer:feature:read.
20592
ccd213ac
DJ
205932008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20594
20595 * server.c (wrapper_argv): New.
20596 (start_inferior): Handle wrapper_argv. If set, expect an extra
20597 trap.
20598 (gdbserver_usage): Document --wrapper.
20599 (main): Parse --wrapper.
20600
6fe305f7
UW
206012008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20602
20603 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20604 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20605 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20606 (ppc_set_pc): Likewise.
20607 (ppc_arch_setup): New function.
20608 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20609 of collect_register.
889bf7c5 20610 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20611
5b0a002e
UW
206122008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20613
20614 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20615 instead of linux-ppc64-low.o.
20616 * linux-ppc64-low.c: Remove file.
20617 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20618 (linux-ppc64-low.o): Remove rule.
20619
20620 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20621 (init_registers_powerpc_64): Likewise.
20622 (ppc_regmap): Conditionally define depending on __powerpc64__.
20623 (ppc_cannot_store_register): Do not special-case "fpscr" when
20624 compiled on __powerpc64__.
20625 (ppc_collect_ptrace_register): New function.
20626 (ppc_supply_ptrace_register): New function.
20627 (ppc_breakpoint): Change type to "unsigned int".
20628 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20629 (the_low_target): Conditionally provide initializers for the
889bf7c5 20630 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20631 collect_ptrace_register and supply_ptrace_register members.
20632
9b4b61c8
UW
206332008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20634
20635 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20636 * server.c (gdbserver_xmltarget): Define.
20637 (get_features_xml): Use it to replace "target.xml" and arch_string.
20638
20639 * configure.srv: Remove srv_xmltarget. Add XML files that were
20640 mentioned there to srv_xmlfiles instead. Remove conditional tests
20641 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20642 srv_xmlfiles and srv_regobj to include all possible choices.
20643 * configure.ac (srv_xmltarget): Remove.
20644 (srv_xmlfiles): Do not add "target.xml".
20645 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20646 checks for supplementary target information.
20647 * configure: Regenerate.
20648 * Makefile.in (XML_TARGET): Remove.
20649 (target.xml): Remove rule.
20650 (clean): Do not clean up target.xml.
20651 (.PRECIOUS): Do not mention target.xml.
20652
20653 * target.h (struct target_ops): Remove arch_string member.
20654 * linux-low.c (linux_arch_string): Remove.
20655 (linux_target_ops): Remove arch_string initializer.
20656 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20657 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20658 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20659 * spu-low.c (spu_arch_string): Remove.
20660 (spu_target_ops): Remove arch_string initializer.
20661 * win32-low.c (win32_arch_string): Remove.
20662 (win32_target_ops): Remove arch_string initializer.
20663 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20664 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20665 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20666
ee1a7ae4
UW
206672008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20668
20669 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20670 by collect_ptrace_register and supply_ptrace_register hooks.
20671 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20672 instead of checking for the_low_target.left_pad_xfer.
20673 (usr_store_inferior_registers): Use collect_ptrace_register callback
20674 instead of checking for the_low_target.left_pad_xfer.
20675
20676 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20677 (s390_supply_ptrace_register): Likewise.
20678 (s390_fill_gregset): Call s390_collect_ptrace_register.
20679 (the_low_target): Update.
20680
20681 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20682 (ppc_supply_ptrace_register): Likewise.
20683 (the_low_target): Update.
20684
20685 * linux-i386-low.c (the_low_target): Update.
20686 * linux-x86-64-low.c (the_low_target): Update.
20687
d61ddec4
UW
206882008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20689
20690 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20691 reg-s390.o and reg-s390x.o.
20692
20693 * linux-low.c (new_inferior): New global variable.
20694 (linux_create_inferior, linux_attach): Set it.
20695 (linux_wait_for_process): Call the_low_target.arch_setup after the
20696 target has stopped for the first time.
20697 (initialize_low): Do not call the_low_target.arch_setup.
20698
20699 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20700 (s390_set_pc): Likewise.
20701 (s390_arch_setup): New function.
20702 (the_low_target): Use s390_arch_setup as arch_setup routine.
20703
20704 * regcache.c (realloc_register_cache): New function.
20705 (set_register_cache): Call it for each existing regcache.
20706
d05b4ac3
UW
207072008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20708
20709 * server.h (init_registers): Remove prototype.
20710
20711 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20712 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20713 instead of init_registers ().
20714 * linux-arm-low.c (init_registers_arm): Add prototype.
20715 (init_registers_arm_with_iwmmxt): Likewise.
20716 (the_low_target): Add initializer for arch_setup field.
20717 * linux-cris-low.c (init_registers_cris): Add prototype.
20718 (the_low_target): Add initializer for arch_setup field.
20719 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20720 (the_low_target): Add initializer for arch_setup field.
20721 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20722 (the_low_target): Add initializer for arch_setup field.
20723 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20724 (the_low_target): Add initializer for arch_setup field.
20725 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20726 (the_low_target): Add initializer for arch_setup field.
20727 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20728 (the_low_target): Add initializer for arch_setup field.
20729 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20730 (init_registers_mips64_linux): Likewise.
20731 (the_low_target): Add initializer for arch_setup field.
20732 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20733 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20734 (the_low_target): Add initializer for arch_setup field.
20735 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20736 (init_registers_powerpc_64): Likewise.
20737 (the_low_target): Add initializer for arch_setup field.
20738 * linux-s390-low.c (init_registers_s390): Add prototype.
20739 (init_registers_s390x): Likewise.
20740 (the_low_target): Add initializer for arch_setup field.
20741 * linux-sh-low.c (init_registers_sh): Add prototype.
20742 (the_low_target): Add initializer for arch_setup field.
20743 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20744 (the_low_target): Add initializer for arch_setup field.
20745 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20746 (the_low_target): Add initializer for arch_setup field.
20747
20748 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20749 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20750 instead of init_registers ().
20751 * win32-arm-low.c (init_registers_arm): Add prototype.
20752 (the_low_target): Add initializer for arch_setup field.
20753 * win32-i386-low.c (init_registers_i386): Add prototype.
20754 (the_low_target): Add initializer for arch_setup field.
20755
20756 * spu-low.c (init_registers_spu): Add prototype.
20757 (initialize_low): Call initialie_registers_spu () instead of
20758 initialize_registers ().
20759
fd96d250
PA
207602008-02-19 Pedro Alves <pedro@codesourcery.com>
20761
20762 * server.c (handle_v_requests): When handling the vRun and vAttach
20763 packets, if already debugging a process, don't kill it. Return an
20764 error instead.
20765
d41b6bb4
DJ
207662008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20767
20768 * server.c (handle_query): Correct length check.
20769
5ac588cf
PA
207702008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20771
20772 * win32-low.c (do_initial_child_stuff): Add process handle
20773 parameter. Set current_process_handle and current_process_id from the
20774 parameters. Clear globals.
20775 (win32_create_inferior): Don't set current_process_handle and
20776 current_process_id here. Instead pass them on the call to
20777 do_initial_child_stuff.
20778 (win32_attach): Likewise.
20779 (win32_clear_inferiors): New.
20780 (win32_kill): Don't close the current process handle or the
20781 current thread handle here. Instead call win32_clear_inferiors.
20782 (win32_detach): Don't open a new handle to the process. Call
20783 win32_clear_inferiors.
20784 (win32_join): Don't rely on current_process_handle; open a new
20785 handle using the process id.
20786 (win32_wait): Call win32_clear_inferiors when the inferior process
20787 has exited.
20788
ecd7ecbc
DJ
207892008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20790
20791 * server.c (monitor_show_help): Add "exit".
20792
1525d545
MG
207932008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20794
ecd7ecbc 20795 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20796 (clean): Add reg-xtensa.c.
20797 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20798 * configure.srv (xtensa*-*-linux*) New target.
20799 * linux-xtensa-low.c: New.
20800 * xtensa-xtregs.c: New.
1525d545 20801
59a016f0
PA
208022008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20803
20804 * hostio.c: Don't include errno.h.
20805 (errno_to_fileio_errno): Move to hostio-errno.
20806 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20807 error number outputting to the target->hostio_last_error callback.
20808 (hostio_packet_error): Use FILEIO_EINVAL directly.
20809 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20810 calls to hostio_error.
20811 * hostio-errno.c: New.
20812 * server.h (hostio_last_error_from_errno): Declare.
20813 * target.h (target_ops): Add hostio_last_error member.
20814 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20815 as hostio_last_error handler.
889bf7c5 20816 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20817 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20818 (wince_hostio_last_error): New functions.
20819 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20820 as hostio_last_error handler.
20821 (win32_target_ops) [!_WIN32_WCE]: Register
20822 hostio_last_error_from_errno as hostio_last_error handler.
20823 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20824 (hostio-errno.o): New rule.
20825 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20826 * configure.srv (srv_hostio_err_objs): New variable. Default to
20827 hostio-errno.o.
20828 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20829 * configure: Regenerate.
20830
2d717e4f
DJ
208312008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20832
20833 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20834 (linux_kill, linux_detach): Clean up the process list.
20835 * remote-utils.c (remote_open): Improve port number parsing.
20836 (putpkt_binary, input_interrupt): Only send interrupts if the target
20837 is running.
20838 * server.c (extended_protocol): Make static.
20839 (attached): Define earlier.
20840 (exit_requested, response_needed, program_argv): New variables.
20841 (target_running): New.
20842 (start_inferior): Clear attached here.
20843 (attach_inferior): Set attached here.
20844 (require_running): Define.
20845 (handle_query): Use require_running and target_running. Implement
20846 "monitor exit".
20847 (handle_v_attach, handle_v_run): New.
20848 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20849 (gdbserver_usage): Update.
20850 (main): Redo argument parsing. Handle --debug and --multi. Handle
20851 --attach along with other options or after the port. Save
20852 program_argv. Support no initial program. Resynchronize
20853 communication with GDB after an error. Handle "monitor exit".
20854 Use require_running and target_running. Always allow the extended
20855 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20856 restart in extended mode.
20857 * README: Refer to the GDB manual. Update --attach usage.
20858
7407e2de
AS
208592007-12-20 Andreas Schwab <schwab@suse.de>
20860
20861 * linux-low.c (STACK_SIZE): Define.
20862 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20863 (linux_test_for_tracefork): Likewise.
20864
b65d95c5
DJ
208652007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20866
20867 * linux-low.c (linux_wait_for_event): Update messages. Do not
20868 reinsert auto-delete breakpoints.
20869 * mem-break.c (struct breakpoint): Change return type of handler to
20870 int.
20871 (set_breakpoint_at): Update handler type.
20872 (reinsert_breakpoint_handler): Return 1 instead of calling
20873 delete_breakpoint.
20874 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20875 setting a new one.
20876 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20877 * mem-break.h (set_breakpoint_at): Update handler type.
20878 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20879 * win32-low.c (auto_delete_breakpoint): New.
20880 (get_child_debug_event): Use it.
20881
4e799345
DJ
208822007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20883
20884 * configure.ac: Check for pread and pwrite.
20885 * hostio.c (handle_pread): Fall back to lseek and read.
20886 (handle_pwrite): Fall back to lseek and write.
20887 * config.in, configure: Regenerated.
20888
27524b67
DJ
208892007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20890
20891 * server.c (myresume): Add own_buf argument.
20892 (main): Update calls.
20893
a20d5e98
DJ
208942007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20895
20896 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20897 * remote-utils.c (remote_open): Do not call disable_async_io.
20898 (block_async_io): Delete.
20899 (unblock_async_io): Make static.
20900 (initialize_async_io): New.
20901 * server.c (handle_v_cont): Handle async I/O here.
20902 (myresume): Likewise. Move other common resume tasks here...
20903 (main): ... from here. Call initialize_async_io. Disable async
20904 I/O before the main loop.
20905 * server.h (initialize_async_io): Declare.
20906 (block_async_io, unblock_async_io): Delete prototypes.
20907 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20908
b79d787e
DJ
209092007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20910
20911 * remote-utils.c (readchar): Allow binary data in received messages.
20912
d97903b2
PA
209132007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20914
20915 * win32-low.c (attaching): New global.
20916 (win32_create_inferior): Clear the `attaching' global.
20917 (win32_attach): Set the `attaching' global.
20918 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20919 attaching. Only set a breakpoint at the entry point if not
20920 attaching.
20921
311de423
PA
209222007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20923
20924 * server.c (main): Don't report dll events on the initial
20925 connection on attaches.
20926
6c2d16d2
PA
209272007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20928
20929 * server.c (main): Relax numerical bases supported for the pid of
20930 the --attach command line argument.
20931
5ca906e6
PA
209322007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20933
20934 * win32-low.c (win32_attach): Call OpenProcess before
20935 DebugActiveProcess, not after. Add last error output to error
20936 call.
20937
9c6c8194
PA
209382007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20939
20940 * win32-low.c (win32_get_thread_context)
20941 (win32_set_thread_context): New functions.
20942 (thread_rec): Use win32_get_thread_context.
20943 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20944 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20945 field.
20946
4d5d1aaa
PA
209472007-12-03 Leo Zayas
20948 Pedro Alves <pedro_alves@portugalmail.pt>
20949
20950 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20951 global variables.
20952 (child_add_thread): Minor cleanup.
20953 (child_continue): Resume artificially suspended threads before
20954 calling ContinueDebugEvent.
20955 (suspend_one_thread): New.
20956 (fake_breakpoint_event): New.
20957 (get_child_debug_event): Change return type to int. Check here if
20958 gdb sent an interrupt request. If a soft interrupt was requested,
20959 fake a breakpoint event. Return 0 if there is no event to handle,
20960 and 1 otherwise.
20961 (win32_wait): Don't check here if gdb sent an interrupt request.
20962 Ensure there is a valid event to handle.
20963 (win32_request_interrupt): Add soft interruption method as last
20964 resort.
20965
c436e841
PA
209662007-12-03 Leo Zayas
20967 Pedro Alves <pedro_alves@portugalmail.pt>
20968
20969 * win32-low.h (win32_thread_info): Add descriptions to the
20970 structure members. Replace `suspend_count' counter by a
20971 `suspended' flag.
20972 * win32-low.c (thread_rec): Update condition of when to get the
20973 context from the inferior. Rely on ContextFlags being set if it
20974 has already been retrieved. Only suspend the inferior thread if
20975 we haven't already. Warn if that fails.
20976 (continue_one_thread): s/suspend_count/suspended/. Only call
20977 ResumeThread once. Warn if that fails.
20978
e7b5fa67
PA
209792007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20980
20981 * win32-low.c (win32_wait): Don't read from the inferior when it
20982 has already exited.
20983
a385171d
PA
209842007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20985
20986 * Makefile.in (win32_low_h): New variable.
20987 (win32-low.o): Add dependency on $(win32_low_h).
20988 (win32-arm-low.o, win32-i386-low.o): New rules.
20989
f80c84b3
DJ
209902007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20991
20992 * hostio.c: Correct copyright year.
20993
a6b151f1
DJ
209942007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20995
20996 * Makefile.in (OBS): Add hostio.o.
20997 (hostio.o): New rule.
20998 * server.h (handle_vFile): Declare.
20999 * hostio.c: New file.
21000 * server.c (handle_v_requests): Take packet_len and new_packet_len
21001 for binary packets. Call handle_vFile.
21002 (main): Update call to handle_v_requests.
21003
f9387fc3
DJ
210042007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21005
21006 * linux-low.c: Include <sched.h>.
21007
51c2684e
DJ
210082007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21009
21010 * linux-low.c (linux_tracefork_grandchild): New.
21011 (linux_tracefork_child): Use clone.
21012 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21013
75f83163
JB
210142007-10-31 Joel Brobecker <brobecker@adacore.com>
21015
21016 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21017
da5898ce
DJ
210182007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21019
21020 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21021
24a09b5f
DJ
210222007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21023
21024 * inferiors.c (change_inferior_id): Delete.
21025 (add_pid_to_list, pull_pid_from_list): New.
21026 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21027 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21028 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21029 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21030 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21031 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21032 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21033 (using_threads): Always set to 1.
21034 (handle_extended_wait): New.
21035 (add_process): Do not set TID.
21036 (linux_create_inferior): Set must_set_ptrace_flags.
21037 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21038 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21039 (linux_thread_alive): Rename TID argument to LWPID.
21040 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21041 (linux_wait_for_event): Do not use TID or check using_threads. Update
21042 call to dead_thread_notify. Call handle_extended_wait.
21043 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21044 (send_sigstop): Delete sigstop_sent.
21045 (wait_for_sigstop): Avoid TID.
21046 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21047 (linux_test_for_tracefork): New.
21048 (linux_lookup_signals): Use thread_db_active and
21049 linux_supports_tracefork_flag.
21050 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21051 * linux-low.h (get_process_thread): Avoid TID.
21052 (struct process_ifo): Move thread_known and tid to the end. Remove
21053 sigstop_sent.
21054 (linux_attach_lwp, thread_db_init): Update prototypes.
21055 * server.h (change_inferior_id): Delete prototype.
21056 (add_pid_to_list, pull_pid_from_list): New prototypes.
21057 * thread-db.c (thread_db_use_events): New.
21058 (find_first_thread): Rename to...
21059 (find_one_thread): ...this. Update callers and messages. Do not
21060 call fatal. Check thread_db_use_events. Do not call
21061 change_inferior_id or new_thread_notify.
21062 (maybe_attach_thread): Update. Do not call new_thread_notify.
21063 (thread_db_init): Set thread_db_use_events. Check use_events.
21064 * utils.c (fatal, warning): Correct message prefix.
21065
30ed0a8f
DJ
210662007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21067
21068 * Makefile.in (clean): Remove new files.
21069 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21070 (powerpc-64.o, powerpc-64.c): New rules.
21071 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21072 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21073 with SPE.
21074 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21075 SPE targets.
21076 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21077 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21078 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21079 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21080 (target_regsets): Add AltiVec and SPE register sets.
21081 * configure.ac: Check for AltiVec and SPE.
21082 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21083 (ppc_fill_vrregset, ppc_store_vrregset): New.
21084 (target_regsets): Add AltiVec register set.
21085 * configure: Regenerated.
21086
fd462a61
DJ
210872007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21088
21089 * linux-low.c (O_LARGEFILE): Define.
21090 (linux_read_memory): Use /proc/PID/mem.
21091 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21092 * configure, config.in: Regenerated.
21093
69f223ed
DJ
210942007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21095
21096 * linux-low.c (linux_wait_for_event): Do not pass signals while
21097 single-stepping.
21098
aec18585
PA
210992007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21100
21101 * win32-low.c (create_process): New.
21102 (win32_create_inferior): Use create_process instead of
21103 CreateProcess. If create_process failed retry appending an ".exe"
21104 suffix. Store the GetLastError result immediatelly after
21105 create_process calls and use it on the call to error.
21106
34d86ddd
PA
211072007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21108
21109 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21110
5a0e3bd0
JB
211112007-08-23 Joel Brobecker <brobecker@adacore.com>
21112
21113 * configure.ac: Switch license to GPLv3.
21114
f88c79e6
MS
211152007-08-01 Michael Snyder <msnyder@access-company.com>
21116
21117 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21118
6b3d9b83
PA
211192007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21120
21121 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21122 typedef.
21123 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21124 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21125 CloseToolhelp32Snapshot.
21126 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21127 CloseToolhelp32Snapshot.
21128
c588c53c
MS
211292007-07-27 Michael Snyder <michael.snyder@access-company.com>
21130
21131 * server.c (main): Check for inferior exit before main loop.
21132
aa0403d9
PA
211332007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21134
21135 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21136 instead of on tmp_desc.
21137
255e7678
DJ
211382007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21139 Daniel Jacobowitz <dan@codesourcery.com>
21140
21141 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21142 (add_thread): Minor cleanups.
21143 (clear_inferiors): Move lower in the file. Clear the DLL
21144 list.
21145 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21146 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21147 (xml_escape_text): New.
21148 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21149 for qSupported.
21150 (handle_v_cont): Report errors.
21151 (gdbserver_version): Update.
21152 (main): Correct size of own_buf. Do not report initial DLL events.
21153 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21154 (unloaded_dll, xml_escape_text): New.
21155 * win32-low.c (enum target_waitkind): Update comments.
21156 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21157 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21158 (win32_EnumProcessModules, win32_GetModuleInformation)
21159 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21160 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21161 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21162 (win32_Module32First, win32_Module32Next, load_toolhelp)
21163 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21164 (get_child_debug_event): Handle DLL events.
21165 (win32_wait): Likewise.
21166
0d37add9
DJ
211672007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21168
21169 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21170 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21171
45e2715e
PA
211722007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21173
21174 * win32-low.c (handle_output_debug_string): Ignore event if not
21175 waiting.
21176
c5674cf1
PA
211772007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21178
21179 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21180
2bbe3cc1
DJ
211812007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21182
21183 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21184
ae13219e
DJ
211852007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21186
21187 * inferiors.c (change_inferior_id): Add comment.
21188 * linux-low.c (check_removed_breakpoint): Add an early
21189 prototype. Improve debug output.
21190 (linux_attach): Doc update.
21191 (linux_detach_one_process, linux_detach): Clean up before releasing
21192 each process.
21193 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21194 * linux-low.h (struct process_info): Doc improvement.
21195 * mem-break.c (delete_all_breakpoints): New.
21196 * mem-break.h (delete_all_breakpoints): New prototype.
21197 * thread-db.c (find_first_thread): New.
21198 (thread_db_create_event): Call it instead of
21199 thread_db_find_new_threads. Clean up unused variables.
21200 (maybe_attach_thread): Remove first thread handling.
21201 (thread_db_find_new_threads): Use find_first_thread.
21202 (thread_db_get_tls_address): Likewise.
21203
4105de34
DJ
212042007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21205
21206 * thread-db.c (thread_db_find_new_threads): Add prototype.
21207 (thread_db_create_event): Check for the main thread before adding
21208 a new thread.
21209 (maybe_attach_thread): Only enable event reporting if TID == 0.
21210 (thread_db_get_tls_address): Check for new threads.
21211
2b876972
DJ
212122007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21213
21214 * linux-low.c (linux_create_inferior): Try execv before execvp.
21215 * spu-low.c (spu_create_inferior): Likewise.
21216
7a245884
DJ
212172007-06-13 Mike Frysinger <vapier@gentoo.org>
21218
21219 * linux-low.c (linux_create_inferior): Change execv to execvp.
21220 * spu-low.c (spu_create_inferior): Likewies.
21221
117ce543
DJ
212222007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21223
21224 * Makefile.in (clean): Clean new files instead of deleted ones.
21225 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21226 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21227 rules.
21228 * configure.srv: Specify XML files and new regformats for MIPS and
21229 MIPS64 GNU/Linux.
21230 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21231 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21232 an entry for the restart register.
21233 (mips_cannot_fetch_register, mips_cannot_store_register)
21234 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21235 register names to match the XML descriptions.
21236 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21237 restart register instead of $0.
21238
0e7f50da
UW
212392007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21240 Markus Deuling <deuling@de.ibm.com>
21241
21242 * remote-utils.c (decode_xfer_write): New function.
21243 * server.h (decode_xfer_write): Add prototype.
21244 * server.c (handle_query): Add PACKET_LEN argument. Support
21245 qXfer:spu:read and qXfer:spu:write packets.
21246 (main): Pass packet_len to handle_query.
21247 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21248 * target.h (target_ops): Add qxfer_spu.
21249
374c1d38
UW
212502007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21251
21252 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21253 accessing non-seekable spufs files.
21254
bb63802a
UW
212552007-05-16 Markus Deuling <deuling@de.ibm.com>
21256
889bf7c5 21257 * server.c (handle_query): Add reply for qC packet.
bb63802a 21258
7390519e
PA
212592007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21260 Leo Zayas <lerele@champenstudios@com>
21261
21262 * server.h (check_remote_input_interrupt_request): New function.
21263 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21264 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21265 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21266 (check_remote_input_interrupt_request): New function.
21267 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 21268 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
21269 winapi_GenerateConsoleCtrlEvent): New typedefs.
21270 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21271 to 250 ms.
21272 (win32_wait): Check for remote interrupt request
21273 with check_remote_input_interrupt_request.
21274 (win32_request_interrupt): New function.
21275 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21276
34b34921
PA
212772007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21278
21279 * win32-low.c (debug_registers_changed,
21280 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21281 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21282 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21283 (thread_rec): Get context using the low target.
21284 (child_add_thread): Call thread_added on the low target,
21285 which does the same thing.
21286 (regptr): Delete.
21287 (do_initial_child_stuff): Remove debug registers references.
21288 Set context using the low target. Resume threads after
21289 setting the contexts.
21290 (child_continue): Remove dead variable. Remove debug
21291 registers references.
21292 (child_fetch_inferior_registers): Go through the low target.
21293 (do_child_store_inferior_registers): Remove.
21294 (child_store_inferior_registers): Go through the low target.
21295 (win32_resume): Remove debug registers references.
21296 Set context using the low target.
21297 (handle_exception): Change return type to void. Don't record
21298 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21299 first chance exception.
889bf7c5 21300 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21301 goto loop. Always return after waiting for debug event.
21302 (win32_wait): Convert to switch statement. Handle spurious
21303 events.
21304
21305 * win32-i386-low.c (debug_registers_changed,
21306 debug_registers_used): New.
21307 (initial_stuff): Rename to ...
21308 (i386_initial_stuff): ... this. Clear debug registers
21309 state variables.
21310 (store_debug_registers): Delete.
21311 (i386_get_thread_context): New.
21312 (load_debug_registers): Delete.
21313 (i386_set_thread_context): New.
21314 (i386_thread_added): New.
21315 (single_step): Rename to ...
21316 (i386_single_step): ... this.
21317 (do_fetch_inferior_registers): Rename to ...
21318 (i386_fetch_inferior_register): ... this.
21319 (i386_store_inferior_register): New.
21320 (the_low_target): Adapt to new interface.
21321
21322 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21323 (arm_get_thread_context): New.
21324 (arm_set_thread_context): New.
21325 (regptr): New.
21326 (do_fetch_inferior_registers): Rename to ...
21327 (arm_fetch_inferior_register): ... this.
21328 (arm_store_inferior_register): New.
21329 (arm_wince_breakpoint): Reimplement as unsigned long.
21330 (arm_wince_breakpoint_len): Define.
21331 (the_low_target): Adapt to new interface.
21332
21333 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21334 load_debug_registers. Add get_thread_context, set_thread_context,
21335 thread_added and store_inferior_register. Rename
21336 fetch_inferior_registers to fetch_inferior_register.
21337 (regptr): Remove declaration.
21338
dd6953e1
PA
213392007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21340
21341 * linux-low.c (linux_detach): Change return type to int. Return 0.
21342 * spu-low.c (spu_detach): Likewise.
21343
444d6139
PA
213442007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21345
21346 * target.h (target_ops): Change return type of detach to int.
21347 Add join.
21348 (join_inferior): New.
21349 * server.c (main): Don't skip detach support on mingw32.
21350 If the inferior doesn't support detaching return error.
21351 Call join_inferior instead of using waitpid.
21352 * linux-low.c (linux_join): New.
21353 (linux_target_op): Add linux_join.
21354 * spu-low.c (spu_join): New.
21355 (spu_target_ops): Add spu_join.
21356 * win32-low.c (win32_detach): Adapt to new interface.
21357 Reopen current_process_handle before detaching. Issue a child
21358 resume before detaching.
21359 (win32_join): New.
21360 (win32_target_op): Add win32_join.
21361
1d5315fe
PA
213622007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21363
21364 * win32-low.c (win32-attach): Fix return value.
21365 * target.h (target_ops): Describe ATTACH return values.
21366
bf914831
PA
213672007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21368
21369 * win32-low.c (GETPROCADDRESS): Define.
21370 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21371 (winapi_DebugSetProcessKillOnExit): Likewise.
21372 (win32_create_inferior): Force usage of ansi CreateProcessA.
21373 (win32_attach): Use GETPROCADDRESS.
21374 (win32_detach): Likewise.
21375
f72f3e60
PA
213762007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21377
21378 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21379
ed50f18f
PA
213802007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21381
21382 * win32-low.c: Commit leftover changes from 2007-03-29.
21383
0c2ead7e
DJ
213842007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21385
21386 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21387 fields short instead of int. Add explicit padding.
21388 (i387_cache_to_fsave): Remove unnecessary casts.
21389 (i387_fsave_to_cache): Doc fix.
21390 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21391
73725ff3
DJ
213922007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21393
21394 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21395 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21396
d99f33d8
PA
213972007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21398
21399 * configure.srv (arm*-*-mingw32ce*): Move near the other
21400 arm targets.
21401
68070c10
PA
214022007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21403
2482afc6 21404 * configure.ac: Add errno checking.
68070c10
PA
21405 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21406 sys/file.h and malloc.h.
21407 (AC_CHECK_DECLS): Add perror.
21408 (srv_mingwce): Handle.
2482afc6 21409 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21410 win32-i386-low.o to srv_tgtobj.
21411 (i[34567]86-*-mingw*): Likewise.
21412 (arm*-*-mingw32ce*): Add case.
21413 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21414 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21415 [__MINGW32CE__] (strerror): New function.
21416 [__MINGW32CE__] (errno): Define to GetLastError.
21417 [__MINGW32CE__] (COUNTOF): New macro.
21418 (remote_open): Remove extra close call.
21419 * mem-break.c (delete_breakpoint_at): New function.
21420 * mem-break.h (delete_breakpoint_at): Declare.
21421 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21422 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21423 [USE_WIN32API] (read, write): Add char* casts.
21424 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21425 * server.h: Include wincecompat.h on Windows CE.
21426 [HAVE_ERRNO_H]: Check.
21427 (perror): Declare if not declared.
21428 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21429 (perror_with_name): Remove errno declaration.
21430 * wincecompat.h: New.
21431 * wincecompat.c: New.
21432 * win32-low.h: New.
21433 * win32-arm-low.c: New.
21434 * win32-i386-low.c: New.
21435 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21436 (OUTMSG2): Make it safe.
21437 (_T): New macro.
21438 (COUNTOF): New macro.
21439 (NUM_REGS): Get it from the low target.
21440 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21441 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21442 (thread_rec): Let low target handle debug registers.
21443 (child_add_thread): Likewise.
21444 (child_init_thread_list): Likewise.
21445 (continue_one_thread): Likewise.
21446 (regptr): New.
21447 (do_child_fetch_inferior_registers): Move to ...
21448 * win32-i386-low.c: ... here, and rename to ...
21449 (do_fetch_inferior_registers): ... this.
889bf7c5 21450 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21451 Go through the low target.
21452 (do_child_store_inferior_registers): Use regptr.
21453 (strwinerror): New function.
21454 (win32_create_inferior): Handle Windows CE.
21455 Use strwinerror instead of strerror on Windows error
21456 codes. Add program to the error output.
21457 Don't close the main thread handle on Windows CE.
21458 (win32_attach): Use coredll.dll on Windows CE.
21459 (win32_kill): Close current process and current
21460 thread handles.
21461 (win32_detach): Use coredll.dll on Windows CE.
21462 (win32_resume): Let low target handle debug registers, and
21463 step request.
21464 (handle_exception): Add/Remove initial breakpoint. Avoid
21465 non-existant WSTOPSIG on Windows CE.
21466 (win32_read_inferior_memory): Cast to remove warning.
21467 (win32_arch_string): Go through the low target.
21468 (initialize_low): Call set_breakpoint_data with the low
21469 target's breakpoint.
21470 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21471 FOP_REGNUM, mappings): Move to ...
21472 * win32-i386-low.c: ... here.
21473 * win32-low.c (win32_thread_info): Move to ...
21474 * win32-low.h: ... here.
21475 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21476 win32-arm-low.c and wincecompat.c.
21477 (all:): Add $EXEEXT.
21478 (install-only:): Likewise.
21479 (gdbserver:): Likewise.
21480 (gdbreplay:): Likewise.
21481 * config.in: Regenerate.
21482 * configure: Regenerate.
21483
41093d81
PA
214842007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21485
21486 * win32-low.c: Rename typedef thread_info to
21487 win32_thread_info throughout.
21488
544afa54
PA
214892007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21490
21491 * win32-i386-low.c: Rename to ...
21492 * win32-low.c: ... this.
21493 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21494 * Makefile.in: Likewise.
21495
bce7165d
PA
214962007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21497
21498 * remote-utils.c (monitor_output): Constify msg parameter.
21499 * server.h (monitor_output): Likewise.
21500 * win32-i386-low.c (handle_output_debug_string): New.
21501 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21502 handle_output_debug_string.
21503 (get_child_debug_event): Likewise.
21504
506c7aa0
DJ
215052007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21506
21507 * server.c (main): Correct strtoul check.
21508
42c81e2a
DJ
215092007-03-27 Jon Ringle <jon@ringle.org>
21510
21511 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21512
9453113a
DJ
215132007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21514
21515 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21516
64a69107
DJ
215172007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21518
21519 * terminal.h: Check HAVE_SGTTY_H.
21520
215212007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21522
21523 * remote-utils.c (remote_open): Print out the assigned port number.
21524
c74d0ad8
DJ
215252007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21526
21527 * remote-utils.c (monitor_output): New function.
21528 * server.c (debug_threads): Define here.
21529 (monitor_show_help): New function.
21530 (handle_query): Handle qRcmd.
21531 (main): Do not handle 'd' packet.
21532 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21533 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21534 of debug_threads.
21535
de7c3b4a
PA
215362007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21537
21538 * Makefile.in (EXEEXT): New.
21539 (clean): Use $(EXEEXT).
21540
ef57601b
PA
215412007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21542
21543 * target.h (target_ops): Rename send_signal to request_interrupt,
21544 and remove enum target_signal parameter.
21545 * linux-low.c (linux_request_interrupt): Rename from
21546 linux_send_signal, and always send SIGINT.
21547 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21548 and always send SIGINT.
21549 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21550 of send_signal.
21551 (input_interrupt): Likewise.
21552
820f2bda
PA
215532007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21554
21555 * server.c (get_features_xml): Check if target implemented
21556 arch_string.
21557 * win32-i386-low.c (win32_arch_string): New.
21558 (win32_target_ops): Add win32_arch_string as arch_string member.
21559
ab39bf24
UW
215602007-02-22 Markus Deuling <deuling@de.ibm.com>
21561
21562 * spu-low.c (spu_arch_string): New.
21563 (spu_target_ops): Add spu_arch_string.
21564
61ff6e04
DJ
215652007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21566
21567 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21568 * configure.ac: Do not check for terminal.h.
21569 * configure, config.in: Regenerated.
21570
fb1e4ffc
DJ
215712007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21572
21573 * Makefile.in (OBS): Add $(XML_BUILTIN).
21574 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21575 (clean): Update.
21576 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21577 (arm-with-iwmmxt.c): New.
21578 * config.in, configure: Regenerate.
21579 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21580 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21581 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21582 (arm*-*-linux*): Add iWMMXt and regset support.
21583 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21584 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21585 (arm_store_wmmxregset, target_regsets): New.
21586 * server.c (get_features_xml): Take annex argument. Check builtin
21587 XML documents.
21588 (handle_query): Handle multiple annexes.
21589
0f48aa01
DJ
215902007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21591
21592 * remote-utils.c [USE_WIN32API] (read, write): Define.
21593 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21594 write.
21595
23181151
DJ
215962007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21597
21598 * linux-i386-low.c (the_low_target): Set arch_string.
21599 * linux-x86-64-low.c (the_low_target): Likewise.
21600 * linux-low.c (linux_arch_string): New.
21601 (linux_target_ops): Add it.
21602 * linux-low.h (struct linux_target_ops): Add arch_string.
21603 * server.c (write_qxfer_response): Use const void * for DATA.
21604 (get_features_xml): New.
21605 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21606 * target.h (struct target_ops): Add arch_string method.
21607
9d606399
DJ
216082007-01-03 Denis Pilat <denis.pilat@st.com>
21609 Daniel Jacobowitz <dan@codesourcery.com>
21610
21611 * linux-low.c (linux_kill): Handle being called with no threads.
21612 * win32-i386-low.c (win32_kill): Likewise.
21613 (get_child_debug_event): Clear current_process_handle.
21614
216152006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21616 Daniel Jacobowitz <dan@codesourcery.com>
21617
21618 * remote-utils.c (remote_open): Check the type of specified
21619 serial port devices before opening them.
21620 * server.c (main): Kill the inferior if an error occurs during
21621 the first remote_open.
21622
a5e13d24
DJ
216232006-12-05 Markus Deuling <deuling@de.ibm.com>
21624
21625 * README: Update supported targets.
21626
186947f7
DJ
216272006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21628
21629 * Makefile.in (clean): Remove reg-mips64.c.
21630 (reg-mips64.c, reg-mips64.o): New rules.
21631 * configure.srv: Handle mips64. Include regset support for mips.
21632 * linux-mips-low.c (union mips_register): New.
21633 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21634 (mips_breakpoint, mips_breakpoint_at): Use int.
21635 (mips_collect_register, mips_supply_register)
21636 (mips_collect_register_32bit, mips_supply_register_32bit)
21637 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21638 (mips_store_fpregset, target_regsets): New.
21639 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21640
a13e2c95
UW
216412006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21642
21643 * configure.srv: Add target "spu*-*-*".
21644 * Makefile.in (clean): Remove reg-spu.c.
21645 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21646 * spu-low.c: New file.
21647
cb7283db
DJ
216482006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21649
21650 * configure.ac: Correct td_thr_tls_get_addr test.
21651 * configure: Regenerated.
21652
89be2091
DJ
216532006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21654
21655 * linux-low.c (linux_wait_for_event): Reformat. Use the
21656 pass_signals array.
21657 * remote-utils.c (decode_address_to_semicolon): New.
21658 * server.c (pass_signals, handle_general_set): New.
21659 (handle_query): Mention QPassSignals for qSupported.
21660 (main): Call handle_general_set.
21661 * server.h (pass_signals, decode_address_to_semicolon): New.
21662
000ef4f0
DJ
216632006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21664
21665 * server.c (handle_query): Correct error handling for read_auxv.
21666
b7149293
UW
216672005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21668
21669 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21670 and srv_linux_thread_db to yes.
21671 * linux-s390-low.c (s390_fill_gregset): New function.
21672 (target_regsets): Define data structure.
21673
dae5f5cf
DJ
216742006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21675
21676 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21677 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21678 * config.in, configure: Regenerated.
21679 * inferiors.c (gdb_id_to_thread): New function.
21680 (gdb_id_to_thread_id): Use it.
21681 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21682 * linux-low.h (struct process_info): Add th member.
21683 (thread_db_get_tls_address): New prototype.
21684 * remote-utils.c (decode_address): Make non-static.
21685 * server.c (handle_query): Handle qGetTLSAddr.
21686 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21687 * target.h (struct target_ops): Add get_tls_address.
21688 * thread-db.c (maybe_attach_thread): Save the thread handle.
21689 (thread_db_get_tls_address): New.
21690
32ca6d61
DJ
216912006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21692
21693 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21694 (linux_resume_one_process): Take a siginfo_t *. Update all
21695 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21696 (struct pending_signals): Add a siginfo_t.
21697 (linux_wait_for_process): Always set last_status.
21698 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21699 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21700 * linux-low.h (struct process_info): Add last_status.
21701
5ffff7c1
DJ
217022006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21703
21704 * remote-utils.c (try_rle): New function.
21705 (putpkt_binary): Use it.
21706
8695c747
DJ
217072006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21708
21709 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21710 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21711 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21712 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21713 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21714 point registers.
21715
290fadea
RS
217162006-08-08 Richard Sandiford <richard@codesourcery.com>
21717
21718 * server.c (terminal_fd): New variable.
21719 (old_foreground_pgrp): Likewise.
21720 (restore_old_foreground_pgrp): New function.
21721 (start_inferior): Record the terminal file descriptor in terminal_fd
21722 and its original foreground group in old_foreground_pgrp. Register
21723 restore_old_foreground_pgrp with atexit().
21724
9f2e1e63
DJ
217252006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21726
21727 * server.c (handle_query): Correct qPart to qXfer.
21728
b80864fb
DJ
217292006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21730
21731 * configure.ac: Check for more headers which are missing on
21732 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21733 * configure.srv: Add Cygwin and mingw32.
21734 * remote-utils.c: Don't include headers unconditionally which
21735 are missing on mingw32. Include <winsock.h> for mingw32.
21736 (remote_open): Adjust for mingw32 support. Flush
21737 standard error after writing to it.
21738 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21739 (unblock_async_io, enable_async_io, disable_async_io)
21740 (readchar, getpkt): Update for Winsock support.
21741 (prepare_resume_reply): Expect a protocol signal number.
21742 * server.c: Disable <sys/wait.h> on mingw32.
21743 (start_inferior): Adjust for mingw32 support. Flush
21744 standard error after writing to it.
21745 (attach_inferior): Likewise. Use protocol signal
21746 numbers.
21747 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21748 and names.
21749 * win32-i386-low.c: New file.
21750 * Makefile.in (XM_CLIBS): Set.
21751 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21752 (win32-i386-low.o): New dependency rule.
21753 * linux-low.c (linux_wait): Use target signal numbers.
21754 * target.h (struct target_ops): Doc fix.
21755 * server.h (target_signal_to_name): New prototype.
21756 * gdbreplay.c: Don't include headers unconditionally which
21757 are missing on mingw32. Include <winsock.h> for mingw32.
21758 (remote_close, remote_open): Adjust for Winsock support.
21759 * configure, config.in: Regenerated.
21760
0876f84a
DJ
217612006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21762
21763 * server.c (decode_xfer_read, write_qxfer_response): New.
21764 (handle_query): Take a packet length argument. Handle
21765 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21766 the qSupported response.
21767 (main): Update call to handle_query.
21768
01f9e8fa
DJ
217692006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21770
21771 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21772 (putpkt_binary): Renamed from putpkt and adjusted for binary
21773 data.
21774 (putpkt): New wrapper for putpkt_binary.
21775 (readchar): Don't mask off the high bit.
21776 (decode_X_packet): New function.
21777 * server.c (main): Call putpkt_binary if a handler sets the packet
21778 length. Save the length of the incoming packet. Handle 'X'.
21779 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21780
be2a5f71
DJ
217812006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21782
21783 * server.c (handle_query): Handle qSupported.
21784
ea025f5f
DJ
217852006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21786
21787 * remote-utils.c (all_symbols_looked_up): New variable.
21788 (look_up_one_symbol): Check it.
21789 * server.h (look_up_one_symbol): New declaration.
21790 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21791
9308fc88
DJ
217922006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21793
21794 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21795 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21796 (PTRACE_GET_THREAD_AREA): Define.
21797 (ps_get_thread_area): New function.
21798
52fb6437
NS
217992006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21800
21801 * configure.srv (m68k*-*-uclinux*): New target.
21802 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21803 (linux_resume_one_process): Remove extraneous cast.
21804 (linux_read_offsets): New.
21805 (linux_target_op): Add linux_read_offsets on mmuless systems.
21806 * server.c (handle_query): Add qOffsets logic.
21807 * target.h (struct target_ops): Add read_offsets.
21808
21b0f40c
DJ
218092006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21810
21811 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21812 (PTRACE_GET_THREAD_AREA): Define.
21813 (ps_get_thread_area): New function.
21814 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21815 (linux-x86-64-low.o): Update.
21816
0050a760
DJ
218172006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21818
21819 * configure.ac: Remove checks for prfpregset_t.
21820 * gdb_proc_service.h: New file.
21821 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21822 new "gdb_proc_service.h".
21823 * proc-service.c: Likewise.
21824 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21825 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21826 * Makefile.in (gdb_proc_service_h): Updated.
21827 * configure, config.in: Regenerated.
21828
b92a518e
DJ
218292006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21830
21831 * remote-utils.c (prepare_resume_reply): Move declaration
21832 of gdb_id_from_wait to the top of the block.
21833
545587ee
DJ
218342006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21835
21836 * linux-low.c (regsets_store_inferior_registers): Read the regset
21837 from the target before filling it.
21838
9db87ebd
DJ
218392006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21840
21841 * server.c (attach_inferior): Return SIGTRAP for a successful
21842 attach.
21843
dd24457d
DJ
218442006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21845
21846 * Makefile.in (OBS): Add version.o.
21847 (STAGESTUFF): Delete.
21848 (version.o): Add dependencies.
21849 (version.c): Replace rule.
21850 (clean): Remove version.c.
21851 * server.c (gdbserver_version): New.
21852 (gdbserver_usage): Use printf.
21853 (main): Handle --version and --help.
21854 * server.h (version, host_name): Add declarations.
21855
6f0f660e
EZ
218562005-12-23 Eli Zaretskii <eliz@gnu.org>
21857
889bf7c5
PA
21858 * linux-arm-low.c:
21859 * linux-arm-low.c:
21860 * inferiors.c:
21861 * i387-fp.h:
21862 * i387-fp.c:
21863 * gdbreplay.c:
21864 * regcache.c:
21865 * proc-service.c:
21866 * mem-break.h:
21867 * mem-break.c:
21868 * linux-x86-64-low.c:
21869 * linux-sh-low.c:
21870 * linux-s390-low.c:
21871 * linux-ppc64-low.c:
21872 * linux-ppc-low.c:
21873 * linux-mips-low.c:
21874 * linux-m68k-low.c:
21875 * linux-m32r-low.c:
21876 * linux-low.h:
21877 * linux-low.c:
21878 * linux-ia64-low.c:
21879 * linux-i386-low.c:
21880 * linux-crisv32-low.c:
21881 * thread-db.c:
21882 * terminal.h:
21883 * target.h:
21884 * target.c:
21885 * server.h:
21886 * server.c:
21887 * remote-utils.c:
21888 * regcache.h:
21889 * utils.c:
21890 * Makefile.in:
21891 * configure.ac:
6f0f660e
EZ
21892 * gdbserver.1: Add (C) after Copyright. Update the FSF
21893 address.
21894
9d1fb177
DJ
218952005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21896
21897 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21898 (arm_breakpoint_at): Recognize both breakpoints.
21899 (the_low_target): Use the correct breakpoint instruction.
21900
011a70c2
DJ
219012005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21902
21903 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21904 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21905 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21906 (the_low_target): Update.
21907
7fb85e41
AS
219082005-10-25 Andreas Schwab <schwab@suse.de>
21909
21910 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21911
21912 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21913 (ia64_num_regs): Reduce to 462.
21914
3db0444b
DJ
219152005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21916
21917 * acinclude.m4: Correct quoting.
21918 * aclocal.m4: Regenerated.
21919
21920 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21921 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21922 (thread_db_init): Call thread_db_err_str.
21923 * configure.ac: Check for TD_VERSION.
21924 * config.in, configure: Regenerated.
21925
bee0189a
DJ
219262005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21927
21928 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21929
e9d25b98
DJ
219302005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21931
21932 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21933 is not available. Define HAVE_PTRACE_GETREGS if it is.
21934 * config.in, configure: Regenerated.
21935 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21936 * linux-i386-low.c, linux-m68k-low.c: Update to use
21937 HAVE_PTRACE_GETREGS.
21938 * linux-low.c (regsets_fetch_inferior_registers)
21939 (regsets_store_inferior_registers): Only return 0 if we processed
21940 GENERAL_REGS.
21941 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21942 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21943
a06660f7
DJ
219442005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21945
21946 * inferiors.c (struct thread_info): Add gdb_id.
21947 (add_thread): Add gdb_id argument.
21948 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21949 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21950 calls to add_thread.
21951 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21952 * server.c (handle_query): Use thread_to_gdb_id.
21953 (handle_v_cont, main): Use gdb_id_to_thread_id.
21954 * server.h (add_thread): Update prototype.
21955 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21956 prototypes.
21957
5a1f5858
DJ
219582005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21959
21960 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21961 left-padded registers.
21962 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21963 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21964
e122f1f5
SE
219652005-07-01 Steve Ellcey <sje@cup.hp.com>
21966
21967 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21968 * configure: Regenerate.
21969 * config.in: Regenerate.
21970 * server.h (NEED_DECLARATION_STRERROR):
21971 Replace with !HAVE_DECL_STRERROR.
21972
d592fa2f
DJ
219732005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21974
21975 * linux-low.c (linux_wait, linux_send_signal): Don't test
21976 an unsigned long variable for > 0 if it could be MAX_ULONG.
21977 * server.c (myresume): Likewise.
21978 * target.c (set_desired_inferior): Likewise.
21979
ccbd4912
MK
219802005-06-13 Mark Kettenis <kettenis@gnu.org>
21981
21982 * configure.ac: Simplify and improve check for socklen_t.
21983 * configure, config.in: Regenerate.
21984
f450004a
DJ
219852005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21986
21987 * acconfig.h: Remove.
21988 * configure.ac: Add a test for socklen_t. Use three-argument
21989 AC_DEFINE throughout.
21990 * config.in: Regenerated using autoheader 2.59.
21991 * configure: Regenerated.
21992
21993 * gdbreplay.c (socklen_t): Provide a default.
21994 (remote_open): Use socklen_t.
21995 * remote-utils.c (socklen_t): Provide a default.
21996 (remote_open): Use socklen_t.
21997 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21998 unsigned char.
21999
22000 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22001 char for buffers.
22002 * linux-low.c (linux_read_memory, linux_write_memory)
22003 (linux_read_auxv): Likewise.
22004 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22005 (check_mem_write): Likewise.
22006 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22007 Likewise.
22008 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22009 (registers_from_string, register_data): Likewise.
22010 * server.c (handle_query, main): Likewise.
22011 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22012 (decode_M_packet): Likewise.
22013 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22014 * target.h (struct target_ops): Update read_memory, write_memory,
22015 and read_auxv.
22016 (read_inferior_memory, write_inferior_memory): Update.
22017 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22018 to unsigned char *.
22019 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22020 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22021 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22022 linux-s390-low.c, linux-sh-low.c: Update for changes in
22023 read_inferior_memory and the_low_target->breakpoint.
22024
eee84df1
DJ
220252005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22026
22027 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22028 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22029 * configure.srv: Add powerpc64-*-linux*.
22030 * linux-ppc64-low.c: New file.
22031
45b134e5
OF
220322005-05-23 Orjan Friberg <orjanf@axis.com>
22033
22034 * linux-cris-low.c: New file with support for CRIS.
22035 * linux-crisv32-low.c: Ditto for CRISv32.
22036 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22037 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 22038 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
22039 reg-crisv32.o, and reg-crisv32.c to make rules.
22040 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22041 recognized targets.
22042
48d93c75
UW
220432005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22044
22045 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22046 of sizeof (PTRACE_XFER_TYPE).
22047 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22048
e013ee27
OF
220492005-05-12 Orjan Friberg <orjanf@axis.com>
22050
889bf7c5 22051 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
22052 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22053 pointers for hardware watchpoint support.
22054 * linux-low.h (struct linux_target_ops): Ditto.
22055 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22056 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22057 to linux_target_ops.
22058 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22059 reply packet.
22060 * server.c (main): Recognize 'Z' and 'z' packets.
22061
b0ded00b
UW
220622005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22063
22064 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22065 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22066 (the_low_target): Add new members.
22067
8643e2ad
DJ
220682005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22069
22070 * proc-service.c (ps_lgetregs): Search all_processes instead of
22071 all_threads.
22072
fc620387
DJ
220732005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22074
22075 * server.c (start_inferior): Change return type to int.
22076 (attach_inferior): Change sigptr to int *.
22077 (handle_v_cont, handle_v_requests): Change signal to int *.
22078 (main): Change signal to int.
22079
220802005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
22081
22082 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22083 * configure.srv: Add m32r*-*-linux*.
22084 * linux-m32r-low.c: New file.
22085
e0e76420
DJ
220862005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22087
22088 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22089
a1928bad
DJ
220902005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22091
22092 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22093 Take unsigned long arguments for PIDs.
22094 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22095 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22096 (wait_for_sigstop, linux_resume_one_process)
22097 (regsets_fetch_inferior_registers, linux_send_signal)
22098 (linux_read_auxv): Likewise. Update the types of variables holding
22099 PIDs. Update format string specifiers.
22100 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22101 * remote-utils.c (prepare_resume_reply): Likewise.
22102 * server.c (cont_thread, general_thread, step_thread)
22103 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22104 unsigned long.
22105 (handle_query): Update format specifiers.
22106 (handle_v_cont, main): Use strtoul for thread IDs.
22107 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22108 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22109 (general_thread, step_thread, thread_from_wait)
22110 (old_thread_from_wait): Update.
22111 * target.h (struct thread_resume): Use unsigned long for THREAD.
22112 (struct target_ops): Use unsigned long for arguments to attach and
22113 thread_alive.
22114
dcdb98d2
DJ
221152005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22116
22117 * acinclude.m4: Include bfd/bfd.m4 directly.
22118 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22119 <agriffis@toolchain.org>.
22120 * aclocal.m4, configure: Regenerated.
22121
bec39cab
AC
221222005-01-07 Andrew Cagney <cagney@gnu.org>
22123
22124 * configure.ac: Rename configure.in, require autoconf 2.59.
22125 * configure: Re-generate.
22126
434c4c77
DJ
221272004-12-08 Daniel Jacobowitz <dan@debian.org>
22128
22129 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22130 LIBS when finished.
22131 * aclocal.m4: Regenerated.
22132 * configure: Regenerated.
22133
db1d3e1b
AS
221342004-11-21 Andreas Schwab <schwab@suse.de>
22135
22136 * linux-m68k-low.c (m68k_num_gregs): Define.
22137 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22138 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22139 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22140 (m68k_breakpoint_at): New. Add to the_low_target.
22141
22142 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22143 srv_linux_thread_db to yes.
22144
43360365
JB
221452004-10-20 Joel Brobecker <brobecker@gnat.com>
22146
22147 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22148 (ARCH_SET_FS): Likewise.
22149 (ARCH_GET_FS): Likewise.
22150 (ARCH_GET_GS): Likewise.
22151
fd500816
DJ
221522004-10-16 Daniel Jacobowitz <dan@debian.org>
22153
22154 * linux-i386-low.c (ps_get_thread_area): New.
22155 * linux-x86-64-low.c (ps_get_thread_area): New.
22156 * linux-low.c: Include <sys/syscall.h>.
22157 (linux_kill_one_process): Don't kill the first thread here.
22158 (linux_kill): Kill the first thread here.
22159 (kill_lwp): New function.
22160 (send_sigstop, linux_send_signal): Use it.
22161 * proc-service.c: Clean up #ifdefs.
22162 (fpregset_info): Delete.
22163 (ps_lgetregs): Update and enable implementation.
22164 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22165 implementations.
22166 * remote-utils.c (struct sym_cache, symbol_cache): New.
22167 (input_interrupt): Print a clearer message.
22168 (async_io_enabled): New variable.
22169 (enable_async_io, disable_async_io): Use it. Update comments.
22170 (look_up_one_symbol): Use the symbol cache.
22171 * thread-db.c (thread_db_look_up_symbols): New function.
22172 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22173
f6de3c42
DJ
221742004-10-16 Daniel Jacobowitz <dan@debian.org>
22175
22176 * configure.in: Test for -rdynamic.
22177 * configure: Regenerated.
22178 * Makefile (INTERNAL_LDFLAGS): New.
22179 (gdbserver, gdbreplay): Use it.
22180
2c0fc042
AC
221812004-09-02 Andrew Cagney <cagney@gnu.org>
22182
22183 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22184
075b3282
DJ
221852004-03-23 Daniel Jacobowitz <drow@mvista.com>
22186
22187 * linux-low.c (linux_wait): Clear all_processes list also.
22188
fa6a77dc
DJ
221892004-03-12 Daniel Jacobowitz <drow@mvista.com>
22190
22191 * linux-low.c: Include <errno.h>. Remove extern declaration of
22192 errno.
22193
6d782a97
DJ
221942004-03-12 Daniel Jacobowitz <drow@mvista.com>
22195
22196 * gdbreplay.c, server.h, utils.c: Update copyright years.
22197
3a7fb99b
DJ
221982004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22199
22200 * server.c (main): Print child status or termination signal from
22201 variable 'signal', not 'sig'.
22202
c3e735a6
DJ
222032004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22204
22205 * linux-low.c (linux_read_memory): Change return type to
22206 int. Check for and return error from ptrace().
22207 * target.c (read_inferior_memory): Change return type to int. Pass
22208 back return status from the_target->read_memory().
22209 * target.h (struct target_ops): Adapt *read_memory() prototype.
22210 Update comment.
22211 (read_inferior_memory): Adapt prototype.
22212 * server.c (main): Return an error packet if
22213 read_inferior_memory() returns an error.
22214
a59d1c82
DJ
222152004-03-04 Daniel Jacobowitz <drow@mvista.com>
22216
22217 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22218 Unify with other clean targets.
22219
dc3f8883
DJ
222202004-02-29 Daniel Jacobowitz <drow@mvista.com>
22221
22222 * server.c (handle_v_cont): Call set_desired_inferior.
22223
89a208da
DJ
222242004-02-29 Daniel Jacobowitz <drow@mvista.com>
22225
22226 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22227
62ea82f5
DJ
222282004-02-29 Daniel Jacobowitz <drow@mvista.com>
22229
22230 * linux-low.c (linux_wait): Unblock async I/O.
22231 (linux_resume): Block and enable async I/O.
22232 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22233 * server.h (block_async_io, unblock_async_io): Add prototypes.
22234
6910d122
DJ
222352004-02-29 Daniel Jacobowitz <drow@mvista.com>
22236
22237 * remote-utils.c (remote_open): Print a status notice after
22238 opening a TCP port.
22239 * server.c (attach_inferior): Print a status notice after
22240 attaching.
22241
222422004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
22243
22244 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22245
c89dc5d4
DJ
222462004-02-26 Daniel Jacobowitz <drow@mvista.com>
22247
22248 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22249 error packet.
22250 * server.c, target.h: Update copyright years.
22251
4b8dad4a
RM
222522004-02-25 Roland McGrath <roland@redhat.com>
22253
22254 * target.h (struct target_ops): New member `read_auxv'.
22255 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22256 * linux-low.c (linux_read_auxv): New function.
22257 (linux_target_ops): Initialize `read_auxv' member to that.
22258
d7446758
JB
222592004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22260
22261 Committed by Jim Blandy <jimb@redhat.com>.
22262
22263 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 22264 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
22265 instead of GPR_SIZE to distiguish s390 and s390x targets.
22266
5544ad89
DJ
222672004-01-31 Daniel Jacobowitz <drow@mvista.com>
22268
22269 * linux-low.c: Update copyright year.
22270 (check_removed_breakpoint): Clear pending_is_breakpoint.
22271 (linux_set_resume_request, linux_queue_one_thread)
22272 (resume_status_pending_p): New functions.
22273 (linux_continue_one_thread): Use process->resume.
22274 (linux_resume): Only resume threads if there are no pending events.
22275 * linux-low.h (struct process_info): Add resume request
22276 pointer.
22277
2a68b70e
DJ
222782004-01-30 Daniel Jacobowitz <drow@mvista.com>
22279
22280 * regcache.c (new_register_cache): Clear the allocated register
22281 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22282
64386c31
DJ
222832003-10-13 Daniel Jacobowitz <drow@mvista.com>
22284
22285 * linux-low.c (linux_resume): Take a struct thread_resume *
22286 argument.
22287 (linux_wait): Update call.
22288 (resume_ptr): New static variable.
22289 (linux_continue_one_thread): Renamed from
22290 linux_continue_one_process. Use resume_ptr.
22291 (linux_resume): Use linux_continue_one_thread.
22292 * server.c (handle_v_cont, handle_v_requests): New functions.
22293 (myresume): New function.
22294 (main): Handle 'v' case.
22295 * target.h (struct thread_resume): New type.
22296 (struct target_ops): Change argument of "resume" to struct
22297 thread_resume *.
22298 (myresume): Delete macro.
22299
c938e9b0
L
223002003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22301
22302 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22303 (uninstall): Support DESTDIR.
22304
7f313d07
BC
22305Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22306
22307 * configure.srv: Add xscale*linux copy of arm*linux entry.
22308
3b2fc2ea
DJ
223092003-07-24 Daniel Jacobowitz <drow@mvista.com>
22310
22311 * linux-arm-low.c (arm_reinsert_addr): New function.
22312 (the_low_target): Add arm_reinsert_addr.
22313
1c0a559e
MK
223142003-07-08 Mark Kettenis <kettenis@gnu.org>
22315
22316 * mem-break.c: Remove whitespace at end of file.
22317
43d5792c
DJ
223182003-06-28 Daniel Jacobowitz <drow@mvista.com>
22319
22320 * configure.in: Check whether we need to prototype strerror.
22321 * server.h: Optionally prototype strerror.
22322 * gdbreplay.c (perror_with_name): Use strerror.
22323 * linux-low.c (linux_attach_lwp): Use strerror.
22324 * utils.c (perror_with_name): Use strerror.
22325 * config.in, configure: Regenerated.
22326
c8a86edf
DJ
223272003-06-28 Daniel Jacobowitz <drow@mvista.com>
22328
22329 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22330 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22331
73d37363
DJ
223322003-06-20 Daniel Jacobowitz <drow@mvista.com>
22333
22334 * Makefile.in (SFILES): Update.
22335 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22336 low-sun3.c: Remove files.
22337
6ad8ae5c
DJ
223382003-06-17 Daniel Jacobowitz <drow@mvista.com>
22339
22340 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22341 (linux_detach_one_process, linux_detach): New functions.
22342 (linux_target_ops): Add linux_detach.
22343 * server.c (main): Handle 'D' packet.
22344 * target.h (struct target_ops): Add "detach" member.
22345 (detach_inferior): Define.
22346
1581182a
MK
223472003-06-13 Mark Kettenis <kettenis@gnu.org>
22348
22349 From Kelley Cook <kelleycook@wideopenwest.com>:
22350 * configure.srv: Accept i[34567]86 variants.
22351
e5379b03
DJ
223522003-06-05 Daniel Jacobowitz <drow@mvista.com>
22353
22354 * linux-low.c (linux_wait_for_event): Correct comment typos.
22355 (linux_resume_one_process): Call check_removed_breakpoint.
22356 (linux_send_signal): New function.
22357 (linux_target_ops): Add linux_send_signal.
22358 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22359 of kill.
22360 * target.h (struct target_ops): Add send_signal.
22361
2ff29de4
JB
223622003-05-29 Jim Blandy <jimb@redhat.com>
22363
22364 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22365 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22366 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22367 away part of the register's value.
22368
254787d4
DJ
223692003-03-26 Daniel Jacobowitz <drow@mvista.com>
22370
22371 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22372 (linux_wait_for_event, linux_init_signals): Likewise.
22373
94e10508
DJ
223742003-03-17 Daniel Jacobowitz <drow@mvista.com>
22375
22376 * configure.in: Check for stdlib.h.
22377 * configure: Regenerated.
22378 * config.in: Regenerated.
22379
4c0711e0
DJ
223802003-01-04 Andreas Schwab <schwab@suse.de>
22381
22382 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22383
ef66e766
AC
223842003-01-02 Andrew Cagney <ac131313@redhat.com>
22385
22386 * Makefile.in: Remove obsolete code.
22387
a1358604
DJ
223882002-11-20 Daniel Jacobowitz <drow@mvista.com>
22389
22390 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22391 defined(PT_FPR0_HI).
22392
23ce3b1c
DJ
223932002-11-17 Stuart Hughes <seh@zee2.com>
22394
22395 * linux-arm-low.c (arm_num_regs): Increase.
22396 (arm_regmap): Include status register.
22397
223982002-11-17 Daniel Jacobowitz <drow@mvista.com>
22399
22400 * linux-low.c (register_addr): Remove incorrect -1 check.
22401
a9fa9f7d
DJ
224022002-08-29 Daniel Jacobowitz <drow@mvista.com>
22403
22404 * linux-low.c (linux_create_inferior): Call setpgid. Return
22405 the new PID.
22406 (unstopped_p, linux_signal_pid): Remove.
22407 (linux_target_ops): Remove linux_signal_pid.
22408 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22409 global instead of target method.
22410 * target.h (struct target_ops): Remove signal_pid. Update comment
22411 for create_inferior.
22412 * server.c (signal_pid): New variable.
22413 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22414 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22415 (attach_inferior): Set signal_pid.
22416
17574093
DJ
224172002-08-23 Daniel Jacobowitz <drow@mvista.com>
22418
22419 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22420
224212002-08-20 Jim Blandy <jimb@redhat.com>
22422
22423 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22424 default for this.
22425
224262002-08-01 Andrew Cagney <cagney@redhat.com>
22427
22428 * Makefile.in: Make chill references obsolete.
22429
224302002-07-24 Kevin Buettner <kevinb@redhat.com>
22431
22432 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22433 * configure: Regenerate.
22434 * config.in: Regenerate.
22435
224362002-07-09 David O'Brien <obrien@FreeBSD.org>
22437
22438 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22439 (perror_with_name, remote_close, remote_open, expect, play): Static.
22440
224412002-07-04 Michal Ludvig <mludvig@suse.cz>
22442
4b8dad4a 22443 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22444 byte offsets instead of an array of indexes.
22445 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22446
224472002-06-13 Daniel Jacobowitz <drow@mvista.com>
22448
22449 * regcache.c: Add comment.
22450
224512002-06-11 Daniel Jacobowitz <drow@mvista.com>
22452
22453 * thread-db.c: New file.
22454 * proc-service.c: New file.
22455 * acinclude.m4: New file.
22456 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22457 proc-service.o, and thread-db.o.
22458 (linux-low.o): Add USE_THREAD_DB.
22459 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22460 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22461 * aclocal.m4: Regenerated.
22462 * config.in: Regenerated.
22463 * configure: Regenerated.
22464 * configure.in: Check for proc_service.h, sys/procfs.h,
22465 thread_db.h, and linux/elf.h headrs.
22466 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22467 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22468 Check for -lthread_db and thread support.
22469 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22470 PowerPC, and SuperH.
22471 * i387-fp.c: Constify arguments.
22472 * i387-fp.h: Likewise.
22473 * inferiors.c: (struct thread_info): Renamed from
22474 `struct inferior_info'. Remove PID member. Use generic inferior
22475 list header. All uses updated.
22476 (inferiors, signal_pid): Removed.
22477 (all_threads): New variable.
22478 (get_thread): Define.
22479 (add_inferior_to_list): New function.
22480 (for_each_inferior): New function.
22481 (change_inferior_id): New function.
22482 (add_inferior): Removed.
22483 (remove_inferior): New function.
22484 (add_thread): New function.
22485 (free_one_thread): New function.
22486 (remove_thread): New function.
22487 (clear_inferiors): Use for_each_inferior and free_one_thread.
22488 (find_inferior): New function.
22489 (find_inferior_id): New function.
22490 (inferior_target_data): Update argument type.
22491 (set_inferior_target_data): Likewise.
22492 (inferior_regcache_data): Likewise.
22493 (set_inferior_regcache_data): Likewise.
22494 * linux-low.c (linux_bp_reinsert): Remove.
22495 (all_processes, stopping_threads, using_thrads)
22496 (struct pending_signals, debug_threads, pid_of): New.
22497 (inferior_pid): Replace with macro.
22498 (struct inferior_linux_data): Remove.
22499 (get_stop_pc, add_process): New functions.
22500 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22501 Use add_process and add_thread.
22502 (linux_attach_lwp): New function, based on old linux_attach. Use
22503 add_process and add_thread. Set stop_expected for new threads.
22504 (linux_attach): New function.
22505 (linux_kill_one_process): New function.
22506 (linux_kill): Kill all LWPs.
22507 (linux_thread_alive): Use find_inferior_id.
22508 (check_removed_breakpoints, status_pending_p): New functions.
22509 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22510 Update. Use WNOHANG. Wait for cloned processes also. Update process
22511 struct for the found process.
22512 (linux_wait_for_event): New function.
22513 (linux_wait): Use it. Support LWPs.
22514 (send_sigstop, wait_for_sigstop, stop_all_processes)
22515 (linux_resume_one_process, linux_continue_one_process): New functions.
22516 (linux_resume): Support LWPs.
22517 (REGISTER_RAW_SIZE): Remove.
22518 (fetch_register): Use register_size instead. Call supply_register.
22519 (usr_store_inferior_registers): Likewise. Call collect_register.
22520 Fix recursive case.
22521 (regsets_fetch_inferior_registers): Improve error message.
22522 (regsets_store_inferior_registers): Add debugging.
22523 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22524 (unstopped_p, linux_signal_pid): New functions.
22525 (linux_target_ops): Add linux_signal_pid.
22526 (linux_init_signals): New function.
22527 (initialize_low): Call it. Initialize using_threads.
22528 * regcache.c (inferior_regcache_data): Add valid
22529 flag.
22530 (get_regcache): Fetch registers lazily. Add fetch argument
22531 and update all callers.
22532 (regcache_invalidate_one, regcache_invalidate): New
22533 functions.
22534 (new_register_cache): Renamed from create_register_cache.
22535 Return the new regcache.
22536 (free_register_cache): Change argument to a void *.
22537 (registers_to_string, registers_from_string): Call get_regcache
22538 with fetch flag set.
22539 (register_data): Make static. Pass fetch flag to get_regcache.
22540 (supply_register): Call get_regcache with fetch flag clear.
22541 (collect_register): Call get_regcache with fetch flag set.
22542 (collect_register_as_string): New function.
22543 * regcache.h: Update.
22544 * remote-utils.c (putpkt): Flush after debug output and use
22545 stderr.
22546 Handle input interrupts while waiting for an ACK.
22547 (input_interrupt): Use signal_pid method.
22548 (getpkt): Flush after debug output and use stderr.
22549 (outreg): Use collect_register_as_string.
22550 (new_thread_notify, dead_thread_notify): New functions.
22551 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22552 and general_thread.
22553 (look_up_one_symbol): Flush after debug output.
22554 * server.c (step_thread, server_waiting): New variables.
22555 (start_inferior): Don't use signal_pid. Update call to mywait.
22556 (attach_inferior): Update call to mywait.
22557 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22558 (main): Don't fetch/store registers explicitly. Use
22559 set_desired_inferior. Support proposed ``Hs'' packet. Update
22560 calls to mywait.
22561 * server.h: Update.
22562 (struct inferior_list, struct_inferior_list_entry): New.
22563 * target.c (set_desired_inferior): New.
22564 (write_inferior_memory): Constify.
22565 (mywait): New function.
22566 * target.h: Update.
22567 (struct target_ops): New signal_pid method.
22568 (mywait): Removed macro, added prototype.
22569
22570 * linux-low.h (regset_func): Removed.
22571 (regset_fill_func, regset_store_func): New.
22572 (enum regset_type): New.
22573 (struct regset_info): Add type field. Use new operation types.
22574 (struct linux_target_ops): stop_pc renamed to get_pc.
22575 Add decr_pc_after_break and breakpoint_at.
22576 (get_process, get_thread_proess, get_process_thread)
22577 (strut process_info, all_processes, linux_attach_lwp)
22578 (thread_db_init): New.
22579
22580 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22581 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22582 (the_low_target): Add new members.
22583 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22584 (i386_store_fpxregset): Constify.
22585 (target_regsets): Add new kind identifier.
22586 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22587 (i386_set_pc): Add debugging.
22588 (i386_breakpoint_at): New function.
22589 (the_low_target): Add new members.
22590 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22591 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22592 (mips_breakpoint_at): New.
22593 (the_low_target): Add new members.
22594 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22595 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22596 (the_low_target): Add new members.
22597 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22598 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22599 (the_low_target): Add new members.
22600 * linux-x86-64-low.c (target_regsets): Add new kind
22601 identifier.
22602
226032002-05-15 Daniel Jacobowitz <drow@mvista.com>
22604
22605 From Martin Pool <mbp@samba.org>:
22606 * server.c (gdbserver_usage): New function.
22607 (main): Call it.
22608
226092002-05-14 Daniel Jacobowitz <drow@mvista.com>
22610
22611 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22612 stop_at -> stop_pc.
22613
226142002-05-04 Andrew Cagney <ac131313@redhat.com>
22615
22616 * Makefile.in: Remove obsolete code.
22617
226182002-04-24 Michal Ludvig <mludvig@suse.cz>
22619
22620 * linux-low.c (regsets_fetch_inferior_registers),
22621 (regsets_store_inferior_registers): Removed cast to int from
22622 ptrace() calls.
22623 * regcache.h: Added declaration of struct inferior_info.
22624
226252002-04-20 Daniel Jacobowitz <drow@mvista.com>
22626
22627 * inferiors.c (struct inferior_info): Add regcache_data.
22628 (add_inferior): Call create_register_cache.
22629 (clear_inferiors): Call free_register_cache.
22630 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22631 * regcache.c (struct inferior_regcache_data): New.
22632 (registers): Remove.
22633 (get_regcache): New function.
22634 (create_register_cache, free_register_cache): New functions.
22635 (set_register_cache): Don't initialize the register cache here.
22636 (registers_to_string, registers_from_string, register_data): Call
22637 get_regcache.
22638 * regcache.h: Add prototypes.
22639 * server.h: Likewise.
22640
226412002-04-20 Daniel Jacobowitz <drow@mvista.com>
22642
22643 * mem-break.c: New file.
22644 * mem-break.h: New file.
22645 * Makefile.in: Add mem-break.o rule; update server.h
22646 dependencies.
22647 * inferiors.c (struct inferior_info): Add target_data
22648 member.
22649 (clear_inferiors): Free target_data member if set.
22650 (inferior_target_data, set_inferior_target_data): New functions.
22651 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22652 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22653 * linux-low.c (linux_bp_reinsert): New variable.
22654 (struct inferior_linux_data): New.
22655 (linux_create_inferior): Use set_inferior_target_data.
22656 (linux_attach): Likewise. Call add_inferior.
22657 (linux_wait_for_one_inferior): New function.
22658 (linux_wait): Call it.
22659 (linux_write_memory): Add const.
22660 (initialize_low): Call set_breakpoint_data.
22661 * linux-low.h (struct linux_target_ops): Add breakpoint
22662 handling members.
22663 * server.c (attach_inferior): Remove extra add_inferior
22664 call.
22665 * server.h: Include mem-break.h. Update inferior.c
22666 prototypes.
22667 * target.c (read_inferior_memory)
22668 (write_inferior_memory): New functions.
22669 * target.h (read_inferior_memory)
22670 (write_inferior_memory): Change macros to prototypes.
22671 (struct target_ops): Update comments. Add const to write_memory
22672 definition.
22673
226742002-04-11 Daniel Jacobowitz <drow@mvista.com>
22675
22676 * linux-low.c (usr_store_inferior_registers): Support
22677 registers which are allowed to fail to store.
22678 * linux-low.h (linux_target_ops): Likewise.
22679 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22680 (ppc_cannot_store_register): FPSCR may not be storable.
22681
226822002-04-09 Daniel Jacobowitz <drow@mvista.com>
22683
22684 * server.h: Include <string.h> if HAVE_STRING_H.
22685 * ChangeLog: Correct paths in last ChangeLog entry.
22686
226872002-04-09 Daniel Jacobowitz <drow@mvista.com>
22688
22689 * linux-low.h: Remove obsolete prototypes.
22690 (struct linux_target_ops): New.
22691 (extern the_low_target): New.
22692 * linux-low.c (num_regs, regmap): Remove declarations.
22693 (register_addr): Use the_low_target explicitly.
22694 (fetch_register): Likewise.
22695 (usr_fetch_inferior_registers): Likewise.
22696 (usr_store_inferior_registers): Likewise.
22697 * linux-arm-low.c (num_regs): Remove.
22698 (arm_num_regs): Define.
22699 (arm_regmap): Renamed from regmap, made static.
22700 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22701 made static.
22702 (arm_cannot_store_register): Renamed from cannot_store_register,
22703 made static.
22704 (the_low_target): New.
22705 * linux-i386-low.c (num_regs): Remove.
22706 (i386_num_regs): Define.
22707 (i386_regmap): Renamed from regmap, made static.
22708 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22709 made static.
22710 (i386_cannot_store_register): Renamed from cannot_store_register,
22711 made static.
22712 (the_low_target): New.
22713 * linux-ia64-low.c (num_regs): Remove.
22714 (ia64_num_regs): Define.
22715 (ia64_regmap): Renamed from regmap, made static.
22716 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22717 made static.
22718 (ia64_cannot_store_register): Renamed from cannot_store_register,
22719 made static.
22720 (the_low_target): New.
22721 * linux-m68k-low.c (num_regs): Remove.
22722 (m68k_num_regs): Define.
22723 (m68k_regmap): Renamed from regmap, made static.
22724 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22725 made static.
22726 (m68k_cannot_store_register): Renamed from cannot_store_register,
22727 made static.
22728 (the_low_target): New.
22729 * linux-mips-low.c (num_regs): Remove.
22730 (mips_num_regs): Define.
22731 (mips_regmap): Renamed from regmap, made static.
22732 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22733 made static.
22734 (mips_cannot_store_register): Renamed from cannot_store_register,
22735 made static.
22736 (the_low_target): New.
22737 * linux-ppc-low.c (num_regs): Remove.
22738 (ppc_num_regs): Define.
22739 (ppc_regmap): Renamed from regmap, made static.
22740 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22741 made static.
22742 (ppc_cannot_store_register): Renamed from cannot_store_register,
22743 made static.
22744 (the_low_target): New.
22745 * linux-s390-low.c (num_regs): Remove.
22746 (s390_num_regs): Define.
22747 (s390_regmap): Renamed from regmap, made static.
22748 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22749 made static.
22750 (s390_cannot_store_register): Renamed from cannot_store_register,
22751 made static.
22752 (the_low_target): New.
22753 * linux-sh-low.c (num_regs): Remove.
22754 (sh_num_regs): Define.
22755 (sh_regmap): Renamed from regmap, made static.
22756 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22757 made static.
22758 (sh_cannot_store_register): Renamed from cannot_store_register,
22759 made static.
22760 (the_low_target): New.
22761 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22762 (the_low_target): New.
22763
227642002-04-09 Daniel Jacobowitz <drow@mvista.com>
22765
22766 * Makefile.in: Add stamp-h target.
22767 * configure.in: Create stamp-h.
22768 * configure: Regenerated.
22769
227702002-04-09 Daniel Jacobowitz <drow@mvista.com>
22771
22772 * inferiors.c: New file.
22773 * target.c: New file.
22774 * target.h: New file.
22775 * Makefile.in: Add target.o and inferiors.o. Update
22776 dependencies.
22777 * linux-low.c (inferior_pid): New static variable,
22778 moved from server.c.
22779 (linux_create_inferior): Renamed from create_inferior.
22780 Call add_inferior. Return 0 on success instead of a PID.
22781 (linux_attach): Renamed from myattach.
22782 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22783 (linux_thread_alive): Renamed from mythread_alive.
22784 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22785 child dies.
22786 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22787 (regsets_store_inferior_registers): Correct error message.
22788 Add missing ``return 0''.
22789 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22790 (linux_store_registers): Renamed from store_inferior_registers.
22791 (linux_read_memory): Renamed from read_inferior_memory.
22792 (linux_write_memory): Renamed from write_inferior_memory.
22793 (linux_target_ops): New structure.
22794 (initialize_low): Call set_target_ops ().
22795 * remote-utils.c (unhexify): New function.
22796 (hexify): New function.
22797 (input_interrupt): Send signals to ``signal_pid''.
22798 * server.c (inferior_pid): Remove.
22799 (start_inferior): Update create_inferior call.
22800 (attach_inferior): Call add_inferior.
22801 (handle_query): New function.
22802 (main): Call handle_query for `q' packets.
22803 * server.h: Include "target.h". Remove obsolete prototypes.
22804 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22805
228062002-04-09 Daniel Jacobowitz <drow@mvista.com>
22807
22808 * Makefile.in: Add WARN_CFLAGS. Update configury
22809 dependencies.
22810 * configure.in: Check for <string.h>
22811 * configure: Regenerate.
22812 * config.in: Regenerate.
22813 * gdbreplay.c: Include needed system headers.
22814 (remote_open): Remove strchr prototype.
22815 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22816 * regcache.c (supply_register): Change buf argument to const void *.
22817 (supply_register_by_name): Likewise.
22818 (collect_register): Change buf argument to void *.
22819 (collect_register_by_name): Likewise.
22820 * regcache.h: Add missing prototypes.
22821 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22822 * server.c (handle_query): New function.
22823 (attached): New static variable, moved out of main.
22824 (main): Quiet longjmp clobber warnings.
22825 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22826 * utils.c (error): Remove NORETURN.
22827 (fatal): Likewise.