gdb: remove iterate_over_bp_locations function
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
c1c0a7e1
AB
12021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * .dir-locals.el: Set sentence-end-double-space for all modes, and
4 set brace-list-open to 0 for C and C++ modes.
5
8d06918f
SM
62021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * linux-low.cc (linux_process_target::wait_for_event_filtered):
9 Adjust to status_to_str returning std::string.
10
4655f850
PA
112021-05-08 Pedro Alves <pedro@palves.net>
12
13 * linux-low.cc:
14 (linux_process_target::supports_disable_randomization): Remove
15 reference to HAVE_PERSONALITY.
16 * config.in, configure: Regenerate.
17
e2ea3a38
PA
182021-05-08 Pedro Alves <pedro@palves.net>
19
20 * linux-low.cc: Don't include sys/personality.h or define
21 ADDR_NO_RANDOMIZE.
22
482155e6
TBA
232021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
24
25 * server.cc (handle_v_attach)
26 (handle_v_run)
27 (handle_v_kill): Make void.
28
82288339
TT
292021-05-03 Tom Tromey <tromey@adacore.com>
30
31 PR build/27807:
32 * win32-i386-low.cc (i386_get_thread_context): Call
33 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
34
e228ef97
TT
352021-04-30 Tom Tromey <tromey@adacore.com>
36
37 * win32-low.cc (do_initial_child_stuff): Update.
38 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
39 Change parameter type.
40 (win32_add_dll, win32_add_all_dlls)
41 (windows_nat::handle_load_dll): Remove.
42 (get_child_debug_event): Call dll_loaded_event.
43
de071872
TT
442021-04-30 Tom Tromey <tromey@adacore.com>
45
46 * win32-low.cc (GETPROCADDRESS): Remove.
47 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
48 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
49 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
50 (win32_Wow64SetThreadContext): Remove.
51 (win32_set_thread_context, do_initial_child_stuff)
52 (win32_process_target::attach, win32_process_target::detach):
53 Update.
54 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
55 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
56 Remove.
57 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
58 (win32_GetModuleInformation, win32_GetModuleInformationA):
59 Remove.
60 (load_psapi): Remove.
61 (win32_add_dll, win32_process_target::request_interrupt): Update.
62 (initialize_low): Call initialize_loadable.
63
38ae2915
TT
642021-04-14 Tom Tromey <tromey@adacore.com>
65
66 * win32-low.cc (windows_nat::handle_load_dll): Don't check
67 _WIN32_WCE.
68
6cacd449
PA
692021-04-13 Pedro Alves <pedro@palves.net>
70
71 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
72
1228cb90
TT
732021-04-13 Tom Tromey <tromey@adacore.com>
74
75 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
76 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
77
0256da25
PA
782021-04-13 Pedro Alves <pedro@palves.net>
79
80 * Makefile.in (SFILES): Remove hostio-errno.cc.
81 * configure: Regenerate.
82 * configure.ac (GDBSERVER_DEPFILES): No longer add
83 $srv_hostio_err_objs.
84 * configure.srv (srv_hostio_err_objs): Delete.
85 * hostio-errno.cc: Delete.
86 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
87 here.
88 * hostio.h (hostio_last_error_from_errno): Delete.
89 * target.cc (process_stratum_target::hostio_last_error): Delete.
90 * target.h (class process_stratum_target) <hostio_last_error>:
91 Delete.
92
d4717483
SM
932021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
94
95 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
96 * win32-low.h: Likewise.
97
04977957
TBA
982021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
99
100 * target.h (class process_stratum_target) <pid_to_exec_file>:
101 Constify the return type. Update the definition/references below.
102 * target.cc (process_stratum_target::pid_to_exec_file)
103 * linux-low.h (class linux_process_target) <pid_to_exec_file>
104 * linux-low.cc (linux_process_target::pid_to_exec_file)
105 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
106 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
107 * server.cc (handle_qxfer_exec_file)
108
114ee2a4
EZ
1092021-04-11 Eli Zaretskii <eliz@gnu.org>
110
111 * win32-low.cc (win32_add_dll): New function, with body almost
112 identical to what win32_add_all_dlls did. Accepts one argument;
113 if that is non-NULL, returns the file name of the DLL that is
114 loaded at the base address equal to that argument, or NULL if not
115 found. If the argument is NULL, add all the DLLs loaded by the
116 inferior to the list of solibs and return NULL.
117 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
118 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
119 failed to glean the file name of the DLL, call win32_add_dll to
120 try harder using the lpBaseOfDll member of the load-DLL event.
121
782c1ab8
LM
1222021-03-30 Luis Machado <luis.machado@linaro.org>
123
124 * server.cc (handle_general_set, handle_query): Update variable
125 to bool and fix verification logic.
126
41919a58
LM
1272021-03-24 Luis Machado <luis.machado@linaro.org>
128
129 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
130 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
131 nat/aarch64-mte-linux-ptrace.o.
132 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
133 (class aarch64_target) <supports_memory_tagging>
134 <fetch_memtags, store_memtags>: New method overrides.
135 (aarch64_target::supports_memory_tagging)
136 (aarch64_target::fetch_memtags)
137 (aarch64_target::store_memtags): New methods.
138
5e984dbf
LM
1392021-03-24 Luis Machado <luis.machado@linaro.org>
140
141 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
142 (aarch64_store_mteregset): New function.
143 (aarch64_regsets): Add MTE register set entry.
144 (aarch64_sve_regsets): Add MTE register set entry.
145
c1bd443b
LM
1462021-03-24 Luis Machado <luis.machado@linaro.org>
147
148 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
149 aarch64_linux_read_description.
150 (initialize_low_tracepoint): Likewise.
151 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
152 into account.
153 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
154 for MTE.
155 (aarch64_linux_read_description): Add mte_p parameter and update to
156 use it.
157 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
158 parameter.
159
04245125
LM
1602021-03-24 Luis Machado <luis.machado@linaro.org>
161
162 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
163
c2cfa654
LM
1642021-03-24 Luis Machado <luis.machado@linaro.org>
165
166 * server.cc (test_memory_tagging_functions): New function.
167 (captured_main): Register test_memory_tagging_functions.
168
546b77fe
LM
1692021-03-24 Luis Machado <luis.machado@linaro.org>
170
171 * remote-utils.cc (decode_m_packet_params): Renamed from ...
172 (decode_m_packet): ... this, which now calls decode_m_packet_params.
173 Make char * param/return const char *.
174 (decode_M_packet): Use decode_m_packet_params and make char * param
175 const char *.
176 * remote-utils.h (decode_m_packet_params): New prototype.
177 (decode_m_packet): Constify char pointers.
178 (decode_M_packet): Likewise.
179 * server.cc (create_fetch_memtags_reply)
180 (parse_store_memtags_request): New
181 functions.
182 (handle_general_set): Handle the QMemTags packet.
183 (parse_fetch_memtags_request): New function.
184 (handle_query): Handle the qMemTags packet and advertise memory
185 tagging support.
186 (captured_main): Initialize memory tagging flag.
187 * server.h (struct client_state): Initialize memory tagging flag.
188 * target.cc (process_stratum_target::supports_memory_tagging)
189 (process_stratum_target::fetch_memtags)
190 (process_stratum_target::store_memtags): New methods.
191 * target.h: Include gdbsupport/byte-vector.h.
192 (class process_stratum_target) <supports_memory_tagging>
193 <fetch_memtags, store_memtags>: New class virtual methods.
194 (target_supports_memory_tagging): Define.
195
d171632f
TBA
1962021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
197
198 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
199 fields.
200 * dll.h (loaded_dll)
201 (unloaded_dll): Declare an overloaded version that takes a proc
202 parameter.
203 * dll.cc (loaded_dll)
204 (unloaded_dll): Implement the overloaded versions.
205 (clear_dlls): Clear all process' dll lists.
206 (all_dlls, dlls_changed): Remove the global variables.
207 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
208 list per proc.
209 * server.cc (handle_qxfer_libraries): Ditto.
210 (handle_v_attach): Ditto.
211 (captured_main): Ditto.
212
1a48f002
SM
2132021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
214
215 * linux-low.cc (linux_process_target::filter_event): Return
216 void.
217 * linux-low.h (class linux_process_target) <filter_event>:
218 Return void.
219
77fba254
TT
2202021-02-12 Tom Tromey <tromey@adacore.com>
221
222 * gdbreplay.cc (remote_desc): Remove.
223 (remote_desc_in, remote_desc_out): New globals.
224 (remote_close): Update.
225 (remote_open): Handle "-".
226 (remote_open): Update.
227 (logchar): Log to stderr.
228 (expect, play): Update.
229
c054dcd5
TT
2302021-02-12 Tom Tromey <tromey@adacore.com>
231
232 * gdbreplay.cc (remote_open): Constify.
233
9c9d63b1
PM
2342021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
235
236 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
237 gnulib free replacement too.
238 * common-defs.h [USE_WIN32API](read, write): Undefine
239 gnulib versions before defining these macros.
240
7e9cf1fe
PA
2412021-02-03 Pedro Alves <pedro@palves.net>
242
243 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
244 Discard step SIGTRAP, unless GDB wanted the thread to step.
245
b0083dd7
PA
2462021-02-03 Pedro Alves <pedro@palves.net>
247
248 * server.cc (discard_queued_stop_replies): Don't ever discard the
249 notification at the head of the list.
250
6bd434d6
SM
2512021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
252
253 * ax.cc (bytecode_address_table): Make static.
254 * debug.cc (debug_file): Make static.
255 * linux-low.cc (stopping_threads): Make static.
256 (step_over_bkpt): Make static.
257 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
258 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
259 alloced_trace_state_variables, trace_buffer_ctrl,
260 tracing_start_time, tracing_stop_time, tracing_user_name,
261 tracing_notes, tracing_stop_note): Make static.
262
037e8112
TV
2632021-01-20 Tom de Vries <tdevries@suse.de>
264
265 * linux-x86-low.cc (collect_register_i386): New function.
266 (x86_fill_gregset): Remove memset. Use collect_register_i386.
267
78e49486
TV
2682021-01-07 Tom de Vries <tdevries@suse.de>
269
270 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
271 (LIBIBERTY_FOR_SHLIB): New var.
272 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
273 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
274
3ec3145c
SM
2752021-01-04 Simon Marchi <simon.marchi@efficios.com>
276
277 * debug.cc (debug_print_depth): New.
278
2b47c078
JB
2792021-01-01 Joel Brobecker <brobecker@adacore.com>
280
281 * server.cc (gdbserver_version): Update copyright year.
282 * gdbreplay.cc (gdbreplay_version): Likewise.
283
19007d95
LM
2842020-12-16 Luis Machado <luis.machado@linaro.org>
285
286 * linux-aarch64-low.cc (address_significant): New function.
287 (aarch64_target::low_stopped_data_address): Handle the TBI.
288
96648494
AB
2892020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * Makefile.in (IPA_LIB): Include libiberty library.
292
81fdd7ac
AB
2932020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
294
295 * server.cc (gdbserver_usage): Add missing option to usage text.
296 (gdbserver_show_disableable): Likewise.
297
dda83cd7
SM
2982020-11-02 Simon Marchi <simon.marchi@efficios.com>
299
300 * ax.cc: Fix indentation.
301 * dll.cc: Fix indentation.
302 * inferiors.h: Fix indentation.
303 * linux-low.cc: Fix indentation.
304 * linux-nios2-low.cc: Fix indentation.
305 * linux-ppc-ipa.cc: Fix indentation.
306 * linux-ppc-low.cc: Fix indentation.
307 * linux-x86-low.cc: Fix indentation.
308 * linux-xtensa-low.cc: Fix indentation.
309 * regcache.cc: Fix indentation.
310 * server.cc: Fix indentation.
311 * tracepoint.cc: Fix indentation.
312
19dd0ae5
SM
3132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
316 AC_LANG_PROGRAM.
317 * configure: Re-generate.
318
b6fb30ed
SM
3192020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
320
321 * configure: Re-generate.
864ca435
SM
322
3232020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
324
325 * configure: Re-generate.
b9442ec1
SM
326
3272020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
328
329 * configure: Re-generate.
b6fb30ed 330
5164c117
SM
3312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
332
333 * configure: Re-generate.
334
7e8c7130
SM
3352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
336
337 * configure.ac: Modernize.
338 * configure: Re-generate.
339
91e1a0ed
SM
3402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
343 AC_CANONICAL_SYSTEM.
344 * configure: Re-generate.
345
d744f0f9
PA
3462020-10-26 Pedro Alves <pedro@palves.net>
347
348 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
349 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
350 explicit type.
351
006811bc
SM
3522020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
353
354 * acinclude.m4: Update ptrace.m4 path.
355
92a048fd
SM
3562020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
357
358 * config.in: Re-generate.
359 * configure: Re-generate.
360
4dbe16c8
SM
3612020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
362
363 * server.cc (handle_general_set): Don't use sprintf with
364 argument overlapping buffer.
365
a9b45cb7
TT
3662020-10-20 Tom Tromey <tromey@adacore.com>
367
368 PR gdb/26742:
369 * inferiors.cc (remove_thread): Clear current_thread before
370 freeing the thread.
371
b07993f6
KR
3722020-10-13 Kamil Rytarowski <n54@gmx.com>x
373
374 * netbsd-low.cc (netbsd_tdesc): Remove.
375 (netbsd_add_process): Likewise.
376 (netbsd_process_target::create_inferior): Update.
377
bbb826f5
AB
3782020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
379
380 * linux-arc-low.cc (arc_linux_read_description): Release the
381 unique_ptr returned from arc_create_target_description.
382
361cb219
AB
3832020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
384
385 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
386 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
387
51a948fd
AB
3882020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
389
390 * linux-low.cc (linux_process_target::handle_extended_wait):
391 Release the unique_ptr returned from allocate_target_description.
392 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
393 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
394 (tdesc_i386_linux_no_xml): Change type.
395 (x86_linux_read_description): Borrow pointer from unique_ptr
396 object.
397 (x86_target::get_ipa_tdesc_idx): Likewise.
398 (initialize_low_arch): Likewise.
399 * tdesc.cc (allocate_target_description): Update return type.
400
60b74662
TT
4012020-10-07 Tom Tromey <tromey@adacore.com>
402
403 * server.cc (handle_search_memory): Remove dead code.
404
55b10d89
TT
4052020-10-07 Tom Tromey <tromey@adacore.com>
406
407 * server.cc (handle_search_memory_1): Remove.
408 (handle_search_memory): Use simple_search_memory.
409
a038ffd8
SM
4102020-10-07 Simon Marchi <simon.marchi@efficios.com>
411
412 * Makefile.in (COMPILE): Add CXXFLAGS.
413 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
414 (gdbserver$(EXEEXT)): Add CXXFLAGS.
415 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
416 ($(IPA_LIB)): Add CXXFLAGS.
417 (IPAGENT_COMPILE): Add CXXFLAGS.
418
bbe90b5d 4192020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
420
421 * configure.srv: Support ARC architecture.
422 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
423 * linux-arc-low.cc: New file.
424
48491055
KR
4252020-10-07 Kamil Rytarowski <n54@gmx.com>
426
427 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
428 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
429 (netbsd_process_target::qxfer_libraries_svr4): Update.
430
2be01f63
KR
4312020-10-07 Kamil Rytarowski <n54@gmx.com>
432
433 * netbsd-low.cc: Fix whitespace formatting.
434 * netbsd-amd64-low.cc: Likewise.
435
91e5e8db
KR
4362020-10-07 Kamil Rytarowski <n54@gmx.com>
437
438 * netbsd-low.cc (netbsd_process_target::read_memory)
439 (netbsd_process_target::write_memory): Update.
440
9529c852
KR
4412020-10-07 Kamil Rytarowski <n54@gmx.com>
442
443 * netbsd-aarch64-low.cc: Add.
444 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
445 * configure.srv: Add aarch64*-*-netbsd*.
446
981b570a
SV
4472020-10-06 Shahab Vahedi <shahab@synopsys.com>
448
449 * regcache.cc (register_data): Remove unused "fetch" argument.
450
6b01403b
SM
4512020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
452
453 * server.cc (handle_monitor_command): Handle "set
454 debug-event-loop".
455 (captured_main): Handle "--debug-event-loop".
456 (monitor_show_help): Mention new setting.
457 (gdbserver_usage): Mention new flag.
458
2554f6f5
SM
4592020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
460
461 * linux-low.cc (linux_process_target::async): Pass name to
462 add_file_handler.
463 * remote-utils.cc (handle_accept_event): Likewise.
464 (remote_open): Likewise.
465
8b667fae
KR
4662020-10-01 Kamil Rytarowski <n54@gmx.com>
467
468 * netbsd-i386-low.cc: Add.
469 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
470 * configure.srv: Add i[34567]86-*-netbsd*.
471
15397b0e
KR
4722020-10-01 Kamil Rytarowski <n54@gmx.com>
473
474 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
475 (netbsd_target_regsets): Now const.
476 (the_low_target): Remove.
477 (class netbsd_amd64_target, the_netbsd_amd64_target)
478 (the_netbsd_target): Add.
479 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
480 low_arch_setup ().
481 (netbsd_process_target::fetch_registers)
482 (netbsd_process_target::store_registers, initialize_low): Update.
483 (the_netbsd_target): Remove.
484 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
485 (the_low_target, netbsd_tdesc): Remove.
486 (netbsd_process_target::get_regs_info)
487 (netbsd_process_target::low_arch_setup): Add.
488
99bb393f
HD
4892020-09-23 Hannes Domani <ssbssa@yahoo.de>
490
491 * win32-low.cc: Remove local wow64_process variable.
492 * win32-low.h: Remove local wow64_process variable.
493
b60cea74
TT
4942020-09-18 Tom Tromey <tromey@adacore.com>
495
496 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
497 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
498 (netbsd_process_target::wait): Change type of target_options.
499 * win32-low.h (class win32_process_target) <wait>: Update.
500 * win32-low.cc (win32_process_target::wait): Update.
501 * target.h (class process_stratum_target) <wait>: Update.
502 (mywait): Update.
503 * target.cc (mywait, target_wait): Change type of "options".
504 * linux-low.h (class linux_process_target) <wait, wait_1>:
505 Update.
506 * linux-low.cc (linux_process_target::wait)
507 (linux_process_target::wait_1): Update.
508
db92ac45
TT
5092020-09-15 Tom Tromey <tromey@adacore.com>
510
511 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
512 (xmltarget_amd64_linux_no_xml): Now arrays.
513
27087b7f
TT
5142020-09-14 Tom Tromey <tromey@adacore.com>
515
516 * tracepoint.cc (eval_result_names): Now const.
517 * ax.cc (gdb_agent_op_names): Now const.
518
62ba5048
KR
5192020-09-10 Kamil Rytarowski <n54@gmx.com>
520
521 * netbsd-low.cc: Add.
522 * netbsd-low.h: Likewise.
523 * netbsd-amd64-low.cc: Likewise.
524 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
525 "netbsd-amd64-low.cc".
526 * configure.srv: Add x86_64-*-netbsd*.
527
ece5bc8a
SM
5282020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
529
530 * server.cc (captured_main): Accept multiple `--selftest=`
531 options. Pass all `--selftest=` arguments to run_tests.
532
c8693053
RO
5332020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
534
535 * configure, config.in: Regenerate.
536
05a6b8c2
EZ
5372020-07-26 Eli Zaretskii <eliz@gnu.org>
538
539 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
540 When checking whether socklen_t type is defined, use ws2tcpip.h if
541 it is available and sys/socket.h isn't.
542 * configure: Regenerate.
543 * config.in: Regenerate.
544
028a4603
PA
5452020-07-22 Pedro Alves <pedro@palves.net>
546
547 * inferiors.cc (switch_to_process): New, moved here from
548 thread-db.cc, and made extern.
549 * inferiors.h (switch_to_process): Declare.
550 * server.cc: Include "gdbsupport/scoped_restore.h".
551 (handle_qxfer_threads_proper): Now returns bool. Prepare to
552 access memory around target calls.
553 (handle_qxfer_threads): Handle errors.
554 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
555
05c309a8
SM
5562020-07-21 Simon Marchi <simon.marchi@efficios.com>
557
558 * linux-low.cc (stopped_pids): Make static.
559
0e267416
AB
5602020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
561
562 * tdesc.cc (allocate_target_description): Add header comment.
563 (target_desc_deleter::operator()): New function.
564 * tdesc.h (struct target_desc): Declare as final.
565
b315b67d
SM
5662020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
567
568 * server.cc (handle_query): Use std::vector of
569 std::string for `qsupported` vector. Use separate
570 vector for unknowns.
571 * target.h (class process_stratum_target) <process_qsupported>:
572 Change parameters to array_view of const char *.
573 (target_process_qsupported): Remove `count` parameter.
574 * target.cc (process_stratum_target::process_qsupported): Change
575 parameters to array_view of const char *.
576 * linux-x86-low.cc (class x86_target) <process_qsupported>:
577 Likewise.
578
f638ed73
TV
5792020-06-29 Tom de Vries <tdevries@suse.de>
580
581 * ax.h: Include gdbsupport/debug_agent.h.
582
fbf42f4e
AB
5832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
584
585 * tdesc.cc (struct tdesc_compatible_info): New struct.
586 (tdesc_compatible_info_list): New function.
587 (tdesc_compatible_info_arch_name): New function.
588
013e3554
TBA
5892020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
590
591 Use std::list to stop pending signal instead of manually-created
592 linked list.
593 * linux-low.h: Include <list>.
594 (struct pending_signal): Move here from linux-low.cc.
595 (struct lwp_info) <pending_signals>
596 <pending_signals_to_report>: Update the type.
597 * linux-low.cc (struct pending_signals): Remove.
598 (linux_process_target::delete_lwp)
599 (linux_process_target::add_lwp)
600 (enqueue_one_deferred_signal)
601 (dequeue_one_deferred_signal)
602 (enqueue_pending_signal)
603 (linux_process_target::resume_one_lwp_throw)
604 (linux_process_target::thread_needs_step_over)
605 (linux_process_target::resume_one_thread)
606 (linux_process_target::proceed_one_lwp): Update the use of pending
607 signal list.
608
7d458ea5
SM
6092020-06-17 Simon Marchi <simon.marchi@efficios.com>
610
611 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
612 Remove.
613
84b300de
SM
6142020-06-12 Simon Marchi <simon.marchi@efficios.com>
615
616 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
617 * configure.srv: Remove mingw32ce cases.
618 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
619 * win32-low.h (to_back_slashes): Remove.
620 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
621
96c16e2b
SM
6222020-06-12 Simon Marchi <simon.marchi@efficios.com>
623
624 * Makefile.in (SFILES): linux-tile-low.cc.
625 * configure.srv: Remove tilegx case.
626 * linux-tile-low.cc: Remove.
627
bd1467ae
SM
6282020-06-12 Simon Marchi <simon.marchi@efficios.com>
629
630 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
631 * configure.srv: Remove m32r case.
632 * linux-m32r-low.cc: Remove.
633
7b46bf6f
SM
6342020-06-12 Simon Marchi <simon.marchi@efficios.com>
635
636 * Makefile.in (SFILES): Remove linux-cris-low.c.
637 * configure.srv: Remove cris cases.
638 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
639
1fa29f56
SM
6402020-06-12 Simon Marchi <simon.marchi@efficios.com>
641
642 * Makefile.in (SFILES): Remove linux-bfin-low.c.
643 * configure.srv: Remove bfin case.
644 * linux-bfin-low.cc: Remove.
645 * linux-low.cc: Remove BFIN-conditional code.
646
613f149a
SM
6472020-06-12 Simon Marchi <simon.marchi@efficios.com>
648
649 * configure: Re-generate.
650 * configure.ac: Remove srv_qnx test.
651 * configure.srv: Remove nto case.
652 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
653 * remote-utils.c: Remove __QNX__-guarded code.
654
fdb95bf5
SM
6552020-06-12 Simon Marchi <simon.marchi@efficios.com>
656
657 * configure: Re-generate.
658 * configure.ac: Remove srv_lynxos test.
659 * configure.srv: Remove lynxos cases.
660 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
661 Remove.
662
c00094dc
SM
6632020-06-12 Simon Marchi <simon.marchi@efficios.com>
664
665 * README: Fix a few outdated or incoherent things.
666
6479bf85
HD
6672020-05-27 Hannes Domani <ssbssa@yahoo.de>
668
669 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
670 (win32_clear_inferiors): Use open_process_used.
671 (get_child_debug_event): Likewise.
672
bea571eb
MW
6732020-05-25 Michael Weghorn <m.weghorn@posteo.de>
674
675 PR gdbserver/25893
676 * linux-low.cc (linux_process_target::create_inferior),
677 lynx-low.cc (lynx_process_target::create_inferior),
678 win32-low.cc (win32_process_target::create_inferior): Use
679 construct_inferior_arguments instead of stringify_argv
680 to get string representation which properly escapes
681 special characters.
682 * server.cc (handle_v_run): Just pass empty program arg
683 as such, since any further processing is now handled via
684 construct_inferior_arguments.
685
ace6b919
MW
6862020-05-25 Michael Weghorn <m.weghorn@posteo.de>
687
688 * nto-low.cc (nto_process_target::create_inferior): Pass
689 argv to spawnp function as char **.
690
b69ca137
MW
6912020-05-25 Michael Weghorn <m.weghorn@posteo.de>
692
693 * server.cc (captured_main), (handle_v_run): No longer
694 insert extra NULL element to args vector.
695
51e2cfa2
PA
6962020-05-23 Pedro Alves <palves@redhat.com>
697
698 * gdb-safe-ctype.h: New.
699
8bbf0394
TBA
7002020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
701
702 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
703 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
704 (ia64_target::low_breakpoint_at): Ditto.
705
01370779
HD
7062020-05-15 Hannes Domani <ssbssa@yahoo.de>
707
708 * win32-i386-low.cc (i386_supports_z_point_type): Handle
709 Z_PACKET_HW_BP z_type.
710 (i386_insert_point): Handle raw_bkpt_type type.
711 (i386_remove_point): Likewise.
712
7d186bc0
HD
7132020-04-30 Hannes Domani <ssbssa@yahoo.de>
714
715 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
716 Add arch/i386.o.
717 * win32-arm-low.cc (arm_num_regs): New function.
718 (struct win32_target_ops): Use arm_num_regs.
719 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
720 processes.
721 (i386_get_thread_context): Likewise.
722 (i386_prepare_to_resume): Likewise.
723 (i386_thread_added): Likewise.
724 (i386_single_step): Likewise.
725 (i386_fetch_inferior_register): Likewise.
726 (i386_store_inferior_register): Likewise.
727 (i386_arch_setup): Likewise.
728 (i386_win32_num_regs): New function.
729 (struct win32_target_ops): Use i386_win32_num_regs.
730 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
731 processes.
732 (win32_require_context): Likewise.
733 (child_add_thread): Likewise.
734 (do_initial_child_stuff): Likewise.
735 (continue_one_thread): Likewise.
736 (win32_process_target::resume): Likewise.
737 (load_psapi): Likewise.
738 (win32_add_all_dlls): Likewise.
739 (maybe_adjust_pc): Likewise.
740 (win32_process_target::qxfer_siginfo): Likewise.
741 (initialize_low): Likewise.
742 * win32-low.h (struct win32_target_ops): Change num_regs to
743 callback function.
744
1eb39914
SM
7452020-04-27 Simon Marchi <simon.marchi@efficios.com>
746
747 * configure.ac: Remove check for fs_base/gs_base in
748 user_regs_struct.
749 * configure: Re-generate.
750 * config.in: Re-generate.
751 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
752 x86_store_gregset): Adjust.
753
51ac8e22
HD
7542020-04-22 Hannes Domani <ssbssa@yahoo.de>
755
756 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
757 comparison.
758
a010605f
TT
7592020-04-16 Tom Tromey <tromey@adacore.com>
760
761 * win32-low.cc (windows_nat::handle_access_violation): New
762 function.
763
e2275c6e
SM
7642020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
765
766 * win32-low.cc (get_child_debug_event): Fix format string warning.
767
73944e9f
TT
7682020-04-13 Tom Tromey <tom@tromey.com>
769
770 * server.h (gdb_fildes_t): Remove typedef.
771 * remote-utils.c (remote_desc, list_desc): Now int.
772 (INVALID_DESCRIPTOR): Remove.
773 (gdb_connected, remote_close)
774 (check_remote_input_interrupt_request): Update.
775 * utils.h (pfildes): Don't declare.
776 * utils.c (pfildes): Remove.
777
55d7aec8
TT
7782020-04-13 Tom Tromey <tom@tromey.com>
779
780 * server.h (handle_serial_event, handle_target_event): Update.
781 * server.c: Don't call initialize_event_loop.
782 (keep_processing_events): New global.
783 (handle_serial_event): Return void. Set keep_processing_events.
784 (handle_target_event): Return void.
785 (start_event_loop): Move from event-loop.c. Rewrite.
786 * remote-utils.c (handle_accept_event): Return void.
787 (reset_readchar): Use delete_timer.
788 (process_remaining): Return void.
789 (reschedule): Use create_timer.
790 * event-loop.h: Remove.
791 * event-loop.cc: Remove.
792 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
793
e487f994
TT
7942020-04-13 Tom Tromey <tom@tromey.com>
795
796 * server.c (invoke_async_signal_handlers)
797 (check_async_event_handlers, flush_streams, gdb_select): New
798 functions.
799
8ae8e197
TT
8002020-04-13 Tom Tromey <tom@tromey.com>
801
802 * configure: Rebuild.
803 * config.in: Rebuild.
804
360ad8b3
TT
8052020-04-08 Tom Tromey <tromey@adacore.com>
806
807 PR gdb/22992
808 * win32-low.c (child_continue): Call matching_pending_stop.
809 (get_child_debug_event): Call fetch_pending_stop. Push pending
810 stop when needed.
811
523d4f80
TT
8122020-04-08 Tom Tromey <tromey@adacore.com>
813
814 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
815 (win32_process_target::supports_stopped_by_sw_breakpoint):
816 Declare.
817 * win32-low.c (win32_supports_z_point_type): Always handle
818 Z_PACKET_SW_BP.
819 (win32_insert_point): Call insert_memory_breakpoint when needed.
820 (win32_remove_point): Call remove_memory_breakpoint when needed.
821 (win32_process_target::stopped_by_sw_breakpoint)
822 (win32_process_target::supports_stopped_by_sw_breakpoint): New
823 methods.
824 (win32_target_ops): Update.
825 (maybe_adjust_pc): New function.
826 (win32_wait): Call maybe_adjust_pc.
827
e54e5929
TT
8282020-04-08 Tom Tromey <tromey@adacore.com>
829
830 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
831 field.
832 * win32-i386-low.c (the_low_target): Update.
833 * win32-arm-low.c (the_low_target): Update.
834
d6225aff
TT
8352020-04-08 Tom Tromey <tromey@adacore.com>
836
837 * win32-low.h (win32_process_target::read_pc)
838 (win32_process_target::write_pc): Declare.
839 * win32-low.c (win32_process_target::read_pc)
840 (win32_process_target::write_pc): New methods.
841 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
842 functions.
843 (the_low_target): Update.
844 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
845 functions.
846 (the_low_target): Update.
847
2c1d95e8
TT
8482020-04-08 Tom Tromey <tromey@adacore.com>
849
850 * win32-low.c (win32_kill, get_child_debug_event): Use
851 wait_for_debug_event.
852
e758e19c
TT
8532020-04-08 Tom Tromey <tromey@adacore.com>
854
855 * win32-low.c (child_continue): Call continue_last_debug_event.
856
8d30e395
TT
8572020-04-08 Tom Tromey <tromey@adacore.com>
858
859 * win32-low.c (handle_exception): Remove.
860 (windows_nat::handle_ms_vc_exception): New function.
861 (get_child_debug_event): Add "continue_status" parameter.
862 Update.
863 (win32_wait): Update.
864
a816ba18
TT
8652020-04-08 Tom Tromey <tromey@adacore.com>
866
867 * win32-low.c (windows_nat::handle_load_dll): Rename from
868 handle_load_dll. No longer static.
869 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
870 No longer static.
871
d41b524f
TT
8722020-04-08 Tom Tromey <tromey@adacore.com>
873
874 * win32-low.c (handle_output_debug_string): Add parameter. Change
875 return type.
876 (win32_kill, get_child_debug_event): Update.
877
3c76026d
TT
8782020-04-08 Tom Tromey <tromey@adacore.com>
879
880 * win32-low.c (current_process_handle, current_process_id)
881 (main_thread_id, last_sig, current_event, siginfo_er): Move to
882 nat/windows-nat.c.
883
9d8679cc
TT
8842020-04-08 Tom Tromey <tromey@adacore.com>
885
886 * win32-low.c (get_image_name): Remove.
887 (handle_load_dll): Update.
888
28688adf
TT
8892020-04-08 Tom Tromey <tromey@adacore.com>
890
891 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
892 No longer static. Change parameters.
893 (child_add_thread, child_fetch_inferior_registers)
894 (child_store_inferior_registers, win32_resume)
895 (win32_get_tib_address): Update.
896
4834dad0
TT
8972020-04-08 Tom Tromey <tromey@adacore.com>
898
899 * win32-low.h (struct win32_target_ops): Use qualified names where
900 needed.
901 * win32-i386-low.c: Add "using namespace".
902 * win32-low.c: Add "using namespace".
903 * win32-arm-low.c: Add "using namespace".
904
65bafd5b
TT
9052020-04-08 Tom Tromey <tromey@adacore.com>
906
907 * win32-low.c (delete_thread_info): Don't call CloseHandle.
908
98a03287
TT
9092020-04-08 Tom Tromey <tromey@adacore.com>
910
911 * win32-low.c (win32_require_context, suspend_one_thread): Use
912 windows_thread_info::suspend.
913 (continue_one_thread): Use windows_thread_info::resume.
914 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
915
62fe396b
TT
9162020-04-08 Tom Tromey <tromey@adacore.com>
917
918 * win32-i386-low.c (update_debug_registers)
919 (i386_prepare_to_resume, i386_thread_added): Update.
920
e9534bd2
TT
9212020-04-08 Tom Tromey <tromey@adacore.com>
922
923 * win32-low.c (child_add_thread): Use new.
924 (delete_thread_info): Use delete.
925
ae1f8880
TT
9262020-04-08 Tom Tromey <tromey@adacore.com>
927
928 * win32-low.h (struct windows_thread_info): Remove.
929
e56f8ccb
TT
9302020-04-08 Tom Tromey <tromey@adacore.com>
931
932 * win32-low.h (struct windows_thread_info): Rename from
933 win32_thread_info. Remove typedef.
934 (struct win32_target_ops, win32_require_context): Update.
935 * win32-low.c (win32_get_thread_context)
936 (win32_set_thread_context, win32_prepare_to_resume)
937 (win32_require_context, thread_rec, child_add_thread)
938 (delete_thread_info, continue_one_thread)
939 (child_fetch_inferior_registers, child_store_inferior_registers)
940 (win32_resume, suspend_one_thread, win32_get_tib_address):
941 Update.
942 * win32-i386-low.c (update_debug_registers)
943 (win32_get_current_dr, i386_get_thread_context)
944 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
945 (i386_fetch_inferior_register, i386_store_inferior_register):
946 Update.
947 * win32-arm-low.c (arm_get_thread_context)
948 (arm_fetch_inferior_register, arm_store_inferior_register):
949 Update.
950
0dd7b52e
TBA
9512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
952
953 * linux-low.h (struct linux_target_ops): Remove.
954 (the_low_target): Remove.
955 * linux-x86-low.cc (the_low_target): Remove.
956 * linux-aarch64-low.cc (the_low_target): Ditto.
957 * linux-arm-low.cc (the_low_target): Ditto.
958 * linux-bfin-low.cc (the_low_target): Ditto.
959 * linux-cris-low.cc (the_low_target): Ditto.
960 * linux-crisv32-low.cc (the_low_target): Ditto.
961 * linux-ia64-low.cc (the_low_target): Ditto.
962 * linux-m32r-low.cc (the_low_target): Ditto.
963 * linux-m68k-low.cc (the_low_target): Ditto.
964 * linux-mips-low.cc (the_low_target): Ditto.
965 * linux-nios2-low.cc (the_low_target): Ditto.
966 * linux-ppc-low.cc (the_low_target): Ditto.
967 * linux-riscv-low.cc (the_low_target): Ditto.
968 * linux-s390-low.cc (the_low_target): Ditto.
969 * linux-sh-low.cc (the_low_target): Ditto.
970 * linux-sparc-low.cc (the_low_target): Ditto.
971 * linux-tic6x-low.cc (the_low_target): Ditto.
972 * linux-tile-low.cc (the_low_target): Ditto.
973 * linux-xtensa-low.cc (the_low_target): Ditto.
974
fc5ecdb6
TBA
9752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
976
977 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
978 linux target define the op by overriding the declaration in
979 process_stratum_target.
980
981 * linux-low.h (struct linux_target_ops): Remove the op.
982 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
983 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
984 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
985 (x86_get_ipa_tdesc_idx): Turn into...
986 (x86_target::get_ipa_tdesc_idx): ...this.
987 (the_low_target): Remove the op field.
988 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
989 (ppc_get_ipa_tdesc_idx): Turn into...
990 (ppc_target::get_ipa_tdesc_idx): ...this.
991 (the_low_target): Remove the op field.
992 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
993 (s390_get_ipa_tdesc_idx): Turn into...
994 (s390_target::get_ipa_tdesc_idx): ...this.
995 (the_low_target): Remove the op field.
996
9eedd27d
TBA
9972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
998
999 Turn the 'get_syscall_trapinfo' linux target op into a method
1000 of process_stratum_target.
1001
1002 * linux-low.h (struct linux_target_ops): Remove the op.
1003 (class linux_process_target) <get_syscall_trapinfo>
1004 <gdb_catch_this_syscall>
1005 <low_supports_catch_syscall>
1006 <low_get_syscall_trapinfo>: Declare.
1007 * linux-low.cc (get_syscall_trapinfo): Turn into...
1008 (linux_process_target::get_syscall_trapinfo): ...this.
1009 (linux_process_target::low_get_syscall_trapinfo): Define.
1010 (gdb_catch_this_syscall_p): Turn into...
1011 (linux_process_target::gdb_catch_this_syscall): ...this.
1012 (linux_process_target::low_supports_catch_syscall): Define.
1013
1014 Update the callers below.
1015
1016 (linux_process_target::wait_1)
1017 (linux_process_target::supports_catch_syscall)
1018
1019 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
1020 <low_get_syscall_trapinfo>: Declare.
1021 (x86_target::low_supports_catch_syscall): Define.
1022 (x86_get_syscall_trapinfo): Turn into...
1023 (x86_target::low_get_syscall_trapinfo): ...this.
1024 (the_low_target): Remove the op field.
1025 * linux-aarch64-low.cc (class aarch64_target)
1026 <low_supports_catch_syscall>
1027 <low_get_syscall_trapinfo>: Declare.
1028 (aarch64_target::low_supports_catch_syscall): Define.
1029 (aarch64_get_syscall_trapinfo): Turn into...
1030 (aarch64_target::low_get_syscall_trapinfo): ...this.
1031 (the_low_target): Remove the op field.
1032 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1033 <low_get_syscall_trapinfo>: Declare.
1034 (arm_target::low_supports_catch_syscall): Define.
1035 (arm_get_syscall_trapinfo): Turn into...
1036 (arm_target::low_get_syscall_trapinfo): ...this.
1037 (the_low_target): Remove the op field.
1038 * linux-ppc-low.cc (the_low_target): Remove the op field.
1039 * linux-s390-low.cc (the_low_target): Remove the op field.
1040
b31cdfa6
TBA
10412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1042
1043 Remove the 'supports_hardware_single_step' linux target op and
1044 override the process_stratum_target's op definition in
1045 linux_process_target to return true.
1046
1047 * linux-low.h (struct linux_target_ops): Remove the op.
1048 (class linux_process_target) <finish_step_over>
1049 <maybe_hw_step>: Declare.
1050 * linux-low.cc (can_hardware_single_step): Remove.
1051 (maybe_hw_step): Turn into...
1052 (linux_process_target::maybe_hw_step): ...this.
1053 (finish_step_over): Turn into...
1054 (linux_process_target::finish_step_over): ...this.
1055 (linux_process_target::supports_hardware_single_step): Update
1056 to return true.
1057
1058 Update the callers below.
1059
1060 (linux_process_target::single_step)
1061 (linux_process_target::resume_one_lwp_throw)
1062
1063 * linux-arm-low.cc (class arm_target)
1064 <supports_hardware_single_step>: Declare.
1065 (arm_supports_hardware_single_step): Turn into...
1066 (arm_target::supports_hardware_single_step): ...this.
1067 (the_low_target): Remove the op field.
1068 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1069 (the_low_target): Remove the op field.
1070 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1071 Remove.
1072 (the_low_target): Remove the op field.
1073 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1074 (the_low_target): Remove the op field.
1075 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1076 (the_low_target): Remove the op field.
1077 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1078 (the_low_target): Remove the op field.
1079 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1080 (the_low_target): Remove the op field.
1081 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1082 (the_low_target): Remove the op field.
1083 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1084 (the_low_target): Remove the op field.
1085 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1086 (the_low_target): Remove the op field.
1087 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1088 (the_low_target): Remove the op field.
1089 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1090 (the_low_target): Remove the op field.
1091 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1092 Remove.
1093 (the_low_target): Remove the op field.
1094
9cfd8715
TBA
10952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1096
1097 Turn the 'supports_range_stepping' linux target op into a method
1098 of linux_process_target.
1099
1100 * linux-low.h (struct linux_target_ops): Remove the op.
1101 (class linux_process_target) <low_supports_range_stepping>: Declare.
1102 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1103 Define.
1104 (linux_process_target::supports_range_stepping): Update the call
1105 site.
1106 * linux-x86-low.cc (class x86_target)
1107 <low_supports_range_stepping>: Declare.
1108 (x86_supports_range_stepping): Turn into...
1109 (x86_target::low_supports_range_stepping): ...this.
1110 (the_low_target): Remove the op field.
1111 * linux-aarch64-low.cc (class aarch64_target)
1112 <low_supports_range_stepping>: Declare.
1113 (aarch64_supports_range_stepping): Turn into...
1114 (aarch64_target::low_supports_range_stepping): ...this.
1115 (the_low_target): Remove the op field.
1116 * linux-arm-low.cc (the_low_target): Remove the op field.
1117 * linux-bfin-low.cc (the_low_target): Ditto.
1118 * linux-crisv32-low.cc (the_low_target): Ditto.
1119 * linux-m32r-low.cc (the_low_target): Ditto.
1120 * linux-m68k-low.cc (the_low_target): Ditto.
1121 * linux-ppc-low.cc (the_low_target): Ditto.
1122 * linux-s390-low.cc (the_low_target): Ditto.
1123 * linux-sh-low.cc (the_low_target): Ditto.
1124 * linux-tic6x-low.cc (the_low_target): Ditto.
1125 * linux-tile-low.cc (the_low_target): Ditto.
1126 * linux-xtensa-low.cc (the_low_target): Ditto.
1127
ab64c999
TBA
11282020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1129
1130 Remove the 'emit_ops' linux target ops and let the concrete
1131 linux target define the op by overriding the declaration of
1132 process_stratum_target.
1133
1134 * linux-low.h (struct linux_target_ops): Remove the op.
1135 (class linux_process_target) <emit_ops>: Remove.
1136 * linux-low.cc (linux_process_target::emit_ops): Remove.
1137 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1138 (x86_emit_ops): Turn into...
1139 (x86_target::emit_ops): ...this.
1140 (the_low_target): Remove the op field.
1141 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1142 (aarch64_emit_ops): Turn into...
1143 (aarch64_target::emit_ops): ...this.
1144 (the_low_target): Remove the op field.
1145 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1146 (ppc_emit_ops): Turn into...
1147 (ppc_target::emit_ops): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1150 (s390_emit_ops): Turn into...
1151 (s390_target::emit_ops): ...this.
1152 (the_low_target): Remove the op field.
1153 * linux-arm-low.cc (the_low_target): Remove the op field.
1154 * linux-bfin-low.cc (the_low_target): Ditto.
1155 * linux-crisv32-low.cc (the_low_target): Ditto.
1156 * linux-m32r-low.cc (the_low_target): Ditto.
1157 * linux-m68k-low.cc (the_low_target): Ditto.
1158 * linux-sh-low.cc (the_low_target): Ditto.
1159 * linux-tic6x-low.cc (the_low_target): Ditto.
1160 * linux-tile-low.cc (the_low_target): Ditto.
1161 * linux-xtensa-low.cc (the_low_target): Ditto.
1162
809a0c35
TBA
11632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1164
1165 Remove the 'install_fast_tracepoint_jump_pad' and
1166 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1167 concrete linux target define the ops by overriding the declarations
1168 of process_stratum_target.
1169
1170 * linux-low.h (struct linux_target_ops): Remove the ops.
1171 (class linux_process_target) <supports_fast_tracepoints>
1172 <install_fast_tracepoint_jump_pad>
1173 <get_min_fast_tracepoint_insn_len>: Remove.
1174 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1175 (linux_process_target::install_fast_tracepoint_jump_pad)
1176 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1177 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1178 <install_fast_tracepoint_jump_pad>
1179 <get_min_fast_tracepoint_insn_len>: Declare.
1180 (x86_target::supports_fast_tracepoints): Define.
1181 (x86_install_fast_tracepoint_jump_pad): Turn into...
1182 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1183 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1184 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1185 (the_low_target): Remove the op fields.
1186 * linux-aarch64-low.cc (class aarch64_target)
1187 <supports_fast_tracepoints>
1188 <install_fast_tracepoint_jump_pad>
1189 <get_min_fast_tracepoint_insn_len>: Declare.
1190 (aarch64_target::supports_fast_tracepoints): Define.
1191 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1192 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1193 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1194 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1195 (the_low_target): Remove the op fields.
1196 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1197 <install_fast_tracepoint_jump_pad>
1198 <get_min_fast_tracepoint_insn_len>: Declare.
1199 (ppc_target::supports_fast_tracepoints): Define.
1200 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1201 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1202 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1203 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1204 (the_low_target): Remove the op fields.
1205 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1206 <install_fast_tracepoint_jump_pad>
1207 <get_min_fast_tracepoint_insn_len>: Declare.
1208 (s390_target::supports_fast_tracepoints): Define.
1209 (s390_install_fast_tracepoint_jump_pad): Turn into...
1210 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1211 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1212 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1213 (the_low_target): Remove the op fields.
1214 * linux-arm-low.cc (the_low_target): Remove the op fields.
1215 * linux-bfin-low.cc (the_low_target): Ditto.
1216 * linux-crisv32-low.cc (the_low_target): Ditto.
1217 * linux-m32r-low.cc (the_low_target): Ditto.
1218 * linux-m68k-low.cc (the_low_target): Ditto.
1219 * linux-sh-low.cc (the_low_target): Ditto.
1220 * linux-tic6x-low.cc (the_low_target): Ditto.
1221 * linux-tile-low.cc (the_low_target): Ditto.
1222 * linux-xtensa-low.cc (the_low_target): Ditto.
1223
13e567af
TBA
12242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1225
1226 Turn the 'get_thread_area' linux target op into a method of
1227 process_stratum_target.
1228
1229 * linux-low.h (struct linux_target_ops): Remove the op.
1230 (class linux_process_target) <stuck_in_jump_pad>
1231 <linux_fast_tracepoint_collecting>
1232 <low_get_thread_area>: Declare.
1233 * linux-low.cc (supports_fast_tracepoints): Remove.
1234 (linux_fast_tracepoint_collecting): Turn into...
1235 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1236 (linux_process_target::low_get_thread_area): Define.
1237 (stuck_in_jump_pad_callback): Turn into...
1238 (linux_process_target::stuck_in_jump_pad): ...this.
1239
1240 Update the caller below.
1241
1242 (linux_process_target::stabilize_threads)
1243
1244 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1245 Declare.
1246 (x86_get_thread_area): Turn into...
1247 (x86_target::low_get_thread_area): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1250 Declare.
1251 (aarch64_get_thread_area): Turn into...
1252 (aarch64_target::low_get_thread_area): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1255 Declare.
1256 (ppc_get_thread_area): Turn into...
1257 (ppc_target::low_get_thread_area): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1260 Declare.
1261 (s390_get_thread_area): Turn into...
1262 (s390_target::low_get_thread_area): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-arm-low.cc (the_low_target): Remove the op field.
1265 * linux-bfin-low.cc (the_low_target): Ditto.
1266 * linux-crisv32-low.cc (the_low_target): Ditto.
1267 * linux-m32r-low.cc (the_low_target): Ditto.
1268 * linux-m68k-low.cc (the_low_target): Ditto.
1269 * linux-sh-low.cc (the_low_target): Ditto.
1270 * linux-tic6x-low.cc (the_low_target): Ditto.
1271 * linux-tile-low.cc (the_low_target): Ditto.
1272 * linux-xtensa-low.cc (the_low_target): Ditto.
1273
47f70aa7
TBA
12742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1275
1276 Remote the 'supports_tracepoints' linux target op and let the
1277 concrete linux target define it by overriding the op declared in
1278 process_stratum_target.
1279
1280 * linux-low.h (struct linux_target_ops): Remove the op.
1281 (class linux_process_target) <supports_tracepoints>: Remove.
1282 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1283 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1284 Declare.
1285 (x86_supports_tracepoints): Turn into...
1286 (x86_target::supports_tracepoints): ...this.
1287 (the_low_target): Remove the op field.
1288 * linux-aarch64-low.cc (class aarch64_target)
1289 <supports_tracepoints>: Declare.
1290 (aarch64_supports_tracepoints): Turn into...
1291 (aarch64_target::supports_tracepoints): ...this.
1292 (the_low_target): Remove the op field.
1293 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1294 Declare.
1295 (ppc_supports_tracepoints): Turn into...
1296 (ppc_target::supports_tracepoints): ...this.
1297 (the_low_target): Remove the op field.
1298 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1299 Declare.
1300 (s390_supports_tracepoints): Turn into...
1301 (s390_target::supports_tracepoints): ...this.
1302 (the_low_target): Remove the op field.
1303 * linux-arm-low.cc (the_low_target): Remove the op field.
1304 * linux-bfin-low.cc (the_low_target): Ditto.
1305 * linux-crisv32-low.cc (the_low_target): Ditto.
1306 * linux-m32r-low.cc (the_low_target): Ditto.
1307 * linux-m68k-low.cc (the_low_target): Ditto.
1308 * linux-sh-low.cc (the_low_target): Ditto.
1309 * linux-tic6x-low.cc (the_low_target): Ditto.
1310 * linux-tile-low.cc (the_low_target): Ditto.
1311 * linux-xtensa-low.cc (the_low_target): Ditto.
1312
a5b5da92
TBA
13132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1314
1315 Remove the 'process_qsupported' linux target op and let a concrete
1316 linux target define the op by overriding the op declaration in
1317 process_stratum_target.
1318
1319 * linux-low.h (struct linux_target_ops): Remove the op.
1320 (class linux_process_target) <process_qsupported>: Remove.
1321 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1322 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1323 (x86_linux_process_qsupported): Turn into...
1324 (x86_target::process_qsupported): ...this.
1325 (the_low_target): Remove the op field.
1326 * linux-aarch64-low.cc (the_low_target): Remove the op
1327 field.
1328 * linux-arm-low.cc (the_low_target): Ditto.
1329 * linux-bfin-low.cc (the_low_target): Ditto.
1330 * linux-crisv32-low.cc (the_low_target): Ditto.
1331 * linux-m32r-low.cc (the_low_target): Ditto.
1332 * linux-m68k-low.cc (the_low_target): Ditto.
1333 * linux-ppc-low.cc (the_low_target): Ditto.
1334 * linux-s390-low.cc (the_low_target): Ditto.
1335 * linux-sh-low.cc (the_low_target): Ditto.
1336 * linux-tic6x-low.cc (the_low_target): Ditto.
1337 * linux-tile-low.cc (the_low_target): Ditto.
1338 * linux-xtensa-low.cc (the_low_target): Ditto.
1339
d7599cc0
TBA
13402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1341
1342 Turn the 'prepare_to_resume' linux target op into a method of
1343 linux_process_target.
1344
1345 * linux-low.h (struct linux_target_ops): Remove the op.
1346 (class linux_process_target) <low_prepare_to_resume>: Declare.
1347 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1348 Define.
1349
1350 Update the callers below:
1351
1352 (linux_process_target::resume_one_lwp_throw)
1353 (linux_process_target::low_prepare_to_resume)
1354
1355 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1356 Declare.
1357 (x86_target::low_prepare_to_resume): Define.
1358 (the_low_target): Remove the op field.
1359 * linux-aarch64-low.cc (class aarch64_target)
1360 <low_prepare_to_resume>: Declare.
1361 (aarch64_target::low_prepare_to_resume): Define.
1362 (the_low_target): Remove the op field.
1363 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1364 Declare.
1365 (arm_prepare_to_resume): Turn into...
1366 (arm_target::low_prepare_to_resume): ...this.
1367 (the_low_target): Remove the op field.
1368 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1369 Declare.
1370 (mips_linux_prepare_to_resume): Turn into...
1371 (mips_target::low_prepare_to_resume): ...this.
1372 (the_low_target): Remove the op field.
1373 * linux-bfin-low.cc (the_low_target): Remove the op field.
1374 * linux-crisv32-low.cc (the_low_target): Ditto.
1375 * linux-m32r-low.cc (the_low_target): Ditto.
1376 * linux-m68k-low.cc (the_low_target): Ditto.
1377 * linux-ppc-low.cc (the_low_target): Ditto.
1378 * linux-s390-low.cc (the_low_target): Ditto.
1379 * linux-sh-low.cc (the_low_target): Ditto.
1380 * linux-tic6x-low.cc (the_low_target): Ditto.
1381 * linux-tile-low.cc (the_low_target): Ditto.
1382 * linux-xtensa-low.cc (the_low_target): Ditto.
1383
fd000fb3
TBA
13842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1385
1386 Turn the 'new_process', 'delete_process', 'new_thread',
1387 'delete_thread', and 'new_fork' linux target ops into methods
1388 of linux_process_target.
1389
1390 * linux-low.h (struct linux_target_ops): Remove the ops.
1391 (class linux_process_target) <add_linux_process>
1392 <add_lwp>
1393 <delete_lwp>
1394 <attach_lwp>
1395 <detach_one_lwp>
1396 <check_zombie_leaders>
1397 <filter_exit_event>
1398 <low_new_process>
1399 <low_delete_process>
1400 <low_new_thread>
1401 <low_delete_thread>
1402 <low_new_fork>: Declare.
1403 * linux-low.cc (delete_lwp): Turn into...
1404 (linux_process_target::delete_lwp): ...this.
1405 (linux_process_target::low_delete_thread): Define.
1406 (linux_add_process): Turn into...
1407 (linux_process_target::add_linux_process): ...this.
1408 (linux_process_target::low_new_process): Define.
1409 (linux_process_target::low_delete_process): Define.
1410 (linux_process_target::low_new_fork): Define.
1411 (add_lwp): Turn into...
1412 (linux_process_target::add_lwp): ...this.
1413 (linux_process_target::low_new_thread): Define.
1414 (linux_attach_lwp): Turn into...
1415 (linux_process_target::attach_lwp): ...this.
1416 (linux_detach_one_lwp): Turn into...
1417 (linux_process_target::detach_one_lwp): ...this.
1418 (linux_detach_lwp_callback): Remove and inline...
1419 (linux_process_target::detach): ...here.
1420 (check_zombie_leaders): Turn into...
1421 (linux_process_target::check_zombie_leaders): ...this.
1422 (filter_exit_event): Turn into...
1423 (linux_process_target::filter_exit_event): ...this.
1424
1425 Update the callers below.
1426
1427 (linux_process_target::handle_extended_wait)
1428 (linux_process_target::create_inferior)
1429 (attach_proc_task_lwp_callback)
1430 (linux_process_target::attach)
1431 (linux_process_target::detach)
1432 (linux_process_target::mourn)
1433 * thread-db.cc (attach_thread)
1434
1435 * linux-x86-low.cc (class x86_target) <low_new_process>
1436 <low_delete_process>
1437 <low_new_thread>
1438 <low_delete_thread>
1439 <low_new_fork>: Declare.
1440 (x86_linux_new_process): Turn into...
1441 (x86_target::low_new_process): ...this.
1442 (x86_linux_delete_process): Turn into...
1443 (x86_target::low_delete_process): ...this.
1444 (x86_target::low_new_thread): Define.
1445 (x86_target::low_delete_thread): Define.
1446 (x86_linux_new_fork): Turn into...
1447 (x86_target::low_new_fork): ...this.
1448 (the_low_target): Remove the op fields.
1449 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1450 <low_delete_process>
1451 <low_new_thread>
1452 <low_delete_thread>
1453 <low_new_fork>: Declare.
1454 (aarch64_linux_new_process): Turn into...
1455 (aarch64_target::low_new_process): ...this.
1456 (aarch64_linux_delete_process): Turn into...
1457 (aarch64_target::low_delete_process): ...this.
1458 (aarch64_target::low_new_thread): Define.
1459 (aarch64_target::low_delete_thread): Define.
1460 (aarch64_linux_new_fork): Turn into...
1461 (aarch64_target::low_new_fork): ...this.
1462 (the_low_target): Remove the op fields.
1463 * linux-arm-low.cc (class arm_target) <low_new_process>
1464 <low_delete_process>
1465 <low_new_thread>
1466 <low_delete_thread>
1467 <low_new_fork>: Declare.
1468 (arm_new_process): Turn into...
1469 (arm_target::low_new_process): ...this.
1470 (arm_delete_process): Turn into...
1471 (arm_target::low_delete_process): ...this.
1472 (arm_new_thread): Turn into...
1473 (arm_target::low_new_thread): ...this.
1474 (arm_delete_thread): Turn into...
1475 (arm_target::low_delete_thread): ...this.
1476 (arm_new_fork): Turn into...
1477 (arm_target::low_new_fork): ...this.
1478 (the_low_target): Remove the op fields.
1479 * linux-mips-low.cc (class mips_target) <low_new_process>
1480 <low_delete_process>
1481 <low_new_thread>
1482 <low_delete_thread>
1483 <low_new_fork>: Declare.
1484 (mips_linux_new_process): Turn into...
1485 (mips_target::low_new_process): ...this.
1486 (mips_linux_delete_process): Turn into...
1487 (mips_target::low_delete_process): ...this.
1488 (mips_linux_new_thread): Turn into...
1489 (mips_target::low_new_thread): ...this.
1490 (mips_linux_delete_thread): Turn into...
1491 (mips_target::low_delete_thread): ...this.
1492 (mips_linux_new_fork): Turn into...
1493 (mips_target::low_new_fork): ...this.
1494 (the_low_target): Remove the op fields.
1495 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1496 * linux-crisv32-low.cc (the_low_target): Ditto.
1497 * linux-m32r-low.cc (the_low_target): Ditto.
1498 * linux-m68k-low.cc (the_low_target): Ditto.
1499 * linux-ppc-low.cc (the_low_target): Ditto.
1500 * linux-s390-low.cc (the_low_target): Ditto.
1501 * linux-sh-low.cc (the_low_target): Ditto.
1502 * linux-tic6x-low.cc (the_low_target): Ditto.
1503 * linux-tile-low.cc (the_low_target): Ditto.
1504 * linux-xtensa-low.cc (the_low_target): Ditto.
1505
cb63de7c
TBA
15062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1507
1508 Turn the 'siginfo_fixup' linux target op into a method of
1509 linux_process_target.
1510
1511 * linux-low.h (struct linux_target_ops): Remove the op.
1512 (class linux_process_target) <siginfo_fixup>
1513 <low_siginfo_fixup>: Declare.
1514 * linux-low.cc (siginfo_fixup): Turn into...
1515 (linux_process_target::siginfo_fixup): ...this.
1516 (linux_process_target::low_siginfo_fixup): Define.
1517 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1518 (x86_siginfo_fixup): Turn into...
1519 (x86_target::low_siginfo_fixup): ...this.
1520 (the_low_target): Remove the op field.
1521 * linux-aarch64-low.cc (class aarch64_target):
1522 <low_siginfo_fixup>: Declare.
1523 (aarch64_linux_siginfo_fixup): Turn into...
1524 (aarch64_target::low_siginfo_fixup): ...this.
1525 (the_low_target): Remove the op field.
1526 * linux-arm-low.cc (the_low_target): Remove the op field.
1527 * linux-bfin-low.cc (the_low_target): Ditto.
1528 * linux-crisv32-low.cc (the_low_target): Ditto.
1529 * linux-m32r-low.cc (the_low_target): Ditto.
1530 * linux-m68k-low.cc (the_low_target): Ditto.
1531 * linux-mips-low.cc (the_low_target): Ditto.
1532 * linux-ppc-low.cc (the_low_target): Ditto.
1533 * linux-s390-low.cc (the_low_target): Ditto.
1534 * linux-sh-low.cc (the_low_target): Ditto.
1535 * linux-tic6x-low.cc (the_low_target): Ditto.
1536 * linux-tile-low.cc (the_low_target): Ditto.
1537 * linux-xtensa-low.cc (the_low_target): Ditto.
1538
b35db733
TBA
15392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1540
1541 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1542 linux target ops into methods of linux_process_target.
1543
1544 * linux-low.h (struct linux_target_ops): Remove the ops.
1545 (class linux_process_target) <low_collect_ptrace_register>
1546 <low_store_ptrace_register>: Declare.
1547 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1548 (linux_process_target::low_supply_ptrace_register): Define.
1549
1550 Update the callers below.
1551
1552 (linux_process_target::fetch_register)
1553 (linux_process_target::store_register)
1554
1555 * linux-x86-low.cc (the_low_target): Remove the op fields.
1556 * linux-aarch64-low.cc (the_low_target): Ditto.
1557 * linux-arm-low.cc (the_low_target): Ditto.
1558 * linux-bfin-low.cc (the_low_target): Ditto.
1559 * linux-crisv32-low.cc (the_low_target): Ditto.
1560 * linux-m32r-low.cc (the_low_target): Ditto.
1561 * linux-m68k-low.cc (the_low_target): Ditto.
1562 * linux-sh-low.cc (the_low_target): Ditto.
1563 * linux-sparc-low.cc (the_low_target): Ditto.
1564 * linux-tic6x-low.cc (the_low_target): Ditto.
1565 * linux-tile-low.cc (the_low_target): Ditto.
1566 * linux-xtensa-low.cc (the_low_target): Ditto.
1567 * linux-mips-low.cc (class mips_target)
1568 <low_collect_ptrace_register>
1569 <low_supply_ptrace_register>: Declare.
1570 (mips_collect_ptrace_register): Turn into ...
1571 (mips_target::low_collect_ptrace_register): ...this.
1572 (mips_supply_ptrace_register): Turn into...
1573 (mips_target::low_supply_ptrace_register): ...this.
1574 (the_low_target): Remove the op fields.
1575 * linux-ppc-low.cc (class ppc_target)
1576 <low_collect_ptrace_register>
1577 <low_supply_ptrace_register>: Declare.
1578 (ppc_collect_ptrace_register): Turn into ...
1579 (ppc_target::low_collect_ptrace_register): ...this.
1580 (ppc_supply_ptrace_register): Turn into ...
1581 (ppc_target::low_supply_ptrace_register): ...this.
1582 (ppc_fill_gregset): Update for the calls to
1583 low_collect_ptrace_register.
1584 (the_low_target): Remove the op fields.
1585 * linux-s390-low.cc (class s390_target)
1586 <low_collect_ptrace_register>
1587 <low_supply_ptrace_register>: Declare.
1588 (s390_collect_ptrace_register): Turn into ...
1589 (s390_target::low_collect_ptrace_register): ...this.
1590 (s390_supply_ptrace_register): Turn into ...
1591 (s390_target::low_supply_ptrace_register): ...this.
1592 (s390_fill_gregset): Update for the calls to
1593 low_collect_ptrace_register.
1594 (the_low_target): Remove the op fields.
1595
ac1bbaca
TBA
15962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1597
1598 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1599 target ops into methods of linux_process_target.
1600
1601 * linux-low.h (struct linux_target_ops): Remove the ops.
1602 (class linux_process_target) <check_stopped_by_watchpoint>
1603 <low_stopped_by_watchpoint>
1604 <low_stopped_data_address>: Declare.
1605 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1606 (linux_process_target::check_stopped_by_watchpoint): ...this.
1607 (linux_process_target::low_stopped_by_watchpoint): Define.
1608 (linux_process_target::low_stopped_data_address): Define.
1609 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1610 <low_stopped_data_address>: Declare.
1611 (x86_stopped_by_watchpoint): Turn into...
1612 (x86_target::low_stopped_by_watchpoint): ...this.
1613 (x86_stopped_data_address): Turn into...
1614 (x86_target::low_stopped_data_address): ...this.
1615 (the_low_target): Remove the op fields.
1616 * linux-aarch64-low.cc (class aarch64_target)
1617 <low_stopped_by_watchpoint>
1618 <low_stopped_data_address>: Declare.
1619 (aarch64_stopped_by_watchpoint): Turn into...
1620 (aarch64_target::low_stopped_by_watchpoint): ...this.
1621 (aarch64_stopped_data_address): Turn into...
1622 (aarch64_target::low_stopped_data_address): ...this.
1623 (the_low_target): Remove the op fields.
1624 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1625 <low_stopped_data_address>: Declare.
1626 (arm_stopped_by_watchpoint): Turn into...
1627 (arm_target::low_stopped_by_watchpoint): ...this.
1628 (arm_stopped_data_address): Turn into...
1629 (arm_target::low_stopped_data_address): ...this.
1630 (the_low_target): Remove the op fields.
1631 * linux-crisv32-low.cc (class crisv32_target)
1632 <low_stopped_by_watchpoint>
1633 <low_stopped_data_address>: Declare.
1634 (cris_stopped_by_watchpoint): Turn into...
1635 (crisv32_target::low_stopped_by_watchpoint): ...this.
1636 (cris_stopped_data_address): Turn into...
1637 (crisv32_target::low_stopped_data_address): ...this.
1638 (the_low_target): Remove the op fields.
1639 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1640 <low_stopped_data_address>: Declare.
1641 (mips_stopped_by_watchpoint): Turn into...
1642 (mips_target::low_stopped_by_watchpoint): ...this.
1643 (mips_stopped_data_address): Turn into...
1644 (mips_target::low_stopped_data_address): ...this.
1645 (the_low_target): Remove the op fields.
1646 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1647 * linux-m32r-low.cc (the_low_target): Ditto.
1648 * linux-m68k-low.cc (the_low_target): Ditto.
1649 * linux-ppc-low.cc (the_low_target): Ditto.
1650 * linux-s390-low.cc (the_low_target): Ditto.
1651 * linux-sh-low.cc (the_low_target): Ditto.
1652 * linux-sparc-low.cc (the_low_target): Ditto.
1653 * linux-tic6x-low.cc (the_low_target): Ditto.
1654 * linux-tile-low.cc (the_low_target): Ditto.
1655 * linux-xtensa-low.cc (the_low_target): Ditto.
1656
9db9aa23
TBA
16572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1658
1659 Turn the 'insert_point' and 'remove_point' linux target ops into
1660 methods of linux_process_target.
1661
1662 * linux-low.h (struct linux_target_ops): Remove the ops.
1663 (class linux_process_target) <low_insert_point>
1664 <low_remove_point>: Declare.
1665 * linux-low.cc (linux_process_target::low_insert_point)
1666 (linux_process_target::low_remove_point): Define.
1667 (linux_process_target::insert_point)
1668 (linux_process_target::remove_point): Update for calls to
1669 low_insert_point and low_remove_point.
1670 * linux-x86-low.cc (class x86_target) <low_insert_point>
1671 <low_remove_point>: Declare.
1672 (x86_insert_point): Turn into...
1673 (x86_target::low_insert_point): ...this.
1674 (x86_remove_point): Turn into...
1675 (x86_target::low_remove_point): ...this.
1676 (the_low_target): Remove the op fields.
1677 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1678 <low_remove_point>: Declare.
1679 (aarch64_insert_point): Turn into...
1680 (aarch64_target::low_insert_point): ...this.
1681 (aarch64_remove_point): Turn into...
1682 (aarch64_target::low_remove_point): ...this.
1683 (the_low_target): Remove the op fields.
1684 * linux-arm-low.cc (class arm_target) <low_insert_point>
1685 <low_remove_point>: Declare.
1686 (arm_insert_point): Turn into...
1687 (arm_target::low_insert_point): ...this.
1688 (arm_remove_point): Turn into...
1689 (arm_target::low_remove_point): ...this.
1690 (the_low_target): Remove the op fields.
1691 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1692 <low_remove_point>: Declare.
1693 (crisv32_insert_point): Turn into...
1694 (crisv32_target::low_insert_point): ...this.
1695 (crisv32_remove_point): Turn into...
1696 (crisv32_target::low_remove_point): ...this.
1697 (the_low_target): Remove the op fields.
1698 * linux-mips-low.cc (class mips_target) <low_insert_point>
1699 <low_remove_point>: Declare.
1700 (mips_insert_point): Turn into...
1701 (mips_target::low_insert_point): ...this.
1702 (mips_remove_point): Turn into...
1703 (mips_target::low_remove_point): ...this.
1704 (the_low_target): Remove the op fields.
1705 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1706 <low_remove_point>: Declare.
1707 (ppc_insert_point): Turn into...
1708 (ppc_target::low_insert_point): ...this.
1709 (ppc_remove_point): Turn into...
1710 (ppc_target::low_remove_point): ...this.
1711 (the_low_target): Remove the op fields.
1712 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1713 * linux-m32r-low.cc (the_low_target): Ditto.
1714 * linux-m68k-low.cc (the_low_target): Ditto.
1715 * linux-s390-low.cc (the_low_target): Ditto.
1716 * linux-sh-low.cc (the_low_target): Ditto.
1717 * linux-sparc-low.cc (the_low_target): Ditto.
1718 * linux-tic6x-low.cc (the_low_target): Ditto.
1719 * linux-tile-low.cc (the_low_target): Ditto.
1720 * linux-xtensa-low.cc (the_low_target): Ditto.
1721
007c9b97
TBA
17222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1723
1724 Remove the 'supports_z_point_type' linux target op and let the
1725 concrete linux target define it by overriding the op declared in
1726 process_stratum_target.
1727
1728 * linux-low.cc (linux_process_target::supports_z_point_type):
1729 Remove.
1730 * linux-low.h (struct linux_target_ops): Remove the op.
1731 (class linux_process_target) <supports_z_point_type>: Remove.
1732 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1733 Declare.
1734 (x86_supports_z_point_type): Turn into...
1735 (x86_target::supports_z_point_type): ...this.
1736 (the_low_target): Remove the op field.
1737 * linux-aarch64-low.cc (class aarch64_target)
1738 <supports_z_point_type>: Declare.
1739 (aarch64_supports_z_point_type): Turn into...
1740 (aarch64_target::supports_z_point_type): ...this.
1741 (the_low_target): Remove the op field.
1742 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1743 Declare.
1744 (arm_supports_z_point_type): Turn into...
1745 (arm_target::supports_z_point_type): ...this.
1746 (the_low_target): Remove the op field.
1747 * linux-crisv32-low.cc (class crisv32_target)
1748 <supports_z_point_type>: Declare.
1749 (cris_supports_z_point_type): Turn into...
1750 (crisv32_target::supports_z_point_type): ...this.
1751 (the_low_target): Remove the op field.
1752 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1753 Declare.
1754 (mips_supports_z_point_type): Turn into...
1755 (mips_target::supports_z_point_type): ...this.
1756 (the_low_target): Remove the op field.
1757 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1758 Declare.
1759 (ppc_supports_z_point_type): Turn into...
1760 (ppc_target::supports_z_point_type): ...this.
1761 (the_low_target): Remove the op field.
1762 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1763 Declare.
1764 (s390_supports_z_point_type): Turn into...
1765 (s390_target::supports_z_point_type): ...this.
1766 (the_low_target): Remove the op field.
1767 * linux-bfin-low.cc (the_low_target): Remove the op field.
1768 * linux-m32r-low.cc (the_low_target): Ditto.
1769 * linux-m68k-low.cc (the_low_target): Ditto.
1770 * linux-sh-low.cc (the_low_target): Ditto.
1771 * linux-sparc-low.cc (the_low_target): Ditto.
1772 * linux-tic6x-low.cc (the_low_target): Ditto.
1773 * linux-tile-low.cc (the_low_target): Ditto.
1774 * linux-xtensa-low.cc (the_low_target): Ditto.
1775
d7146cda
TBA
17762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1777
1778 Turn the 'breakpoint_at' linux target op into a method of
1779 linux_process_target.
1780
1781 * linux-low.h (struct linux_target_ops): Remove the op.
1782 (class linux_process_target) <low_breakpoint_at>: Declare.
1783
1784 Update the callers below:
1785
1786 * linux-low.cc (linux_process_target::save_stop_reason)
1787 (linux_process_target::thread_still_has_status_pending)
1788 (linux_process_target::wait_1)
1789
1790 * linux-x86-low.cc (class x86_target)
1791 <low_breakpoint_at>: Declare.
1792 (x86_breakpoint_at): Turn into...
1793 (x86_target::low_breakpoint_at): ...this.
1794 (the_low_target): Remove the op field.
1795 * linux-aarch64-low.cc (class aarch64_target)
1796 <low_breakpoint_at>: Declare.
1797 (aarch64_breakpoint_at): Turn into...
1798 (aarch64_target::low_breakpoint_at): ...this.
1799 (the_low_target): Remove the op field.
1800 * linux-arm-low.cc (class arm_target)
1801 <low_breakpoint_at>: Declare.
1802 (arm_target::low_breakpoint_at): Define.
1803 (the_low_target): Remove the op field.
1804 * linux-bfin-low.cc (class bfin_target)
1805 <low_breakpoint_at>: Declare.
1806 (bfin_breakpoint_at): Turn into...
1807 (bfin_target::low_breakpoint_at): ...this.
1808 (the_low_target): Remove the op field.
1809 * linux-cris-low.cc (class cris_target)
1810 <low_breakpoint_at>: Declare.
1811 (cris_breakpoint_at): Turn into...
1812 (cris_target::low_breakpoint_at): ...this.
1813 (the_low_target): Remove the op field.
1814 * linux-crisv32-low.cc (class crisv32_target)
1815 <low_breakpoint_at>: Declare.
1816 (crisv32_breakpoint_at): Turn into...
1817 (crisv32_target::low_breakpoint_at): ...this.
1818 (the_low_target): Remove the op field.
1819 * linux-ia64-low.cc (class ia64_target)
1820 <low_breakpoint_at>: Declare.
1821 (ia64_target::low_breakpoint_at): Define.
1822 * linux-m32r-low.cc (class m32r_target)
1823 <low_breakpoint_at>: Declare.
1824 (m32r_breakpoint_at): Turn into...
1825 (m32r_target::low_breakpoint_at): ...this.
1826 (the_low_target): Remove the op field.
1827 * linux-m68k-low.cc (class m68k_target)
1828 <low_breakpoint_at>: Declare.
1829 (m68k_breakpoint_at): Turn into...
1830 (m68k_target::low_breakpoint_at): ...this.
1831 (the_low_target): Remove the op field.
1832 * linux-mips-low.cc (class mips_target)
1833 <low_breakpoint_at>: Declare.
1834 (mips_breakpoint_at): Turn into...
1835 (mips_target::low_breakpoint_at): ...this.
1836 (the_low_target): Remove the op field.
1837 * linux-nios2-low.cc (class nios2_target)
1838 <low_breakpoint_at>: Declare.
1839 (nios2_breakpoint_at): Turn into...
1840 (nios2_target::low_breakpoint_at): ...this.
1841 (the_low_target): Remove the op field.
1842 * linux-ppc-low.cc (class ppc_target)
1843 <low_breakpoint_at>: Declare.
1844 (ppc_breakpoint_at): Turn into...
1845 (ppc_target::low_breakpoint_at): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-riscv-low.cc (class riscv_target)
1848 <low_breakpoint_at>: Declare.
1849 (riscv_breakpoint_at): Turn into...
1850 (riscv_target::low_breakpoint_at): ...this.
1851 (the_low_target): Remove the op field.
1852 * linux-s390-low.cc (class s390_target)
1853 <low_breakpoint_at>: Declare.
1854 (s390_breakpoint_at): Turn into...
1855 (s390_target::low_breakpoint_at): ...this.
1856 (the_low_target): Remove the op field.
1857 * linux-sh-low.cc (class sh_target)
1858 <low_breakpoint_at>: Declare.
1859 (sh_breakpoint_at): Turn into...
1860 (sh_target::low_breakpoint_at): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-sparc-low.cc (class sparc_target)
1863 <low_breakpoint_at>: Declare.
1864 (sparc_breakpoint_at): Turn into...
1865 (sparc_target::low_breakpoint_at): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-tic6x-low.cc (class tic6x_target)
1868 <low_breakpoint_at>: Declare.
1869 (tic6x_breakpoint_at): Turn into...
1870 (tic6x_target::low_breakpoint_at): ...this.
1871 (the_low_target): Remove the op field.
1872 * linux-tile-low.cc (class tile_target)
1873 <low_breakpoint_at>: Declare.
1874 (tile_breakpoint_at): Turn into...
1875 (tile_target::low_breakpoint_at): ...this.
1876 (the_low_target): Remove the op field.
1877 * linux-xtensa-low.cc (class xtensa_target)
1878 <low_breakpoint_at>: Declare.
1879 (xtensa_breakpoint_at): Turn into...
1880 (xtensa_target::low_breakpoint_at): ...this.
1881 (the_low_target): Remove the op field.
1882
d4807ea2
TBA
18832020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1884
1885 Turn the 'decr_pc_after_break' linux_target_ops field into
1886 a method of linux_process_target.
1887
1888 * linux-low.h (struct linux_target_ops)
1889 <decr_pc_after_break>: Remove.
1890 (class linux_process_target) <low_decr_pc_after_break>: New method
1891 declaration.
1892 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1893 New method implementation.
1894
1895 Update the users below.
1896
1897 (linux_process_target::save_stop_reason)
1898 (linux_process_target::wait_1)
1899 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1900 New declaration.
1901 (x86_target::low_decr_pc_after_break): New method implementation.
1902 (the_low_target): Remove the field.
1903 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1904 New declaration.
1905 (bfin_target::low_decr_pc_after_break): New method implementation.
1906 (the_low_target): Remove the field.
1907 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1908 New declaration.
1909 (m68k_target::low_decr_pc_after_break): New method implementation.
1910 (the_low_target): Remove the field.
1911 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1912 New declaration.
1913 (s390_target::low_decr_pc_after_break): New method implementation.
1914 (the_low_target): Remove the field.
1915 * linux-aarch64-low.cc (the_low_target): Remove the field.
1916 * linux-arm-low.cc (the_low_target): Remove the field.
1917 * linux-cris-low.cc (the_low_target): Remove the field.
1918 * linux-crisv32-low.cc (the_low_target): Remove the field.
1919 * linux-m32r-low.cc (the_low_target): Remove the field.
1920 * linux-mips-low.cc (the_low_target): Remove the field.
1921 * linux-nios2-low.cc (the_low_target): Remove the field.
1922 * linux-ppc-low.cc (the_low_target): Remove the field.
1923 * linux-riscv-low.cc (the_low_target): Remove the field.
1924 * linux-sh-low.cc (the_low_target): Remove the field.
1925 * linux-sparc-low.cc (the_low_target): Remove the field.
1926 * linux-tic6x-low.cc (the_low_target): Remove the field.
1927 * linux-tile-low.cc (the_low_target): Remove the field.
1928 * linux-xtensa-low.cc (the_low_target): Remove the field.
1929
7582c77c
TBA
19302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1931
1932 Remove the 'supports_software_single_step' linux target op and let
1933 the concrete linux target define it by overriding the op in
1934 process_stratum_target.
1935 Turn the 'get_next_pcs' linux target op into a method of
1936 linux_process_target.
1937
1938 * linux-low.h (struct linux_target_ops): Remove the ops.
1939 (class linux_process_target) <supports_software_single_step>:
1940 Remove.
1941 <low_get_next_pcs>: Declare.
1942 * linux-low.cc (can_software_single_step): Remove.
1943 (linux_process_target::low_get_next_pcs): Define.
1944 (linux_process_target::supports_software_single_step): Remove.
1945
1946 Update the callers below.
1947
1948 (linux_process_target::handle_extended_wait)
1949 (linux_process_target::wait_1)
1950 (linux_process_target::install_software_single_step_breakpoints)
1951 (linux_process_target::single_step)
1952 (linux_process_target::thread_needs_step_over)
1953 (linux_process_target::proceed_one_lwp)
1954 (linux_process_target::supports_range_stepping)
1955
1956 * linux-x86-low.cc (the_low_target): Remove the op field.
1957 * linux-aarch64-low.cc (the_low_target): Ditto.
1958 * linux-bfin-low.cc (the_low_target): Ditto.
1959 * linux-cris-low.cc (the_low_target): Ditto.
1960 * linux-crisv32-low.cc (the_low_target): Ditto.
1961 * linux-m32r-low.cc (the_low_target): Ditto.
1962 * linux-m68k-low.cc (the_low_target): Ditto.
1963 * linux-mips-low.cc (the_low_target): Ditto.
1964 * linux-nios2-low.cc (the_low_target): Ditto.
1965 * linux-ppc-low.cc (the_low_target): Ditto.
1966 * linux-riscv-low.cc (the_low_target): Ditto.
1967 * linux-s390-low.cc (the_low_target): Ditto.
1968 * linux-sh-low.cc (the_low_target): Ditto.
1969 * linux-sparc-low.cc (the_low_target): Ditto.
1970 * linux-tic6x-low.cc (the_low_target): Ditto.
1971 * linux-tile-low.cc (the_low_target): Ditto.
1972 * linux-xtensa-low.cc (the_low_target): Ditto.
1973 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1974 <supports_software_single_step>: Declare.
1975 (arm_target::supports_software_single_step): Define.
1976 (arm_gdbserver_get_next_pcs): Turn into...
1977 (arm_target::low_get_next_pcs): ...this.
1978 (the_low_target): Remove the op field.
1979
3ca4edb6
TBA
19802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1981
1982 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1983 the concrete linux target define it by overriding the op
1984 in process_stratum_target.
1985
1986 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1987 Remove.
1988 * linux-low.h (struct linux_target_ops): Remove the op.
1989 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1990 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1991 Declare.
1992 (x86_sw_breakpoint_from_kind): Turn into...
1993 (x86_target::sw_breakpoint_from_kind): ...this.
1994 (the_low_target): Remove the op field.
1995 * linux-aarch64-low.cc (class aarch64_target)
1996 <sw_breakpoint_from_kind>: Declare.
1997 (aarch64_sw_breakpoint_from_kind): Turn into...
1998 (aarch64_target::sw_breakpoint_from_kind): ...this.
1999 (the_low_target): Remove the op field.
2000 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
2001 Declare.
2002 (arm_target::sw_breakpoint_from_kind): Define.
2003 (the_low_target): Remove the op field.
2004 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
2005 Declare.
2006 (bfin_sw_breakpoint_from_kind): Turn into...
2007 (bfin_target::sw_breakpoint_from_kind): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
2010 Declare.
2011 (cris_sw_breakpoint_from_kind): Turn into...
2012 (cris_target::sw_breakpoint_from_kind): ...this.
2013 (the_low_target): Remove the op field.
2014 * linux-crisv32-low.cc (class crisv32_target)
2015 <sw_breakpoint_from_kind>: Declare.
2016 (cris_sw_breakpoint_from_kind): Turn into...
2017 (crisv32_target::sw_breakpoint_from_kind): ...this.
2018 (the_low_target): Remove the op field.
2019 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
2020 Declare.
2021 (ia64_target::sw_breakpoint_from_kind): Define.
2022 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2023 Declare.
2024 (m32r_sw_breakpoint_from_kind): Turn into...
2025 (m32r_target::sw_breakpoint_from_kind): ...this.
2026 (the_low_target): Remove the op field.
2027 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2028 Declare.
2029 (m68k_sw_breakpoint_from_kind): Turn into...
2030 (m68k_target::sw_breakpoint_from_kind): ...this.
2031 (the_low_target): Remove the op field.
2032 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2033 Declare.
2034 (mips_sw_breakpoint_from_kind): Turn into...
2035 (mips_target::sw_breakpoint_from_kind): ...this.
2036 (the_low_target): Remove the op field.
2037 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2038 Declare.
2039 (nios2_sw_breakpoint_from_kind): Turn into...
2040 (nios2_target::sw_breakpoint_from_kind): ...this.
2041 (the_low_target): Remove the op field.
2042 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2043 Declare.
2044 (ppc_sw_breakpoint_from_kind): Turn into...
2045 (ppc_target::sw_breakpoint_from_kind): ...this.
2046 (the_low_target): Remove the op field.
2047 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2048 Declare.
2049 (riscv_sw_breakpoint_from_kind): Turn into...
2050 (riscv_target::sw_breakpoint_from_kind): ...this.
2051 (the_low_target): Remove the op field.
2052 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2053 Declare.
2054 (s390_sw_breakpoint_from_kind): Turn into...
2055 (s390_target::sw_breakpoint_from_kind): ...this.
2056 (the_low_target): Remove the op field.
2057 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2058 Declare.
2059 (sh_sw_breakpoint_from_kind): Turn into...
2060 (sh_target::sw_breakpoint_from_kind): ...this.
2061 (the_low_target): Remove the op field.
2062 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2063 Declare.
2064 (sparc_sw_breakpoint_from_kind): Turn into...
2065 (sparc_target::sw_breakpoint_from_kind): ...this.
2066 (the_low_target): Remove the op field.
2067 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2068 Declare.
2069 (tic6x_sw_breakpoint_from_kind): Turn into...
2070 (tic6x_target::sw_breakpoint_from_kind): ...this.
2071 (the_low_target): Remove the op field.
2072 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2073 Declare.
2074 (tile_sw_breakpoint_from_kind): Turn into...
2075 (tile_target::sw_breakpoint_from_kind): ...this.
2076 (the_low_target): Remove the op field.
2077 * linux-xtensa-low.cc (class xtensa_target)
2078 <sw_breakpoint_from_kind>: Declare.
2079 (xtensa_sw_breakpoint_from_kind): Turn into...
2080 (xtensa_target::sw_breakpoint_from_kind): ...this.
2081 (the_low_target): Remove the op field.
2082
06250e4e
TBA
20832020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2084
2085 Remove the 'breakpoint_kind_from_pc' and
2086 'breakpoint_kind_from_current_state' linux target ops, and let the
2087 concrete linux target define them by overriding the ops of
2088 process_stratum_target.
2089
2090 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2091 Remove.
2092 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2093 * linux-low.h (struct linux_target_ops): Remove ops.
2094 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2095 <breakpoint_kind_from_current_state>: Remove.
2096 * linux-x86-low.cc (the_low_target): Remove the op fields.
2097 * linux-bfin-low.cc (the_low_target): Ditto.
2098 * linux-cris-low.cc (the_low_target): Ditto.
2099 * linux-crisv32-low.cc (the_low_target): Ditto.
2100 * linux-m32r-low.cc (the_low_target): Ditto.
2101 * linux-m68k-low.cc (the_low_target): Ditto.
2102 * linux-mips-low.cc (the_low_target): Ditto.
2103 * linux-nios2-low.cc (the_low_target): Ditto.
2104 * linux-ppc-low.cc (the_low_target): Ditto.
2105 * linux-s390-low.cc (the_low_target): Ditto.
2106 * linux-sh-low.cc (the_low_target): Ditto.
2107 * linux-sparc-low.cc (the_low_target): Ditto.
2108 * linux-tic6x-low.cc (the_low_target): Ditto.
2109 * linux-tile-low.cc (the_low_target): Ditto.
2110 * linux-xtensa-low.cc (the_low_target): Ditto.
2111 * linux-aarch64-low.cc (class aarch64_target)
2112 <breakpoint_kind_from_pc>
2113 <breakpoint_kind_from_current_state>: Declare.
2114 (aarch64_breakpoint_kind_from_pc): Turn into...
2115 (aarch64_target::breakpoint_kind_from_pc): ...this.
2116 (aarch64_breakpoint_kind_from_current_state): Turn into...
2117 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2118 (the_low_target): Remove the op fields.
2119 * linux-arm-low.cc (class arm_target):
2120 <breakpoint_kind_from_pc>
2121 <breakpoint_kind_from_current_state>: Declare.
2122 (arm_target::breakpoint_kind_from_pc): Define.
2123 (arm_target::breakpoint_kind_from_current_state): Define.
2124 (the_low_target): Remove the op fields.
2125 * linux-riscv-low.cc (class riscv_target):
2126 <breakpoint_kind_from_pc>: Declare.
2127 (riscv_breakpoint_kind_from_pc): Turn into...
2128 (riscv_target::breakpoint_kind_from_pc): ...this.
2129 (the_low_target): Remove the op fields.
2130
bf9ae9d8
TBA
21312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2132
2133 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2134 of linux_process_target.
2135
2136 * linux-low.h (struct linux_target_ops): Remove the ops.
2137 (class linux_process_target) <low_supports_breakpoints>
2138 <low_get_pc>
2139 <low_set_pc>: Declare.
2140 * linux-low.cc (supports_breakpoints): Turn into...
2141 (linux_process_target::low_supports_breakpoints): ...this.
2142 (linux_process_target::low_get_pc): Define.
2143 (linux_process_target::low_set_pc): Define.
2144
2145 Update the callers below.
2146
2147 (linux_process_target::get_pc)
2148 (linux_process_target::save_stop_reason)
2149 (linux_process_target::maybe_move_out_of_jump_pad)
2150 (linux_process_target::wait_1)
2151 (linux_process_target::resume_one_lwp_throw)
2152 (linux_process_target::resume)
2153 (linux_process_target::proceed_all_lwps)
2154 (linux_process_target::read_pc)
2155 (linux_process_target::write_pc)
2156
2157 * linux-x86-low.cc (class linux_process_target)
2158 <low_supports_breakpoints>
2159 <low_get_pc>
2160 <low_set_pc>: Declare.
2161 (x86_target::low_supports_breakpoints): Define.
2162 (x86_get_pc): Turn into...
2163 (x86_target::low_get_pc): ...this.
2164 (x86_set_pc): Turn into...
2165 (x86_target::low_set_pc): ...this.
2166 (the_low_target): Remove the op fields.
2167 * linux-arm-low.cc (class arm_target)
2168 <low_supports_breakpoints>
2169 <low_get_pc>
2170 <low_set_pc>: Declare.
2171 (arm_target::low_supports_breakpoints)
2172 (arm_target::low_get_pc)
2173 (arm_target::low_set_pc): Define.
2174 (the_low_target): Remove the op fields.
2175 * linux-bfin-low.cc (class bfin_target)
2176 <low_supports_breakpoints>
2177 <low_get_pc>
2178 <low_set_pc>: Declare.
2179 (bfin_target::low_supports_breakpoints)
2180 (bfin_target::low_get_pc)
2181 (bfin_target::low_set_pc): Define.
2182 (the_low_target): Remove the op fields.
2183 * linux-cris-low.cc (class cris_target)
2184 <low_supports_breakpoints>
2185 <low_get_pc>
2186 <low_set_pc>: Declare.
2187 (cris_target::low_supports_breakpoints)
2188 (cris_target::low_get_pc)
2189 (cris_target::low_set_pc): Define.
2190 (the_low_target): Remove the op fields.
2191 * linux-crisv32-low.cc (class crisv32_target)
2192 <low_supports_breakpoints>
2193 <low_get_pc>
2194 <low_set_pc>: Declare.
2195 (crisv32_target::low_supports_breakpoints)
2196 (crisv32_target::low_get_pc)
2197 (crisv32_target::low_set_pc): Define.
2198 (the_low_target): Remove the op fields.
2199 * linux-m32r-low.cc (class m32r_target)
2200 <low_supports_breakpoints>
2201 <low_get_pc>
2202 <low_set_pc>: Declare.
2203 (m32r_target::low_supports_breakpoints)
2204 (m32r_target::low_get_pc)
2205 (m32r_target::low_set_pc): Define.
2206 (the_low_target): Remove the op fields.
2207 * linux-m68k-low.cc (class m68k_target)
2208 <low_supports_breakpoints>
2209 <low_get_pc>
2210 <low_set_pc>: Declare.
2211 (m68k_target::low_supports_breakpoints)
2212 (m68k_target::low_get_pc)
2213 (m68k_target::low_set_pc): Define.
2214 (the_low_target): Remove the op fields.
2215 * linux-nios2-low.cc (class nios2_target)
2216 <low_supports_breakpoints>
2217 <low_get_pc>
2218 <low_set_pc>: Declare.
2219 (nios2_target::low_supports_breakpoints)
2220 (nios2_target::low_get_pc)
2221 (nios2_target::low_set_pc): Define.
2222 (the_low_target): Remove the op fields.
2223 * linux-sh-low.cc (class sh_target)
2224 <low_supports_breakpoints>
2225 <low_get_pc>
2226 <low_set_pc>: Declare.
2227 (sh_target::low_supports_breakpoints)
2228 (sh_target::low_get_pc)
2229 (sh_target::low_set_pc): Define.
2230 (the_low_target): Remove the op fields.
2231 * linux-xtensa-low.cc (class xtensa_target)
2232 <low_supports_breakpoints>
2233 <low_get_pc>
2234 <low_set_pc>: Declare.
2235 (xtensa_target::low_supports_breakpoints)
2236 (xtensa_target::low_get_pc)
2237 (xtensa_target::low_set_pc): Define.
2238 (the_low_target): Remove the op fields.
2239 * linux-sparc-low.cc (class sparc_target)
2240 <low_supports_breakpoints>
2241 <low_get_pc>: Declare.
2242 (sparc_target::low_supports_breakpoints)
2243 (sparc_target::low_get_pc): Define.
2244 (the_low_target): Remove the op fields.
2245 * linux-tile-low.cc (class tile_target)
2246 <low_supports_breakpoints>
2247 <low_get_pc>
2248 <low_set_pc>: Declare.
2249 (tile_target::low_supports_breakpoints)
2250 (tile_target::low_get_pc)
2251 (tile_target::low_set_pc): Define.
2252 (the_low_target): Remove the op fields.
2253 * linux-aarch64-low.cc (class aarch64_target)
2254 <low_supports_breakpoints>
2255 <low_get_pc>
2256 <low_set_pc>: Declare.
2257 (aarch64_target::low_supports_breakpoints): Define.
2258 (aarch64_get_pc): Turn into...
2259 (aarch64_target::low_get_pc): ...this.
2260 (aarch64_set_pc): Turn into...
2261 (aarch64_target::low_set_pc): ...this.
2262 (the_low_target): Remove the op fields.
2263 * linux-mips-low.cc (class mips_target)
2264 <low_supports_breakpoints>
2265 <low_get_pc>
2266 <low_set_pc>: Declare.
2267 (mips_target::low_supports_breakpoints): Define.
2268 (mips_get_pc): Turn into...
2269 (mips_target::low_get_pc): ...this.
2270 (mips_set_pc): Turn into...
2271 (mips_target::low_set_pc): ...this.
2272 (the_low_target): Remove the op fields.
2273 * linux-ppc-low.cc (class ppc_target)
2274 <low_supports_breakpoints>
2275 <low_get_pc>
2276 <low_set_pc>: Declare.
2277 (ppc_target::low_supports_breakpoints): Define.
2278 (ppc_get_pc): Turn into...
2279 (ppc_target::low_get_pc): ...this.
2280 (ppc_set_pc): Turn into...
2281 (ppc_target::low_set_pc): ...this.
2282 (the_low_target): Remove the op fields.
2283 * linux-riscv-low.cc (class riscv_target)
2284 <low_supports_breakpoints>
2285 <low_get_pc>
2286 <low_set_pc>: Declare.
2287 (riscv_target::low_supports_breakpoints): Define.
2288 (riscv_get_pc): Turn into...
2289 (riscv_target::low_get_pc): ...this.
2290 (riscv_set_pc): Turn into...
2291 (riscv_target::low_set_pc): ...this.
2292 (the_low_target): Remove the op fields.
2293 * linux-s390-low.cc (class s390_target)
2294 <low_supports_breakpoints>
2295 <low_get_pc>
2296 <low_set_pc>: Declare.
2297 (s390_target::low_supports_breakpoints): Define.
2298 (s390_get_pc): Turn into...
2299 (s390_target::low_get_pc): ...this.
2300 (s390_set_pc): Turn into...
2301 (s390_target::low_set_pc): ...this.
2302 (the_low_target): Remove the op fields.
2303 * linux-tic6x-low.cc (class tic6x_target)
2304 <low_supports_breakpoints>
2305 <low_get_pc>
2306 <low_set_pc>: Declare.
2307 (tic6x_target::low_supports_breakpoints): Define.
2308 (tic6x_get_pc): Turn into...
2309 (tic6x_target::low_get_pc): ...this.
2310 (tic6x_set_pc): Turn into...
2311 (tic6x_target::low_set_pc): ...this.
2312 (the_low_target): Remove the op fields.
2313
df95181f
TBA
23142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2315
2316 Turn some more static methods in linux-low into private methods
2317 of linux_process_target.
2318
2319 * linux-low.cc (get_pc): Turn into...
2320 (linux_process_target::get_pc): ...this.
2321 (save_stop_reason): Turn into...
2322 (linux_process_target::save_stop_reason): ...this.
2323 (thread_still_has_status_pending_p): Turn into...
2324 (linux_process_target::thread_still_has_status_pending): ...this.
2325 (status_pending_p_callback): Turn into...
2326 (linux_process_target::status_pending_p_callback): ...this.
2327 (resume_stopped_resumed_lwps): Turn into...
2328 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2329 (install_software_single_step_breakpoints): Turn into...
2330 (linux_process_target::install_software_single_step_breakpoints):
2331 ...this.
2332 (single_step): Turn into...
2333 (linux_process_target::single_step): ...this.
2334 (linux_resume_one_lwp_throw): Turn into...
2335 (linux_process_target::resume_one_lwp_throw): ...this.
2336 (linux_resume_one_lwp): Turn into...
2337 (linux_process_target::resume_one_lwp): ...this.
2338 (resume_status_pending_p): Turn into...
2339 (linux_process_target::resume_status_pending): ...this.
2340 (need_step_over_p): Turn into...
2341 (linux_process_target::thread_needs_step_over): ...this.
2342 (linux_resume_one_thread): Turn into...
2343 (linux_process_target::resume_one_thread): ...this.
2344 (proceed_one_lwp): Turn into...
2345 (linux_process_target::proceed_one_lwp): ...this.
2346 (unsuspend_and_proceed_one_lwp): Turn into...
2347 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2348
2349 Update the calls/references to the above functions below.
2350
2351 (linux_process_target::handle_extended_wait)
2352 (linux_process_target::filter_event)
2353 (linux_process_target::wait_for_event_filtered)
2354 (linux_process_target::wait_1)
2355 (linux_process_target::move_out_of_jump_pad)
2356 (linux_process_target::start_step_over)
2357 (linux_process_target::resume)
2358 (linux_process_target::proceed_all_lwps)
2359 (regsets_store_inferior_registers)
2360 (linux_process_target::store_register)
2361
2362 * linux-low.h (class linux_process_target)
2363 <get_pc>
2364 <save_stop_reason>
2365 <thread_still_has_status_pending>
2366 <status_pending_p_callback>
2367 <resume_stopped_resumed_lwps>
2368 <install_software_single_step_breakpoints>
2369 <single_step>
2370 <resume_one_lwp_throw>
2371 <resume_one_lwp>
2372 <resume_status_pending>
2373 <thread_needs_step_over>
2374 <resume_one_thread>
2375 <proceed_one_lwp>
2376 <unsuspend_and_proceed_one_lwp>: Declare.
2377
bd70b1f2
TBA
23782020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2379
2380 Turn the 'fetch_register' linux target op into a method of
2381 linux_process_target.
2382
2383 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2384 (class linux_process_target) <low_fetch_register>: Declare.
2385 * linux-x86-low.cc (the_low_target)
2386 * linux-aarch64-low.cc (the_low_target)
2387 * linux-arm-low.cc (the_low_target)
2388 * linux-bfin-low.cc (the_low_target)
2389 * linux-cris-low.cc (the_low_target)
2390 * linux-crisv32-low.cc (the_low_target)
2391 * linux-m32r-low.cc (the_low_target)
2392 * linux-m68k-low.cc (the_low_target)
2393 * linux-nios2-low.cc (the_low_target)
2394 * linux-ppc-low.cc (the_low_target)
2395 * linux-s390-low.cc (the_low_target)
2396 * linux-sh-low.cc (the_low_target)
2397 * linux-sparc-low.cc (the_low_target)
2398 * linux-tic6x-low.cc (the_low_target)
2399 * linux-tile-low.cc (the_low_target)
2400 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2401 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2402 Declare.
2403 (ia64_fetch_register): Turn into...
2404 (ia64_target::low_fetch_register): ...this.
2405 (the_low_target): Remove the op field.
2406 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2407 Declare.
2408 (mips_fetch_register): Turn into...
2409 (mips_target::low_fetch_register): ...this.
2410 (the_low_target): Remove the op field.
2411 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2412 Declare.
2413 (riscv_fetch_register): Turn into...
2414 (riscv_target::low_fetch_register): ...this.
2415 (the_low_target): Remove the op field.
2416
2417 Update the callers below.
2418
2419 * linux-low.cc (linux_process_target::fetch_registers)
2420 (linux_process_target::low_fetch_register)
2421
daca57a7
TBA
24222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2423
2424 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2425 linux target ops into methods of linux_process_target.
2426
2427 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2428 (class linux_process_target) <fetch_register>
2429 <store_register>
2430 <usr_fetch_inferior_registers>
2431 <usr_store_inferior_registers>
2432 <low_cannot_fetch_register>
2433 <low_cannot_fetch_register> Declare.
2434 * linux-low.cc (fetch_register): Turn into...
2435 (linux_process_target::fetch_register): ...this.
2436 (store_register): Turn into ...
2437 (linux_process_target::store_register): ...this.
2438 (usr_fetch_inferior_registers): Turn into...
2439 (linux_process_target::usr_fetch_inferior_registers): ...this.
2440 (usr_store_inferior_registers): Turn into...
2441 (linux_process_target::usr_store_inferior_registers): ...this.
2442 * linux-x86-low.cc (class x86_target)
2443 <low_cannot_fetch_register>
2444 <low_cannot_store_register>: Declare.
2445 (x86_cannot_store_register): Turn into...
2446 (x86_target::low_cannot_store_register): ...this.
2447 (x86_cannot_fetch_register): Turn into...
2448 (x86_target::low_cannot_fetch_register): ...this.
2449 (the_low_target): Remove the target op fields.
2450 * linux-aarch64-low.cc (class aarch64_target)
2451 <low_cannot_fetch_register>
2452 <low_cannot_store_register>: Declare.
2453 (aarch64_target::low_cannot_fetch_register)
2454 (aarch64_target::low_cannot_store_register): Define.
2455 (the_low_target): Remove the op fields.
2456 * linux-arm-low.cc (class arm_target)
2457 <low_cannot_fetch_register>
2458 <low_cannot_store_register>: Declare.
2459 (arm_cannot_fetch_register): Turn into...
2460 (arm_target::low_cannot_fetch_register): ...this.
2461 (arm_cannot_store_register): Turn into...
2462 (arm_target::low_cannot_store_register): ...this.
2463 (the_low_target): Remove the op fields.
2464 * linux-bfin-low.cc (class bfin_target)
2465 <low_cannot_fetch_register>
2466 <low_cannot_store_register>: Declare.
2467 (bfin_cannot_fetch_register): Turn into...
2468 (bfin_target::low_cannot_fetch_register): ...this.
2469 (bfin_cannot_store_register): Turn into...
2470 (bfin_target::low_cannot_store_register): ...this.
2471 (the_low_target): Remove the op fields.
2472 * linux-cris-low.cc (class cris_target)
2473 <low_cannot_fetch_register>
2474 <low_cannot_store_register>: Declare.
2475 (cris_cannot_fetch_register): Turn into...
2476 (cris_target::low_cannot_fetch_register): ...this.
2477 (cris_cannot_store_register): Turn into...
2478 (cris_target::low_cannot_store_register): ...this.
2479 (the_low_target): Remove the op fields.
2480 * linux-crisv32-low.cc (class crisv32_target)
2481 <low_cannot_fetch_register>
2482 <low_cannot_store_register>: Declare.
2483 (crisv32_target::low_cannot_fetch_register)
2484 (crisv32_target::low_cannot_store_register): Define.
2485 (the_low_target): Remove the op fields.
2486 * linux-ia64-low.cc (class ia64_target)
2487 <low_cannot_fetch_register>
2488 <low_cannot_store_register>: Declare.
2489 (ia64_cannot_fetch_register): Turn into...
2490 (ia64_target::low_cannot_fetch_register): ...this.
2491 (ia64_cannot_store_register): Turn into...
2492 (ia64_target::low_cannot_store_register): ...this.
2493 (the_low_target): Remove the op fields.
2494 * linux-m32r-low.cc (class m32r_target)
2495 <low_cannot_fetch_register>
2496 <low_cannot_store_register>: Declare.
2497 (m32r_cannot_fetch_register): Turn into...
2498 (m32r_target::low_cannot_fetch_register): ...this.
2499 (m32r_cannot_store_register): Turn into...
2500 (m32r_target::low_cannot_store_register): ...this.
2501 (the_low_target): Remove the op fields.
2502 * linux-m68k-low.cc (class m68k_target)
2503 <low_cannot_fetch_register>
2504 <low_cannot_store_register>: Declare.
2505 (m68k_cannot_fetch_register): Turn into...
2506 (m68k_target::low_cannot_fetch_register): ...this.
2507 (m68k_cannot_store_register): Turn into...
2508 (m68k_target::low_cannot_store_register): ...this.
2509 (the_low_target): Remove the op fields.
2510 * linux-mips-low.cc (class mips_target)
2511 <low_cannot_fetch_register>
2512 <low_cannot_store_register>: Declare.
2513 (mips_cannot_fetch_register): Turn into...
2514 (mips_target::low_cannot_fetch_register): ...this.
2515 (mips_cannot_store_register): Turn into...
2516 (mips_target::low_cannot_store_register): ...this.
2517 (get_usrregs_info): Inline at the call sites in
2518 low_cannot_fetch_register and low_cannot_store_register,
2519 and remove.
2520 (the_low_target): Remove the op fields.
2521 * linux-nios2-low.cc (class nios2_target)
2522 <low_cannot_fetch_register>
2523 <low_cannot_store_register>: Declare.
2524 (nios2_cannot_fetch_register): Turn into...
2525 (nios2_target::low_cannot_fetch_register): ...this.
2526 (nios2_cannot_store_register): Turn into...
2527 (nios2_target::low_cannot_store_register): ...this.
2528 (the_low_target): Remove the op fields.
2529 * linux-ppc-low.cc (class ppc_target)
2530 <low_cannot_fetch_register>
2531 <low_cannot_store_register>: Declare.
2532 (ppc_cannot_fetch_register): Turn into...
2533 (ppc_target::low_cannot_fetch_register): ...this.
2534 (ppc_cannot_store_register): Turn into...
2535 (ppc_target::low_cannot_store_register): ...this.
2536 (the_low_target): Remove the op fields.
2537 * linux-riscv-low.cc (class riscv_target)
2538 <low_cannot_fetch_register>
2539 <low_cannot_store_register>: Declare.
2540 (riscv_target::low_cannot_fetch_register)
2541 (riscv_target::low_cannot_store_register): Define.
2542 (the_low_target): Remove the op fields.
2543 * linux-s390-low.cc (class s390_target)
2544 <low_cannot_fetch_register>
2545 <low_cannot_store_register>: Declare.
2546 (s390_cannot_fetch_register): Turn into...
2547 (s390_target::low_cannot_fetch_register): ...this.
2548 (s390_cannot_store_register): Turn into...
2549 (s390_target::low_cannot_store_register): ...this.
2550 (the_low_target): Remove the op fields.
2551 * linux-sh-low.cc (class sh_target)
2552 <low_cannot_fetch_register>
2553 <low_cannot_store_register>: Declare.
2554 (sh_cannot_fetch_register): Turn into...
2555 (sh_target::low_cannot_fetch_register): ...this.
2556 (sh_cannot_store_register): Turn into...
2557 (sh_target::low_cannot_store_register): ...this.
2558 (the_low_target): Remove the op fields.
2559 * linux-sparc-low.cc (class sparc_target)
2560 <low_cannot_fetch_register>
2561 <low_cannot_store_register>: Declare.
2562 (sparc_cannot_fetch_register): Turn into...
2563 (sparc_target::low_cannot_fetch_register): ...this.
2564 (sparc_cannot_store_register): Turn into...
2565 (sparc_target::low_cannot_store_register): ...this.
2566 (the_low_target): Remove the op fields.
2567 * linux-tic6x-low.cc (class tic6x_target)
2568 <low_cannot_fetch_register>
2569 <low_cannot_store_register>: Declare.
2570 (tic6x_cannot_fetch_register): Turn into...
2571 (tic6x_target::low_cannot_fetch_register): ...this.
2572 (tic6x_cannot_store_register): Turn into...
2573 (tic6x_target::low_cannot_store_register): ...this.
2574 (the_low_target): Remove the op fields.
2575 * linux-tile-low.cc (class tile_target)
2576 <low_cannot_fetch_register>
2577 <low_cannot_store_register>: Declare.
2578 (tile_cannot_fetch_register): Turn into...
2579 (tile_target::low_cannot_fetch_register): ...this.
2580 (tile_cannot_store_register): Turn into...
2581 (tile_target::low_cannot_store_register): ...this.
2582 (the_low_target): Remove the op fields.
2583 * linux-xtensa-low.cc (class xtensa_target)
2584 <low_cannot_fetch_register>
2585 <low_cannot_store_register>: Declare.
2586 (xtensa_target::low_cannot_fetch_register)
2587 (xtensa_target::low_cannot_store_register): Define.
2588 (the_low_target): Remove the op fields.
2589
aa8d21c9
TBA
25902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2591
2592 Turn the 'regs_info' linux target op into a method of
2593 linux_process_target.
2594
2595 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2596 (class linux_process_target) <get_regs_info>: Define.
2597
2598 Update the callers below.
2599
2600 * linux-low.cc (linux_process_target::fetch_registers)
2601 (linux_process_target::store_registers)
2602 * proc-service.cc (gregset_info)
2603
2604 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2605 (x86_linux_regs_info): Turn into ...
2606 (x86_target::get_regs_info): ...this.
2607 (the_low_target): Remove the op field.
2608 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2609 Declare.
2610 (aarch64_regs_info): Turn into ...
2611 (aarch64_target::get_regs_info): ...this.
2612 (the_low_target): Remove the op field.
2613 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2614 (arm_regs_info): Turn into ...
2615 (arm_target::get_regs_info): ...this.
2616 (the_low_target): Remove the op field.
2617 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2618 (bfin_regs_info): Turn into ...
2619 (bfin_target::get_regs_info): ...this.
2620 (the_low_target): Remove the op field.
2621 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2622 (cris_regs_info): Turn into ...
2623 (cris_target::get_regs_info): ...this.
2624 (the_low_target): Remove the op field.
2625 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2626 Declare.
2627 (crisv32_regs_info): Turn into ...
2628 (crisv32_target::get_regs_info): ...this.
2629 (the_low_target): Remove the op field.
2630 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2631 (ia64_regs_info): Turn into ...
2632 (ia64_target::get_regs_info): ...this.
2633 (the_low_target): Remove the op field.
2634 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2635 (m32r_regs_info): Turn into ...
2636 (m32r_target::get_regs_info): ...this.
2637 (the_low_target): Remove the op field.
2638 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2639 (m68k_regs_info): Turn into ...
2640 (m68k_target::get_regs_info): ...this.
2641 (the_low_target): Remove the op field.
2642 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2643 (mips_regs_info): Turn into ...
2644 (mips_target::get_regs_info): ...this.
2645 (the_low_target): Remove the op field.
2646 (get_usrregs_info): Update the call to the op.
2647 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2648 (nios2_regs_info): Turn into ...
2649 (nios2_target::get_regs_info): ...this.
2650 (the_low_target): Remove the op field.
2651 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2652 (ppc_regs_info): Turn into ...
2653 (ppc_target::get_regs_info): ...this.
2654 (the_low_target): Remove the op field.
2655 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2656 (riscv_regs_info): Turn into ...
2657 (riscv_target::get_regs_info): ...this.
2658 (the_low_target): Remove the op field.
2659 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2660 (s390_regs_info): Turn into ...
2661 (s390_target::get_regs_info): ...this.
2662 (the_low_target): Remove the op field.
2663 (s390_collect_ptrace_register)
2664 (s390_supply_ptrace_register)
2665 (s390_fill_gregset): Update the call to the op.
2666 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2667 (sh_regs_info): Turn into ...
2668 (sh_target::get_regs_info): ...this.
2669 (the_low_target): Remove the op field.
2670 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2671 (sparc_regs_info): Turn into ...
2672 (sparc_target::get_regs_info): ...this.
2673 (the_low_target): Remove the op field.
2674 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2675 (tic6x_regs_info): Turn into ...
2676 (tic6x_target::get_regs_info): ...this.
2677 (the_low_target): Remove the op field.
2678 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2679 (tile_regs_info): Turn into ...
2680 (tile_target::get_regs_info): ...this.
2681 (the_low_target): Remove the op field.
2682 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2683 Declare.
2684 (xtensa_regs_info): Turn into ...
2685 (xtensa_target::get_regs_info): ...this.
2686 (the_low_target): Remove the op field.
2687
797bcff5
TBA
26882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2689
2690 Turn the 'arch_setup' linux target op into a method of
2691 linux_process_target.
2692
2693 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2694 (class linux_process_target) <arch_setup_thread>
2695 <low_arch_setup>: New declarations.
2696 * linux-low.cc (linux_arch_setup): Delete.
2697 (linux_arch_setup_thread): Turn into...
2698 (linux_process_target::arch_setup_thread): ... this.
2699
2700 Update the callers below.
2701
2702 (linux_process_target::handle_extended_wait)
2703 (linux_process_target::post_create_inferior)
2704 (linux_process_target::filter_event)
2705
2706 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2707 declaration.
2708 (x86_linux_update_xmltarget): Turn into...
2709 (x86_target::update_xmltarget): ...this.
2710 (x86_linux_process_qsupported): Update the call to
2711 x86_linux_update_xmltarget.
2712 (x86_arch_setup): Turn into ...
2713 (x86_target::low_arch_setup): ...this.
2714 (the_low_target): Remove the op field.
2715 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2716 declaration.
2717 (aarch64_arch_setup): Turn into ...
2718 (aarch64_target::low_arch_setup): ...this.
2719 (the_low_target): Remove the op field.
2720 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2721 declaration.
2722 (arm_arch_setup): Turn into ...
2723 (arm_target::low_arch_setup): ...this.
2724 (the_low_target): Remove the op field.
2725 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2726 declaration.
2727 (bfin_arch_setup): Turn into ...
2728 (bfin_target::low_arch_setup): ...this.
2729 (the_low_target): Remove the op field.
2730 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2731 declaration.
2732 (cris_arch_setup): Turn into ...
2733 (cris_target::low_arch_setup): ...this.
2734 (the_low_target): Remove the op field.
2735 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2736 declaration.
2737 (crisv32_arch_setup): Turn into ...
2738 (crisv32_target::low_arch_setup): ...this.
2739 (the_low_target): Remove the op field.
2740 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2741 declaration.
2742 (ia64_arch_setup): Turn into ...
2743 (ia64_target::low_arch_setup): ...this.
2744 (the_low_target): Remove the op field.
2745 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2746 declaration.
2747 (m32r_arch_setup): Turn into ...
2748 (m32r_target::low_arch_setup): ...this.
2749 (the_low_target): Remove the op field.
2750 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2751 declaration.
2752 (m68k_arch_setup): Turn into ...
2753 (m68k_target::low_arch_setup): ...this.
2754 (the_low_target): Remove the op field.
2755 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2756 declaration.
2757 (mips_arch_setup): Turn into ...
2758 (mips_target::low_arch_setup): ...this.
2759 (the_low_target): Remove the op field.
2760 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2761 declaration.
2762 (nios2_arch_setup): Turn into ...
2763 (nios2_target::low_arch_setup): ...this.
2764 (the_low_target): Remove the op field.
2765 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2766 declaration.
2767 (ppc_arch_setup): Turn into ...
2768 (ppc_target::low_arch_setup): ...this.
2769 (the_low_target): Remove the op field.
2770 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2771 declaration.
2772 (riscv_arch_setup): Turn into ...
2773 (riscv_target::low_arch_setup): ...this.
2774 (the_low_target): Remove the op field.
2775 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2776 declaration.
2777 (s390_arch_setup): Turn into ...
2778 (s390_target::low_arch_setup): ...this.
2779 (the_low_target): Remove the op field.
2780 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2781 declaration.
2782 (sh_arch_setup): Turn into ...
2783 (sh_target::low_arch_setup): ...this.
2784 (the_low_target): Remove the op field.
2785 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2786 declaration.
2787 (sparc_arch_setup): Turn into ...
2788 (sparc_target::low_arch_setup): ...this.
2789 (the_low_target): Remove the op field.
2790 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2791 declaration.
2792 (tic6x_arch_setup): Turn into ...
2793 (tic6x_target::low_arch_setup): ...this.
2794 (the_low_target): Remove the op field.
2795 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2796 declaration.
2797 (tile_arch_setup): Turn into ...
2798 (tile_target::low_arch_setup): ...this.
2799 (the_low_target): Remove the op field.
2800 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2801 declaration.
2802 (xtensa_arch_setup): Turn into ...
2803 (xtensa_target::low_arch_setup): ...this.
2804 (the_low_target): Remove the op field.
2805
ef0478f6
TBA
28062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2807
2808 * linux-low.h (the_linux_target): New extern declaration.
2809 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2810 'the_target'.
2811 (the_linux_target): Remove.
2812 * linux-x86-low.cc (class x86_target): New class.
2813 (the_x86_target): New static object.
2814 (the_linux_target): Define as pointer to the_x86_target.
2815 * linux-aarch64-low.cc (class aarch64_target): New class.
2816 (the_aarch64_target): New static object.
2817 (the_linux_target): Define as pointer to the_aarch64_target.
2818 * linux-arm-low.cc (class arm_target): New class.
2819 (the_arm_target): New static object.
2820 (the_linux_target): Define as pointer to the_arm_target.
2821 * linux-bfin-low.cc (class bfin_target): New class.
2822 (the_bfin_target): New static object.
2823 (the_linux_target): Define as pointer to the_bfin_target.
2824 * linux-cris-low.cc (class cris_target): New class.
2825 (the_cris_target): New static object.
2826 (the_linux_target): Define as pointer to the_cris_target.
2827 * linux-crisv32-low.cc (class crisv32_target): New class.
2828 (the_crisv32_target): New static object.
2829 (the_linux_target): Define as pointer to the_crisv32_target.
2830 * linux-ia64-low.cc (class ia64_target): New class.
2831 (the_ia64_target): New static object.
2832 (the_linux_target): Define as pointer to the_ia64_target.
2833 * linux-m32r-low.cc (class m32r_target): New class.
2834 (the_m32r_target): New static object.
2835 (the_linux_target): Define as pointer to the_m32r_target.
2836 * linux-m68k-low.cc (class m68k_target): New class.
2837 (the_m68k_target): New static object.
2838 (the_linux_target): Define as pointer to the_m68k_target.
2839 * linux-mips-low.cc (class mips_target): New class.
2840 (the_mips_target): New static object.
2841 (the_linux_target): Define as pointer to the_mips_target.
2842 * linux-nios2-low.cc (class nios2_target): New class.
2843 (the_nios2_target): New static object.
2844 (the_linux_target): Define as pointer to the_nios2_target.
2845 * linux-ppc-low.cc (class ppc_target): New class.
2846 (the_ppc_target): New static object.
2847 (the_linux_target): Define as pointer to the_ppc_target.
2848 * linux-riscv-low.cc (class riscv_target): New class.
2849 (the_riscv_target): New static object.
2850 (the_linux_target): Define as pointer to the_riscv_target.
2851 * linux-s390-low.cc (class s390_target): New class.
2852 (the_s390_target): New static object.
2853 (the_linux_target): Define as pointer to the_s390_target.
2854 * linux-sh-low.cc (class sh_target): New class.
2855 (the_sh_target): New static object.
2856 (the_linux_target): Define as pointer to the_sh_target.
2857 * linux-sparc-low.cc (class sparc_target): New class.
2858 (the_sparc_target): New static object.
2859 (the_linux_target): Define as pointer to the_sparc_target.
2860 * linux-tic6x-low.cc (class tic6x_target): New class.
2861 (the_tic6x_target): New static object.
2862 (the_linux_target): Define as pointer to the_tic6x_target.
2863 * linux-tile-low.cc (class tile_target): New class.
2864 (the_tile_target): New static object.
2865 (the_linux_target): Define as pointer to the_tile_target.
2866 * linux-xtensa-low.cc (class xtensa_target): New class.
2867 (the_xtensa_target): New static object.
2868 (the_linux_target): Define as pointer to the_xtensa_target.
2869
d16f3f6c
TBA
28702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2871
2872 Turn some static functions in linux-low.cc into private methods of
2873 linux_process_target.
2874
2875 * linux-low.cc (handle_extended_wait): Turn into ...
2876 (linux_process_target::handle_extended_wait): ...this. Call
2877 'mourn' on 'this' object instead of 'the_target'.
2878 (maybe_move_out_of_jump_pad): Turn into...
2879 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2880 (linux_low_filter_event): Turn into...
2881 (linux_process_target::filter_event): ...this.
2882 (linux_wait_for_event_filtered): Turn into...
2883 (linux_process_target::wait_for_event_filtered): ...this.
2884 (linux_wait_for_event): Turn into...
2885 (linux_process_target::wait_for_event): ...this.
2886 (linux_wait_1): Turn into...
2887 (linux_process_target::wait_1): ...this.
2888 (wait_for_sigstop): Turn into...
2889 (linux_process_target::wait_for_sigstop): ...this.
2890 (move_out_of_jump_pad_callback): Turn into...
2891 (linux_process_target::move_out_of_jump_pad): ...this.
2892 (stop_all_lwps): Turn into...
2893 (linux_process_target::stop_all_lwps): ...this.
2894 (start_step_over): Turn into...
2895 (linux_process_target::start_step_over): ...this.
2896 (complete_ongoing_step_over): Turn into...
2897 (linux_process_target::complete_ongoing_step_over): ...this.
2898 (proceed_all_lwps): Turn into...
2899 (linux_process_target::proceed_all_lwps): ...this.
2900 (unstop_all_lwps): Turn into...
2901 (linux_process_target::unstop_all_lwps): ...this.
2902
2903 * linux-low.h (class linux_process_target)
2904 <handle_extended_wait>
2905 <maybe_move_out_of_jump_pad>
2906 filter_event>
2907 <wait_for_event_filtered>
2908 <wait_for_event>
2909 <wait_1>
2910 <wait_for_sigstop>
2911 <move_out_of_jump_pad>
2912 <stop_all_lwps>
2913 <start_step_over>
2914 <complete_ongoing_step_over>
2915 <proceed_all_lwps>
2916 <unstop_all_lwps>: Declare.
2917
2918 Update the callers below.
2919
2920 * linux-low.cc (linux_process_target::attach): Update.
2921 (linux_process_target::stabilize_threads): Ditto.
2922 (linux_process_target::wait): Ditto.
2923
a5863204
TBA
29242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2925
2926 * linux-low.h (struct linux_target_ops): Update the comment for
2927 'cannot_store_register' to return 0 or 1.
2928 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2929 of 2.
2930
c884cc46
SM
29312020-03-20 Simon Marchi <simon.marchi@efficios.com>
2932
2933 * config.in: Re-generate.
2934 * configure: Re-generate.
2935
5a82b8a1
KR
29362020-03-17 Kamil Rytarowski <n54@gmx.com>
2937
2938 * regcache.cc (find_register_by_number): Update.
2939 * tdesc.cc (init_target_desc): Likewise.
2940 * tdesc.h (target_desc::reg_defs): Likewise.
2941
4635ff97
TT
29422020-03-12 Tom Tromey <tom@tromey.com>
2943
2944 * configure: Rebuild.
2945 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2946 (WIN32APILIBS): New subst.
2947 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2948 gdbsupport files.
2949 (gdbsupport/%.o): Remove target.
2950 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2951 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2952 (WIN32APILIBS): New variable.
2953 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2954 (gdbreplay$(EXEEXT)): Likewise.
2955
9a665d62
TT
29562020-03-12 Tom Tromey <tom@tromey.com>
2957
2958 * config.in, configure: Rebuild.
2959 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2960 * acinclude.m4: Include gettext-sister.m4.
2961 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2962 variables.
2963 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2964 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2965
272cd5a3
SM
29662020-03-12 Simon Marchi <simon.marchi@efficios.com>
2967
2968 * acinclude.m4: Update path to selftest.m4.
2969
db6878ac
SM
29702020-03-12 Simon Marchi <simon.marchi@efficios.com>
2971
2972 * configure.ac: Don't source bfd/development.sh, move
2973 GDB_AC_COMMON higher.
2974 * configure: Re-generate.
2975
4d696a5c
SM
29762020-03-12 Simon Marchi <simon.marchi@efficios.com>
2977
2978 * configure: Re-generate.
2979
a0761e34
SM
29802020-03-11 Simon Marchi <simon.marchi@efficios.com>
2981
2982 * configure: Re-generate.
2983
20ea4a60
AB
29842020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2985
2986 * .dir-locals.el: New file.
2987
842806cb
TBA
29882020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2989
2990 * .gitattributes: New file.
2991
442131c1
AB
29922020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2993
2994 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2995 reply into an S reply.
2996 * server.cc (disable_packet_T): New global.
2997 (captured_main): Set new global when appropriate.
2998 * server.h (disable_packet_T): Declare.
2999
dda42c0b
TT
30002020-02-21 Tom Tromey <tom@tromey.com>
3001
3002 * Makefile.in (mostlyclean): New target.
3003
52405d85
TBA
30042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3005
3006 * target.h (struct process_stratum_target): Remove.
3007 (class process_target): Rename to ...
3008 (class process_stratum_target): ... this.
3009 * linux-low.h (class linux_process_target): Derive from
3010 'process_stratum_target'.
3011 * linux-low.cc (linux_target_ops): Remove.
3012 (initialize_low): Set the_target to the singleton instance of
3013 linux_process_target.
3014 * lynx-low.h (class lynx_process_target): Derive from
3015 'process_stratum_target'.
3016 * lynx-low.cc (lynx_target_ops): Remove.
3017 (initialize_low): Set the_target to the singleton instance of
3018 lynx_process_target.
3019 * nto-low.h (class nto_process_target): Derive from
3020 'process_stratum_target'.
3021 * nto-low.cc (nto_target_ops): Remove.
3022 (initialize_low): Set the_target to the singleton instance of
3023 nto_process_target.
3024 * win32-low.h (class win32_process_target): Derive from
3025 'process_stratum_target'.
3026 * win32-low.cc (win32_target_ops): Remove.
3027 (initialize_low): Set the_target to the singleton instance of
3028 win32_process_target.
3029
3030 Replace 'the_target->pt' with 'the_target' in the uses below.
3031
3032 * hostio.cc (hostio_error)
3033 (handle_setfs)
3034 (handle_open)
3035 (handle_unlink)
3036 (handle_readlink)
3037 * linux-aarch32-low.cc (arm_breakpoint_at)
3038 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3039 * linux-arm-low.cc (arm_sigreturn_next_pc)
3040 (arm_get_hwcap)
3041 (arm_get_syscall_trapinfo)
3042 * linux-cris-low.cc (cris_breakpoint_at)
3043 * linux-crisv32-low.cc (cris_breakpoint_at)
3044 * linux-low.cc (handle_extended_wait)
3045 (linux_wait_1)
3046 (linux_read_memory)
3047 (linux_process_target::breakpoint_kind_from_pc)
3048 (linux_get_auxv)
3049 * linux-m32r-low.cc (m32r_breakpoint_at)
3050 * linux-mips-low.cc (mips_breakpoint_at)
3051 * linux-nios2-low.cc (nios2_breakpoint_at)
3052 * linux-ppc-low.cc (ppc_breakpoint_at)
3053 * linux-s390-low.cc (s390_get_hwcap)
3054 * linux-sh-low.cc (sh_breakpoint_at)
3055 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3056 (sparc_store_gregset_from_stack)
3057 (sparc_breakpoint_at)
3058 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3059 * linux-tile-low.cc (tile_breakpoint_at)
3060 * linux-x86-low.cc (x86_breakpoint_at)
3061 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3062 * mem-break.cc (bp_size)
3063 (bp_opcode)
3064 (insert_memory_breakpoint)
3065 (set_raw_breakpoint_at)
3066 (delete_raw_breakpoint)
3067 (z_type_supported)
3068 (uninsert_raw_breakpoint)
3069 (reinsert_raw_breakpoint)
3070 (validate_inserted_breakpoint)
3071 * regcache.cc (regcache_read_pc)
3072 (regcache_write_pc)
3073 * remote-utils.cc (putpkt_binary_1)
3074 (input_interrupt)
3075 (getpkt)
3076 (prepare_resume_reply)
3077 * server.cc (handle_general_set)
3078 (handle_detach)
3079 (handle_qxfer_auxv)
3080 (handle_qxfer_exec_file)
3081 (handle_qxfer_libraries_svr4)
3082 (handle_qxfer_osdata)
3083 (handle_qxfer_siginfo)
3084 (handle_qxfer_fdpic)
3085 (handle_query)
3086 (resume)
3087 (handle_v_requests)
3088 (queue_stop_reply_callback)
3089 (captured_main)
3090 * target.cc (prepare_to_access_memory)
3091 (done_accessing_memory)
3092 (read_inferior_memory)
3093 (target_write_memory)
3094 (target_stop_and_wait)
3095 (target_wait)
3096 (target_mourn_inferior)
3097 (target_continue_no_signal)
3098 (target_continue)
3099 (target_supports_multi_process)
3100 (kill_inferior)
3101 * target.h
3102 (target_create_inferior)
3103 (target_post_create_inferior)
3104 (myattach)
3105 (target_supports_fork_events)
3106 (target_supports_vfork_events)
3107 (target_supports_exec_events)
3108 (target_handle_new_gdb_connection)
3109 (detach_inferior)
3110 (mythread_alive)
3111 (fetch_inferior_registers)
3112 (store_inferior_registers)
3113 (join_inferior)
3114 (target_supports_non_stop)
3115 (target_async)
3116 (target_process_qsupported)
3117 (target_supports_catch_syscall)
3118 (target_get_ipa_tdesc_idx)
3119 (target_supports_tracepoints)
3120 (target_supports_fast_tracepoints)
3121 (target_get_min_fast_tracepoint_insn_len)
3122 (target_thread_stopped)
3123 (target_pause_all)
3124 (target_unpause_all)
3125 (target_stabilize_threads)
3126 (target_install_fast_tracepoint_jump_pad)
3127 (target_emit_ops)
3128 (target_supports_disable_randomization)
3129 (target_supports_agent)
3130 (target_enable_btrace)
3131 (target_disable_btrace)
3132 (target_read_btrace)
3133 (target_read_btrace_conf)
3134 (target_supports_range_stepping)
3135 (target_supports_stopped_by_sw_breakpoint)
3136 (target_stopped_by_sw_breakpoint)
3137 (target_supports_stopped_by_hw_breakpoint)
3138 (target_supports_hardware_single_step)
3139 (target_stopped_by_hw_breakpoint)
3140 (target_breakpoint_kind_from_pc)
3141 (target_breakpoint_kind_from_current_state)
3142 (target_supports_software_single_step)
3143 (target_core_of_thread)
3144 (target_thread_name)
3145 (target_thread_handle)
3146 * win32-low.cc (do_initial_child_stuff)
3147
3148 Rename target op default definitions listed below.
3149
3150 * target.cc (process_target::post_create_inferior): Rename as ...
3151 (process_stratum_target::post_create_inferior): ... this.
3152 (process_target::prepare_to_access_memory): Rename as ...
3153 (process_stratum_target::prepare_to_access_memory): ... this.
3154 (process_target::done_accessing_memory): Rename as ...
3155 (process_stratum_target::done_accessing_memory): ... this.
3156 (process_target::look_up_symbols): Rename as ...
3157 (process_stratum_target::look_up_symbols): ... this.
3158 (process_target::supports_read_auxv): Rename as ...
3159 (process_stratum_target::supports_read_auxv): ... this.
3160 (process_target::read_auxv): Rename as ...
3161 (process_stratum_target::read_auxv): ... this.
3162 (process_target::supports_z_point_type): Rename as ...
3163 (process_stratum_target::supports_z_point_type): ... this.
3164 (process_target::insert_point): Rename as ...
3165 (process_stratum_target::insert_point): ... this.
3166 (process_target::remove_point): Rename as ...
3167 (process_stratum_target::remove_point): ... this.
3168 (process_target::stopped_by_sw_breakpoint): Rename as ...
3169 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3170 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3171 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3172 (process_target::stopped_by_hw_breakpoint): Rename as ...
3173 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3174 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3175 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3176 (process_target::supports_hardware_single_step): Rename as ...
3177 (process_stratum_target::supports_hardware_single_step): ... this.
3178 (process_target::stopped_by_watchpoint): Rename as ...
3179 (process_stratum_target::stopped_by_watchpoint): ... this.
3180 (process_target::stopped_data_address): Rename as ...
3181 (process_stratum_target::stopped_data_address): ... this.
3182 (process_target::supports_read_offsets): Rename as ...
3183 (process_stratum_target::supports_read_offsets): ... this.
3184 (process_target::read_offsets): Rename as ...
3185 (process_stratum_target::read_offsets): ... this.
3186 (process_target::supports_get_tls_address): Rename as ...
3187 (process_stratum_target::supports_get_tls_address): ... this.
3188 (process_target::get_tls_address): Rename as ...
3189 (process_stratum_target::get_tls_address): ... this.
3190 (process_target::hostio_last_error): Rename as ...
3191 (process_stratum_target::hostio_last_error): ... this.
3192 (process_target::supports_qxfer_osdata): Rename as ...
3193 (process_stratum_target::supports_qxfer_osdata): ... this.
3194 (process_target::qxfer_osdata): Rename as ...
3195 (process_stratum_target::qxfer_osdata): ... this.
3196 (process_target::supports_qxfer_siginfo): Rename as ...
3197 (process_stratum_target::supports_qxfer_siginfo): ... this.
3198 (process_target::qxfer_siginfo): Rename as ...
3199 (process_stratum_target::qxfer_siginfo): ... this.
3200 (process_target::supports_non_stop): Rename as ...
3201 (process_stratum_target::supports_non_stop): ... this.
3202 (process_target::async): Rename as ...
3203 (process_stratum_target::async): ... this.
3204 (process_target::start_non_stop): Rename as ...
3205 (process_stratum_target::start_non_stop): ... this.
3206 (process_target::supports_multi_process): Rename as ...
3207 (process_stratum_target::supports_multi_process): ... this.
3208 (process_target::supports_fork_events): Rename as ...
3209 (process_stratum_target::supports_fork_events): ... this.
3210 (process_target::supports_vfork_events): Rename as ...
3211 (process_stratum_target::supports_vfork_events): ... this.
3212 (process_target::supports_exec_events): Rename as ...
3213 (process_stratum_target::supports_exec_events): ... this.
3214 (process_target::handle_new_gdb_connection): Rename as ...
3215 (process_stratum_target::handle_new_gdb_connection): ... this.
3216 (process_target::handle_monitor_command): Rename as ...
3217 (process_stratum_target::handle_monitor_command): ... this.
3218 (process_target::core_of_thread): Rename as ...
3219 (process_stratum_target::core_of_thread): ... this.
3220 (process_target::supports_read_loadmap): Rename as ...
3221 (process_stratum_target::supports_read_loadmap): ... this.
3222 (process_target::read_loadmap): Rename as ...
3223 (process_stratum_target::read_loadmap): ... this.
3224 (process_target::process_qsupported): Rename as ...
3225 (process_stratum_target::process_qsupported): ... this.
3226 (process_target::supports_tracepoints): Rename as ...
3227 (process_stratum_target::supports_tracepoints): ... this.
3228 (process_target::read_pc): Rename as ...
3229 (process_stratum_target::read_pc): ... this.
3230 (process_target::write_pc): Rename as ...
3231 (process_stratum_target::write_pc): ... this.
3232 (process_target::supports_thread_stopped): Rename as ...
3233 (process_stratum_target::supports_thread_stopped): ... this.
3234 (process_target::thread_stopped): Rename as ...
3235 (process_stratum_target::thread_stopped): ... this.
3236 (process_target::supports_get_tib_address): Rename as ...
3237 (process_stratum_target::supports_get_tib_address): ... this.
3238 (process_target::get_tib_address): Rename as ...
3239 (process_stratum_target::get_tib_address): ... this.
3240 (process_target::pause_all): Rename as ...
3241 (process_stratum_target::pause_all): ... this.
3242 (process_target::unpause_all): Rename as ...
3243 (process_stratum_target::unpause_all): ... this.
3244 (process_target::stabilize_threads): Rename as ...
3245 (process_stratum_target::stabilize_threads): ... this.
3246 (process_target::supports_fast_tracepoints): Rename as ...
3247 (process_stratum_target::supports_fast_tracepoints): ... this.
3248 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3249 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3250 (process_target::emit_ops): Rename as ...
3251 (process_stratum_target::emit_ops): ... this.
3252 (process_target::supports_disable_randomization): Rename as ...
3253 (process_stratum_target::supports_disable_randomization): ... this.
3254 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3255 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3256 (process_target::qxfer_libraries_svr4): Rename as ...
3257 (process_stratum_target::qxfer_libraries_svr4): ... this.
3258 (process_target::supports_agent): Rename as ...
3259 (process_stratum_target::supports_agent): ... this.
3260 (process_target::enable_btrace): Rename as ...
3261 (process_stratum_target::enable_btrace): ... this.
3262 (process_target::disable_btrace): Rename as ...
3263 (process_stratum_target::disable_btrace): ... this.
3264 (process_target::read_btrace): Rename as ...
3265 (process_stratum_target::read_btrace): ... this.
3266 (process_target::read_btrace_conf): Rename as ...
3267 (process_stratum_target::read_btrace_conf): ... this.
3268 (process_target::supports_range_stepping): Rename as ...
3269 (process_stratum_target::supports_range_stepping): ... this.
3270 (process_target::supports_pid_to_exec_file): Rename as ...
3271 (process_stratum_target::supports_pid_to_exec_file): ... this.
3272 (process_target::pid_to_exec_file): Rename as ...
3273 (process_stratum_target::pid_to_exec_file): ... this.
3274 (process_target::supports_multifs): Rename as ...
3275 (process_stratum_target::supports_multifs): ... this.
3276 (process_target::multifs_open): Rename as ...
3277 (process_stratum_target::multifs_open): ... this.
3278 (process_target::multifs_unlink): Rename as ...
3279 (process_stratum_target::multifs_unlink): ... this.
3280 (process_target::multifs_readlink): Rename as ...
3281 (process_stratum_target::multifs_readlink): ... this.
3282 (process_target::breakpoint_kind_from_pc): Rename as ...
3283 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3284 (process_target::breakpoint_kind_from_current_state): Rename as ...
3285 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3286 (process_target::thread_name): Rename as ...
3287 (process_stratum_target::thread_name): ... this.
3288 (process_target::thread_handle): Rename as ...
3289 (process_stratum_target::thread_handle): ... this.
3290 (process_target::supports_software_single_step): Rename as ...
3291 (process_stratum_target::supports_software_single_step): ... this.
3292 (process_target::supports_catch_syscall): Rename as ...
3293 (process_stratum_target::supports_catch_syscall): ... this.
3294 (process_target::get_ipa_tdesc_idx): Rename as ...
3295 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3296
478f9adf
PA
32972020-02-20 Pedro Alves <palves@redhat.com>
3298
3299 * target.cc (set_target_ops): Simply copy the given target pointer
3300 instead of creating a copy of the pointed object.
3301
d633e831
TBA
33022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3303
3304 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3305 of process_target.
3306
3307 * target.h (struct process_stratum_target): Remove the target op.
3308 (class process_target): Add the target op.
3309 (target_get_ipa_tdesc_idx): Update the macro.
3310 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3311
3312 Update the derived classes and callers below.
3313
3314 * linux-low.cc (linux_target_ops): Update.
3315 (linux_get_ipa_tdesc_idx): Turn into ...
3316 (linux_process_target::get_ipa_tdesc_idx): ... this.
3317 * linux-low.h (class linux_process_target): Update.
3318 * lynx-low.cc (lynx_target_ops): Update.
3319 * nto-low.cc (nto_target_ops): Update.
3320 * win32-low.cc (win32_target_ops): Update.
3321
bc8d3ae4
TBA
33222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3323
3324 Turn process_stratum_target's supports_catch_syscall op into a
3325 method of process_target.
3326
3327 * target.h (struct process_stratum_target): Remove the target op.
3328 (class process_target): Add the target op.
3329 (target_supports_catch_syscall): Update the macro.
3330 * target.cc (process_target::supports_catch_syscall): Define.
3331
3332 Update the derived classes and callers below.
3333
3334 * linux-low.cc (linux_target_ops): Update.
3335 (linux_supports_catch_syscall): Turn into ...
3336 (linux_process_target::supports_catch_syscall): ... this.
3337 * linux-low.h (class linux_process_target): Update.
3338 * lynx-low.cc (lynx_target_ops): Update.
3339 * nto-low.cc (nto_target_ops): Update.
3340 * win32-low.cc (win32_target_ops): Update.
3341
5303a34f
TBA
33422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3343
3344 Turn process_stratum_target's supports_software_single_step op
3345 into a method of process_target.
3346
3347 * target.h (struct process_stratum_target): Remove the target op.
3348 (class process_target): Add the target op.
3349 (target_supports_software_single_step): Update the macro.
3350 * target.cc (process_target::supports_software_single_step): Define.
3351
3352 Update the derived classes and callers below.
3353
3354 * linux-low.cc (linux_target_ops): Update.
3355 (linux_supports_software_single_step): Turn into ...
3356 (linux_process_target::supports_software_single_step): ... this.
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
7f63b89b
TBA
33622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3363
3364 Turn process_stratum_target's thread_name and thread_handle ops
3365 into methods of process_target.
3366
3367 * target.h (struct process_stratum_target): Remove the target ops.
3368 (class process_target): Add the target ops.
3369 (target_thread_name): Update the macro.
3370 (target_thread_handle): Update the macro.
3371 * target.cc (process_target::thread_name): Define.
3372 (process_target::thread_handle): Define.
3373
3374 Update the derived classes and callers below.
3375
3376 * linux-low.cc (linux_target_ops): Update.
3377 (linux_process_target::thread_name): Define.
3378 (linux_process_target::thread_handle): Define.
3379 * linux-low.h (class linux_process_target): Update.
3380 * lynx-low.cc (lynx_target_ops): Update.
3381 * nto-low.cc (nto_target_ops): Update.
3382 * win32-low.cc (win32_target_ops): Update.
3383
d367006f
TBA
33842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3385
3386 Turn process_stratum_target's breakpoint_kind_from_pc,
3387 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3388 ops into methods of process_target.
3389
3390 * target.h (struct process_stratum_target): Remove the target op.
3391 (class process_target): Add the target op.
3392 (target_breakpoint_kind_from_pc): Update the macro.
3393 (target_breakpoint_kind_from_current_state): Update the macro.
3394 (default_breakpoint_kind_from_pc): Remove declaration.
3395 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3396 (process_target::breakpoint_kind_from_pc): ... this.
3397 (process_target::breakpoint_kind_from_current_state): Define.
3398
3399 Update the derived classes and callers below.
3400
3401 * mem-break.cc (bp_size): Update.
3402 (bp_opcode): Update.
3403 * linux-low.cc (linux_target_ops): Update.
3404 (linux_wait_1): Update.
3405 (linux_breakpoint_kind_from_pc): Turn into ...
3406 (linux_process_target::breakpoint_kind_from_pc): ... this.
3407 (linux_sw_breakpoint_from_kind): Turn into ...
3408 (linux_process_target::sw_breakpoint_from_kind): ... this.
3409 (linux_breakpoint_kind_from_current_state): Turn into ...
3410 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3411 * linux-low.h (class linux_process_target): Update.
3412 * lynx-low.cc (lynx_target_ops): Update.
3413 (lynx_process_target::sw_breakpoint_from_kind): Define.
3414 * lynx-low.h (class lynx_process_target): Update.
3415 * nto-low.cc (nto_target_ops): Update.
3416 (nto_sw_breakpoint_from_kind): Turn into ...
3417 (nto_process_target::sw_breakpoint_from_kind): ... this.
3418 * nto-low.h (class nto_process_target): Update.
3419 * win32-low.cc (win32_target_ops): Update.
3420 (win32_sw_breakpoint_from_kind): Turn into ...
3421 (win32_process_target::sw_breakpoint_from_kind): ... this.
3422 * win32-low.h (class win32_process_target): Update.
3423
c9b7b804
TBA
34242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3425
3426 Turn process_stratum_target's multifs_open, multifs_readlink,
3427 multifs_unlink ops into methods of process_target.
3428
3429 * target.h (struct process_stratum_target): Remove the target ops.
3430 (class process_target): Add the target ops. Also add
3431 'supports_multifs'.
3432 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3433 "sys/stat.h".
3434 (process_target::supports_multifs): Define.
3435 (process_target::multifs_open): Define.
3436 (process_target::multifs_readlink): Define.
3437 (process_target::multifs_unlink): Define.
3438
3439 Update the derived classes and callers below.
3440
3441 * hostio.cc (handle_setfs): Update.
3442 (handle_open): Update.
3443 (handle_unlink): Update.
3444 (handle_readlink): Update.
3445 * linux-low.cc (linux_target_ops): Update.
3446 (linux_process_target::supports_multifs): Define.
3447 (linux_process_target::multifs_open): Define.
3448 (linux_process_target::multifs_readlink): Define.
3449 (linux_process_target::multifs_unlink): Define.
3450 * linux-low.h (class linux_process_target): Update.
3451 * lynx-low.cc (lynx_target_ops): Update.
3452 * nto-low.cc (nto_target_ops): Update.
3453 * win32-low.cc (win32_target_ops): Update.
3454
8247b823
TBA
34552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3456
3457 Turn process_stratum_target's pid_to_exec_file op into a method
3458 of process_target.
3459
3460 * target.h (struct process_stratum_target): Remove the target op.
3461 (class process_target): Add the target op. Also add
3462 'supports_pid_to_exec_file'.
3463 * target.cc (process_target::pid_to_exec_file): Define.
3464 (process_target::supports_pid_to_exec_file): Define.
3465
3466 Update the derived classes and callers below.
3467
3468 * server.cc (handle_qxfer_exec_file): Update.
3469 (handle_query): Update.
3470 * linux-low.cc (linux_target_ops): Update.
3471 (linux_process_target::supports_pid_to_exec_file): Define.
3472 (linux_process_target::pid_to_exec_file): Define.
3473 * linux-low.h (class linux_process_target): Update.
3474 * lynx-low.cc (lynx_target_ops): Update.
3475 * nto-low.cc (nto_target_ops): Update.
3476 * win32-low.cc (win32_target_ops): Update.
3477
2526e0cd
TBA
34782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3479
3480 Turn process_stratum_target's supports_range_stepping op into a
3481 method of process_target.
3482
3483 * target.h (struct process_stratum_target): Remove the target op.
3484 (class process_target): Add the target op.
3485 (target_supports_range_stepping): Update the macro.
3486 * target.cc (process_target::supports_range_stepping): Define.
3487
3488 Update the derived classes and callers below.
3489
3490 * linux-low.cc (linux_target_ops): Update.
3491 (linux_supports_range_stepping): Turn into ...
3492 (linux_process_target::supports_range_stepping): ... this.
3493 * linux-low.h (class linux_process_target): Update.
3494 * lynx-low.cc (lynx_target_ops): Update.
3495 * nto-low.cc (nto_target_ops): Update.
3496 * win32-low.cc (win32_target_ops): Update.
3497
79597bdd
TBA
34982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3499
3500 Turn process_stratum_target's btrace-related ops (enable_btrace,
3501 disable_btrace, read_btrace, read_btrace_conf) into methods of
3502 process_target.
3503
3504 * target.h (struct process_stratum_target): Remove the target ops.
3505 (class process_target): Add the target ops.
3506 (target_enable_btrace): Update.
3507 (target_disable_btrace): Update.
3508 (target_read_btrace): Update.
3509 (target_read_btrace_conf): Update.
3510 * target.cc (process_target::enable_btrace): Define.
3511 (process_target::disable_btrace): Define.
3512 (process_target::read_btrace): Define.
3513 (process_target::read_btrace_conf): Define.
3514
3515 Update the derived classes and callers below.
3516
3517 * linux-low.cc (linux_target_ops): Update.
3518 (linux_process_target:enable_btrace): Define as a wrapper around
3519 linux_enable_btrace.
3520 (linux_low_disable_btrace): Turn into ...
3521 (linux_process_target::disable_btrace): ... this.
3522 (linux_low_read_btrace): Turn into ...
3523 (linux_process_target::read_btrace): ... this.
3524 (linux_low_btrace_conf): Turn into ...
3525 (linux_process_target::read_btrace_conf): ... this.
3526 * linux-low.h (class linux_process_target): Update.
3527 * lynx-low.cc (lynx_target_ops): Update.
3528 * nto-low.cc (nto_target_ops): Update.
3529 * win32-low.cc (win32_target_ops): Update.
3530
c0245cb9
TBA
35312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3532
3533 Turn process_stratum_target's supports_agent op into a method of
3534 process_target.
3535
3536 * target.h (struct process_stratum_target): Remove the target op.
3537 (class process_target): Add the target op.
3538 (target_supports_agent): Update the macro.
3539 * target.cc (process_target::supports_agent): Define.
3540
3541 Update the derived classes and callers below.
3542
3543 * linux-low.cc (linux_target_ops): Update.
3544 (linux_supports_agent): Turn into ...
3545 (linux_process_target::supports_agent): ... this.
3546 * linux-low.h (class linux_process_target): Update.
3547 * lynx-low.cc (lynx_target_ops): Update.
3548 * nto-low.cc (nto_target_ops): Update.
3549 * win32-low.cc (win32_target_ops): Update.
3550
974387bb
TBA
35512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3552
3553 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3554 method of process_target.
3555
3556 * target.h (struct process_stratum_target): Remove the target op.
3557 (class process_target): Add the target op. Also add
3558 'supports_qxfer_libraries_svr4'.
3559 * target.cc (process_target::qxfer_libraries_svr4): Define.
3560 (process_target::supports_qxfer_libraries_svr4): Define.
3561
3562 Update the derived classes and callers below.
3563
3564 * server.cc (handle_qxfer_libraries_svr4): Update.
3565 (handle_query): Update.
3566 * linux-low.cc (linux_target_ops): Update.
3567 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3568 (linux_qxfer_libraries_svr4): Turn into ...
3569 (linux_process_target::qxfer_libraries_svr4): ... this.
3570 * linux-low.h (class linux_process_target): Update.
3571 * lynx-low.cc (lynx_target_ops): Update.
3572 * nto-low.cc (nto_target_ops): Update.
3573 * win32-low.cc (win32_target_ops): Update.
3574
c756403b
TBA
35752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3576
3577 Turn process_stratum_target's supports_disable_randomization op
3578 into a method of process_target.
3579
3580 * target.h (struct process_stratum_target): Remove the target op.
3581 (class process_target): Add the target op.
3582 (target_supports_disable_randomization): Update the macro.
3583 * target.cc (process_target::supports_disable_randomization): Define.
3584
3585 Update the derived classes and callers below.
3586
3587 * linux-low.cc (linux_target_ops): Update.
3588 (linux_supports_disable_randomization): Turn into ...
3589 (linux_process_target::supports_disable_randomization): ... this.
3590 * linux-low.h (class linux_process_target): Update.
3591 * lynx-low.cc (lynx_target_ops): Update.
3592 * nto-low.cc (nto_target_ops): Update.
3593 * win32-low.cc (win32_target_ops): Update.
3594
345dafad
TBA
35952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3596
3597 Turn process_stratum_target's emit_ops op into a method of
3598 process_target.
3599
3600 * target.h (struct process_stratum_target): Remove the target op.
3601 (class process_target): Add the target op.
3602 (target_emit_ops): Update the macro.
3603 * target.cc (process_target::emit_ops): Define.
3604
3605 Update the derived classes and callers below.
3606
3607 * linux-low.cc (linux_target_ops): Update.
3608 (linux_emit_ops): Turn into ...
3609 (linux_process_target::emit_ops): ... this.
3610 * linux-low.h (class linux_process_target): Update.
3611 * lynx-low.cc (lynx_target_ops): Update.
3612 * nto-low.cc (nto_target_ops): Update.
3613 * win32-low.cc (win32_target_ops): Update.
3614
c23c9391
TBA
36152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3616
3617 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3618 and get_min_fast_tracepoint_insn_len ops into methods of
3619 process_target.
3620
3621 * target.h (struct process_stratum_target): Remove the target ops.
3622 (class process_target): Add the target ops. Also add
3623 'supports_fast_tracepoints'.
3624 (target_supports_fast_tracepoints): Update the macro.
3625 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3626 (install_fast_tracepoint_jump_pad): Update and rename the macro
3627 to ...
3628 (target_install_fast_tracepoint_jump_pad): ... this.
3629 * target.cc (process_target::supports_fast_tracepoints): Define.
3630 (process_target::install_fast_tracepoint_jump_pad): Define.
3631 (process_target::get_min_fast_tracepoint_insn_len): Define.
3632
3633 Update the derived classes and callers below.
3634
3635 * tracepoint.cc (install_fast_tracepoint): Update.
3636 * linux-low.cc (linux_target_ops): Update.
3637 (linux_process_target::supports_fast_tracepoints): Define.
3638 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3639 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3640 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3641 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3642 * linux-low.h (class linux_process_target): Update.
3643 * lynx-low.cc (lynx_target_ops): Update.
3644 * nto-low.cc (nto_target_ops): Update.
3645 * win32-low.cc (win32_target_ops): Update.
3646
5c9eb2f2
TBA
36472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3648
3649 Turn process_stratum_target's stabilize_threads op into a
3650 method of process_target.
3651
3652 * target.h (struct process_stratum_target): Remove the target op.
3653 (class process_target): Add the target op.
3654 (target_stabilize_threads): Update the macro.
3655 * target.cc (process_target::stabilize_threads): Define.
3656
3657 Update the derived classes and callers below.
3658
3659 * server.cc (handle_status): Update.
3660 * tracepoint.cc (cmd_qtdp): Update.
3661 (cmd_qtstart): Update.
3662 * linux-low.cc (linux_target_ops): Update.
3663 (linux_stabilize_threads): Turn into ...
3664 (linux_process_target::stabilize_threads): ... this.
3665 (linux_wait_1): Update.
3666 * linux-low.h (class linux_process_target): Update.
3667 * lynx-low.cc (lynx_target_ops): Update.
3668 * nto-low.cc (nto_target_ops): Update.
3669 * win32-low.cc (win32_target_ops): Update.
3670
29e8dc09
TBA
36712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3672
3673 Turn process_stratum_target's pause_all and unpause_all ops
3674 into methods of process_target.
3675
3676 * target.h (struct process_stratum_target): Remove the target ops.
3677 (class process_target): Add the target ops.
3678 (pause_all): Update the macro and rename to...
3679 (target_pause_all): ... this.
3680 (unpause_all): Update the macro and rename to...
3681 (target_unpause_all): ... this.
3682 * target.cc (process_target::pause_all): Define.
3683 (process_target::unpause_all): Define.
3684
3685 Update the derived classes and callers below.
3686
3687 * server.cc (handle_status): Update.
3688 * tracepoint.cc (clear_installed_tracepoints): Update.
3689 (cmd_qtdp): Update.
3690 (cmd_qtstart): Update.
3691 (stop_tracing): Update.
3692 (cmd_qtstatus): Update.
3693 (upload_fast_traceframes): Update.
3694 (run_inferior_command): Update.
3695 * linux-low.cc (linux_target_ops): Update.
3696 (linux_pause_all): Turn into ...
3697 (linux_process_target::pause_all): ... this.
3698 (linux_unpause_all): Turn into ...
3699 (linux_process_target::unpause_all): ... this.
3700 (linux_process_target::prepare_to_access_memory): Update.
3701 (linux_process_target::done_accessing_memory): Update.
3702 * linux-low.h (class linux_process_target): Update.
3703 * lynx-low.cc (lynx_target_ops): Update.
3704 * nto-low.cc (nto_target_ops): Update.
3705 * win32-low.cc (win32_target_ops): Update.
3706
4e2e869c
TBA
37072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3708
3709 Turn process_stratum_target's get_tib_address op into a method of
3710 process_target.
3711
3712 * target.h (struct process_stratum_target): Remove the target op.
3713 (class process_target): Add the target op. Also add
3714 'supports_get_tib_address'.
3715 * target.cc (process_target::get_tib_address): Define.
3716 (process_target::supports_get_tib_address): Define.
3717
3718 Update the derived classes and callers below.
3719
3720 * server.cc (handle_query): Update.
3721 * linux-low.cc (win32_target_ops): Update.
3722 * lynx-low.cc (lynx_target_ops): Update.
3723 * nto-low.cc (nto_target_ops): Update.
3724 * win32-low.cc (win32_target_ops): Update.
3725 (win32_process_target::supports_get_tib_address): Define.
3726 (win32_get_tib_address): Turn into ...
3727 (win32_process_target::get_tib_address): ... this.
3728 * win32-low.h (class win32_process_target): Update.
3729
68119632
TBA
37302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3731
3732 Turn process_stratum_target's thread_stopped op into a method of
3733 process_target.
3734
3735 * target.h (struct process_stratum_target): Remove the target op.
3736 (class process_target): Add the target op. Also add
3737 'supports_thread_stopped'.
3738 (target_thread_stopped): Update the macro.
3739 * target.cc (process_target::thread_stopped): Define.
3740 (process_target::supports_thread_stopped): Define.
3741 (prepare_to_access_memory): Update.
3742
3743 Update the derived classes and callers below.
3744
3745 * server.cc (queue_stop_reply_callback): Update.
3746 * linux-low.cc (linux_target_ops): Update.
3747 (linux_process_target::supports_thread_stopped): Define.
3748 (linux_thread_stopped): Turn into ...
3749 (linux_process_target::thread_stopped): ... this.
3750 * linux-low.h (class linux_process_target): Update.
3751 * lynx-low.cc (lynx_target_ops): Update.
3752 * nto-low.cc (nto_target_ops): Update.
3753 * win32-low.cc (win32_target_ops): Update.
3754
770d8f6a
TBA
37552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3756
3757 Turn process_stratum_target's read_pc and write_pc ops into
3758 methods of process_target.
3759
3760 * target.h (struct process_stratum_target): Remove the target ops.
3761 (class process_target): Add the target ops.
3762 * target.cc (process_target::read_pc): Define.
3763 (process_target::write_pc): Define.
3764
3765 Update the derived classes and callers below.
3766
3767 * regcache.cc (regcache_read_pc): Update.
3768 (regcache_write_pc): Update.
3769 * linux-low.cc (linux_target_ops): Update.
3770 (linux_read_pc): Turn into ...
3771 (linux_process_target::read_pc): ... this.
3772 (linux_write_pc): Turn into ...
3773 (linux_process_target::write_pc): ... this.
3774 * linux-low.h (class linux_process_target): Update.
3775 * lynx-low.cc (lynx_target_ops): Update.
3776 * nto-low.cc (nto_target_ops): Update.
3777 * win32-low.cc (win32_target_ops): Update.
3778
290732bf
TBA
37792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3780
3781 Turn process_stratum_target's supports_tracepoints op into a
3782 method of process_target.
3783
3784 * target.h (struct process_stratum_target): Remove the target op.
3785 (class process_target): Add the target op.
3786 (target_supports_tracepoints): Update the macro.
3787 * target.cc (process_target::supports_tracepoints): Define.
3788
3789 Update the derived classes and callers below.
3790
3791 * linux-low.cc (linux_target_ops): Update.
3792 (linux_supports_tracepoints): Turn into ...
3793 (linux_process_target::supports_tracepoints): ... this.
3794 * linux-low.h (class linux_process_target): Update.
3795 * lynx-low.cc (lynx_target_ops): Update.
3796 * nto-low.cc (nto_target_ops): Update.
3797 * win32-low.cc (win32_target_ops): Update.
3798
0df28b1b
TBA
37992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3800
3801 Turn process_stratum_target's process_qsupported op into a method
3802 of process_target.
3803
3804 * target.h (struct process_stratum_target): Remove the target op.
3805 (class process_target): Add the target op.
3806 (target_process_qsupported): Update the macro.
3807 * target.cc (process_target::process_qsupported): Define.
3808
3809 Update the derived classes and callers below.
3810
3811 * linux-low.cc (linux_target_ops): Update.
3812 (linux_process_qsupported): Turn into ...
3813 (linux_process_target::process_qsupported): ... this.
3814 * linux-low.h (class linux_process_target): Update.
3815 * lynx-low.cc (lynx_target_ops): Update.
3816 * nto-low.cc (nto_target_ops): Update.
3817 * win32-low.cc (win32_target_ops): Update.
3818
9da41fda
TBA
38192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3820
3821 Turn process_stratum_target's read_loadmap op into a method of
3822 process_target.
3823
3824 * target.h (struct process_stratum_target): Remove the target op.
3825 (class process_target): Add the target op. Also add
3826 'supports_read_loadmap'.
3827 * target.cc (process_target::read_loadmap): Define.
3828 (process_target::supports_read_loadmap): Define.
3829
3830 Update the derived classes and callers below.
3831
3832 * server.cc (handle_qxfer_fdpic): Update.
3833 (handle_query): Update.
3834 * linux-low.cc (linux_target_ops): Update.
3835 (linux_process_target::supports_read_loadmap): Define.
3836 (linux_read_loadmap): Turn into ...
3837 (linux_process_target::read_loadmap): ... this.
3838 * linux-low.h (class linux_process_target): Update.
3839 * lynx-low.cc (lynx_target_ops): Update.
3840 * nto-low.cc (nto_target_ops): Update.
3841 * win32-low.cc (win32_target_ops): Update.
3842
95a45fc1
TBA
38432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3844
3845 Turn process_stratum_target's core_of_thread op into a method of
3846 process_target.
3847
3848 * target.h (struct process_stratum_target): Remove the target op.
3849 (class process_target): Add the target op.
3850 (target_core_of_thread): Update the macro.
3851 * target.cc (process_target::core_of_thread): Define.
3852
3853 Update the derived classes and callers below.
3854
3855 * linux-low.cc (linux_target_ops): Update.
3856 (linux_process_target::core_of_thread): Define.
3857 * linux-low.h (class linux_process_target): Update.
3858 * lynx-low.cc (lynx_target_ops): Update.
3859 * nto-low.cc (nto_target_ops): Update.
3860 * win32-low.cc (win32_target_ops): Update.
3861
55cf3021
TBA
38622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3863
3864 Turn process_stratum_target's handle_monitor_command op into a
3865 method of process_target.
3866
3867 * target.h (struct process_stratum_target): Remove the target op.
3868 (class process_target): Add the target op.
3869 (target_handle_monitor_command): Update the macro.
3870 * target.cc (process_target::handle_monitor_command): Define.
3871
3872 Update the derived classes and callers below.
3873
3874 * server.cc (handle_query): Update.
3875 * linux-low.cc (linux_target_ops): Update.
3876 (linux_process_target::handle_monitor_command): Define.
3877 * linux-low.h (class linux_process_target): Update.
3878 * lynx-low.cc (lynx_target_ops): Update.
3879 * nto-low.cc (nto_target_ops): Update.
3880 * win32-low.cc (win32_target_ops): Update.
3881
fb00dfce
TBA
38822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3883
3884 Turn process_stratum_target's handle_new_gdb_connection op into a
3885 method of process_target.
3886
3887 * target.h (struct process_stratum_target): Remove the target op.
3888 (class process_target): Add the target op.
3889 (target_handle_new_gdb_connection): Update the macro.
3890 * target.cc (process_target::handle_new_gdb_connection): Define.
3891
3892 Update the derived classes and callers below.
3893
3894 * linux-low.cc (linux_target_ops): Update.
3895 (linux_handle_new_gdb_connection): Turn into ...
3896 (linux_process_target::handle_new_gdb_connection): ... this.
3897 * linux-low.h (class linux_process_target): Update.
3898 * lynx-low.cc (lynx_target_ops): Update.
3899 * nto-low.cc (nto_target_ops): Update.
3900 * win32-low.cc (win32_target_ops): Update.
3901
9690a72a
TBA
39022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3903
3904 Turn process_stratum_target's supports_fork_events,
3905 supports_vfork_events, and supports_exec_events ops into methods
3906 of process_target.
3907
3908 * target.h (struct process_stratum_target): Remove the target ops.
3909 (class process_target): Add the target ops.
3910 (target_supports_fork_events): Update the macro.
3911 (target_supports_vfork_events): Update the macro.
3912 (target_supports_exec_events): Update the macro.
3913 * target.cc (process_target::supports_fork_events): Define.
3914 (process_target::supports_vfork_events): Define.
3915 (process_target::supports_exec_events): Define.
3916
3917 Update the derived classes and callers below.
3918
3919 * linux-low.cc (linux_target_ops): Update.
3920 (linux_supports_fork_events): Turn into ...
3921 (linux_process_target::supports_fork_events): ... this.
3922 (linux_supports_vfork_events): Turn into ...
3923 (linux_process_target::supports_vfork_events): ... this.
3924 (linux_supports_exec_events): Turn into ...
3925 (linux_process_target::supports_exec_events): ... this.
3926 * linux-low.h (class linux_process_target): Update.
3927 * lynx-low.cc (lynx_target_ops): Update.
3928 * nto-low.cc (nto_target_ops): Update.
3929 * win32-low.cc (win32_target_ops): Update.
3930
652aef77
TBA
39312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3932
3933 Turn process_stratum_target's supports_multi_process op into a
3934 method of process_target.
3935
3936 * target.h (struct process_stratum_target): Remove the target op.
3937 (class process_target): Add the target op.
3938 * target.cc (process_target::supports_multi_process): Define.
3939 (target_supports_multi_process): Update.
3940
3941 Update the derived classes and callers below.
3942
3943 * linux-low.cc (linux_target_ops): Update.
3944 (linux_supports_multi_process): Turn into ...
3945 (linux_process_target::supports_multi_process): ... this.
3946 * linux-low.h (class linux_process_target): Update.
3947 * lynx-low.cc (lynx_target_ops): Update.
3948 * nto-low.cc (nto_target_ops): Update.
3949 * win32-low.cc (win32_target_ops): Update.
3950
0dc587d4
TBA
39512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3952
3953 Turn process_stratum_target's supports_non_stop, async, and
3954 start_non_stop ops into methods of process_target.
3955
3956 * target.h (struct process_stratum_target): Remove the target ops.
3957 (class process_target): Add the target ops.
3958 (target_supports_non_stop): Update the macro.
3959 (target_async): Update the macro.
3960 (start_non_stop): Remove declaration.
3961 * target.cc (process_target::supports_non_stop): Define.
3962 (process_target::async): Define.
3963 (process_target::start_non_stop): Define.
3964 (start_non_stop): Remove.
3965
3966 Update the derived classes and callers below.
3967
3968 * server.cc (handle_qxfer_siginfo): Update.
3969 (handle_query): Update.
3970 * linux-low.cc (linux_target_ops): Update.
3971 (linux_supports_non_stop): Turn into ...
3972 (linux_process_target::supports_non_stop): ... this.
3973 (linux_async): Turn into ...
3974 (linux_process_target::async): ... this.
3975 (linux_start_non_stop): Turn into ...
3976 (linux_process_target::start_non_stop): ... this.
3977 * linux-low.h (class linux_process_target): Update.
3978 * lynx-low.cc (lynx_target_ops): Update.
3979 * nto-low.cc (nto_target_ops): Update.
3980 (nto_supports_non_stop): Remove; rely on the default behavior
3981 instead.
3982 * win32-low.cc (win32_target_ops): Update.
3983
d7abedf7
TBA
39842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3985
3986 Turn process_stratum_target's qxfer_siginfo op into a method of
3987 process_target.
3988
3989 * target.h (struct process_stratum_target): Remove the target op.
3990 (class process_target): Add the target op. Also add
3991 'supports_qxfer_siginfo'.
3992 * target.cc (process_target::qxfer_siginfo): Define.
3993 (process_target::supports_qxfer_siginfo): Define.
3994
3995 Update the derived classes and callers below.
3996
3997 * server.cc (handle_qxfer_siginfo): Update.
3998 (handle_query): Update.
3999 * linux-low.cc (linux_target_ops): Update.
4000 (linux_process_target::supports_qxfer_siginfo): Define.
4001 (linux_xfer_siginfo): Turn into ...
4002 (linux_process_target::qxfer_siginfo): ... this.
4003 * linux-low.h (class linux_process_target): Update.
4004 * lynx-low.cc (lynx_target_ops): Update.
4005 * nto-low.cc (nto_target_ops): Update.
4006 * win32-low.cc (win32_target_ops): Update.
4007
2d0795ee
TBA
40082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4009
4010 Turn process_stratum_target's qxfer_osdata op into a method of
4011 process_target.
4012
4013 * target.h (struct process_stratum_target): Remove the target op.
4014 (class process_target): Add the target op. Also add
4015 'supports_qxfer_osdata'.
4016 * target.cc (process_target::qxfer_osdata): Define.
4017 (process_target::supports_qxfer_osdata): Define.
4018
4019 Update the derived classes and callers below.
4020
4021 * server.cc (handle_qxfer_osdata): Update.
4022 (handle_query): Update.
4023 * linux-low.cc (linux_target_ops): Update.
4024 (linux_process_target::supports_qxfer_osdata): Define.
4025 (linux_qxfer_osdata): Turn into ...
4026 (linux_process_target::qxfer_osdata): ... this.
4027 * linux-low.h (class linux_process_target): Update.
4028 * lynx-low.cc (lynx_target_ops): Update.
4029 * nto-low.cc (nto_target_ops): Update.
4030 * win32-low.cc (win32_target_ops): Update.
4031
ea06bbaa
TBA
40322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4033
4034 Turn process_stratum_target's hostio_last_error op into a
4035 method of process_target.
4036
4037 * target.h (struct process_stratum_target): Remove the target op.
4038 (class process_target): Add the target op.
4039 * target.cc: Add "hostio.h" to includes.
4040 (process_target::hostio_last_error): Define.
4041
4042 Update the derived classes and callers below.
4043
4044 * hostio.cc (hostio_error): Update.
4045 * linux-low.cc: Remove "hostio.h" from includes.
4046 (linux_target_ops): Update.
4047 * lynx-low.cc (lynx_target_ops): Update.
4048 * nto-low.cc (nto_target_ops): Update.
4049 * win32-low.h (class win32_process_target): Update.
4050 * win32-low.cc (win32_target_ops): Update.
4051 (wince_hostio_last_error): Turn into ...
4052 (win32_process_target::hostio_last_error): ... this.
4053
6e3fd7e9
TBA
40542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4055
4056 Turn process_stratum_target's get_tls_address 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_get_tls_address'.
4062 * target.cc (process_target::get_tls_address): Define.
4063 (process_target::supports_get_tls_address): Define.
4064
4065 Update the derived classes and callers below.
4066
4067 * server.cc (handle_query): Update.
4068 * linux-low.cc (linux_target_ops): Update.
4069 (linux_process_target::supports_get_tls_address): Define.
4070 (linux_process_target::get_tls_address): Define.
4071 * linux-low.h (class linux_process_target): Update.
4072 * lynx-low.cc (lynx_target_ops): Update.
4073 * nto-low.cc (nto_target_ops): Update.
4074 * win32-low.cc (win32_target_ops): Update.
4075
5203ae1e
TBA
40762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4077
4078 Turn process_stratum_target's read_offsets op into a method of
4079 process_target.
4080
4081 * target.h (struct process_stratum_target): Remove the target op.
4082 (class process_target): Add the target op. Also add
4083 'supports_read_offsets'.
4084 * target.cc (process_target::read_offsets): Define.
4085 (process_target::supports_read_offsets): Define.
4086
4087 Update the derived classes and callers below.
4088
4089 * server.cc (handle_query): Update.
4090 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4091 (linux_target_ops): Update.
4092 (linux_process_target::supports_read_offsets): Define.
4093 (linux_read_offsets): Turn into ...
4094 (linux_process_target::read_offsets): ... this.
4095 * linux-low.h (class linux_process_target): Update.
4096 * lynx-low.cc (lynx_target_ops): Update.
4097 * nto-low.cc (nto_target_ops): Update.
4098 * win32-low.cc (win32_target_ops): Update.
4099
6eeb5c55
TBA
41002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4101
4102 Turn process_stratum_target's stopped_by_watchpoint and
4103 stopped_data_address ops into methods of process_target.
4104
4105 * target.h (struct process_stratum_target): Remove the target ops.
4106 (class process_target): Add the target ops.
4107 * target.cc (process_target::stopped_by_watchpoint): Define.
4108 (process_target::stopped_data_address): Define.
4109
4110 Update the derived classes and callers below.
4111
4112 * remote-utils.cc (prepare_resume_reply): Update.
4113 * linux-low.cc (linux_target_ops): Update.
4114 (linux_stopped_by_watchpoint): Turn into ...
4115 (linux_process_target::stopped_by_watchpoint): ... this.
4116 (linux_stopped_data_address): Turn into ...
4117 (linux_process_target::stopped_data_address): ... this.
4118 * linux-low.h (class linux_process_target): Update.
4119 * lynx-low.cc (lynx_target_ops): Update.
4120 * nto-low.cc (nto_target_ops): Update.
4121 (nto_stopped_by_watchpoint): Turn into ...
4122 (nto_process_target::stopped_by_watchpoint): ... this.
4123 (nto_stopped_data_address): Turn into ...
4124 (nto_process_target::stopped_data_address): ... this.
4125 * nto-low.h (class nto_process_target): Update.
4126 * win32-low.cc (win32_target_ops): Update.
4127 (win32_stopped_by_watchpoint): Turn into ...
4128 (win32_process_target::stopped_by_watchpoint): ... this.
4129 (win32_stopped_data_address): Turn into ...
4130 (win32_process_target::stopped_data_address): ... this.
4131 * win32-low.h (class win32_process_target): Update.
4132
22aa6223
TBA
41332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4134
4135 Turn process_stratum_target's supports_hardware_single_step op into
4136 a method of process_target.
4137
4138 * target.h (struct process_stratum_target): Remove the target op.
4139 (class process_target): Add the target op.
4140 (target_supports_hardware_single_step): Update the macro.
4141 (target_can_do_hardware_single_step): Remove declaration.
4142 * target.cc (process_target::supports_hardware_single_step): Define.
4143 (target_can_do_hardware_single_step): Remove.
4144
4145 Update the derived classes and callers below.
4146
4147 * linux-low.h (class linux_process_target): Update.
4148 * linux-low.cc (linux_target_ops): Update.
4149 (linux_supports_hardware_single_step): Turn into ...
4150 (linux_process_target::supports_hardware_single_step): ... this.
4151 * lynx-low.h (class lynx_process_target): Update.
4152 * lynx-low.cc (lynx_target_ops): Update.
4153 (lynx_process_target::supports_hardware_single_step): Define.
4154 * nto-low.h (class nto_process_target): Update.
4155 * nto-low.cc (nto_target_ops): Update.
4156 (nto_process_target::supports_hardware_single_step): Define.
4157 * win32-low.h (class win32_process_target): Update.
4158 * win32-low.cc (win32_target_ops): Update.
4159 (win32_process_target::supports_hardware_single_step): Define.
4160
93fe88b2
TBA
41612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4162
4163 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4164 ops into methods of process_target.
4165
4166 * target.h (struct process_stratum_target): Remove the target ops.
4167 (class process_target): Add the target ops.
4168 (target_stopped_by_hw_breakpoint): Update the macro.
4169 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4170 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4171 (process_target::supports_stopped_by_hw_breakpoint): Define.
4172
4173 Update the derived classes and callers below.
4174
4175 * linux-low.cc (linux_target_ops): Update.
4176 (linux_stopped_by_hw_breakpoint): Turn into ...
4177 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4178 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4179 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4180 * linux-low.h (class linux_process_target): Update.
4181 * lynx-low.cc (lynx_target_ops): Update.
4182 * nto-low.cc (nto_target_ops): Update.
4183 * win32-low.cc (win32_target_ops): Update.
4184
84320c4e
TBA
41852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4186
4187 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4188 ops into methods of process_target.
4189
4190 * target.h (struct process_stratum_target): Remove the target ops.
4191 (class process_target): Add the target ops.
4192 (target_stopped_by_sw_breakpoint): Update the macro.
4193 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4194 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4195 (process_target::supports_stopped_by_sw_breakpoint): Define.
4196
4197 Update the derived classes and callers below.
4198
4199 * linux-low.cc (linux_target_ops): Update.
4200 (linux_stopped_by_sw_breakpoint): Turn into ...
4201 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4202 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4203 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4204 * linux-low.h (class linux_process_target): Update.
4205 * lynx-low.cc (lynx_target_ops): Update.
4206 * nto-low.cc (nto_target_ops): Update.
4207 * win32-low.cc (win32_target_ops): Update.
4208
7e0bde70
TBA
42092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4210
4211 Turn process_stratum_target's insert_point and remove_point ops
4212 into methods of process_target.
4213
4214 * target.h (struct process_stratum_target): Remove the target ops.
4215 (class process_target): Add the target ops.
4216 * target.cc (process_target::insert_point): Define.
4217 (process_target::remove_point): Define.
4218
4219 Update the derived classes and callers below.
4220
4221 * mem-break.cc (set_raw_breakpoint_at): Update.
4222 (delete_raw_breakpoint): Update.
4223 (uninsert_raw_breakpoint): Update.
4224 (reinsert_raw_breakpoint): Update.
4225 * linux-low.cc (linux_target_ops): Update.
4226 (linux_insert_point): Turn into ...
4227 (linux_process_target::insert_point): ... this.
4228 (linux_remove_point): Turn into ...
4229 (linux_process_target::remove_point): ... this.
4230 * linux-low.h (class linux_process_target): Update.
4231 * lynx-low.cc (lynx_target_ops): Update.
4232 * nto-low.cc (nto_target_ops): Update.
4233 (nto_insert_point): Turn into ...
4234 (nto_process_target::insert_point): ... this.
4235 (nto_remove_point): Turn into ...
4236 (nto_process_target::remove_point): ... this.
4237 * nto-low.h (class nto_process_target): Update.
4238 * win32-low.cc (win32_target_ops): Update.
4239 (win32_insert_point): Turn into ...
4240 (win32_process_target::insert_point): ... this.
4241 (win32_remove_point): Turn into ...
4242 (win32_process_target::remove_point): ... this.
4243 * win32-low.h (class win32_process_target): Update.
4244
a2b2297a
TBA
42452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4246
4247 Turn process_stratum_target's supports_z_point_type op into a
4248 method of process_target.
4249
4250 * target.h (struct process_stratum_target): Remove the target op.
4251 (class process_target): Add the target op.
4252 * target.cc (process_target::supports_z_point_type): Define.
4253
4254 Update the derived classes and callers below.
4255
4256 * mem-break.cc (z_type_supported): Update.
4257 * linux-low.cc (linux_target_ops): Update.
4258 (linux_supports_z_point_type): Turn into ...
4259 (linux_process_target::supports_z_point_type): ... this.
4260 * linux-low.h (class linux_process_target): Update.
4261 * lynx-low.cc (lynx_target_ops): Update.
4262 * nto-low.cc (nto_target_ops): Update.
4263 (nto_supports_z_point_type): Turn into ...
4264 (nto_process_target::supports_z_point_type): ... this.
4265 * nto-low.h (class nto_process_target): Update.
4266 * win32-low.cc (win32_target_ops): Update.
4267 (win32_supports_z_point_type): Turn into ...
4268 (win32_process_target::supports_z_point_type): ... this.
4269 * win32-low.h (class win32_process_target): Update.
4270
eac215cc
TBA
42712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4272
4273 Turn process_stratum_target's read_auxv op into a method of
4274 process_target.
4275
4276 * target.h (class process_stratum_target): Remove the target op.
4277 (struct process_target): Add the target op. Also add
4278 'supports_read_auxv'.
4279 * target.cc (process_target::read_auxv): Define.
4280 (process_target::supports_read_auxv): Define.
4281
4282 Update the derived classes and callers below.
4283
4284 * server.cc (handle_qxfer_auxv): Update.
4285 (handle_query): Update.
4286 * linux-low.cc (linux_target_ops): Update.
4287 (linux_process_target::supports_read_auxv): Define.
4288 (linux_read_auxv): Turn into ...
4289 (linux_process_target::read_auxv): ... this.
4290 * linux-low.h (class linux_process_target): Update.
4291 * lynx-low.cc (lynx_target_ops): Update.
4292 * nto-low.cc (nto_target_ops): Update.
4293 (nto_process_target::supports_read_auxv): Define.
4294 (nto_read_auxv): Turn into ...
4295 (nto_process_target::read_auxv): ... this.
4296 * nto-low.h (class nto_process_target): Update.
4297 * win32-low.cc (win32_target_ops): Update.
4298
eb497a2a
TBA
42992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4300
4301 Turn process_stratum_target's request_interrupt op into a method of
4302 process_target.
4303
4304 * target.h (struct process_stratum_target): Remove the target op.
4305 (class process_target): Add the target op.
4306
4307 Update the derived classes and callers below.
4308
4309 * remote-utils.cc (putpkt_binary_1): Update.
4310 (input_interrupt): Update.
4311 (getpkt): Update.
4312 * server.cc (handle_v_requests): Update.
4313 * linux-low.cc (linux_target_ops): Update.
4314 (linux_request_interrupt): Turn into ...
4315 (linux_process_target::request_interrupt): ... this.
4316 * linux-low.h (class linux_process_target): Update.
4317 * lynx-low.cc (lynx_target_ops): Update.
4318 (lynx_request_interrupt): Turn into ...
4319 (lynx_process_target::request_interrupt): ... this.
4320 * lynx-low.h (class lynx_process_target): Update.
4321 * nto-low.cc (nto_target_ops): Update.
4322 (nto_request_interrupt): Turn into ...
4323 (nto_process_target::request_interrupt): ... this.
4324 * nto-low.h (class nto_process_target): Update.
4325 * win32-low.cc (win32_target_ops): Update.
4326 (win32_request_interrupt): Turn into ...
4327 (win32_process_target::request_interrupt): ... this.
4328 * win32-low.h (class win32_process_target): Update.
4329
2a31c7aa
TBA
43302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4331
4332 Turn process_stratum_target's look_up_symbols op into a method of
4333 process_target.
4334
4335 * target.h (struct process_stratum_target): Remove the target op.
4336 (class process_target): Add the target op.
4337 * target.cc (process_target::look_up_symbols): Define.
4338
4339 Update the derived classes and callers below.
4340
4341 * server.cc (handle_query): Update.
4342 * linux-low.cc (linux_target_ops): Update.
4343 (linux_look_up_symbols): Turn into ...
4344 (linux_process_target::look_up_symbols): ... this.
4345 * linux-low.h (class linux_process_target): Update.
4346 * lynx-low.cc (lynx_target_ops): Update.
4347 * nto-low.cc (nto_target_ops): Update.
4348 * win32-low.cc (win32_target_ops): Update.
4349
e2558df3
TBA
43502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4351
4352 Turn process_stratum_target's read_memory and write_memory
4353 ops into methods of process_target.
4354
4355 * target.h (struct process_stratum_target): Remove the target ops.
4356 (class process_target): Add the target ops.
4357
4358 Update the derived classes and callers below.
4359
4360 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4361 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4362 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4363 (arm_get_syscall_trapinfo): Update.
4364 * linux-cris-low.cc (cris_breakpoint_at): Update.
4365 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4366 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4367 * linux-mips-low.cc (mips_breakpoint_at): Update.
4368 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4369 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4370 * linux-sh-low.cc (sh_breakpoint_at): Update.
4371 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4372 (sparc_store_gregset_from_stack): Update.
4373 (sparc_breakpoint_at): Update.
4374 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4375 * linux-tile-low.cc (tile_breakpoint_at): Update.
4376 * linux-x86-low.cc (x86_breakpoint_at): Update.
4377 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4378 * mem-brea.cc (insert_memory_breakpoint): Update.
4379 (validate_inserted_breakpoint): Update.
4380 * target.cc (read_inferior_memory): Update.
4381 (target_write_memory): Update.
4382 * linux-low.cc (linux_target_ops): Update.
4383 (linux_read_memory): Make a wrapper around the read_memory target
4384 op call.
4385 (linux_process_target::read_memory): Rename from linux_read_memory.
4386 (linux_write_memory): Turn into ...
4387 (linux_process_target::write_memory): ... this.
4388 * linux-low.h (class linux_process_target): Update.
4389 * lynx-low.cc (lynx_target_ops): Update.
4390 (lynx_read_memory): Turn into ...
4391 (lynx_process_target::read_memory): ... this.
4392 (lynx_write_memory): Turn into ...
4393 (lynx_process_target::write_memory): ... this.
4394 * lynx-low.h (class lynx_process_target): Update.
4395 * nto-low.cc (nto_target_ops): Update.
4396 (nto_read_memory): Turn into ...
4397 (nto_process_target::read_memory): ... this.
4398 (nto_write_memory): Turn into ...
4399 (nto_process_target::write_memory): ... this.
4400 * nto-low.h (class nto_process_target): Update.
4401 * win32-low.cc (win32_target_ops): Update.
4402 (win32_read_inferior_memory): Turn into ...
4403 (win32_process_target::read_memory): ... this.
4404 (win32_write_inferior_memory): Turn into ...
4405 (win32_process_target::write_memory): ... this.
4406 * win32-low.h (class win32_process_target): Update.
4407
79b44087
TBA
44082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4409
4410 Turn process_stratum_target's prepare_to_access_memory and
4411 done_accessing_memory ops into methods of process_target.
4412
4413 * target.h (struct process_stratum_target): Remove the target ops.
4414 (class process_target): Add the target ops.
4415 * target.cc (process_target::prepare_to_access_memory): Define.
4416 (process_target::done_accessing_memory): Define.
4417 (prepare_to_access_memory): Update.
4418 (done_accessing_memory): Update.
4419
4420 Update the derived classes and callers below.
4421
4422 * linux-low.cc (linux_target_ops): Update.
4423 (linux_prepare_to_access_memory): Turn into ...
4424 (linux_process_target::prepare_to_access_memory): ... this.
4425 (linux_done_accessing_memory): Turn into ...
4426 (linux_process_target::done_accessing_memory): ... this.
4427 * linux-low.h (class linux_process_target): Update.
4428 * lynx-low.cc (lynx_target_ops): Update.
4429 * nto-low.cc (nto_target_ops): Update.
4430 * win32-low.cc (win32_target_ops): Update.
4431
a5a4d4cd
TBA
44322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4433
4434 Turn process_stratum_target's fetch_registers and store_registers
4435 ops into methods of process_target.
4436
4437 * target.h (struct process_stratum_target): Remove the target ops.
4438 (class process_target): Add the target ops.
4439 (fetch_inferior_registers): Update the macro.
4440 (store_inferior_registers): Update the macro.
4441
4442 Update the derived classes and callers below.
4443
4444 * linux-low.cc (linux_target_ops): Update.
4445 (linux_fetch_registers): Turn into ...
4446 (linux_process_target::fetch_registers): ... this.
4447 (linux_store_registers): Turn into ...
4448 (linux_process_target::store_registers): ... this.
4449 * linux-low.h (class linux_process_target): Update.
4450 * lynx-low.cc (lynx_target_ops): Update.
4451 (lynx_fetch_registers): Turn into ...
4452 (lynx_process_target::fetch_registers): ... this.
4453 (lynx_store_registers): Turn into ...
4454 (lynx_process_target::store_registers): ... this.
4455 * lynx-low.h (class lynx_process_target): Update.
4456 * nto-low.cc (nto_target_ops): Update.
4457 (nto_fetch_registers): Turn into ...
4458 (nto_process_target::fetch_registers): ... this.
4459 (nto_store_registers): Turn into ...
4460 (nto_process_target::store_registers): ... this.
4461 * nto-low.h (class nto_process_target): Update.
4462 * win32-low.cc (win32_target_ops): Update.
4463 (win32_fetch_inferior_registers): Turn into ...
4464 (win32_process_target::fetch_registers): ... this.
4465 (win32_store_inferior_registers): Turn into ...
4466 (win32_process_target::store_registers): ... this.
4467 * win32-low.h (class win32_process_target): Update.
4468
6532e7e3
TBA
44692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4470
4471 Turn process_stratum_target's wait op into a method of
4472 process_target.
4473
4474 * target.h (struct process_stratum_target): Remove the target op.
4475 (class process_target): Add the target op.
4476
4477 Update the derived classes and callers below.
4478
4479 * target.cc (target_wait): Update.
4480 * linux-low.cc (linux_target_ops): Update.
4481 (linux_wait): Turn into ...
4482 (linux_process_target::wait): ... this.
4483 * linux-low.h (class linux_process_target): Update.
4484 * lynx-low.cc (lynx_target_ops): Update.
4485 (lynx_wait): Turn into ...
4486 (lynx_process_target::wait): ... this.
4487 * lynx-low.h (class lynx_process_target): Update.
4488 * nto-low.cc (nto_target_ops): Update.
4489 (nto_wait): Turn into ...
4490 (nto_process_target::wait): ... this.
4491 * nto-low.h (class nto_process_target): Update.
4492 * win32-low.cc (win32_target_ops): Update.
4493 (win32_wait): Turn into ...
4494 (win32_process_target::wait): ... this.
4495 (do_initial_child_stuff): Update.
4496 * win32-low.h (class win32_process_target): Update.
4497
0e4d7e35
TBA
44982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4499
4500 Turn process_stratum_target's resume op into a method of
4501 process_target.
4502
4503 * target.h (struct process_stratum_target): Remove the target op.
4504 (class process_target): Add the target op.
4505
4506 Update the derived classes and callers below.
4507
4508 * server.cc (resume): Update.
4509 * target.cc (target_stop_and_wait): Update.
4510 (target_continue_no_signal): Update.
4511 (target_continue): Update.
4512 * linux-low.cc (linux_target_ops): Update.
4513 (linux_resume): Turn into ...
4514 (linux_process_target::resume): ... this.
4515 * linux-low.h (class linux_process_target): Update.
4516 * lynx-low.cc (lynx_target_ops): Update.
4517 (lynx_resume): Turn into ...
4518 (lynx_process_target::resume): ... this.
4519 * lynx-low.h (class lynx_process_target): Update.
4520 * nto-low.cc (nto_target_ops): Update.
4521 (nto_resume): Turn into ...
4522 (nto_process_target::resume): ... this.
4523 * nto-low.h (class nto_process_target): Update.
4524 * win32-low.cc (win32_target_ops): Update.
4525 (win32_resume): Turn into ...
4526 (win32_process_target::resume): ... this.
4527 (win32_process_target::detach): Update.
4528 (do_initial_child_stuff): Update.
4529 * win32-low.h (class win32_process_target): Update.
4530
13d3d99b
TBA
45312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4532
4533 Turn process_stratum_target's thread_alive op into a method of
4534 process_target.
4535
4536 * target.h (struct process_stratum_target): Remove the target op.
4537 (class process_target): Add the target op.
4538 (mythread_alive): Update the macro.
4539
4540 Update the derived classes and callers below.
4541
4542 * linux-low.cc (linux_target_ops): Update.
4543 (linux_thread_alive): Turn into ...
4544 (linux_process_target::thread_alive): ... this.
4545 (wait_for_sigstop): Update.
4546 * linux-low.h (class linux_process_target): Update.
4547 * lynx-low.cc (lynx_target_ops): Update.
4548 (lynx_thread_alive): Turn into ...
4549 (lynx_process_target::thread_alive): ... this.
4550 * lynx-low.h (class lynx_process_target): Update.
4551 * nto-low.cc (nto_target_ops): Update.
4552 (nto_thread_alive): Turn into ...
4553 (nto_process_target::thread_alive): ... this.
4554 * nto-low.h (class nto_process_target): Update.
4555 * win32-low.cc (win32_target_ops): Update.
4556 (win32_thread_alive): Turn into ...
4557 (win32_process_target::thread_alive): ... this.
4558 * win32-low.h (class win32_process_target): Update.
4559
95a49a39
TBA
45602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4561
4562 Turn process_stratum_target's join op into a method of
4563 process_target.
4564
4565 * target.h (struct process_stratum_target): Remove the target op.
4566 (class process_target): Add the target op.
4567 (join_inferior): Update the macro.
4568
4569 Update the derived classes and callers below.
4570
4571 * linux-low.cc (linux_target_ops): Update.
4572 (linux_join): Turn into ...
4573 (linux_process_target::join): ... this.
4574 * linux-low.h (class linux_process_target): Update.
4575 * lynx-low.cc (lynx_target_ops): Update.
4576 (lynx_join): Turn into ...
4577 (lynx_process_target::join): ... this.
4578 * lynx-low.h (class lynx_process_target): Update.
4579 * nto-low.cc (nto_target_ops): Update.
4580 (nto_process_target::join): Define.
4581 * nto-low.h (class nto_process_target): Update.
4582 * win32-low.cc (win32_target_ops): Update.
4583 (win32_join): Turn into ...
4584 (win32_process_target::join): ... this.
4585 * win32-low.h (class win32_process_target): Update.
4586
8adb37b9
TBA
45872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4588
4589 Turn process_stratum_target's mourn op into a method of
4590 process_target.
4591
4592 * target.h (struct process_stratum_target): Remove the target op.
4593 (class process_target): Add the target op.
4594
4595 Update the derived classes and callers below.
4596
4597 * target.cc (target_mourn_inferior): Update.
4598 * linux-low.cc (linux_target_ops): Update.
4599 (linux_mourn): Turn into ...
4600 (linux_process_target::mourn): ... this.
4601 (handle_extended_wait): Update.
4602 (linux_process_target::kill): Update.
4603 (linux_process_target::detach): Update.
4604 * linux-low.h (class linux_process_target): Update.
4605 * lynx-low.cc (lynx_target_ops): Update.
4606 (lynx_mourn): Turn into ...
4607 (lynx_process_target::mourn): ... this.
4608 * lynx-low.h (class lynx_process_target): Update.
4609 * nto-low.cc (nto_target_ops): Update.
4610 (nto_mourn): Turn into ...
4611 (nto_process_target::mourn): ... this.
4612 * nto-low.h (class nto_process_target): Update.
4613 * win32-low.cc (win32_target_ops): Update.
4614 (win32_mourn): Turn into ...
4615 (win32_process_target::mourn): ... this.
4616 * win32-low.h (class win32_process_target): Update.
4617
9061c9cf
TBA
46182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4619
4620 Turn process_stratum_target's detach op into a method of
4621 process_target.
4622
4623 * target.h (struct process_stratum_target): Remove the target op.
4624 (class process_target): Add the target op.
4625 (detach_inferior): Update the macro.
4626
4627 Update the derived classes and callers below.
4628
4629 * linux-low.cc (linux_target_ops): Update.
4630 (linux_detach): Turn into ...
4631 (linux_process_target::detach): ... this.
4632 * linux-low.h (class linux_process_target): Update.
4633 * lynx-low.cc (lynx_target_ops): Update.
4634 (lynx_detach): Turn into ...
4635 (lynx_process_target::detach): ... this.
4636 * lynx-low.h (class lynx_process_target): Update.
4637 * nto-low.cc (nto_target_ops): Update.
4638 (nto_detach): Turn into ...
4639 (nto_process_target::detach): ... this.
4640 * nto-low.h (class nto_process_target): Update.
4641 * win32-low.cc (win32_target_ops): Update.
4642 (win32_detach): Turn into ...
4643 (win32_process_target::detach): ... this.
4644 * win32-low.h (class win32_process_target): Update.
4645
c6885a57
TBA
46462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4647
4648 Turn process_stratum_target's kill op into a method of
4649 process_target.
4650
4651 * target.h (struct process_stratum_target): Remove the target op.
4652 (class process_target): Add the target op.
4653
4654 Update the derived classes and callers below.
4655
4656 * target.cc (kill_inferior): Update.
4657 * linux-low.cc (linux_target_ops): Update.
4658 (linux_kill): Turn into ...
4659 (linux_process_target::kill): ... this.
4660 * linux-low.h (class linux_process_target): Update.
4661 * lynx-low.cc (lynx_target_ops): Update.
4662 (lynx_kill): Turn into ...
4663 (lynx_process_target::kill): ... this.
4664 * lynx-low.h (class lynx_process_target): Update.
4665 * nto-low.cc (nto_target_ops): Update.
4666 (nto_kill): Turn into ...
4667 (nto_process_target::kill): ... this.
4668 * nto-low.h (class nto_process_target): Update.
4669 * win32-low.cc (win32_target_ops): Update.
4670 (win32_kill): Turn into ...
4671 (win32_process_target::kill): ... this.
4672 * win32-low.h (class win32_process_target): Update.
4673
ef03dad8
TBA
46742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4675
4676 Turn process_stratum_target's attach op into a method of
4677 process_target.
4678
4679 * target.h (struct process_stratum_target): Remove the target op.
4680 (class process_target): Add the target op.
4681 (myattach): Update the macro.
4682
4683 Update the derived classes and callers below.
4684
4685 * linux-low.cc (linux_target_ops): Update.
4686 (linux_attach): Turn into ...
4687 (linux_process_target::attach): ... this.
4688 * linux-low.h (class linux_process_target): Update.
4689 * lynx-low.cc (lynx_target_ops): Update.
4690 (lynx_attach): Turn into ...
4691 (lynx_process_target::attach): ... this.
4692 * lynx-low.h (class lynx_process_target): Update.
4693 * nto-low.cc (nto_target_ops): Update.
4694 (nto_attach): Turn into ...
4695 (nto_process_target::attach): ... this.
4696 * nto-low.h (class nto_process_target): Update.
4697 * win32-low.cc (win32_target_ops): Update.
4698 (win32_attach): Turn into ...
4699 (win32_process_target::attach): ... this.
4700 * win32-low.h (class win32_process_target): Update.
4701
6dee9afb
TBA
47022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4703
4704 Turn process_stratum_target's post_create_inferior op into a method
4705 of process_target.
4706
4707 * target.h (struct process_stratum_target): Remove the target op.
4708 (class process_target): Add the target op.
4709 (target_post_create_inferior): Update the macro.
4710 * target.cc (process_target::post_create_inferior): Define.
4711
4712 Update the derived classes and callers below.
4713
4714 * linux-low.cc (linux_target_ops): Update.
4715 (linux_post_create_inferior): Turn into ...
4716 (linux_process_target::post_create_inferior): ... this.
4717 * linux-low.h (class linux_process_target): Update.
4718 * lynx-low.cc (lynx_target_ops): Update.
4719 * nto-low.cc (nto_target_ops): Update.
4720 * win32-low.cc (win32_target_ops): Update.
4721
15295543
TBA
47222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4723
4724 Turn process_stratum_target's create_inferior op into a method of
4725 process_target.
4726
4727 * target.h (struct process_stratum_target): Remove the target op.
4728 (class process_target): Add the target op.
4729 (create_inferior): Rename the macro to ...
4730 (target_create_inferior): ... this.
4731
4732 Update the derived classes and callers below.
4733
4734 * server.cc (handle_v_run): Update.
4735 (captured_main): Update.
4736 (process_serial_event): Update.
4737 * linux-low.cc (linux_target_ops): Update.
4738 (linux_create_inferior): Turn into ...
4739 (linux_process_target::create_inferior): ... this.
4740 * linux-low.h (class linux_process_target): Update.
4741 * lynx-low.cc (lynx_target_ops): Update.
4742 (lynx_create_inferior): Turn into ...
4743 (lynx_process_target::create_inferior): ... this.
4744 * lynx-low.h (class lynx_process_target): Update.
4745 * nto-low.cc (nto_target_ops): Update.
4746 (nto_create_inferior): Turn into ...
4747 (nto_process_target::create_inferior): ... this.
4748 * nto-low.h (class nto_process_target): Update.
4749 * win32-low.cc (win32_target_ops): Update.
4750 (win32_create_inferior): Turn into ...
4751 (win32_process_target::create_inferior): ... this.
4752 * win32-low.h (class win32_process_target): Update.
4753
5ef9273d
TBA
47542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4755
4756 * target.h (class process_target): New class definition.
4757 (struct process_stratum_target) <pt>: New field with type
4758 'process_target*'.
4759 * linux-low.h (class linux_process_target): Define as a derived
4760 class of 'process_target'.
4761 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4762 as the 'pt' field.
4763 * lynx-low.h (class lynx_process_target): Define as a derived
4764 class of 'process_target'.
4765 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4766 as the 'pt' field.
4767 * nto-low.h (class nto_process_target): Define as a derived
4768 class of 'process_target'.
4769 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4770 as the 'pt' field.
4771 * win32-low.h (class win32_process_target): Define as a derived
4772 class of 'process_target'.
4773 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4774 as the 'pt' field.
4775
9f1528a1
AB
47762020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4777
4778 * configure: Regenerate.
4779
bf84f706
MR
47802020-02-19 Maciej W. Rozycki <macro@wdc.com>
4781 Andrew Burgess <andrew.burgess@embecosm.com>
4782
4783 * linux-riscv-low.cc: New file.
4784 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4785 and nat/riscv-linux-tdesc.c.
4786 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4787 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4788 Define.
4789
1a627e7e
TT
47902020-02-14 Tom Tromey <tom@tromey.com>
4791
4792 * acinclude.m4: Don't include acx_configure_dir.m4.
4793 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4794 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4795 (all, install-only, uninstall, clean-info, clean)
4796 (maintainer-clean): Don't recurse.
4797 (subdir_do, all-lib): Remove.
4798 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4799 (GNULIB_H): Remove.
4800 (generated_files): Update.
4801 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4802 * configure: Rebuild.
4803 * configure.ac: Don't configure gnulib or libiberty.
4804 (GNULIB): Update.
4805
a9b34532
EZ
48062020-02-14 Eli Zaretskii <eliz@gnu.org>
4807
4808 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4809 preparing the command line for CreateProcess.
4810 (win32_create_inferior): Reflect the program name in debugging
4811 output that shows the process and its command line.
4812
feacfcac
SM
48132020-02-13 Simon Marchi <simon.marchi@efficios.com>
4814
4815 * Makefile.in: Rename source files from .c to .cc.
4816 * %.c: Rename to %.cc.
4817 * configure.ac: Rename server.c to server.cc.
4818 * configure: Re-generate.
4819
06b3c5bd
SM
48202020-02-13 Simon Marchi <simon.marchi@efficios.com>
4821
4822 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4823
052793ad
HD
48242020-02-12 Hannes Domani <ssbssa@yahoo.de>
4825
4826 * win32-low.c (win32_create_inferior): Set signal_pid.
4827
f20e3e82
MR
48282020-02-12 Maciej W. Rozycki <macro@wdc.com>
4829 Pedro Alves <palves@redhat.com>
4830
4831 Skip building gdbserver in a cross-configuration.
4832 * configure.srv: Set $gdbserver_host depending on whether $target
4833 is $host. Use $gdbserver_host instead of $host.
4834
8ddd8e0e
SM
48352020-02-11 Simon Marchi <simon.marchi@efficios.com>
4836
4837 * configure: Re-generate.
4838
898e7f60
SM
48392020-02-11 Simon Marchi <simon.marchi@efficios.com>
4840
4841 * configure: Re-generate.
4842
58df732b
SM
48432020-02-11 Simon Marchi <simon.marchi@efficios.com>
4844
4845 * acinclude.m4: Update warning.m4 path.
4846
7928d571
HD
48472020-02-09 Hannes Domani <ssbssa@yahoo.de>
4848
4849 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4850 (handle_exception): Set siginfo_er.
4851 (win32_xfer_siginfo): New function.
4852
919adfe8
TT
48532020-02-07 Tom Tromey <tom@tromey.com>
4854 Pedro Alves <palves@redhat.com>
4855
4856 * README: Update build documentation.
4857 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4858 host, not target.
4859 * configure.ac: Update paths.
4860 * configure: Rebuild.
4861 * acinclude.m4: Update paths.
4862 * Makefile.in: Update include paths.
4863 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4864 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4865 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4866 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4867 (%-generated.c): Update paths.
4868 * Move entire directory from ../gdb/gdbserver.
4869
287c844a
MR
48702020-01-29 Maciej W. Rozycki <macro@wdc.com>
4871
4872 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4873
548a204f
PFC
48742020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4875
4876 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4877 assignment instead of srv_linux_obj.
4878
a2236a08
HD
48792020-01-28 Hannes Domani <ssbssa@yahoo.de>
4880
4881 * server.c (handle_qxfer_libraries): Write segment-address with
4882 paddress.
4883
bdaed379
HD
48842020-01-24 Hannes Domani <ssbssa@yahoo.de>
4885
4886 * Makefile.in (install-strip): New target.
4887 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4888 * aclocal.m4: Regenerate.
4889 * configure: Regenerate.
4890 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4891
42cd72aa
MR
48922020-01-24 Maciej W. Rozycki <macro@wdc.com>
4893
4894 * Makefile.in (SFILES): Adjust paths to point to real files.
4895 (OBS): Move waitstatus.o to target/waitstatus.o.
4896 (TAGS): Transform paths appropriately.
4897 (%.o): Rename to...
4898 (nat/%.o): ... this pattern rule.
4899 (%.o): Rename to...
4900 (target/%.o): ... this pattern rule.
4901 * configure.srv: Adjust paths throughout to include nat/ prefix
4902 with the revant files.
4903 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4904 * configure: Regenerate.
4905
42ba50ec
MR
49062020-01-24 Maciej W. Rozycki <macro@wdc.com>
4907
4908 * Makefile.in (TAGS): Remove config files from the recipe.
4909
05ea2a05
TT
49102020-01-14 Tom Tromey <tom@tromey.com>
4911
4912 * configure: Rebuild.
4913 * configure.ac: Remove any checks that were added to common.m4.
4914 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4915 lib-link.m4.
4916
01027315
TT
49172020-01-14 Tom Tromey <tom@tromey.com>
4918
4919 * server.h: Include config.h.
4920 * gdbreplay.c: Include config.h.
4921 * configure: Rebuild.
4922 * configure.ac: Don't source common.host.
4923 * acinclude.m4: Update path.
4924 * Makefile.in (INCSUPPORT): New variable.
4925 (INCLUDE_CFLAGS): Add INCSUPPORT.
4926 (SFILES): Update paths.
4927 (version-generated.c): Update path to create-version.sh.
4928 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4929
b2ceabe8
TT
49302020-01-14 Tom Tromey <tom@tromey.com>
4931
4932 * configure.ac (LIBS): Use WIN32APILIBS.
4933 (USE_WIN32API): Don't define.
4934 * configure: Rebuild.
4935
25c51f71
TT
49362020-01-14 Tom Tromey <tom@tromey.com>
4937
4938 * configure: Rebuild.
4939
c0bd321d
SM
49402020-01-13 Simon Marchi <simon.marchi@efficios.com>
4941
4942 * Makefile.in (%-generated.c): Remove rule for files from
4943 regformats/i386.
4944
bb564c58
SM
49452020-01-13 Simon Marchi <simon.marchi@efficios.com>
4946
4947 * configure: Re-generate.
4948
6e37c371
SM
49492020-01-13 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4952 Define to static.
4953 * tracepoint.c (stop_tracing, flush_trace_buffer,
4954 about_to_request_buffer_space, get_trace_state_variable_value,
4955 set_trace_state_variable_value, gdb_collect): Add declaration.
4956
df4a0200
SM
49572020-01-13 Simon Marchi <simon.marchi@efficios.com>
4958
4959 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4960 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4961 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4962 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4963 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4964 static.
4965
89e94ec9
SM
49662020-01-13 Simon Marchi <simon.marchi@efficios.com>
4967
4968 * inferiors.c: Include gdbsupport/common-inferior.h.
4969
2552728a
SM
49702020-01-13 Simon Marchi <simon.marchi@efficios.com>
4971
4972 * hostio-errno.c: Include hostio.h.
4973
4025fa09
SM
49742020-01-13 Simon Marchi <simon.marchi@efficios.com>
4975
4976 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4977 prerequisite.
4978
c0b0a142
SM
49792020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4980
4981 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4982 * linux-arm-tdesc.h: Include arch/arm.h.
4983
bb1183e2
SM
49842020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4985
4986 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4987
f5df0b5f
SM
49882020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4989
4990 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4991 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4992
5b6d1e4f
PA
49932020-01-10 Pedro Alves <palves@redhat.com>
4994
4995 * fork-child.c (post_fork_inferior): Pass target down to
4996 startup_inferior.
4997 * inferiors.c (switch_to_thread): Add process_stratum_target
4998 parameter.
4999 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
5000 * nto-low.c (nto_target_ops): Now a process_stratum_target.
5001 * linux-low.c (linux_target_ops): Now a process_stratum_target.
5002 * remote-utils.c (prepare_resume_reply): Pass the target to
5003 switch_to_thread.
5004 * target.c (the_target): Now a process_stratum_target.
5005 (done_accessing_memory): Pass the target to switch_to_thread.
5006 (set_target_ops): Ajust to use process_stratum_target.
5007 * target.h (struct target_ops): Rename to ...
5008 (struct process_stratum_target): ... this.
5009 (the_target, set_target_ops): Adjust.
5010 (prepare_to_access_memory): Adjust comment.
5011 * win32-low.c (child_xfer_memory): Adjust to use
5012 process_stratum_target.
5013 (win32_target_ops): Now a process_stratum_target.
5014
559e7e50
EZ
50152020-01-06 Eli Zaretskii <eliz@gnu.org>
5016 Pedro Alves <palves@redhat.com>
5017
5018 * win32-low.c (get_child_debug_event): Extract the fatal exception
5019 from the exit status and convert to the equivalent Posix signal
5020 number.
5021 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5022 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5023
48189bec
HD
50242020-01-01 Hannes Domani <ssbssa@yahoo.de>
5025
5026 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5027
5dd8bf88
JB
50282020-01-01 Joel Brobecker <brobecker@adacore.com>
5029
5030 * server.c (gdbserver_version): Change copyright year to 2020.
5031 * gdbreplay.c (gdbreplay_version): Likewise.
5032
0ad6b8ee
CB
50332019-12-19 Christian Biesinger <cbiesinger@google.com>
5034
5035 * configure: Regenerate.
5036 * configure.ac: Quote variable arguments of test.
5037
1ee7b812
BE
50382019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5039
5040 * Makefile.in: Fix build with GNU Make 3.81
5041
d9fa87f4
TT
50422019-12-16 Tom Tromey <tromey@adacore.com>
5043
5044 * server.c (get_exec_file): Constify result.
5045
ab7d13f0
CB
50462019-12-10 Christian Biesinger <cbiesinger@google.com>
5047
5048 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5049 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5050 * config.in: Regenerate.
5051 * configure: Regenerate.
5052 * configure.ac: Don't check for strerror.
5053 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5054 Call safe_strerror instead of strerror.
5055 * server.h (strerror): Remove this now-unnecessary declaration.
5056 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5057 strerror.
5058 (gdb_agent_helper_thread): Likewise.
5059 * utils.c (perror_with_name): Likewise.
5060
4da8c3a8
TT
50612019-11-26 Tom Tromey <tom@tromey.com>
5062
5063 * configure, config.in: Rebuild.
5064
21987b9c
TT
50652019-11-26 Tom Tromey <tom@tromey.com>
5066
5067 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5068 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5069 gdb_sigmask.
5070 * configure, config.in: Rebuild.
5071
5e030278
TT
50722019-11-26 Tom Tromey <tom@tromey.com>
5073
5074 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5075 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5076 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5077 * acinclude.m4: Include ax_pthread.m4.
5078 * config.in, configure: Rebuild.
5079
6d91ce9a
CB
50802019-11-26 Christian Biesinger <cbiesinger@google.com>
5081
5082 * debug.c (debug_set_output): Call safe_strerror instead of
5083 strerror.
5084 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5085 (linux_kill_one_lwp): Likewise.
5086 (linux_detach_one_lwp): Likewise.
5087 (linux_wait_for_event_filtered): Likewise.
5088 (store_register): Likewise.
5089 * lynx-low.c (lynx_attach): Likewise.
5090 * mem-break.c (insert_memory_breakpoint): Likewise.
5091 (remove_memory_breakpoint): Likewise.
5092 (delete_fast_tracepoint_jump): Likewise.
5093 (set_fast_tracepoint_jump): Likewise.
5094 (uninsert_fast_tracepoint_jumps_at): Likewise.
5095 (reinsert_fast_tracepoint_jumps_at): Likewise.
5096 * nto-low.c (nto_xfer_memory): Likewise.
5097 (nto_resume): Likewise.
5098
6cdd651f
LM
50992019-11-20 Luis Machado <luis.machado@linaro.org>
5100
5101 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5102 instead of register count.
5103 * tdesc.c (tdesc_contains_feature): New function.
5104 * tdesc.h (tdesc_contains_feature): New prototype.
5105
cd850b40
CB
51062019-11-15 Christian Biesinger <cbiesinger@google.com>
5107
5108 * Makefile.in: Add safe-strerror.c.
5109 * configure: Regenerate.
5110 * configure.ac: Don't source common.host.
5111
5abebf3c
CB
51122019-11-15 Christian Biesinger <cbiesinger@google.com>
5113
5114 * config.in: Regenerate.
5115 * configure: Regenerate.
5116
e06f3d6e
AB
51172019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5118
5119 * ax.c (ax_printf): Handle size_t_arg.
5120
ca3a04f6
CB
51212019-11-06 Christian Biesinger <cbiesinger@google.com>
5122
5123 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5124 * mi/mi-main.c (output_cores): Likewise.
5125 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5126 (linux_xfer_osdata_modules): Likewise.
5127 * remote.c (register_remote_support_xml): Likewise.
5128 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5129 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5130
e48f6033
CB
51312019-11-01 Christian Biesinger <cbiesinger@google.com>
5132
5133 * configure: Regenerate.
5134 * configure.ac: Remove check for strerror_r.
5135
e7e97a2e
CB
51362019-10-31 Christian Biesinger <cbiesinger@google.com>
5137
5138 * config.in: Regenerate.
5139 * configure: Regenerate.
5140 * configure.ac: Also check for strerror_r.
5141
75cafaa6
CB
51422019-10-31 Christian Biesinger <cbiesinger@google.com>
5143
5144 * ax.h (debug_agent): Remove duplicate declaration.
5145
30baf67b
TV
51462019-10-26 Tom de Vries <tdevries@suse.de>
5147
5148 * linux-aarch64-low.c: Fix typos in comments.
5149 * linux-arm-low.c: Same.
5150 * linux-low.c: Same.
5151 * linux-ppc-low.c: Same.
5152 * proc-service.c: Same.
5153 * regcache.h: Same.
5154 * server.c: Same.
5155 * tracepoint.c: Same.
5156 * win32-low.c: Same.
5157
52c64cf7
TT
51582019-10-25 Tom Tromey <tromey@adacore.com>
5159
5160 * utils.c (xstrdup): Remove.
5161
c12d372d
TT
51622019-10-23 Tom Tromey <tom@tromey.com>
5163
5164 * configure, config.in: Rebuild.
5165
4d0b984b
TT
51662019-10-23 Tom Tromey <tom@tromey.com>
5167
5168 * configure: Rebuild.
5169 * acinclude.m4: Use m4_include, not sinclude.
5170
c5adaa19
TT
51712019-10-17 Tom Tromey <tromey@adacore.com>
5172
5173 * configure: Rebuild.
5174 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5175 in AC_CONFIG_FILES invocation.
5176 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5177 invocation.
5178
fec4e896
CB
51792019-10-16 Christian Biesinger <cbiesinger@google.com>
5180
5181 * server.c: Include xml-builtin.h.
5182 (get_xml_features): Don't declare xml_builtins here.
5183
00975ff6
AB
51842019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5185
5186 * Makefile.in: Remove references to vec-ipa.o.
5187
0dc32745
AB
51882019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5189
5190 * Makefile.in: Remove references to vec.c.
5191
3e6ec53a
CB
51922019-10-02 Christian Biesinger <cbiesinger@google.com>
5193
5194 * server.c (server_waiting): Change to bool.
5195 (extended_protocol): Likewise.
5196 (response_needed): Likewise.
5197 (exit_requested): Likewise.
5198 (run_once): Likewise.
5199 (report_no_resumed): Likewise.
5200 (non_stop): Likewise.
5201 (disable_packet_vCont): Likewise.
5202 (disable_packet_Tthread): Likewise.
5203 (disable_packet_qC): Likewise.
5204 (disable_packet_qfThreadInfo): Likewise.
5205 (handle_general_set): Update.
5206 (handle_detach): Update.
5207 (handle_monitor_command): Update.
5208 (handle_query): Update.
5209 (captured_main): Update.
5210 (process_serial_event): Update.
5211 * server.h (server_waiting): Change to bool.
5212 (disable_packet_vCont): Likewise.
5213 (disable_packet_Tthread): Likewise.
5214 (disable_packet_qC): Likewise.
5215 (disable_packet_qfThreadInfo): Likewise.
5216 (run_once): Likewise.
5217 (non_stop): Likewise.
5218 * target.c (target_stop_and_wait): Update.
5219
80fd2826
TT
52202019-10-02 Tom Tromey <tromey@adacore.com>
5221
5222 * Makefile.in (SFILES): Add common-inferior.c.
5223 (OBS): Add common-inferior.o.
5224 * server.c (startup_with_shell): Don't define.
5225
46f29a9a
AB
52262019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5227
5228 * linux-low.c (linux_low_read_btrace): Update for change to
5229 std::vector.
5230
f9d949fb
CB
52312019-09-20 Christian Biesinger <cbiesinger@google.com>
5232
5233 * debug.c (debug_threads): Remove comment in favor of the header.
5234 * debug.h (using_threads): Add declaration.
5235 (debug_threads): Add comment.
5236 * linux-aarch64-low.c: Include debug.h and remove declaration of
5237 debug_threads.
5238 * nto-low.c: Likewise.
5239 * remote-utils.c: Likewise.
5240 * thread-db.c: Likewise.
5241
abf516c6
UW
52422019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5243
5244 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5245 and powerpc-cell64l-ipa.o.
5246 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5247 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5248 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5249 (spu*-*-*): Remove.
5250
5251 * spu-low.c: Remove file.
5252
5253 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5254 (parse_spufs_run): Remove.
5255 (ppc_get_pc): Remove Cell/B.E. support.
5256 (ppc_set_pc): Likewise.
5257 (ppc_breakpoint_at): Likewise.
5258 (ppc_arch_setup): Likewise.
5259 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5260 tdesc_powerpc_cell32l.
5261 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5262 or init_registers_powerpc_cell32l.
5263 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5264 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5265 or init_registers_powerpc_cell32l.
5266 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5267 (init_registers_powerpc_cell32l): Remove prototype.
5268 (init_registers_powerpc_cell64l): Likewise.
5269
5270 * target.h (struct target_ops): Remove qxfer_spu member.
5271 * server.c (handle_qxfer_spu): Remove.
5272 (qxfer_packets): Remove entry for "spu".
5273 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5274 * linux-low.c (SPUFS_MAGIC): Remove.
5275 (spu_enumerate_spu_ids): Remove.
5276 (linux_qxfer_spu): Remove.
5277 (linux_target_ops): Remove qxfer_spu member.
5278 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5279 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5280 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5281
2d41fa11
SDJ
52822019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5283
5284 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5285 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5286 * config.in: Regenerate.
5287 * configure: Regenerate.
5288
d59b55f0
TT
52892019-08-15 Tom Tromey <tromey@adacore.com>
5290
5291 * target.c (target_write_memory): Use gdb::byte_vector.
5292
4196ab2a
TT
52932019-08-15 Tom Tromey <tromey@adacore.com>
5294
5295 * tracepoint.c (write_inferior_data_pointer)
5296 (write_inferior_integer, write_inferior_int8)
5297 (write_inferior_uinteger, m_tracepoint_action_download)
5298 (r_tracepoint_action_download, x_tracepoint_action_download)
5299 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5300 (download_agent_expr, download_tracepoint_1)
5301 (download_trace_state_variables, upload_fast_traceframes): Update.
5302 * server.c (gdb_write_memory): Update.
5303 * remote-utils.c (relocate_instruction): Update.
5304 * proc-service.c (ps_pdwrite): Update.
5305 * mem-break.c (remove_memory_breakpoint)
5306 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5307 (uninsert_fast_tracepoint_jumps_at)
5308 (reinsert_fast_tracepoint_jumps_at): Update.
5309 * linux-x86-low.c (append_insns)
5310 (i386_install_fast_tracepoint_jump_pad)
5311 (amd64_write_goto_address, i386_write_goto_address): Update.
5312 * linux-s390-low.c (append_insns, s390_write_goto_address):
5313 Update.
5314 * linux-ppc-low.c (ppc_relocate_instruction)
5315 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5316 (ppc_write_goto_address): Update.
5317 * linux-aarch64-low.c (append_insns): Update.
5318 * target.h (struct target_ops): Update.
5319 (write_inferior_memory): Don't declare.
5320 * target.c (target_write_memory): Rename from
5321 write_inferior_memory. Remove old target_write_memory.
5322
c6778d00
TT
53232019-08-15 Tom Tromey <tromey@adacore.com>
5324
5325 * target.c (write_inferior_memory): Use std::vector.
5326
404f2902
FCE
53272019-08-06 Frank Ch. Eigler <fche@redhat.com>
5328
5329 PR build/24886
5330 * configure.ac: Drop enable-libmcheck support.
5331 * configure, config.in: Rebuild.
5332 * acinclude.m4: Don't include it.
5333
4c5aa8e0
AH
53342019-07-19 Alan Hayward <alan.hayward@arm.com>
5335
5336 * configure.srv: Remove Arm xml files.
5337
7cc17433
AH
53382019-07-19 Alan Hayward <alan.hayward@arm.com>
5339
5340 * configure.srv: Add new files. Remove xml generated files.
5341 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5342 registers.
5343 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5344 * linux-aarch32-tdesc.c: New file.
5345 * linux-aarch32-tdesc.h: New file.
5346 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5347 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5348 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5349 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5350 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5351 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5352 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5353 (arm_read_description): Call arm_linux_read_description.
5354 (initialize_low_arch): Don't init registers.
5355 * linux-arm-tdesc.c: New file.
5356 * linux-arm-tdesc.h: New file.
5357
166a82be
AH
53582019-07-10 Alan Hayward <alan.hayward@arm.com>
5359
5360 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5361 Move counter inside for.
5362 (arm_read_description): Check ptrace earlier.
5363 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5364
268a13a5
TT
53652019-07-09 Tom Tromey <tom@tromey.com>
5366
5367 * configure: Rebuild.
5368 * configure.ac: Change common to gdbsupport.
5369 * acinclude.m4: Change common to gdbsupport.
5370 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5371 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5372 common to gdbsupport.
5373 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5374 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5375 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5376 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5377 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5378 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5379 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5380 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5381 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5382 common to gdbsupport.
5383
350fab54
AH
53842019-07-04 Alan Hayward <alan.hayward@arm.com>
5385
5386 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5387 defines.
5388 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5389
2b40fda7
AH
53902019-07-04 Alan Hayward <alan.hayward@arm.com>
5391
5392 * configure.srv: Remove legacy xml.
5393 * linux-aarch64-low.c (initialize_low_arch): Remove
5394 initialize_low_tdesc call.
5395 * linux-aarch64-tdesc-selftest.c: Remove file.
5396 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5397 * linux-x86-low.c (initialize_low_arch): Remove
5398 initialize_low_tdesc call.
5399 * linux-x86-tdesc-selftest.c: Remove file.
5400 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5401
7d10623d
TV
54022019-06-20 Tom de Vries <tdevries@suse.de>
5403
5404 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5405 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5406
8d6a48df
TV
54072019-06-19 Tom de Vries <tdevries@suse.de>
5408
5409 * debug.h (debug_write): Change return type to ssize_t.
5410 * debug.c (debug_write): Same.
5411
73cc7272
TT
54122019-06-14 Tom Tromey <tom@tromey.com>
5413
5414 * configure.ac: Use new path to gnulib.
5415 * configure: Rebuild.
5416 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5417 to gnulib.
5418
08f10e02
TT
54192019-06-11 Tom Tromey <tom@tromey.com>
5420
5421 * Makefile.in (SFILES): Add alloc.c.
5422 (OBS): Add alloc.o.
5423 (IPA_OBJS): Add alloc-ipa.o.
5424 (alloc-ipa.o): New target.
5425 (%.o: ../%.c): New pattern rule.
5426
422186a9
TT
54272019-06-10 Tom Tromey <tromey@adacore.com>
5428
5429 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5430 end warning with a newline.
5431 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5432 newline.
5433 * thread-db.c (attach_thread): Don't end warning with a newline.
5434 (thread_db_notice_clone): Likewise.
5435 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5436 newline.
5437 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5438 end warning with a newline.
5439
b02f78f9
PA
54402019-06-04 Pedro Alves <palves@redhat.com>
5441
5442 * server.c (captured_main): Use make_unique_xstrdup.
5443
88ed7edb
TT
54442019-06-02 Tom Tromey <tom@tromey.com>
5445
5446 * gdbreplay.c (fromhex): Remove.
5447 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5448
33a6bc35
TT
54492019-05-29 Tom Tromey <tromey@adacore.com>
5450
5451 * configure: Rebuild.
5452
e90a813d
KB
54532019-05-06 Kevin Buettner <kevinb@redhat.com>
5454
5455 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5456 sign extension code on 32-bit builds.
5457
353ea2d1
EZ
54582019-05-03 Eli Zaretskii <eliz@gnu.org>
5459
5460 * remote-utils.c:
5461 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5462
b494cdff
TT
54632019-04-19 Tom Tromey <tom@tromey.com>
5464
5465 * server.c (struct vstop_notif): Derive from notif_event.
5466 <base>: Remove.
5467 (queue_stop_reply): Update.
5468 (remove_all_on_match_ptid): Change type. Rewrite.
5469 (discard_queued_stop_replies): Rewrite.
5470 (in_queued_stop_replies_ptid): Change type.
5471 (in_queued_stop_replies): Rewrite.
5472 (notif_stop): Update.
5473 (queue_stop_reply_callback): Update.
5474 (captured_main): Don't call initialize_notif.
5475 (push_stop_notification): Update.
5476 * notif.c (notif_write_event, handle_notif_ack)
5477 (notif_event_enque, notif_push): Update.
5478 (notif_event_xfree, initialize_notif): Remove.
5479 * notif.h (struct notif_event): Include <list>, not
5480 "common/queue.h".
5481 (struct notif_server) <queue>: Now a std::list.
5482 (notif_event_p): Remove typedef.
5483 (initialize_notif): Don't declare.
5484 (struct notif_event): Add virtual destructor.
5485
a7e559cc
AH
54862019-04-17 Alan Hayward <alan.hayward@arm.com>
5487
5488 * ax.c (ax_vdebug): Call debug_printf.
5489 * debug.c (debug_write): New function.
5490 * debug.h (debug_write): New declaration.
5491 * linux-low.c (sigchld_handler): Call debug_write.
5492
aeb2e706
AH
54932019-04-17 Alan Hayward <alan.hayward@arm.com>
5494
5495 * debug.c (debug_set_output): New function.
5496 (debug_vprintf): Send output to debug_file.
5497 (debug_flush): Likewise.
5498 * debug.h (debug_set_output): New declaration.
5499 * server.c (handle_monitor_command): Add debug-file option.
5500 (captured_main): Likewise.
5501
c1bc0935
AH
55022019-04-17 Alan Hayward <alan.hayward@arm.com>
5503
5504 * debug.c (remote_debug): Add definition.
5505 * debug.h (remote_debug): Add declaration.
5506 * hostio.c (remote_debug): Remove declaration.
5507 * remote-utils.c (struct ui_file): Likewise.
5508 (remote_debug): Likewise.
5509 * remote-utils.h (remote_debug): Likewise,
5510 * server.c (remote_debug): Remove definition.
5511
3f52fdbc
KB
55122019-04-10 Kevin Buettner <kevinb@redhat.com>
5513
5514 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5515 when using a 64-bit gdbserver.
5516
b0319eaa
TT
55172019-04-09 Tom Tromey <tromey@adacore.com>
5518
5519 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5520
eedc3f4f
TT
55212019-04-08 Tom Tromey <tom@tromey.com>
5522
5523 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5524 throw.
5525 (linux_resume_one_lwp): Likewise.
5526
230d2906
TT
55272019-04-08 Tom Tromey <tom@tromey.com>
5528
5529 * gdbreplay.c: Update.
5530 * linux-low.c: Update.
5531 * server.c: Update.
5532
a70b8144
TT
55332019-04-08 Tom Tromey <tom@tromey.com>
5534
5535 * server.c: Use C++ exception handling.
5536 * linux-low.c: Use C++ exception handling.
5537 * gdbreplay.c: Use C++ exception handling.
5538
3d6e9d23
TT
55392019-04-08 Tom Tromey <tom@tromey.com>
5540
5541 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5542 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5543 (captured_main, main): Update.
5544 * gdbreplay.c (main): Update.
5545
0570503d
PFC
55462019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5547
5548 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5549 value in argument pointer, return 1 if the entry is found and 0
5550 otherwise. Move comment.
5551 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5552 * linux-low.h (linux_get_auxv): Declare.
5553 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5554
227a9e65
TT
55552019-04-05 Tom Tromey <tromey@adacore.com>
5556
5557 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5558 variables.
5559
69f4c9cc
AH
55602019-03-28 Alan Hayward <alan.hayward@arm.com>
5561
5562 * linux-low.c (AT_HWCAP2): Add define if not already included.
5563
974c89e0
AH
55642019-03-26 Alan Hayward <alan.hayward@arm.com>
5565
5566 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5567 (aarch64_arch_setup): Call linux_get_hwcap.
5568 * linux-arm-low.c (arm_get_hwcap): Remove function.
5569 (arm_read_description): Call linux_get_hwcap.
5570 * linux-low.c (linux_get_auxv): New function.
5571 (linux_get_hwcap): Likewise.
5572 (linux_get_hwcap2): Likewise.
5573 * linux-low.h (linux_get_hwcap): New declaration.
5574 (linux_get_hwcap2): Likewise.
5575 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5576 (ppc_arch_setup): Call linux_get_hwcap.
5577 * linux-s390-low.c (s390_get_hwcap): Remove function.
5578 (s390_arch_setup): Call linux_get_hwcap.
5579
1ef53e6b
AH
55802019-03-22 Alan Hayward <alan.hayward@arm.com>
5581 Jiong Wang <jiong.wang@arm.com>
5582
5583 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5584 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5585 to fail.
5586 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5587
ee4fbcfa
AH
55882019-03-22 Alan Hayward <alan.hayward@arm.com>
5589 Jiong Wang <jiong.wang@arm.com>
5590
5591 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5592 (aarch64_get_hwcap): New function.
5593 (aarch64_arch_setup): Read APIA hwcap.
5594
6dc0ebde
AH
55952019-03-22 Alan Hayward <alan.hayward@arm.com>
5596 Jiong Wang <jiong.wang@arm.com>
5597
5598 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5599 (initialize_low_tracepoint): Likewise.
5600 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5601 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5602 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5603 (aarch64_linux_read_description): Likewise.
5604 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5605
1163a4b7
JB
56062019-03-12 John Baldwin <jhb@FreeBSD.org>
5607
5608 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5609 i386_create_target_description for 'segments' parameter.
5610 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5611 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5612 * win32-i386-low.c (i386_arch_setup): Likewise.
5613
d3a70e03
TT
56142019-03-12 Tom Tromey <tromey@adacore.com>
5615
5616 * linux-low.c (iterate_over_lwps): Update.
5617
37991b4f
TT
56182019-03-06 Tom Tromey <tom@tromey.com>
5619
5620 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5621 (captured_main): Use SCOPE_EXIT.
5622
45950eb6
SDJ
56232019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5624
5625 * configure.srv: Use '$enable_unittest' instead of '$development'
5626 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5627 case.
5628
43ac54fc
TT
56292019-02-27 Tom Tromey <tromey@adacore.com>
5630
5631 * gdbreplay.c (logchar): Handle \r\n.
5632
df0da8a2
AH
56332019-02-07 Alan Hayward <alan.hayward@arm.com>
5634
5635 * linux-low.c (linux_attach): Add process before lwp.
5636 * server.c (attach_inferior): Check if already attached.
5637
1a5c2598
TT
56382019-02-07 Tom Tromey <tom@tromey.com>
5639
5640 * x86-tdesc.h: Rename include guard.
5641 * x86-low.h: Add include guard.
5642 * wincecompat.h: Rename include guard.
5643 * win32-low.h: Add include guard.
5644 * utils.h: Rename include guard.
5645 * tracepoint.h: Rename include guard.
5646 * tdesc.h: Rename include guard.
5647 * target.h: Rename include guard.
5648 * server.h: Rename include guard.
5649 * remote-utils.h: Rename include guard.
5650 * regcache.h: Rename include guard.
5651 * nto-low.h: Rename include guard.
5652 * notif.h: Add include guard.
5653 * mem-break.h: Rename include guard.
5654 * lynx-low.h: Add include guard.
5655 * linux-x86-tdesc.h: Add include guard.
5656 * linux-s390-tdesc.h: Add include guard.
5657 * linux-ppc-tdesc-init.h: Add include guard.
5658 * linux-low.h: Add include guard.
5659 * linux-aarch64-tdesc.h: Add include guard.
5660 * linux-aarch32-low.h: Add include guard.
5661 * inferiors.h: Rename include guard.
5662 * i387-fp.h: Rename include guard.
5663 * hostio.h: Rename include guard.
5664 * gdbthread.h: Rename include guard.
5665 * gdb_proc_service.h: Rename include guard.
5666 * event-loop.h: Rename include guard.
5667 * dll.h: Rename include guard.
5668 * debug.h: Rename include guard.
5669 * ax.h: Rename include guard.
5670
956cc47c
SN
56712018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5672
5673 PR gdb/23985
5674 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5675 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5676
a0707f3c
TT
56772019-01-25 Tom Tromey <tom@tromey.com>
5678
5679 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5680
0747795c
TT
56812019-01-25 Tom Tromey <tom@tromey.com>
5682
5683 * win32-low.c: Fix common/ includes.
5684 * win32-i386-low.c: Fix common/ includes.
5685 * tracepoint.c: Fix common/ includes.
5686 * thread-db.c: Fix common/ includes.
5687 * target.h: Fix common/ includes.
5688 * symbol.c: Fix common/ includes.
5689 * spu-low.c: Fix common/ includes.
5690 * server.h: Fix common/ includes.
5691 * server.c: Fix common/ includes.
5692 * remote-utils.c: Fix common/ includes.
5693 * regcache.h: Fix common/ includes.
5694 * regcache.c: Fix common/ includes.
5695 * nto-x86-low.c: Fix common/ includes.
5696 * notif.h: Fix common/ includes.
5697 * mem-break.h: Fix common/ includes.
5698 * lynx-low.c: Fix common/ includes.
5699 * lynx-i386-low.c: Fix common/ includes.
5700 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5701 * linux-x86-low.c: Fix common/ includes.
5702 * linux-low.c: Fix common/ includes.
5703 * inferiors.h: Fix common/ includes.
5704 * i387-fp.c: Fix common/ includes.
5705 * hostio.c: Fix common/ includes.
5706 * hostio-errno.c: Fix common/ includes.
5707 * gdbthread.h: Fix common/ includes.
5708 * gdbreplay.c: Fix common/ includes.
5709 * fork-child.c: Fix common/ includes.
5710 * event-loop.c: Fix common/ includes.
5711 * ax.c:
5712 (enum gdb_agent_op): Fix common/ includes.
5713
be6d4f74
TT
57142019-01-21 Tom Tromey <tom@tromey.com>
5715
5716 * tracepoint.c: Fix includes.
5717 * remote-utils.c: Fix includes.
5718 * linux-x86-low.c: Fix includes.
5719
66d91b39
JB
57202019-01-01 Joel Brobecker <brobecker@adacore.com>
5721
5722 * gdbreplay.c (gdbreplay_version): Update copyright year in
5723 version message.
5724 * server.c (gdbserver_version): Likewise.
5725
754e3168
AH
57262018-12-05 Alan Hayward <alan.hayward@arm.com>
5727
5728 * linux-low.c (add_lwp): Switch ordering.
5729
d105de22
TT
57302018-11-29 Tom Tromey <tom@tromey.com>
5731
5732 * win32-low.c (win32_join): Take pid, not process.
5733 * target.h (struct target_ops) <join>: Change argument type.
5734 (join_inferior): Change argument name.
5735 * spu-low.c (spu_join): Take pid, not process.
5736 * server.c (handle_detach): Preserve pid before destroying
5737 process.
5738 * lynx-low.c (lynx_join): Take pid, not process.
5739 * linux-low.c (linux_join): Take pid, not process.
5740
50138245
AH
57412018-11-23 Alan Hayward <alan.hayward@arm.com>
5742
5743 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5744 (aarch64_cannot_fetch_register): Likewise.
5745 (struct linux_target_ops): Update references.
5746
64f57f3d
PFC
57472018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5748
5749 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5750
8d619c01
EBM
57512018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5752
5753 * configure.srv (ipa_ppc_linux_regobj): Add
5754 powerpc-isa207-htm-vsx32l-ipa.o and
5755 powerpc-isa207-htm-vsx64l-ipa.o.
5756 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5757 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5758 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5759 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5760 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5761 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5762 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5763 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5764 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5765 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5766 (init_registers_powerpc_isa207_htm_vsx32l)
5767 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5768 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5769 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5770 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5771 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5772 (ppc_store_tm_ctarregset): New functions.
5773 (ppc_regsets): Add entries for HTM regsets.
5774 (ppc_arch_setup): Set htm in features struct when needed. Set
5775 sizes for the HTM regsets.
5776 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5777 (initialize_low_arch): Call
5778 init_registers_powerpc_isa207_htm_vsx32l and
5779 init_registers_powerpc_isa207_htm_vsx64l.
5780 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5781 PPC_TDESC_ISA207_HTM_VSX.
5782 (initialize_low_tracepoint): Call
5783 init_registers_powerpc_isa207_htm_vsx32l and
5784 init_registers_powerpc_isa207_htm_vsx64l.
5785
232bfb86
EBM
57862018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5787
5788 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5789 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5790 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5791 (ppc_store_pmuregset): New functions.
5792 (ppc_regsets): Add entries for ebb and pmu regsets.
5793 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5794 pmu regsets are available. Set sizes for these regsets.
5795
f2cf6173
EBM
57962018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5797
5798 * configure.srv (ipa_ppc_linux_regobj): Add
5799 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5800 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5801 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5802 rs6000/powerpc-isa207-vsx32l.xml, and
5803 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5804 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5805 <PPC_TDESC_ISA207_VSX>: New enum value.
5806 (init_registers_powerpc_isa207_vsx32l): Declare.
5807 (init_registers_powerpc_isa207_vsx64l): Declare.
5808 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5809 (ppc_store_tarregset): New function.
5810 (ppc_regsets): Add entry for the TAR regset.
5811 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5812 size for the TAR regsets.
5813 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5814 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5815 and init_registers_powerpc_isa207_vsx64l.
5816 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5817 (initialize_low_tracepoint): Call
5818 init_registers_powerpc_isa207_vsx32l and
5819 init_registers_powerpc_isa207_vsx64l.
5820
7ca18ed6
EBM
58212018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5822 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5823
5824 * configure.srv (ipa_ppc_linux_regobj): Add
5825 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5826 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5827 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5828 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5829 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5830 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5831 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5832 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5833 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5834 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5835 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5836 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5837 (ppc_hwcap): Add comment.
5838 (ppc_hwcap2): New global.
5839 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5840 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5841 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5842 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5843 when needed. Set sizes for the the DSCR and PPR regsets.
5844 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5845 (initialize_low_arch): Call
5846 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5847 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5848 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5849 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5850 (initialize_low_tracepoint): Call
5851 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5852 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5853
5c849b22
PFC
58542018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5855
5856 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5857
8ecfd7bd
SDJ
58582018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5859 Simon Marchi <simark@simark.ca>
5860
5861 * acinclude.m4: Include "../selftest.m4".
5862 * configure: Regenerate.
5863 * configure.ac: Use "GDB_AC_SELFTEST".
5864 * configure.srv: Use "$enable_unittests" instead of
5865 "$development" when checking whether unit tests have been
5866 enabled.
5867 * server.c (captured_main): Update message informing that
5868 selftests have been disabled.
5869
96643e35
TT
58702018-10-04 Tom Tromey <tom@tromey.com>
5871
5872 * configure: Rebuild.
5873
da4ae14a
TT
58742018-10-04 Tom Tromey <tom@tromey.com>
5875
5876 * server.c (handle_status): Rename inner "thread".
5877 (process_serial_event): Declare "res" in 'm' case.
5878 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5879 (iterate_over_lwps): Rename inner "thread".
5880 (linux_qxfer_libraries_svr4): Rename inner "len".
5881 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5882
7c619dbd
GB
58832018-10-01 Gary Benson <gbenson@redhat.com>
5884
5885 * gdb_proc_service.h: Moved common code to
5886 common/gdb_proc_service.h.
5887
3795e814
GB
58882018-10-01 Gary Benson <gbenson@redhat.com>
5889
5890 * gdb_proc_service.h: Synchronize comments and whitespace with
5891 GDB's version of this file.
5892
49b036f1
TT
58932018-09-25 Tom Tromey <tom@tromey.com>
5894
5895 * configure: Rebuild.
5896 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5897
8ff03f0b
SM
58982018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5899
5900 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5901 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5902 ($(IPA_LIB)): Sort IPA_OBJS.
5903
a1cd91dc
SM
59042018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5905
5906 * Makefile.in: Remove references to $(ADD_DEPS).
5907
752312ba
TT
59082018-09-16 Tom Tromey <tom@tromey.com>
5909
5910 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5911 variables.
5912 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5913 variables.
5914
f1628857
TT
59152018-09-05 Tom Tromey <tom@tromey.com>
5916
5917 * configure: Rebuild.
5918
ad202fcc
SM
59192018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5920
5921 PR build/23399
5922 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5923
d3d8724a
TT
59242018-08-27 Tom Tromey <tom@tromey.com>
5925
5926 PR build/23087:
5927 * configure: Rebuild.
5928
b4f183d2
TT
59292018-08-27 Tom Tromey <tom@tromey.com>
5930
5931 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5932 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5933 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5934 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5935 (s390x_emit_stack_adjust): Add casts to unsigned char.
5936
4e2aa472
SM
59372018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5938
5939 PR gdb/23374
5940 PR gdb/23375
5941 * server.h (struct client_state) <disable_randomization>:
5942 Initialize to 1.
5943
cf4088a9
SM
59442018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5945
5946 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5947 variable.
5948 (mips_supply_ptrace_register): Likewise.
5949
a0de763e
TT
59502018-07-22 Tom Tromey <tom@tromey.com>
5951
5952 * configure: Rebuild.
5953
b0a7723d
TT
59542018-07-22 Tom Tromey <tom@tromey.com>
5955
5956 * win32-low.c (win32_create_inferior): Remove unused variables.
5957 * gdbreplay.c (remote_open): Remove unused variable.
5958 * remote-utils.c (remote_prepare): Remove unused variable.
5959 * x86-tdesc.h (X86_TDESC_H): Define.
5960 (amd64_expedite_regs): Define conditionally.
5961 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5962 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5963 * remote-utils.c (readchar): Remove unused variable.
5964
a780ef4f
PA
59652018-07-13 Pedro Alves <palves@redhat.com>
5966
5967 * linux-low.c (linux_kill): Change parameter to process_info
5968 pointer instead of pid. Adjust.
5969 * lynx-low.c (lynx_kill): Likewise.
5970 * nto-low.c (nto_kill): Likewise.
5971 * spu-low.c (spu_kill): Likewise.
5972 * win32-low.c (win32_kill): Likewise.
5973 * server.c (handle_v_kill, kill_inferior_callback)
5974 (detach_or_kill_for_exit): Adjust.
5975 * target.c (kill_inferior): Change parameter to process_info
5976 pointer instead of pid. Adjust.
5977 * target.h (struct target_ops) <kill>: Change parameter to
5978 process_info pointer instead of pid. Adjust all implementations
5979 and callers.
5980 (kill_inferior): Likewise.
5981
ef2ddb33
PA
59822018-07-13 Pedro Alves <palves@redhat.com>
5983
5984 * linux-low.c (linux_detach, linux_join): Change parameter to
5985 process_info pointer instead of pid. Adjust.
5986 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5987 * nto-low.c (nto_detach): Likewise.
5988 * spu-low.c (spu_detach, spu_join): Likewise.
5989 * win32-low.c (win32_detach, win32_join): Likewise.
5990 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5991 * target.h (struct target_ops) <detach, join>: Change parameter to
5992 process_info pointer instead of pid. Adjust all implementations
5993 and callers.
5994 (detach_inferior, join_inferior): Rename 'pid' parameter to
5995 'proc'.
5996
c7ab0aef
SDJ
59972018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5998 Jan Kratochvil <jan.kratochvil@redhat.com>
5999 Paul Fertser <fercerpav@gmail.com>
6000 Tsutomu Seki <sekiriki@gmail.com>
6001
6002 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
6003 (OBS): Add 'common/netstuff.o'.
6004 (GDBREPLAY_OBS): Likewise.
6005 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
6006 (remote_open): Implement support for IPv6
6007 connections.
6008 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
6009 and 'wspiapi.h'.
6010 (handle_accept_event): Accept connections from IPv6 sources.
6011 (remote_prepare): Handle IPv6-style hostnames; implement
6012 support for IPv6 connections.
6013 (remote_open): Implement support for printing connections from
6014 IPv6 sources.
6015
31445d10
PA
60162018-07-11 Pedro Alves <palves@redhat.com>
6017
6018 PR gdb/23377
6019 * mem-break.c (any_persistent_commands): Add process_info
6020 parameter and use it instead of relying on the current process.
6021 Change return type to bool.
6022 * mem-break.h (any_persistent_commands): Add process_info
6023 parameter and change return type to bool.
6024 * server.c (handle_detach): Remove require_running_or_return call.
6025 Look up the process_info for the process we're about to detach.
6026 If not found, return back error to GDB. Adjust
6027 any_persistent_commands call to pass down a process pointer.
6028
cb197132
PA
60292018-07-11 Pedro Alves <palves@redhat.com>
6030
6031 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6032 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6033 instead of collect_register_by_name.
6034 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6035 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6036
1b919490
VB
60372018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6038 Pedro Alves <palves@redhat.com>
6039
6040 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6041
d7e15655
TT
60422018-07-03 Tom Tromey <tom@tromey.com>
6043
6044 * linux-low.c: Update.
6045 * lynx-low.c: Update.
6046 * mem-break.c: Update.
6047 * nto-low.c: Update.
6048 * remote-utils.c: Update.
6049 * server.c: Update.
6050 * spu-low.c: Update.
6051 * target.c: Update.
6052 * win32-low.c: Update.
6053
26a57c92
TT
60542018-07-03 Tom Tromey <tom@tromey.com>
6055
6056 * server.c: Update.
6057
0e998d96
TT
60582018-07-03 Tom Tromey <tom@tromey.com>
6059
6060 * linux-low.c: Update.
6061
cc6bcb54
TT
60622018-07-03 Tom Tromey <tom@tromey.com>
6063
6064 * target.c: Update.
6065
e38504b3
TT
60662018-07-03 Tom Tromey <tom@tromey.com>
6067
6068 * linux-low.c: Update.
6069 * linux-mips-low.c: Update.
6070 * lynx-low.c: Update.
6071 * nto-low.c: Update.
6072 * remote-utils.c: Update.
6073 * server.c: Update.
6074 * spu-low.c: Update.
6075 * target.c: Update.
6076 * thread-db.c: Update.
6077
e99b03dc
TT
60782018-07-03 Tom Tromey <tom@tromey.com>
6079
6080 * linux-low.c: Update.
6081 * linux-mips-low.c: Update.
6082 * lynx-low.c: Update.
6083 * mem-break.c: Update.
6084 * nto-low.c: Update.
6085 * remote-utils.c: Update.
6086 * server.c: Update.
6087 * spu-low.c: Update.
6088 * target.c: Update.
6089 * tracepoint.c: Update.
6090
f2907e49
TT
60912018-07-03 Tom Tromey <tom@tromey.com>
6092
6093 * linux-low.c: Update.
6094 * linux-ppc-low.c: Update.
6095 * linux-x86-low.c: Update.
6096 * proc-service.c: Update.
6097 * server.c: Update.
6098 * spu-low.c: Update.
6099 * thread-db.c: Update.
6100 * win32-low.c: Update.
6101
fd79271b
TT
61022018-07-03 Tom Tromey <tom@tromey.com>
6103
6104 * linux-low.c: Update.
6105 * lynx-low.c: Update.
6106 * nto-low.c: Update.
6107 * remote-utils.c: Update.
6108 * spu-low.c: Update.
6109 * thread-db.c: Update.
6110 * win32-low.c: Update.
6111
c0867626
SDJ
61122018-06-29 Joel Brobecker <brobecker@adacore.com>
6113
6114 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6115 parameter in call to 'amd64_create_target_description'.
6116
2512d7ef
JK
61172018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6118
6119 * x86-tdesc.h: Remove executable permission flag.
6120
d0ac1c44
SM
61212018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6122
6123 * configure.ac: Remove AC_PREREQ, add missing quoting.
6124 * configure: Re-generate.
6125 * config.in: Re-generate.
6126 * aclocal.m4: Re-generate.
6127
c4eb05ff
SM
61282018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6129
6130 * tracepoint.h (current_traceframe): Remove declaration.
6131
02895270
AH
61322018-06-18 Alan Hayward <alan.hayward@arm.com>
6133
6134 * linux-aarch64-low.c (is_sve_tdesc): New function.
6135 (aarch64_sve_regs_copy_to_regcache): Likewise.
6136 (aarch64_sve_regs_copy_from_regcache): Likewise.
6137 (aarch64_regs_info): Add SVE checks.
6138 (initialize_low_arch): Initialize SVE.
6139
e9902bfc
AH
61402018-06-18 Alan Hayward <alan.hayward@arm.com>
6141
6142 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6143
fefa175e
AH
61442018-06-11 Alan Hayward <alan.hayward@arm.com>
6145
6146 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6147 (initialize_low_tracepoint): Likewise
6148 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6149 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6150 param.
6151 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6152 checks.
6153 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6154
b91ad3ff
AH
61552018-06-11 Alan Hayward <alan.hayward@arm.com>
6156
6157 * server.h (PBUFSIZ): Increase size
6158
f868386e
AH
61592018-06-11 Alan Hayward <alan.hayward@arm.com>
6160
6161 * regcache.c (regcache::raw_compare): New function.
6162 * regcache.h (regcache::raw_compare): New declaration.
6163
9c861883
AH
61642018-06-11 Alan Hayward <alan.hayward@arm.com>
6165
6166 * regcache.c (new_register_cache): Use new.
6167 (free_register_cache): Use delete.
6168 (register_data): Use const.
6169 (supply_register): Move body inside regcache.
6170 (regcache::raw_supply): New override function.
6171 (collect_register): Move body inside regcache.
6172 (regcache::raw_collect): New override function.
6173 (regcache::get_register_status): New override function.
6174 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6175
40591844
TT
61762018-06-09 Tom Tromey <tom@tromey.com>
6177
6178 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6179 declare queue.
6180 (event_queue): Use std::queue.
6181 (gdb_event_xfree): Remove.
6182 (initialize_event_loop, process_event, wait_for_event): Update.
6183
6341380d
SC
61842018-06-08 Stan Cox <scox@redhat.com>
6185
6186 * win32-low.c (win32_create_inferior): last_ptid and last_status
6187 moved to client_state.
6188
03349c93
PA
61892018-06-08 Pedro Alves <palves@redhat.com>
6190
6191 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6192 common/common-exceptions.o, common/common-utils.o,
6193 common/errors.o, common/print-utils.o and utils.o.
6194 * gdbreplay.c: Include "common-defs.h" instead of the two
6195 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6196 string.h or alloca.h.
6197 (perror_with_name): Delete.
6198 (remote_open): Use xstrdup instead of strdup.
6199 (main): Rename to ...
6200 (captured_main): ... this.
6201 (main): New.
6202
8dcc53b3
TT
62032018-06-08 Tom Tromey <tom@tromey.com>
6204
6205 * linux-low.c (linux_low_read_btrace): Update.
6206
c12a5089
SC
62072018-06-04 Stan Cox <scox@redhat.com>
6208
6209 * server.h (struct client_state): New.
6210 * server.c (cont_thread, general_thread, multi_process)
6211 (report_fork_events, report_vfork_events, report_exec_events)
6212 (report_thread_events, swbreak_feature, hwbreak_feature)
6213 (vCont_supported, disable_randomization, pass_signals)
6214 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6215 Moved to client_state.
6216 * remote-utils.c (remote_debug, noack_mode)
6217 (transport_is_reliable): Moved to client_state.
6218 * tracepoint.c (current_traceframe): Moved to client_state.
6219
6220 Update all callers.
6221 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6222 linux-low.c, remote-utils.h, target.c: Use client_state.
6223
122394f1
AH
62242018-05-31 Alan Hayward <alan.hayward@arm.com>
6225
6226 * configure.srv: Add new c/h file.
6227
95228a0d
AH
62282018-05-31 Alan Hayward <alan.hayward@arm.com>
6229
6230 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6231 null VQ.
6232
d8dab6c3
MR
62332018-05-25 Maciej W. Rozycki <macro@mips.com>
6234
6235 * gdb.arch/mips-fpregset-core.exp: New test.
6236 * gdb.arch/mips-fpregset-core.c: New test source.
6237
81e25b7c
EK
62382018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6239
6240 PR server/23198
6241 * hostio.c (require_int): Do not report overflow for integers
6242 between 0xfffffff and 0x7fffffff.
6243
7e947ad3
MR
62442018-05-22 Maciej W. Rozycki <macro@mips.com>
6245
6246 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6247 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6248 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6249 functions.
6250 (the_low_target): Wire them.
6251
1d75a658
PFC
62522018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6253
6254 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6255 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6256 mode. Call collect_register_by_name with vscr using
6257 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6258 (ppc_store_vrregset): Add and set vscr_offset variable as in
6259 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6260 vscr_offset.
6261
d078308a
PFC
62622018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6263
6264 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6265 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6266 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6267
7273b5fc
PFC
62682018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6269
6270 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6271 (ppc_store_vsxregset): Likewise.
6272 (ppc_fill_vrregset): Likewise.
6273 (ppc_store_vrregset): Likewise.
6274 (ppc_fill_evrregset): Likewise.
6275 (ppc_store_evrregset): Likewise.
6276 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6277 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6278 needed.
6279
2e077f5e
PFC
62802018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6281
6282 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6283 wordsize of the inferior. Call ppc_linux_target_wordsize.
6284
bd64614e
PFC
62852018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6286
6287 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6288 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6289 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6290 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6291 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6292 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6293 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6294 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6295 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6296 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6297 (tdesc_powerpc_e500l): Remove.
6298 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6299 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6300 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6301 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6302 linux-ppc-tdesc.h.
6303 (ppc_arch_setup): Remove target description matching code. Fill a
6304 ppc_linux_features struct and call ppc_linux_match_description
6305 with it.
6306
75d74cca
MR
63072018-05-22 Maciej W. Rozycki <macro@mips.com>
6308
6309 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6310 width of the requested register exceeds the width of the
6311 `ptrace' data type.
6312 (mips_cannot_store_register): Likewise.
6313
e4439e43
MR
63142018-05-21 Maciej W. Rozycki <macro@mips.com>
6315
6316 * linux-mips-low.c (mips_fetch_register): New function. Update
6317 preceding comment.
6318 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6319 (the_low_target): Wire `mips_fetch_register'.
6320
55271bf9
JB
63212018-05-10 Joel Brobecker <brobecker@adacore.com>
6322
6323 * lynx-i386-low.c (LYNXOS_178): New macro.
6324 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6325 the layout on LynxOS-178.
6326 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6327 handle floating point registers that are not supported by
6328 LynxOS-178.
6329
1a34f210
TT
63302018-05-10 Tom Tromey <tom@tromey.com>
6331
6332 * configure: Rebuild.
6333
190852c8
JB
63342018-05-10 Joel Brobecker <brobecker@adacore.com>
6335
6336 PR server/23158:
6337 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6338 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6339 Use it to set the expedite_regs field in the given tdesc.
6340 * x86-tdesc.h: New file.
6341 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6342 Adjust following the addition of the new expedite_regs parameter
6343 to init_target_desc.
6344 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6345 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6346 (i386_linux_read_description, amd64_linux_read_description):
6347 Adjust following the addition of the new expedite_regs parameter
6348 to init_target_desc.
6349 * lynx-i386-low.c: #include "x86-tdesc.h".
6350 (lynx_i386_arch_setup): Adjust following the addition of the new
6351 expedite_regs parameter to init_target_desc.
6352 * nto-x86-low.c: #include "x86-tdesc.h".
6353 (nto_x86_arch_setup): Adjust following the addition of the new
6354 expedite_regs parameter to init_target_desc.
6355 * win32-i386-low.c: #include "x86-tdesc.h".
6356 (i386_arch_setup): Adjust following the addition of the new
6357 expedite_regs parameter to init_target_desc.
6358
7dbac825
JB
63592018-05-10 Joel Brobecker <brobecker@adacore.com>
6360
6361 PR server/23158:
6362 * win32-low.c (win32_create_inferior): Add call to my_wait
6363 setting last_status global.
6364
906994d9
JB
63652018-05-10 Joel Brobecker <brobecker@adacore.com>
6366
6367 PR server/23158:
6368 * win32-low.c (create_process): Only call gdb_tilde_expand if
6369 inferior_cwd is not NULL.
6370
8ee22052
AB
63712018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6372
6373 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6374 registers to the cache if their values have changed.
6375 (i387_xsave_to_cache): Provide default values for x87 control
6376 registers when these features are available, but disabled.
6377 * regcache.c (supply_register_by_name_zeroed): New function.
6378 * regcache.h (supply_register_by_name_zeroed): Declare new
6379 function.
6380
aff689d3
TT
63812018-05-07 Tom Tromey <tom@tromey.com>
6382
6383 * configure: Rebuild.
6384
85e26832
TT
63852018-05-04 Tom Tromey <tom@tromey.com>
6386
6387 * configure: Rebuild.
6388
a3b60e45
JK
63892018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6390 Pedro Alves <palves@redhat.com>
6391
6392 * linux-aarch64-low.c (aarch64_stopped_data_address):
6393 Likewise.
6394
632e107b
TT
63952018-04-27 Tom Tromey <tom@tromey.com>
6396
6397 * configure: Rebuild.
6398
458412c3
TT
63992018-04-23 Tom Tromey <tom@tromey.com>
6400
6401 * configure: Rebuild.
6402
f31c089e
SM
64032018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6404
6405 * Makefile.in (depcomp): Add "..".
6406 (all_deps_files): New and use it.
6407
b319b098
AH
64082018-04-18 Alan Hayward <alan.hayward@arm.com>
6409
6410 * configure.srv (aarch64*-*-linux*): Don't include xml.
6411 (i[34567]86-*-cygwin*): Likewise.
6412 (i[34567]86-*-linux*): Likewise.
6413 (i[34567]86-*-lynxos*): Likewise.
6414 (i[34567]86-*-mingw32ce*): Likewise.
6415 (i[34567]86-*-mingw*): Likewise.
6416 (i[34567]86-*-nto*): Likewise.
6417 (tic6x-*-uclinux): Likewise.
6418 (x86_64-*-linux*): Likewise.
6419 (x86_64-*-mingw*): Likewise.
6420 (x86_64-*-cygwin*): Likewise.
6421
3b74854b
AH
64222018-04-18 Alan Hayward <alan.hayward@arm.com>
6423
6424 * tdesc.c: Remove xml parameter.
6425
e98577a9
AH
64262018-04-18 Alan Hayward <alan.hayward@arm.com>
6427
6428 * server.c (get_features_xml): Remove cast.
6429 * tdesc.c (void target_desc::accept): Fill in function.
6430 (tdesc_get_features_xml): Remove old xml creation.
6431 (print_xml_feature::visit_pre): Add xml vistor.
6432 * tdesc.h (struct target_desc): Make xmltarget mutable.
6433 (tdesc_get_features_xml): Remove declaration.
6434
d278f585
AH
64352018-04-18 Alan Hayward <alan.hayward@arm.com>
6436
6437 * tdesc.c (tdesc_architecture_name): Add new function.
6438 (tdesc_osabi_name): Likewise.
6439 (tdesc_get_features_xml): Use new functions.
6440
eee8a18d
AH
64412018-04-18 Alan Hayward <alan.hayward@arm.com>
6442
6443 * tdesc.c (tdesc_create_flags): Remove.
6444 (tdesc_add_flag): Likewise.
6445 (tdesc_named_type): Likewise.
6446 (tdesc_create_union): Likewise.
6447 (tdesc_create_struct): Likewise.
6448 (tdesc_create_vector): Likewise.
6449 (tdesc_add_bitfield): Likewise.
6450 (tdesc_add_field): Likewise.
6451 (tdesc_set_struct_size): Likewise.
6452
82ec9bc7
AH
64532018-04-18 Alan Hayward <alan.hayward@arm.com>
6454
6455 * tdesc.c (~target_desc): Remove implictly deleted items.
6456 (init_target_desc): Iterate all features.
6457 (tdesc_get_features_xml): Use vector.
6458 (tdesc_create_feature): Create feature.
6459 * tdesc.h (tdesc_feature) Remove
6460 (target_desc): Add features.
6461
ea3e7d71
AH
64622018-04-18 Alan Hayward <alan.hayward@arm.com>
6463
6464 * Makefile.in: Add common/tdesc.c
6465 * tdesc.c (init_target_desc): init all reg_defs from register
6466 vector.
6467 (tdesc_create_reg): Create tdesc_reg.
6468 * tdesc.h (tdesc_feature): Add register vector.
6469
17d08cd4
SM
64702018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6471
6472 * tdesc.h (struct target_desc) <features>: Change type to
6473 std::vector<std::string>.
6474 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6475 changes.
6476 (tdesc_get_features_xml): Likewise.
6477 (tdesc_create_feature): Likewise.
6478
5cd3e386
AH
64792018-03-26 Alan Hayward <alan.hayward@arm.com>
6480
6481 * regcache.c (find_register_by_number): Return a ref.
6482 (find_regno): Use references.
6483 (register_size): Likewise.
6484 (register_data): Likewise.
6485 * tdesc.c (target_desc::~target_desc): Remove free calls.
6486 (target_desc::operator==): Use std::vector compare.
6487 (init_target_desc): Use reference.
6488 (tdesc_create_reg): Use reg constructors.
6489 * tdesc.h (struct target_desc): Replace pointer with object.
6490
dff7492c
AH
64912018-03-23 Alan Hayward <alan.hayward@arm.com>
6492
6493 * regcache.c (find_register_by_number): Make static.
6494 (find_regno): Use find_register_by_number
6495 * regcache.h (struct reg): Remove declaration.
6496
d80e5242
AH
64972018-03-23 Alan Hayward <alan.hayward@arm.com>
6498
6499 * tdesc.c (target_desc::~target_desc): Move to here.
6500 (target_desc::operator==): Likewise.
6501 * tdesc.h (target_desc::~target_desc): Move from here.
6502 (target_desc::operator==): Likewise.
6503
f69c5afb
AA
65042018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6505
6506 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6507
ce29f843
AA
65082018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6509
6510 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6511 S390_TDESC_GS.
6512 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6513 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6514 and init_registers_s390_gs_linux64.
6515
c49bd90b
AA
65162018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6517
6518 * linux-s390-low.c (s390_fill_gs): Remove function.
6519 (s390_fill_gsbc): Remove function.
6520 (s390_regsets): Set fill functions for the guarded storage regsets
6521 to NULL.
6522
7edb9bd3
AA
65232018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6524
6525 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6526 the word size. Add comment.
6527 (s390_get_wordsize): New function.
6528 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6529 pswm with it. Instead, use s390_get_wordsize to determine the
6530 word size first and derive the correct tdesc from that directly.
6531
39be3c7e
SM
65322018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6533
6534 * Makefile.in: Include silent-rules.mk.
6535 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6536 (COMPILE): Add ECHO_CXX.
6537 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6538 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6539 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6540 (version-generated.c): Add ECHO_GEN.
6541 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6542 (IPAGENT_COMPILE): Add ECHO_CXX.
6543 (%-generated.c): Add ECHO_REGDAT.
6544
3ae9ce5d
TT
65452018-03-14 Tom Tromey <tom@tromey.com>
6546
6547 PR cli/14977:
6548 * ax.c (ax_printf): Special case for NULL.
6549
e6a58aa8
SM
65502018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6551
6552 * linux-low.c (linux_qxfer_libraries_svr4): Use
6553 xml_escape_text_append.
6554
f6e8a41e
SM
65552018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6556
6557 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6558
b9671caf
SM
65592018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6560
6561 * server.c (handle_general_set): Remove unnecessary xstrdup.
6562
e80aaf61
SM
65632018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6564
6565 * server.c (parse_debug_format_options): Adjust to
6566 delim_string_to_char_ptr_vec changes.
6567 * thread-db.c (thread_db_load_search): Adjust to
6568 dirnames_to_char_ptr_vec changes.
6569
b1223e78
MM
65702018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6571
6572 * target.h (target_enable_btrace, target_disable_btrace)
6573 (target_read_btrace, target_read_btrace_conf): Turn macro into
6574 inline function. Throw error if target method is not defined.
6575 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6576 check for btrace target method. Be prepared to handle exceptions
6577 from btrace target methods.
6578
81561546
SDJ
65792018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6580
6581 * server.c (captured_main): Change order of error message printed
6582 when the current working directory cannot be found.
6583
25e3c82c
SDJ
65842018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6585
6586 * server.c: Include "filenames.h" and "pathstuff.h".
6587 (program_name): Delete variable.
6588 (program_path): New anonymous class.
6589 (get_exec_wrapper): Use "program_path" instead of
6590 "program_name".
6591 (handle_v_run): Likewise.
6592 (captured_main): Likewise.
6593 (process_serial_event): Likewise.
6594
b4987c95
SDJ
65952018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6596
6597 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6598 (OBJS): Add "pathstuff.o".
6599 * server.c (current_directory): New global variable.
6600 (captured_main): Initialize "current_directory".
6601
f46cd62a
AH
66022018-02-26 Alan Hayward <alan.hayward@arm.com>
6603
6604 * tdesc.c: Use common/tdesc.h.
6605 * tdesc.h: Likewise.
6606
a543c5ca
AH
66072018-02-20 Alan Hayward <alan.hayward@arm.com>
6608 Simon Marchi <simon.marchi@ericsson.com>
6609
6610 * Makefile.in: Switch order of make rules.
6611
b5884fa7
AH
66122018-02-19 Alan Hayward <alan.hayward@arm.com>
6613
6614 * Makefile.in: Add common directory in build.
6615 * configure.ac: Add common reference.
6616 * configure: Regenerate.
6617
de6242d3
MM
66182018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6619
6620 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6621 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6622 * spu-low.c (spu_target_ops): Likewise.
6623 * win32-low.c (win32_target_ops): Likewise.
6624 * server.c (supported_btrace_packets): Report packets unconditionally.
6625 * target.h (target_ops) <supports_btrace>: Remove.
6626 (target_supports_btrace): Remove.
6627
9ee23a85
MM
66282018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6629
6630 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6631 (handle_btrace_disable): Change return type to void. Use exceptions
6632 to report errors.
6633 (handle_btrace_general_set): Catch exception and copy message to
6634 return message.
6635
8ce47547
TT
66362018-02-08 Tom Tromey <tom@tromey.com>
6637
6638 * linux-low.c (install_software_single_step_breakpoints): Use
6639 make_scoped_restore.
6640 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6641 (do_restore_current_thread_cleanup): Remove.
6642 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6643 declare.
6644
45dd3607
TT
66452018-02-08 Tom Tromey <tom@tromey.com>
6646
6647 * mem-break.c (set_raw_breakpoint_at): Use
6648 gdb::unique_xmalloc_ptr.
6649
e671cd59
PA
66502018-01-30 Pedro Alves <palves@redhat.com>
6651
6652 PR gdb/13211
6653 * target.c (target_terminal::terminal_state): Rename to ...
6654 (target_terminal::m_terminal_state): ... this.
6655
a0aad537
JC
66562018-01-19 James Clarke <jrtc27@jrtc27.com>
6657
6658 * linux-low.c (handle_extended_wait): Surround call to
6659 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6660
4d9b86e1
SM
66612018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6662
6663 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6664 linux_ptrace_attach_fail_reason_string now returning an
6665 std::string.
6666 (linux_attach): Likewise.
6667 * thread-db.c (attach_thread): Likewise.
6668
f517c180
EA
66692018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6670
6671 PR gdb/21559
6672 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6673 checking for fs_base/gs_base fields in struct user_regs_struct.
6674 * configure: Regenerate.
6675
9a70f35c
YQ
66762018-01-16 Yao Qi <yao.qi@linaro.org>
6677
6678 PR gdb/18749
6679 * linux-low.c (fetch_register): Call supply_register instead of
6680 error.
6681
605fd3c6
YQ
66822018-01-08 Yao Qi <yao.qi@linaro.org>
6683 Simon Marchi <simon.marchi@ericsson.com>
6684
6685 * Makefile.in (OBS): Remove selftest.o.
6686 * configure.ac: Set srv_selftest_objs if $development is true.
6687 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6688 * configure: Re-generated.
6689 * server.c (captured_main): Wrap variable selftest_filter with
6690 GDB_SELF_TEST.
6691
2cc05030
SM
66922018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6693
6694 * server.c (parse_debug_format_options): Return std::string.
6695 (handle_monitor_command, captured_main): Adjust.
6696
e379cee6
PA
66972018-01-05 Pedro Alves <palves@redhat.com>
6698
6699 PR gdb/18653
6700 * server.c (captured_main): Pass quiet=false to
6701 save_original_signals_state.
6702
82e1e79a
JB
67032018-01-01 Joel Brobecker <brobecker@adacore.com>
6704
6705 * gdbreplay.c (gdbreplay_version): Update copyright year in
6706 version message.
6707 * server.c (gdbserver_version): Likewise.
6708
8e481c3b
TT
67092017-12-08 Tom Tromey <tom@tromey.com>
6710
6711 * ax.c (ax_printf): Update.
6712
a8806230
YQ
67132017-12-07 Yao Qi <yao.qi@linaro.org>
6714
6715 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6716 aarch64_linux_read_description.
6717 * linux-amd64-ipa.c (idx2mask): New array.
6718 (get_ipa_tdesc): Move idx2mask out.
6719 (initialize_low_tracepoint): Initialize target descriptions.
6720 * linux-i386-ipa.c (idx2mask): New array.
6721 (get_ipa_tdesc): Move idx2mask out.
6722 (initialize_low_tracepoint): Initialize target descriptions.
6723
d4a0e8b5
SM
67242017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6725
6726 * tdesc.c (struct tdesc_type): Change return type.
6727 (tdesc_add_flag): Change parameter type.
6728 (tdesc_add_bitfield): Likewise.
6729 (tdesc_add_field): Likewise.
6730 (tdesc_set_struct_size): Likewise.
6731
798a7429
SM
67322017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6733
6734 * regcache.c (registers_to_string): Remove unused variable.
6735
c0e15c9b
SM
67362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6737
6738 * inferiors.c (for_each_inferior_with_data): Remove.
6739 * inferiors.h (for_each_inferior_with_data): Remove.
6740 * server.c (handle_qxfer_threads_worker): Change parameter type.
6741 (handle_qxfer_threads_proper): Use for_each_thread.
6742
f0045347
SM
67432017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6744
6745 * inferiors.c (for_each_inferior): Remove.
6746 (clear_inferiors): Use for_each_thread.
6747 * inferiors.h (for_each_inferior): Remove.
6748 * linux-low.c (linux_wait_for_event_filtered): Use
6749 for_each_thread.
6750 (linux_stabilize_threads): Likewise.
6751 * regcache.c (regcache_release): Likewise.
6752 * server.c (gdb_wants_all_threads_stopped): Likewise.
6753 (clear_pending_status_callback): Remove.
6754 (handle_status): Use for_each_thread.
6755 (captured_main): Likewise.
6756 * win32-low.c (child_init_thread_list): Likewise.
6757 (win32_clear_inferiors): Likewise.
6758 (fake_breakpoint_event): Likewise.
6759
9521758b
SM
67602017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6761
6762 * inferiors.h (find_inferior): Remove.
6763 * inferiors.c (find_inferior): Remove.
6764
8f86d7aa
SM
67652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6766
6767 * linux-low.c (resume_status_pending_p): Update comment.
6768 (need_step_over_p): Update comment.
6769
e2b44075
SM
67702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6771
6772 * linux-low.c (proceed_one_lwp): Return void, change parameter
6773 type.
6774 (unsuspend_and_proceed_one_lwp): Likewise.
6775 (proceed_all_lwps): Use for_each_thread.
6776 (unstop_all_lwps): Likewise.
6777
c80825ff
SM
67782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6779
6780 * linux-low.c (linux_resume_one_thread): Return void, take
6781 parameter directly.
6782 (linux_resume): Use for_each_thread.
6783
df3e4dbe
SM
67842017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6785
6786 * linux-low.c (send_sigstop_callback): Return void, change
6787 parameter type. Rename to...
6788 (send_sigstop): ... this.
6789 (suspend_and_send_sigstop_callback): Return void, change parameter
6790 type. Rename to...
6791 (suspend_and_send_sigstop): ... this.
6792 (stop_all_lwps): Use for_each_thread.
6793
5a6b0a41
SM
67942017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6795
6796 * linux-low.c (lwp_running): Return bool, remove unused
6797 argument.
6798 (linux_stabilize_threads): Use find_thread.
6799
39a64da5
SM
68002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6801
6802 * linux-low.c (select_singlestep_lwp_callback): Remove.
6803 (count_events_callback): Remove.
6804 (select_event_lwp_callback): Remove.
6805 (select_event_lwp): Use find_thread/for_each_thread.
6806
a1385b7b
SM
68072017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6808
6809 * linux-low.c (not_stopped_callback): Return bool, take filter
6810 argument directly.
6811 (linux_wait_for_event_filtered): Use find_thread.
6812 (linux_wait_1): Likewise.
6813
454296a2
SM
68142017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6815
6816 * linux-low.c (same_lwp): Remove.
6817 (find_lwp_pid): Use find_thread.
6818
6b2a85da
SM
68192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6820
6821 * linux-low.c (delete_lwp_callback): Remove.
6822 (linux_mourn): Use for_each_thread.
6823
798a38e8
SM
68242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6825
6826 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6827 args parameter, don't check for pid.
6828 (linux_detach): Use for_each_thread.
6829
e4eb0dec
SM
68302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6831
6832 * linux-low.c (struct counter): Remove.
6833 (second_thread_of_pid_p): Remove.
6834 (last_thread_of_process_p): Use find_thread.
6835
83e1b6c1
SM
68362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6837
6838 * inferiors.c (find_inferior_in_random): Remove.
6839 * inferiors.h (find_inferior_in_random): Remove.
6840 * linux-low.c (status_pending_p_callback): Return bool, accept
6841 parameter ptid directly.
6842 (linux_wait_for_event_filtered): Use find_thread_in_random.
6843 (linux_wait_1): Likewise.
6844
8dc7b443
SM
68452017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6846
6847 * inferiors.c (find_inferior_id): Remove.
6848 (find_thread_ptid): Move implemention from find_inferior_id to
6849 here.
6850 * inferiors.h (find_inferior_id): Remove.
6851 * server.c (handle_status): Use find_thread_ptid.
6852 (process_serial_event): Likewise.
6853 * thread-db.c (find_one_thread): Likewise.
6854 (thread_db_thread_handle): Likewise.
6855 * win32-low.c (thread_rec): Likewise.
6856 (child_delete_thread): Likewise.
6857 (win32_thread_alive): Likewise.
6858 (get_child_debug_event): Likewise.
6859
da25033c
SM
68602017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6861
6862 * linux-mips-low.c (update_watch_registers_callback): Return
6863 void, remove pid_p parameter, don't check for pid.
6864 (mips_insert_point, mips_remove_point): Use for_each_thread.
6865
c91bb56b
SM
68662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6867
6868 * lynx.low (lynx_delete_thread_callback): Remove.
6869 (lynx_mourn): Use for_each_thread.
6870
634a3254
SM
68712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6872
6873 * regcache.c (regcache_invalidate_one): Remove.
6874 (regcache_invalidate_pid): use for_each_thread.
6875
41272101
TT
68762017-11-26 Tom Tromey <tom@tromey.com>
6877
6878 * linux-low.c (linux_create_inferior): Update.
6879
f5291a6f
UW
68802017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6881
6882 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6883
6654d750
AH
68842017-11-24 Alan Hayward <alan.hayward@arm.com>
6885
6886 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6887 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6888 * linux-aarch64-tdesc-selftest.c: New file.
6889 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6890
68912017-11-24 Alan Hayward <alan.hayward@arm.com>
6892
6893 * configure.srv: Add new file.
6894 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6895 * linux-aarch64-tdesc-selftest.c: New file.
6896 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6897
49bdb7ee
AH
68982017-11-24 Alan Hayward <alan.hayward@arm.com>
6899
6900 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6901 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6902 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6903
d6d7ce56
AH
69042017-11-24 Alan Hayward <alan.hayward@arm.com>
6905
6906 * configure.srv: Add new files.
6907 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6908 aarch64_linux_read_description.
6909 * linux-aarch64-low.c (aarch64_linux_read_description):
6910 Merge with aarch64_arch_setup.
6911 (aarch64_arch_setup): Call aarch64_linux_read_description.
6912 * linux-aarch64-tdesc.c: New file.
6913 * linux-aarch64-tdesc.h: New file.
6914
506fe5f4
YQ
69152017-11-24 Yao Qi <yao.qi@linaro.org>
6916
6917 * configure.srv: Set $srv_regobj for tic6x-linux.
6918 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6919 (tic6x_read_description): Move some code to tic6x_arch_setup.
6920 (tic6x_tdesc_test): New function.
6921 (initialize_low_arch): Call selftests::register_test.
6922
29f9a567
YQ
69232017-11-22 Yao Qi <yao.qi@linaro.org>
6924
6925 * remote-utils.c (prepare_resume_reply): Use memcpy.
6926
578290ec
SM
69272017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6928
6929 * linux-low.c (kill_one_lwp_callback): Return void, take
6930 argument directly, don't filter on pid.
6931 (linux_kill): Use for_each_thread.
6932
eca55aec
SM
69332017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6934
6935 * linux-low.c (need_step_over_p): Return bool, remove dummy
6936 argument.
6937 (linux_resume, proceed_all_lwps): Use find_thread.
6938
25c28b4d
SM
69392017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6940
6941 * linux-low.c (resume_status_pending_p): Return bool, remove
6942 flag_p argument.
6943 (linux_resume): Use find_thread.
6944
5fdda392
SM
69452017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6946
6947 * linux-low.c (struct thread_resume_array): Remove.
6948 (linux_set_resume_request): Return void, take arguments
6949 directly.
6950 (linux_resume): Use for_each_thread.
6951
fcb056a5
SM
69522017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6953
6954 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6955 return bool, remove data argument.
6956 (linux_stabilize_threads): Use find_thread.
6957
139720c5
SM
69582017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6959
6960 * linux-low.c (unsuspend_one_lwp): Remove.
6961 (unsuspend_all_lwps): Use for_each_thread, inline code from
6962 unsuspend_one_lwp.
6963
6d1e5673
SM
69642017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6965
6966 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6967 * linux-low.c (struct iterate_over_lwps_args): Remove.
6968 (iterate_over_lwps_filter): Remove.
6969 (iterate_over_lwps): Use find_thread.
6970
bbf550d5
SM
69712017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6972
6973 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6974 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6975 code from reset_lwp_ptrace_options_callback.
6976
00192f77
SM
69772017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6978
6979 * linux-arm-low.c (struct update_registers_data): Remove.
6980 (update_registers_callback): Return void, take arguments
6981 directly, don't check thread's pid.
6982 (arm_insert_point, arm_remove_point): Use for_each_thread.
6983
2bee2b6c
SM
69842017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6985
6986 * win32-low.c (continue_one_thread): Return void, take argument
6987 directly.
6988 (child_continue): Use for_each_thread.
6989
0b360f19
SM
69902017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6991
6992 * win32-i386-low.c (update_debug_registers_callback): Rename
6993 to ...
6994 (update_debug_registers): ... this, return void, remove pid_p arg.
6995 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6996
f27866ba
SM
69972017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6998
6999 * inferiors.h (struct process_info): Add constructor, initialize
7000 fields..
7001 <syscalls_to_catch>: Change type to std::vector<int>.
7002 * inferiors.c (add_process): Allocate process_info with new.
7003 (remove_process): Free process_info with delete.
7004 * linux-low.c (handle_extended_wait): Adjust.
7005 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
7006 * server.c (handle_general_set): Adjust.
7007
e849ea89
PA
70082017-11-16 Pedro Alves <palves@redhat.com>
7009
7010 * remote-utils.c (remote_close): Block SIGIO signals instead of
7011 uninstalling the SIGIO handler.
7012
1d0aa65c
AH
70132017-11-16 Alan Hayward <alan.hayward@arm.com>
7014
7015 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
7016
3491a34c
YQ
70172017-11-16 Yao Qi <yao.qi@linaro.org>
7018
7019 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
7020 (tic6x_store_gregset): Likewise.
7021 (tic6x_usrregs_info): Move it up.
7022
a602f924
AH
70232017-11-15 Alan Hayward <alan.hayward@arm.com>
7024
7025 * Makefile.in: Update arch rules.
7026 * configure.srv: Explicitly mark arch/ files.
7027
5616b6c3
AS
70282017-11-13 Andreas Schwab <schwab@suse.de>
7029
7030 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7031 function.
7032 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7033
d1928160
PA
70342017-11-06 Pedro Alves <palves@redhat.com>
7035
7036 * config.in, configure: Regenerate.
7037
bac608e7
SM
70382017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7039
7040 * target.c (struct thread_search): Remove.
7041 (thread_search_callback): Remove.
7042 (prepare_to_access_memory): Use for_each_thread instead of
7043 find_inferior. Inline code from thread_search_callback.
7044
eaddb425
SM
70452017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7046
7047 * server.c (struct visit_actioned_threads_data): Remove.
7048 (visit_actioned_threads): Change prototype to take arguments
7049 directly.
7050 (resume): Use find_thread instead of find_inferior.
7051
99078d34
SM
70522017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7053
7054 * server.c (queue_stop_reply_callback): Change prototype, return
7055 void.
7056 (find_status_pending_thread_callback): Remove.
7057 (handle_status): Replace find_inferior with find_thread and
7058 for_each_thread.
7059
cc628f3d
AH
70602017-10-25 Alan Hayward <alan.hayward@arm.com>
7061
7062 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7063 with REGNO.
7064 (aarch64_store_gregset): Likewise.
7065 (aarch64_fill_fpregset): Likewise.
7066 (aarch64_store_fpregset): Likewise.
7067
4d3bb80e
SM
70682017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7069
7070 * gdbthread.h (find_thread, for_each_thread): New functions.
7071 * inferiors.c (thread_of_pid): Remove.
7072 (find_any_thread_of_pid): Use find_thread.
7073 * linux-low.c (num_lwps): Use for_each_thread.
7074
7a7cdfa0
YQ
70752017-10-17 Yao Qi <yao.qi@linaro.org>
7076
7077 * Makefile.in: Remove one rule.
7078 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7079
e675d170
YQ
70802017-10-17 Yao Qi <yao.qi@linaro.org>
7081
7082 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7083 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7084
7eb4e0f9
YQ
70852017-10-17 Yao Qi <yao.qi@linaro.org>
7086
7087 * configure.srv: Rename arm.o with arch/arm.o.
7088
60d6cfc9
YQ
70892017-10-17 Yao Qi <yao.qi@linaro.org>
7090
7091 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7092 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7093 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7094 (arch-i386.o, arch-amd64.o): Remove rules.
7095 (arch/%.o): New rule.
7096 Update POSTCOMPILE and COMPILE.pre.
7097 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7098 * configure: Re-generated.
7099 * configure.srv: Replace arch-i386.o with arch/i386.o.
7100 Replace arch-amd64.o with arch/amd64.o.
7101
5bfda255
YQ
71022017-10-16 Yao Qi <yao.qi@linaro.org>
7103
7104 * configure: Regenerated.
7105
9c80ecd6
SM
71062017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7107
7108 * inferiors.h: (struct inferior_list): Remove.
7109 (struct inferior_list_entry); Remove.
7110 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7111 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7112 get_first_inferior): Remove.
7113 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7114 find_inferior_id, find_inferior_in_random): Change signature.
7115 * inferiors.c (all_threads): Change type to
7116 std::list<thread_info *>.
7117 (get_thread): Remove macro.
7118 (find_inferior, find_inferior_id): Change signature, implement
7119 using find_thread.
7120 (find_inferior_in_random): Change signature, implement using
7121 find_thread_in_random.
7122 (for_each_inferior, for_each_inferior_with_data): Change
7123 signature, implement using for_each_thread.
7124 (add_inferior_to_list, remove_inferior): Remove.
7125 (add_thread, get_first_thread, thread_of_pid,
7126 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7127 (get_first_inferior, one_inferior_p, clear_inferior_list):
7128 Remove.
7129 (clear_inferiors, get_thread_process): Update.
7130 * gdbthread.h: Include <list>.
7131 (struct thread_info) <entry>: Remove field.
7132 <id>: New field.
7133 (all_threads): Change type to std::list<thread_info *>.
7134 (get_first_inferior): Add doc.
7135 (find_thread, for_each_thread, find_thread_in_random): New
7136 functions.
7137 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7138 * linux-arm-low.c (update_registers_callback): Update.
7139 * linux-low.c (second_thread_of_pid_p): Update.
7140 (kill_one_lwp_callback, linux_detach_lwp_callback,
7141 delete_lwp_callback, status_pending_p_callback, same_lwp,
7142 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7143 iterate_over_lwps, not_stopped_callback,
7144 resume_stopped_resumed_lwps, count_events_callback,
7145 select_singlestep_lwp_callback, select_event_lwp_callback,
7146 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7147 suspend_and_send_sigstop_callback, wait_for_sigstop,
7148 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7149 lwp_running, linux_set_resume_request, resume_status_pending_p,
7150 need_step_over_p, start_step_over, linux_resume_one_thread,
7151 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7152 reset_lwp_ptrace_options_callback): Update.
7153 * linux-mips-low.c (update_watch_registers_callback): Update.
7154 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7155 Update.
7156 (free_register_cache_thread_one): Remove.
7157 (regcache_release): Update.
7158 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7159 handle_qxfer_threads_worker): Update.
7160 (handle_query): Update, use list iterator.
7161 (visit_actioned_threads, handle_pending_status,
7162 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7163 clear_pending_status_callback, set_pending_status_callback,
7164 find_status_pending_thread_callback, handle_status,
7165 process_serial_event): Update.
7166 * target.c (thread_search_callback): Update.
7167 * thread-db.c (thread_db_get_tls_address): Update.
7168 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7169 Update.
7170 * win32-i386-low.c (update_debug_registers_callback): Update.
7171 * win32-low.c (delete_thread_info, child_delete_thread,
7172 continue_one_thread, suspend_one_thread,
7173 get_child_debug_event): Adjust.
7174
9179355e
SM
71752017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7176
7177 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7178 * inferiors.h: Include <list>.
7179 (struct process_info) <entry>: Remove field.
7180 <pid>: New field.
7181 (pid_of): Change macro to function.
7182 (ptid_of, lwpid_of): Remove macro.
7183 (all_processes): Change type to std::list<process_info *>.
7184 (ALL_PROCESSES): Remove macro.
7185 (for_each_process, find_process): New function.
7186 * inferiors.c (all_processes): Change type to
7187 std::list<process_info *>.
7188 (find_thread_process): Adjust.
7189 (add_process): Likewise.
7190 (remove_process): Likewise.
7191 (find_process_pid): Likewise.
7192 (get_first_process): Likewise.
7193 (started_inferior_callback): Remove.
7194 (have_started_inferiors_p): Adjust.
7195 (attached_inferior_callback): Remove.
7196 (have_attached_inferiors_p): Adjust.
7197 * linux-low.c (check_zombie_leaders): Likewise.
7198 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7199 (x86_linux_update_xmltarget): Adjust.
7200 * server.c (handle_query): Likewise.
7201 (gdb_reattached_process): Remove.
7202 (handle_status): Adjust.
7203 (kill_inferior_callback): Likewise.
7204 (detach_or_kill_inferior): Remove.
7205 (print_started_pid): Likewise.
7206 (print_attached_pid): Likewise.
7207 (detach_or_kill_for_exit): Update.
7208 (process_serial_event): Likewise.
7209 * linux-arm-low.c (arm_new_fork): Likewise.
7210
c9cb8905
SM
72112017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7212
7213 * dll.h: Include <list>.
7214 (struct dll_info): Add constructor.
7215 <entry>: Remove field.
7216 (all_dlls): Change type to std::list<dll_info>.
7217 * dll.c: Include <algorithm>.
7218 (get_dll): Remove macro.
7219 (all_dlls): Change type to std::list<dll_info *>.
7220 (free_one_dll): Remove.
7221 (match_dll): Likewise.
7222 (loaded_dll): Adjust.
7223 (unloaded_dll): Adjust to all_dlls type change, use
7224 std::find_if. Inline code from match_dll.
7225 (clear_dlls): Adjust to all_dlls type change.
7226 * server.c (emit_dll_description): Remove.
7227 (handle_qxfer_libraries): Adjust to all_dlls type change,
7228 integrate emit_dll_description's functionality.
7229
04ec7890
SM
72302017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7231
7232 * linux-low.h (struct linux_target_ops) <delete_process>: New
7233 field.
7234 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7235 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7236 (struct linux_target_ops): Add delete_process callback.
7237 * linux-arm-low.c (arm_delete_process): New.
7238 (struct linux_target_ops): Add delete_process callback.
7239 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7240 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7241 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7242 * linux-mips-low.c (mips_linux_delete_process): New.
7243 (struct linux_target_ops): Add delete_process callback.
7244 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7245 * linux-s390-low.c (struct linux_target_ops): Likewise.
7246 * linux-sh-low.c (struct linux_target_ops): Likewise.
7247 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7248 * linux-tile-low.c (struct linux_target_ops): Likewise.
7249 * linux-x86-low.c (x86_linux_delete_process): New.
7250 (struct linux_target_ops): Add delete_process callback.
7251 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7252
466eecee
SM
72532017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7254
7255 * linux-aarch64-low.c (the_low_target): Add thread delete
7256 callback.
7257 * linux-arm-low.c (arm_delete_thread): New function.
7258 (the_low_target): Add thread delete callback.
7259 * linux-bfin-low.c (the_low_target): Likewise.
7260 * linux-crisv32-low.c (the_low_target): Likewise.
7261 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7262 set.
7263 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7264 field.
7265 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7266 * linux-mips-low.c (mips_linux_delete_thread): New function.
7267 (the_low_target): Add thread delete callback.
7268 * linux-ppc-low.c (the_low_target): Likewise.
7269 * linux-s390-low.c (the_low_target): Likewise.
7270 * linux-sh-low.c (the_low_target): Likewise.
7271 * linux-tic6x-low.c (the_low_target): Likewise.
7272 * linux-tile-low.c (the_low_target): Likewise.
7273 * linux-x86-low.c (the_low_target): Likewise.
7274 * linux-xtensa-low.c (the_low_target): Likewise.
7275
b79f7801
YZ
72762017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7277
7278 * win32-low.c: Include "common-inferior.h".
7279
bc3b087d
SDJ
72802017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7281
7282 * inferiors.c (set_inferior_cwd): New function.
7283 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7284 (handle_query): Inform that QSetWorkingDir is supported.
7285 * win32-low.c (create_process): Pass the inferior's cwd to
7286 CreateProcess.
7287
d092c5a2
SDJ
72882017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7289
7290 * inferiors.c (current_inferior_cwd): New global variable.
7291 (get_inferior_cwd): New function.
7292 * inferiors.h (struct process_info) <cwd>: New field.
7293
7da0a886
SDJ
72942017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7295
7296 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7297 (OBS): Add gdb_tilde_expand.o.
7298
289a6840
SM
72992017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7300
7301 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7302 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7303
256642e8
PA
73042017-09-29 Pedro Alves <palves@redhat.com>
7305
7306 * ax.c (gdb_parse_agent_expr): Constify.
7307 * ax.h (gdb_parse_agent_expr): Constify.
7308 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7309 Constify.
7310 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7311 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7312 * remote-utils.h (read_ptid): Constify.
7313 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7314 (process_point_options, process_serial_event): Constify.
7315 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7316 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7317 (cmd_qtbuffer): Constify.
7318
5b9ca4d4
PA
73192017-09-29 Pedro Alves <palves@redhat.com>
7320
7321 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7322 fails.
7323
94c207e0
PA
73242017-09-29 Pedro Alves <palves@redhat.com>
7325
7326 * linux-low.c (handle_extended_wait): Pass parent thread instead
7327 of process to thread_db_notice_clone.
7328 * linux-low.h (thread_db_notice_clone): Replace parent process
7329 parameter with parent thread parameter.
7330 * thread-db.c (find_one_thread): Add comment.
7331 (thread_db_notice_clone): Replace parent process parameter with
7332 parent thread parameter. Temporarily switch to the parent thread.
7333
75352e28
SDJ
73342017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7335
7336 * gdbthread.h: Include "common-gdbthread.h".
7337 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7338 "if" when validating the ptid.
7339 * remote-utils.c: Include "gdbthread.h".
7340 (prepare_resume_reply): Use "switch_to_thread".
7341 * target.c (done_accessing_memory): Likewise.
7342
ad339634
AA
73432017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7344
7345 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7346 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7347 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7348 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7349 s390x-gs-linux64-ipa.o to ipa_obj.
7350 * linux-s390-low.c (HWCAP_S390_GS): New define.
7351 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7352 New functions.
7353 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7354 (s390_arch_setup): Check for guarded-storage support and choose
7355 appropriate tdesc.
7356 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7357 init_registers_s390x_gs_linux64.
7358 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7359 enum value.
7360 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7361 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7362
cc4d742f
SM
73632017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7364
7365 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7366
f6327dcb
KB
73672017-09-21 Kevin Buettner <kevinb@redhat.com>
7368
7369 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7370 (thread_db_thread_handle): Declare.
7371 * linux-low.c (linux_target_ops): Initialize thread_handle.
7372 * server.c (handle_qxfer_threads_worker): Add support for
7373 "handle" attribute.
7374 * target.h (struct target_ops): Add new function pointer,
7375 thread_handle.
7376 (target_thread_handle): Define.
7377 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7378 field in lwp.
7379 (thread_db_thread_handle): New function.
7380
86299109
KB
73812017-09-21 Kevin Buettner <kevinb@redhat.com>
7382
7383 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7384 * linux-low.h (thread_db_notice_clone): Declare.
7385 * thread-db.c (thread_db_notice_clone): New function.
7386
f557a88a
PA
73872017-09-21 Pedro Alves <palves@redhat.com>
7388
7389 * server.c (gdb_read_memory, handle_status, process_serial_event)
7390 (handle_serial_event, handle_target_event): Adjust to
7391 set_desired_thread prototype change.
7392 * target.c (set_desired_thread): Remove 'use_general' parameter
7393 and adjust.
7394 * target.h (set_desired_thread): Remove 'use_general' parameter.
7395
223ffa71
TT
73962017-09-20 Tom Tromey <tom@tromey.com>
7397
7398 * target.c (target_terminal::terminal_state): Define.
7399 (target_terminal::init): Rename from target_terminal_init.
7400 (target_terminal::inferior): Rename from
7401 target_terminal_inferior.
7402 (target_terminal::ours): Rename from target_terminal_ours.
7403 (target_terminal::ours_for_output, target_terminal::info): New.
7404
04fd3ba9
SM
74052017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7406
7407 * server.c (accumulate_file_name_length): Remove.
7408 (emit_dll_description): Adjust to std::string change.
7409 (handle_qxfer_libraries): Use std::string to hold document.
7410
5e187554
SM
74112017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7412
7413 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7414 return type of xml_escape_text.
7415 * server.c (emit_dll_description): Likewise.
7416
1526853e
SM
74172017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7418
7419 * server.c (captured_main): Accept argument for --selftest.
7420 Update run_tests call.
7421 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7422 when registering selftests.
7423
c4dfafab
SDJ
74242017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7425
7426 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7427 instead of "VEC" for "target_desc.reg_defs".
7428 (regcache_cpy): Likewise.
7429 (registers_to_string): Likewise.
7430 (registers_from_string): Likewise.
7431 (find_regno): Likewise.
7432 (supply_regblock): Likewise.
7433 (regcache_raw_read_unsigned): Likewise.
7434 * tdesc.c (init_target_desc): Likewise.
7435 (tdesc_create_reg): Likewise.
7436 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7437 (struct target_desc) <reg_defs>: Convert to "std::vector".
7438 (target_desc): Do not initialize "reg_defs".
7439 (~target_desc): Update code to use "std::vector" instead of "VEC"
7440 for "target_desc.reg_defs".
7441 (operator==): Likewise.
7442
124aceb4
SM
74432017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7444
7445 * inferiors.h (thread_to_gdb_id): Remove.
7446 * inferiors.c (thread_to_gdb_id): Remove.
7447 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7448 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7449 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7450 Likewise.
7451 * nto-low.c (nto_fetch_registers, nto_store_registers,
7452 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7453
96cde54f
SM
74542017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7455
7456 * inferiors.h (gdb_id_to_thread_id): Remove.
7457 * inferiors.c (gdb_id_to_thread_id): Remove.
7458 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7459 removal. Move pid declaration closer to where it's used.
7460
e8ca139e
SM
74612017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7462
7463 * server.c (handle_detach): New function.
7464 (process_serial_event): Move code out, call handle_detach.
7465
f8a4e119
SM
74662017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7467
7468 * server.c (require_running): Rename to ...
7469 (require_running_or_return): ... this ...
7470 (require_running_or_break): ... and this.
7471 (handle_query, process_serial_event): Adjust.
7472
0eb0a407
SM
74732017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7474
7475 * linux-low.c (linux_set_resume_request): Remove unused
7476 variables.
7477
785922a5
SM
74782017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7479
7480 * server.c (first_thread_of): Remove.
7481 (process_serial_event): Replace usage of first_thread_of with
7482 find_any_thread_of_pid.
7483 * tracepoint.c (same_process_p): Remove.
7484 (gdb_agent_about_to_close): Replace usage of same_process_p with
7485 find_any_thread_of_pid.
7486 * linux-x86-low.c (same_process_callback): Remove.
7487 (x86_arch_setup_process_callback): Replace usage of
7488 same_process_callback with find_any_thread_of_pid.
7489 * thread-db.c (any_thread_of): Remove.
7490 (switch_to_process): Replace usage of any_thread_of with
7491 find_any_thread_of_pid.
7492 * inferiors.c (thread_pid_matches_callback): Remove.
7493 (find_thread_process): Adjust to use find_any_thread_of_pid.
7494
a059f00c
SDJ
74952017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7496
7497 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7498 with "!VEC_empty".
a059f00c 7499
cc397f3a
SDJ
75002017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7501
7502 * linux-low.c (handle_extended_wait): Use
7503 "allocate_target_description" instead of "XNEW".
7504 * linux-x86-low.c (initialize_low_arch): Likewise.
7505
22916b07
YQ
75062017-09-05 Yao Qi <yao.qi@linaro.org>
7507
7508 * configure.srv (srv_i386_regobj): Remove.
7509 (srv_amd64_regobj): Remove.
7510 (srv_regobj): Set it to "" for x86 non-linux targets.
7511 * linux-x86-tdesc.c (i386_linux_read_description):
7512 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7513 (init_registers_i386): Remove the declaration.
7514 (tdesc_i386): Remove the declaration.
7515 (lynx_i386_arch_setup): Call i386_create_target_description.
7516 * nto-x86-low.c: Likewise.
7517 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7518 [!__x86_64__]: include arch/i386.h.
7519 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7520
38602d55
YQ
75212017-09-05 Yao Qi <yao.qi@linaro.org>
7522
7523 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7524 i386/amd64-XXX-linux from it.
7525
44b886ff
YQ
75262017-09-05 Yao Qi <yao.qi@linaro.org>
7527
7528 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7529 false.
7530 (ipa_amd64_linux_regobj): Remove.
7531 (ipa_x32_linux_regobj): Remove.
7532
b4570e4b
YQ
75332017-09-05 Yao Qi <yao.qi@linaro.org>
7534
7535 * Makefile.in (arch-amd64.o): New rule.
7536 * configure.srv: Append arch-amd64.o.
7537 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7538 (get_ipa_tdesc): Call amd64_linux_read_description.
7539 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7540 and init_registers_amd64_XXX.
7541 * linux-x86-low.c (x86_linux_read_description): Call
7542 amd64_linux_read_description.
7543 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7544 (initialize_low_arch): Don't call init_registers_x32_XXX and
7545 init_registers_amd64_XXX.
7546 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7547 and tdesc_amd64_XXX.
7548 [__x86_64__] (amd64_tdesc_test): New function.
7549 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7550 and init_registers_amd64_XXX.
7551 * linux-x86-tdesc.c: Include arch/amd64.h.
7552 (xcr0_to_tdesc_idx): New function.
7553 (i386_linux_read_description): New function.
7554 (amd64_get_ipa_tdesc_idx): New function.
7555 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7556 (amd64_get_ipa_tdesc): Declare.
7557
d1f28ea2
YQ
75582017-09-05 Yao Qi <yao.qi@linaro.org>
7559
7560 * configure.srv (srv_i386_linux_xmlfiles): Remove
7561 i386/i386-XXX-linux.xml from it.
7562
25a93583
YQ
75632017-09-05 Yao Qi <yao.qi@linaro.org>
7564
7565 * configure.srv: Set srv_i386_linux_regobj empty if $development
7566 is false.
7567 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7568 initialize_low_tdesc.
7569 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7570 with #if initialize_low_tdesc.
7571 * linux-x86-tdesc-selftest.c: New file.
7572 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7573
5f035c07
YQ
75742017-09-05 Yao Qi <yao.qi@linaro.org>
7575
7576 * Makefile.in (arch-i386.o): New rule.
7577 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7578 (x86_64-*-linux*): Likewise.
7579 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7580 include arch/i386.h.
7581 (i386_linux_read_description): Remove code and call
7582 i386_create_target_description.
7583 * tdesc.c (allocate_target_description): New function.
7584 * tdesc.h (set_tdesc_architecture): Remove declaration.
7585 (set_tdesc_osabi): Likewise.
7586
0abe8a89
YQ
75872017-09-05 Yao Qi <yao.qi@linaro.org>
7588
7589 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7590 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7591 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7592 .xmltarget.
7593 * server.c (get_features_xml): Call tdesc_get_features_xml.
7594 * tdesc.c (set_tdesc_architecture): New function.
7595 (set_tdesc_osabi): New function.
7596 (tdesc_get_features_xml): New function.
7597 (tdesc_create_feature): Add an argument.
7598 * tdesc.h (struct target_desc) <features>: New field.
7599 <arch, osabi>: New field.
7600 (~target_desc): xfree features, arch, and osabi.
7601 (target_desc::oerator==): Don't compare .xmltarget.
7602 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7603 (set_tdesc_osabi): Likewise.
7604 (tdesc_get_features_xml): Likewise.
7605
0a188386
YQ
76062017-09-05 Yao Qi <yao.qi@linaro.org>
7607
7608 * linux-x86-tdesc.c: Include selftest.h.
7609 (i386_tdesc_test): New function.
7610 (initialize_low_tdesc): Call selftests::register_test.
7611 * tdesc.h: Include regdef.h.
7612 (target_desc): Override operator == and !=.
7613
f49ff000
YQ
76142017-09-05 Yao Qi <yao.qi@linaro.org>
7615
7616 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7617 (ipa_obj): Likewise.
7618 * linux-i386-ipa.c: Include common/x86-xstate.h
7619 (get_ipa_tdesc): Call i386_linux_read_description.
7620 (initialize_low_tracepoint): Don't call init_registers_XXX
7621 functions, call initialize_low_tdesc instead.
7622 * linux-x86-low.c (x86_linux_read_description): Call
7623 i386_linux_read_description.
7624 (initialize_low_arch): Don't call init_registers_i386_XXX
7625 functions, call initialize_low_tdesc.
7626 * linux-x86-tdesc.c: New file.
7627 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7628 (i386_get_ipa_tdesc_idx): Declare.
7629 (i386_get_ipa_tdesc): Declare.
7630 (initialize_low_tdesc): Declare.
7631
2b68ef2f
YQ
76322017-09-05 Yao Qi <yao.qi@linaro.org>
7633
7634 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7635 instead of 0.
7636
f7000548
YQ
76372017-09-05 Yao Qi <yao.qi@linaro.org>
7638
7639 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7640 * regcache.c (get_thread_regcache): Use VEC_length.
7641 (init_register_cache): Likewise.
7642 (regcache_cpy): Likewise.
7643 (registers_to_string): Iterate reg_defs via VEC_iterate.
7644 (find_regno): Likewise.
7645 (find_register_by_number): Use VEC_index.
7646 (register_size): Call find_register_by_number.
7647 (register_data): Call find_register_by_number.
7648 (supply_regblock): Use VEC_length.
7649 (regcache_raw_read_unsigned): Likewise.
7650 * tdesc.c (init_target_desc): Iterate reg_defs via
7651 VEC_iterate.
7652 (default_description): Update initializer.
7653 (copy_target_description): Don't update field num_registers.
7654 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7655 <num_registers>: Remove.
7656
50a421ac
SM
76572017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7658
7659 * Makefile.in (.SECONDARY): Define target.
7660
23fdd69e
SM
76612017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7662
7663 * linux-low.c (linux_wait_1): Adjust.
7664 * server.c (queue_stop_reply_callback): Adjust.
7665
0a2dde4a
SDJ
76662017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7667
7668 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7669 QEnvironmentUnset and QEnvironmentReset packets.
7670 (handle_query): Inform remote that QEnvironmentHexEncoded,
7671 QEnvironmentUnset and QEnvironmentReset are supported.
7672
6afd337d
SM
76732017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7674
7675 * inferiors.h (inferior_target_data): Rename to ...
7676 (thread_target_data): ... this.
7677 (inferior_regcache_data): Rename to ...
7678 (thread_regcache_data): ... this.
7679 (set_inferior_regcache_data): Rename to ...
7680 (set_thread_regcache_data): ... this.
7681 * inferiors.c (inferior_target_data): Rename to ...
7682 (thread_target_data): ... this.
7683 (inferior_regcache_data): Rename to ...
7684 (thread_regcache_data): ... this.
7685 (set_inferior_regcache_data): Rename to ...
7686 (set_thread_regcache_data): ... this.
7687 (free_one_thread): Update.
7688 * linux-low.h (get_thread_lwp): Update.
7689 * regcache.c (get_thread_regcache): Update.
7690 (regcache_invalidate_thread): Update.
7691 (free_register_cache_thread): Update.
7692 * win32-i386-low.c (update_debug_registers_callback): Update.
7693 (win32_get_current_dr): Update.
7694 * win32-low.c (thread_rec): Update.
7695 (delete_thread_info): Update.
7696 (continue_one_thread): Update.
7697 (suspend_one_thread): Update.
7698
a160cc46
SM
76992017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7700
7701 * inferiors.c (set_inferior_target_data): Remove.
7702 * inferiors.h (set_inferior_target_data): Remove.
7703
6d580b63
YQ
77042017-08-18 Yao Qi <yao.qi@linaro.org>
7705
7706 * Makefile.in (OBS): Add selftest.o.
7707 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7708 * configure, config.in: Re-generated.
7709 * server.c: Include common/sefltest.h.
7710 (captured_main): Handle option --selftest.
7711
f5a29eb0
YQ
77122017-08-09 Yao Qi <yao.qi@linaro.org>
7713
7714 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7715 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7716 i386-avx-mpx.o and i386-mmx.o.
7717 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7718 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7719 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7720 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7721 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7722 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7723 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7724 i386/amd64-avx-mpx.xml.
7725
57757c2f
YQ
77262017-08-09 Yao Qi <yao.qi@linaro.org>
7727
7728 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7729 and x32-avx-avx512.o.
7730 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7731 i386/x32-avx-avx512.xml.
7732
229d26fc
SM
77332017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7734
7735 * tracepoint.h (enum class fast_tpoint_collect_result): New
7736 enumeration.
7737 (fast_tracepoint_collecting): Change return type to
7738 fast_tpoint_collect_result.
7739 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7740 * linux-low.h: Include tracepoint.h.
7741 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7742 fast_tpoint_collect_result.
7743 * linux-low.c (handle_tracepoints): Adjust.
7744 (linux_fast_tracepoint_collecting): Change return type to
7745 fast_tpoint_collect_result.
7746 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7747 linux_wait_1, stuck_in_jump_pad_callback,
7748 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7749 proceed_one_lwp): Adjust to type change.
7750
2e1e43e1
YQ
77512017-07-10 Yao Qi <yao.qi@linaro.org>
7752
7753 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7754
adc764e7
YQ
77552017-06-29 Yao Qi <yao.qi@linaro.org>
7756
7757 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7758 Remove.
7759 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7760
a206891a
SM
77612017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7762
7763 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7764
9a6c7d9c
SDJ
77652017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7766
7767 * linux-low.c (linux_create_inferior): Adjust code to access the
7768 environment information via 'gdb_environ' class.
7769 * lynx-low.c (lynx_create_inferior): Likewise.
7770 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7771 (get_environ): Return a pointer to 'our_environ'.
7772 (captured_main): Initialize 'our_environ'.
7773 * server.h (get_environ): Adjust prototype.
7774 * spu-low.c (spu_create_inferior): Adjust code to access the
7775 environment information via 'gdb_environ' class.
7776
ae3e2ccf
SM
77772017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7778
7779 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7780 usage of "register" keyword.
7781
3e019bdc
SM
77822017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7783
7784 * configure: Re-generate.
7785
8465943a
SM
77862017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7787
7788 * configure: Re-generate.
7789
cf0dd6f0
SM
77902017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7791
7792 * Makefile.in (COMPILE.pre): Add "-x c++".
7793
9845682b
SDJ
77942017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7795
7796 * fork-child.c: Conditionally include <signal.h>.
7797
aefd8b33
SDJ
77982017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7799
7800 * server.c (handle_general_set): Handle new packet
7801 "QStartupWithShell".
7802 (handle_query): Add "QStartupWithShell" to the list of supported
7803 packets.
7804 (gdbserver_usage): Add help text explaining the
7805 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7806 options.
7807 (captured_main): Recognize and act upon the presence of the new
7808 CLI options.
7809
2090129c
SDJ
78102017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7811 Pedro Alves <palves@redhat.com>
7812
7813 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7814 * configure: Regenerate.
7815 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7816 "fork-inferior.o".
7817 (i[34567]86-*-lynxos*): Likewise.
7818 (spu*-*-*): Likewise.
7819 * fork-child.c: New file.
7820 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7821 and "environ.h".
7822 (linux_ptrace_fun): New function.
7823 (linux_create_inferior): Adjust function prototype to reflect
7824 change on "target.h". Adjust function code to use
7825 "fork_inferior".
7826 (linux_request_interrupt): Delete "signal_pid".
7827 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7828 (lynx_ptrace_fun): New function.
7829 (lynx_create_inferior): Adjust function prototype to reflect
7830 change on "target.h". Adjust function code to use
7831 "fork_inferior".
7832 * nto-low.c (nto_create_inferior): Adjust function prototype and
7833 code to reflect change on "target.h". Update comments.
7834 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7835 "common-terminal.h" and "environ.h".
7836 (terminal_fd): Moved to fork-child.c.
7837 (old_foreground_pgrp): Likewise.
7838 (restore_old_foreground_pgrp): Likewise.
7839 (last_status): Make it global.
7840 (last_ptid): Likewise.
7841 (our_environ): New variable.
7842 (startup_with_shell): Likewise.
7843 (program_name): Likewise.
7844 (program_argv): Rename to...
7845 (program_args): ...this.
7846 (wrapper_argv): New variable.
7847 (start_inferior): Delete function.
7848 (get_exec_wrapper): New function.
7849 (get_exec_file): Likewise.
7850 (get_environ): Likewise.
7851 (prefork_hook): Likewise.
7852 (post_fork_inferior): Likewise.
7853 (postfork_hook): Likewise.
7854 (postfork_child_hook): Likewise.
7855 (handle_v_run): Update code to deal with arguments coming from the
7856 remote host. Update calls from "start_inferior" to
7857 "create_inferior".
7858 (captured_main): Likewise. Initialize environment variable. Call
7859 "have_job_control".
7860 * server.h (post_fork_inferior): New prototype.
7861 (get_environ): Likewise.
7862 (last_status): Declare.
7863 (last_ptid): Likewise.
7864 (signal_pid): Likewise.
7865 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7866 (spu_ptrace_fun): New function.
7867 (spu_create_inferior): Adjust function prototype to reflect change
7868 on "target.h". Adjust function code to use "fork_inferior".
7869 * target.c (target_terminal_init): New function.
7870 (target_terminal_inferior): Likewise.
7871 (target_terminal_ours): Likewise.
7872 * target.h: Include <vector>.
7873 (struct target_ops) <create_inferior>: Update prototype.
7874 (create_inferior): Update macro.
7875 * utils.c (gdb_flush_out_err): New function.
7876 * win32-low.c (win32_create_inferior): Adjust function prototype
7877 and code to reflect change on "target.h".
7878
043a4934
SDJ
78792017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7880
7881 * inferiors.c (switch_to_thread): New function.
7882
15652511
SDJ
78832017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7884
7885 * Makefile.in (SFILE): Add "common/job-control.c".
7886 (OBS): Add "job-control.o".
7887
21ea5acd
SDJ
78882017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7889
7890 * Makefile: Remove "@host_makefile_frag@".
7891
e13cb306
PA
78922017-05-05 Pedro Alves <palves@redhat.com>
7893
7894 * configure: Regenerate.
7895
c94fee56
SDJ
78962017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7897
7898 * configure: Regenerate.
7899
a0ff9e1a
SM
79002017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7901
7902 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7903 software_single_step change of return type to
7904 std::vector<CORE_ADDR>.
7905 * linux-low.c (install_software_single_step_breakpoints):
7906 Likewise.
7907 * linux-low.h (install_software_single_step_breakpoints):
7908 Likewise.
7909
be628ab8
SDJ
79102017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7911
7912 * remote-utils.c: Include "gdb_termios.h" instead of
7913 "terminal.h".
7914 * terminal.h: Delete file.
7915
7c5ded6a
SDJ
79162017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7917
7918 * server.c: Include <vector>.
7919 <program_argv, wrapper_argv>: Convert to std::vector.
7920 (start_inferior): Rewrite function to use C++.
7921 (handle_v_run): Likewise. Update code that calculates the argv
7922 based on the vRun packet; use C++.
7923 (captured_main): Likewise.
7924
436252de
SM
79252017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7926
7927 * server.c (handle_v_cont): Initialize thread_resume::thread
7928 with null_ptid.
7929
9bf2a700
PA
79302017-04-05 Pedro Alves <palves@redhat.com>
7931
7932 * configure: Regenerate.
7933
a121b7c1
PA
79342017-04-05 Pedro Alves <palves@redhat.com>
7935
7936 * gdbreplay.c (sync_error): Constify.
7937 * linux-x86-low.c (push_opcode): Constify.
7938
21c8a587
PA
79392017-04-05 Pedro Alves <palves@redhat.com>
7940
7941 * win32-low.c (get_child_debug_event)
7942 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7943 Report TARGET_WAITKIND_SPURIOUS instead.
7944
fb32b4f7
PA
79452017-04-05 Pedro Alves <palves@redhat.com>
7946
e79be6e5
SM
7947 * remote-utils.c (remote_prepare, remote_open): Constify.
7948 * remote-utils.h (remote_prepare, remote_open): Constify.
7949 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7950
65dd1e59
SM
79512017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7952
7953 * Makefile.in (clean): Clear .deps.
7954
8fa5b777
SM
79552017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7956
7957 * .gitignore: Remove generated files, replace with wildcard.
7958 * (clean): Replace removal of generated files with wildcard.
7959 (version.c): Replace with...
7960 (version-generated.c): ...this.
7961 (xml-builtin.c): Replace with...
7962 (xml-builtin-generated.c): ...this.
7963 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7964 (%.c: *regformats*): Replace with...
7965 (%-generated.c: *regformats*): ...this.
7966
a12e714b
MF
79672017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7968
7969 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7970 (xtensa_fill_gregset): Call collect_register_by_name for
7971 threadptr register.
7972 (xtensa_store_gregset): Call supply_register_by_name for
7973 threadptr register.
7974
1a09b50a
MF
79752017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7976
7977 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7978 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7979 (xtensa_store_gregset): Call supply_register for all registers in
7980 a0_regnum..a0_regnum + C0_NREGS range.
7981
1a01e7c6
SM
79822017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7983
7984 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7985 (ax-ipa.o: ax.c): Remove.
7986 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7987 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7988 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7989 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7990 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7991
36bc18a8
SM
79922017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7993
7994 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7995 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7996 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7997 (errors-ipa.o: ../common/errors.c): Remove.
7998 (format-ipa.o: ../common/format.c): Remove.
7999 (common-utils-ipa.o: ../common/common-utils.c): Remove.
8000
a8ebe3d5
SM
80012017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8002
8003 * Makefile.in (%-ipa.o: %.c): New rule.
8004 (tracepoint-ipa.o: tracepoint.c): Remove.
8005 (utils-ipa.o: utils.c): Remove.
8006 (remote-utils-ipa.o: remote-utils.c): Remove.
8007 (regcache-ipa.o: regcache.c): Remove.
8008 (i386-linux-ipa.o: i386-linux.c): Remove.
8009 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
8010 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
8011 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
8012 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
8013 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
8014 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
8015 (amd64-linux-ipa.o: amd64-linux.c): Remove.
8016 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
8017 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
8018 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
8019 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
8020 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
8021 (aarch64-ipa.o: aarch64.c): Remove.
8022 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8023 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8024 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8025 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8026 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8027 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8028 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8029 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8030 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8031 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8032 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8033 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8034 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8035 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8036 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8037 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8038 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8039 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8040 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8041 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8042 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8043 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8044 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8045 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8046 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8047 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8048 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8049 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8050 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8051 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8052 (tdesc-ipa.o: tdesc.c): Remove.
8053 (x32-linux-ipa.o: x32-linux.c): Remove.
8054 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8055 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8056
50cfacb7
SM
80572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8058
8059 * Makefile.in (%.o: ../arch/%.c): New rule.
8060 (arm.o: ../arch/arm.c): Remove.
8061 (arm-linux.o: ../arch/arm-linux.c): Remove.
8062 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8063 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8064
c5a22423
SM
80652017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8066
8067 * Makefile.in (%.o: ../nat/%.c): New rule.
8068 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8069 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8070 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8071 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8072 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8073 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8074 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8075 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8076 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8077 (linux-personality.o: ../nat/linux-personality.c): Remove.
8078 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8079 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8080 (x86-linux.o: ../nat/x86-linux.c): Remove.
8081 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8082 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8083
6bda016b
SM
80842017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8085
8086 * Makefile.in (%.o: ../common/%.c): New rule.
8087 (signals.o: ../common/signals.c): Remove.
8088 (print-utils.o: ../common/print-utils.c): Remove.
8089 (rsp-low.o: ../common/rsp-low.c): Remove.
8090 (common-utils.o: ../common/common-utils.c): Remove.
8091 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8092 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8093 (vec.o: ../common/vec.c): Remove.
8094 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8095 (xml-utils.o: ../common/xml-utils.c): Remove.
8096 (ptid.o: ../common/ptid.c): Remove.
8097 (buffer.o: ../common/buffer.c): Remove.
8098 (format.o: ../common/format.c): Remove.
8099 (filestuff.o: ../common/filestuff.c): Remove.
8100 (agent.o: ../common/agent.c): Remove.
8101 (errors.o: ../common/errors.c): Remove.
8102 (environ.o: ../common/environ.c): Remove.
8103 (common-debug.o: ../common/common-debug.c): Remove.
8104 (cleanups.o: ../common/cleanups.c): Remove.
8105 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8106 (fileio.o: ../common/fileio.c): Remove.
8107 (common-regcache.o: ../common/common-regcache.c): Remove.
8108 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8109 (new-op.o: ../common/new-op.c): Remove.
8110 (btrace-common.o: ../common/btrace-common.c): Remove.
8111
21122961
SM
81122017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8113
8114 * Makefile.in (%.o: ../target/%.c): New rule.
8115 (waitstatus.o: ../target/waitstatus.c): Remove.
8116
c362e621
SM
81172017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8118
8119 * Makefile.in
8120 (%.c: ../regformats/%.dat,
8121 (%.c: ../regformats/arm/%.dat,
8122 (%.c: ../regformats/i386/%.dat,
8123 (%.c: ../regformats/rs6000/%.dat): New rules.
8124 (aarch64.c): Remove.
8125 (reg-arm.c): Remove.
8126 (arm-with-iwmmxt.c): Remove.
8127 (arm-with-vfpv2.c): Remove.
8128 (arm-with-vfpv3.c): Remove.
8129 (arm-with-neon.c): Remove.
8130 (reg-bfin.c): Remove.
8131 (reg-cris.c): Remove.
8132 (reg-crisv32.c): Remove.
8133 (i386.c): Remove.
8134 (i386-linux.c): Remove.
8135 (i386-avx.c): Remove.
8136 (i386-avx-linux.c): Remove.
8137 (i386-avx-avx512.c): Remove.
8138 (i386-avx-avx512-linux.c): Remove.
8139 (i386-mpx.c): Remove.
8140 (i386-mpx-linux.c): Remove.
8141 (i386-avx-mpx-avx512-pku.c): Remove.
8142 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8143 (i386-avx-mpx.c): Remove.
8144 (i386-avx-mpx-linux.c): Remove.
8145 (i386-mmx.c): Remove.
8146 (i386-mmx-linux.c): Remove.
8147 (reg-ia64.c): Remove.
8148 (reg-m32r.c): Remove.
8149 (reg-m68k.c): Remove.
8150 (reg-cf.c): Remove.
8151 (mips-linux.c): Remove.
8152 (mips-dsp-linux.c): Remove.
8153 (mips64-linux.c): Remove.
8154 (mips64-dsp-linux.c): Remove.
8155 (nios2-linux.c): Remove.
8156 (powerpc-32.c): Remove.
8157 (powerpc-32l.c): Remove.
8158 (powerpc-altivec32l.c): Remove.
8159 (powerpc-cell32l.c): Remove.
8160 (powerpc-vsx32l.c): Remove.
8161 (powerpc-isa205-32l.c): Remove.
8162 (powerpc-isa205-altivec32l.c): Remove.
8163 (powerpc-isa205-vsx32l.c): Remove.
8164 (powerpc-e500l.c): Remove.
8165 (powerpc-64l.c): Remove.
8166 (powerpc-altivec64l.c): Remove.
8167 (powerpc-cell64l.c): Remove.
8168 (powerpc-vsx64l.c): Remove.
8169 (powerpc-isa205-64l.c): Remove.
8170 (powerpc-isa205-altivec64l.c): Remove.
8171 (powerpc-isa205-vsx64l.c): Remove.
8172 (s390-linux32.c): Remove.
8173 (s390-linux32v1.c): Remove.
8174 (s390-linux32v2.c): Remove.
8175 (s390-linux64.c): Remove.
8176 (s390-linux64v1.c): Remove.
8177 (s390-linux64v2.c): Remove.
8178 (s390-te-linux64.c): Remove.
8179 (s390-vx-linux64.c): Remove.
8180 (s390-tevx-linux64.c): Remove.
8181 (s390x-linux64.c): Remove.
8182 (s390x-linux64v1.c): Remove.
8183 (s390x-linux64v2.c): Remove.
8184 (s390x-te-linux64.c): Remove.
8185 (s390x-vx-linux64.c): Remove.
8186 (s390x-tevx-linux64.c): Remove.
8187 (tic6x-c64xp-linux.c): Remove.
8188 (tic6x-c64x-linux.c): Remove.
8189 (tic6x-c62x-linux.c): Remove.
8190 (reg-sh.c): Remove.
8191 (reg-sparc64.c): Remove.
8192 (reg-spu.c): Remove.
8193 (amd64.c): Remove.
8194 (amd64-linux.c): Remove.
8195 (amd64-avx.c): Remove.
8196 (amd64-avx-linux.c): Remove.
8197 (amd64-avx-avx512.c): Remove.
8198 (amd64-avx-avx512-linux.c): Remove.
8199 (amd64-mpx.c): Remove.
8200 (amd64-mpx-linux.c): Remove.
8201 (amd64-avx-mpx-avx512-pku.c): Remove.
8202 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8203 (amd64-avx-mpx.c): Remove.
8204 (amd64-avx-mpx-linux.c): Remove.
8205 (x32.c): Remove.
8206 (x32-linux.c): Remove.
8207 (x32-avx.c): Remove.
8208 (x32-avx-linux.c): Remove.
8209 (x32-avx-avx512.c): Remove.
8210 (x32-avx-avx512-linux.c): Remove.
8211 (reg-xtensa.c): Remove.
8212 (reg-tilegx.c): Remove.
8213 (reg-tilegx32.c): Remove.
8214
1672e0d9
SDJ
82152017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8216
8217 * Makefile.in (SFILES): Add "common/environ.c".
8218 (OBJS): Add "common/environ.h".
8219
239b6d10
WT
82202017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8221
8222 * configure.ac: Check if the fs_base and gs_base members of
8223 `struct user_regs_struct' exist.
8224 * config.in: Regenerated.
8225 * configure: Likewise.
8226
694b382c
AT
82272017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8228
8229 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8230 target_read_memory.
8231 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8232 (get_next_pcs_syscall_next_pc): Likewise.
8233
7dc53023
LM
82342016-12-23 Luis Machado <lgustavo@codesourcery.com>
8235
8236 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8237 * nto-x86-low.c: Likewise.
8238
ad02e4fe
SM
82392016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8240
8241 * Makefile.in: Include disable-implicit-rules.mk.
8242
dcb07cfa
PA
82432016-11-23 Pedro Alves <palves@redhat.com>
8244
8245 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8246 (debug_vprintf): Use std::chrono::steady_clock instead of
8247 gettimeofday. Use '.' instead of ':'.
8248 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8249 (get_timestamp): Use std::chrono::steady_clock instead of
8250 gettimeofday.
8251
8629c02c
SM
82522016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8253
8254 * Makefile.in: Fix whitespace formatting.
8255
b593ecca
SM
82562016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8257
8258 * Makefile.in (SFILES, OBS): Flatten list and order
8259 alphabetically.
8260
9986ba08
PA
82612016-11-23 Pedro Alves <palves@redhat.com>
8262
8263 * event-loop.c (handle_file_event): Use warning.
8264 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8265 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8266 Use warning.
8267
4eefa7bc
PA
82682016-11-23 Pedro Alves <palves@redhat.com>
8269
8270 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8271 output.
8272 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8273 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8274 debug_printf and debug_flush for debug output.
8275 * server.c (handle_general_set): Likewise.
8276 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8277 output.
8278
5443506e
SM
82792016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8280
8281 * Makefile.in (.c.o): Replace rule with ...
8282 (%.o: %.c): ... this one.
8283
3b165252
SM
82842016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8285
8286 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8287 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8288 make.
8289 * configure.ac: Remove checks for the make program.
8290 * configure: Re-generate.
8291
0bcda685
PA
82922016-10-28 Pedro Alves <palves@redhat.com>
8293
8294 * Makefile.in (CXX_DIALECT): Get from configure.
8295 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8296 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8297 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8298 * config.in: Regenerate.
8299 * configure: Regenerate.
8300
c3805894
YQ
83012016-10-27 Yao Qi <yao.qi@linaro.org>
8302
8303 * linux-low.c (linux_supports_range_stepping): Return true if
8304 can_software_single_step return true.
8305
89342618
YQ
83062016-10-27 Yao Qi <yao.qi@linaro.org>
8307
8308 * inferiors.c (find_inferior_in_random): New function.
8309 * inferiors.h (find_inferior_in_random): Declare.
8310 * linux-low.c (linux_wait_for_event_filtered): Call
8311 find_inferior_in_random instead of find_inferior.
8312
e3652c84
YQ
83132016-10-27 Yao Qi <yao.qi@linaro.org>
8314
8315 * linux-low.c (linux_wait_1): If single-step breakpoints are
8316 inserted, remove them.
8317
5a04c4cf
PA
83182016-10-26 Pedro Alves <palves@redhat.com>
8319
8320 * linux-low.c (handle_extended_wait): Link parent/child fork
8321 threads.
8322 (linux_wait_1): Unlink them.
8323 (linux_set_resume_request): Ignore resume requests for
8324 already-resumed and unhandled fork child threads.
8325 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8326 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8327 New functions.
8328 (handle_v_requests) <vCont>: Don't call require_running.
8329 * server.h (in_queued_stop_replies): New declaration.
8330
cb93dc7f
YQ
83312016-10-24 Yao Qi <yao.qi@linaro.org>
8332
8333 PR server/20733
8334 * linux-aarch64-low.c (append_insns): Cast the return value to
8335 'uint32_t *'.
8336
a1078bea
YQ
83372016-10-10 Yao Qi <yao.qi@linaro.org>
8338
8339 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8340
1fb77080
SDJ
83412016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8342
8343 * target.c (target_supports_multi_process): New function, moved
8344 from...
8345 * target.h (target_supports_multi_process): ... here. Remove
8346 macro.
8347
39b5a3b9
TT
83482016-10-05 Tom Tromey <tom@tromey.com>
8349
8350 PR remote/20655:
8351 * tracepoint.c (handle_tracepoint_bkpts): Check
8352 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8353
c1d0b70a
YQ
83542016-10-05 Yao Qi <yao.qi@linaro.org>
8355
8356 * configure.srv: Update the path of arm-*.xml files.
8357
0a69eedb
YQ
83582016-10-05 Terry Guo <terry.guo@arm.com>
8359 Yao Qi <yao.qi@linaro.org>
8360
8361 * Makefile.in: Adjust the path of rules.
8362 * configure.srv: Update the path of xml files.
8363 * regformats/arm-with-iwmmxt.dat: Regenerated.
8364 * regformats/arm-with-neon.dat: Likewise.
8365 * regformats/arm-with-vfpv2.dat: Likewise.
8366 * regformats/arm-with-vfpv3.dat Likewise.
8367
17e16485
YQ
83682016-09-30 Yao Qi <yao.qi@linaro.org>
8369
8370 PR gdbserver/20627
8371 * target.c (target_stop_and_wait): Don't call
8372 target_continue_no_signal, use resume_stop instead.
8373
edeeb602
YQ
83742016-09-26 Yao Qi <yao.qi@linaro.org>
8375
8376 * linux-low.c (linux_wait_1): Call debug_exit.
8377
503b1c39
PA
83782016-09-23 Pedro Alves <palves@redhat.com>
8379
8380 * Makefile.in (SFILES): Add common/new-op.c.
8381 (OBS): Add common/new-op.o.
8382 (new-op.o): New rule.
8383
74172ecf
SM
83842016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8385
8386 * .gitinore: Ignore more files.
8387
fc6cda2e
YQ
83882016-09-21 Yao Qi <yao.qi@linaro.org>
8389
8390 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8391 23.
8392
bc1e6c81
SDJ
83932016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8394
8395 * server.c (start_inferior): Call target_mourn_inferior instead of
8396 mourn_inferior; pass ptid_t argument to it.
8397 (resume): Likewise.
8398 (handle_target_event): Likewise.
8399 * target.c (target_mourn_inferior): New function.
8400 * target.h (mourn_inferior): Delete macro.
8401
0e00e962
AA
84022016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8403
8404 * linux-low.c (lwp_is_stepping): New function.
8405
1d8cb77d
CL
84062016-09-06 Carl Love <cel@us.ibm.com>
8407
8408 * server.c (start_inferior): Fixed comment, requested comment change
8409 didn't get updated correctly. Removed reference to ptrace () call as
8410 it is only true on Linux systems.
8411
7313bced
CL
84122016-09-06 Carl Love <cel@us.ibm.com>
8413
8414 * server.c (start_inferior): Do not call
8415 function target_post_create_inferior () if the
8416 inferior process has already exited.
8417
cf6de44d
PA
84182016-09-05 Pedro Alves <palves@redhat.com>
8419
8420 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8421 (COMPILE.pre, CC_LD): Use CXX directly.
8422 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8423 * acinclude.m4: Don't include build-with-cxx.m4.
8424 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8425 * configure: Regenerate.
8426
c1da6748
AT
84272016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8428
8429 PR gdb/19495
8430 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8431 call writing data to own_buf.
8432
f2b9e3df
SDJ
84332016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8434
8435 * target.c (mywait): Call target_wait instead of
8436 the_target->wait.
8437 (target_wait): New function.
8438
049a8570
SDJ
84392016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8440
8441 * server.c (start_inferior): New variable 'ptid'. Replace calls
8442 to the_target->resume by target_continue{,_no_signal}, depending
8443 on the case.
8444 * target.c (target_stop_and_wait): Call target_continue_no_signal
8445 instead of the_target->resume.
8446 (target_continue): New function.
8447
3aa5cfa0
AT
84482016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8449
8450 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8451
754653a7
AZ
84522016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8453
8454 PR server/20491
8455 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8456 ps_prochandle.
8457 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8458 * linux-arm-low.c (ps_get_thread_area): Likewise.
8459 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8460 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8461 * linux-mips-low.c (ps_get_thread_area): Likewise.
8462 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8463 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8464 * linux-x86-low.c (ps_get_thread_area): Likewise.
8465 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8466
ed036b40
PA
84672016-08-19 Pedro Alves <palves@redhat.com>
8468
8469 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8470
c8ef42ee
PA
84712016-08-19 Pedro Alves <palves@redhat.com>
8472
8473 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8474 comment. Use memcpy instead of casting through unsigned long.
8475
9c235a72
PA
84762016-08-19 Pedro Alves <palves@redhat.com>
8477
8478 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8479 allocating around 0x80000000.
8480
201506da
PA
84812016-08-19 Pedro Alves <palves@redhat.com>
8482
8483 PR gdb/20415
8484 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8485 (x32-avx512-linux-ipa.o): New rules.
8486 * configure.ac (x86_64-*-linux*): New x32 check.
8487 * configure.srv (ipa_x32_linux_regobj): New.
8488 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8489 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8490 descriptions.
8491 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8492 descriptions.
8493 * configure: Regenerate.
8494
f348d89a
PA
84952016-08-09 Pedro Alves <palves@redhat.com>
8496
8497 PR gdb/18653
8498 * Makefile.in (OBS): Add signals-state-save-restore.o.
8499 (signals-state-save-restore.o): New rule.
8500 * config.in: Regenerate.
8501 * configure: Regenerate.
8502 * linux-low.c: Include "signals-state-save-restore.h".
8503 (linux_create_inferior): Call
8504 restore_original_signals_state.
8505 * server.c: Include "dispositions-save-restore.h".
8506 (captured_main): Call save_original_signals_state.
8507
1baf5149
PA
85082016-08-05 Pedro Alves <palves@redhat.com>
8509
8510 * configure: Regenerate.
8511
fcd4a73d
YQ
85122016-08-04 Yao Qi <yao.qi@linaro.org>
8513
8514 * linux-low.c (regsets_fetch_inferior_registers): Check
8515 errno is ESRCH or not.
8516
979659d0
YQ
85172016-08-02 Yao Qi <yao.qi@linaro.org>
8518
8519 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8520 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8521 (thread_db_load_search): Update.
8522 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8523 td_ta_set_event and td_ta_event_getmsg.
8524
6598661d
PA
85252016-07-26 Pedro Alves <palves@redhat.com>
8526
8527 PR server/20414
8528 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8529 of unsigned long for 64-bit registers and use uint32_t instead of
8530 unsigned int for 32-bit registers.
8531
9cf12d57
PA
85322016-07-26 Pedro Alves <palves@redhat.com>
8533
8534 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8535 to 'ptrace'.
8536
305450ed
TT
85372016-07-21 Tom Tromey <tom@tromey.com>
8538
8539 * configure: Rebuild.
8540
2583da7c
YQ
85412016-07-21 Yao Qi <yao.qi@linaro.org>
8542
8543 * mem-break.c (find_gdb_breakpoint): Cast bp to
8544 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8545
21536b36
YQ
85462016-07-21 Yao Qi <yao.qi@linaro.org>
8547
8548 * server.c (handle_v_requests): Support s and S actions
8549 if target_supports_software_single_step return true.
8550
8901d193
YQ
85512016-07-21 Yao Qi <yao.qi@linaro.org>
8552
8553 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8554 is resume_step, call maybe_hw_step.
8555 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8556 and unstop them.
8557 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8558 breakpoints or not.
8559 (proceed_one_lwp): If resume request is resume_step, install
8560 reinsert breakpoints and call maybe_hw_step.
8561
0e9a339e
YQ
85622016-07-21 Yao Qi <yao.qi@linaro.org>
8563
8564 * linux-low.c (proceed_one_lwp): Declare.
8565 (linux_resume_one_thread): Remove local variable 'step'.
8566 Lift code enqueue signal. Call proceed_one_lwp instead of
8567 linux_resume_one_lwp.
8568
4281b351
YQ
85692016-07-21 Yao Qi <yao.qi@linaro.org>
8570
8571 * linux-low.c (linux_resume_one_thread): Call
8572 enqueue_pending_signal.
8573
984a2c04
YQ
85742016-07-21 Yao Qi <yao.qi@linaro.org>
8575
8576 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8577 * inferiors.c (do_restore_current_thread_cleanup): New function.
8578 (make_cleanup_restore_current_thread): Likewise.
8579 * linux-low.c (install_software_single_step_breakpoints): Call
8580 make_cleanup_restore_current_thread. Switch current_thread to
8581 thread.
8582
bec903c9
YQ
85832016-07-21 Yao Qi <yao.qi@linaro.org>
8584
8585 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8586 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8587 (clone_one_breakpoint): Likewise.
8588 (delete_reinsert_breakpoints): Change parameter to thread.
8589 Callers updated.
8590 (has_reinsert_breakpoints): Likewise.
8591 (uninsert_reinsert_breakpoints): Likewise.
8592 (reinsert_reinsert_breakpoints): Likewise.
8593 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8594 (delete_reinsert_breakpoints): Likewise.
8595 (reinsert_reinsert_breakpoints): Likewise.
8596 (uninsert_reinsert_breakpoints): Likewise.
8597 (has_reinsert_breakpoints): Likewise.
8598
63c40ec7
YQ
85992016-07-21 Yao Qi <yao.qi@linaro.org>
8600
8601 * inferiors.c (get_thread_process): Make parameter const.
8602 * inferiors.h (get_thread_process): Update declaration.
8603 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8604 Add new parameters child_thread and parent_thread. Callers
8605 updated.
8606 * mem-break.h (clone_all_breakpoints): Update declaration.
8607
9aa76cd0
YQ
86082016-07-21 Yao Qi <yao.qi@linaro.org>
8609
8610 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8611 <command_list, handler>: Remove.
8612 (struct gdb_breakpoint): New.
8613 (struct other_breakpoint): New.
8614 (struct reinsert_breakpoint): New.
8615 (is_gdb_breakpoint): New function.
8616 (any_persistent_commands): Update command_list if
8617 is_gdb_breakpoint returns true.
8618 (set_breakpoint): Create breakpoints according to their types.
8619 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8620 (set_gdb_breakpoint_1): Likewise.
8621 (set_gdb_breakpoint): Likewise.
8622 (clear_breakpoint_conditions): Change parameter type to
8623 'struct gdb_breakpoint *'.
8624 (clear_breakpoint_commands): Likewise.
8625 (clear_breakpoint_conditions_and_commands): Likewise.
8626 (add_condition_to_breakpoint): Likewise.
8627 (add_breakpoint_condition): Likewise.
8628 (add_commands_to_breakpoint): Likewise.
8629 (check_breakpoints): Check other_breakpoint.
8630 (clone_one_breakpoint): Clone breakpopint according to its type.
8631 * mem-break.h (struct gdb_breakpoint): Declare.
8632 (set_gdb_breakpoint): Update declaration.
8633 (clear_breakpoint_conditions_and_commands): Likewise.
8634 (add_breakpoint_condition): Likewise.
8635 (add_breakpoint_commands): Likewise.
8636 * server.c (process_point_options): Change parameter type to
8637 'struct gdb_breakpoint *'.
8638
811f8301
YQ
86392016-07-21 Yao Qi <yao.qi@linaro.org>
8640
8641 * mem-break.c (set_breakpoint_at): Rename it to ...
8642 (set_breakpoint_type_at): ... it.
8643 (set_breakpoint_at): Call set_breakpoint_type_at.
8644 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8645 * mem-break.h (set_breakpoint_at): Update comments.
8646
b1c51e36
CLT
86472016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8648
8649 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8650 to buf parameter.
8651 (nios2_store_gregset): Likewise.
8652
ced2dffb
PA
86532016-07-01 Pedro Alves <palves@redhat.com>
8654 Antoine Tremblay <antoine.tremblay@ericsson.com>
8655
8656 * linux-low.c: Change interface to take the target lwp_info
8657 pointer directly and return void. Handle detaching from a zombie
8658 thread.
8659 (linux_detach_lwp_callback): New function.
8660 (linux_detach): Detach from the leader thread after detaching from
8661 the clone threads.
8662
2ac09a5b
YQ
86632016-06-28 Yao Qi <yao.qi@linaro.org>
8664
8665 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8666 for variable new_offset.
8667 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8668 (aarch64_ftrace_insn_reloc_cb): Likewise.
8669 (aarch64_ftrace_insn_reloc_tb): Likewise.
8670 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8671 PRIx64 instead of PRIx32.
8672
79e7fd4f
YQ
86732016-06-28 Yao Qi <yao.qi@linaro.org>
8674
8675 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8676 (the_low_target): Install arm_get_syscall_trapinfo.
8677
061fc021
YQ
86782016-06-28 Yao Qi <yao.qi@linaro.org>
8679
8680 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8681 function.
8682 (the_low_target): Install aarch64_get_syscall_trapinfo.
8683
4cc32bec
YQ
86842016-06-28 Yao Qi <yao.qi@linaro.org>
8685
8686 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8687 Callers updated.
8688 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8689 Remove parameter sysno.
8690 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8691 sysret.
8692
782c1122
AA
86932016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8694
8695 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8696 (s390_emit_ne_goto): Likewise.
8697 (s390_emit_lt_goto): Likewise.
8698 (s390_emit_le_goto): Likewise.
8699 (s390_emit_gt_goto): Likewise.
8700 (s390_emit_ge_goto): Likewise.
8701 (s390x_emit_eq_goto): Likewise.
8702 (s390x_emit_ne_goto): Likewise.
8703 (s390x_emit_lt_goto): Likewise.
8704 (s390x_emit_le_goto): Likewise.
8705 (s390x_emit_gt_goto): Likewise.
8706 (s390x_emit_ge_goto): Likewise.
8707 (s390_emit_ops_impl): Mark variable static.
8708 (s390x_emit_ops): Likewise.
8709
2e7b624b
YQ
87102016-06-17 Yao Qi <yao.qi@linaro.org>
8711
8712 * linux-low.c (handle_extended_wait): Call
8713 uninsert_reinsert_breakpoints for the parent process. Remove
8714 reinsert breakpoints from the child process. Reinsert them to
8715 the parent process when vfork is done.
8716 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8717 (reinsert_reinsert_breakpoints): New function.
8718 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8719 (reinsert_reinsert_breakpoints): Declare.
8720
8a81c5d7
YQ
87212016-06-17 Yao Qi <yao.qi@linaro.org>
8722
8723 * linux-low.c (handle_extended_wait): If the parent is doing
8724 step-over, remove the reinsert breakpoints from the forked child.
8725
f50bf8e5
YQ
87262016-06-17 Yao Qi <yao.qi@linaro.org>
8727
8728 * linux-low.c (unsuspend_all_lwps): Declare.
8729 (linux_low_filter_event): If thread exited, call finish_step_over.
8730 If step-over is finished, unsuspend other threads.
8731
8376a3cb
YQ
87322016-06-17 Yao Qi <yao.qi@linaro.org>
8733
8734 * linux-low.c (linux_resume_one_lwp_throw): Assert
8735 has_reinsert_breakpoints returns false.
8736 * mem-break.c (delete_disabled_breakpoints): Assert
8737 bp type isn't reinsert_breakpoint.
8738
f79b145d
YQ
87392016-06-17 Yao Qi <yao.qi@linaro.org>
8740
8741 * linux-low.c (maybe_hw_step): New function.
8742 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8743 (finish_step_over): Switch current_thread to lwp temporarily,
8744 and assert has_reinsert_breakpoints returns true.
8745 (proceed_one_lwp): Call maybe_hw_step.
8746 * mem-break.c (has_reinsert_breakpoints): New function.
8747 * mem-break.h (has_reinsert_breakpoints): Declare.
8748
0ae534d2
JT
87492016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8750
8751 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8752
fcdad592
YQ
87532016-05-17 Yao Qi <yao.qi@linaro.org>
8754
8755 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8756 instead of find_inferior.
8757
9e784964
YQ
87582016-05-05 Yao Qi <yao.qi@linaro.org>
8759
8760 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8761 Initialize res to zero.
8762
cf2ebb6e
YQ
87632016-05-05 Yao Qi <yao.qi@linaro.org>
8764
8765 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8766 to uint32_t.
8767
c1aebf87
UW
87682016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8769
8770 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8771 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8772 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8773
35fd2deb 87742016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8775 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8776
8777 * tracepoint.c (write_inferior_int8): New function.
8778 (cmd_qtenable_disable): Write enable flag using
8779 write_inferior_int8.
8780
484b3c32
YQ
87812016-04-25 Yao Qi <yao.qi@linaro.org>
8782
8783 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8784 (need_step_over_p): Return zero if the LWP has pending signals
8785 can be delivered on software single step target.
8786
85ba7d86
YQ
87872016-04-25 Yao Qi <yao.qi@linaro.org>
8788
8789 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8790 return instead of error.
8791
3539aa13
YQ
87922016-04-22 Yao Qi <yao.qi@linaro.org>
8793
8794 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8795 to 23.
8796
5b061e98
YQ
87972016-04-22 Yao Qi <yao.qi@linaro.org>
8798
8799 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8800 signal when stepping over breakpoint with software single
8801 step.
8802
3451269c
PA
88032016-04-21 Pedro Alves <palves@redhat.com>
8804
8805 * linux-s390-low.c (s390_collect_ptrace_register)
8806 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8807 add casts.
8808 (s390_check_regset): Use void * instead of gdb_byte *.
8809
a2358508
PA
88102016-04-20 Pedro Alves <palves@redhat.com>
8811
8812 * configure: Renegerate.
8813
6885166d
YQ
88142016-04-20 Yao Qi <yao.qi@linaro.org>
8815
8816 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8817 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8818 number 16.
8819 (arm_store_gregset): Likewise.
8820
2b863f51
WT
88212016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8822
8823 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8824 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8825 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8826 (amd64-avx-mpx-linux.c): New rules.
8827 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8828 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8829 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8830 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8831 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8832 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8833 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8834 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8835 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8836 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8837 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8838 * linux-x86-low.c (x86_linux_read_description): Add case for
8839 X86_XSTATE_AVX_MPX_MASK.
8840 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8841 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8842 init_registers_i386_avx_mpx_linux.
8843 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8844 (initialize_low_tracepoint): Call
8845 init_registers_i386_avx_mpx_linux.
8846 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8847 (initialize_low_tracepoint): Call
8848 init_registers_amd64_avx_mpx_linux.
8849 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8850 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8851 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8852 declarations.
8853
9b30624b
PA
88542016-04-18 Pedro Alves <palves@redhat.com>
8855
8856 * configure: Regenerate.
8857
45e3745e
AT
88582016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8859
8860 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8861 (aarch64_emit_sub): Likewise.
8862
2afc13ff
PA
88632016-04-12 Pedro Alves <palves@redhat.com>
8864
8865 * utils.c (prepare_to_throw_exception): Delete.
8866
6e774b13
SM
88672016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8868
8869 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8870
4dca19f8
MK
88712016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8872
8873 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8874
d0a9981f
MK
88752016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8876
8877 * linux-aarch64-ipa.c: Add <elf.h> include.
8878 * linux-ppc-ipa.c: Add <elf.h> include.
8879 * linux-s390-ipa.c: Add <elf.h> include.
8880
252db07e
MK
88812016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8882
8883 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8884 (get_raw_reg_ptr): Likewise.
8885 (get_trace_state_variable_value_ptr): Likewise.
8886 (set_trace_state_variable_value_ptr): Likewise.
8887 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8888 char *.
8889
14e2b6d9
MK
88902016-03-31 Wei-cheng Wang <cole945@gmail.com>
8891 Marcin Kościelnicki <koriakin@0x04.net>
8892
8893 PR/17221
8894 * linux-ppc-low.c (emit_insns): New function.
8895 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8896 (ppc_emit_prologue): New function.
8897 (ppc_emit_epilogue): New function.
8898 (ppc_emit_add): New function.
8899 (ppc_emit_sub): New function.
8900 (ppc_emit_mul): New function.
8901 (ppc_emit_lsh): New function.
8902 (ppc_emit_rsh_signed): New function.
8903 (ppc_emit_rsh_unsigned): New function.
8904 (ppc_emit_ext): New function.
8905 (ppc_emit_zero_ext): New function.
8906 (ppc_emit_log_not): New function.
8907 (ppc_emit_bit_and): New function.
8908 (ppc_emit_bit_or): New function.
8909 (ppc_emit_bit_xor): New function.
8910 (ppc_emit_bit_not): New function.
8911 (ppc_emit_equal): New function.
8912 (ppc_emit_less_signed): New function.
8913 (ppc_emit_less_unsigned): New function.
8914 (ppc_emit_ref): New function.
8915 (ppc_emit_const): New function.
8916 (ppc_emit_reg): New function.
8917 (ppc_emit_pop): New function.
8918 (ppc_emit_stack_flush): New function.
8919 (ppc_emit_swap): New function.
8920 (ppc_emit_stack_adjust): New function.
8921 (ppc_emit_call): New function.
8922 (ppc_emit_int_call_1): New function.
8923 (ppc_emit_void_call_2): New function.
8924 (ppc_emit_if_goto): New function.
8925 (ppc_emit_goto): New function.
8926 (ppc_emit_eq_goto): New function.
8927 (ppc_emit_ne_goto): New function.
8928 (ppc_emit_lt_goto): New function.
8929 (ppc_emit_le_goto): New function.
8930 (ppc_emit_gt_goto): New function.
8931 (ppc_emit_ge_goto): New function.
8932 (ppc_write_goto_address): New function.
8933 (ppc_emit_ops_impl): New static variable.
8934 (ppc64v1_emit_prologue): New function.
8935 (ppc64v2_emit_prologue): New function.
8936 (ppc64_emit_epilogue): New function.
8937 (ppc64_emit_add): New function.
8938 (ppc64_emit_sub): New function.
8939 (ppc64_emit_mul): New function.
8940 (ppc64_emit_lsh): New function.
8941 (ppc64_emit_rsh_signed): New function.
8942 (ppc64_emit_rsh_unsigned): New function.
8943 (ppc64_emit_ext): New function.
8944 (ppc64_emit_zero_ext): New function.
8945 (ppc64_emit_log_not): New function.
8946 (ppc64_emit_bit_and): New function.
8947 (ppc64_emit_bit_or): New function.
8948 (ppc64_emit_bit_xor): New function.
8949 (ppc64_emit_bit_not): New function.
8950 (ppc64_emit_equal): New function.
8951 (ppc64_emit_less_signed): New function.
8952 (ppc64_emit_less_unsigned): New function.
8953 (ppc64_emit_ref): New function.
8954 (ppc64_emit_const): New function.
8955 (ppc64v1_emit_reg): New function.
8956 (ppc64v2_emit_reg): New function.
8957 (ppc64_emit_pop): New function.
8958 (ppc64_emit_stack_flush): New function.
8959 (ppc64_emit_swap): New function.
8960 (ppc64v1_emit_call): New function.
8961 (ppc64v2_emit_call): New function.
8962 (ppc64v1_emit_int_call_1): New function.
8963 (ppc64v2_emit_int_call_1): New function.
8964 (ppc64v1_emit_void_call_2): New function.
8965 (ppc64v2_emit_void_call_2): New function.
8966 (ppc64_emit_if_goto): New function.
8967 (ppc64_emit_eq_goto): New function.
8968 (ppc64_emit_ne_goto): New function.
8969 (ppc64_emit_lt_goto): New function.
8970 (ppc64_emit_le_goto): New function.
8971 (ppc64_emit_gt_goto): New function.
8972 (ppc64_emit_ge_goto): New function.
8973 (ppc64v1_emit_ops_impl): New static variable.
8974 (ppc64v2_emit_ops_impl): New static variable.
8975 (ppc_emit_ops): New function.
8976 (linux_low_target): Wire in ppc_emit_ops.
8977
a2174ba4
MK
89782016-03-31 Wei-cheng Wang <cole945@gmail.com>
8979 Marcin Kościelnicki <koriakin@0x04.net>
8980
8981 PR/17221
8982 * Makefile.in: Add powerpc-*-ipa.o
8983 * configure.srv: Add ipa_obj for powerpc*-linux.
8984 * linux-ppc-ipa.c: New file.
8985 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8986 includes.
8987 (PPC_FIELD): New macro.
8988 (PPC_SEXT): New macro.
8989 (PPC_OP6): New macro.
8990 (PPC_BO): New macro.
8991 (PPC_LI): New macro.
8992 (PPC_BD): New macro.
8993 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8994 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8995 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8996 (ppc_get_thread_area): New function.
8997 (is_elfv2_inferior): New function.
8998 (gen_ds_form): New function.
8999 (GEN_STD): New macro.
9000 (GEN_STDU): New macro.
9001 (GEN_LD): New macro.
9002 (GEN_LDU): New macro.
9003 (gen_d_form): New function.
9004 (GEN_ADDI): New macro.
9005 (GEN_ADDIS): New macro.
9006 (GEN_LI): New macro.
9007 (GEN_LIS): New macro.
9008 (GEN_ORI): New macro.
9009 (GEN_ORIS): New macro.
9010 (GEN_LWZ): New macro.
9011 (GEN_STW): New macro.
9012 (GEN_STWU): New macro.
9013 (gen_xfx_form): New function.
9014 (GEN_MFSPR): New macro.
9015 (GEN_MTSPR): New macro.
9016 (GEN_MFCR): New macro.
9017 (GEN_MTCR): New macro.
9018 (GEN_SYNC): New macro.
9019 (GEN_LWSYNC): New macro.
9020 (gen_x_form): New function.
9021 (GEN_OR): New macro.
9022 (GEN_MR): New macro.
9023 (GEN_LWARX): New macro.
9024 (GEN_STWCX): New macro.
9025 (GEN_CMPW): New macro.
9026 (gen_md_form): New function.
9027 (GEN_RLDICL): New macro.
9028 (GEN_RLDICR): New macro.
9029 (gen_i_form): New function.
9030 (GEN_B): New macro.
9031 (GEN_BL): New macro.
9032 (gen_b_form): New function.
9033 (GEN_BNE): New macro.
9034 (GEN_LOAD): New macro.
9035 (GEN_STORE): New macro.
9036 (gen_limm): New function.
9037 (gen_atomic_xchg): New function.
9038 (gen_call): New function.
9039 (ppc_relocate_instruction): New function.
9040 (ppc_install_fast_tracepoint_jump_pad): New function.
9041 (ppc_get_min_fast_tracepoint_insn_len): New function.
9042 (ppc_get_ipa_tdesc_idx): New function.
9043 (the_low_target): Wire in the new functions.
9044 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9045 tdescs.
9046 * linux-ppc-tdesc.h: New file.
9047
a13c4696
MK
90482016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9049
9050 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9051 (alloc_jump_pad_buffer): New function.
9052 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9053 (alloc_jump_pad_buffer): New function.
9054 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9055 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9056 (alloc_jump_pad_buffer): New function.
9057 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9058 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9059 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9060 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9061
1cda1512
MK
90622016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9063
9064 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9065 * linux-amd64-ipa.c: Likewise.
9066 * linux-i386-ipa.c: Likewise.
9067 * linux-s390-ipa.c: Likewise.
9068 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9069 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9070 set_trace_state_variable_value_ptr.
9071 (struct ipa_sym_addresses): Likewise.
9072 (symbol_list): Likewise.
9073 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9074 accessing gdb_collect directly.
9075 (gdb_collect_ptr_type): New typedef.
9076 (get_raw_reg_ptr_type): New typedef.
9077 (get_trace_state_variable_value_ptr_type): New typedef.
9078 (set_trace_state_variable_value_ptr_type): New typedef.
9079 (gdb_collect_ptr): New global.
9080 (get_raw_reg_ptr): New global.
9081 (get_trace_state_variable_value_ptr): New global.
9082 (set_trace_state_variable_value_ptr): New global.
9083 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9084 accessing get_raw_reg directly.
9085 (get_get_tsv_func_addr): Likewise for
9086 get_trace_state_variable_value_ptr.
9087 (get_set_tsv_func_addr): Likewise for
9088 set_trace_state_variable_value_ptr.
9089 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9090
72fb5488
SM
90912016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9092
9093 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9094
28170b88
MK
90952016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9096
9097 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9098 packets.
9099 (relocate_instruction): Remove own_buf.
9100 * server.c (own_buf): Make global.
9101 (handle_v_requests): Make global.
9102 * server.h (own_buf): New declaration.
9103 (handle_v_requests): New prototype.
9104
f39e8743
MK
91052016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9106
9107 PR 18377
9108 * linux-s390-low.c (add_insns): New function.
9109 (s390_emit_prologue): New function.
9110 (s390_emit_epilogue): New function.
9111 (s390_emit_add): New function.
9112 (s390_emit_sub): New function.
9113 (s390_emit_mul): New function.
9114 (s390_emit_lsh): New function.
9115 (s390_emit_rsh_signed): New function.
9116 (s390_emit_rsh_unsigned): New function.
9117 (s390_emit_ext): New function.
9118 (s390_emit_log_not): New function.
9119 (s390_emit_bit_and): New function.
9120 (s390_emit_bit_or): New function.
9121 (s390_emit_bit_xor): New function.
9122 (s390_emit_bit_not): New function.
9123 (s390_emit_equal): New function.
9124 (s390_emit_less_signed): New function.
9125 (s390_emit_less_unsigned): New function.
9126 (s390_emit_ref): New function.
9127 (s390_emit_if_goto): New function.
9128 (s390_emit_goto): New function.
9129 (s390_write_goto_address): New function.
9130 (s390_emit_litpool): New function.
9131 (s390_emit_const): New function.
9132 (s390_emit_call): New function.
9133 (s390_emit_reg): New function.
9134 (s390_emit_pop): New function.
9135 (s390_emit_stack_flush): New function.
9136 (s390_emit_zero_ext): New function.
9137 (s390_emit_swap): New function.
9138 (s390_emit_stack_adjust): New function.
9139 (s390_emit_set_r2): New function.
9140 (s390_emit_int_call_1): New function.
9141 (s390_emit_void_call_2): New function.
9142 (s390_emit_eq_goto): New function.
9143 (s390_emit_ne_goto): New function.
9144 (s390_emit_lt_goto): New function.
9145 (s390_emit_le_goto): New function.
9146 (s390_emit_gt_goto): New function.
9147 (s390_emit_ge_goto): New function.
9148 (s390x_emit_prologue): New function.
9149 (s390x_emit_epilogue): New function.
9150 (s390x_emit_add): New function.
9151 (s390x_emit_sub): New function.
9152 (s390x_emit_mul): New function.
9153 (s390x_emit_lsh): New function.
9154 (s390x_emit_rsh_signed): New function.
9155 (s390x_emit_rsh_unsigned): New function.
9156 (s390x_emit_ext): New function.
9157 (s390x_emit_log_not): New function.
9158 (s390x_emit_bit_and): New function.
9159 (s390x_emit_bit_or): New function.
9160 (s390x_emit_bit_xor): New function.
9161 (s390x_emit_bit_not): New function.
9162 (s390x_emit_equal): New function.
9163 (s390x_emit_less_signed): New function.
9164 (s390x_emit_less_unsigned): New function.
9165 (s390x_emit_ref): New function.
9166 (s390x_emit_if_goto): New function.
9167 (s390x_emit_const): New function.
9168 (s390x_emit_call): New function.
9169 (s390x_emit_reg): New function.
9170 (s390x_emit_pop): New function.
9171 (s390x_emit_stack_flush): New function.
9172 (s390x_emit_zero_ext): New function.
9173 (s390x_emit_swap): New function.
9174 (s390x_emit_stack_adjust): New function.
9175 (s390x_emit_int_call_1): New function.
9176 (s390x_emit_void_call_2): New function.
9177 (s390x_emit_eq_goto): New function.
9178 (s390x_emit_ne_goto): New function.
9179 (s390x_emit_lt_goto): New function.
9180 (s390x_emit_le_goto): New function.
9181 (s390x_emit_gt_goto): New function.
9182 (s390x_emit_ge_goto): New function.
9183 (s390_emit_ops): New function.
9184 (struct linux_target_ops): Fill in emit_ops hook.
9185
abd9baf9
MK
91862016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9187
9188 PR 18377
9189 * Makefile.in: Add s390 IPA files.
9190 * configure.srv: Build IPA for s390.
9191 * linux-s390-ipa.c: New file.
9192 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9193 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9194 (tdesc_s390_linux32): Likewise.
9195 (init_registers_s390_linux32v1): Likewise.
9196 (tdesc_s390_linux32v1): Likewise.
9197 (init_registers_s390_linux32v2): Likewise.
9198 (tdesc_s390_linux32v2): Likewise.
9199 (init_registers_s390_linux64): Likewise.
9200 (tdesc_s390_linux64): Likewise.
9201 (init_registers_s390_linux64v1): Likewise.
9202 (tdesc_s390_linux64v1): Likewise.
9203 (init_registers_s390_linux64v2): Likewise.
9204 (tdesc_s390_linux64v2): Likewise.
9205 (init_registers_s390_te_linux64): Likewise.
9206 (tdesc_s390_te_linux64): Likewise.
9207 (init_registers_s390_vx_linux64): Likewise.
9208 (tdesc_s390_vx_linux64): Likewise.
9209 (init_registers_s390_tevx_linux64): Likewise.
9210 (tdesc_s390_tevx_linux64): Likewise.
9211 (init_registers_s390x_linux64): Likewise.
9212 (tdesc_s390x_linux64): Likewise.
9213 (init_registers_s390x_linux64v1): Likewise.
9214 (tdesc_s390x_linux64v1): Likewise.
9215 (init_registers_s390x_linux64v2): Likewise.
9216 (tdesc_s390x_linux64v2): Likewise.
9217 (init_registers_s390x_te_linux64): Likewise.
9218 (tdesc_s390x_te_linux64): Likewise.
9219 (init_registers_s390x_vx_linux64): Likewise.
9220 (tdesc_s390x_vx_linux64): Likewise.
9221 (init_registers_s390x_tevx_linux64): Likewise.
9222 (tdesc_s390x_tevx_linux64): Likewise.
9223 (have_hwcap_s390_vx): New static variable.
9224 (s390_arch_setup): Fill have_hwcap_s390_vx.
9225 (s390_get_thread_area): New function.
9226 (s390_ft_entry_gpr_esa): New const.
9227 (s390_ft_entry_gpr_zarch): New const.
9228 (s390_ft_entry_misc): New const.
9229 (s390_ft_entry_fr): New const.
9230 (s390_ft_entry_vr): New const.
9231 (s390_ft_main_31): New const.
9232 (s390_ft_main_64): New const.
9233 (s390_ft_exit_fr): New const.
9234 (s390_ft_exit_vr): New const.
9235 (s390_ft_exit_misc): New const.
9236 (s390_ft_exit_gpr_esa): New const.
9237 (s390_ft_exit_gpr_zarch): New const.
9238 (append_insns): New function.
9239 (s390_relocate_instruction): New function.
9240 (s390_install_fast_tracepoint_jump_pad): New function.
9241 (s390_get_min_fast_tracepoint_insn_len): New function.
9242 (s390_get_ipa_tdesc_idx): New function.
9243 (struct linux_target_ops): Wire in the above functions.
9244 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9245 * linux-s390-tdesc.h: New file.
9246
a4105d04
MK
92472016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9248
9249 * linux-s390-low.c (s390_supports_tracepoints): New function.
9250 (struct linux_target_ops): Fill supports_tracepoints hook.
9251
35ac8b3e
YQ
92522016-03-18 Yao Qi <yao.qi@linaro.org>
9253
9254 * linux-low.c (lwp_signal_can_be_delivered): New function.
9255 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9256
94610ec4
YQ
92572016-03-18 Yao Qi <yao.qi@linaro.org>
9258
9259 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9260 0 if signal is enqueued. Remove 'signal' from one debugging
9261 message. Move one debugging message to some lines below.
9262 Remove code setting 'signal' to 0.
9263
80aea927
YQ
92642016-03-18 Yao Qi <yao.qi@linaro.org>
9265
9266 * linux-low.c (linux_low_filter_event): Remove redundant
9267 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9268
b04fd3be
MK
92692016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9270
9271 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9272 (struct linux_target_ops): Wire in the above.
9273
c40c8d4b
YQ
92742016-03-03 Yao Qi <yao.qi@linaro.org>
9275
9276 * linux-low.c: Update comments to start_step_over.
9277
0f8288ae
YQ
92782016-03-03 Yao Qi <yao.qi@linaro.org>
9279
9280 PR server/19736
9281 * linux-low.c (handle_extended_wait): Set child suspended
9282 if event_lwp->bp_reinsert isn't zero.
9283
fdbd04a8
YQ
92842016-03-02 Yao Qi <yao.qi@linaro.org>
9285
9286 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9287 enqueue_pending_signal.
9288
6896a8fa
MK
92892016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9290
9291 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9292 is actually loaded.
9293
ab503087
MK
92942016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9295
9296 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9297 (s390_regmap_3264) [!__s390x__]: New global.
9298 (s390_collect_ptrace_register): Skip map entries containing -1.
9299 (s390_supply_ptrace_register): Ditto.
9300 (s390_fill_gprs_high): New function.
9301 (s390_store_gprs_high): New function.
9302 (s390_regsets): Add NT_S390_HIGH_GPRS.
9303 (s390_get_hwcap): Enable on 31-bit.
9304 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9305 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9306 Detect NT_S390_HIGH_GPRS.
9307 (s390_usrregs_info_3264): Enable on 31-bit.
9308 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9309 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9310
ae91f625
MK
93112016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9312
9313 PR gdb/13808
9314 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9315 * configure.srv: Ditto.
9316 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9317 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9318 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9319 (init_registers_amd64_linux): Remove prototype.
9320 (tdesc_amd64_linux): Remove declaration.
9321 (get_ipa_tdesc): New function.
9322 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9323 initialize remaining tdescs.
9324 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9325 (init_registers_i386_linux): Remove prototype.
9326 (tdesc_i386_linux): Remove declaration.
9327 (get_ipa_tdesc): New function.
9328 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9329 initialize remaining tdescs.
9330 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9331 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9332 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9333 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9334 (x86_get_ipa_tdesc_idx): New function.
9335 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9336 * linux-x86-tdesc.h: New file.
9337 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9338 (target_get_ipa_tdesc_idx): New macro.
9339 * tracepoint.c (ipa_tdesc_idx): New macro.
9340 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9341 (symbol_list): Add ipa_tdesc_idx.
9342 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9343 (ipa_tdesc): Remove.
9344 (ipa_tdesc_idx): New variable.
9345 (get_context_regcache): Use get_ipa_tdesc.
9346 (gdb_collect): Ditto.
9347 (gdb_probe): Ditto.
9348 * tracepoint.h (get_ipa_tdesc): New prototype.
9349 (ipa_tdesc): Remove.
9350
e7ad2f14
PA
93512016-02-24 Pedro Alves <palves@redhat.com>
9352
9353 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9354 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9355 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9356 Factor out common code between the USE_SIGTRAP_SIGINFO and
9357 !USE_SIGTRAP_SIGINFO blocks.
9358 (linux_low_filter_event): Call save_stop_reason instead of
9359 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9360 Update comments.
9361 (linux_wait_1): Update comments.
9362
657f9cde
WW
93632016-02-24 Wei-cheng Wang <cole945@gmail.com>
9364
9365 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9366 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9367 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9368 ppc_insert_point, ppc_remove_point.
9369
b00b61e1
MK
93702016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9371
9372 * linux-s390-low.c (s390_supports_z_point_type): New function.
9373 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9374
553cb527
YQ
93752016-02-16 Yao Qi <yao.qi@linaro.org>
9376
9377 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9378 PC. Get pc from regcache_read_pc.
9379
a5652c21
YQ
93802016-02-12 Yao Qi <yao.qi@linaro.org>
9381
9382 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9383 or linux_get_pc_32bit.
9384 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9385
ed443b61
YQ
93862016-02-12 Yao Qi <yao.qi@linaro.org>
9387
9388 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9389 arm_linux_get_next_pcs_fixup.
9390
020ecd38
MK
93912016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9392
9393 * tracepoint.c (x_tracepoint_action_download): Change
9394 write_inferior_data_ptr to write_inferior_data_pointer.
9395 (cmd_qtstart): Likewise.
9396 (write_inferior_data_ptr): Remove.
9397 (download_agent_expr): Change write_inferior_data_ptr to
9398 write_inferior_data_pointer.
9399 (download_tracepoint_1): Likewise.
9400 (download_tracepoint): Likewise.
9401 (download_trace_state_variables): Likewise.
9402
7cae9051
WW
94032016-02-11 Wei-cheng Wang <cole945@gmail.com>
9404 Marcin Kościelnicki <koriakin@0x04.net>
9405
9406 * tracepoint.c (struct tracepoint_action_ops): Remove.
9407 (struct tracepoint_action): Remove ops.
9408 (m_tracepoint_action_download, r_tracepoint_action_download)
9409 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9410 size and offset accordingly.
9411 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9412 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9413 (tracepoint_action_send, tracepoint_action_download): New functions.
9414 Helpers for trace action handlers.
9415 (add_tracepoint_action): Remove setup actions ops.
9416 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9417
9f6a71b4
YQ
94182016-02-10 Yao Qi <yao.qi@linaro.org>
9419
9420 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9421
1e94266c
SM
94222016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9423
9424 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9425 to AC_OUTPUT.
9426 * configure: Regenerate.
9427
8adce034
SM
94282016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9429
9430 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9431 void * to gdb_byte *.
9432 * linux-low.c (siginfo_fixup): Likewise.
9433 (linux_xfer_siginfo): Likewise.
9434 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9435 Likewise.
9436 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9437
93813b37
WT
94382016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9439
9440 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9441 to srv_tgtobj.
9442 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9443 to srv_tgtobj.
9444 * linux-x86-low.c [__x86_64__]: Include
9445 "nat/amd64-linux-siginfo.h".
9446 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9447 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9448 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9449 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9450 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9451 (cpt_si_fd, si_timerid, si_overrun): Move from
9452 nat/amd64-linux-siginfo.c.
9453 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9454
8424cc97
SM
94552016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9456
9457 * server.c (skip_to_semicolon): Remove.
9458 (process_point_options): Use strchrnul instead of
9459 skip_to_semicolon.
9460
4d18591b
YQ
94612016-01-26 Yao Qi <yao.qi@linaro.org>
9462
9463 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9464 * linux-low.c (install_software_single_step_breakpoints): Don't
9465 call regcache_read_pc.
9466 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9467 argument pc.
9468
d8020970
YQ
94692016-01-26 Yao Qi <yao.qi@linaro.org>
9470
9471 * linux-low.c (install_software_single_step_breakpoints): Call
9472 regcache_read_pc instead of get_pc.
9473
8b207339
YQ
94742016-01-26 Yao Qi <yao.qi@linaro.org>
9475
9476 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9477 (unblock_async_io): Rename to ...
9478 (block_unblock_async_io): ... it. New function.
9479 (enable_async_io): Don't install SIGIO handler. Unblock it
9480 instead.
9481 (disable_async_io): Don't ignore SIGIO. Block it instead.
9482 (initialize_async_io): Install SIGIO handler. Don't call
9483 unblock_async_io.
9484
18879fef
YQ
94852016-01-26 Yao Qi <yao.qi@linaro.org>
9486
9487 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9488 first character is '\003', call *the_target->request_interrupt.
9489
a0f8e08a
YQ
94902016-01-25 Yao Qi <yao.qi@linaro.org>
9491
9492 * remote-utils.c (new_thread_notify): Remove.
9493 (dead_thread_notify): Likewise.
9494 * remote-utils.h (new_thread_notify): Remove declaration.
9495 (dead_thread_notify): Likewise.
9496
cc5fd9ab
MK
94972016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9498
9499 * gdb.trace/pending.exp: Fix expected message on continue.
9500
99e8eb11
MK
95012016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9502
9503 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9504 it works properly on big-endian machines where sizeof (CORE_ADDR)
9505 != sizeof (void *).
9506
a994041d
PA
95072016-01-21 Pedro Alves <palves@redhat.com>
9508
9509 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9510 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9511 * configure: Regenerate.
9512
f7a6a40d
YQ
95132016-01-21 Yao Qi <yao.qi@linaro.org>
9514
9515 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9516 is_thumb and set it according to CPSR saved on the stack.
9517 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9518 arm_sigreturn_next_pc.
9519
6f69e520
YQ
95202016-01-18 Yao Qi <yao.qi@linaro.org>
9521
9522 * linux-low.c (linux_set_pc_64bit): New function.
9523 (linux_get_pc_64bit): New function.
9524 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9525 Declare.
9526 * linux-sparc-low.c (debug_threads): Remove declaration.
9527 (sparc_get_pc): Remove.
9528 (the_low_target): Use linux_get_pc_64bit instead of
9529 sparc_get_pc.
9530 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9531 (the_low_target): Use linux_get_pc_64bit and
9532 linux_set_pc_64bit.
9533
276d4552
YQ
95342016-01-18 Yao Qi <yao.qi@linaro.org>
9535
9536 * linux-arm-low.c (debug_threads): Remove declaration.
9537 (arm_get_pc, arm_set_pc): Remove.
9538 (the_low_target): Use linux_get_pc_32bit and
9539 linux_set_pc_32bit.
9540 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9541 (the_low_target): Use linux_get_pc_32bit and
9542 linux_set_pc_32bit.
9543 * linux-cris-low.c (debug_threads): Remove declaration.
9544 (cris_get_pc, cris_set_pc,): Remove.
9545 (the_low_target): Use linux_get_pc_32bit and
9546 linux_set_pc_32bit.
9547 * linux-crisv32-low.c (debug_threads): Remove declaration.
9548 (cris_get_pc, cris_set_pc): Remove.
9549 (the_low_target): Use linux_get_pc_32bit and
9550 linux_set_pc_32bit.
9551 * linux-low.c: Include inttypes.h.
9552 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9553 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9554 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9555 (the_low_target): Use linux_get_pc_32bit and
9556 linux_set_pc_32bit.
9557 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9558 (the_low_target): Use linux_get_pc_32bit and
9559 linux_set_pc_32bit.
9560 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9561 (the_low_target): Use linux_get_pc_32bit and
9562 linux_set_pc_32bit.
9563 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9564 (the_low_target): Use linux_get_pc_32bit and
9565 linux_set_pc_32bit.
9566 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9567 (the_low_target): Use linux_get_pc_32bit and
9568 linux_set_pc_32bit.
9569
eb0edac8
GB
95702016-01-18 Gary Benson <gbenson@redhat.com>
9571
9572 * configure.ac (AC_FUNC_FORK): New check.
9573 * config.in: Regenerate.
9574 * configure: Likewise.
9575
1b451dda
YQ
95762016-01-14 Yao Qi <yao.qi@linaro.org>
9577
9578 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9579 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9580 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9581 arm_get_next_pcs_ctor.
9582
82075af2
JS
95832016-01-12 Josh Stone <jistone@redhat.com>
9584 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9585
9586 * inferiors.h: Include "gdb_vecs.h".
9587 (struct process_info): Add syscalls_to_catch.
9588 * inferiors.c (remove_process): Free syscalls_to_catch.
9589 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9590 syscall_return stops.
9591 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9592 * server.c (handle_general_set): Handle QCatchSyscalls.
9593 (handle_query): Report support for QCatchSyscalls.
9594 * target.h (struct target_ops): Add supports_catch_syscall.
9595 (target_supports_catch_syscall): New macro.
9596 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9597 (struct lwp_info): Add syscall_state.
9598 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9599 Maintain syscall_state and syscalls_to_catch across exec.
9600 (get_syscall_trapinfo): New function, proxy to the_low_target.
9601 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9602 (linux_low_filter_event): Toggle syscall_state entry/return for
9603 syscall traps, and set it ignored for all others.
9604 (gdb_catching_syscalls_p): New function.
9605 (gdb_catch_this_syscall_p): New function.
9606 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9607 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9608 (linux_supports_catch_syscall): New function.
9609 (linux_target_ops): Install it.
9610 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9611 (the_low_target): Install it.
9612
8f13a3ce
MF
96132016-01-12 Mike Frysinger <vapier@gentoo.org>
9614
9615 * acinclude.m4: Include new ../warning.m4 file.
9616 * configure: Regenerated.
9617 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9618
5b3da067
MF
96192016-01-12 Mike Frysinger <vapier@gentoo.org>
9620
9621 * ax.c (is_goto_target): Mark static.
9622 * linux-low.c (register_addr): Likewise.
9623 (linux_fetch_registers, linux_store_registers): Likewise.
9624 * mem-break.c (any_persistent_commands): Fix old prototype.
9625 (add_commands_to_breakpoint): Mark static.
9626 * regcache.c (find_register_by_name): Delete unused func.
9627 * remote-utils.c (hex_or_minus_one): Mark static.
9628 * server.c (monitor_show_help): Mark static.
9629 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9630 handle_v_requests): Likewise.
9631
bc504a31
PA
96322016-01-12 Pedro Alves <palves@redhat.com>
9633
9634 Remove use of the registered trademark symbol throughout.
9635
5a0dd67a
YQ
96362016-01-08 Yao Qi <yao.qi@linaro.org>
9637
9638 * remote-utils.c (getpkt): If c is '\003', call target hook
9639 request_interrupt.
9640
b2ca446f
YQ
96412016-01-06 Yao Qi <yao.qi@linaro.org>
9642
9643 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9644 linux-aarch32-low.c.
9645 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9646 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9647 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9648 (thumb2_breakpoint): Declare.
9649 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9650 linux-aarch32-low.h.
9651 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9652 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9653 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9654
edd88788
JB
96552016-01-01 Joel Brobecker <brobecker@adacore.com>
9656
9657 * gdbreplay.c (gdbreplay_version): Change copyright year in
9658 version message.
9659 * server.c (gdbserver_version): Likewise.
9660
65da7f14
PP
96612015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9662
9663 * server.c (crc32_table): Delete.
9664 (crc32): Use libiberty's xcrc32 function.
9665
4abd5ed2
JB
96662015-12-22 Joel Brobecker <brobecker@adacore.com>
9667
9668 * lynx-low.c (lynx_delete_thread_callback): New function.
9669 (lynx_mourn): Properly delete our process and all of its
9670 threads. Remove call to clear_inferiors.
9671
0e50fe5c
JB
96722015-12-22 Joel Brobecker <brobecker@adacore.com>
9673
9674 * target.c (thread_search_callback): Add check that
9675 the thread_stopped target callback is not NULL before
9676 calling it.
9677
35adc03f
YQ
96782015-12-21 Yao Qi <yao.qi@linaro.org>
9679
9680 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9681 arm breakpoint.
9682
bd2b2909
AT
96832015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9684
9685 * server.c (handle_query): Call target_supports_software_single_step.
9686
7fe5e27e
AT
96872015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9688
9689 * linux-low.c (single_step): New function.
9690 (linux_resume_one_lwp_throw): Call single_step.
9691 (start_step_over): Likewise.
9692
d9311bfa
AT
96932015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9694
9695 * Makefile.in (SFILES): Append arch/arm-linux.c,
9696 arch/arm-get-next-pcs.c.
9697 (arm-linux.o): New rule.
9698 (arm-get-next-pcs.o): New rule.
9699 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9700 arm-linux.o.
9701 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9702 to linux-aarch32-low.c.
9703 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9704 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9705 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9706 (thumb2_breakpoint_len): Likewise.
9707 (arm_is_thumb_mode): Make non-static.
9708 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9709 from linux-aarch32-low.c.
9710 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9711 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9712 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9713 (thumb2_breakpoint_len): Likewise.
9714 (arm_is_thumb_mode): New declaration.
9715 * linux-arm-low.c: Include arch/arm-linux.h
9716 aarch/arm-get-next-pcs.h, sys/syscall.h.
9717 (get_next_pcs_ops): New struct.
9718 (get_next_pcs_addr_bits_remove): New function.
9719 (get_next_pcs_is_thumb): New function.
9720 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9721 (arm_sigreturn_next_pc): Likewise.
9722 (get_next_pcs_syscall_next_pc): Likewise.
9723 (arm_gdbserver_get_next_pcs): Likewise.
9724 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9725 Initialize.
9726 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9727 * server.h: Include gdb_vecs.h.
9728
68ce2059
AT
97292015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9730
9731 * Makefile.in (SFILES): Append common/common-regcache.c.
9732 (OBS): Append common-regcache.o.
9733 (common-regcache.o): New rule.
9734 * regcache.c (init_register_cache): Initialize cache to
9735 REG_UNAVAILABLE.
9736 (regcache_raw_read_unsigned): New function.
9737 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9738 register_status enum.
9739
fa5308bd
AT
97402015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9741
9742 * linux-aarch64-low.c (the_low_targets): Rename
9743 breakpoint_reinsert_addr to get_next_pcs.
9744 * linux-arm-low.c (the_low_targets): Likewise.
9745 * linux-bfin-low.c (the_low_targets): Likewise.
9746 * linux-cris-low.c (the_low_targets): Likewise.
9747 * linux-crisv32-low.c (the_low_targets): Likewise.
9748 * linux-low.c (can_software_single_step): Likewise.
9749 (install_software_single_step_breakpoints): New function.
9750 (start_step_over): Use install_software_single_step_breakpoints.
9751 * linux-low.h: New CORE_ADDR vector.
9752 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9753 get_next_pcs.
9754 * linux-mips-low.c (the_low_targets): Likewise.
9755 * linux-nios2-low.c (the_low_targets): Likewise.
9756 * linux-sparc-low.c (the_low_targets): Likewise.
9757
4a6ed09b
PA
97582015-12-17 Pedro Alves <palves@redhat.com>
9759
9760 * linux-low.c (linux_kill_one_lwp): Remove references to
9761 LinuxThreads.
9762 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9763 to 'kill'.
9764 (linux_init_signals): Delete.
9765 (initialize_low): Adjust.
9766 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9767
7544db95
PA
97682015-12-16 Pedro Alves <palves@redhat.com>
9769
9770 * configure.ac (compiler warning flags): When testing a
9771 -Wno-foo option, check whether -Wfoo works instead.
9772 * configure: Regenerate.
9773
8020350c
DB
97742015-12-11 Don Breazeal <donb@codesourcery.com>
9775
9776 * server.c (process_serial_event): Don't exit from gdbserver
9777 in remote mode if there are still active inferiors.
9778
db91f502
YQ
97792015-12-11 Yao Qi <yao.qi@linaro.org>
9780
9781 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9782 arm_breakpoint_at if the process is 32-bit.
9783
b37a6290
YQ
97842015-12-11 Yao Qi <yao.qi@linaro.org>
9785
9786 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9787 arm breakpoint.
9788
17b1509a
YQ
97892015-12-07 Yao Qi <yao.qi@linaro.org>
9790
9791 * configure.srv: Append arm.o to srv_tgtobj for
9792 aarch64*-*-linux* target.
9793 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9794 from linux-arm-low.c.
9795 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9796 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9797 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9798 (thumb2_breakpoint_len): Likewise.
9799 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9800 (arm_breakpoint_kinds): Likewise.
9801 (arm_breakpoint_kind_from_pc): Likewise.
9802 (arm_sw_breakpoint_from_kind): Likewise.
9803 (arm_breakpoint_kind_from_current_state): Likewise.
9804 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9805 (arm_sw_breakpoint_from_kind): Declare.
9806 (arm_breakpoint_kind_from_current_state): Declare.
9807 (arm_breakpoint_at): Declare.
9808 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9809 arm_sw_breakpoint_from_kind if process is 32-bit.
9810 (aarch64_breakpoint_kind_from_pc): New function.
9811 (aarch64_breakpoint_kind_from_current_state): New function.
9812 (the_low_target): Initialize fields breakpoint_kind_from_pc
9813 and breakpoint_kind_from_current_state.
9814 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9815 linux-aarch32-low.c.
9816 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9817 (arm_breakpoint, arm_breakpoint_len): Likewise.
9818 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9819 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9820 (arm_is_thumb_mode): Likewise.
9821 (arm_breakpoint_at): Likewise.
9822 (arm_breakpoint_kind_from_pc): Likewise.
9823 (arm_sw_breakpoint_from_kind): Likewise.
9824 (arm_breakpoint_kind_from_current_state): Likewise.
9825
9826 Revert:
9827 2015-08-04 Yao Qi <yao.qi@linaro.org>
9828
9829 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9830 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9831 * server.c (extended_protocol): Remove "static".
9832 * server.h (extended_protocol): Declare it.
9833
ece66d65
JS
98342015-12-04 Josh Stone <jistone@redhat.com>
9835
9836 * target.h (struct target_ops) <arch_setup>: Rename to ...
9837 (struct target_ops) <post_create_inferior>: ... this.
9838 (target_arch_setup): Rename to ...
9839 (target_post_create_inferior): ... this, calling post_create_inferior.
9840 * server.c (start_inferior): Update target_arch_setup calls to
9841 target_post_create_inferior.
9842 * linux-low.c (linux_low_ptrace_options): Forward declare.
9843 (linux_arch_setup): Update its comment for general use.
9844 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9845 (struct linux_target_ops): Use linux_post_create_inferior.
9846 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9847 to post_create_inferior.
9848 * nto-low.c (struct nto_target_ops): Likewise.
9849 * spu-low.c (struct spu_target_ops): Likewise.
9850 * win32-low.c (struct win32_target_ops): Likewise.
9851
e58c48b4
AT
98522015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9853
9854 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9855
fbec8956
AT
98562015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9857
9858 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9859 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9860 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9861 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9862 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9863 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9864 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9865 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9866 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9867 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9868 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9869 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9870
9b4c5f87
AT
98712015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9872
9873 * linux-low.c (linux_look_up_symbols): Don't call
9874 linux_supports_traceclone.
9875 * linux-low.h (thread_db_init): Remove use_events argument.
9876 * thread-db.c (thread_db_use_event): Remove global variable.
9877 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9878 (struct thread_db) <td_create_bp>: Remove field.
9879 (thread_db_create_event): Remove function.
9880 (thread_db_enable_reporting): Likewise.
9881 (find_one_thread): Don't check for thread_db_use_events.
9882 (attach_thread): Likewise.
9883 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9884 (try_thread_db_load_1): Don't check for thread_db_use_events.
9885 (thread_db_init): Remove use_events argument and thread events
9886 handling.
9887 (remove_thread_event_breakpoints): Remove function.
9888 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9889
7d00775e
AT
98902015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9891
9892 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9893 New function.
9894 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9895 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9896 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9897 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9898 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9899 Initialize.
9900 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9901 New function.
9902 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9903 * linux-low.c (can_hardware_single_step): Use
9904 supports_hardware_single_step.
9905 (can_software_single_step): New function.
9906 (start_step_over): Call can_software_single_step.
9907 (linux_supports_hardware_single_step): New function.
9908 (struct target_ops) <supports_software_single_step>: Initialize.
9909 * linux-low.h (struct linux_target_ops)
9910 <supports_hardware_single_step>: Initialize.
9911 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9912 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9913 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9914 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9915 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9916 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9917 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9918 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9919 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9920 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9921 Initialize.
9922 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9923 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9924 Initialize.
9925 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9926 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9927 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9928 New function.
9929 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9930 * target.h (struct target_ops): <supports_software_single_step>:
9931 New field.
9932 (target_supports_software_single_step): New macro.
9933
2d97cd35
AT
99342015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9935
9936 * linux-low.c (linux_wait_1): Fix pc advance condition.
9937 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9938 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9939
769ef81f
AT
99402015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9941
9942 * linux-arm-low.c (arm_is_thumb_mode): New function.
9943 (arm_breakpoint_at): Use arm_is_thumb_mode.
9944 (arm_breakpoint_kind_from_current_state): New function.
9945 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9946 Initialize.
9947 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9948 (linux_breakpoint_kind_from_current_state): New function.
9949 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9950 * linux-low.h (struct linux_target_ops)
9951 <breakpoint_kind_from_current_state>: New field.
9952 * target.h (struct target_ops): Likewise.
9953 (target_breakpoint_kind_from_current_state): New macro.
9954
1bebeeca
PA
99552015-11-30 Pedro Alves <palves@redhat.com>
9956
9957 * linux-low.c (linux_resume): Wake up the event loop before
9958 returning.
9959
a67a9fae
PA
99602015-11-30 Pedro Alves <palves@redhat.com>
9961
9962 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9963 check.
9964 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9965 to -1.
9966 * target.c (struct thread_search): New structure.
9967 (thread_search_callback): New function.
9968 (prev_general_thread): New global.
9969 (prepare_to_access_memory, done_accessing_memory): New functions.
9970 * target.h (prepare_to_access_memory, done_accessing_memory):
9971 Replace macros with function declarations.
9972
f2faf941
PA
99732015-11-30 Pedro Alves <palves@redhat.com>
9974
9975 PR 14618
9976 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9977 report TARGET_WAITKIND_NO_RESUMED.
9978 * remote-utils.c (prepare_resume_reply): Handle
9979 TARGET_WAITKIND_NO_RESUMED.
9980 * server.c (report_no_resumed): New global.
9981 (handle_query) <qSupported>: Handle "no-resumed+". Report
9982 "no-resumed+" support.
9983 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9984 return error if the client doesn't support no-resumed events.
9985 (push_stop_notification): New function.
9986 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9987 events if the client supports them.
9988
a681f9c9
PA
99892015-11-30 Pedro Alves <palves@redhat.com>
9990
9991 * linux-low.c (thread_still_has_status_pending_p): Don't check
9992 vCont;t here.
9993 (lwp_resumed): New function.
9994 (status_pending_p_callback): Return early if the LWP is not
9995 supposed to be resumed.
9996
65706a29
PA
99972015-11-30 Pedro Alves <palves@redhat.com>
9998
9999 * linux-low.c (handle_extended_wait): Assert that the LWP's
10000 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
10001 thread create events, leave the new child's status pending.
10002 (linux_low_filter_event): If GDB wants to hear about thread exit
10003 events, leave the LWP marked dead and don't delete it.
10004 (linux_wait_for_event_filtered): Don't check for thread exit.
10005 (filter_exit_event): New function.
10006 (linux_wait_1): Use it, when returning an exit event.
10007 (linux_resume_one_lwp_throw): Assert that the LWP's
10008 waitstatus is TARGET_WAITKIND_IGNORE.
10009 * remote-utils.c (prepare_resume_reply): Handle
10010 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
10011 * server.c (report_thread_events): New global.
10012 (handle_general_set): Handle QThreadEvents.
10013 (handle_query) <qSupported>: Handle and report QThreadEvents+;
10014 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
10015 TARGET_WAITKIND_THREAD_EXITED.
10016 * server.h (report_thread_events): Declare.
10017
56cf4bed
PA
100182015-11-30 Pedro Alves <palves@redhat.com>
10019
10020 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
10021 the thread's last_resume_kind was resume_stop.
10022
500c1d85
PA
100232015-11-30 Pedro Alves <palves@redhat.com>
10024
10025 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10026 before returning.
10027
de979965
PA
100282015-11-30 Pedro Alves <palves@redhat.com>
10029
10030 * server.c (handle_v_requests): Handle vCtrlC.
10031
34c65914
PA
100322015-11-30 Pedro Alves <palves@redhat.com>
10033
10034 * gdbthread.h (find_any_thread_of_pid): Declare.
10035 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10036 functions.
10037 * server.c (handle_query): If current_thread is NULL, look for
10038 another thread of the selected process.
10039
79efa585 100402015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 10041 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
10042
10043 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10044 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10045 name in reply.
10046 * target.h (struct target_ops) <thread_name>: New field.
10047 (target_thread_name): New macro.
10048
80d82c19
JB
100492015-11-23 Joel Brobecker <brobecker@adacore.com>
10050
10051 * regcache.h (regcache_invalidate_pid): Add declaration.
10052 * regcache.c (regcache_invalidate_pid): New function, extracted
10053 from regcache_invalidate.
10054 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10055 Add trivial documentation comment.
10056 * lynx-low.c: Use regcache_invalidate_pid instead of
10057 regcache_invalidate.
10058
64da5dd5
JB
100592015-11-23 Joel Brobecker <brobecker@adacore.com>
10060
10061 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10062 and Elf64_auxv_t if the target is Android.
10063
37ce4055
DE
100642015-11-22 Doug Evans <xdje42@gmail.com>
10065
10066 * target.h: #include <sys/types.h>.
10067
06e03fff
PA
100682015-11-19 Pedro Alves <palves@redhat.com>
10069
10070 * linux-low.c (linux_process_qsupported): Change prototype.
10071 Adjust.
10072 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10073 Change prototype.
10074 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10075 and adjust to loop over all features.
10076 * server.c (handle_query) <qSupported>: Adjust to call
10077 target_process_qsupported once, passing it a vector of unprocessed
10078 features.
10079 * target.h (struct target_ops) <process_qsupported>: Change
10080 prototype.
10081 (target_process_qsupported): Adjust.
10082
9a084706
PA
100832015-11-19 Pedro Alves <palves@redhat.com>
10084
10085 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10086 mode.
10087 * configure: Regenerate.
10088
dad44a1f
PA
100892015-11-19 Pedro Alves <palves@redhat.com>
10090
10091 * configure: Regenerate.
10092
231c0592
YQ
100932015-11-19 Yao Qi <yao.qi@linaro.org>
10094
10095 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10096 type to uint32_t.
10097
6c1c9a8b
YQ
100982015-11-19 Yao Qi <yao.qi@linaro.org>
10099
10100 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10101 (struct aarch64_operand): Move enum out.
10102
9caa3311
YQ
101032015-11-19 Yao Qi <yao.qi@linaro.org>
10104
10105 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10106 struct user_fpsimd_state *.
10107 (aarch64_store_fpregset): Likewise.
10108
6a69a054
YQ
101092015-11-19 Yao Qi <yao.qi@linaro.org>
10110
10111 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10112 struct user_pt_regs *.
10113 (aarch64_store_gregset): Likewise.
10114
1798301e
PA
101152015-11-18 Pedro Alves <palves@redhat.com>
10116
10117 * Makefile.in (all_object_files): Add $IPA_OBJS.
10118
ce7715e2
PA
101192015-11-17 Pedro Alves <palves@redhat.com>
10120
10121 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10122 GDB_SIGNAL_0 and gdb_signal_to_string.
10123
c0879059
PA
101242015-11-17 Pedro Alves <palves@redhat.com>
10125
10126 * win32-low.c (handle_output_debug_string): Remove parameter.
10127 (win32_kill): Remove our_status local and adjust call to
10128 handle_output_debug_string.
10129 (get_child_debug_event): Adjust call to
10130 handle_output_debug_string.
10131
1996e237
SM
101322015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10133
10134 * linux-mips-low.c (mips_fill_gregset): Add cast.
10135 (mips_store_gregset): Likewise.
10136 (mips_fill_fpregset): Likewise.
10137 (mips_store_fpregset): Likewise.
10138
cbec665b
SM
101392015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10140
10141 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10142 priv.
10143
eb3e3c67
SM
101442015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10145
10146 * linux-mips-low.c (mips_linux_new_thread): Change type of
10147 watch_type to enum target_hw_bp_type.
10148
171de4b8
SM
101492015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10150
10151 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10152 Change return type to arm_hwbp_type.
10153
04248ead
SM
101542015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10155
10156 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10157 (arm_store_gregset): Likewise.
10158 * linux-arm-low.c (arm_get_hwcap): Likewise.
10159 (arm_read_description): Likewise.
10160
04b3479c
SM
101612015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10162
10163 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10164
2bc84e8a
SM
101652015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10166
10167 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10168 (ppc_fill_vsxregset): Likewise.
10169 (ppc_store_vsxregset): Likewise.
10170 (ppc_fill_vrregset): Likewise.
10171 (ppc_store_vrregset): Likewise.
10172 (ppc_fill_evrregset): Likewise.
10173 (ppc_store_evrregset): Likewise.
10174
e6c5bb05
SM
101752015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10176
10177 * linux-ppc-low.c (ppc_usrregs_info): Remove
10178 forward-declaration.
10179 (ppc_arch_setup): Move lower in file.
10180
7ea45d72
SM
101812015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10182
10183 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10184 (ps_pdwrite): Likewise.
10185
69291610
HW
101862015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10187
10188 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10189 to after assert checks.
10190
b42945fd
SM
101912015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10192
10193 * proc-service.c (ps_pdread): Add/adjust casts.
10194 (ps_pdwrite): Add/adjust casts.
10195
d6f85c84
SM
101962015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10197
10198 * server.c (handle_search_memory_1): Cast return value of
10199 memmem.
10200
f98cd059
SM
102012015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10202
10203 * server.c (write_qxfer_response): Change type of data to
10204 gdb_byte *.
10205
d2412fa5
PA
102062015-10-29 Pedro Alves <palves@redhat.com>
10207
10208 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10209
c17414a2
PA
102102015-10-29 Pedro Alves <palves@redhat.com>
10211
10212 * tracepoint.c (clear_installed_tracepoints): Add casts.
10213
e053fbc4
PA
102142015-10-29 Pedro Alves <palves@redhat.com>
10215
10216 * server.c (handle_v_cont, process_serial_event): Add enum
10217 gdb_signal casts to signal parsing code.
10218
add67df8
PA
102192015-10-29 Pedro Alves <palves@redhat.com>
10220
10221 * linux-low.h (NULL_REGSET): Define.
10222 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10223 * linux-arm-low.c (arm_regsets): Likewise.
10224 * linux-crisv32-low.c (cris_regsets): Likewise.
10225 * linux-m68k-low.c (m68k_regsets): Likewise.
10226 * linux-mips-low.c (mips_regsets): Likewise.
10227 * linux-nios2-low.c (nios2_regsets): Likewise.
10228 * linux-ppc-low.c (ppc_regsets): Likewise.
10229 * linux-s390-low.c (s390_regsets): Likewise.
10230 * linux-sh-low.c (sh_regsets): Likewise.
10231 * linux-sparc-low.c (sparc_regsets): Likewise.
10232 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10233 * linux-tile-low.c (tile_regsets): Likewise.
10234 * linux-x86-low.c (x86_regsets): Likewise.
10235 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10236
50bc912a
PA
102372015-10-29 Pedro Alves <palves@redhat.com>
10238
10239 * linux-low.h (NULL_REGSET): Define.
10240 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10241 * linux-arm-low.c (arm_regsets): Likewise.
10242 * linux-crisv32-low.c (cris_regsets): Likewise.
10243 * linux-m68k-low.c (m68k_regsets): Likewise.
10244 * linux-mips-low.c (mips_regsets): Likewise.
10245 * linux-nios2-low.c (nios2_regsets): Likewise.
10246 * linux-ppc-low.c (ppc_regsets): Likewise.
10247 * linux-s390-low.c (s390_regsets): Likewise.
10248 * linux-sh-low.c (sh_regsets): Likewise.
10249 * linux-sparc-low.c (sparc_regsets): Likewise.
10250 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10251 * linux-tile-low.c (tile_regsets): Likewise.
10252 * linux-x86-low.c (x86_regsets): Likewise.
10253 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10254
682b2546
DE
102552015-10-26 Doug Evans <dje@google.com>
10256
10257 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10258
963843d4
DE
102592015-10-26 Doug Evans <dje@google.com>
10260
10261 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10262
d41401ac
DE
102632015-10-26 Doug Evans <dje@google.com>
10264
10265 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10266 for debug_printf.
10267 (attach_thread, find_new_threads_callback): Ditto.
10268
3db28855
AT
102692015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10270
10271 * mem-break.h (set_breakpoint_data): Remove.
10272
fb78e89c
AT
102732015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10274
10275 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10276 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10277 (initialize_low): Remove set_breakpoint_data call.
10278 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10279 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10280 (initialize_low): Remove set_breakpoint_data call.
10281 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10282 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10283 (initialize_low): Remove set_breakpoint_data call.
10284
2e6ee069
AT
102852015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10286
10287 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10288 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10289 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10290 * target.h (target_breakpoint_kind_from_pc): New macro.
10291
1652a986
AT
102922015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10293
10294 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10295 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10296 the default breakpoint kind.
10297
abeead09
AT
102982015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10299
10300 * linux-arm-low.c (arm_supports_z_point_type): Add software
10301 breakpoint support.
10302
b0b4b501
AT
103032015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10304
10305 * linux-arm-low.c: Refactor breakpoint definitions.
10306 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10307 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10308
8689682c
AT
103092015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10310
10311 * Makefile.in: Add arm.c/o.
10312 * configure.srv: Likewise.
10313 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10314 (arm_breakpoint_kind_from_pc): New function.
10315 (arm_sw_breakpoint_from_kind): Return proper kind.
10316 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10317
27165294
AT
103182015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10319
10320 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10321 removal.
10322 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10323 (struct raw_breakpoint) <size>: Remove.
10324 (struct raw_breakpoint) <kind>: Add.
10325 (bp_size): New function.
10326 (bp_opcode): Likewise.
10327 (find_raw_breakpoint_at): Adjust for kind.
10328 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10329 (remove_memory_breakpoint): Adjust for kind call bp_size.
10330 (set_raw_breakpoint_at): Adjust for kind.
10331 (set_breakpoint): Likewise.
10332 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10333 (delete_raw_breakpoint): Adjust for kind.
10334 (delete_breakpoint): Likewise.
10335 (find_gdb_breakpoint): Likewise.
10336 (set_gdb_breakpoint_1): Likewise.
10337 (set_gdb_breakpoint): Likewise.
10338 (delete_gdb_breakpoint_1): Likewise.
10339 (delete_gdb_breakpoint): Likewise.
10340 (uninsert_raw_breakpoint): Likewise.
10341 (reinsert_raw_breakpoint): Likewise.
10342 (set_breakpoint_data): Remove.
10343 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10344 (check_mem_read): Adjust for kind call bp_size.
10345 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10346 (clone_one_breakpoint): Adjust for kind.
10347 * mem-break.h (set_gdb_breakpoint): Likewise.
10348 (delete_gdb_breakpoint): Likewise.
10349 * server.c (process_serial_event): Likewise.
10350
dd373349
AT
103512015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10352
10353 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10354 (struct linux_target_ops) <breakpoint>: Remove.
10355 (struct linux_target_ops) <breakpoint_len>: Remove.
10356 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10357 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10358 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10359 (arm_sw_breakpoint_from_kind): New function.
10360 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10361 (struct linux_target_ops) <breakpoint>: Remove.
10362 (struct linux_target_ops) <breakpoint_len>: Remove.
10363 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10364 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10365 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10366 (struct linux_target_ops) <breakpoint>: Remove.
10367 (struct linux_target_ops) <breakpoint_len>: Remove.
10368 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10369 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10370 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10371 (struct linux_target_ops) <breakpoint>: Remove.
10372 (struct linux_target_ops) <breakpoint_len>: Remove.
10373 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10374 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10375 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10376 and sw_breakpoint_from_kind to increment the pc.
10377 (linux_breakpoint_kind_from_pc): New function.
10378 (linux_sw_breakpoint_from_kind): New function.
10379 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10380 (initialize_low): Call breakpoint_kind_from_pc and
10381 sw_breakpoint_from_kind to replace breakpoint_data/len.
10382 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10383 New field.
10384 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10385 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10386 (struct linux_target_ops) <breakpoint>: Remove.
10387 (struct linux_target_ops) <breakpoint_len>: Remove.
10388 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10389 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10390 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10391 (struct linux_target_ops) <breakpoint>: Remove.
10392 (struct linux_target_ops) <breakpoint_len>: Remove.
10393 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10394 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10395 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10396 (struct linux_target_ops) <breakpoint>: Remove.
10397 (struct linux_target_ops) <breakpoint_len>: Remove.
10398 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10399 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10400 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10401 (struct linux_target_ops) <breakpoint>: Remove.
10402 (struct linux_target_ops) <breakpoint_len>: Remove.
10403 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10404 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10405 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10406 (struct linux_target_ops) <breakpoint>: Remove.
10407 (struct linux_target_ops) <breakpoint_len>: Remove.
10408 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10409 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10410 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10411 (struct linux_target_ops) <breakpoint>: Remove.
10412 (struct linux_target_ops) <breakpoint_len>: Remove.
10413 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10414 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10415 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10416 (struct linux_target_ops) <breakpoint>: Remove.
10417 (struct linux_target_ops) <breakpoint_len>: Remove.
10418 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10419 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10420 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10421 (struct linux_target_ops) <breakpoint>: Remove.
10422 (struct linux_target_ops) <breakpoint_len>: Remove.
10423 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10424 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10425 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10426 (struct linux_target_ops) <breakpoint>: Remove.
10427 (struct linux_target_ops) <breakpoint_len>: Remove.
10428 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10429 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10430 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10431 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10432 (struct linux_target_ops) <breakpoint>: Remove.
10433 (struct linux_target_ops) <breakpoint_len>: Remove.
10434 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10435 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10436 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10437 (struct linux_target_ops) <breakpoint>: Remove.
10438 (struct linux_target_ops) <breakpoint_len>: Remove.
10439 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10440 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10441
4cd98a19
AT
104422015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10443
10444 * linux-cris-low.c (cris_get_pc): Remove void arg.
10445
774ee6d2
AR
104462015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10447
10448 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10449 variable name.
10450
833dcd29
AR
104512015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10452
10453 * inferiors.c (thread_pid_matches_callback): New function.
10454 (find_thread_process): New function.
10455 (remove_thread): Reset current_thread.
10456 (remove_process): Assert threads have been removed first.
10457
8d689ee5
YQ
104582015-10-15 Yao Qi <yao.qi@linaro.org>
10459
10460 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10461 if it is 3.
10462 (aarch64_remove_point): Likewise.
10463 * regcache.c (regcache_register_size): New function.
10464
1c2e1515
YQ
104652015-10-12 Yao Qi <yao.qi@linaro.org>
10466
10467 * linux-aarch64-low.c: Update all callers as emit_load_store
10468 is renamed to aarch64_emit_load_store.
10469
e1c587c3
YQ
104702015-10-12 Yao Qi <yao.qi@linaro.org>
10471
10472 * linux-aarch64-low.c: Update all callers of function renaming
10473 from emit_insn to aarch64_emit_insn.
10474
b6542f81
YQ
104752015-10-12 Yao Qi <yao.qi@linaro.org>
10476
10477 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10478 arch/aarch64-insn.h.
10479 (struct aarch64_memory_operand): Likewise.
10480 (ENCODE): Likewise.
10481 (emit_insn): Move to arch/aarch64-insn.c.
10482 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10483 (emit_load_store): Move to arch/aarch64-insn.c.
10484 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10485 (can_encode_int32): Remove.
10486
246994ce
YQ
104872015-10-12 Yao Qi <yao.qi@linaro.org>
10488
10489 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10490 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10491 (aarch64_relocate_instruction): Likewise.
10492 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10493 (struct aarch64_insn_visitor): Likewise.
10494
0badd99f
YQ
104952015-10-12 Yao Qi <yao.qi@linaro.org>
10496
10497 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10498 (struct aarch64_insn_visitor): New.
10499 (struct aarch64_insn_relocation_data): New.
10500 (aarch64_ftrace_insn_reloc_b): New function.
10501 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10502 (aarch64_ftrace_insn_reloc_cb): Likewise.
10503 (aarch64_ftrace_insn_reloc_tb): Likewise.
10504 (aarch64_ftrace_insn_reloc_adr): Likewise.
10505 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10506 (aarch64_ftrace_insn_reloc_others): Likewise.
10507 (visitor): New.
10508 (aarch64_relocate_instruction): Use visitor.
10509
dfaffe9d
YQ
105102015-10-12 Yao Qi <yao.qi@linaro.org>
10511
10512 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10513 int. Add argument buf.
10514 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10515 aarch64_relocate_instruction.
10516
70b439f0
YQ
105172015-10-12 Yao Qi <yao.qi@linaro.org>
10518
10519 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10520 argument insn. Remove local variable insn. Don't call
10521 target_read_uint32.
10522 (aarch64_install_fast_tracepoint_jump_pad): Call
10523 target_read_uint32.
10524
7781c06f
YQ
105252015-09-30 Yao Qi <yao.qi@linaro.org>
10526
10527 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10528 (emit_load_store_pair): Likewise.
10529
9a3c8263
SM
105302015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10531
10532 * dll.c (match_dll): Add cast(s).
10533 (unloaded_dll): Likewise.
10534 * linux-low.c (second_thread_of_pid_p): Likewise.
10535 (delete_lwp_callback): Likewise.
10536 (count_events_callback): Likewise.
10537 (select_event_lwp_callback): Likewise.
10538 (linux_set_resume_request): Likewise.
10539 * server.c (accumulate_file_name_length): Likewise.
10540 (emit_dll_description): Likewise.
10541 (handle_qxfer_threads_worker): Likewise.
10542 (visit_actioned_threads): Likewise.
10543 * thread-db.c (any_thread_of): Likewise.
10544 * tracepoint.c (same_process_p): Likewise.
10545 (match_blocktype): Likewise.
10546 (build_traceframe_info_xml): Likewise.
10547
224c3ddb
SM
105482015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10549
10550 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10551 assignment.
10552 (gdb_unparse_agent_expr): Likewise.
10553 * hostio.c (require_data): Likewise.
10554 (handle_pread): Likewise.
10555 * linux-low.c (disable_regset): Likewise.
10556 (fetch_register): Likewise.
10557 (store_register): Likewise.
10558 (get_dynamic): Likewise.
10559 (linux_qxfer_libraries_svr4): Likewise.
10560 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10561 (set_fast_tracepoint_jump): Likewise.
10562 (uninsert_fast_tracepoint_jumps_at): Likewise.
10563 (reinsert_fast_tracepoint_jumps_at): Likewise.
10564 (validate_inserted_breakpoint): Likewise.
10565 (clone_agent_expr): Likewise.
10566 * regcache.c (init_register_cache): Likewise.
10567 * remote-utils.c (putpkt_binary_1): Likewise.
10568 (decode_M_packet): Likewise.
10569 (decode_X_packet): Likewise.
10570 (look_up_one_symbol): Likewise.
10571 (relocate_instruction): Likewise.
10572 (monitor_output): Likewise.
10573 * server.c (handle_search_memory): Likewise.
10574 (handle_qxfer_exec_file): Likewise.
10575 (handle_qxfer_libraries): Likewise.
10576 (handle_qxfer): Likewise.
10577 (handle_query): Likewise.
10578 (handle_v_cont): Likewise.
10579 (handle_v_run): Likewise.
10580 (captured_main): Likewise.
10581 * target.c (write_inferior_memory): Likewise.
10582 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10583 * tracepoint.c (init_trace_buffer): Likewise.
10584 (add_tracepoint_action): Likewise.
10585 (add_traceframe): Likewise.
10586 (add_traceframe_block): Likewise.
10587 (cmd_qtdpsrc): Likewise.
10588 (cmd_qtdv): Likewise.
10589 (cmd_qtstatus): Likewise.
10590 (response_source): Likewise.
10591 (response_tsv): Likewise.
10592 (cmd_qtnotes): Likewise.
10593 (gdb_collect): Likewise.
10594 (initialize_tracepoint): Likewise.
10595
afbe19f8
PL
105962015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10597
10598 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10599 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10600 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10601 <NOP>: New.
10602 (enum aarch64_condition_codes): New enum.
10603 (w0): New static global.
10604 (fp): Likewise.
10605 (lr): Likewise.
10606 (struct aarch64_memory_operand) <type>: New
10607 MEMORY_OPERAND_POSTINDEX type.
10608 (postindex_memory_operand): New helper function.
10609 (emit_ret): New function.
10610 (emit_load_store_pair): New function, factored out of emit_stp
10611 with support for MEMORY_OPERAND_POSTINDEX.
10612 (emit_stp): Rewrite using emit_load_store_pair.
10613 (emit_ldp): New function.
10614 (emit_load_store): Likewise.
10615 (emit_ldr): Mention post-index instruction in comment.
10616 (emit_ldrh): New function.
10617 (emit_ldrb): New function.
10618 (emit_ldrsw): Mention post-index instruction in comment.
10619 (emit_str): Likewise.
10620 (emit_subs): New function.
10621 (emit_cmp): Likewise.
10622 (emit_and): Likewise.
10623 (emit_orr): Likewise.
10624 (emit_orn): Likewise.
10625 (emit_eor): Likewise.
10626 (emit_mvn): Likewise.
10627 (emit_lslv): Likewise.
10628 (emit_lsrv): Likewise.
10629 (emit_asrv): Likewise.
10630 (emit_mul): Likewise.
10631 (emit_sbfm): Likewise.
10632 (emit_sbfx): Likewise.
10633 (emit_ubfm): Likewise.
10634 (emit_ubfx): Likewise.
10635 (emit_csinc): Likewise.
10636 (emit_cset): Likewise.
10637 (emit_nop): Likewise.
10638 (emit_ops_insns): New helper function.
10639 (emit_pop): Likewise.
10640 (emit_push): Likewise.
10641 (aarch64_emit_prologue): New function.
10642 (aarch64_emit_epilogue): Likewise.
10643 (aarch64_emit_add): Likewise.
10644 (aarch64_emit_sub): Likewise.
10645 (aarch64_emit_mul): Likewise.
10646 (aarch64_emit_lsh): Likewise.
10647 (aarch64_emit_rsh_signed): Likewise.
10648 (aarch64_emit_rsh_unsigned): Likewise.
10649 (aarch64_emit_ext): Likewise.
10650 (aarch64_emit_log_not): Likewise.
10651 (aarch64_emit_bit_and): Likewise.
10652 (aarch64_emit_bit_or): Likewise.
10653 (aarch64_emit_bit_xor): Likewise.
10654 (aarch64_emit_bit_not): Likewise.
10655 (aarch64_emit_equal): Likewise.
10656 (aarch64_emit_less_signed): Likewise.
10657 (aarch64_emit_less_unsigned): Likewise.
10658 (aarch64_emit_ref): Likewise.
10659 (aarch64_emit_if_goto): Likewise.
10660 (aarch64_emit_goto): Likewise.
10661 (aarch64_write_goto_address): Likewise.
10662 (aarch64_emit_const): Likewise.
10663 (aarch64_emit_call): Likewise.
10664 (aarch64_emit_reg): Likewise.
10665 (aarch64_emit_pop): Likewise.
10666 (aarch64_emit_stack_flush): Likewise.
10667 (aarch64_emit_zero_ext): Likewise.
10668 (aarch64_emit_swap): Likewise.
10669 (aarch64_emit_stack_adjust): Likewise.
10670 (aarch64_emit_int_call_1): Likewise.
10671 (aarch64_emit_void_call_2): Likewise.
10672 (aarch64_emit_eq_goto): Likewise.
10673 (aarch64_emit_ne_goto): Likewise.
10674 (aarch64_emit_lt_goto): Likewise.
10675 (aarch64_emit_le_goto): Likewise.
10676 (aarch64_emit_gt_goto): Likewise.
10677 (aarch64_emit_ge_got): Likewise.
10678 (aarch64_emit_ops_impl): New static global variable.
10679 (aarch64_emit_ops): New target function, return
10680 &aarch64_emit_ops_impl.
10681 (struct linux_target_ops): Install it.
10682
bb903df0
PL
106832015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10684
10685 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10686 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10687 aarch64-ipa.o.
10688 * linux-aarch64-ipa.c: New file.
10689 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10690 and endian.h.
10691 (aarch64_get_thread_area): New target method.
10692 (extract_signed_bitfield): New helper function.
10693 (aarch64_decode_ldr_literal): New function.
10694 (enum aarch64_opcodes): New enum.
10695 (struct aarch64_register): New struct.
10696 (struct aarch64_operand): New struct.
10697 (x0): New static global.
10698 (x1): Likewise.
10699 (x2): Likewise.
10700 (x3): Likewise.
10701 (x4): Likewise.
10702 (w2): Likewise.
10703 (ip0): Likewise.
10704 (sp): Likewise.
10705 (xzr): Likewise.
10706 (aarch64_register): New helper function.
10707 (register_operand): Likewise.
10708 (immediate_operand): Likewise.
10709 (struct aarch64_memory_operand): New struct.
10710 (offset_memory_operand): New helper function.
10711 (preindex_memory_operand): Likewise.
10712 (enum aarch64_system_control_registers): New enum.
10713 (ENCODE): New macro.
10714 (emit_insn): New helper function.
10715 (emit_b): New function.
10716 (emit_bcond): Likewise.
10717 (emit_cb): Likewise.
10718 (emit_tb): Likewise.
10719 (emit_blr): Likewise.
10720 (emit_stp): Likewise.
10721 (emit_ldp_q_offset): Likewise.
10722 (emit_stp_q_offset): Likewise.
10723 (emit_load_store): Likewise.
10724 (emit_ldr): Likewise.
10725 (emit_ldrsw): Likewise.
10726 (emit_str): Likewise.
10727 (emit_ldaxr): Likewise.
10728 (emit_stxr): Likewise.
10729 (emit_stlr): Likewise.
10730 (emit_data_processing_reg): Likewise.
10731 (emit_data_processing): Likewise.
10732 (emit_add): Likewise.
10733 (emit_sub): Likewise.
10734 (emit_mov): Likewise.
10735 (emit_movk): Likewise.
10736 (emit_mov_addr): Likewise.
10737 (emit_mrs): Likewise.
10738 (emit_msr): Likewise.
10739 (emit_sevl): Likewise.
10740 (emit_wfe): Likewise.
10741 (append_insns): Likewise.
10742 (can_encode_int32_in): New helper function.
10743 (aarch64_relocate_instruction): New function.
10744 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10745 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10746 (struct linux_target_ops): Install aarch64_get_thread_area,
10747 aarch64_install_fast_tracepoint_jump_pad and
10748 aarch64_get_min_fast_tracepoint_insn_len.
10749
787749ea
PL
107502015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10751
10752 * Makefile.in (aarch64-insn.o): New rule.
10753 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10754
9812b2e6
YQ
107552015-09-21 Yao Qi <yao.qi@linaro.org>
10756
10757 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10758
18fe412b
YQ
107592015-09-21 Yao Qi <yao.qi@linaro.org>
10760
10761 * tracepoint.c (max_jump_pad_size): Remove.
10762
a0cc84cd
YQ
107632015-09-18 Yao Qi <yao.qi@linaro.org>
10764
10765 * linux-aarch64-low.c: Don't include sys/uio.h.
10766 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10767
d78908cf
WW
107682015-09-16 Wei-cheng Wang <cole945@gmail.com>
10769
10770 * tracepoint.c (eval_result_type): Change prototype.
10771 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10772
d57e0d50
PA
107732015-09-15 Pedro Alves <palves@redhat.com>
10774
10775 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10776 Check whether to report exec events instead of checking whether
10777 multiprocess is enabled.
10778
5a676acc
PA
107792015-09-15 Pedro Alves <palves@redhat.com>
10780
10781 PR remote/18965
10782 * remote-utils.c (prepare_resume_reply): Merge
10783 TARGET_WAITKIND_VFORK_DONE switch case with the
10784 TARGET_WAITKIND_FORKED case.
10785
7c5d0fad
YQ
107862015-09-15 Yao Qi <yao.qi@linaro.org>
10787
10788 * server.c (handle_query): Check string comparison using
10789 "else if" instead of "if".
10790
750ce8d1
YQ
107912015-09-15 Yao Qi <yao.qi@linaro.org>
10792
10793 * server.c (vCont_supported): New global variable.
10794 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10795 matches. Append ";vContSupported+" to own_buf.
10796 (handle_v_requests): Append ";s;S" to own_buf if target supports
10797 hardware single step or vCont_supported is false.
10798 (capture_main): Set vCont_supported to zero.
10799
70b90b91
YQ
108002015-09-15 Yao Qi <yao.qi@linaro.org>
10801
10802 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10803 it to ...
10804 (linux_supports_hardware_single_step): ... New function.
10805 (linux_target_ops): Update.
10806 * lynx-low.c (lynx_target_ops): Set field
10807 supports_hardware_single_step to target_can_do_hardware_single_step.
10808 * nto-low.c (nto_target_ops): Likewise.
10809 * spu-low.c (spu_target_ops): Likewise.
10810 * win32-low.c (win32_target_ops): Likewise.
10811 * target.c (target_can_do_hardware_single_step): New function.
10812 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10813 Remove. <supports_hardware_single_step>: New field.
10814 (target_supports_conditional_breakpoints): Remove.
10815 (target_supports_hardware_single_step): New macro.
10816 (target_can_do_hardware_single_step): Declare.
10817 * server.c (handle_query): Use target_supports_hardware_single_step
10818 instead of target_supports_conditional_breakpoints.
10819
ade90bde
YQ
108202015-09-15 Yao Qi <yao.qi@linaro.org>
10821
10822 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10823 function.
10824 (struct linux_target_ops the_low_target): Install
10825 aarch64_linux_siginfo_fixup.
10826
94585166
DB
108272015-09-11 Don Breazeal <donb@codesourcery.com>
10828 Luis Machado <lgustavo@codesourcery.com>
10829
10830 * linux-low.c (linux_mourn): Static declaration.
10831 (linux_arch_setup): Move in front of
10832 handle_extended_wait.
10833 (linux_arch_setup_thread): New function.
10834 (handle_extended_wait): Handle exec events. Call
10835 linux_arch_setup_thread. Make event_lwp argument a
10836 pointer-to-a-pointer.
10837 (check_zombie_leaders): Do not check stopped threads.
10838 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10839 (linux_low_filter_event): Add lwp and thread for exec'ing
10840 non-leader thread if leader thread has been deleted.
10841 Refactor code into linux_arch_setup_thread and call it.
10842 Pass child lwp pointer by reference to handle_extended_wait.
10843 (linux_wait_for_event_filtered): Update comment.
10844 (linux_wait_1): Prevent clobbering exec event status.
10845 (linux_supports_exec_events): New function.
10846 (linux_target_ops) <supports_exec_events>: Initialize new member.
10847 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10848 new member.
10849 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10850 * server.c (report_exec_events): New global variable.
10851 (handle_query): Handle qSupported query for exec-events feature.
10852 (captured_main): Initialize report_exec_events.
10853 * server.h (report_exec_events): Declare new global variable.
10854 * target.h (struct target_ops) <supports_exec_events>: New
10855 member.
10856 (target_supports_exec_events): New macro.
10857 * win32-low.c (win32_target_ops) <supports_exec_events>:
10858 Initialize new member.
10859
0568462b
MM
108602015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10861
10862 * linux-low.c (linux_low_enable_btrace): Remove.
10863 (linux_target_ops): Replace linux_low_enable_btrace with
10864 linux_enable_btrace.
10865
39edd165
YQ
108662015-09-03 Yao Qi <yao.qi@linaro.org>
10867
10868 * linux-aarch64-low.c (aarch64_insert_point): Call
10869 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10870 returns true.
10871
1db33b5a
UW
108722015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10873
10874 * linux-low.c (check_stopped_by_breakpoint): Use
10875 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10876
ab290430
PA
108772015-08-27 Pedro Alves <palves@redhat.com>
10878
10879 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10880
8d749320
SM
108812015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10882
6711b7f8
SM
10883 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10884 the XNEW-family equivalent.
8d749320
SM
10885 (compile_bytecodes): Likewise.
10886 * dll.c (loaded_dll): Likewise.
10887 * event-loop.c (append_callback_event): Likewise.
10888 (create_file_handler): Likewise.
10889 (create_file_event): Likewise.
10890 * hostio.c (handle_open): Likewise.
10891 * inferiors.c (add_thread): Likewise.
10892 (add_process): Likewise.
10893 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10894 * linux-arm-low.c (arm_new_process): Likewise.
10895 (arm_new_thread): Likewise.
10896 * linux-low.c (add_to_pid_list): Likewise.
10897 (linux_add_process): Likewise.
10898 (handle_extended_wait): Likewise.
10899 (add_lwp): Likewise.
10900 (enqueue_one_deferred_signal): Likewise.
10901 (enqueue_pending_signal): Likewise.
10902 (linux_resume_one_lwp_throw): Likewise.
10903 (linux_resume_one_thread): Likewise.
10904 (linux_read_memory): Likewise.
10905 (linux_write_memory): Likewise.
10906 * linux-mips-low.c (mips_linux_new_process): Likewise.
10907 (mips_linux_new_thread): Likewise.
10908 (mips_add_watchpoint): Likewise.
10909 * linux-x86-low.c (initialize_low_arch): Likewise.
10910 * lynx-low.c (lynx_add_process): Likewise.
10911 * mem-break.c (set_raw_breakpoint_at): Likewise.
10912 (set_breakpoint): Likewise.
10913 (add_condition_to_breakpoint): Likewise.
10914 (add_commands_to_breakpoint): Likewise.
10915 (clone_agent_expr): Likewise.
10916 (clone_one_breakpoint): Likewise.
10917 * regcache.c (new_register_cache): Likewise.
10918 * remote-utils.c (look_up_one_symbol): Likewise.
10919 * server.c (queue_stop_reply): Likewise.
10920 (start_inferior): Likewise.
10921 (queue_stop_reply_callback): Likewise.
10922 (handle_target_event): Likewise.
10923 * spu-low.c (fetch_ppc_memory): Likewise.
10924 (store_ppc_memory): Likewise.
10925 * target.c (set_target_ops): Likewise.
10926 * thread-db.c (thread_db_load_search): Likewise.
10927 (try_thread_db_load_1): Likewise.
10928 * tracepoint.c (add_tracepoint): Likewise.
10929 (add_tracepoint_action): Likewise.
10930 (create_trace_state_variable): Likewise.
10931 (cmd_qtdpsrc): Likewise.
10932 (cmd_qtro): Likewise.
10933 (add_while_stepping_state): Likewise.
10934 * win32-low.c (child_add_thread): Likewise.
10935 (get_image_name): Likewise.
10936
ed8b7b42
YQ
109372015-08-25 Yao Qi <yao.qi@linaro.org>
10938
10939 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10940
db3cb7cb
YQ
109412015-08-25 Yao Qi <yao.qi@linaro.org>
10942
10943 * Makefile.in (aarch64-linux.o): New rule.
10944 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10945 srv_tgtobj.
10946 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10947 (aarch64_init_debug_reg_state): Make it extern.
10948 (aarch64_linux_prepare_to_resume): Remove.
10949
f6011a1c
YQ
109502015-08-25 Yao Qi <yao.qi@linaro.org>
10951
10952 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10953 lwp_arch_private_info and ptid_of_lwp.
10954
88e2cf7e
YQ
109552015-08-25 Yao Qi <yao.qi@linaro.org>
10956
10957 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10958 Find proc_info by find_process_pid. All callers updated.
10959
5e35436e
YQ
109602015-08-25 Yao Qi <yao.qi@linaro.org>
10961
10962 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10963 Remove.
10964 (debug_reg_change_callback): Remove.
10965 (aarch64_notify_debug_reg_change): Remove.
10966
4a8a7965
YQ
109672015-08-25 Yao Qi <yao.qi@linaro.org>
10968
10969 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10970 Call current_lwp_ptid.
10971
32a271ee
YQ
109722015-08-25 Yao Qi <yao.qi@linaro.org>
10973
10974 * linux-aarch64-low.c (debug_reg_change_callback): Use
10975 debug_printf.
10976
0d51c8d7
YQ
109772015-08-25 Yao Qi <yao.qi@linaro.org>
10978
10979 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10980
31a43dd5
YQ
109812015-08-25 Yao Qi <yao.qi@linaro.org>
10982
10983 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10984
8ee52567
YQ
109852015-08-25 Yao Qi <yao.qi@linaro.org>
10986
10987 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10988 the code.
10989
ff3f0f45
YQ
109902015-08-25 Yao Qi <yao.qi@linaro.org>
10991
10992 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10993 Remove.
10994 (debug_reg_change_callback): Remove argument entry and add argument
10995 lwp. Remove local variable thread. Don't print thread id in the
10996 debugging output. Don't check whether pid of thread equals to pid.
10997 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10998 iterate_over_lwps instead find_inferior.
10999
3d40fbb5
PA
110002015-08-24 Pedro Alves <palves@redhat.com>
11001
11002 * inferiors.c (get_first_process): New function.
11003 * inferiors.h (get_first_process): New declaration.
11004 * remote-utils.c (read_ptid): Default to the first process in the
11005 list, instead of to the current thread's process.
11006
438e1e42
PA
110072015-08-24 Pedro Alves <palves@redhat.com>
11008
11009 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
11010 * event-loop.c: Likewise.
11011 * remote-utils.c: Likewise.
11012 * tracepoint.c: Likewise.
11013
a8c6d4fc
PA
110142015-08-24 Pedro Alves <palves@redhat.com>
11015
11016 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
11017 ptid_get_lwp.
11018
99b0bb12
PA
110192015-08-21 Pedro Alves <palves@redhat.com>
11020
11021 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11022 instead of literal 1.
11023
f8904751
PA
110242015-08-21 Pedro Alves <palves@redhat.com>
11025
11026 * tdesc.c (default_description): Explicitly zero-initialize.
11027
465a859e
PA
110282015-08-21 Pedro Alves <palves@redhat.com>
11029
11030 PR gdb/18749
11031 * inferiors.c (remove_thread): Discard any pending stop reply for
11032 this thread.
11033 * server.c (remove_all_on_match_pid): Rename to ...
11034 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11035 instead of a pid.
11036 (discard_queued_stop_replies): Change parameter to a ptid. Now
11037 extern.
11038 (handle_v_kill, kill_inferior_callback, captured_main)
11039 (process_serial_event): Adjust.
11040 * server.h (discard_queued_stop_replies): Declare.
11041
f0db101d
PA
110422015-08-21 Pedro Alves <palves@redhat.com>
11043
11044 * linux-low.c (wait_for_sigstop): Always switch to no thread
11045 selected if the previously current thread dies.
11046 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11047 process instead of the current thread's.
11048 * remote-utils.c (input_interrupt): Don't check if there's no
11049 current thread.
11050 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11051 current thread to the general thread fails, error out.
11052 (handle_qxfer_auxv, handle_qxfer_libraries)
11053 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11054 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11055 (handle_query): Check if there's a thread selected instead of
11056 checking whether there's any thread in the thread list.
11057 (handle_qxfer_threads, handle_qxfer_btrace)
11058 (handle_qxfer_btrace_conf): Don't error out early if there's no
11059 thread in the thread list.
11060 (handle_v_cont, myresume): Don't set the current thread to the
11061 continue thread.
11062 (process_serial_event) <Hg handling>: Also set thread_id if the
11063 previous general thread is still alive.
11064 (process_serial_event) <g/G handling>: If setting the current
11065 thread to the general thread fails, error out.
11066 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11067 thread's lwp instead of the current thread's.
11068 * target.c (set_desired_thread): If the desired thread was not
11069 found, leave the current thread pointing to NULL. Return an int
11070 (boolean) indicating success.
11071 * target.h (set_desired_thread): Change return type to int.
11072
40045d91
MF
110732015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11074
11075 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11076 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11077 #includes.
11078 (ps_get_thread_area): New function.
11079
45face3b
GB
110802015-08-19 Gary Benson <gbenson@redhat.com>
11081
11082 * hostio.c (handle_pread): Do not attempt to read more data
11083 than hostio_reply_with_data can fit in a packet.
11084
16d5f642
JB
110852015-08-18 Joel Brobecker <brobecker@adacore.com>
11086
11087 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11088
a738da3a
MF
110892015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11090
11091 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11092
33ebda9d
PA
110932015-08-06 Pedro Alves <palves@redhat.com>
11094
11095 * tracepoint.c (expr_eval_result): Now an int.
11096
a44892be
PA
110972015-08-06 Pedro Alves <palves@redhat.com>
11098
11099 * gdbthread.h (struct regcache): Forward declare.
11100 (struct thread_info) <regcache_data>: Now a struct regcache
11101 pointer.
11102 * inferiors.c (inferior_regcache_data)
11103 (set_inferior_regcache_data): Now work with struct regcache
11104 pointers.
11105 * inferiors.h (struct regcache): Forward declare.
11106 (inferior_regcache_data, set_inferior_regcache_data): Now work
11107 with struct regcache pointers.
11108 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11109 (free_register_cache_thread): Remove struct regcache pointer
11110 casts.
11111
608a1e46
PA
111122015-08-06 Pedro Alves <palves@redhat.com>
11113
11114 * server.c (captured_main): On error, print the exception message
11115 to stderr, and if run_once is set, throw a quit.
11116
f0ce0d3a
PA
111172015-08-06 Pedro Alves <palves@redhat.com>
11118
11119 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11120 the current thread.
11121
bf47e248
PA
111222015-08-06 Pedro Alves <palves@redhat.com>
11123
11124 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11125 reading beyond the passed in buffer length.
11126
b6b9ffcc
PL
111272015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11128
11129 * tracepoint.c (symbol_list) <required>: Remove.
11130
863d01bd
PA
111312015-08-06 Pedro Alves <palves@redhat.com>
11132
11133 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11134 count if stopping and suspending threads.
11135 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11136 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11137 (linux_detach): Complete an ongoing step-over.
11138 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11139 throughout.
11140 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11141 (linux_wait_1): If passing a signal to the inferior after
11142 finishing a step-over, unsuspend and re-resume all lwps. If we
11143 see a single-step event but the thread should be continuing, don't
11144 pass the trap to gdb.
11145 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11146 internal_error instead of gdb_assert.
11147 (enqueue_pending_signal): New function.
11148 (check_ptrace_stopped_lwp_gone): Add debug output.
11149 (start_step_over): Use internal_error instead of gdb_assert.
11150 (complete_ongoing_step_over): New function.
11151 (linux_resume_one_thread): Don't resume a suspended thread.
11152 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11153 it stepping.
11154
00db26fa
PA
111552015-08-06 Pedro Alves <palves@redhat.com>
11156
11157 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11158 (linux_thread_alive): Use lwp_is_marked_dead.
11159 (extended_event_reported): Delete.
11160 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11161 instead of extended_event_reported.
11162 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11163 as well.
11164 (lwp_is_marked_dead): New function.
11165 (lwp_running): Use lwp_is_marked_dead.
11166 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11167 comment.
11168
ad071a30
PA
111692015-08-06 Pedro Alves <palves@redhat.com>
11170
11171 * linux-low.c (linux_wait_1): Move fork event output out of the
11172 !report_to_gdb check. Pass event_child->waitstatus to
11173 target_waitstatus_to_string instead of ourstatus.
11174
524b57e6
YQ
111752015-08-04 Yao Qi <yao.qi@linaro.org>
11176
11177 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11178 if current_thread is 32 bit.
11179
6085d6f6
YQ
111802015-08-04 Yao Qi <yao.qi@linaro.org>
11181
11182 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11183 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11184 * server.c (extended_protocol): Remove "static".
11185 * server.h (extended_protocol): Declare it.
11186
8a7e4587
YQ
111872015-08-04 Yao Qi <yao.qi@linaro.org>
11188
11189 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11190 both aarch64 and aarch32.
11191 (aarch64_set_pc): Likewise.
11192
3b53ae99
YQ
111932015-08-04 Yao Qi <yao.qi@linaro.org>
11194
11195 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11196 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11197 arm-with-neon.xml to srv_xmlfiles.
11198 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11199 (is_64bit_tdesc): New function.
11200 (aarch64_linux_read_description): New function.
11201 (aarch64_arch_setup): Call aarch64_linux_read_description.
11202 (regs_info): Rename to regs_info_aarch64.
11203 (aarch64_regs_info): Return right regs_info.
11204 (initialize_low_arch): Call initialize_low_arch_aarch32.
11205
bd9e6534
YQ
112062015-08-04 Yao Qi <yao.qi@linaro.org>
11207
11208 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11209 * linux-aarch32-low.c: New file.
11210 * linux-aarch32-low.h: New file.
11211 * linux-arm-low.c (arm_fill_gregset): Move it to
11212 linux-aarch32-low.c.
11213 (arm_store_gregset): Likewise.
11214 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11215 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11216 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11217 (regs_info): Rename to regs_info_arm.
11218 (arm_regs_info): Return regs_info_aarch32 if
11219 have_ptrace_getregset is 1 and target description is
11220 arm_with_neon or arm_with_vfpv3.
11221 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11222 Call initialize_low_arch_aarch32 instead.
11223
ded48a5e
YQ
112242015-08-04 Yao Qi <yao.qi@linaro.org>
11225
11226 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11227 * linux-low.c: ... here.
11228 * linux-low.h (have_ptrace_getregset): Declare it.
11229
96e9210f
PA
112302015-08-04 Pedro Alves <palves@redhat.com>
11231
11232 * thread-db.c (struct thread_db): Use new typedefs.
11233 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11234 CHK calls.
11235 (disable_thread_event_reporting): Cast result of dlsym to
11236 destination function pointer type.
11237 (thread_db_mourn): Use td_ta_delete_ftype.
11238
af60a1ef
SL
112392015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11240
11241 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11242 arch variant.
11243 (CDX_BREAKPOINT): Define for R2.
11244 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11245 (the_low_target): Add comments.
11246
e8b41681
YQ
112472015-07-30 Yao Qi <yao.qi@linaro.org>
11248
11249 * linux-arm-low.c (arm_hwcap): Remove it.
11250 (arm_read_description): New local variable arm_hwcap. Don't
11251 set arm_hwcap to zero.
11252
89abb039
YQ
112532015-07-30 Yao Qi <yao.qi@linaro.org>
11254
11255 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11256 Use regcache->tdesc instead.
11257 (arm_store_wmmxregset): Likewise.
11258 (arm_fill_vfpregset): Likewise.
11259 (arm_store_vfpregset): Likewise.
11260
deca266c
YQ
112612015-07-30 Yao Qi <yao.qi@linaro.org>
11262
11263 * linux-arm-low.c: Include arch/arm.h.
11264 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11265 (arm_store_gregset): Likewise.
11266
aa58a496
SM
112672015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11268
11269 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11270 ptrace's 4th parameter.
11271
50904b25
YQ
112722015-07-27 Yao Qi <yao.qi@linaro.org>
11273
11274 * configure.srv (case aarch64*-*-linux*): Don't set
11275 srv_linux_usrregs.
11276
5826e159
PA
112772015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11278
11279 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11280 sys/ptrace.h.
11281 * linux-arm-low.c: Likewise.
11282 * linux-cris-low.c: Likewise.
11283 * linux-crisv32-low.c: Likewise.
11284 * linux-low.c: Likewise.
11285 * linux-m68k-low.c: Likewise.
11286 * linux-mips-low.c: Likewise.
11287 * linux-nios2-low.c: Likewise.
11288 * linux-s390-low.c: Likewise.
11289 * linux-sparc-low.c: Likewise.
11290 * linux-tic6x-low.c: Likewise.
11291 * linux-tile-low.c: Likewise.
11292 * linux-x86-low.c: Likewise.
11293
54019719
PA
112942015-07-24 Pedro Alves <palves@redhat.com>
11295
11296 * config.in: Regenerate.
11297 * configure: Regenerate.
11298
eb7aa561
PA
112992015-07-24 Pedro Alves <palves@redhat.com>
11300
11301 * acinclude.m4: Include ../ptrace.m4.
11302 * configure.ac: Call GDB_AC_PTRACE.
11303 * config.in, configure: Regenerate.
11304
55d7b841
YQ
113052015-07-24 Yao Qi <yao.qi@linaro.org>
11306
11307 * linux-low.c (linux_create_inferior): Remove setting to
11308 proc->priv->new_inferior.
11309 (linux_attach): Likewise.
11310 (linux_low_filter_event): Likewise.
11311 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11312
c06cbd92
YQ
113132015-07-24 Yao Qi <yao.qi@linaro.org>
11314
11315 * linux-low.c (linux_arch_setup): New function.
11316 (linux_low_filter_event): If proc->tdesc is NULL and
11317 proc->attached is true, call the_low_target.arch_setup.
11318 Otherwise, keep status pending, and return.
11319 (linux_resume_one_lwp_throw): Don't call get_pc if
11320 thread->while_stepping isn't NULL. Don't call
11321 get_thread_regcache if proc->tdesc is NULL.
11322 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11323 (linux_target_ops): Install arch_setup.
11324 * server.c (start_inferior): Call the_target->arch_setup.
11325 * target.h (struct target_ops) <arch_setup>: New field.
11326 (target_arch_setup): New marco.
11327 * lynx-low.c (lynx_target_ops): Update.
11328 * nto-low.c (nto_target_ops): Update.
11329 * spu-low.c (spu_target_ops): Update.
11330 * win32-low.c (win32_target_ops): Update.
11331
5ae3ebba
YQ
113322015-07-24 Yao Qi <yao.qi@linaro.org>
11333
11334 * linux-low.c (linux_add_process): Don't set
11335 proc->priv->new_inferior.
11336 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11337 (linux_attach): Likewise.
11338
eb97750b
YQ
113392015-07-24 Yao Qi <yao.qi@linaro.org>
11340
11341 * server.c (start_inferior): Code refactor.
11342
51aee833
YQ
113432015-07-24 Yao Qi <yao.qi@linaro.org>
11344
11345 * server.c (process_serial_event): Set general_thread.
11346
af1b22f3
YQ
113472015-07-21 Yao Qi <yao.qi@linaro.org>
11348
11349 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11350 aarch64_linux_get_debug_reg_capacity.
11351
554717a3
YQ
113522015-07-17 Yao Qi <yao.qi@linaro.org>
11353
11354 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11355 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11356 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11357 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11358 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11359 (AARCH64_HWP_ALIGNMENT): Likewise.
11360 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11361 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11362 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11363 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11364 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11365 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11366 (struct aarch64_debug_reg_state): Likewise.
11367 (struct arch_lwp_info): Likewise.
11368 (aarch64_align_watchpoint): Likewise.
11369 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11370 (aarch64_watchpoint_length): Likewise.
11371 (aarch64_point_encode_ctrl_reg): Likewise
11372 (aarch64_point_is_aligned): Likewise.
11373 (aarch64_align_watchpoint): Likewise.
11374 (aarch64_linux_set_debug_regs):
11375 (aarch64_dr_state_insert_one_point): Likewise.
11376 (aarch64_dr_state_remove_one_point): Likewise.
11377 (aarch64_handle_breakpoint): Likewise.
11378 (aarch64_handle_aligned_watchpoint): Likewise.
11379 (aarch64_handle_unaligned_watchpoint): Likewise.
11380 (aarch64_handle_watchpoint): Likewise.
11381
c67ca4de
YQ
113822015-07-17 Yao Qi <yao.qi@linaro.org>
11383
11384 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11385 and don't aarch64_get_debug_reg_state. All callers update.
11386 (aarch64_handle_aligned_watchpoint): Likewise.
11387 (aarch64_handle_unaligned_watchpoint): Likewise.
11388 (aarch64_handle_watchpoint): Likewise.
11389 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11390 (aarch64_remove_point): Likewise.
11391
25abf979
YQ
113922015-07-17 Yao Qi <yao.qi@linaro.org>
11393
11394 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11395 debug_printf.
11396 (aarch64_handle_unaligned_watchpoint): Likewise.
11397
db1ff28b
JK
113982015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11399
11400 Revert the previous 3 commits:
11401 Move gdb_regex* to common/
11402 Move linux_find_memory_regions_full & co.
11403 gdbserver build-id attribute generator
11404
700ca40f
JK
114052015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11406 Jan Kratochvil <jan.kratochvil@redhat.com>
11407
11408 gdbserver build-id attribute generator.
11409 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11410 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11411 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11412 (find_phdr): New.
11413 (get_dynamic): Use find_pdhr to traverse program headers.
11414 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11415 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11416 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11417 (get_hex_build_id): New.
11418 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11419 to reply XML document.
11420
9904185c
JK
114212015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11422 Jan Kratochvil <jan.kratochvil@redhat.com>
11423
11424 * target.c: Include target/target-utils.h and fcntl.h.
11425 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11426 (target_fileio_read_stralloc): New functions.
11427
6e5b4429
JK
114282015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11429
11430 * Makefile.in (OBS): Add gdb_regex.o.
11431 (gdb_regex.o): New.
11432 * config.in: Rebuilt.
11433 * configure: Rebuilt.
11434
ddc98fbf
JK
114352015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11436 Jan Kratochvil <jan.kratochvil@redhat.com>
11437
11438 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11439 * Makefile.in (OBS): Add target-utils.o.
11440 (linux-maps.o, target-utils.o): New.
11441 * configure.srv (srv_linux_obj): Add linux-maps.o.
11442
e57bb7a0
PL
114432015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11444
11445 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11446 function, return 1.
11447 (the_low_target): Install it.
11448
586b02a9
PA
114492015-07-14 Pedro Alves <palves@redhat.com>
11450
11451 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11452 Instead, ignore ECHILD, and throw an error for other errnos.
11453
58c1b36c
PA
114542015-07-10 Pedro Alves <palves@redhat.com>
11455
11456 * event-loop.c (struct callback_event) <data>: Change type to
11457 gdb_client_data instance instead of gdb_client_data pointer.
11458 (append_callback_event): Adjust.
11459
421530db
PL
114602015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11461
11462 * linux-aarch64-low.c: Add comments for each linux_target_ops
11463 method. Remove comments already covered in target_ops and
11464 linux_target_ops definitions.
11465 (the_low_target): Add comments for each unimplemented method.
11466
c2d65f38
YQ
114672015-07-09 Yao Qi <yao.qi@linaro.org>
11468
11469 * linux-aarch64-low.c (aarch64_regmap): Remove.
11470 (aarch64_usrregs_info): Remove.
11471 (regs_info): Set field usrregs to NULL.
11472
b20a6524
MM
114732015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11474
11475 * linux-low.c: Include "rsp-low.h"
11476 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11477 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11478 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11479 (handle_btrace_enable_pt): New.
11480 (handle_btrace_general_set): Support "pt".
11481 (handle_btrace_conf_general_set): Support "pt:size".
11482
96c97461
PL
114832015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11484
11485 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11486 Z_PACKET_SW_BP.
11487
37d66942
PL
114882015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11489
11490 * linux-aarch64-low.c: Remove comment about endianness.
11491 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11492 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11493 memcmp.
11494
dc06243f
GB
114952015-06-24 Gary Benson <gbenson@redhat.com>
11496
11497 * linux-i386-ipa.c (stdint.h): Do not include.
11498 * lynx-i386-low.c (stdint.h): Likewise.
11499 * lynx-ppc-low.c (stdint.h): Likewise.
11500 * mem-break.c (stdint.h): Likewise.
11501 * thread-db.c (stdint.h): Likewise.
11502 * tracepoint.c (stdint.h): Likewise.
11503 * win32-low.c (stdint.h): Likewise.
11504
124e13d9
SM
115052015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11506
11507 * server.c (write_qxfer_response): Update call to
11508 remote_escape_output.
11509
909c2cda
JK
115102015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11511 Jan Kratochvil <jan.kratochvil@redhat.com>
11512
11513 Merge multiple hex conversions.
11514 * gdbreplay.c (tohex): Rename to 'fromhex'.
11515 (logchar): Use fromhex.
11516
24c05f46
JK
115172015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11518
11519 * server.c (handle_qxfer_libraries): Set `version' attribute for
11520 <library-list>.
11521
14d2069a
GB
115222015-06-10 Gary Benson <gbenson@redhat.com>
11523
11524 * target.h (struct target_ops) <multifs_open>: New field.
11525 <multifs_unlink>: Likewise.
11526 <multifs_readlink>: Likewise.
11527 * linux-low.c (nat/linux-namespaces.h): New include.
11528 (linux_target_ops): Initialize the_target->multifs_open,
11529 the_target->multifs_unlink and the_target->multifs_readlink.
11530 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11531 * hostio.c (hostio_fs_pid): New static variable.
11532 (hostio_handle_new_gdb_connection): New function.
11533 (handle_setfs): Likewise.
11534 (handle_open): Use the_target->multifs_open as appropriate.
11535 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11536 (handle_readlink): Use the_target->multifs_readlink as
11537 appropriate.
11538 (handle_vFile): Handle vFile:setfs packets.
11539 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11540 after target_handle_new_gdb_connection.
11541
4b8b5e72
GB
115422015-06-10 Gary Benson <gbenson@redhat.com>
11543
11544 * configure.ac (AC_CHECK_FUNCS): Add setns.
11545 * config.in: Regenerate.
11546 * configure: Likewise.
11547 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11548 (linux-namespaces.o): New rule.
11549 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11550
3ac2e371
GB
115512015-06-09 Gary Benson <gbenson@redhat.com>
11552
11553 * hostio.c (handle_open): Process mode argument with
11554 fileio_to_host_mode.
11555
ca9b78ce
YQ
115562015-06-01 Yao Qi <yao.qi@linaro.org>
11557
11558 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11559 * linux-x86-low.c: Likewise.
11560
bfacd19d
DB
115612015-05-28 Don Breazeal <donb@codesourcery.com>
11562
11563 * linux-low.c (handle_extended_wait): Initialize
11564 thread_info.last_resume_kind for new fork children.
11565
452003ef
PA
115662015-05-15 Pedro Alves <palves@redhat.com>
11567
11568 * target.h (target_handle_new_gdb_connection): Rewrite using if
11569 wrapped in do/while.
11570
1041a03c
JB
115712015-05-14 Joel Brobecker <brobecker@adacore.com>
11572
11573 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11574 * configure, config.in: Regenerate.
11575 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11576 Declare typedef.
11577
c269dbdb
DB
115782015-05-12 Don Breazeal <donb@codesourcery.com>
11579
11580 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11581 PTRACE_EVENT_VFORK_DONE.
11582 (linux_low_ptrace_options, extended_event_reported): Add vfork
11583 events.
11584 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11585 and "vforkdone" for RSP 'T' Stop Reply Packet.
11586 * server.h (report_vfork_events): Declare
11587 global variable.
11588
3a8a0396
DB
115892015-05-12 Don Breazeal <donb@codesourcery.com>
11590
11591 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11592 (the_low_target) <new_fork>: Initialize new member.
11593 * linux-arm-low.c (arm_new_fork): New function.
11594 (the_low_target) <new_fork>: Initialize new member.
11595 * linux-low.c (handle_extended_wait): Call new target function
11596 new_fork.
11597 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11598 * linux-mips-low.c (mips_add_watchpoint): New function
11599 extracted from mips_insert_point.
11600 (the_low_target) <new_fork>: Initialize new member.
11601 (mips_linux_new_fork): New function.
11602 (mips_insert_point): Call mips_add_watchpoint.
11603 * linux-x86-low.c (x86_linux_new_fork): New function.
11604 (the_low_target) <new_fork>: Initialize new member.
11605
de0d863e
DB
116062015-05-12 Don Breazeal <donb@codesourcery.com>
11607
11608 * linux-low.c (handle_extended_wait): Implement return value,
11609 rename argument 'event_child' to 'event_lwp', handle
11610 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11611 (linux_low_ptrace_options): New function.
11612 (linux_low_filter_event): Call linux_low_ptrace_options,
11613 use different argument fo linux_enable_event_reporting,
11614 use return value from handle_extended_wait.
11615 (extended_event_reported): New function.
11616 (linux_wait_1): Call extended_event_reported and set
11617 status to report fork events.
11618 (linux_write_memory): Add pid to debug message.
11619 (reset_lwp_ptrace_options_callback): New function.
11620 (linux_handle_new_gdb_connection): New function.
11621 (linux_target_ops): Initialize new structure member.
11622 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11623 * lynx-low.c: Initialize new structure member.
11624 * remote-utils.c (prepare_resume_reply): Implement stop reason
11625 "fork" for "T" stop message.
11626 * server.c (handle_query): Call handle_new_gdb_connection.
11627 * server.h (report_fork_events): Declare global flag.
11628 * target.h (struct target_ops) <handle_new_gdb_connection>:
11629 New member.
11630 (target_handle_new_gdb_connection): New macro.
11631 * win32-low.c: Initialize new structure member.
11632
ddcbc397
DB
116332015-05-12 Don Breazeal <donb@codesourcery.com>
11634
11635 * mem-break.c (APPEND_TO_LIST): Define macro.
11636 (clone_agent_expr): New function.
11637 (clone_one_breakpoint): New function.
11638 (clone_all_breakpoints): New function.
11639 * mem-break.h: Declare new functions.
11640
89245bc0
DB
116412015-05-12 Don Breazeal <donb@codesourcery.com>
11642
11643 * linux-low.c (linux_supports_fork_events): New function.
11644 (linux_supports_vfork_events): New function.
11645 (linux_target_ops): Initialize new structure members.
11646 (initialize_low): Call linux_check_ptrace_features.
11647 * lynx-low.c (lynx_target_ops): Initialize new structure
11648 members.
11649 * server.c (report_fork_events, report_vfork_events):
11650 New global flags.
11651 (handle_query): Add new features to qSupported packet and
11652 response.
11653 (captured_main): Initialize new global variables.
11654 * target.h (struct target_ops) <supports_fork_events>:
11655 New member.
11656 <supports_vfork_events>: New member.
11657 (target_supports_fork_events): New macro.
11658 (target_supports_vfork_events): New macro.
11659 * win32-low.c (win32_target_ops): Initialize new structure
11660 members.
11661
835205d0
GB
116622015-05-12 Gary Benson <gbenson@redhat.com>
11663
11664 * server.c (handle_qxfer_exec_file): Use current process
11665 if annex is empty.
11666
21e94bd9
SL
116672015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11668
11669 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11670 Remove HAVE_PTRACE_GETREGS conditionals.
11671 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11672 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11673
45614f15
YQ
116742015-05-08 Yao Qi <yao.qi@linaro.org>
11675
11676 * linux-low.c (linux_supports_conditional_breakpoints): New
11677 function.
11678 (linux_target_ops): Install new target method.
11679 * lynx-low.c (lynx_target_ops): Install NULL hook for
11680 supports_conditional_breakpoints.
11681 * nto-low.c (nto_target_ops): Likewise.
11682 * spu-low.c (spu_target_ops): Likewise.
11683 * win32-low.c (win32_target_ops): Likewise.
11684 * server.c (handle_query): Check
11685 target_supports_conditional_breakpoints.
11686 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11687 New field.
11688 (target_supports_conditional_breakpoints): New macro.
11689
80ad801e
PA
116902015-05-06 Pedro Alves <palves@redhat.com>
11691
11692 PR server/18081
11693 * server.c (start_inferior): If the process exits, mourn it.
11694
819843c7
GB
116952015-04-21 Gary Benson <gbenson@redhat.com>
11696
11697 * hostio.c (fileio_open_flags_to_host): Factored out to
11698 fileio_to_host_openflags in common/fileio.c. Single use
11699 updated.
11700
a2d5a9d7
MF
117012015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11702
11703 * linux-xtensa-low.c (xtensa_fill_gregset)
11704 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11705 XCHAL_HAVE_LOOP.
11706
deb44829
MF
117072015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11708
11709 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11710 (regs_info): Replace usrregs pointer with NULL.
11711
e57f1de3
GB
117122015-04-17 Gary Benson <gbenson@redhat.com>
11713
11714 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11715 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11716 * server.c (handle_qxfer_exec_file): New function.
11717 (qxfer_packets): Add exec-file entry.
11718 (handle_query): Report qXfer:exec-file:read as supported packet.
11719
62828379
RN
117202015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11721
11722 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11723
b88bb450
GB
117242015-04-09 Gary Benson <gbenson@redhat.com>
11725
11726 * hostio-errno.c (errno_to_fileio_error): Remove function.
11727 Update caller to use remote_fileio_to_fio_error.
11728
c8f4bfdd
YQ
117292015-04-09 Yao Qi <yao.qi@linaro.org>
11730
11731 * linux-low.c (linux_insert_point): Call
11732 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11733 (linux_remove_point): Call remove_memory_breakpoint if type is
11734 raw_bkpt_type_sw.
11735 * linux-x86-low.c (x86_insert_point): Don't call
11736 insert_memory_breakpoint.
11737 (x86_remove_point): Don't call remove_memory_breakpoint.
11738
41f98f02
PA
117392015-04-01 Pedro Alves <palves@redhat.com>
11740 Cleber Rosa <crosa@redhat.com>
11741
11742 * server.c (gdbserver_usage): Reorganize and extend the usage
11743 message.
11744
2bf6fb9d
PA
117452015-03-24 Pedro Alves <palves@redhat.com>
11746
11747 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11748 output. Also dump TRAP_TRACE.
11749 (linux_low_filter_event): In debug output, distinguish a
11750 resume_stop SIGSTOP from a delayed SIGSTOP.
11751
369f6daa
GB
117522015-03-24 Gary Benson <gbenson@redhat.com>
11753
11754 * linux-x86-low.c (x86_linux_new_thread): Moved to
11755 nat/x86-linux.c.
11756 (x86_linux_prepare_to_resume): Likewise.
11757
8e5d4070
GB
117582015-03-24 Gary Benson <gbenson@redhat.com>
11759
11760 * Makefile.in (x86-linux-dregs.o): New rule.
11761 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11762 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11763 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11764 (x86_linux_dr_get): Likewise.
11765 (x86_linux_dr_set): Likewise.
11766 (update_debug_registers_callback): Likewise.
11767 (x86_linux_dr_set_addr): Likewise.
11768 (x86_linux_dr_get_addr): Likewise.
11769 (x86_linux_dr_set_control): Likewise.
11770 (x86_linux_dr_get_control): Likewise.
11771 (x86_linux_dr_get_status): Likewise.
11772 (x86_linux_update_debug_registers): Likewise.
11773
2b95d440
GB
117742015-03-24 Gary Benson <gbenson@redhat.com>
11775
11776 * linux-x86-low.c (x86_linux_update_debug_registers):
11777 New function, factored out from...
11778 (x86_linux_prepare_to_resume): ...this.
11779
14b0bc68
GB
117802015-03-24 Gary Benson <gbenson@redhat.com>
11781
11782 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11783 (x86_linux_dr_set): Likewise.
11784 (update_debug_registers_callback): Likewise.
11785 (x86_linux_dr_set_addr): Likewise.
11786 (x86_linux_dr_get_addr): Likewise.
11787 (x86_linux_dr_set_control): Likewise.
11788 (x86_linux_dr_get_control): Likewise.
11789 (x86_linux_dr_get_status): Likewise.
11790 (x86_linux_prepare_to_resume): Likewise.
11791
5dfe6ca8
GB
117922015-03-24 Gary Benson <gbenson@redhat.com>
11793
11794 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11795 Use perror_with_name. Pass string through gettext.
11796 (x86_linux_dr_set): Likewise.
11797
d33472ad
GB
117982015-03-24 Gary Benson <gbenson@redhat.com>
11799
11800 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11801 (x86_linux_dr_set_addr): ...this.
11802 (x86_dr_low_get_addr): Rename to...
11803 (x86_linux_dr_get_addr): ...this.
11804 (x86_dr_low_set_control): Rename to...
11805 (x86_linux_dr_set_control): ...this.
11806 (x86_dr_low_get_control): Rename to...
11807 (x86_linux_dr_get_control): ...this.
11808 (x86_dr_low_get_status): Rename to...
11809 (x86_linux_dr_get_status): ...this.
11810 (x86_dr_low): Update with new function names.
11811
4b134ca1
GB
118122015-03-24 Gary Benson <gbenson@redhat.com>
11813
11814 * Makefile.in (x86-linux.o): New rule.
11815 * configure.srv: Add x86-linux.o to relevant targets.
11816 * linux-low.c (lwp_set_arch_private_info): New function.
11817 (lwp_arch_private_info): Likewise.
11818 * linux-x86-low.c: Include nat/x86-linux.h.
11819 (arch_lwp_info): Removed structure.
11820 (update_debug_registers_callback):
11821 Use lwp_set_debug_registers_changed.
11822 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11823 and lwp_set_debug_registers_changed.
11824 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11825
34c703da
GB
118262015-03-24 Gary Benson <gbenson@redhat.com>
11827
11828 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11829 * linux-arm-low.c (arm_new_thread): Likewise.
11830 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11831 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11832 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11833 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11834
cff068da
GB
118352015-03-24 Gary Benson <gbenson@redhat.com>
11836
11837 * linux-low.c (ptid_of_lwp): New function.
11838 (lwp_is_stopped): Likewise.
11839 (lwp_stop_reason): Likewise.
11840 * linux-x86-low.c (update_debug_registers_callback):
11841 Use lwp_is_stopped.
11842 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11843 lwp_stop_reason.
11844
b2f7c7e8
GB
118452015-03-24 Gary Benson <gbenson@redhat.com>
11846
11847 * linux-low.h (linux_stop_lwp): Remove declaration.
11848
6d4ee8c6
GB
118492015-03-24 Gary Benson <gbenson@redhat.com>
11850
11851 * linux-low.h: Include nat/linux-nat.h.
11852 * linux-low.c (iterate_over_lwps_args): New structure.
11853 (iterate_over_lwps_filter): New function.
11854 (iterate_over_lwps): Likewise.
11855 * linux-x86-low.c (update_debug_registers_callback):
11856 Update signature to what iterate_over_lwps expects.
11857 Remove PID check that iterate_over_lwps now performs.
11858 (x86_dr_low_set_addr): Use iterate_over_lwps.
11859 (x86_dr_low_set_control): Likewise.
11860
70a0bb6b
GB
118612015-03-24 Gary Benson <gbenson@redhat.com>
11862
11863 * linux-x86-low.c (x86_debug_reg_state): New function.
11864 (x86_linux_prepare_to_resume): Use the above.
11865
7b669087
GB
118662015-03-24 Gary Benson <gbenson@redhat.com>
11867
11868 * linux-low.c (current_lwp_ptid): New function.
11869 * linux-x86-low.c: Include nat/linux-nat.h.
11870 (x86_dr_low_get_addr): Use current_lwp_ptid.
11871 (x86_dr_low_get_control): Likewise.
11872 (x86_dr_low_get_status): Likewise.
11873
eef49a3d
PA
118742015-03-20 Pedro Alves <palves@redhat.com>
11875
11876 * tracepoint.c (cmd_qtstatus): Make "str" const.
11877
b2333d22
PA
118782015-03-20 Pedro Alves <palves@redhat.com>
11879
11880 * server.c (handle_general_set): Make "req_str" const.
11881
23f238d3
PA
118822015-03-19 Pedro Alves <palves@redhat.com>
11883
11884 * linux-low.c (linux_resume_one_lwp): Rename to ...
11885 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11886 instead call perror_with_name.
11887 (check_ptrace_stopped_lwp_gone): New function.
11888 (linux_resume_one_lwp): Reimplement as wrapper around
11889 linux_resume_one_lwp_throw that swallows errors if the LWP is
11890 gone.
11891
91baf43f
PA
118922015-03-19 Pedro Alves <palves@redhat.com>
11893
11894 * linux-low.c (count_events_callback, select_event_lwp_callback):
11895 No longer check whether the thread has resume_stop as last resume
11896 kind.
11897
8bf3b159
PA
118982015-03-19 Pedro Alves <palves@redhat.com>
11899
11900 * linux-low.c (count_events_callback, select_event_lwp_callback):
11901 Use the lwp's status_pending_p field, not the thread's.
11902
b90fc188
PA
119032015-03-19 Pedro Alves <palves@redhat.com>
11904
11905 * linux-low.c (select_event_lwp_callback): Update comments to
11906 no longer mention SIGTRAP.
11907
464b0089
GB
119082015-03-18 Gary Benson <gbenson@redhat.com>
11909
11910 * server.c (handle_query): Do not report vFile:fstat as supported.
11911
aa9e327f
GB
119122015-03-11 Gary Benson <gbenson@redhat.com>
11913
11914 * hostio.c (sys/types.h): New include.
11915 (sys/stat.h): Likewise.
11916 (common-remote-fileio.h): Likewise.
11917 (handle_fstat): New function.
11918 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11919
791c0056
GB
119202015-03-11 Gary Benson <gbenson@redhat.com>
11921
11922 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11923 struct stat.st_blocks and struct stat.st_blksize.
11924 * configure: Regenerate.
11925 * config.in: Likewise.
11926 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11927 (OBS): Add common-remote-fileio.o.
11928 (common-remote-fileio.o): New rule.
11929
9a9df970
PA
119302015-03-09 Pedro Alves <palves@redhat.com>
11931
11932 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11933 'struct sockaddr' pointer in 'accept' call.
11934
9eb1356e
PA
119352015-03-09 Pedro Alves <palves@redhat.com>
11936
11937 Revert:
11938 2015-03-07 Pedro Alves <palves@redhat.com>
11939 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11940 or <winsock2.h> here. Instead include "gdb_socket.h".
11941 (remote_open): Use union gdb_sockaddr_u.
11942 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11943 or <winsock2.h> here. Instead include "gdb_socket.h".
11944 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11945 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11946 or <sys/un.h>.
11947 (init_named_socket, gdb_agent_helper_thread): Use union
11948 gdb_sockaddr_u.
11949
aac331e4
PA
119502015-03-07 Pedro Alves <palves@redhat.com>
11951
11952 * configure.ac (build_warnings): Move
11953 -Wdeclaration-after-statement to the C-specific set.
11954 * configure: Regenerate.
11955
366c75fc
PA
119562015-03-07 Pedro Alves <palves@redhat.com>
11957
11958 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11959 or <winsock2.h> here. Instead include "gdb_socket.h".
11960 (remote_open): Use union gdb_sockaddr_u.
11961 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11962 or <winsock2.h> here. Instead include "gdb_socket.h".
11963 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11964 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11965 or <sys/un.h>.
11966 (init_named_socket, gdb_agent_helper_thread): Use union
11967 gdb_sockaddr_u.
11968
492d29ea
PA
119692015-03-07 Pedro Alves <palves@redhat.com>
11970
11971 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11972 instead.
11973
60a191ed
YQ
119742015-03-06 Yao Qi <yao.qi@linaro.org>
11975
11976 * linux-aarch64-low.c (aarch64_insert_point): Use
11977 show_debug_regs as a boolean.
11978 (aarch64_remove_point): Likewise.
11979
f5771b1d
PA
119802015-03-05 Pedro Alves <palves@redhat.com>
11981
11982 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11983 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11984 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11985 * nto-low.c (nto_target_ops): Likewise.
11986 * spu-low.c (spu_target_ops): Likewise.
11987 * win32-low.c (win32_target_ops): Likewise.
11988
3e572f71
PA
119892015-03-04 Pedro Alves <palves@redhat.com>
11990
72f4393d 11991 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11992 Decide whether a breakpoint triggered based on the SIGTRAP's
11993 siginfo.si_code.
72f4393d
L
11994 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11995 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11996 (linux_low_filter_event): Check for breakpoints before checking
11997 watchpoints.
11998 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11999 siginfo.si_code.
72f4393d
L
12000 (linux_stopped_by_sw_breakpoint)
12001 (linux_supports_stopped_by_sw_breakpoint)
12002 (linux_stopped_by_hw_breakpoint)
12003 (linux_supports_stopped_by_hw_breakpoint): New functions.
12004 (linux_target_ops): Install new target methods.
3e572f71 12005
1ec68e26
PA
120062015-03-04 Pedro Alves <palves@redhat.com>
12007
12008 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
12009 * server.c (swbreak_feature, hwbreak_feature): New globals.
12010 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
12011 (captured_main): Clear swbreak_feature and hwbreak_feature.
12012 * server.h (swbreak_feature, hwbreak_feature): Declare.
12013 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
12014 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
12015 supports_stopped_by_hw_breakpoint>: New fields.
12016 (target_supports_stopped_by_sw_breakpoint)
12017 (target_stopped_by_sw_breakpoint)
12018 (target_supports_stopped_by_hw_breakpoint)
12019 (target_stopped_by_hw_breakpoint): Declare.
12020
15c66dd6
PA
120212015-03-04 Pedro Alves <palves@redhat.com>
12022
12023 enum lwp_stop_reason -> enum target_stop_reason
12024 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12025 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12026 (linux_wait_1, stuck_in_jump_pad_callback)
12027 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12028 (linux_stopped_by_watchpoint):
12029 * linux-low.h (enum lwp_stop_reason): Delete.
12030 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12031 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12032
98fc70d6
YQ
120332015-03-04 Yao Qi <yao.qi@linaro.org>
12034
12035 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12036
dd2ac174
GB
120372015-03-03 Gary Benson <gbenson@redhat.com>
12038
12039 * hostio.c (handle_vFile): Fix prefix lengths.
12040
d68e53f4
MM
120412015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12042
12043 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12044 ptr_bits.
12045
bf2d68ab
AA
120462015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12047
12048 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12049 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12050 (clean): Add "rm -f" for above C files.
12051 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12052 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12053 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12054 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12055 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12056 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12057 (init_registers_s390x_vx_linux64)
12058 (init_registers_s390x_tevx_linux64)
12059 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12060 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12061 declarations.
12062 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12063 (s390_store_vxrs_high): New functions.
12064 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12065 NT_S390_VXRS_HIGH.
12066 (s390_arch_setup): Add logic for selecting one of the new target
12067 descriptions. Activate the new vector regsets if applicable.
12068 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12069 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12070 and init_registers_s390x_tevx_linux64.
12071
c966a859
PA
120722015-03-01 Pedro Alves <palves@redhat.com>
12073
12074 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12075 parameter.
12076
4180215b
PA
120772015-02-27 Pedro Alves <palves@redhat.com>
12078
12079 * linux-x86-low.c (u_debugreg_offset): New function.
12080 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12081
749bab01
PA
120822015-02-27 Pedro Alves <palves@redhat.com>
12083
12084 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12085 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12086 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12087 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12088 (ps_lsetfpregs, ps_getpid)
12089 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12090 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12091 (ps_lsetxregs, ps_plog): Declare.
12092
3c14e5a3
PA
120932015-02-27 Pedro Alves <palves@redhat.com>
12094
12095 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12096 IP_AGENT_EXPORT_FUNC.
12097 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12098 IP_AGENT_EXPORT_FUNC.
12099 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12100 (IP_AGENT_EXPORT): Delete.
12101 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12102 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12103 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12104 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12105 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12106 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12107 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12108 (traceframe_read_count, traceframe_write_count)
12109 (traceframes_created, trace_state_variables, get_raw_reg)
12110 (get_trace_state_variable_value, set_trace_state_variable_value)
12111 (ust_loaded, helper_thread_id, cmd_buf): Use
12112 IPA_SYM_EXPORTED_NAME.
12113 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12114 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12115 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12116 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12117 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12118 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12119 EXTERN_C_PUSH/EXTERN_C_POP.
12120 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12121 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12122 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12123 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12124 (traceframe_write_count, traceframe_read_count)
12125 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12126 (about_to_request_buffer_space, get_trace_state_variable_value)
12127 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12128 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12129 EXTERN_C_PUSH/EXTERN_C_POP.
12130 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12131 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12132 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12133 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12134 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12135 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12136 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12137 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12138 Define.
12139 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12140 (IP_AGENT_EXPORT_VAR_DECL): Define.
12141 (tracing): Declare.
12142 (gdb_agent_get_raw_reg): Declare.
12143
fe978cb0
PA
121442015-02-27 Tom Tromey <tromey@redhat.com>
12145 Pedro Alves <palves@redhat.com>
12146
12147 Rename symbols whose names are reserved C++ keywords throughout.
12148
3bc3d82a
PA
121492015-02-27 Pedro Alves <palves@redhat.com>
12150
12151 * Makefile.in (COMPILER): New, get it from autoconf.
12152 (CXX): Get from autoconf instead.
12153 (COMPILE.pre): Use COMPILER.
12154 (CC-LD): Rename to ...
12155 (CC_LD): ... this. Use COMPILER.
12156 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12157 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12158 * acinclude.m4: Include build-with-cxx.m4.
12159 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12160 Disable -Werror by default if building in C++ mode.
12161 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12162 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12163 the C++ compiler. Save/restore CXXFLAGS too.
12164 * configure: Regenerate.
12165
07697489
PA
121662015-02-27 Pedro Alves <palves@redhat.com>
12167
12168 * acinclude.m4: Include libiberty.m4.
12169 * configure.ac: Call libiberty_INIT.
12170 * config.in, configure: Regenerate.
12171
9beb7c4e
PA
121722015-02-26 Pedro Alves <palves@redhat.com>
12173
12174 * linux-low.c (linux_wait_1): When incrementing the PC past a
12175 program breakpoint always use the_low_target.breakpoint_len as
12176 increment, rather than the maximum between that and
12177 the_low_target.decr_pc_after_break.
12178
8090aef2
PA
121792015-02-23 Pedro Alves <palves@redhat.com>
12180
12181 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12182 thread was doing a step-over; always adjust the PC if
12183 we stepped over a permanent breakpoint.
12184 (linux_wait_1): If we stepped over breakpoint that was on top of a
12185 permanent breakpoint, manually advance the PC past it.
12186
bc9540e8
PA
121872015-02-23 Pedro Alves <palves@redhat.com>
12188
12189 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12190 modes.
12191 (x86_fill_gregset, x86_store_gregset): Use it when handling
12192 $orig_eax.
12193
2db9a427
PA
121942015-02-20 Pedro Alves <palves@redhat.com>
12195
12196 * thread-db.c: Include "nat/linux-procfs.h".
12197 (thread_db_init): Skip listing new threads if the kernel supports
12198 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12199
afa8d396
PA
122002015-02-20 Pedro Alves <palves@redhat.com>
12201
12202 * linux-low.c (status_pending_p_callback): Use ptid_match.
12203
c9587f88
AT
122042015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12205
12206 PR breakpoints/16812
12207 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12208 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12209 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12210
b05ec7a5
AT
122112015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12212
12213 PR breakpoints/15956
12214 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12215
d33501a5
MM
122162015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12217
12218 * linux-low.c (linux_low_btrace_conf): Print size.
12219 * server.c (handle_btrace_conf_general_set): New.
12220 (hanle_general_set): Call handle_btrace_conf_general_set.
12221 (handle_query): Report Qbtrace-conf:bts:size as supported.
12222
f4abbc16
MM
122232015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12224
12225 * linux-low.c (linux_low_enable_btrace): Update parameters.
12226 (linux_low_btrace_conf): New.
12227 (linux_target_ops)<to_btrace_conf>: Initialize.
12228 * server.c (current_btrace_conf): New.
12229 (handle_btrace_enable): Rename to ...
12230 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12231 to target_enable_btrace. Update comment. Update users.
12232 (handle_qxfer_btrace_conf): New.
12233 (qxfer_packets): Add btrace-conf entry.
12234 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12235 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12236 (target_ops)<read_btrace_conf>: New.
12237 (target_enable_btrace): Update parameters.
12238 (target_read_btrace_conf): New.
12239
043c3577
MM
122402015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12241
12242 * server.c (handle_btrace_general_set): Remove call to
12243 target_supports_btrace.
12244 (supported_btrace_packets): New.
12245 (handle_query): Call supported_btrace_packets.
12246 * target.h: include btrace-common.h.
12247 (btrace_target_info): Removed.
12248 (supports_btrace, target_supports_btrace): Update parameters.
12249
734b0e4b
MM
122502015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12251
12252 * Makefile.in (SFILES): Add common/btrace-common.c.
12253 (OBS): Add common/btrace-common.o.
12254 (btrace-common.o): Add build rules.
12255 * linux-low: Include btrace-common.h.
12256 (linux_low_read_btrace): Use struct btrace_data. Call
12257 btrace_data_init and btrace_data_fini.
12258
d6c146e9
PA
122592015-02-06 Pedro Alves <palves@redhat.com>
12260
12261 * thread-db.c (find_new_threads_callback): Add debug output.
12262
20ba1ce6
PA
122632015-02-04 Pedro Alves <palves@redhat.com>
12264
12265 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12266 (resume_stopped_resumed_lwps): New function.
12267 (linux_wait_for_event_filtered): Use it.
12268
8cc73a39
SDJ
122692015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12270
12271 * Makefile.in (SFILES): Add linux-personality.c.
12272 (linux-personality.o): New rule.
12273 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12274 list of objects to be built.
12275 * linux-low.c: Include nat/linux-personality.h.
12276 (linux_create_inferior): Remove code to disable address space
12277 randomization (moved to ../nat/linux-personality.c). Create
12278 cleanup to disable address space randomization.
12279
fb23d554
SDJ
122802015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12281
12282 * Makefile.in (posix-strerror.o): New rule.
12283 (mingw-strerror.o): Likewise.
12284 * configure: Regenerated.
12285 * configure.ac: Source file ../common/common.host. Initialize new
12286 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12287
cdf43629
YQ
122882015-01-14 Yao Qi <yao@codesourcery.com>
12289
12290 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12291 (ppc-linux.o): New rule.
12292 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12293 * configure.ac: AC_CHECK_FUNCS(getauxval).
12294 * config.in: Re-generated.
12295 * configure: Re-generated.
12296 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12297 ppc64_64bit_inferior_p
12298
514c5338
YQ
122992015-01-14 Yao Qi <yao@codesourcery.com>
12300
12301 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12302 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12303 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12304 (PT_ORIG_R3, PT_TRAP): Likewise.
12305 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12306 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12307 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12308
3368c1e5
JB
123092015-01-10 Joel Brobecker <brobecker@adacore.com>
12310
12311 * i387-fp.c (i387_cache_to_xsave): In look over
12312 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12313 zmmh_low_space field by use of zmmh_high_space.
12314
582511be
PA
123152015-01-09 Pedro Alves <palves@redhat.com>
12316
12317 * linux-low.c (step_over_bkpt): Move higher up in the file.
12318 (handle_extended_wait): Don't store the stop_pc here.
12319 (get_stop_pc): Adjust comments and rename to ...
12320 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12321 stopped for a software breakpoint or hardware breakpoint.
12322 (thread_still_has_status_pending_p): New function.
12323 (status_pending_p_callback): Use
12324 thread_still_has_status_pending_p. If the event is no longer
12325 interesting, resume the LWP.
12326 (handle_tracepoints): Add assert.
12327 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12328 (wstatus_maybe_breakpoint): New function.
12329 (cancel_breakpoint): Delete function.
12330 (check_stopped_by_watchpoint): New function, factored out from
12331 linux_low_filter_event.
12332 (lp_status_maybe_breakpoint): Delete function.
12333 (linux_low_filter_event): Remove filter_ptid argument.
12334 Leave thread group exits pending here. Store the LWP's stop PC.
12335 Always leave events pending.
12336 (linux_wait_for_event_filtered): Pull all events out of the
12337 kernel, and leave them all pending.
12338 (count_events_callback, select_event_lwp_callback): Consider all
12339 events.
12340 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12341 (select_event_lwp): Only give preference to the stepping LWP in
12342 all-stop mode. Adjust comments.
12343 (ignore_event): New function.
12344 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12345 references to cancel_breakpoints. Adjust to renames. Also give
12346 equal priority to all LWPs that have had events in non-stop mode.
12347 If reporting a software breakpoint event, unadjust the LWP's PC.
12348 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12349 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12350 Adjust.
12351 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12352 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12353 (linux_stopped_by_watchpoint): Adjust.
12354 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12355 * linux-low.h (enum lwp_stop_reason): New.
12356 (struct lwp_info) <stop_pc>: Adjust comment.
12357 <stopped_by_watchpoint>: Delete field.
12358 <stop_reason>: New field.
12359 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12360 * mem-break.c (software_breakpoint_inserted_here)
12361 (hardware_breakpoint_inserted_here): New function.
12362 * mem-break.h (software_breakpoint_inserted_here)
12363 (hardware_breakpoint_inserted_here): Declare.
12364 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12365 (cancel_breakpoints): Delete.
12366 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12367 (upload_fast_traceframes): Remove references to
12368 cancel_breakpoints.
12369
a33e3959
PA
123702015-01-09 Pedro Alves <palves@redhat.com>
12371
12372 * thread-db.c (find_new_threads_callback): Ignore thread if the
12373 kernel thread ID is -1.
12374
8784d563
PA
123752015-01-09 Pedro Alves <palves@redhat.com>
12376
12377 * linux-low.c (linux_attach_fail_reason_string): Move to
12378 nat/linux-ptrace.c, and rename.
12379 (linux_attach_lwp): Update comment.
12380 (attach_proc_task_lwp_callback): New function.
12381 (linux_attach): Adjust to rename and use
12382 linux_proc_attach_tgid_threads.
12383 (linux_attach_fail_reason_string): Delete declaration.
12384
76f2b779
JB
123852015-01-01 Joel Brobecker <brobecker@adacore.com>
12386
12387 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12388 * server.c (gdbserver_version): Likewise.
12389
fafcc06a
SDJ
123902014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12391
12392 * remote-utils.c: Include ctype.h.
12393 (input_interrupt): Explicitly handle the case when the char
12394 received is the NUL byte. Improve the printing of non-ASCII
12395 characters.
12396
beed38b8
JB
123972014-12-16 Joel Brobecker <brobecker@adacore.com>
12398
12399 * linux-low.c (linux_low_filter_event): Update call to
12400 linux_enable_event_reporting following the addition of
12401 a new parameter to that function.
12402
bf330350
CU
124032014-12-16 Catalin Udma <catalin.udma@freescale.com>
12404
12405 PR server/17457
12406 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12407 (AARCH64_FPCR_REGNO): Likewise.
12408 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12409 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12410 (aarch64_store_fpregset): Likewise.
12411
5227d625
JB
124122014-12-15 Joel Brobecker <brobecker@adacore.com>
12413
12414 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12415 Remove FIXME comment about assumption about N.
12416
f93b65a0
JB
124172014-12-13 Joel Brobecker <brobecker@adacore.com>
12418
12419 * configure.ac: If large-file support is disabled in GDBserver,
12420 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12421 * configure: Regenerate.
12422
e5a9158d
AA
124232014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12424
12425 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12426 warning upon ENODATA from ptrace.
12427 * linux-s390-low.c (s390_store_tdb): New.
12428 (s390_regsets): Add regset for NT_S390_TDB.
12429
feea5f36
AA
124302014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12431
12432 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12433 without a fill_function.
12434 * linux-s390-low.c (s390_fill_last_break): Remove.
12435 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12436 (s390_arch_setup): Use regset's size instead of fill_function for
12437 loop end condition.
12438
098dbe61
AA
124392014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12440
12441 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12442 the regset's store function when ptrace returned an error.
12443 * regcache.c (get_thread_regcache): Invalidate register cache
12444 before fetching inferior's registers.
12445
28eef672
AA
124462014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12447
12448 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12449 while-loop as for-loop.
12450 (regsets_store_inferior_registers): Likewise.
12451
bdca27a2
YQ
124522014-11-28 Yao Qi <yao@codesourcery.com>
12453
12454 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12455 * config.in, configure: Re-generate.
12456 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12457 is defined.
12458
9c232dda
YQ
124592014-11-21 Yao Qi <yao@codesourcery.com>
12460
12461 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12462 (AC_CHECK_HEADERS): Remove malloc.h.
12463 * configure: Re-generated.
12464 * config.in: Re-generated.
12465 * server.h: Don't include alloca.h and malloc.h.
12466 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12467 Don't include malloc.h.
12468
43968415
JB
124692014-11-17 Joel Brobecker <brobecker@adacore.com>
12470
12471 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12472 corresponding ERRNO check in same block.
12473
40e91bc7
PA
124742014-11-12 Pedro Alves <palves@redhat.com>
12475
12476 * server.c (cont_thread): Update comment.
12477 (start_inferior, attach_inferior): No longer clear cont_thread.
12478 (handle_v_cont): No longer set cont_thread.
12479 (captured_main): Clear cont_thread each time a GDB connects.
12480
c2c118cf
PA
124812014-11-12 Pedro Alves <palves@redhat.com>
12482
12483 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12484 thread, and don't resume all threads if the Hc thread has exited.
12485
78708b7c
PA
124862014-11-12 Pedro Alves <palves@redhat.com>
12487
12488 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12489 the process group instead of to a specific LWP.
12490
a2abc7de
PA
124912014-10-15 Pedro Alves <palves@redhat.com>
12492
12493 PR server/17487
12494 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12495 parameter.
12496 (arm_set_thread_context): Delete.
12497 (the_low_target): Adjust.
12498 * win32-i386-low.c (debug_registers_changed)
12499 (debug_registers_used): Delete.
12500 (update_debug_registers_callback): New function.
12501 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12502 needing to update their debug registers.
12503 (win32_get_current_dr): New function.
12504 (x86_dr_low_get_addr, x86_dr_low_get_control)
12505 (x86_dr_low_get_status): Fetch the debug register from the thread
12506 record's context.
12507 (i386_initial_stuff): Adjust.
12508 (i386_get_thread_context): Remove current_event parameter. Don't
12509 clear debug_registers_changed nor copy DR values to
12510 debug_reg_state.
12511 (i386_set_thread_context): Delete.
12512 (i386_prepare_to_resume): New function.
12513 (i386_thread_added): Mark the thread as needing to update irs
12514 debug registers.
12515 (the_low_target): Remove i386_set_thread_context and install
12516 i386_prepare_to_resume.
12517 * win32-low.c (win32_get_thread_context): Adjust.
12518 (win32_set_thread_context): Use SetThreadContext
12519 directly.
12520 (win32_prepare_to_resume): New function.
12521 (win32_require_context): New function, factored out from ...
12522 (thread_rec): ... this.
12523 (continue_one_thread): Call win32_prepare_to_resume on each thread
12524 we're about to continue.
12525 (win32_resume): Call win32_prepare_to_resume on the event thread.
12526 * win32-low.h (struct win32_thread_info)
12527 <debug_registers_changed>: New field.
12528 (struct win32_target_ops): Change prototype of set_thread_context,
12529 delete set_thread_context and add prepare_to_resume.
12530 (win32_require_context): New declaration.
12531
a442d071
GB
125322014-10-08 Gary Benson <gbenson@redhat.com>
12533
12534 * server.h: Do not include common-exceptions.h.
12535
6f1947e8
GB
125362014-10-08 Gary Benson <gbenson@redhat.com>
12537
12538 * server.h: Do not include cleanups.h.
12539
63b434a4
JH
125402014-09-30 James Hogan <james.hogan@imgtec.com>
12541
12542 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12543 mips64-dsp-linux.c.
12544
c4d9ceb6
YQ
125452014-09-23 Yao Qi <yao@codesourcery.com>
12546
12547 * linux-low.c (lp_status_maybe_breakpoint): New function.
12548 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12549 (count_events_callback): Likewise.
12550 (select_event_lwp_callback): Likewise.
12551 (cancel_breakpoints_callback): Likewise.
12552
89a5711c
DB
125532014-09-19 Don Breazeal <donb@codesourcery.com>
12554
12555 * linux-low.c (handle_extended_wait): Call
12556 linux_ptrace_get_extended_event.
12557 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12558 linux_is_extended_waitstatus.
12559
bffc0964
JB
125602014-09-16 Joel Brobecker <brobecker@adacore.com>
12561
12562 * Makefile.in (CPPFLAGS): Define.
12563 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12564 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12565
0bfdf32f
GB
125662014-09-16 Gary Benson <gbenson@redhat.com>
12567
12568 * inferiors.h (current_inferior): Renamed as...
12569 (current_thread): New variable. All uses updated.
12570 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12571 (maybe_move_out_of_jump_pad): Likewise.
12572 (cancel_breakpoint): Likewise.
12573 (linux_low_filter_event): Likewise.
12574 (wait_for_sigstop): Likewise.
12575 (linux_resume_one_lwp): Likewise.
12576 (need_step_over_p): Likewise.
12577 (start_step_over): Likewise.
12578 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12579 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12580 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12581 and save_inferior as saved_thread.
12582 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12583 saved_thread.
12584 (regcache_invalidate_thread): Likewise.
12585 * remote-utils.c (prepare_resume_reply): Likewise.
12586 * thread-db.c (thread_db_get_tls_address): Likewise.
12587 (disable_thread_event_reporting): Likewise.
12588 (remove_thread_event_breakpoints): Likewise.
12589 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12590 as saved_thread.
12591 * target.h (set_desired_inferior): Renamed as...
12592 (set_desired_thread): New declaration. All uses updated.
12593 * server.c (myresume): Updated comment to reference thread instead
12594 of inferior.
12595 (handle_serial_event): Likewise.
12596 (handle_target_event): Likewise.
12597
361c8ade
GB
125982014-09-12 Tom Tromey <tromey@redhat.com>
12599 Gary Benson <gbenson@redhat.com>
12600
12601 * regcache.h: Include common-regcache.h.
12602 (regcache_read_pc): Don't declare.
12603 * regcache.c (get_thread_regcache_for_ptid): New function.
12604
bd9269f7
GB
126052014-09-11 Tom Tromey <tromey@redhat.com>
12606 Gary Benson <gbenson@redhat.com>
12607
12608 * symbol.c: New file.
12609 * Makefile.in (SFILES): Add symbol.c.
12610 (OBS): Add symbol.o.
12611
f8c1d06b
GB
126122014-09-11 Gary Benson <gbenson@redhat.com>
12613
12614 * target.c (target_stop_ptid, target_continue_ptid): New
12615 functions.
12616
721ec300
GB
126172014-09-11 Tom Tromey <tromey@redhat.com>
12618 Gary Benson <gbenson@redhat.com>
12619
12620 * target.h: Include target/target.h.
12621 * target.c (target_read_memory, target_read_uint32)
12622 (target_write_memory): New functions.
12623
c5e92cca
GB
126242014-09-11 Gary Benson <gbenson@redhat.com>
12625
12626 * server.h (debug_hw_points): Don't declare.
12627 * server.c (debug_hw_points): Don't define. Replace all uses
12628 with show_debug_regs.
12629 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12630 all uses with show_debug_regs.
12631
2e4bb98a
EBM
126322014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12633
12634 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12635 endianness into account.
12636 (ppc_supply_ptrace_register): Likewise.
12637
ac740bc7
JH
126382014-09-03 James Hogan <james.hogan@imgtec.com>
12639
12640 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12641 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12642
97ea6506
GB
126432014-09-03 Gary Benson <gbenson@redhat.com>
12644
12645 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12646 ALL_DEBUG_ADDRESS_REGISTERS.
12647
df7e5265
GB
126482014-09-02 Gary Benson <gbenson@redhat.com>
12649
12650 * i386-low.h: Renamed as...
12651 * x86-low.h: New file. All type, function and variable name
12652 prefixes changed from "i386_" to "x86_". All references updated.
12653 * i386-low.c: Renamed as...
12654 * x86-low.c: New file. All type, function and variable name
12655 prefixes changed from "i386_" to "x86_". All references updated.
12656
ed859da7
GB
126572014-09-02 Gary Benson <gbenson@redhat.com>
12658
12659 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12660 (x86_linux_new_thread): Likewise.
12661
860789c7
GB
126622014-08-29 Gary Benson <gbenson@redhat.com>
12663
12664 * server.h (setjmp.h): Do not include.
12665 (toplevel): Do not declare.
12666 (common-exceptions.h): Include.
12667 (cleanups.h): Likewise.
12668 * server.c (toplevel): Do not define.
12669 (exit_code): New static global.
12670 (detach_or_kill_for_exit_cleanup): New function.
12671 (main): New function. Original main renamed to...
12672 (captured_main): New function.
12673 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12674
ff55e1b5
GB
126752014-08-29 Gary Benson <gbenson@redhat.com>
12676
12677 * Makefile.in (SFILES): Add common/common-exceptions.c.
12678 (OBS): Add common-exceptions.o.
12679 (common-exceptions.o): New rule.
12680 * utils.c (prepare_to_throw_exception): New function.
12681
e9bcb658
GB
126822014-08-29 Gary Benson <gbenson@redhat.com>
12683
12684 * config.in: Regenerate.
12685 * configure: Likewise.
12686
e3180625
GB
126872014-08-29 Gary Benson <gbenson@redhat.com>
12688
12689 * Makefile.in (SFILES): Add common/cleanups.c.
12690 (OBS): cleanups.o.
12691 (cleanups.o): New rule.
12692
e3d6ba5d
GB
126932014-08-29 Gary Benson <gbenson@redhat.com>
12694
12695 * utils.c (internal_vwarning): New function.
12696
7096e886
GB
126972014-08-28 Gary Benson <gbenson@redhat.com>
12698
12699 * utils.h (fatal): Remove declaration.
12700 * utils.c (fatal): Remove function.
12701
14ce3192
GB
127022014-08-28 Gary Benson <gbenson@redhat.com>
12703
12704 * tracepoint.c (gdb_agent_init): Replace fatal with
12705 perror_with_name.
12706 (initialize_tracepoint): Likewise.
12707
50278d59
GB
127082014-08-28 Gary Benson <gbenson@redhat.com>
12709
12710 * remote-utils.c (remote_prepare): Replace fatal with error.
12711
aa96c426
GB
127122014-08-28 Gary Benson <gbenson@redhat.com>
12713
12714 * linux-low.c (linux_async): Replace fatal with warning.
12715 Tidy up and return.
12716 (linux_start_non_stop): Return -1 if linux_async failed.
12717
f7160e97
GB
127182014-08-28 Gary Benson <gbenson@redhat.com>
12719
12720 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12721 gdb_assert.
12722 (i386_dr_low_get_addr): Remove vague comment.
12723 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12724 gdb_assert.
12725
38e08fca
GB
127262014-08-28 Gary Benson <gbenson@redhat.com>
12727
12728 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12729 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12730 internal_error.
12731 (linux_resume_one_lwp): Likewise.
12732 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12733 gdb_assert.
12734 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12735 with internal_error.
12736 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12737 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12738 (find_register_by_name): Replace fatal with internal_error.
12739 (find_regno): Likewise.
12740 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12741 * thread-db.c (thread_db_create_event): Likewise.
12742 (thread_db_load_search): Likewise.
12743 (try_thread_db_load_1): Likewise.
12744 * tracepoint.c (get_jump_space_head): Replace fatal with
12745 internal_error.
12746 (claim_trampoline_space): Likewise.
12747 (have_fast_tracepoint_trampoline_buffer): Likewise.
12748 (cmd_qtstart): Likewise.
12749 (stop_tracing): Likewise.
12750 (fast_tracepoint_collecting): Likewise.
12751 (target_malloc): Likewise.
12752 (download_tracepoint): Likewise.
12753 (download_trace_state_variables): Replace check with gdb_assert.
12754 (upload_fast_traceframes): Replace fatal with internal_error.
12755
34abf635
GB
127562014-08-19 Tom Tromey <tromey@redhat.com>
12757 Gary Benson <gbenson@redhat.com>
12758
12759 * Makefile.in (SFILES): Add common/common-debug.c.
12760 (OBS): Add common-debug.o.
12761 (common-debug.o): New rule.
12762 * debug.h (debug_printf): Don't declare.
12763 * debug.c (debug_printf): Renamed and rewritten as...
12764 (debug_vprintf): New function.
12765
f6e94d78
GB
127662014-08-19 Gary Benson <gbenson@redhat.com>
12767
12768 * utils.h: Do not include print-utils.h.
12769
9239eeab
GB
127702014-08-19 Tom Tromey <tromey@redhat.com>
12771 Gary Benson <gbenson@redhat.com>
12772
12773 * server.h: Add static assertion.
12774 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12775
ef87c8bb
GB
127762014-08-19 Tom Tromey <tromey@redhat.com>
12777 Gary Benson <gbenson@redhat.com>
12778
12779 * Makefile.in (SFILES): Add common/errors.c.
12780 (OBS): Add errors.o.
12781 (IPA_OBS): Add errors-ipa.o.
12782 (errors.o): New rule.
12783 (errors-ipa.o): Likewise.
12784 * utils.h (perror_with_name, error, warning): Don't declare.
12785 * utils.c (warning): Renamed and rewritten as...
12786 (vwarning): New function.
12787 (error): Renamed and rewritten as...
12788 (verror): New function.
12789 (internal_error): Renamed and rewritten as...
12790 (internal_verror): New function.
12791
bb974a24
GB
127922014-08-07 Gary Benson <gbenson@redhat.com>
12793
12794 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12795 * configure: Regenerate.
12796 * config.in: Likewise.
12797 * server.h: Do not include errno.h.
12798 * event-loop.c: Likewise.
12799 * hostio-errno.c: Likewise.
12800 * linux-low.c: Likewise.
12801 * remote-utils.c: Likewise.
12802 * spu-low.c: Likewise.
12803 * utils.c: Likewise.
12804 * gdbreplay.c: Unconditionally include errno.h.
12805
6d3d12eb
GB
128062014-08-07 Gary Benson <gbenson@redhat.com>
12807
12808 * server.h: Do not include string.h.
12809 * event-loop.c: Likewise.
12810 * linux-low.c: Likewise.
12811 * regcache.c: Likewise.
12812 * remote-utils.c: Likewise.
12813 * spu-low.c: Likewise.
12814 * utils.c: Likewise.
12815
dccbb609
GB
128162014-08-07 Gary Benson <gbenson@redhat.com>
12817
12818 * server.h: Do not include gdb_assert.h.
12819
e76df0d0
GB
128202014-08-07 Gary Benson <gbenson@redhat.com>
12821
12822 * server.h: Do not include common-utils.h.
12823
4cb9c816
GB
128242014-08-07 Gary Benson <gbenson@redhat.com>
12825
12826 * server.h: Do not include ptid.h.
12827 * notif.h: Likewise.
12828
3995eeee
GB
128292014-08-07 Gary Benson <gbenson@redhat.com>
12830
12831 * server.h: Do not include gdb_locale.h.
12832
cb9f1a9b
GB
128332014-08-07 Gary Benson <gbenson@redhat.com>
12834
12835 * server.h: Do not include gdb/signals.h.
12836 * win32-low.c: Likewise.
12837
a5fceff8
GB
128382014-08-07 Gary Benson <gbenson@redhat.com>
12839
12840 * server.h: Do not include pathmax.h.
12841
b9391142
GB
128422014-08-07 Gary Benson <gbenson@redhat.com>
12843
12844 * server.h: Do not include libiberty.h.
12845 * linux-bfin-low.c: Likewise.
12846
0e443c87
GB
128472014-08-07 Gary Benson <gbenson@redhat.com>
12848
12849 * server.h: Do not include ansidecl.h.
12850
8ebb3f56
GB
128512014-08-07 Gary Benson <gbenson@redhat.com>
12852
12853 * linux-x86-low.c: Do not include stddef.h.
12854 * lynx-ppc-low.c: Likewise.
12855 * tracepoint.c: Likewise.
12856
8980bdf6
GB
128572014-08-07 Gary Benson <gbenson@redhat.com>
12858
12859 * server.h: Do not include stdarg.h.
12860 * nto-low.c: Likewise.
12861
d7096f71
GB
128622014-08-07 Gary Benson <gbenson@redhat.com>
12863
12864 * server.h: Do not include stdlib.h.
12865 * inferiors.c: Likewise.
12866 * linux-low.c: Likewise.
12867 * regcache.c: Likewise.
12868 * spu-low.c: Likewise.
12869 * tracepoint.c: Likewise.
12870 * utils.c: Likewise.
12871
d02f550d
GB
128722014-08-07 Gary Benson <gbenson@redhat.com>
12873
12874 * server.h: Do not include stdio.h.
12875 * linux-low.c: Likewise.
12876 * remote-utils.c: Likewise.
12877 * spu-low.c: Likewise.
12878 * utils.c: Likewise.
12879 * wincecompat.c: Likewise.
12880
87f6c4e3
GB
128812014-08-06 Gary Benson <gbenson@redhat.com>
12882
12883 * regcache.c (init_register_cache): Move conditionals inside if.
12884
7089dca4
GB
128852014-08-06 Gary Benson <gbenson@redhat.com>
12886
12887 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12888
462f517e
GB
128892014-07-31 Gary Benson <gbenson@redhat.com>
12890
12891 * ax.h: Do not include server.h.
12892 * gdbthread.h: Likewise.
12893 * lynx-low.h: Likewise.
12894 * notif.h: Likewise.
12895
976411d6
GB
128962014-07-30 Gary Benson <gbenson@redhat.com>
12897
12898 * server.h: Include common-defs.h.
12899 Do not include config.h or build-gnulib-gdbserver/config.h.
12900
d41f6d8e
GB
129012014-07-30 Gary Benson <gbenson@redhat.com>
12902
12903 * hostio-errno.c: Move server.h to top of includes list.
12904 * inferiors.c: Likewise.
12905 * linux-x86-low.c: Likewise.
12906 * notif.c: Include server.h.
12907
314c6a35
TT
129082014-07-24 Tom Tromey <tromey@redhat.com>
12909 Gary Benson <gbenson@redhat.com>
12910
12911 * server.h (CORE_ADDR): Now unsigned.
12912
69ff6be5
PA
129132014-07-16 Pedro Alves <palves@redhat.com>
12914
12915 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12916
ce9e3fe7
PA
129172014-07-15 Pedro Alves <palves@redhat.com>
12918
12919 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12920 copy.
12921
e76126e8
PA
129222014-07-11 Pedro Alves <palves@redhat.com>
12923
12924 * linux-low.c (kill_wait_lwp): New function, based on
12925 kill_one_lwp_callback, but use my_waitpid directly.
12926 (kill_one_lwp_callback, linux_kill): Use it.
12927
8e9db26e
PA
129282014-06-23 Pedro Alves <palves@redhat.com>
12929
12930 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12931 before setting DR0..DR3.
12932
698b3e08
GB
129332014-06-20 Gary Benson <gbenson@redhat.com>
12934
12935 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12936 * configure: Regenerated.
12937 * config.in: Likewise.
12938
125f8a3d
GB
129392014-06-20 Gary Benson <gbenson@redhat.com>
12940
12941 * Makefile.in (SFILES): Update locations for files moved
12942 from common to nat.
12943 (object file files): Reordered.
12944
42995dbd
GB
129452014-06-20 Gary Benson <gbenson@redhat.com>
12946
12947 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12948 (i386_dr_low_set_addr): Likewise.
12949 (i386_dr_low_get_addr): Likewise.
12950 (i386_dr_low_can_set_control): Likewise.
12951 (i386_dr_low_set_control): Likewise.
12952 (i386_dr_low_get_control): Likewise.
12953 (i386_dr_low_get_status): Likewise.
12954 (i386_get_debug_register_length): Likewise.
12955 * linux-x86-low.c (i386_dr_low_set_addr):
12956 Changed signature. Made static.
12957 (i386_dr_low_get_addr): Likewise.
12958 (i386_dr_low_set_control): Likewise.
12959 (i386_dr_low_get_control): Likewise.
12960 (i386_dr_low_get_status): Likewise.
12961 (i386_dr_low): New global variable.
12962 * win32-i386-low.c (i386_dr_low_set_addr):
12963 Changed signature. Made static.
12964 (i386_dr_low_get_addr): Likewise.
12965 (i386_dr_low_set_control): Likewise.
12966 (i386_dr_low_get_control): Likewise.
12967 (i386_dr_low_get_status): Likewise.
12968 (i386_dr_low): New global variable.
12969
e1d2394b
MS
129702014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12971
12972 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12973 * Makefile.in (AR, AR_FLAGS): Define.
12974 * configure: Regenerate.
12975
3a8ee006
GB
129762014-06-19 Gary Benson <gbenson@redhat.com>
12977
12978 * Makefile.in (i386-dregs.o): New rule.
12979 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12980 * i386-low.c (target.h): Remove include.
12981 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12982 (DR_CONTROL_SHIFT): Likewise.
12983 (DR_CONTROL_SIZE): Likewise.
12984 (DR_RW_EXECUTE): Likewise.
12985 (DR_RW_WRITE): Likewise.
12986 (DR_RW_READ): Likewise.
12987 (DR_RW_IORW): Likewise.
12988 (DR_LEN_1): Likewise.
12989 (DR_LEN_2): Likewise.
12990 (DR_LEN_4): Likewise.
12991 (DR_LEN_8): Likewise.
12992 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12993 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12994 (DR_ENABLE_SIZE): Likewise.
12995 (DR_LOCAL_SLOWDOWN): Likewise.
12996 (DR_GLOBAL_SLOWDOWN): Likewise.
12997 (DR_CONTROL_RESERVED): Likewise.
12998 (I386_DR_CONTROL_MASK): Likewise.
12999 (I386_DR_VACANT): Likewise.
13000 (I386_DR_LOCAL_ENABLE): Likewise.
13001 (I386_DR_GLOBAL_ENABLE): Likewise.
13002 (I386_DR_DISABLE): Likewise.
13003 (I386_DR_SET_RW_LEN): Likewise.
13004 (I386_DR_GET_RW_LEN): Likewise.
13005 (I386_DR_WATCH_HIT): Likewise.
13006 (i386_wp_op_t): Likewise.
13007 (i386_show_dr): Likewise.
13008 (i386_length_and_rw_bits): Likewise.
13009 (i386_insert_aligned_watchpoint): Likewise.
13010 (i386_remove_aligned_watchpoint): Likewise.
13011 (i386_handle_nonaligned_watchpoint): Likewise.
13012 i386_update_inferior_debug_regs(): Likewise.
13013 (i386_dr_insert_watchpoint): Likewise.
13014 (i386_dr_remove_watchpoint): Likewise.
13015 (i386_dr_region_ok_for_watchpoint): Likewise.
13016 (i386_dr_stopped_data_address): Likewise.
13017 (i386_dr_stopped_by_watchpoint): Likewise.
13018
8f26655c
GB
130192014-06-19 Gary Benson <gbenson@redhat.com>
13020
13021 * i386-low.c (i386_dr_show): Renamed to
13022 i386_show_dr and made static. All uses updated.
13023 (i386_dr_length_and_rw_bits): Renamed to
13024 i386_length_and_rw_bits and made static.
13025 All uses updated.
13026 (i386_dr_insert_aligned_watchpoint): Renamed to
13027 i386_insert_aligned_watchpoint and made static.
13028 All uses updated.
13029 (i386_dr_remove_aligned_watchpoint): Renamed to
13030 i386_remove_aligned_watchpoint and made static.
13031 All uses updated.
13032 (i386_dr_update_inferior_debug_regs): Renamed to
13033 i386_update_inferior_debug_regs and made static.
13034 All uses updated.
13035
b9228891
GB
130362014-06-18 Gary Benson <gbenson@redhat.com>
13037
5171def3
GB
13038 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13039 (i386_dr_low_can_set_control): Likewise.
13040 (i386_get_debug_register_length): Likewise.
13041 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13042 (i386_dr_low_can_set_control): Likewise.
13043 (i386_get_debug_register_length): Likewise.
13044
130452014-06-17 Gary Benson <gbenson@redhat.com>
13046
b9228891
GB
13047 * i386-low.h (i386-dregs.h): New include.
13048 (DR_FIRSTADDR): Now in i386-dregs.h.
13049 (DR_LASTADDR): Likewise.
13050 (DR_NADDR): Likewise.
13051 (DR_STATUS): Likewise.
13052 (DR_CONTROL): Likewise.
13053 (i386_debug_reg_state): Likewise.
13054 (i386_dr_insert_watchpoint): Likewise.
13055 (i386_dr_remove_watchpoint): Likewise.
13056 (i386_dr_region_ok_for_watchpoint): Likewise.
13057 (i386_dr_stopped_data_address): Likewise.
13058 (i386_dr_stopped_by_watchpoint): Likewise.
13059 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13060
4be83cc2
GB
130612014-06-18 Gary Benson <gbenson@redhat.com>
13062
13063 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13064 i386_dr_insert_watchpoint.
13065 (i386_low_remove_watchpoint): Renamed to
13066 i386_dr_remove_watchpoint.
13067 (i386_low_region_ok_for_watchpoint): Renamed to
13068 i386_dr_region_ok_for_watchpoint.
13069 (i386_low_stopped_data_address): Renamed to
13070 i386_dr_stopped_data_address.
13071 (i386_low_stopped_by_watchpoint): Renamed to
13072 i386_dr_stopped_by_watchpoint.
13073 * i386-low.c (i386_show_dr): Renamed to
13074 i386_dr_show and made nonstatic. All uses updated.
13075 (i386_length_and_rw_bits): Renamed to
13076 i386_dr_length_and_rw_bits and made nonstatic.
13077 All uses updated.
13078 (i386_insert_aligned_watchpoint): Renamed to
13079 i386_dr_insert_aligned_watchpoint and made nonstatic.
13080 All uses updated.
13081 (i386_remove_aligned_watchpoint): Renamed to
13082 i386_dr_remove_aligned_watchpoint and made nonstatic.
13083 All uses updated.
13084 (i386_update_inferior_debug_regs): Renamed to
13085 i386_dr_update_inferior_debug_regs and made nonstatic.
13086 All uses updated.
13087 (i386_low_insert_watchpoint): Renamed to
13088 i386_dr_insert_watchpoint. All uses updated.
13089 (i386_low_remove_watchpoint): Renamed to
13090 i386_dr_remove_watchpoint. All uses updated.
13091 (i386_low_region_ok_for_watchpoint): Renamed to
13092 i386_dr_region_ok_for_watchpoint. All uses updated.
13093 (i386_low_stopped_data_address): Renamed to
13094 i386_dr_stopped_data_address. All uses updated.
13095 (i386_low_stopped_by_watchpoint): Renamed to
13096 i386_dr_stopped_by_watchpoint. All uses updated.
13097
131aa0d4
GB
130982014-06-18 Gary Benson <gbenson@redhat.com>
13099
13100 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13101 (i386_dr_low_can_set_control): Likewise.
13102 (i386_insert_aligned_watchpoint): New check.
13103
d9305f7f
GB
131042014-06-18 Gary Benson <gbenson@redhat.com>
13105
13106 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13107 Renamed to state.
13108
e927c9fc
GB
131092014-06-18 Gary Benson <gbenson@redhat.com>
13110
13111 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13112 instead of fatal and error.
13113 (i386_handle_nonaligned_watchpoint): Likewise.
13114
1b6d4134
GB
131152014-06-18 Gary Benson <gbenson@redhat.com>
13116
13117 * i386-low.c (i386_get_debug_register_length): New macro.
13118 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13119 (i386_show_dr): Use debug_printf instead of fprintf. Use
13120 phex to format values.
13121
6e62758f
GB
131222014-06-18 Gary Benson <gbenson@redhat.com>
13123
13124 * i386-low.h: Comment changes.
13125 * i386-low.c: Likewise.
13126
fc6e2f03
GB
131272014-06-18 Gary Benson <gbenson@redhat.com>
13128
13129 * i386-low.c: Whitespace changes.
13130
f9d1eeed
TT
131312014-06-12 Tom Tromey <tromey@redhat.com>
13132
13133 * utils.c (freeargv): Remove.
13134
0b04e523
TT
131352014-06-12 Tom Tromey <tromey@redhat.com>
13136
13137 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13138 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13139 (parse_debug_format_options): Likewise.
13140 (gdbserver_usage): Likewise.
13141 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13142 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13143 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13144 against libiberty.
13145 ($(LIBGNU)): Depend on libiberty.
13146 (all-lib): Recurse into all subdirs.
13147 (install-only): Invoke "install" target in subdirs.
13148 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13149 targets.
13150 * configure: Rebuild.
13151 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13152 for vasprintf, vsnprintf, or gettimeofday.
13153 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13154 srv_tgtobj.
13155
270c9937
JB
131562014-06-05 Joel Brobecker <brobecker@adacore.com>
13157
13158 * development.sh: Delete.
13159 * Makefile.in (config.status): Adjust dependency on development.sh.
13160 * configure.ac: Adjust development.sh source call.
13161 * configure: Regenerate.
13162
0a261ed8
PA
131632014-06-02 Pedro Alves <palves@redhat.com>
13164
13165 * ax.c (gdb_free_agent_expr): New function.
13166 * ax.h (gdb_free_agent_expr): New declaration.
13167 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13168 list.
13169 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13170 static.
13171 (clear_breakpoint_conditions_and_commands): New function.
13172 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13173 (clear_breakpoint_conditions_and_commands): New declaration.
13174
e9dae05e
RR
131752014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13176
13177 * linux-aarch64-low.c (asm/ptrace.h): Include.
13178
5876f503
JK
131792014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13180
13181 Fix TLS access for -static -pthread.
13182 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13183 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13184 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13185
802e8e6d
PA
131862014-05-20 Pedro Alves <palves@redhat.com>
13187
13188 * linux-aarch64-low.c (aarch64_insert_point)
13189 (aarch64_remove_point): No longer check whether the type is
13190 supported here. Adjust to new interface.
13191 (the_low_target): Install aarch64_supports_z_point_type as
13192 supports_z_point_type method.
13193 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13194 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13195 instead of a Z packet char. Adjust.
13196 (arm_supports_z_point_type): New function.
13197 (arm_insert_point, arm_remove_point): Adjust to new interface.
13198 (the_low_target): Install arm_supports_z_point_type.
13199 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13200 (cris_insert_point, cris_remove_point): Adjust to new interface.
13201 Don't check whether the type is supported here.
13202 (the_low_target): Install cris_supports_z_point_type.
13203 * linux-low.c (linux_supports_z_point_type): New function.
13204 (linux_insert_point, linux_remove_point): Adjust to new interface.
13205 * linux-low.h (struct linux_target_ops) <insert_point,
13206 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13207 raw_breakpoint pointer parameter.
13208 <supports_z_point_type>: New method.
13209 * linux-mips-low.c (mips_supports_z_point_type): New function.
13210 (mips_insert_point, mips_remove_point): Adjust to new interface.
13211 Use mips_supports_z_point_type.
13212 (the_low_target): Install mips_supports_z_point_type.
13213 * linux-ppc-low.c (the_low_target): Install NULL as
13214 supports_z_point_type method.
13215 * linux-s390-low.c (the_low_target): Install NULL as
13216 supports_z_point_type method.
13217 * linux-sparc-low.c (the_low_target): Install NULL as
13218 supports_z_point_type method.
13219 * linux-x86-low.c (x86_supports_z_point_type): New function.
13220 (x86_insert_point): Adjust to new insert_point interface. Use
13221 insert_memory_breakpoint. Adjust to new
13222 i386_low_insert_watchpoint interface.
13223 (x86_remove_point): Adjust to remove_point interface. Use
13224 remove_memory_breakpoint. Adjust to new
13225 i386_low_remove_watchpoint interface.
13226 (the_low_target): Install x86_supports_z_point_type.
13227 * lynx-low.c (lynx_target_ops): Install NULL as
13228 supports_z_point_type callback.
13229 * nto-low.c (nto_supports_z_point_type): New.
13230 (nto_insert_point, nto_remove_point): Adjust to new interface.
13231 (nto_target_ops): Install nto_supports_z_point_type.
13232 * mem-break.c: Adjust intro comment.
13233 (struct raw_breakpoint) <raw_type, size>: New fields.
13234 <inserted>: Update comment.
13235 <shlib_disabled>: Delete field.
13236 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13237 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13238 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13239 (raw_bkpt_type_to_target_hw_bp_type): New function.
13240 (find_enabled_raw_code_breakpoint_at): New function.
13241 (find_raw_breakpoint_at): New type and size parameters. Use them.
13242 (insert_memory_breakpoint): New function, based off
13243 set_raw_breakpoint_at.
13244 (remove_memory_breakpoint): New function.
13245 (set_raw_breakpoint_at): Reimplement.
13246 (set_breakpoint): New, based on set_breakpoint_at.
13247 (set_breakpoint_at): Reimplement.
13248 (delete_raw_breakpoint): Go through the_target->remove_point
13249 instead of assuming memory breakpoints.
13250 (find_gdb_breakpoint_at): Delete.
13251 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13252 (find_gdb_breakpoint): New function.
13253 (set_gdb_breakpoint_at): Delete.
13254 (z_type_supported): New function.
13255 (set_gdb_breakpoint_1): New function, loosely based off
13256 set_gdb_breakpoint_at.
13257 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13258 (delete_gdb_breakpoint_at): Delete.
13259 (delete_gdb_breakpoint_1): New function, loosely based off
13260 delete_gdb_breakpoint_at.
13261 (delete_gdb_breakpoint): New function.
13262 (clear_gdb_breakpoint_conditions): Rename to ...
13263 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13264 breakpoint.
13265 (add_condition_to_breakpoint): Make static.
13266 (add_breakpoint_condition): Take a struct breakpoint pointer
13267 instead of an address. Adjust.
13268 (gdb_condition_true_at_breakpoint): Rename to ...
13269 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13270 z_type parameter.
13271 (gdb_condition_true_at_breakpoint): Reimplement.
13272 (add_breakpoint_commands): Take a struct breakpoint pointer
13273 instead of an address. Adjust.
13274 (gdb_no_commands_at_breakpoint): Rename to ...
13275 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13276 parameter. Return true if no breakpoint was found. Change debug
13277 output.
13278 (gdb_no_commands_at_breakpoint): Reimplement.
13279 (run_breakpoint_commands): Rename to ...
13280 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13281 and change return type to boolean.
13282 (run_breakpoint_commands): New function.
13283 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13284 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13285 breakpoint. Go through the_target->remove_point instead of
13286 assuming memory breakpoint.
13287 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13288 software and hardware breakpoints.
13289 (reinsert_raw_breakpoint): Go through the_target->insert_point
13290 instead of assuming memory breakpoint.
13291 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13292 software and hardware breakpoints.
13293 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13294 Check both software and hardware breakpoints.
13295 (validate_inserted_breakpoint): Assert the breakpoint is a
13296 software breakpoint. Set the inserted flag to -1 instead of
13297 setting shlib_disabled.
13298 (delete_disabled_breakpoints): Adjust.
13299 (validate_breakpoints): Only validate software breakpoints.
13300 Adjust to inserted flag change.
13301 (check_mem_read, check_mem_write): Skip breakpoint types other
13302 than software breakpoints. Adjust to inserted flag change.
13303 * mem-break.h (enum raw_bkpt_type): New enum.
13304 (raw_breakpoint, struct process_info): Forward declare.
13305 (Z_packet_to_target_hw_bp_type): Delete declaration.
13306 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13307 (set_gdb_breakpoint, delete_gdb_breakpoint)
13308 (clear_breakpoint_conditions): New declarations.
13309 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13310 (breakpoint_inserted_here): Update comment.
13311 (add_breakpoint_condition, add_breakpoint_commands): Replace
13312 address parameter with a breakpoint pointer parameter.
13313 (gdb_breakpoint_here): Update comment.
13314 (delete_gdb_breakpoint_at): Delete.
13315 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13316 * server.c (process_point_options): Take a struct breakpoint
13317 pointer instead of an address. Adjust.
13318 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13319 delete_gdb_breakpoint.
13320 * spu-low.c (spu_target_ops): Install NULL as
13321 supports_z_point_type method.
13322 * target.h: Include mem-break.h.
13323 (struct target_ops) <prepare_to_access_memory>: Update comment.
13324 <supports_z_point_type>: New field.
13325 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13326 instead of a char. Also take a raw breakpoint pointer.
13327 * win32-arm-low.c (the_low_target): Install NULL as
13328 supports_z_point_type.
13329 * win32-i386-low.c (i386_supports_z_point_type): New function.
13330 (i386_insert_point, i386_remove_point): Adjust to new interface.
13331 (the_low_target): Install i386_supports_z_point_type.
13332 * win32-low.c (win32_supports_z_point_type): New function.
13333 (win32_insert_point, win32_remove_point): Adjust to new interface.
13334 (win32_target_ops): Install win32_supports_z_point_type.
13335 * win32-low.h (struct win32_target_ops):
13336 <supports_z_point_type>: New method.
13337 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13338 instead of a char. Also take a raw breakpoint pointer.
13339
932539e3
PA
133402014-05-20 Pedro Alves <palves@redhat.com>
13341
13342 * mem-break.h: Include break-common.h.
13343 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13344 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13345 (Z_packet_to_target_hw_bp_type): New declaration.
13346 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13347 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13348 (Z_PACKET_ACCESS_WP): Delete macros.
13349 (Z_packet_to_hw_type): Delete function.
13350 * i386-low.h: Don't include break-common.h here.
13351 (Z_packet_to_hw_type): Delete declaration.
13352 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13353 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13354 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13355 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13356 * linux-aarch64-low.c: Don't include break-common.h here.
13357 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13358 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13359 (Z_packet_to_target_hw_bp_type): Delete function.
13360 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13361 function.
13362 (mips_insert_point, mips_remove_point): Use
13363 Z_packet_to_target_hw_bp_type.
13364
4ff0d3d8
PA
133652014-05-20 Pedro Alves <palves@redhat.com>
13366
13367 * linux-aarch64-low.c: Include break-common.h.
13368 (enum target_point_type): Delete.
13369 (Z_packet_to_point_type): Rename to ...
13370 (Z_packet_to_target_hw_bp_type): ... this, and return a
13371 target_hw_bp_type instead.
13372 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13373 instead of an enum target_point_type.
13374 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13375 breakpoint type.
13376 (aarch64_dr_state_insert_one_point)
13377 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13378 (aarch64_handle_aligned_watchpoint)
13379 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13380 Take an enum target_hw_bp_type instead of an enum
13381 target_point_type.
13382 (aarch64_supports_z_point_type): New function.
13383 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13384 use Z_packet_to_target_hw_bp_type.
13385
786dc519
JB
133862014-05-20 Joel Brobecker <brobecker@adacore.com>
13387
13388 * configure.ac: Only use -Werror by default when DEVELOPMENT
13389 is true.
13390 * configure: Regenerate.
13391
9e0aa64f
JK
133922014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13393
13394 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13395 * linux-x86-low.c (X86_64_USER_REGS): New.
13396 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13397
2b577b92
YQ
133982014-04-28 Yao Qi <yao@codesourcery.com>
13399
13400 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13401 name.
13402
94611da2
PA
134032014-04-25 Pedro Alves <palves@redhat.com>
13404
13405 PR server/16255
13406 * linux-low.c (linux_attach_fail_reason_string): New function.
13407 (linux_attach_lwp): Delete.
13408 (linux_attach_lwp_1): Rename to ...
13409 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13410 argument. Remove "initial" parameter. Return int instead of
13411 void. Don't error or warn here.
13412 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13413 failure to attach to the tgid. Call warning when failing to
13414 attach to an lwp.
13415 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13416 argument. Remove "initial" parameter. Return int instead of
13417 void. Don't error or warn here.
13418 (linux_attach_fail_reason_string): New declaration.
13419 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13420 interface change. Use linux_attach_fail_reason_string.
13421
01f9f808
MS
134222014-04-24 Michael Sturm <michael.sturm@mintel.com>
13423 Walfred Tedeschi <walfred.tedeschi@intel.com>
13424
13425 * Makefile.in: Added rules to handle new files
13426 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13427 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13428 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13429 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13430 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13431 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13432 x32-avx512-linux.o.
13433 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13434 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13435 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13436 i386/x32-avx512.xml.
13437 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13438 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13439 i386/x32-avx512-linux.xml.
13440 * i387-fp.c (num_avx512_k_registers): New constant for number
13441 of K registers.
13442 (num_avx512_zmmh_low_registers): New constant for number of
13443 lower ZMM registers (0-15).
13444 (num_avx512_zmmh_high_registers): New constant for number of
13445 higher ZMM registers (16-31).
13446 (num_avx512_ymmh_registers): New contant for number of higher
13447 YMM registers (ymm16-31 added by avx521 on x86_64).
13448 (num_avx512_xmm_registers): New constant for number of higher
13449 XMM registers (xmm16-31 added by AVX512 on x86_64).
13450 (struct i387_xsave): Add space for AVX512 registers.
13451 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13452 Add code to handle AVX512 registers.
13453 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13454 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13455 prototypei from generated file.
13456 (tdesc_amd64_avx512_linux): Likewise.
13457 (init_registers_x32_avx512_linux): Likewise.
13458 (tdesc_x32_avx512_linux): Likewise.
13459 (init_registers_i386_avx512_linux): Likewise.
13460 (tdesc_i386_avx512_linux): Likewise.
13461 (x86_64_regmap): Add AVX512 registers.
13462 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13463 mask.
13464 (initialize_low_arch): Add code to initialize AVX512 registers.
13465
51aa91f9
PA
134662014-04-23 Pedro Alves <palves@redhat.com>
13467
13468 * mem-break.c (find_gdb_breakpoint_at): Make static.
13469 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13470
a4165e94
PA
134712014-04-23 Pedro Alves <palves@redhat.com>
13472
13473 * i386-low.c: Don't include break-common.h here.
13474 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13475 prototype to take target_hw_bp_type as argument instead of a Z
13476 packet char.
13477 * i386-low.h: Include break-common.h here.
13478 (Z_packet_to_hw_type): Declare.
13479 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13480 prototypes.
13481 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13482 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13483 (x86_remove_point): Convert the packet number to a
13484 target_hw_bp_type before calling i386_low_remove_watchpoint.
13485 * win32-i386-low.c (i386_insert_point): Convert the packet number
13486 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13487 (i386_remove_point): Convert the packet number to a
13488 target_hw_bp_type before calling i386_low_remove_watchpoint.
13489
b8acf843
PA
134902014-04-23 Pedro Alves <palves@redhat.com>
13491
13492 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13493
d708bcd1
PA
134942014-04-10 Pedro Alves <palves@redhat.com>
13495
13496 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13497 Check if the condition or command is NULL before checking if the
13498 breakpoint is known. On success, return true.
13499 * mem-break.h (add_breakpoint_condition): Document return.
13500 (add_breakpoint_commands): Add describing comment.
13501 * server.c (skip_to_semicolon): New function.
13502 (process_point_options): Use it.
13503
2eec7d5b
PA
135042014-04-09 Pedro Alves <palves@redhat.com>
13505
13506 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13507 to lwpid_of.
13508
fa96cb38
PA
135092014-02-27 Pedro Alves <palves@redhat.com>
13510
13511 PR 12702
13512 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13513 macros.
13514 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13515 output.
13516 (last_thread_of_process_p): Take a PID argument instead of a
13517 thread pointer.
13518 (linux_wait_for_lwp): Delete.
13519 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13520 functions.
13521 (linux_low_filter_event): New function, party factored out from
13522 linux_wait_for_event.
13523 (linux_wait_for_event): Rename to ...
13524 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13525 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13526 sigsuspend. Check for zombie leaders.
13527 (linux_wait_for_event): Reimplement as wrapper around
13528 linux_wait_for_event_filtered.
13529 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13530 a normal or signal exit is seen, it's the whole process exiting.
13531 (wait_for_sigstop): No longer a for_each_inferior callback.
13532 Rewrite on top of linux_wait_for_event_filtered.
13533 (stop_all_lwps): Call wait_for_sigstop directly.
13534 * server.c (resume, handle_target_event): Handle
13535 TARGET_WAITKIND_NO_RESUMED.
13536
d763de10
JB
135372014-02-26 Joel Brobecker <brobecker@adacore.com>
13538
13539 * win32-low.c (psapi_get_dll_name,
13540 * win32_CreateToolhelp32Snapshot): Delete.
13541 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13542 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13543 Delete.
13544 (handle_load_dll): Add function description.
13545 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13546
850a0f76
JB
135472014-02-26 Joel Brobecker <brobecker@adacore.com>
13548
13549 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13550 Add comment.
13551 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13552 base address when calling win32_add_one_solib.
13553 (handle_load_dll): Delete local variable load_addr.
13554 Remove 0x1000 offset applied to DLL base address when calling
13555 win32_add_one_solib.
13556 (handle_unload_dll): Add comment.
13557
f25b3fc3
JB
135582014-02-26 Joel Brobecker <brobecker@adacore.com>
13559
13560 * win32-low.c (win32_add_all_dlls): Renames
13561 win32_ensure_ntdll_loaded. Rewrite function documentation.
13562 Adjust implementation to always load all DLLs.
13563 Add 0x1000 offset to DLL base address when calling
13564 win32_add_one_solib.
13565 (child_initialization_done): New static global.
13566 (do_initial_child_stuff): Set child_initialization_done to
13567 zero during child initialization, and 1 after. Replace call
13568 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13569 Add comment.
13570 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13571 (handle_unload_dll): Add function documentation.
13572 (get_child_debug_event): Ignore load and unload DLL events
13573 during child initialization.
13574
d86d4aaf
DE
135752014-02-20 Doug Evans <dje@google.com>
13576
3bc32da3 13577 Remove global all_lwps.
d86d4aaf
DE
13578 * inferiors.h (ptid_of): Move here from linux-low.h.
13579 (pid_of, lwpid_of): Ditto.
13580 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13581 parameter is a struct thread_info * now.
13582 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13583 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13584 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13585 directly.
13586 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13587 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13588 * linux-arm-low.c (update_registers_callback): Update, "entry"
13589 parameter is a struct thread_info * now.
13590 Fetch lwpid from current_inferior directly.
13591 (arm_insert_point): Pass &all_threads to find_inferior instead of
13592 &all_lwps.
13593 (arm_remove_point): Ditto.
13594 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13595 (arm_prepare_to_resume): Fetch pid from thread.
13596 (arm_read_description): Fetch lwpid from current_inferior directly.
13597 * linux-low.c (all_lwps): Delete.
13598 (delete_lwp): Delete call to remove_inferior.
13599 (handle_extended_wait): Fetch lwpid from thread.
13600 (add_lwp): Don't set lwp->entry.id. Remove call to
13601 add_inferior_to_list.
13602 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13603 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13604 (kill_one_lwp_callback): Ditto.
13605 (linux_kill): Don't dereference NULL pointer.
13606 Fetch ptid,lwpid from thread.
13607 (get_detach_signal): Fetch ptid from thread.
13608 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13609 Simplify call to regcache_invalidate_thread.
13610 (delete_lwp_callback): Update, "entry" parameter is a
13611 struct thread_info * now. Fetch pid from thread.
13612 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13613 (status_pending_p_callback): Update, "entry" parameter is a
13614 struct thread_info * now. Fetch ptid from thread.
13615 (find_lwp_pid): Update, "entry" parameter is a
13616 struct thread_info * now.
13617 (linux_wait_for_lwp): Fetch pid from thread.
13618 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13619 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13620 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13621 (dequeue_one_deferred_signal): Ditto.
13622 (cancel_breakpoint): Fetch ptid from current_inferior.
13623 (linux_wait_for_event): Pass &all_threads to find_inferior,
13624 not &all_lwps. Fetch ptid, lwpid from thread.
13625 (count_events_callback): Update, "entry" parameter is a
13626 struct thread_info * now.
13627 (select_singlestep_lwp_callback): Ditto.
13628 (select_event_lwp_callback): Ditto.
13629 (cancel_breakpoints_callback): Ditto.
13630 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13631 not &all_lwps.
13632 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13633 (unsuspend_one_lwp): Update, "entry" parameter is a
13634 struct thread_info * now.
13635 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13636 not &all_lwps.
13637 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13638 Fetch lwpid from thread, not lwp.
13639 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13640 Pass &all_threads to find_inferior, not &all_lwps.
13641 (send_sigstop): Fetch lwpid from thread, not lwp.
13642 (send_sigstop_callback): Update, "entry" parameter is a
13643 struct thread_info * now.
13644 (suspend_and_send_sigstop_callback): Ditto.
13645 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13646 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13647 struct thread_info * now.
13648 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13649 from thread, lwp.
13650 (lwp_running): Update, "entry" parameter is a
13651 struct thread_info * now.
13652 (stop_all_lwps): Fetch ptid from thread.
13653 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13654 (linux_resume_one_lwp): Fetch lwpid from thread.
13655 (linux_set_resume_request): Update, "entry" parameter is a
13656 struct thread_info * now. Fetch pid, lwpid from thread.
13657 (resume_status_pending_p): Update, "entry" parameter is a
13658 struct thread_info * now.
13659 (need_step_over_p): Ditto. Fetch lwpid from thread.
13660 (start_step_over): Fetch lwpid from thread.
13661 (linux_resume_one_thread): Update, "entry" parameter is a
13662 struct thread_info * now. Fetch lwpid from thread.
13663 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13664 (proceed_one_lwp): Update, "entry" parameter is a
13665 struct thread_info * now. Fetch lwpid from thread.
13666 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13667 struct thread_info * now.
13668 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13669 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13670 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13671 directly.
13672 (regsets_store_inferior_registers): Ditto.
13673 (fetch_register, store_register): Ditto.
13674 (linux_read_memory, linux_write_memory): Ditto.
13675 (linux_request_interrupt): Ditto.
13676 (linux_read_auxv): Ditto.
13677 (linux_xfer_siginfo): Ditto.
13678 (linux_qxfer_spu): Ditto.
13679 (linux_qxfer_libraries_svr4): Ditto.
13680 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13681 moved to inferiors.h.
13682 (get_lwp): Delete.
13683 (get_thread_lwp): Update.
13684 (struct lwp_info): Delete member "entry". Simplify comment for
13685 member "thread".
13686 (all_lwps): Delete.
13687 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13688 current_inferior directly.
13689 (update_watch_registers_callback): Update, "entry" parameter is a
13690 struct thread_info * now. Fetch pid from thread.
13691 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13692 (mips_insert_point): Fetch lwpid from current_inferior.
13693 Pass &all_threads to find_inferior, not &all_lwps.
13694 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13695 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13696 directly.
13697 (mips_stopped_data_address): Ditto.
13698 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13699 directly.
13700 * linux-tile-low.c (tile_arch_setup): Ditto.
13701 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13702 (update_debug_registers_callback): Update, "entry" parameter is a
13703 struct thread_info * now. Fetch pid from thread.
13704 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13705 Pass &all_threads to find_inferior, not &all_lwps.
13706 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13707 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13708 Pass &all_threads to find_inferior, not &all_lwps.
13709 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13710 (i386_dr_low_get_status): Ditto.
13711 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13712 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13713 (x86_linux_read_description): Ditto.
13714 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13715
3b8361aa
DE
137162014-02-20 Doug Evans <dje@google.com>
13717
13718 * inferiors.c (get_first_inferior): Fix buglet.
13719
f7667f0d
DE
137202014-02-19 Doug Evans <dje@google.com>
13721
13722 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13723 * inferiors.c (add_thread): Change result type to struct thread_info *.
13724 All callers updated.
13725 (add_lwp): Call add_thread here instead of in callers.
13726 All callers updated.
13727 * linux-low.h (get_lwp_thread): Rewrite.
13728 (struct lwp_info): New member "thread".
13729
b3312d80
DE
137302014-02-19 Doug Evans <dje@google.com>
13731
13732 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13733 All callers updated.
13734
ecc6f45c
DE
137352014-02-19 Doug Evans <dje@google.com>
13736
13737 * inferiors.c (add_thread): Fix whitespace.
13738
649ebbca
DE
137392014-02-19 Doug Evans <dje@google.com>
13740
13741 * dll.c (clear_dlls): Replace accessing list implemention details
13742 with API function.
13743 * gdbthread.h (get_first_thread): Declare.
13744 * inferiors.c (for_each_inferior_with_data): New function.
13745 (get_first_thread): New function.
13746 (find_thread_ptid): Simplify.
13747 (get_first_inferior): New function.
13748 (clear_list): Delete.
13749 (one_inferior_p): New function.
13750 (clear_inferior_list): New function.
13751 (clear_inferiors): Update.
13752 * inferiors.h (for_each_inferior_with_data): Declare.
13753 (clear_inferior_list): Declare.
13754 (one_inferior_p): Declare.
13755 (get_first_inferior): Declare.
13756 * linux-low.c (linux_wait_for_event): Replace accessing list
13757 implemention details with API function.
13758 * server.c (target_running): Ditto.
13759 (accumulate_file_name_length): New function.
13760 (emit_dll_description): New function.
13761 (handle_qxfer_libraries): Replace accessing list implemention
13762 details with API function.
13763 (handle_qxfer_threads_worker): New function.
13764 (handle_qxfer_threads_proper): Replace accessing list implemention
13765 details with API function.
13766 (handle_query): Ditto.
13767 (visit_actioned_threads_callback_ftype): New typedef.
13768 (visit_actioned_threads_data): New struct.
13769 (visit_actioned_threads): Rewrite to be find_inferior callback.
13770 (resume): Call find_inferior.
13771 (handle_status): Replace accessing list implemention
13772 details with API function.
13773 (process_serial_event): Replace accessing list implemention details
13774 with API function.
13775 * target.c (set_desired_inferior): Replace accessing list implemention
13776 details with API function.
13777 * tracepoint.c (same_process_p): New function.
13778 (gdb_agent_about_to_close): Replace accessing list implemention
13779 details with API function.
13780 * win32-low.c (child_delete_thread): Replace accessing list
13781 implemention details with API function.
13782 (match_dll_by_basename): New function.
13783 (dll_is_loaded_by_basename): New function.
13784 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13785 details call to dll_is_loaded_by_basename.
13786
80894984
DE
137872014-02-19 Doug Evans <dje@google.com>
13788
13789 * dll.h (struct dll_info): Add comment.
13790 * gdbthread.h (struct thread_info): Add comment.
13791 (current_ptid): Simplify.
13792 * inferiors.c (add_process): Update.
13793 (remove_process): Update.
13794 * inferiors.h (struct process_info): Rename member "head" to "entry".
13795 * linux-low.c (delete_lwp): Update.
13796 (add_lwp): Update.
13797 (last_thread_of_process_p): Update.
13798 (kill_one_lwp_callback, linux_kill): Update.
13799 (status_pending_p_callback): Update.
13800 (wait_for_sigstop): Update. Simplify read of ptid.
13801 (start_step_over): Update.
13802 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13803 (get_lwp_thread): Update.
13804 (struct lwp_info): Rename member "head" to "entry".
13805 * regcache.h (inferior_list_entry): Delete.
13806 * server.c (kill_inferior_callback): Update.
13807 (detach_or_kill_inferior_callback): Update.
13808 (print_started_pid): Update.
13809 (print_attached_pid): Update.
13810 (process_serial_event): Simplify read of ptid.
13811 * thread-db.c (thread_db_create_event): Update.
13812 (thread_db_get_tls_address): Update.
13813 * win32-low.c (current_inferior_ptid): Simplify.
13814
46917d26
TT
138152014-02-19 Tom Tromey <tromey@redhat.com>
13816
13817 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13818 argument.
13819 (target_supports_btrace): Update.
13820
0759a81e
YQ
138212014-02-14 Yao Qi <yao@codesourcery.com>
13822
13823 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13824 (rsp-low-ipa.o): New target.
13825
a7191e8b
TT
138262014-02-12 Tom Tromey <tromey@redhat.com>
13827
13828 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13829 convert_ascii_to_int.
13830 * regcache.c (registers_to_string): Likewise.
13831 * remote-utils.c (decode_M_packet): Likewise.
13832 * server.c (process_serial_event): Likewise.
13833
ff0e980e
TT
138342014-02-12 Tom Tromey <tromey@redhat.com>
13835
13836 * server.c (handle_query, handle_v_run): Use hex2bin, not
13837 unhexify.
13838 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13839
e9371aff
TT
138402014-02-12 Tom Tromey <tromey@redhat.com>
13841
13842 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13843 convert_int_to_ascii.
13844 * regcache.c (registers_to_string, collect_register_as_string):
13845 Likewise.
13846 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13847 Likewise.
13848 * server.c (process_serial_event): Likewise.
13849 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13850 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13851
971dc0b8
TT
138522014-02-12 Tom Tromey <tromey@redhat.com>
13853
13854 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13855 bin2hex, not hexify.
13856 * tracepoint.c (cmd_qtstatus): Likewise.
13857
0a822afb
TT
138582014-02-12 Tom Tromey <tromey@redhat.com>
13859
13860 * remote-utils.c (monitor_output): Pass explicit length to
13861 hexify.
13862
9c3d6531
TT
138632014-02-12 Tom Tromey <tromey@redhat.com>
13864
13865 * tracepoint.c: Include rsp-low.h.
13866 * server.c: Include rsp-low.h.
13867 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13868 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13869 declare.
13870 * remote-utils.c: Include rsp-low.h.
13871 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13872 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13873 (convert_int_to_ascii, convert_ascii_to_int): Move to
13874 common/rsp-low.c.
13875 * regcache.c: Include rsp-low.h.
13876 * ax.c: Include rsp-low.h.
13877 * Makefile.in (SFILES): Add common/rsp-low.c.
13878 (OBS): Add rsp-low.o.
13879 (rsp-low.o): New target.
13880
01fd3ea5
TT
138812014-02-12 Tom Tromey <tromey@redhat.com>
13882
13883 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13884 Include print-utils.h.
13885 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13886 (plongest, thirty_two, phex_nz): Remove.
13887 * Makefile.in (SFILES): Add common/print-utils.c.
13888 (OBS): Add print-utils.o.
13889 (print-utils-ipa.o): New target.
13890 (print-utils.o): New target.
13891 (IPA_OBJS): Add print-utils-ipa.o.
13892
e99dc820
TT
138932014-02-06 Tom Tromey <tromey@redhat.com>
13894
13895 * Makefile.in (SFILES): Fix indentation.
13896
ee1e2d4f
DE
138972014-02-05 Doug Evans <dje@google.com>
13898
13899 * linux-low.c (linux_wait_for_event): Improve comment.
13900 (linux_wait_1): Keep current_inferior in sync with event_child.
13901
f5a02773
DE
139022014-01-22 Doug Evans <dje@google.com>
13903
13904 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13905
87ce2a04
DE
139062014-01-22 Doug Evans <dje@google.com>
13907
13908 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13909 * configure: Regenerate.
13910 * config.in: Regenerate.
13911 * Makefile.in (SFILES): Add debug.c.
13912 (OBS): Add debug.o.
13913 * debug.c: New file.
13914 * debug.h: New file.
13915 * linux-aarch64-low.c (*): Update all debugging printfs to use
13916 debug_printf instead of fprintf.
13917 * linux-arm-low.c (*): Ditto.
13918 * linux-cris-low.c (*): Ditto.
13919 * linux-crisv32-low.c (*): Ditto.
13920 * linux-m32r-low.c (*): Ditto.
13921 * linux-sparc-low.c (*): Ditto.
13922 * linux-x86.c (*): Ditto.
13923 * linux-low.c (*): Ditto.
13924 (linux_wait_1): Add calls to debug_enter, debug_exit.
13925 (linux_wait): Remove redundant debugging printf.
13926 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13927 (linux_resume, unstop_all_lwps): Ditto.
13928 * mem-break.c (*): Update all debugging printfs to use
13929 debug_printf instead of fprintf.
13930 * remote-utils.c (*): Ditto.
13931 * thread-db.c (*): Ditto.
13932 * server.c #include <ctype.h>, "gdb_vecs.h".
13933 (debug_threads): Moved to debug.c.
13934 (*): Update all debugging printfs to use debug_printf instead of
13935 fprintf.
13936 (start_inferior): Replace call to fflush with call to debug_flush.
13937 (monitor_show_help): Mention set debug-format.
13938 (parse_debug_format_options): New function.
13939 (handle_monitor_command): Handle "monitor set debug-format".
13940 (gdbserver_usage): Mention --debug-format.
13941 (main): Parse --debug-format.
13942 * server.h (debug_threads): Declaration moved to debug.h.
13943 #include "debug.h".
13944 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13945 trace_debug_1 that uses debug_printf.
13946 (tracepoint_look_up_symbols): Update all debugging printfs to use
13947 debug_printf instead of fprintf.
13948
e671835b
BS
139492014-01-20 Baruch Siach <baruch@tkos.co.il>
13950
13951 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13952 sys/ptrace.h.
13953
b5737fa9
PA
139542014-01-17 Pedro Alves <palves@redhat.com>
13955
ea38d2a9 13956 PR build/16445
c7faa97a
PA
13957 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13958 defined after including gdb_proc_service.h.
b5737fa9 13959
40ed484e
DE
139602014-01-16 Doug Evans <dje@google.com>
13961
13962 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13963 (match_dll): Use it.
13964
969c39fb
MM
139652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13966
13967 * target.h (target_ops) <read_btrace>: Change parameters and
13968 return type to allow error reporting.
13969 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13970 trace reading errors on.
13971 * linux-low.c (linux_low_read_btrace): Pass trace reading
13972 errors on.
13973 (linux_low_disable_btrace): New.
13974
ab7f45ba
DE
139752014-01-15 Doug Evans <dje@google.com>
13976
13977 * inferiors.c (thread_id_to_gdb_id): Delete.
13978 * inferiors.h (thread_id_to_gdb_id): Delete.
13979
66af0f44
EZ
139802014-01-13 Eli Zaretskii <eliz@gnu.org>
13981
13982 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13983 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13984 versions.
13985
9939e131
PA
139862014-01-08 Pedro Alves <palves@redhat.com>
13987
13988 * server.c (handle_status): Don't discard previous queued stop
13989 replies or thread's pending status here.
13990 (main) <disconnection>: Do it here instead.
13991
b7ea362b
PA
139922014-01-08 Pedro Alves <palves@redhat.com>
13993
13994 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13995 * server.c (visit_actioned_threads, handle_pending_status): New
13996 function.
13997 (handle_v_cont): Factor out parts to ...
13998 (resume): ... this new function. If in all-stop, and a thread
13999 being resumed has a pending status, report it without actually
14000 resuming.
14001 (myresume): Adjust to use the new 'resume' function.
14002 (clear_pending_status_callback, set_pending_status_callback)
14003 (find_status_pending_thread_callback): New functions.
14004 (handle_status): Handle the case of multiple threads having
14005 interesting statuses to report. Report threads' real last signal
14006 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
14007 with an interesting thread to report the status for, instead of
14008 always reporting the status of the first thread.
14009
28498c42
JB
140102014-01-01 Joel Brobecker <brobecker@adacore.com>
14011
14012 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
14013 * gdbreplay.c (gdbreplay_version): Likewise.
14014
f45c82da
YZ
140152013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
14016
14017 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
14018 iov.iov_len with the real length in use.
14019
379a5e2d
JB
140202013-12-13 Joel Brobecker <brobecker@adacore.com>
14021
14022 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14023 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14024 for all targets that use win32-low.c.
14025 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14026 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14027
4210d83e
PA
140282013-12-13 Pedro Alves <palves@redhat.com>
14029
14030 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14031 if equal to TARGET_WAITKIND_LOADED.
14032 * win32-low.c (cached_status): New static global.
14033 (win32_wait): Add declaration.
14034 (do_initial_child_stuff): Flush all initial pending debug events
14035 up to the initial breakpoint.
14036 (win32_wait): If CACHED_STATUS was set, return that instead
14037 of doing a real wait. Remove the code resuming the execution
14038 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14039 during the initial phase. Also remove the code changing
14040 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14041 TARGET_WAITKIND_STOPPED.
14042
e7f0d979
YQ
140432013-12-11 Yao Qi <yao@codesourcery.com>
14044
14045 * notif.c (handle_notif_ack): Return 0 if no notification
14046 matches.
14047
ebcf782c
DE
140482013-11-20 Doug Evans <dje@google.com>
14049
14050 * linux-low.c (linux_set_resume_request): Fix comment.
14051
20ad9378
DE
140522013-11-20 Doug Evans <dje@google.com>
14053
14054 * linux-low.c (resume_status_pending_p): Tweak comment.
14055
a196ebeb
WT
140562013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14057
14058 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14059 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14060 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14061 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14062 (srv_amd64_regobj): Add amd64-mpx.o.
14063 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14064 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14065 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14066 * i387-fp.c (num_pl_bnd_register) Added constant.
14067 (num_pl_bnd_cfg_registers) Added constant.
14068 (struct i387_xsave) Added reserved area and MPX fields.
14069 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14070 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14071 function.
14072 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14073 (init_registers_amd64_mpx_linux): Declare new function.
14074 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14075 (x86_64_regmap): Add MPX registers.
14076 (x86_linux_read_description): Add MPX case.
14077 (initialize_low_arch): Initialize MPX targets.
14078
0080a2f6
TT
140792013-11-18 Tom Tromey <tromey@redhat.com>
14080
14081 * configure: Rebuild.
14082 * configure.ac: Don't check for stdlib.h.
14083 * gdbreplay.c: Unconditionally include stdlib.h.
14084
2978b111
TT
140852013-11-18 Tom Tromey <tromey@redhat.com>
14086
14087 * config.in: Rebuild.
14088 * configure: Rebuild.
14089 * configure.ac: Don't use AC_HEADER_DIRENT.
14090
a3d08894
TT
140912013-11-18 Tom Tromey <tromey@redhat.com>
14092
14093 * server.h: Don't check HAVE_STRING_H.
14094 * gdbreplay.c: Don't check HAVE_STRING_H.
14095 * configure: Rebuild.
14096
0a5dd17d
TT
140972013-11-18 Tom Tromey <tromey@redhat.com>
14098
14099 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14100 LIBGNU.
14101
1bd2f0ba
TT
141022013-11-08 Tom Tromey <tromey@redhat.com>
14103
14104 * configure, config.in: Rebuild.
14105 * configure.ac: Remove unused configury.
14106
3266f10b
TT
141072013-11-08 Tom Tromey <tromey@redhat.com>
14108
14109 * acinclude.m4: Include common.m4, codeset.m4.
14110 * configure, config.in: Rebuild.
14111 * configure.ac: Use GDB_AC_COMMON.
14112
6682d959
AA
141132013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14114
14115 * linux-s390-low.c (HWCAP_S390_TE): New define.
14116 (s390_arch_setup): Consider the TE field in the HWCAP for
14117 determining 'have_regset_tdb'.
14118
fd0a4d76
SDJ
141192013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14120
14121 PR gdb/16014
14122 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14123 call to sizeof.
14124
1a3d890b
PA
141252013-10-02 Pedro Alves <palves@redhat.com>
14126
14127 * server.c (process_serial_event): Don't output "GDBserver
14128 exiting" if GDB is connected through stdio.
14129 * target.c (mywait): Likewise, be silent if GDB is connected
14130 through stdio.
14131
97ad4581
JB
141322013-10-01 Joel Brobecker <brobecker@adacore.com>
14133
14134 * lynx-low.c (lynx_add_threads_after_attach): New function.
14135 (lynx_attach): Remove call to add_thread. Add call to
14136 lynx_add_threads_after_attach instead.
14137
5b4e221c
MF
141382013-09-28 Mike Frysinger <vapier@gentoo.org>
14139
14140 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14141 * config.in, configure: Regenerated.
14142
ee47b2f8
YQ
141432013-09-18 Yao Qi <yao@codesourcery.com>
14144
14145 PR server/15959
14146 * server.c (start_inferior): Clear 'resume_info'.
14147
d6707650 141482013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14149
d6707650
JW
14150 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14151 for each register.
14152
9243dd0e 141532013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14154
9243dd0e
JW
14155 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14156 linux-tile-low.o to srv_tgtobj.
14157
c623a6ef
WN
141582013-09-16 Will Newton <will.newton@linaro.org>
14159
14160 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14161 out regs.
14162
fb71d39e
PA
141632013-09-06 Pedro Alves <palves@redhat.com>
14164
14165 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14166 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14167 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14168 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14169 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14170 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14171
8e7e9910
PA
141722013-09-06 Pedro Alves <palves@redhat.com>
14173
14174 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14175 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14176
7c3a12ca
PA
141772013-09-06 Pedro Alves <palves@redhat.com>
14178
14179 * linux-amd64-ipa.c: Include tracepoint.h.
14180 * linux-i386-ipa.c: Include tracepoint.h.
14181
8eb3d7b6
RW
141822013-09-06 Ricard Wanderlof <ricardw@axis.com>
14183
14184 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14185 (ps_get_thread_area): New function.
14186
eddddb9d
RW
141872013-09-06 Ricard Wanderlof <ricardw@axis.com>
14188
14189 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14190 (initialize_low_arch): Call init_registers_crisv32 rather than
14191 init_register_crisv32.
14192
533b0600
PA
141932013-09-05 Pedro Alves <palves@redhat.com>
14194
14195 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14196 to ...
14197 * hostio.h: ... this new file.
14198 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14199 win32-low.c: Include hostio.h.
14200
0ce3d3b5
PA
142012013-09-05 Pedro Alves <palves@redhat.com>
14202
14203 * server.h (gdb_client_data, handler_func, callback_handler_func)
14204 (delete_file_handler, add_file_handler, append_callback_event)
14205 (delete_callback_event, start_event_loop, initialize_event_loop):
14206 Move to event-loop.h and include it.
14207 * event-loop.h: New file.
14208
799cdc37
PA
142092013-09-05 Pedro Alves <palves@redhat.com>
14210
14211 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14212 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14213 (loaded_dll, unloaded_dll): Move to ...
14214 * dll.h: ... this new file.
14215 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14216
6a6bbd9d
PA
142172013-09-05 Pedro Alves <palves@redhat.com>
14218
14219 * server.h (current_process, get_thread_process, all_processes)
14220 (add_inferior_to_list, for_each_inferior, current_inferior)
14221 (remove_inferior, add_process, remove_process, find_process_pid)
14222 (have_started_inferiors_p, have_attached_inferiors_p)
14223 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14224 (clear_inferiors, find_inferior, find_inferior_id)
14225 (inferior_target_data, set_inferior_target_data)
14226 (inferior_regcache_data, set_inferior_regcache_data): Move to
14227 inferiors.h, and include it.
14228 * inferiors.h: New file.
14229
f699aaba
PA
142302013-09-05 Pedro Alves <palves@redhat.com>
14231
14232 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14233 Move ...
72f4393d 14234 * ax.h: ... here.
f699aaba 14235
c144c7a0
PA
142362013-09-05 Pedro Alves <palves@redhat.com>
14237
14238 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14239 tracepoint.h.
14240 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14241 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14242 (handle_tracepoint_general_set, handle_tracepoint_query)
14243 (tracepoint_finished_step, tracepoint_was_hit)
14244 (release_while_stepping_state_list, current_traceframe)
14245 (in_readonly_region, traceframe_read_mem)
14246 (fetch_traceframe_registers, traceframe_read_sdata)
14247 (traceframe_read_info, struct fast_tpoint_collect_status)
14248 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14249 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14250 (supply_fast_tracepoint_registers)
14251 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14252 (ipa_tdesc, claim_trampoline_space)
14253 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14254 (agent_mem_read, agent_get_trace_state_variable_value)
14255 (agent_set_trace_state_variable_value, agent_tsv_read)
14256 (agent_mem_read_string, get_raw_reg_func_addr)
14257 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14258 * tracepoint.h: ... this new file.
14259
ff42e6ab
PA
142602013-09-05 Pedro Alves <palves@redhat.com>
14261
14262 * server.h (perror_with_name, error, fatal, warning, paddress)
14263 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14264 include it.
14265 * utils.h: New file.
14266
541af0f4
PA
142672013-09-05 Pedro Alves <palves@redhat.com>
14268
14269 * server.h (remote_debug, noack_mode, transport_is_reliable)
14270 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14271 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14272 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14273 (write_enn, initialize_async_io, enable_async_io)
14274 (disable_async_io, check_remote_input_interrupt_request)
14275 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14276 (dead_thread_notify, prepare_resume_reply)
14277 (decode_address_to_semicolon, decode_address, decode_m_packet)
14278 (decode_M_packet, decode_X_packet, decode_xfer_write)
14279 (decode_search_memory_packet, unhexify, hexify)
14280 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14281 (look_up_one_symbol, relocate_instruction)
14282 (monitor_output): Move to remote-utils.h, and include it.
14283 * remote-utils.h: New file.
14284
eebdf26b
PA
142852013-09-05 Pedro Alves <palves@redhat.com>
14286
14287 * server.h (_): Delete.
14288
3aafd2ff
PA
142892013-09-02 Pedro Alves <palves@redhat.com>
14290
14291 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14292 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14293 allocated.
14294 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14295
cee83bcb
PM
142962013-09-02 Pierre Muller <muller@sourceware.org>
14297
14298 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14299 or WriteProcessMemory complete successfully and handle
14300 ERROR_PARTIAL_COPY error.
14301
9a13b2fa
PA
143022013-09-02 Pedro Alves <palves@redhat.com>
14303
14304 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14305 error instead of EIO.
14306
602e3198
JK
143072013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14308
14309 PR server/15604
14310 * linux-low.c: Include filestuff.h.
14311 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14312 * lynx-low.c: Include filestuff.h.
14313 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14314 * server.c: Include filestuff.h.
14315 (main): Call notice_open_fds.
14316 * spu-low.c: Include filestuff.h.
14317 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14318
96d7229d
LM
143192013-08-22 Luis Machado <lgustavo@codesourcery.com>
14320
14321 * Makefile.in: Explain why ../target and ../nat are not
14322 listed as include file search paths.
14323 (linux-waitpid.o): New object file rule.
14324 * configure.srv (srv_native_linux_obj): New variable.
14325 Replace all occurrences of linux native object files with
14326 $srv_native_linux_obj.
14327 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14328 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14329 (linux_enable_event_reporting): Remove declaration.
14330 (my_waitpid): Moved to common/linux-waitpid.c.
14331 (linux_wait_for_event): Pass ptid when calling
14332 linux_enable_event_reporting.
14333 (linux_supports_tracefork_flag): Remove.
14334 (linux_enable_event_reporting): Likewise.
14335 (linux_tracefork_grandchild): Remove.
14336 (STACK_SIZE): Moved to common/linux-ptrace.c.
14337 (linux_tracefork_child): Remove.
14338 (linux_test_for_tracefork): Remove.
14339 (linux_look_up_symbols): Call linux_supports_traceclone.
14340 (initialize_low): Remove call to linux_test_for_tracefork.
14341 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14342 common/linux-ptrace.h.
14343 (PTRACE_TYPE_ARG4): Likewise.
14344 Include linux-ptrace.h.
14345
32940073
PA
143462013-08-21 Pedro Alves <palves@redhat.com>
14347
14348 * config.in: Renegerate.
14349
33b60d58 143502013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14351
33b60d58
LM
14352 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14353 (SFILES): Remove $(srcdir)/common/target-common.c and
14354 add $(srcdir)/target/waitstatus.c.
14355 (OBS): Remove target-common.o and add waitstatus.o.
14356 (server_h): Remove $(srcdir)/../common/target-common.h and
14357 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14358 and $(srcdir)/../target/waitstatus.h.
14359 (target-common.o): Remove.
14360 (waitstatus.o): New target object file.
14361 * target.h: Do not include target-common.h and
14362 include target/resume.h, target/wait.h and
14363 target/waitstatus.h.
14364
b8e1b30e
LM
143652013-08-13 Luis Machado <lgustavo@codesourcery.com>
14366
14367 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14368 to PTRACE_TYPE_ARG3.
14369 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14370 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14371 PTRACE_TYPE_ARG4.
14372 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14373 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14374
7a60ad40
YQ
143752013-07-27 Jie Zhang <jie@codesourcery.com>
14376 Daniel Jacobowitz <dan@codesourcery.com>
14377 Yao Qi <yao@codesourcery.com>
14378
14379 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14380 (mips-linux-watch.o): New rule.
14381 (mips_linux_watch_h): New variable.
14382 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14383 srv_tgtobj.
14384 * linux-mips-low.c: Include mips-linux-watch.h.
14385 (struct arch_process_info, struct arch_lwp_info): New.
14386 (update_watch_registers_callback): New function.
14387 (mips_linux_new_process, mips_linux_new_thread) New functions.
14388 (mips_linux_prepare_to_resume, mips_insert_point): New
14389 functions.
14390 (mips_remove_point, mips_stopped_by_watchpoint): New
14391 functions.
14392 (rsp_bp_type_to_target_hw_bp_type): New function.
14393 (mips_stopped_data_address): New function.
14394 (the_low_target): Add watchpoint support functions.
14395
de6f69ad
YQ
143962013-07-27 Yao Qi <yao@codesourcery.com>
14397
14398 * i386-low.c: Include break-common.h.
14399 (enum target_hw_bp_type): Remove.
14400
3360c0bf
LM
144012013-07-24 Luis Machado <lgustavo@codesourcery.com>
14402
14403 * Makefile.in (SFILES): /common/target-common.c.
14404 (OBS): Add target-common.o.
14405 (server_h): Add $(srcdir)/../common/target-common.h.
14406 (target-common.o): New target.
14407 * server.c (queue_stop_reply_callback): Free
14408 status string after use.
14409 * target.c (target_waitstatus_to_string): Remove.
14410 * target.h: Include target-common.h.
14411 (resume_kind): Likewise.
14412 (target_waitkind): Likewise.
14413 (target_waitstatus): Likewise.
14414 (TARGET_WNOHANG): Likewise.
14415
bd885420
YQ
144162013-07-04 Yao Qi <yao@codesourcery.com>
14417
14418 * Makefile.in (host_alias): Use @host_noncanonical@.
14419 (target_alias): Use @target_noncanonical@.
14420 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14421 ACX_NONCANONICAL_HOST.
14422 * configure: Regenerated.
14423
14424 Revert:
14425 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14426
14427 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14428 * configure: Rebuild.
14429 * Makefile.in (version_host, version_target): Get from configure.
14430 (version.c): Use $(version_host) and $(version_target).
14431
17ef446e
PA
144322013-07-03 Pedro Alves <palves@redhat.com>
14433
14434 * Makefile.in (config.status): Depend on development.sh.
14435 * acinclude.m4: Include libmcheck.m4.
14436 * configure: Regenerate.
14437
7a9a7487
MG
144382013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14439
14440 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14441 attribute inside the parentheses.
14442 (winapi_DebugSetProcessKillOnExit): Ditto.
14443 (winapi_DebugBreakProcess): Ditto.
14444 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14445
49b64de6
MG
144462013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14447
14448 * notif.h (notif_event): Add a dummy member to avoid compiler
14449 errors.
14450
d5749ee7
PA
144512013-07-01 Pedro Alves <palves@redhat.com>
14452
14453 * hostio.c (HOSTIO_PATH_MAX): Define.
14454 (require_filename, handle_open, handle_unlink, handle_readlink):
14455 Use it.
14456
d8d2a3ee
PA
144572013-07-01 Pedro Alves <palves@redhat.com>
14458
14459 * server.h: Include "pathmax.h".
14460 * linux-low.c: Don't include sys/param.h.
14461 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14462 MAXPATHLEN.
14463 * win32-low.c: Don't include sys/param.h.
14464 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14465
bc7dea8d
PA
144662013-07-01 Pedro Alves <palves@redhat.com>
14467
14468 * event-loop.c: Don't check HAVE_UNISTD_H before including
14469 <unistd.h>.
14470 * gdbreplay.c: Likewise.
14471 * remote-utils.c: Likewise.
14472 * server.c: Likewise.
14473 * configure.ac: Don't check for unistd.h.
14474 * configure: Regenerate.
14475
d6c2da54
TT
144762013-06-28 Tom Tromey <tromey@redhat.com>
14477
14478 * Makefile.in (version.c): Use version.in, not
14479 common/version.in.
14480
257b6bec
MG
144812013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14482
14483 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14484 * configure: Rebuild.
14485 * Makefile.in (version_host, version_target): Get from configure.
14486 (version.c): Use $(version_host) and $(version_target).
14487
86ebe149
DK
144882013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14489
14490 Fix trace-status to output user name without trailing colon.
14491 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14492
f30aa5af
DK
144932013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14494
14495 Fix trace-status to output proper start-time and stop-time.
14496 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14497 output start time and stop time in hex as gdb expects.
14498
28a93511
YQ
144992013-06-26 Pedro Alves <pedro@codesourcery.com>
14500
14501 * tracepoint.c (build_traceframe_info_xml): Output trace state
14502 variables present in the trace buffer.
14503
01208463
TT
145042013-06-24 Tom Tromey <tromey@redhat.com>
14505
14506 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14507 create-version.sh.
14508 (version.o): Remove.
14509 * gdbreplay.c: Include version.h.
14510 (version, host_name): Don't declare.
14511 * server.h: Include version.h.
14512 (version, host_name): Don't declare.
14513
760256f9
PA
145142013-06-12 Pedro Alves <palves@redhat.com>
14515
14516 * linux-x86-low.c (linux_is_elf64): Delete global.
14517 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14518 with local linux_pid_exe_is_elf_64_file use.
14519
030031ee
PA
145202013-06-11 Pedro Alves <palves@redhat.com>
14521
14522 * linux-low.c (regset_disabled, disable_regset): New functions.
14523 (regsets_fetch_inferior_registers)
14524 (regsets_store_inferior_registers): Use them.
14525 (initialize_regsets_info); Don't allocate the disabled_regsets
14526 array here.
14527 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14528 comment.
14529
5da6eb0a
PA
145302013-06-11 Pedro Alves <palves@redhat.com>
14531
14532 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14533 xmalloc.
14534
7e5aaa09
PA
145352013-06-11 Pedro Alves <palves@redhat.com>
14536
14537 * linux-x86-low.c (initialize_low_arch): Call
14538 init_registers_x32_avx_linux.
14539
d878444c
JK
145402013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14541
14542 Fix compatibility with Android Bionic.
14543 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14544 it is not empty.
14545
3aee8918
PA
145462013-06-07 Pedro Alves <palves@redhat.com>
14547
5f2b57b5 14548 PR server/14823
3aee8918
PA
14549 * Makefile.in (OBS): Add tdesc.o.
14550 (IPA_OBJS): Add tdesc-ipa.o.
14551 (tdesc-ipa.o): New rule.
14552 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14553 interface.
14554 * linux-low.c (new_inferior): Delete.
14555 (disabled_regsets, num_regsets): Delete.
14556 (linux_add_process): Adjust to set the new per-process
14557 new_inferior flag.
14558 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14559 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14560 was a stop. When calling arch_setup, switch the current inferior
14561 to the thread that got an event.
14562 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14563 (regsets_fetch_inferior_registers)
14564 (regsets_store_inferior_registers): New regsets_info parameter.
14565 Adjust to use it.
14566 (linux_register_in_regsets): New regs_info parameter. Adjust to
14567 use it.
14568 (register_addr, fetch_register, store_register): New usrregs_info
14569 parameter. Adjust to use it.
14570 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14571 parameter regs_info. Adjust to use it.
14572 (linux_fetch_registers): Get the current inferior's regs_info, and
14573 adjust to use it.
14574 (linux_store_registers): Ditto.
14575 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14576 (initialize_low): Don't initialize the target_regsets here. Call
14577 initialize_low_arch.
14578 * linux-low.h (target_regsets): Delete declaration.
14579 (struct regsets_info): New.
14580 (struct usrregs_info): New.
14581 (struct regs_info): New.
14582 (struct process_info_private) <new_inferior>: New field.
14583 (struct linux_target_ops): Delete the num_regs, regmap, and
14584 regset_bitmap fields. New field regs_info.
14585 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14586 * i387-fp.c (num_xmm_registers): Delete.
14587 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14588 calls to new interface.
14589 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14590 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14591 Infer the number of xmm registers from the regcache's target
14592 description.
14593 * i387-fp.h (num_xmm_registers): Delete.
14594 * inferiors.c (add_thread): Don't install the thread's regcache
14595 here.
14596 * proc-service.c (gregset_info): Fetch the current inferior's
14597 regs_info. Adjust to use it.
14598 * regcache.c: Include tdesc.h.
14599 (register_bytes, reg_defs, num_registers)
14600 (gdbserver_expedite_regs): Delete.
14601 (get_thread_regcache): If the thread doesn't have a regcache yet,
14602 create one, instead of aborting gdbserver.
14603 (regcache_invalidate_one): Rename to ...
14604 (regcache_invalidate_thread): ... this.
14605 (regcache_invalidate_one): New.
14606 (regcache_invalidate): Only invalidate registers of the current
14607 process.
14608 (init_register_cache): Add target_desc parameter, and use it.
14609 (new_register_cache): Ditto. Assert the target description has a
14610 non zero registers_size.
14611 (regcache_cpy): Add assertions. Adjust.
14612 (realloc_register_cache, set_register_cache): Delete.
14613 (registers_to_string, registers_from_string): Adjust.
14614 (find_register_by_name, find_regno, find_register_by_number)
14615 (register_cache_size): Add target_desc parameter, and use it.
14616 (free_register_cache_thread, free_register_cache_thread_one)
14617 (regcache_release, register_cache_size): New.
14618 (register_size): Add target_desc parameter, and use it.
14619 (register_data, supply_register, supply_register_zeroed)
14620 (supply_regblock, supply_register_by_name, collect_register)
14621 (collect_register_as_string, collect_register_by_name): Adjust.
14622 * regcache.h (struct target_desc): Forward declare.
14623 (struct regcache) <tdesc>: New field.
14624 (init_register_cache, new_register_cache): Add target_desc
14625 parameter.
14626 (regcache_invalidate_thread): Declare.
14627 (regcache_invalidate_one): Delete declaration.
14628 (regcache_release): Declare.
14629 (find_register_by_number, register_cache_size, register_size)
14630 (find_regno): Add target_desc parameter.
14631 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14632 declarations.
14633 * remote-utils.c: Include tdesc.h.
14634 (outreg, prepare_resume_reply): Adjust.
14635 * server.c: Include tdesc.h.
14636 (gdbserver_xmltarget): Delete declaration.
14637 (get_features_xml, process_serial_event): Adjust.
14638 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14639 declare.
14640 (struct process_info) <tdesc>: New field.
14641 (ipa_tdesc): Declare.
14642 * tdesc.c: New file.
14643 * tdesc.h: New file.
14644 * tracepoint.c: Include tdesc.h.
14645 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14646 (get_context_regcache): Adjust to pass ipa_tdesc down.
14647 (do_action_at_tracepoint): Adjust to get the register cache size
14648 from the context regcache's description.
14649 (traceframe_walk_blocks): Adjust to get the register cache size
14650 from the current trace frame's description.
14651 (traceframe_get_pc): Adjust to get current trace frame's
14652 description and pass it down.
14653 (gdb_collect): Adjust to get the register cache size from the
14654 IPA's description.
14655 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14656 (gdbserver_xmltarget): Delete.
14657 (initialize_low_tracepoint): Set the ipa's target description.
14658 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14659 (initialize_low_tracepoint): Set the ipa's target description.
14660 * linux-x86-low.c: Include tdesc.h.
14661 [__x86_64__] (is_64bit_tdesc): New.
14662 (ps_get_thread_area, x86_get_thread_area): Use it.
14663 (i386_cannot_store_register): Rename to ...
14664 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14665 (i386_cannot_fetch_register): Rename to ...
14666 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14667 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14668 to new interface.
14669 (target_regsets): Rename to ...
14670 (x86_regsets): ... this.
14671 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14672 interface.
14673 (x86_siginfo_fixup): Use is_64bit_tdesc.
14674 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14675 (tdesc_x32_avx_linux, tdesc_x32_linux)
14676 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14677 Declare.
14678 (x86_linux_update_xmltarget): Delete.
14679 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14680 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14681 (AMD64_LINUX_USER64_CS): New.
14682 (x86_linux_read_description): New, based on
14683 x86_linux_update_xmltarget.
14684 (same_process_callback): New.
14685 (x86_arch_setup_process_callback): New.
14686 (x86_linux_update_xmltarget): New.
14687 (x86_regsets_info): New.
14688 (amd64_linux_regs_info): New.
14689 (i386_linux_usrregs_info): New.
14690 (i386_linux_regs_info): New.
14691 (x86_linux_regs_info): New.
14692 (x86_arch_setup): Reimplement.
14693 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14694 (x86_emit_ops): Ditto.
14695 (the_low_target): Adjust. Install x86_linux_regs_info,
14696 x86_cannot_fetch_register, and x86_cannot_store_register.
14697 (initialize_low_arch): New.
14698 * linux-ia64-low.c (tdesc_ia64): Declare.
14699 (ia64_fetch_register): Adjust.
14700 (ia64_usrregs_info, regs_info): New globals.
14701 (ia64_regs_info): New function.
14702 (the_low_target): Adjust.
14703 (initialize_low_arch): New function.
14704 * linux-sparc-low.c (tdesc_sparc64): Declare.
14705 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14706 Adjust.
14707 (sparc_arch_setup): New function.
14708 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14709 (the_low_target): Adjust.
14710 (initialize_low_arch): New function.
14711 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14712 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14713 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14714 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14715 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14716 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14717 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14718 (tdesc_powerpc_isa205_vsx64l): Declare.
14719 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14720 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14721 (ppc_set_pc, ppc_get_hwcap): Adjust.
14722 (ppc_usrregs_info): Forward declare.
14723 (!__powerpc64__) ppc_regmap_adjusted: New global.
14724 (ppc_arch_setup): Adjust to the current process'es target
14725 description.
14726 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14727 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14728 (ppc_store_evrregset): Adjust.
14729 (target_regsets): Rename to ...
14730 (ppc_regsets): ... this, and make static.
14731 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14732 (ppc_regs_info): New function.
14733 (the_low_target): Adjust.
14734 (initialize_low_arch): New function.
14735 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14736 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14737 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14738 (tdesc_s390x_linux64v2): Declare.
14739 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14740 (s390_fill_gregset, s390_store_last_break): Adjust.
14741 (target_regsets): Rename to ...
14742 (s390_regsets): ... this, and make static.
14743 (s390_get_pc, s390_set_pc): Adjust.
14744 (s390_get_hwcap): New target_desc parameter, and use it.
14745 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14746 (s390_arch_setup): Adjust to set the current process'es target
14747 description. Don't adjust the regmap.
14748 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14749 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14750 (regs_info_3264): New globals.
14751 (s390_regs_info): New function.
14752 (the_low_target): Adjust.
14753 (initialize_low_arch): New function.
14754 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14755 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14756 [__mips64] (init_registers_mips_linux)
14757 (init_registers_mips_dsp_linux): Delete defines.
14758 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14759 (have_dsp): New global.
14760 (mips_read_description): New, based on mips_arch_setup.
14761 (mips_arch_setup): Reimplement.
14762 (get_usrregs_info): New function.
14763 (mips_cannot_fetch_register, mips_cannot_store_register)
14764 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14765 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14766 (target_regsets): Rename to ...
14767 (mips_regsets): ... this, and make static.
14768 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14769 (dsp_regs_info, regs_info): New globals.
14770 (mips_regs_info): New function.
14771 (the_low_target): Adjust.
14772 (initialize_low_arch): New function.
14773 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14774 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14775 Declare.
14776 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14777 (arm_read_description): New, with bits factored from
14778 arm_arch_setup.
14779 (arm_arch_setup): Reimplement.
14780 (target_regsets): Rename to ...
14781 (arm_regsets): ... this, and make static.
14782 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14783 (arm_regs_info): New function.
14784 (the_low_target): Adjust.
14785 (initialize_low_arch): New function.
14786 * linux-m68k-low.c (tdesc_m68k): Declare.
14787 (target_regsets): Rename to ...
14788 (m68k_regsets): ... this, and make static.
14789 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14790 (m68k_regs_info): New function.
14791 (m68k_arch_setup): New function.
14792 (the_low_target): Adjust.
14793 (initialize_low_arch): New function.
14794 * linux-sh-low.c (tdesc_sharch): Declare.
14795 (target_regsets): Rename to ...
14796 (sh_regsets): ... this, and make static.
14797 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14798 (sh_regs_info, sh_arch_setup): New functions.
14799 (the_low_target): Adjust.
14800 (initialize_low_arch): New function.
14801 * linux-bfin-low.c (tdesc_bfin): Declare.
14802 (bfin_arch_setup): New function.
14803 (bfin_usrregs_info, regs_info): New globals.
14804 (bfin_regs_info): New function.
14805 (the_low_target): Adjust.
14806 (initialize_low_arch): New function.
14807 * linux-cris-low.c (tdesc_cris): Declare.
14808 (cris_arch_setup): New function.
14809 (cris_usrregs_info, regs_info): New globals.
14810 (cris_regs_info): New function.
14811 (the_low_target): Adjust.
14812 (initialize_low_arch): New function.
14813 * linux-cris-low.c (tdesc_crisv32): Declare.
14814 (cris_arch_setup): New function.
14815 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14816 (cris_regs_info): New function.
14817 (the_low_target): Adjust.
14818 (initialize_low_arch): New function.
14819 * linux-m32r-low.c (tdesc_m32r): Declare.
14820 (m32r_arch_setup): New function.
14821 (m32r_usrregs_info, regs_info): New globals.
14822 (m32r_regs_info): Adjust.
14823 (initialize_low_arch): New function.
14824 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14825 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14826 (tic6x_usrregs_info): Forward declare.
14827 (tic6x_read_description): New function, based on ...
14828 (tic6x_arch_setup): ... this. Reimplement.
14829 (target_regsets): Rename to ...
14830 (tic6x_regsets): ... this, and make static.
14831 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14832 (tic6x_regs_info): New function.
14833 (the_low_target): Adjust.
14834 (initialize_low_arch): New function.
14835 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14836 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14837 (target_regsets): Rename to ...
14838 (xtensa_regsets): ... this, and make static.
14839 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14840 globals.
14841 (xtensa_arch_setup, xtensa_regs_info): New functions.
14842 (the_low_target): Adjust.
14843 (initialize_low_arch): New function.
14844 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14845 (nios2_arch_setup): Set the current process'es tdesc.
14846 (target_regsets): Rename to ...
14847 (nios2_regsets): ... this.
14848 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14849 (nios2_regs_info): New function.
14850 (the_low_target): Adjust.
14851 (initialize_low_arch): New function.
a261b8f5
PA
14852 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14853 (aarch64_arch_setup): Set the current process'es tdesc.
14854 (target_regsets): Rename to ...
14855 (aarch64_regsets): ... this.
14856 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14857 (aarch64_regs_info): New function.
14858 (the_low_target): Adjust.
14859 (initialize_low_arch): New function.
3aee8918
PA
14860 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14861 globals.
14862 (target_regsets): Rename to ...
14863 (tile_regsets): ... this.
14864 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14865 (tile_regs_info): New function.
14866 (tile_arch_setup): Set the current process'es tdesc.
14867 (the_low_target): Adjust.
14868 (initialize_low_arch): New function.
14869 * spu-low.c (tdesc_spu): Declare.
14870 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14871 * win32-arm-low.c (tdesc_arm): Declare.
14872 (arm_arch_setup): New function.
14873 (the_low_target): Install arm_arch_setup instead of
14874 init_registers_arm.
14875 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14876 (init_windows_x86): Rename to ...
14877 (i386_arch_setup): ... this. Set `win32_tdesc'.
14878 (the_low_target): Adjust.
14879 * win32-low.c (win32_tdesc): New global.
14880 (child_add_thread): Don't create the thread cache here.
14881 (do_initial_child_stuff): Set the new process'es tdesc.
14882 * win32-low.h (struct target_desc): Forward declare.
14883 (win32_tdesc): Declare.
14884 * lynx-i386-low.c (tdesc_i386): Declare global.
14885 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14886 * lynx-low.c (lynx_tdesc): New global.
14887 (lynx_add_process): Set the new process'es tdesc.
14888 * lynx-low.h (struct target_desc): Forward declare.
14889 (lynx_tdesc): Declare global.
14890 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14891 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14892 * nto-low.c (nto_tdesc): New global.
14893 (do_attach): Set the new process'es tdesc.
14894 * nto-low.h (struct target_desc): Forward declare.
14895 (nto_tdesc): Declare.
14896 * nto-x86-low.c (tdesc_i386): Declare.
14897 (nto_x86_arch_setup): Set `nto_tdesc'.
14898
b1fbec62
GB
148992013-06-04 Gary Benson <gbenson@redhat.com>
14900
14901 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14902 to qSupported response when appropriate.
14903 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14904 with nonzero-length annex.
14905 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14906 arguments supplied in annex.
14907
d1ec4ce7
DE
149082013-05-31 Doug Evans <dje@google.com>
14909
ac44adcb 14910 PR server/15594
d1ec4ce7
DE
14911 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14912 64 bits in 64-cross-32 environment.
14913
9b25f2d3
PA
149142013-05-28 Pedro Alves <palves@redhat.com>
14915
14916 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14917 (aarch64-without-fpu.c): Delete rule.
14918 * configure.srv (aarch64*-*-linux*): Remove references to
14919 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14920 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14921 declaration.
14922
6740dc9c
PA
149232013-05-24 Pedro Alves <palves@redhat.com>
14924
14925 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14926 instead of strchr/decode_address. Error if the range isn't split
14927 with a ','. Don't assume there's be a ':' in the action.
14928
c2d6af84
PA
149292013-05-23 Yao Qi <yao@codesourcery.com>
14930 Pedro Alves <palves@redhat.com>
14931
14932 * linux-low.c (lwp_in_step_range): New function.
14933 (linux_wait_1): If the thread was range stepping and stopped
14934 outside the stepping range, report the stop to GDB. Otherwise,
14935 continue stepping. Add range stepping debug output.
14936 (linux_set_resume_request): Copy the step range from the resume
14937 request to the lwp.
14938 (linux_supports_range_stepping): New.
14939 (linux_target_ops) <supports_range_stepping>: Set to
14940 linux_supports_range_stepping.
14941 * linux-low.h (struct linux_target_ops)
14942 <supports_range_stepping>: New field.
14943 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14944 * linux-x86-low.c (x86_supports_range_stepping): New.
14945 (the_low_target) <supports_range_stepping>: Set to
14946 x86_supports_range_stepping.
14947 * server.c (handle_v_cont): Handle 'r' action.
14948 (handle_v_requests): Append ";r" if the target supports range
14949 stepping.
14950 * target.h (struct thread_resume) <step_range_start,
14951 step_range_end>: New fields.
14952 (struct target_ops) <supports_range_stepping>:
14953 New field.
14954 (target_supports_range_stepping): New macro.
14955
58794e1a
JB
149562013-05-17 Joel Brobecker <brobecker@adacore.com>
14957
14958 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14959 confusion in comment.
14960
d631c5a7
JB
149612013-05-17 Joel Brobecker <brobecker@adacore.com>
14962
14963 * lynx-low.c (struct process_info_private): New type.
14964 (lynx_add_process): New function.
14965 (lynx_create_inferior, lynx_attach): Replace calls to
14966 add_process by calls to lynx_add_process.
14967 (lynx_resume): If PTID is null, then try using
14968 current_process()->private->last_wait_event_ptid.
14969 Add comments.
14970 (lynx_clear_inferiors): Delete. The contents of that function
14971 has been inlined in lynx_mourn;
14972 (lynx_wait_1): Save the ptid in the process's private data.
14973 (lynx_mourn): Free the process' private data. Replace call
14974 to lynx_clear_inferiors by call to clear_inferiors.
14975
96f7a20f
YQ
149762013-05-17 Yao Qi <yao@codesourcery.com>
14977
14978 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14979 the right place.
14980
db0dfaa0
LM
149812013-05-16 Luis Machado <lgustavo@codesourcery.com>
14982
14983 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14984 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14985 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14986 PT_TEXT_END_ADDR guards. Update comments.
14987 (linux_target_op) <read_offsets>: Conditionally define to
14988 linux_read_offsets if the target is UCLIBC and if it defines
14989 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14990
68f5f838
SL
149912013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14992 Andrew Jenner <andrew@codesourcery.com>
14993
14994 * Makefile.in (SFILES): Add linux-nios2-low.c.
14995 (clean): Add action to delete nios2-linux.c.
14996 (nios2-linux.c): New rule.
14997 * configure.srv: Add nios2*-*-linux*.
14998 * linux-nios2-low.c: New.
14999
1ebff1fd
HAQ
150002013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
15001
15002 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
15003
f6150862
HZ
150042013-04-25 Hui Zhu <hui@codesourcery.com>
15005
15006 PR gdb/15186
f6150862
HZ
15007 * ax.c (ax_printf): Add fflush.
15008
614c279d
TT
150092013-04-22 Tom Tromey <tromey@redhat.com>
15010
15011 * Makefile.in (SFILES): Add filestuff.c.
15012 (OBS): Add filestuff.o.
15013 (filestuff.o): New target.
15014 * config.in, configure: Rebuild.
15015 * configure.ac: Check for fdwalk, pipe2.
15016
7d4e5717
PA
150172013-04-17 Pedro Alves <palves@redhat.com>
15018
15019 * configure.ac (USE_THREAD_DB): Delete variable.
15020 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
15021 Don't AC_SUBST USE_THREAD_DB.
15022 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15023 * config.in, configure: Regenerate.
15024
d5c93e41
PA
150252013-04-16 Pedro Alves <palves@redhat.com>
15026
15027 * linux-low.h (struct lwp_info) <thread_known>: Move under
15028 the USE_THREAD_DB #ifdef.
15029
04f5fe89
PA
150302013-04-16 Pedro Alves <palves@redhat.com>
15031
15032 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15033 (linux-low.o): Delete rule.
15034 * linux-low.h: Always include "gdb_thread_db.h" instead of
15035 conditionally including thread_db.h.
15036 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15037 HAVE_THREAD_DB_H.
15038
480b27bf
JK
150392013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15040
15041 * Makefile.in (install-only): Fix make install regression.
15042
43662968
JK
150432013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15044
15045 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15046 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15047 installation.
15048 * gdbserver.1: Remove.
15049
3e74e146
PA
150502013-03-22 Pedro Alves <palves@redhat.com>
15051
15052 * linux-low.c (handle_extended_wait): Don't call
15053 linux_enable_event_reporting.
15054
a8347a2a
TT
150552013-03-15 Tony Theodore <tonyt@logyst.com>
15056
15057 PR build/9098:
15058 * Makefile.in (SHELL): Use @SHELL@.
15059
eeb56fa7
SDJ
150602013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15061
15062 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15063 compiler warning.
15064
4fa7e2ff
JB
150652013-03-13 Joel Brobecker <brobecker@adacore.com>
15066
15067 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15068 Remove extraneous NULL element.
15069
8ddb1965
YQ
150702013-03-13 Yao Qi <yao@codesourcery.com>
15071
15072 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15073 'V' block in trace frame.
15074
9accd112
MM
150752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15076
15077 * target.h (struct target_ops): Add btrace ops.
15078 (target_supports_btrace): New macro.
15079 (target_enable_btrace): New macro.
15080 (target_disable_btrace): New macro.
15081 (target_read_btrace): New macro.
15082 * gdbthread.h (struct thread_info): Add btrace field.
15083 * server.c: Include btrace-common.h.
15084 (handle_btrace_general_set): New function.
15085 (handle_btrace_enable): New function.
15086 (handle_btrace_disable): New function.
15087 (handle_general_set): Call handle_btrace_general_set.
15088 (handle_qxfer_btrace): New function.
15089 (struct qxfer qxfer_packets[]): Add btrace entry.
15090 * inferiors.c (remove_thread): Disable btrace.
15091 * linux-low: Include linux-btrace.h.
15092 (linux_low_enable_btrace): New function.
15093 (linux_low_read_btrace): New function.
15094 (linux_target_ops): Add btrace ops.
15095 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15096 Add srv_linux_btrace=yes.
15097 (x86_64-*-linux*): Add linux-btrace.o.
15098 Add srv_linux_btrace=yes.
15099 * configure.ac: Define HAVE_LINUX_BTRACE.
15100 * config.in: Regenerated.
15101 * configure: Regenerated.
15102
5cc22e4c
MM
151032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15104
15105 * server.c (handle_qxfer): Preserve error message if -3 is
15106 returned.
15107 (qxfer): Document the -3 return value.
15108
7c97f91e
MM
151092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15110
15111 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15112 (linux_btrace_h): New variable.
15113 (linux-btrace.o): New rule.
15114
be9a119c 151152013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
15116 Hafiz Abid Qadeer <abidh@codesourcery.com>
15117
15118 * tracepoint.c (trace_buffer_size): New global.
15119 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15120 (init_trace_buffer): Change to one-argument function. Allocate
15121 trace buffer memory.
15122 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15123 handle QTBuffer:size packet.
15124 (cmd_bigqtbuffer_size): New function.
15125 (initialize_tracepoint): Call init_trace_buffer with
15126 DEFAULT_TRACE_BUFFER_SIZE.
15127 * server.c (handle_query): Add QTBuffer:size in the
15128 supported packets.
15129
e64f7499
YQ
151302013-03-07 Yao Qi <yao@codesourcery.com>
15131
15132 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15133 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15134 of -1.
15135 (cmd_qtsp): Adjust condition. Do post increment.
15136 Set cur_action and cur_step_action back to 0.
15137
f0ae6fc3
PA
151382013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15139
15140 PR server/15236
15141 * linux-low.c (linux_write_memory): Return early success if LEN is
15142 zero.
15143
b5b0b0af
CV
151442013-03-05 Corinna Vinschen <vinschen@redhat.de>
15145
334ad4a8 15146 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 15147
589bc927
TT
151482013-02-28 Tom Tromey <tromey@redhat.com>
15149
15150 * configure.ac: Invoke AC_SYS_LARGEFILE.
15151 * configure, config.in: Rebuild.
15152
dfe07582
CV
151532013-02-28 Corinna Vinschen <vinschen@redhat.com>
15154
15155 * win32-low.c: Throughout, fix format strings and casts of
15156 printf-like functions to avoid type related warnings on all
15157 platforms.
15158 (get_child_debug_event): Print dwDebugEventCode as hex since
15159 that's how it's usually documented.
15160
736cd585
YQ
151612013-02-28 Yao Qi <yao@codesourcery.com>
15162
15163 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15164 pulongest.
15165
e1f58301
JW
151662013-02-27 Jiong Wang <jiwang@tilera.com>
15167
15168 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15169 (reg-tilegx32.c): New rule.
15170 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15171 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15172 different register info initializer according to elf class.
15173 (init_registers_tilgx32): New function. The tilegx32 register info
15174 initializer.
15175 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15176 (tile_store_gregset): Likewise.
15177
d171ca78
YQ
151782013-02-27 Yao Qi <yao@codesourcery.com>
15179
15180 * server.c (process_point_options): Print debug message when
15181 debug_threads is true.
15182
282bbdf3
YQ
151832013-02-26 Yao Qi <yao@codesourcery.com>
15184
15185 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15186
aca22551
PA
151872013-02-19 Pedro Alves <palves@redhat.com>
15188 Kai Tietz <ktietz@redhat.com>
15189
15190 PR gdb/15161
15191
15192 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15193 instead of strtoul to extract address from packet.
15194 (process_serial_event) <'z'>: Likewise.
15195
4f3cee1c
YQ
151962013-02-18 Yao Qi <yao@codesourcery.com>
15197
15198 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15199
8e1d55a3
PA
152002013-02-14 Pedro Alves <palves@redhat.com>
15201
15202 Plug memory leak.
15203
15204 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15205 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15206
458820da
PA
152072013-02-14 Pedro Alves <palves@redhat.com>
15208
15209 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15210
baea0dae
PA
152112013-02-14 Pedro Alves <palves@redhat.com>
15212
15213 * tracepoint.c (save_string): Delete.
15214 (add_tracepoint_action): Use savestring instead of save_string.
15215
0b1afbb3
PA
152162013-02-12 Pedro Alves <palves@redhat.com>
15217
15218 * linux-xtensa-low.c: Ditto.
15219 * xtensa-xtregs.c: Ditto.
15220
8a4ac37e
PA
152212013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15222
15223 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15224 thread_db.
15225
148de6bb
MS
152262013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15227
15228 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15229 aarch64_num_wp_regs and aarch64_num_bp_regs to
15230 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15231
55fac6e0
MS
152322013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15233
15234 * linux-aarch64-low.c (ps_get_thread_area): Replace
15235 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15236
176eb98c
MS
152372013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15238 Marcus Shawcroft <marcus.shawcroft@arm.com>
15239 Nigel Stephens <nigel.stephens@arm.com>
15240 Yufeng Zhang <yufeng.zhang@arm.com>
15241
15242 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15243 (aarch64.c, aarch64-without-fpu.c): New targets.
15244 * configure.srv (aarch64*-*-linux*): New.
15245 * linux-aarch64-low.c: New file.
15246
56f7af9c
MS
152472013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15248
43aaf8b6 15249 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
15250 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15251 (dequeue_one_deferred_signal, linux_resume_one_thread)
15252 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15253 (linux_tracefork_grandchild, linux_test_for_tracefork)
15254 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15255 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15256 where the argument is 0.
15257
60f662b0
YQ
152582013-01-25 Yao Qi <yao@codesourcery.com>
15259
15260 * event-loop.c: Include "queue.h".
15261 (gdb_event_p): New typedef.
15262 (struct gdb_event) <next_event>: Remove.
15263 (event_queue): Change to QUEUE(gdb_event_p).
15264 (async_queue_event): Remove.
15265 (gdb_event_xfree): New.
15266 (initialize_event_loop): New.
15267 (process_event): Use API from QUEUE.
15268 (wait_for_event): Likewise.
15269 * server.c (main): Call initialize_event_loop.
15270 * server.h (initialize_event_loop): Declare.
15271
5ae4861a
YQ
152722013-01-18 Yao Qi <yao@codesourcery.com>
15273
15274 * ax.h (struct eval_agent_expr_context): New.
15275 (gdb_eval_agent_expr): Update declaration.
15276 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15277 TFRAME. Add new argument CTX.
15278 * server.h (struct eval_agent_expr_context): Declare.
15279 (agent_mem_read, agent_tsv_read): Update declaration.
15280 (agent_mem_read_string): Likewise.
15281 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15282 (add_traceframe_block): Add new argument TPOINT.
15283 Increase TPOINT->traceframe_usage.
15284 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15285 eval_tracepoint_agent_expr.
15286 (condition_true_at_tracepoint): Likewise.
15287 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15288 (agent_mem_read_string, agent_tsv_read): Likewise.
15289
85e00e85
YQ
152902013-01-16 Yao Qi <yao@codesourcery.com>
15291
15292 * linux-low.c (linux_resume_one_lwp): Don't check
15293 'lwp->bp_reinsert != 0'.
15294
4039cf45
JB
152952013-01-07 Joel Brobecker <brobecker@adacore.com>
15296 Pedro Alves <palves@redhat.com>
15297
15298 * lynx-low.c (ptrace_request_to_str): Define a temporary
15299 macro and use it to simplify this function's implementation.
15300
9044dee2
JB
153012013-01-07 Joel Brobecker <brobecker@adacore.com>
15302
15303 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15304 sets errno.
15305
e6352c8f
JB
153062013-01-07 Joel Brobecker <brobecker@adacore.com>
15307
15308 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15309
50681a27
JB
153102013-01-07 Joel Brobecker <brobecker@adacore.com>
15311
15312 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15313
3f6e77ef
JB
153142013-01-07 Joel Brobecker <brobecker@adacore.com>
15315
15316 * lynx-low.c (lynx_resume): Use the resume_info parameter
15317 to determine the ptid for the lynx_ptrace call, unless
15318 it is equal to minus_one_ptid, in which case we use the
15319 ptid of the current_inferior.
15320 (lynx_wait_1): After having received a thread create/exit
15321 event, resume the inferior's execution using the signaling
15322 thread's ptid, rather than the old ptid.
15323
7fda33ae
JB
153242013-01-07 Joel Brobecker <brobecker@adacore.com>
15325
15326 * lynx-low.c (lynx_resume): Delete variable ret.
15327
b9786c74
JB
153282013-01-01 Joel Brobecker <brobecker@adacore.com>
15329
15330 * gdbreplay.c (gdbreplay_version): Update copyright year.
15331 * server.c (gdbserver_version): Likewise.
15332
8b93d60f
JB
153332012-12-17 Joel Brobecker <brobecker@adacore.com>
15334
15335 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15336 new thread.
15337
037335a7
JB
153382012-12-17 Joel Brobecker <brobecker@adacore.com>
15339
15340 * lynx-low.c (ptrace_request_to_str): Add handling for
15341 PTRACE_GETTRACESIG.
15342
52d4cbd8
JB
153432012-12-17 Joel Brobecker <brobecker@adacore.com>
15344
15345 * lynx-low.c (lynx_attach): Delete variable new_process.
15346
ab8f6ca9
JB
153472012-12-17 Joel Brobecker <brobecker@adacore.com>
15348
15349 * lynx-low.c (lynx_create_inferior): Delete variable
15350 new_process.
15351
78cbc024
JB
153522012-12-17 Joel Brobecker <brobecker@adacore.com>
15353
15354 * lynx-low.c (ptrace_request_to_str): Do not handle
15355 PTRACE_GETTHREADLIST if this macro does not exist.
15356
14a00470
YQ
153572012-12-15 Yao Qi <yao@codesourcery.com>
15358
15359 * Makefile.in (OBS): Add notif.o.
15360 * notif.c, notif.h: New.
15361 * server.c: Include "notif.h".
15362 (struct vstop_notif) <next>: Remove.
15363 <base>: New field.
15364 (queue_stop_reply): Update.
15365 (push_event, send_next_stop_reply): Remove.
15366 (discard_queued_stop_replies): Update.
15367 (notif_stop): New variable.
15368 (handle_v_stopped): Remove.
15369 (handle_v_requests): Don't call handle_v_stopped. Call
15370 handle_ack_notif instead.
15371 (queue_stop_reply_callback): Call notif_event_enque instead
15372 of queue_stop_reply.
15373 (handle_status): Don't call send_next_stop_reply, call
15374 notif_write_event instead.
15375 (kill_inferior_callback): Likewise.
15376 (detach_or_kill_inferior_callback): Likewise.
15377 (main): Call initialize_notif.
15378 (process_serial_event): Call QUEUE_is_empty.
15379 (handle_target_event): Call notif_push instead of push event.
15380 * server.h (push_event): Remove declaration.
15381
61c125b9
TT
153822012-12-10 Tom Tromey <tromey@redhat.com>
15383
15384 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15385 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15386 macros.
15387 (.c.o): Rewrite.
15388 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15389 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15390 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15391 (amd64-linux-ipa.o, ax.o): Rewrite.
15392 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15393 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15394 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15395 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15396 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15397 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15398 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15399 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15400 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15401 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15402 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15403 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15404 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15405 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15406 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15407 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15408 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15409 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15410 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15411 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15412 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15413 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15414 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15415 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15416 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15417 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15418 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15419 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15420 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15421 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15422 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15423 (reg-tilegx.o): Remove.
15424 (all_object_files): New macro.
15425 Include .deps files.
15426 * aclocal.m4, configure: Rebuild.
15427 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15428 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15429 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15430
e90e9ad9
TT
154312012-12-05 Tom Tromey <tromey@redhat.com>
15432
15433 PR gdb/14917:
15434 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15435
02d403bf 154362012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15437
15438 * configure.ac: Check for linux/perf_event.h.
15439 * config.in: Regenerated.
15440 * configure: Regenerated.
15441
0270a750
PA
154422012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15443
15444 * hostio.c (handle_readlink): Decrease buffer size
15445 parameter passed to readlink by one byte.
15446
8c29b58e
YQ
154472012-11-26 Yao Qi <yao@codesourcery.com>
15448
15449 * configure.ac (build_warnings): Append '-Wempty-body'.
15450 * configure: Regenerated.
15451 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15452 body.
15453
8bdce1ff
PM
154542012-11-15 Pierre Muller <muller@sourceware.org>
15455
15456 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15457 * config.in: Regenerate.
15458 * configure: Regenerate.
15459 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15460 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15461 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15462 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15463 header.
15464 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15465 instead of <sys/wait.h> header.
15466 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15467
02d403bf 154682012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15469
15470 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15471 (various make rules): Remove -DGDBSERVER
15472
fbd5db48
YQ
154732012-11-09 Yao Qi <yao@codesourcery.com>
15474
15475 * spu-low.c (current_ptid): Move it to ..
15476 * gdbthread.h: ... here. New.
15477 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15478 * server.c (myresume, process_serial_event): Likewise.
15479 * thread-db.c (thread_db_find_new_threads): Likewise.
15480 * tracepoint.c (run_inferior_command): Likewise.
15481
b3dc46ff
AB
154822012-10-01 Andrew Burgess <aburgess@broadcom.com>
15483
15484 * server.c (handle_search_memory_1): Include access length in
15485 warning message.
15486
07c04788
HPN
154872012-09-05 Michael Brandt <michael.brandt@axis.com>
15488
15489 * linux-crisv32-low.c: Fix compile errors.
15490
918d227b
YQ
154912012-09-04 Yao Qi <yao@codesourcery.com>
15492
15493 * tracepoint.c (cmd_qtsv): Adjust debug message.
15494 Don't check CUR_TPOINT.
15495
18c1b81a
YQ
154962012-08-28 Yao Qi <yao@codesourcery.com>
15497
15498 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15499 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15500 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15501 Remove declarations of xmalloc, xreallloc, xstrdup and
15502 freeargv.
15503 * Makefile.in (libiberty_h): New.
15504 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15505 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15506
dc82f37b
YQ
155072012-08-23 Yao Qi <yao@codesourcery.com>
15508
15509 * server.h: Remove declaration of 'xsnprintf'.
15510
406b1477
KS
155112012-08-22 Keith Seitz <keiths@redhat.com>
15512
15513 * server.h: Include build-gnulib-gbserver/config.h.
15514 * gdbreplay.c: Likewise.
15515
e6712ff1
DE
155162012-08-08 Doug Evans <dje@google.com>
15517
15518 * Makefile.in (SFILES): Add gdb_vecs.c.
15519 (OBS): Add gdb_vecs.o.
15520 (gdb_vecs_h, host_defs_h): New variables.
15521 (thread-db.o): Add $(gdb_vecs_h) dependency.
15522 (gdb_vecs.o): New rule.
15523 * thread-db.c: #include "gdb_vecs.h".
15524 (thread_db_load_search): Use a vector to iterate over path elements.
15525 Handle text appearing after "$pdir".
15526
15527 * configure.ac: Add check for strstr.
15528 * config.in: Regenerate.
15529 * configure: Regenerate.
15530
7c3270ae
UW
155312012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15532
15533 * hostio.c (handle_pread): If pread fails, fall back to attempting
15534 lseek/read.
15535 (handle_pwrite): Likewise for pwrite.
15536
b62e2b27
UW
155372012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15538
15539 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15540 between unsupported TYPE and unimplementable ADDR/LEN combination.
15541 (arm_insert_point): Act on new return value.
15542
78a99e91
PA
155432012-07-31 Pedro Alves <palves@redhat.com>
15544
15545 * server.c (process_point_options): Only skip tokens if we find
15546 one that is unrecognized. Don't treat 'X' specially while
15547 skipping unrecognized tokens.
15548
fcf303ab
UW
155492012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15550
15551 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15552 to 4-byte-align HW breakpoint addresses for Thumb.
15553
7255706c
YQ
155542012-07-27 Yao Qi <yao@codesourcery.com>
15555
15556 PR remote/14161.
15557
15558 * server.h: Declare gdb_agent_about_to_close.
15559 * target.c (kill_inferior): Include "agent.h".
15560 New. Send command 'kill'.
15561 * target.h (kill_inferior): Removed macro.
15562 * tracepoint.c (gdb_agent_about_to_close): New.
15563 (gdb_agent_helper_thread): Handle command 'close'.
15564 Wait endlessly until the inferior stops.
15565 Install gdb_agent_remove_socket to atexit hook.
15566 (agent_socket_name): New static variable.
15567 (gdb_agent_socket_init): Replace local variable 'name' with
15568 'agent_socket_name'.
15569 (gdb_agent_remove_socket): New.
15570
5a3f286f
YQ
155712012-07-27 Yao Qi <yao@codesourcery.com>
15572
15573 * server.c (process_point_options): Stop at 'X' when parsing.
15574
961bd387
ME
155752012-07-19 Michael Eager <eager@eagercon.com>
15576
a261b8f5 15577 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15578 to hw_execute.
15579 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15580 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15581 hardware breakpoint.
15582
aa7c7447
JK
155832012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15584
15585 * gdbserver/linux-low.c (initialize_low): Call
15586 linux_ptrace_init_warnings.
15587
7f216e7c
DE
155882012-07-02 Doug Evans <dje@google.com>
15589
15590 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15591 pointer to int.
15592
d3ce09f5
SS
155932012-07-02 Stan Shebs <stan@codesourcery.com>
15594
15595 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15596 (ax.o): Add it to build rule.
15597 (ax-ipa.o): Ditto.
15598 (OBS): Add format.o.
15599 (IPA_OBS): Add format.o.
15600 * server.c (handle_query): Claim support for breakpoint commands.
15601 (process_point_options): Add command case.
15602 (process_serial_event): Leave running if there are printfs in
15603 effect.
15604 * mem-break.h (any_persistent_commands): Declare.
15605 (add_breakpoint_commands): Declare.
15606 (gdb_no_commands_at_breakpoint): Declare.
15607 (run_breakpoint_commands): Declare.
15608 * mem-break.c (struct point_command_list): New struct.
15609 (struct breakpoint): New field command_list.
15610 (any_persistent_commands): New function.
15611 (add_commands_to_breakpoint): New function.
15612 (add_breakpoint_commands): New function.
15613 (gdb_no_commands_at_breakpoint): New function.
15614 (run_breakpoint_commands): New function.
15615 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15616 locally.
15617 * ax.c: Include format.h.
15618 (ax_printf): New function.
15619 (gdb_eval_agent_expr): Add printf opcode.
15620
2f8f6aed
YQ
156212012-06-13 Yao Qi <yao@codesourcery.com>
15622
15623 * server.c (start_inferior): Remove duplicated writes to fields
15624 'last_resume_kind' and 'last_status' of 'current_inferior'.
15625
0c9070b3
YQ
156262012-06-12 Yao Qi <yao@codesourcery.com>
15627 Pedro Alves <palves@redhat.com>
15628
15629 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15630 comment.
15631 * server.c (handle_v_cont): Extend comment.
15632
c52daf70
YQ
156332012-06-11 Yao Qi <yao@codesourcery.com>
15634
15635 * linux-low.c (linux_attach): Add 'static'.
15636
d38bbb0a
YQ
156372012-06-06 Yao Qi <yao@codesourcery.com>
15638
15639 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15640
89dc0afd
JK
156412012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15642
15643 Fix gcc -flto compilation warning.
15644 * server.c (main): Make variable multi_mode and attach volatile.
15645
75f62ce7
TJB
156462012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15647
15648 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15649 if the platform doesn't know about it.
15650
65f479b6
PA
156512012-05-30 Jeff Kenton <jkenton@tilera.com>
15652
15653 * Makefile.in (SFILES): Add linux-tile-low.c.
15654 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15655 * configure.srv: Handle tilegx-*-linux*.
15656 * linux-tile-low.c: New file.
15657
0c5bf5a9
JK
156582012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15659
15660 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15661
a493e3e2
PA
156622012-05-24 Pedro Alves <palves@redhat.com>
15663
15664 PR gdb/7205
15665
43aaf8b6 15666 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15667
2ea28649
PA
156682012-05-24 Pedro Alves <palves@redhat.com>
15669
15670 PR gdb/7205
15671
15672 Replace target_signal with gdb_signal throughout.
15673
8d409d16
MR
156742012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15675
15676 * linux-low.c (linux_store_registers): Avoid the copying sequence
15677 when no data has been retrieved by ptrace.
15678
23512c01
MGD
156792012-05-22 Will Deacon <will.deacon@arm.com>
15680
15681 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15682 Include asm/ptrace.h.
15683 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15684 already defined.
15685
4934b29e
MR
156862012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15687
15688 * linux-low.c (linux_store_registers): Don't re-retrieve data
15689 with ptrace that has already been obtained from /proc. Always
15690 copy any data retrieved with ptrace to the buffer supplied.
15691
bde24c0a
PA
156922012-05-11 Yao Qi <yao@codesourcery.com>
15693 Pedro Alves <palves@redhat.com>
15694
15695 * linux-low.c (enum stopping_threads_kind): New.
15696 (stopping_threads): Change type to `enum stopping_threads_kind'.
15697 (handle_extended_wait): If stopping and suspending threads, leave
15698 the new_lwp suspended too.
15699 (linux_wait_for_event): Adjust.
15700 (stop_all_lwps): Set `stopping_threads' to
15701 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15702 whether we're suspending threads or just stopping them. Assert no
15703 recursion happens.
15704
623b6bdf
YQ
157052012-04-29 Yao Qi <yao@codesourcery.com>
15706
15707 * server.h: Move some code to ...
15708 * gdbthread.h: ... here. New.
15709 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15710 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15711 (nto-low.o, win32-low.o): Likewise.
15712 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15713 * regcache.c, remote-utils.c, server.c: Likewise.
15714 * target.c, tracepoint.c, win32-low.c: Likewise.
15715
f15f9948
TJB
157162012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15717
15718 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15719 (PTRACE_ARG4_TYPE): Likewise.
15720 (PTRACE_XFER_TYPE): Likewise.
15721 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15722 ptrace to PTRACE_ARG3_TYPE.
15723 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15724 (PTRACE_ARG4_TYPE): Likewise.
15725 (PTRACE_XFER_TYPE): Likewise.
15726 (linux_detach_one_lwp): Cast fourth argument of
15727 ptrace to long then PTRACE_ARG4_TYPE.
15728 (regsets_fetch_inferior_registers): Cast third argument of
15729 ptrace to long then PTRACE_ARG3_TYPE.
15730 (regsets_store_inferior_registers): Likewise.
15731
38ea300a
PA
157322012-04-20 Pedro Alves <palves@redhat.com>
15733
15734 * configure: Regenerate.
15735
c971b7fa
PA
157362012-04-19 Pedro Alves <palves@redhat.com>
15737
43aaf8b6 15738 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15739 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15740 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15741 (all, install-only, uninstall, clean-info, all-lib, clean): No
15742 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15743 (maintainer-clean realclean distclean): Use subdir_do.
15744 (subdir_do): New.
15745 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15746 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15747 * acinclude.m4: Include acx_configure_dir.m4.
15748 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15749 calls. Call AC_PROG_RANLIB. Configure gnulib using
15750 ACX_CONFIGURE_DIR.
15751 (GNULIB): New.
15752 (GNULIB_STDINT_H): Adjust.
15753 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15754 * gdbreplay.c: Include build-gnulib/config.h.
15755 * server.h: Likewise.
15756 * aclocal.m4: Regenerate.
15757 * config.in: Regenerate.
15758 * configure: Regenerate.
c971b7fa 15759
809277f8
PA
157602012-04-19 Pedro Alves <palves@redhat.com>
15761
15762 * Makefile.in (LIBGNU, INCGNU): Adjust.
15763 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15764 (all, install-only, uninstall, clean-info, all-lib, clean)
15765 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15766 * configure.ac: Adjust AC_OUTPUT output.
15767 * aclocal.m4: Regenerate.
15768 * configure: Regenerate.
15769
fd9bb8b8
PA
157702012-04-19 Pedro Alves <palves@redhat.com>
15771
15772 * Makefile.in (generated_files): New.
15773 (server_h): Remove the explicit dependency on config.h, and depend
15774 on $generated_files.
15775
1c298c66
PA
157762012-04-19 Pedro Alves <palves@redhat.com>
15777
15778 * Makefile.in (INCGNU): Add -Ignulib.
15779
57c4b50b
PA
157802012-04-19 Pedro Alves <palves@redhat.com>
15781
15782 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15783 (INCGNU): ... this, and spell out -I here.
15784 (GNULIB_LIB): Rename to ...
15785 (LIBGNU): ... this.
15786 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15787
1030e047
PA
157882012-04-19 Pedro Alves <palves@redhat.com>
15789
15790 * config.in: Regenerate.
15791
447d4319
PA
157922012-04-19 Pedro Alves <palves@redhat.com>
15793
15794 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15795 * server.h (memmem): Remove declaration.
15796 * config.in: Regenerate.
15797 * configure: Regenerate.
15798
aad9eab9
YQ
157992012-04-19 Yao Qi <yao@codesourcery.com>
15800
15801 * Makefile.in (SFILES): Add common/vec.c.
15802 (OBS): Add vec.o.
15803 (vec.o): New rule.
15804
3e10640f
YQ
158052012-04-19 Yao Qi <yao@codesourcery.com>
15806
15807 * remote-utils.c (prepare_resume_reply): Replace with macro
15808 target_core_of_thread.
15809 * server.c (handle_qxfer_threads_proper): Likewise.
15810 * target.h (traget_core_of_thread): New macro.
15811
71622373
PA
158122012-04-18 Pedro Alves <palves@redhat.com>
15813
15814 * aclocal.m4: Regenerate.
15815 * configure: Regenerate.
15816
80d26939
YQ
158172012-04-16 Yao Qi <yao@codesourcery.com>
15818
15819 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15820 duplicated on address.
15821
42476b70
YQ
158222012-04-16 Yao Qi <yao@codesourcery.com>
15823
15824 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15825 (struct tracepoint_action_ops) <send>: New field.
15826 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15827 (agent_expr_send, x_tracepoint_action_send): New.
15828 (l_tracepoint_action_send): New.
15829 (cmd_qtdp): Download and install tracepoint
15830 according to `use_agent'.
15831 (run_inferior_command): Add one more parameter `len'.
15832 Update callers.
15833 (tracepoint_send_agent): New.
15834 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15835
7bc83639
YQ
158362012-04-16 Yao Qi <yao@codesourcery.com>
15837
15838 * tracepoint.c (download_tracepoints): Moved to ...
15839 (cmd_qtstart): ... here.
15840
5f18041e
YQ
158412012-04-14 Yao Qi <yao@codesourcery.com>
15842
15843 * tracepoint.c: Include inttypes.h.
15844 (struct collect_memory_action): Use sized types.
15845 (struct tracepoint): Likewise.
15846 (cmd_qtdp, stop_tracing): Update print specifiers.
15847 (cmd_qtp, response_tracepoint): Likewise.
15848 (collect_data_at_tracepoint): Likewise.
15849 (collect_data_at_step): Likewise.
15850
55a8c076
YQ
158512012-04-14 Yao Qi <yao@codesourcery.com>
15852
15853 Import gnulib module inttypes.
15854 * aclocal.m4, config.in, configure: Regenerated.
15855
dc750257
YQ
158562012-04-14 Yao Qi <yao@codesourcery.com>
15857
15858 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15859 Makefile and config.status at last.
15860
0ab5faf9
YQ
158612012-04-13 Yao Qi <yao@codesourcery.com>
15862
15863 * tracepoint.c: Include stdint.h unconditionally.
15864
18f5fd81
TJB
158652012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15866
15867 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15868 on BFD_HAVE_SYS_PROCFS_TYPE.
15869 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15870 * configure: Regenerate.
15871 * config.in: Likewise.
15872
4d47af5c
L
158732012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15874
15875 * Makefile.in (clean): Also remove x32.c x32-linux.c
15876 x32-avx.c x32-avx-linux.c.
15877 (x32.o): New target.
15878 (x32.c): Likewise.
15879 (x32-linux.o): Likewise.
15880 (x32-linux.c): Likewise.
15881 (x32-avx.o): Likewise.
15882 (x32-avx.c): Likewise.
15883 (x32-avx-linux.o): Likewise.
15884 (x32-avx-linux.c): Likewise.
15885
15886 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15887 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15888 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15889 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15890 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15891 i386/x32-avx-linux.xml.
15892
15893 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15894 (init_registers_x32_avx_linux): Likwise.
15895 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15896 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15897
ecedbe58
PA
158982012-04-13 Pedro Alves <palves@redhat.com>
15899
15900 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15901 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15902 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15903 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15904 the sub-make.
15905
c92b5177
L
159062012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15907
15908 * linux-x86-low.c (compat_x32_clock_t): New.
15909 (compat_x32_siginfo_t): Likewise.
15910 (compat_x32_siginfo_from_siginfo): Likewise.
15911 (siginfo_from_compat_x32_siginfo): Likewise.
15912 (linux_is_elf64): Likewise.
15913 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15914 and siginfo_from_compat_x32_siginfo for x32.
15915 (x86_arch_setup): Set linux_is_elf64.
15916
214d508e
L
159172012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15918
15919 PR gdb/13969
15920 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15921 e_machine field.
15922 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15923 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15924 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15925 compatible with process.
15926
c9a1864a
YQ
159272012-04-12 Yao Qi <yao@codesourcery.com>
15928
15929 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15930 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15931 (install-only, install-info, clean): Handle sub dir gnulib.
15932 (all-lib, am--refresh): New targets.
15933 (memmem.o): Remove target.
15934 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15935 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15936 (AC_REPLACE_FUNCS): Remove memmem.
15937 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15938 (AC_OUTPUT): Generate Makefile in gnulib/.
15939 * aclocal.m4, config.in, configure: Regenerated.
15940
367ba2c2
MR
159412012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15942
15943 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15944
9d236627
PA
159452012-04-05 Pedro Alves <palves@redhat.com>
15946
15947 -Werror=strict-aliasing
15948
15949 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15950 pointer.
15951
111217b3
PA
159522012-04-04 Pedro Alves <palves@redhat.com>
15953
15954 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15955 (sparc_store_gregset_from_stack, sparc_store_gregset)
15956 (sparc_breakpoint_at): Fix formatting.
15957
8365dcf5
TJB
159582012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15959
15960 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15961 are available.
15962 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15963 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15964 * config.in: Regenerate.
15965 * configure: Likewise.
15966
689cc2ae
PA
159672012-03-29 Pedro Alves <palves@redhat.com>
15968
15969 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15970 Correct ptrace arguments.
15971
c14dfd32
PA
159722012-03-28 Pedro Alves <palves@redhat.com>
15973
15974 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15975 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15976 (IA64_FR1_REGNUM): New defines.
15977 (ia64_fetch_register): New.
15978 (the_low_target): Install it.
15979 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15980 field.
15981 * linux-low.c (linux_fetch_registers): Try the
15982 the_low_target.fetch_register hook first.
15983
15984 * linux-arm-low.c (the_low_target): Adjust.
15985 * linux-bfin-low.c (the_low_target): Adjust.
15986 * linux-cris-low.c (the_low_target): Adjust.
15987 * linux-crisv32-low.c (the_low_target): Adjust.
15988 * linux-m32r-low.c (the_low_target): Adjust.
15989 * linux-m68k-low.c (the_low_target): Adjust.
15990 * linux-mips-low.c (the_low_target): Adjust.
15991 * linux-ppc-low.c (the_low_target): Adjust.
15992 * linux-s390-low.c (the_low_target): Adjust.
15993 * linux-sh-low.c (the_low_target): Adjust.
15994 * linux-sparc-low.c (the_low_target): Adjust.
15995 * linux-tic6x-low.c (the_low_target): Adjust.
15996 * linux-x86-low.c (the_low_target): Adjust.
15997 * linux-xtensa-low.c (the_low_target): Adjust.
15998
63c88e13
PA
159992012-03-26 Pedro Alves <palves@redhat.com>
16000
16001 * server.c (handle_qxfer_libraries): Don't bail early if
16002 the_target->qxfer_libraries_svr4 is not NULL.
16003
fb723180
PA
160042012-03-26 Pedro Alves <palves@redhat.com>
16005
16006 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
16007
0afae3cf
PA
160082012-03-23 Pedro Alves <palves@redhat.com>
16009
16010 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
16011 "library-list-svr4" element's start tag when the the DSO list is
16012 empty.
16013
485f1ee4
PA
160142012-03-23 Pedro Alves <palves@redhat.com>
16015
16016 * linux-low.c (read_one_ptr): Read the inferior's pointer through
16017 a variable whose type size is the same as the inferior's pointer
16018 size.
16019
a5362b9a
TS
160202012-03-21 Thomas Schwinge <thomas@codesourcery.com>
16021
16022 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16023 struct siginfo.
16024 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16025 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16026 * linux-low.h: Include <signal.h>.
16027 (struct siginfo): Remove forward declaration.
16028 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16029 struct siginfo.
16030
d226c142
MF
160312012-03-21 Mike Frysinger <vapier@gentoo.org>
16032
16033 * .gitignore: Ignore more files.
16034
122f36ef
PA
160352012-03-19 Pedro Alves <palves@redhat.com>
16036 Jan Kratochvil <jan.kratochvil@redhat.com>
16037
16038 * server.c (cont_thread, general_thread): Add describing comments.
16039 (start_inferior): Clear `cont_thread'.
16040 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16041 of a process.
16042
fc3e5175
YQ
160432012-03-15 Yao Qi <yao@codesourcery.com>
16044
16045 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16046 handling to ...
16047 (cmd_qtdp): ... here.
16048
8d0d92cd
YQ
160492012-03-15 Yao Qi <yao@codesourcery.com>
16050
16051 * tracepoint.c (struct tracepoint_action_ops): New.
16052 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16053 (m_tracepoint_action_download): New.
16054 (r_tracepoint_action_download): New.
16055 (x_tracepoint_action_download): New.
16056 (l_tracepoint_action_download): New.
16057 (add_tracepoint_action): Install `action->ops' according type.
16058 (download_tracepoint_1): Move code `download' function pointer
16059 of various tracepoint_action_ops.
16060
87b0bb13
JK
160612012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16062
16063 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16064 linux_ptrace_attach_warnings.
16065
5f572dec
JK
160662012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16067
16068 * Makefile.in (linux-ptrace.o): New.
16069 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16070 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16071 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16072 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16073 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16074 of these targets.
16075 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16076
f4647387
YQ
160772012-03-08 Yao Qi <yao@codesourcery.com>
16078 Pedro Alves <palves@redhat.com>
16079
16080 Fix PR server/13392.
16081 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16082 offset of JMP insn.
16083 * tracepoint.c (remove_tracepoint): New.
16084 (cmd_qtdp): Call remove_tracepoint when failed to install.
16085
9b224c5e
PA
160862012-03-07 Pedro Alves <palves@redhat.com>
16087
16088 * linux-low.c (get_detach_signal): New.
16089 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16090 Pass on pending signals to PTRACE_DETACH. Check the result of the
16091 ptrace call.
16092 * server.c (program_signals, program_signals_p): New.
16093 (handle_general_set): Handle QProgramSignals.
16094 * server.h (program_signals, program_signals_p): Declare.
16095
e237a7e2
JK
160962012-03-05 Pedro Alves <palves@redhat.com>
16097 Jan Kratochvil <jan.kratochvil@redhat.com>
16098
16099 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16100 New comment why.
16101
5808517f
YQ
161022012-03-03 Yao Qi <yao@codesourcery.com>
16103
16104 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16105 agent_look_up_symbols.
16106
58b4daa5
YQ
161072012-03-03 Yao Qi <yao@codesourcery.com>
16108
16109 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16110 (linux-x86-low.o): Likewise.
16111 * server.h: Remove in_process_agent_loaded.
16112 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16113 common/agent.c.
16114 Update callers.
16115
8ffcbaaf
YQ
161162012-03-03 Yao Qi <yao@codesourcery.com>
16117
16118 * tracepoint.c (gdb_agent_capability): New global.
16119 (in_process_agent_loaded_ust): Renamed to
16120 `in_process_agent_supports_ust'.
16121 Update callers.
16122 (in_process_agent_supports_ust): Call agent_capability_check.
16123 (clear_installed_tracepoints): Assert that agent supports
16124 agent.
16125
d1feda86
YQ
161262012-03-03 Yao Qi <yao@codesourcery.com>
16127
16128 * linux-low.c (linux_supports_agent): New.
16129 (linux_target_ops): Initialize field `supports_agent' with
16130 linux_supports_agent.
16131 * target.h (struct target_ops) <supports_agent>: New.
16132 (target_supports_agent): New macro.
16133 * server.c (handle_general_set): Handle packet 'QAgent'.
16134 (handle_query): Send `QAgent+'.
16135 * Makefile.in (server.o): Depends on agent.h.
16136
2fa291ac
YQ
161372012-03-03 Yao Qi <yao@codesourcery.com>
16138
16139 * Makefile.in (OBS): Add agent.o.
16140 Add new rule for agent.o.
16141 Track dependence of tracepoint.c on agent.h.
16142 * tracepoint.c (run_inferior_command_1):
16143 (run_inferior_command): Call agent_run_command.
16144 (gdb_ust_connect_sync_socket): Deleted. Move it to
16145 common/agent.c.
16146 (resume_thread, stop_thread): Likewise.
16147 (gdb_ust_socket_init): Renamed to ...
16148 (gdb_agent_socket_init): ... New.
16149 (gdb_ust_thread): Renamed to ...
16150 (gdb_agent_helper_thread): ... New.
16151 (gdb_ust_init): Move some code to ...
16152 (gdb_agent_init): ... here. New.
16153 [HAVE_UST]: Call gdb_ust_init.
16154 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16155 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16156 * config.in, configure: Regenerated.
16157
05044653
PA
161582012-03-02 Pedro Alves <palves@redhat.com>
16159
16160 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16161 * linux-low.c (struct simple_pid_list): New.
16162 (stopped_pids): New a struct simple_pid_list pointer.
16163 (add_to_pid_list, pull_pid_from_list): New.
16164 (handle_extended_wait): Don't assume the first signal new children
16165 report is SIGSTOP. Adjust call to pull_pid_from_list.
16166 (linux_wait_for_lwp): Adjust.
16167
8d00225b
YQ
161682012-03-02 Yao Qi <yao@codesourcery.com>
16169
16170 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16171 debug log.
16172
19560ba5
YQ
161732012-03-02 Yao Qi <yao@codesourcery.com>
16174
16175 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16176 `stop_pc' and `tpoint'. Update caller.
16177
1faeff08
MR
161782012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16179
16180 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16181 * linux-low.c (use_linux_regsets): New macro.
16182 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16183 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16184 (linux_register_in_regsets): New function.
16185 (usr_fetch_inferior_registers): Skip registers covered by
16186 regsets.
16187 (usr_store_inferior_registers): Likewise.
16188 (usr_fetch_inferior_registers): New macro.
16189 (usr_store_inferior_registers): Likewise.
16190 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16191 (linux_store_registers): Likewise.
16192 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16193 prototype.
16194 (init_registers_mips64_dsp_linux): Likewise.
16195 (init_registers_mips_linux): New macro.
16196 (init_registers_mips_dsp_linux): Likewise.
16197 (mips_dsp_num_regs): Likewise.
16198 (DSP_BASE, DSP_CONTROL): New fallback macros.
16199 (mips_base_regs): New macro.
16200 (mips_regmap): Use it. Fix the size.
16201 (mips_dsp_regmap): New variable.
16202 (mips_dsp_regset_bitmap): Likewise.
16203 (mips_arch_setup): New function.
16204 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16205 than mips_regmap.
16206 (mips_cannot_store_register): Likewise.
16207 (the_low_target): Update .arch_setup, .num_regs and .regmap
16208 initializers. Add .regset_bitmap initializer.
16209 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16210 initializer.
16211 * linux-bfin-low.c (the_low_target): Likewise.
16212 * linux-cris-low.c (the_low_target): Likewise.
16213 * linux-crisv32-low.c (the_low_target): Likewise.
16214 * linux-ia64-low.c (the_low_target): Likewise.
16215 * linux-m32r-low.c (the_low_target): Likewise.
16216 * linux-m68k-low.c (the_low_target): Likewise.
16217 * linux-ppc-low.c (the_low_target): Likewise.
16218 * linux-s390-low.c (the_low_target): Likewise.
16219 * linux-sh-low.c (the_low_target): Likewise.
16220 * linux-sparc-low.c (the_low_target): Likewise.
16221 * linux-tic6x-low.c (the_low_target): Likewise.
16222 * linux-x86-low.c (the_low_target): Likewise.
16223 * linux-xtensa-low.c (the_low_target): Likewise.
16224 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16225 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16226 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16227 srv_xmlfiles.
16228 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16229 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16230
c03e6ccc
YQ
162312012-02-29 Yao Qi <yao@codesourcery.com>
16232 Pedro Alves <palves@redhat.com>
16233
16234 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16235 `step_over_finished' is true.
16236
644cebc9
PA
162372012-02-27 Pedro Alves <palves@redhat.com>
16238
16239 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16240 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16241
c14d7ab2
PA
162422012-02-27 Pedro Alves <palves@redhat.com>
16243
16244 PR server/9684
16245 * linux-low.c (pid_is_stopped): New.
16246 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16247
412c89dd
LM
162482012-02-25 Luis Machado <lgustavo@codesourcery.com>
16249
16250 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16251 of conditions.
16252
b745defe
MR
162532012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16254
16255 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16256
9f3a5c85
LM
162572012-02-24 Luis Machado <lgustavo@codesourcery>
16258
16259 * server.c (handle_query): Advertise support for target-side
16260 breakpoint condition evaluation.
16261 (process_point_options): New function.
16262 (process_serial_event): When inserting a breakpoint, check for
16263 a target-side condition that should be evaluated.
16264
16265 * mem-break.c: Include regcache.h and ax.h.
16266 (point_cond_list_t): New data structure.
16267 (breakpoint) <cond_list>: New field.
16268 (find_gdb_breakpoint_at): Make non-static.
16269 (delete_gdb_breakpoint_at): Clear any target-side
16270 conditions.
16271 (clear_gdb_breakpoint_conditions): New function.
16272 (add_condition_to_breakpoint): Likewise.
16273 (add_breakpoint_condition): Likewise.
16274 (gdb_condition_true_at_breakpoint): Likewise.
16275 (gdb_breakpoint_here): Return result directly instead
16276 of going through a local variable.
16277
16278 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16279 (clear_gdb_breakpoint_conditions): Likewise.
16280 (add_breakpoint_condition): Likewise.
16281 (gdb_condition_true_at_breakpoint): Likewise.
16282
16283 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16284 (need_step_over_p): Take target-side breakpoint condition into
16285 consideration.
16286
5e1dc496
LM
162872012-02-24 Luis Machado <lgustavo@codesourcery>
16288
16289 * server.h: Include tracepoint.h.
16290 (agent_mem_read, agent_get_trace_state_variable_value,
16291 agent_set_trace_state_variable_value,
16292 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16293 get_set_tsv_func_addr): New prototypes.
16294
16295 * ax.h: New include file.
16296 * ax.c: New source file.
16297
16298 * tracepoint.c: Include ax.h.
16299 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16300 agent_expr, eval_result_type): Move to ax.h.
16301 (parse_agent_expr): Rename to ...
16302 (gdb_parse_agent_expr): ... this, make it non-static and move
16303 to ax.h.
16304 (unparse_agent_expr) Rename to ...
16305 (gdb_unparse_agent_expr): ... this, make it non-static and move
16306 to ax.h.
16307 (eval_agent_expr): Rename to ...
16308 (eval_tracepoint_agent_expr): ... this.
16309 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16310 forward declarations.
16311 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16312 (agent_get_trace_state_variable_value): New function.
16313 (agent_set_trace_state_variable_value): New function.
16314 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16315 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16316 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16317 (condition_true_at_tracepoint): Likewise.
16318 (parse_agent_expr): Rename to ...
16319 (gdb_parse_agent_expr): ... this and move to ax.c.
16320 (unparse_agent_expr): Rename to ...
16321 (gdb_unparse_agent_expr): ... this and move to ax.c.
16322 (gdb_agent_op_name): Move to ax.c.
16323 (eval_agent_expr): Rename to ...
16324 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16325 and move to ax.c.
16326 (eval_tracepoint_agent_expr): New function.
16327 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16328 non-static.
5e1dc496
LM
16329 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16330 ax.c.
16331 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16332 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16333 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16334 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16335 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16336 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16337 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16338 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16339 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16340 (compile_bytecodes): Remove forward declaration.
16341 (is_goto_target): Move to ax.c.
16342 (compile_bytecodes): Move to ax.c and call
16343 agent_get_trace_state_variable_value (...) and
16344 agent_set_trace_state_variable_value (...).
16345
16346 * Makefile.in: Update ax.c and IPA dependencies.
16347
277e4e52
PA
163482012-02-24 Pedro Alves <palves@redhat.com>
16349
16350 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16351 (cmd_bigqtbuffer_circular): ... this. Only handle
16352 'QTBuffer:circular:'.
16353 (handle_tracepoint_general_set): Adjust.
16354
bf4c19f7
YQ
163552012-02-16 Yao Qi <yao@codesourcery.com>
16356
16357 * inferiors.c: Move code to ...
16358 * dll.c: .... here. New.
16359 * server.h: Declare clear_dlls.
16360 * Makefile.in (SFILES): Add dll.c.
16361 (OBS): Add dll.o
16362 (dll.o): New rule.
16363
d73f2619
YQ
163642012-02-11 Yao Qi <yao@codesourcery.com>
16365
16366 * server.c: (handle_monitor_command): Add a new parameter
16367 `own_buf'.
16368 (handle_query): Update caller.
16369
f8255c2a
JB
163702012-02-09 Joel Brobecker <brobecker@adacore.com>
16371
16372 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16373 * configure, config.in: Regenerate.
16374 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16375 is not defined.
16376
da84f473
PA
163772012-02-02 Pedro Alves <palves@redhat.com>
16378
16379 Try SIGKILL first, then PTRACE_KILL.
16380 * linux-low.c (linux_kill_one_lwp): New.
16381 (linux_kill_one_lwp): Rename to ...
16382 (kill_one_lwp_callback): ... this. Use the new
16383 linux_kill_one_lwp.
16384
e886a173
PA
163852012-02-02 Pedro Alves <palves@redhat.com>
16386
16387 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16388 inferior.
16389
be07f1a2
PA
163902012-01-27 Pedro Alves <palves@redhat.com>
16391
16392 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16393 (elf_64_file_p): Make static.
16394 (linux_pid_exe_is_elf_64_file): New.
16395 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16396 Delete declarations.
16397 (linux_pid_exe_is_elf_64_file): Declare.
16398 * linux-x86-low.c (x86_arch_setup): Use
16399 linux_pid_exe_is_elf_64_file.
16400
d8301ad1
JK
164012012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16402
16403 * linux-low.c (linux_wait_for_event_1): Rename to ...
16404 (linux_wait_for_event): ... here and merge it with former
16405 linux_wait_for_event - new variable wait_ptid, use it.
16406 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16407
01b17894
PA
164082012-01-23 Pedro Alves <palves@redhat.com>
16409
16410 * server.c (main): Avoid yet another case of infinite loop while
16411 detaching/killing after a longjmp.
16412
e825046f
JK
164132012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16414
16415 Code cleanup.
16416 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16417
b9e7b9c3
UW
164182012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16419
16420 * hostio.c (handle_readlink): New function.
16421 (handle_vFile): Call it to handle "vFile:readlink" packets.
16422
901f9912
UW
164232012-01-20 Pedro Alves <palves@redhat.com>
16424 Ulrich Weigand <ulrich.weigand@linaro.org>
16425
16426 * server.c (handle_v_requests): Only support vAttach and vRun to
16427 start multiple processes when in extended protocol mode.
16428
fc1ab1a0
PA
164292012-01-17 Pedro Alves <palves@redhat.com>
16430
16431 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16432 memalign plus mprotect to allocate the scratch buffer.
16433
7d5d4e98
PA
164342012-01-13 Pedro Alves <palves@redhat.com>
16435
16436 * server.c (attach_inferior): Clear `cont_thread'.
16437
f128d5e9
PA
164382012-01-13 Pedro Alves <palves@redhat.com>
16439
16440 * server.c (main): Avoid infinite loop while detaching/killing
16441 after a longjmp.
16442
06db92f0
DE
164432012-01-09 Doug Evans <dje@google.com>
16444
16445 * server.c (start_inferior): Set last_ptid in --wrapper case.
16446
32d92999
YQ
164472012-01-06 Yao Qi <yao@codesourcery.com>
16448
16449 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16450 defined.
16451 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16452
5e0a92a9
YQ
164532012-01-04 Yao Qi <yao@codesourcery.com>
16454
16455 * tracepoint.c (cmd_qtdp): Print debug message
16456 for static tracepoint.
16457
ae639e8c
YQ
164582012-01-04 Yao Qi <yao@codesourcery.com>
16459
16460 * tracepoint.c (trace_vdebug): Differentiate debug message
16461 between gdbserver and IPA.
16462
f72429c5
YQ
164632012-01-03 Yao Qi <yao@codesourcery.com>
16464
16465 * tracepoint.c (tracepoint_was_hit): Don't collect for
16466 static tracepoint.
16467
12c3e59c
JB
164682012-01-02 Joel Brobecker <brobecker@adacore.com>
16469
16470 * terminal.h: Reformat copyright header.
16471
67827812
JB
164722012-01-02 Joel Brobecker <brobecker@adacore.com>
16473
16474 * server.c (gdbserver_version): Update copyright year.
16475 * gdbreplay.c (gdbreplay_version): Likewise.
16476
3e52c33d
JK
164772011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16478
16479 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16480
16481 Revert:
16482 2011-12-18 Hui Zhu <teawater@gmail.com>
16483 * linux-low.c (linux_create_inferior): Save return value to ret.
16484
66f1260e
HZ
164852011-12-18 Hui Zhu <teawater@gmail.com>
16486
16487 * linux-low.c (linux_create_inferior): Save return value to ret.
16488
e77616d7
DE
164892011-12-16 Doug Evans <dje@google.com>
16490
e7b06c57
DE
16491 * linux-low.c (linux_create_inferior): If stdio connection,
16492 redirect stdin from /dev/null, stdout to stderr.
16493 * remote-utils.c (remote_is_stdio): New static global.
16494 (remote_connection_is_stdio): New function.
16495 (remote_prepare): Handle stdio connection.
16496 (remote_open): Ditto.
16497 (remote_close): Don't close stdin for stdio connections.
16498 (read_prim,write_prim): New functions. Replace all calls to
16499 read/write to these.
16500 * server.c (main): Watch for "-" argument. Move call to
16501 remote_prepare before start_inferior.
16502 * server.h (STDIO_CONNECTION_NAME): New macro.
16503 (remote_connection_is_stdio): Declare.
16504
e77616d7
DE
16505 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16506 in debugging output.
16507
82067193
YQ
165082011-12-15 Yao Qi <yao@codesourcery.com>
16509
16510 * tracepoint.c: Include sys/syscall.h.
16511 (gdb_ust_thread): Remove preprocessor conditional.
16512
82bfbe7e
PA
165132011-12-14 Pedro Alves <pedro@codesourcery.com>
16514
16515 * linux-low.c (linux_detach_one_lwp): Call
16516 the_low_target.prepare_to_resume before detaching.
16517
712c6575
YQ
165182011-12-14 Yao Qi <yao@codesourcery.com>
16519
16520 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16521 of write.
16522
d54d1edf
YQ
165232011-12-14 Yao Qi <yao@codesourcery.com>
16524
16525 * i386-low.c (i386_low_stopped_data_address): Initialize local
16526 variable `control'.
16527
6210a125
PA
165282011-12-13 Pedro Alves <pedro@codesourcery.com>
16529
16530 PR remote/13492
16531
16532 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16533 DR_CONTROL unless necessary. Extend comments.
16534 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16535 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16536
2ece8244
YQ
165372011-12-13 Yao Qi <yao@codesourcery.com>
16538
16539 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16540 macros.
16541 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16542
784867a5
JK
165432011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16544
16545 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16546 Print new debug message for such case.
16547
6bf36717
JK
165482011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16549
16550 Fix overlapping memcpy.
16551 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16552 the read_inferior_memory transfer.
16553 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16554 write_inferior_memory transfer.
16555 (set_fast_tracepoint_jump): New variable buf. Use it for the
16556 read_inferior_memory and write_inferior_memory transfers.
16557 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16558 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16559 Use it for the write_inferior_memory transfer.
16560 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16561 buffers.
16562
50275556
MR
165632011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16564
16565 * linux-low.c (fetch_register, store_register): Make code
16566 consistent, fix formatting.
16567
7325beb4
MR
165682011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16569
16570 * linux-low.c (usr_store_inferior_registers): Factor out code
16571 to handle individual registers into...
16572 (store_register): ... this new function.
16573
c642a434
UW
165742011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16575
16576 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16577 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16578 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16579 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16580 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16581 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16582 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16583 (srv_xmlfiles): Add new XML files.
16584
16585 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16586 and <sys/uio.h>.
16587 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16588 (init_registers_s390_linux32v1): Add prototype.
16589 (init_registers_s390_linux32v2): Likewise.
16590 (init_registers_s390_linux64v1): Likewise.
16591 (init_registers_s390_linux64v2): Likewise.
16592 (init_registers_s390x_linux64v1): Likewise.
16593 (init_registers_s390x_linux64v2): Likewise.
16594 (s390_num_regs): Increment to 52.
16595 (s390_regmap): Add orig_r2 register.
16596 (s390_num_regs_3264): Increment to 68.
16597 (s390_regmap_3264): Add orig_r2 register.
16598 (s390_collect_ptrace_register): Handle orig_r2 register.
16599 (s390_supply_ptrace_register): Likewise.
16600 (s390_fill_last_break): New function.
16601 (s390_store_last_break): Likewise.
16602 (s390_fill_system_call): New function.
16603 (s390_store_system_call): Likewise.
16604 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16605 register sets.
16606 (s390_check_regset): New function.
16607 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16608 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16609 Update target_regsets for available register sets.
16610
2268b414
JK
166112011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16612 Jan Kratochvil <jan.kratochvil@redhat.com>
16613
16614 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16615 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16616 New.
16617 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16618 * linux-low.h (struct process_info_private): New member r_debug.
16619 * server.c (handle_qxfer_libraries): Call
16620 the_target->qxfer_libraries_svr4.
16621 (handle_qxfer_libraries_svr4): New function.
16622 (qxfer_packets): New entry "libraries-svr4".
16623 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16624 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16625 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16626 PACKET_qXfer_libraries_svr4.
16627
d6db1fab
UW
166282011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16629
16630 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16631 PSW address/mask between 8-byte and 16-byte formats.
16632 (s390_supply_ptrace_register): Likewise.
16633 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16634 basic addressing mode bit.
16635
242f5f1c
SS
166362011-11-24 Stan Shebs <stan@codesourcery.com>
16637
16638 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16639
f196051f
SS
166402011-11-17 Stan Shebs <stan@codesourcery.com>
16641
16642 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16643 (tracing_start_time): New global.
16644 (tracing_stop_time): New global.
16645 (tracing_user_name): New global.
16646 (tracing_notes): New global.
16647 (tracing_stop_note): New global.
16648 (cmd_qtstart): Set traceframe_usage, start_time.
16649 (stop_tracing): Set stop_time.
16650 (cmd_qtstatus): Report additional status.
16651 (cmd_qtp): New function.
16652 (handle_tracepoint_query): Call it.
16653 (cmd_qtnotes): New function.
16654 (handle_tracepoint_general_set): Call it.
16655 (get_timestamp): Rename from tsv_get_timestamp.
16656
405f8e94
SS
166572011-11-14 Stan Shebs <stan@codesourcery.com>
16658 Kwok Cheung Yeung <kcy@codesourcery.com>
16659
16660 * linux-x86-low.c (small_jump_insn): New.
16661 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16662 trampoline and error message, build a trampoline and issue a small
16663 jump instruction to it.
16664 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16665 trampoline and error message.
16666 (x86_get_min_fast_tracepoint_insn_len): New.
16667 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16668 * linux-low.h (struct linux_target_ops): Add arguments to
16669 install_fast_tracepoint_jump_pad operation, add new operation.
16670 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16671 arguments.
16672 (linux_get_min_fast_tracepoint_insn_len): New function.
16673 (linux_target_op): Add new operation.
16674 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16675 (gdb_trampoline_buffer_end): Ditto.
16676 (gdb_trampoline_buffer_error): Ditto.
16677 (struct ipa_sym_addresses): Add fields for new IPA variables.
16678 (symbol_list): Add entries for new IPA variables.
16679 (struct tracepoint): Add fields to hold the address range of the
16680 trampoline used by the tracepoint.
16681 (trampoline_buffer_head): New static variable.
16682 (trampoline_buffer_tail): Ditto.
16683 (claim_trampoline_space): New function.
16684 (have_fast_tracepoint_trampoline_buffer): New function.
16685 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16686 structure.
16687 (install_fast_tracepoint): Ditto, also add error buffer argument.
16688 (cmd_qtminftpilen): New function.
16689 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16690 (fast_tracepoint_from_trampoline_address): New function.
16691 (fast_tracepoint_collecting): Handle trampoline as part of jump
16692 pad space.
16693 (set_trampoline_buffer_space): New function.
16694 (initialize_tracepoint): Initialize new IPA variables.
16695 * target.h (struct target_ops): Add arguments to
16696 install_fast_tracepoint_jump_pad operation, add new
16697 get_min_fast_tracepoint_insn_len operation.
16698 (target_get_min_fast_tracepoint_insn_len): New.
16699 (install_fast_tracepoint_jump_pad): Add arguments.
16700 * server.h (IPA_BUFSIZ): Define.
16701 * linux-i386-ipa.c: Include extra header files.
16702 (initialize_fast_tracepoint_trampoline_buffer): New function.
16703 (initialize_low_tracepoint): Call it.
16704 * server.h (set_trampoline_buffer_space): Declare.
16705 (claim_trampoline_space): Ditto.
16706 (have_fast_tracepoint_trampoline_buffer): Ditto.
16707
1e4d1764
YQ
167082011-11-14 Yao Qi <yao@codesourcery.com>
16709
16710 * server.c (handle_query): Handle InstallInTrace for qSupported.
16711 * tracepoint.c (add_tracepoint): Sort list.
16712 (install_tracepoint, download_tracepoint): New.
16713 (cmd_qtdp): Call them to install and download tracepoints.
16714 (sort_tracepoints): Removed.
16715 (cmd_qtstart): Update.
16716
5c73ff4e
YQ
167172011-11-14 Yao Qi <yao@codesourcery.com>
16718
16719 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16720 * mem-break.h: Declare.
16721 * tracepoint.c (cmd_qtstart): Move some code to ...
16722 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16723 New.
16724 (download_tracepoints): Move some code to ...
16725 (download_tracepoint_1): ... here. New.
16726
86a30030
YQ
167272011-11-08 Yao Qi <yao@codesourcery.com>
16728
16729 * remote-utils.c (relocate_instruction): A comment fix.
16730
8d26e50c
JB
167312011-11-07 Joel Brobecker <brobecker@adacore.com>
16732
16733 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16734 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16735 dr_status_mirror and dr_control_mirror from debug_reg_state.
16736 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16737 (i386_initial_stuff): Remove use of deleted globals.
16738 (i386_get_thread_context, i386_set_thread_context,
16739 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16740 from debug_reg_state.
16741
a59306a3
YQ
167422011-11-05 Yao Qi <yao@codesourcery.com>
16743
16744 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16745 address as TPOINT's.
16746
3065dfb6
SS
167472011-11-02 Stan Shebs <stan@codesourcery.com>
16748
16749 * tracepoint.c (agent_mem_read_string): New function.
16750 (eval_agent_expr): Call it for tracenz.
16751 * server.c (handle_query): Report support for tracenz.
16752
fd0d8c7c
YQ
167532011-11-02 Yao Qi <yao@codesourcery.com>
16754
16755 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16756
609086b1
YQ
167572011-11-02 Yao Qi <yao@codesourcery.com>
16758
16759 * target.h: Fix a typo in comment.
16760
b9fd1791
PA
167612011-10-31 Pedro Alves <pedro@codesourcery.com>
16762
16763 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16764 clobber the breakpoints' shadows with fast tracepoint jumps.
16765 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16766 * target.c (write_inferior_memory): Also pass MYADDR down to
16767 check_mem_write.
16768
03583c20
UW
167692011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16770
16771 * configure.ac: Check support for personality routine.
16772 * configure: Regenerate.
16773 * config.in: Likewise.
16774 * linux-low.c: Include <sys/personality.h>.
16775 Define ADDR_NO_RANDOMIZE if necessary.
16776 (linux_create_inferior): Disable address space randomization when
16777 forking inferior, if requested.
16778 (linux_supports_disable_randomization): New function.
16779 (linux_target_ops): Install it.
16780 * server.h (disable_randomization): Declare.
16781 * server.c (disable_randomization): New global variable.
16782 (handle_general_set): Handle QDisableRandomization.
16783 (handle_query): Likewise for qSupported.
16784 (main): Support --disable-randomization and --no-disable-randomization
16785 command line arguments.
16786 * target.h (struct target_ops): Add supports_disable_randomization.
16787 (target_supports_disable_randomization): New macro.
16788
723b724b
MF
167892011-09-29 Mike Frysinger <vapier@gentoo.org>
16790
16791 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16792 ifdef check.
16793 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16794 [!PT_GETDSBT] (target_loadmap): New definition.
16795 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16796 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16797 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16798 and PT_GETDSBT to LINUX_LOADMAP.
16799 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16800 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16801
55329a5c 168022011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16803
16804 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16805 (arm_linux_hwbp_cap): New static variable.
16806 (arm_linux_get_hwbp_cap): Replace by ...
16807 (arm_linux_init_hwbp_cap): ... this new function.
16808 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16809 (arm_linux_get_hw_watchpoint_count): Likewise.
16810 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16811 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16812 (arm_prepare_to_resume): Use perror_with_name instead of error.
16813
55329a5c 168142011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16815
16816 * linux-arm-low.c: Include <signal.h>.
16817 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16818 (struct arm_linux_hwbp_cap): New data type.
16819 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16820 (struct arm_linux_hw_breakpoint): New data type.
16821 (MAX_BPTS, MAX_WPTS): Define.
16822 (struct arch_process_info, struct arch_lwp_info): New data types.
16823 (arm_linux_get_hwbp_cap): New function.
16824 (arm_linux_get_hw_breakpoint_count): Likewise.
16825 (arm_linux_get_hw_watchpoint_count): Likewise.
16826 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16827 (arm_hwbp_control_initialize): Likewise.
16828 (arm_hwbp_control_is_enabled): Likewise.
16829 (arm_hwbp_control_is_initialized): Likewise.
16830 (arm_hwbp_control_disable): Likewise.
16831 (arm_linux_hw_breakpoint_equal): Likewise.
16832 (arm_linux_hw_point_initialize): Likewise.
16833 (struct update_registers_data): New data structure.
16834 (update_registers_callback: New function.
16835 (arm_insert_point): Likewise.
16836 (arm_remove_point): Likewise.
16837 (arm_stopped_by_watchpoint): Likewise.
16838 (arm_stopped_data_address): Likewise.
16839 (arm_new_process): Likewise.
16840 (arm_new_thread): Likewise.
16841 (arm_prepare_to_resume): Likewise.
16842 (the_low_target): Register arm_insert_point, arm_remove_point,
16843 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16844 arm_new_thread, and arm_prepare_to_resume.
16845
6b9801d4
SS
168462011-09-15 Stan Shebs <stan@codesourcery.com>
16847
16848 * server.h (struct emit_ops): Add compare-goto fields.
16849 * tracepoint.c (gdb_agent_op_sizes): New table.
16850 (emit_eq_goto): New function.
16851 (emit_ne_goto): New function.
16852 (emit_lt_goto): New function.
16853 (emit_le_goto): New function.
16854 (emit_gt_goto): New function.
16855 (emit_ge_goto): New function.
16856 (is_goto_target): New function.
16857 (compile_bytecodes): Recognize special cases of compare-goto
16858 combinations and call specialized emitters for them.
16859 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16860 (amd64_emit_ne_goto): New function.
16861 (amd64_emit_lt_goto): New function.
16862 (amd64_emit_le_goto): New function.
16863 (amd64_emit_gt_goto): New function.
16864 (amd64_emit_ge_goto): New function.
16865 (amd64_emit_ops): Add the new functions.
16866 (i386_emit_eq_goto): New function.
16867 (i386_emit_ne_goto): New function.
16868 (i386_emit_lt_goto): New function.
16869 (i386_emit_le_goto): New function.
16870 (i386_emit_gt_goto): New function.
16871 (i386_emit_ge_goto): New function.
16872 (i386_emit_ops): Add the new functions.
16873
bf15cbda
SS
168742011-09-08 Stan Shebs <stan@codesourcery.com>
16875
16876 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16877 (i386_emit_epilogue): Restore %ebx.
16878
943ca1dd
JZ
168792011-08-31 Jie Zhang <jzhang918@gmail.com>
16880
16881 * server.c (step_thread): Remove definition.
16882 (process_serial_event): Don't handle Hs.
16883 * server.h (step_thread): Remove declaration.
16884 * target.c (set_desired_inferior): Remove use of step_thread.
16885
e3deef73
LM
168862011-08-24 Luis Machado <lgustavo@codesourcery.com>
16887
16888 * linux-low.c: Include linux-procfs.h.
16889 (linux_attach_lwp_1): Update comments.
16890 (linux_attach): Scan for existing threads when attaching to a
16891 process that is the tgid.
16892 * Makefile.in: Update dependencies.
16893
13da1c97
LM
168942011-08-24 Luis Machado <lgustavo@codesourcery.com>
16895
16896 * configure.srv: Add linux-procfs.o dependencies.
16897
881127c9
YQ
168982011-08-14 Yao Qi <yao@codesourcery.com>
16899
16900 * target.h (struct target_ops): Fix indent.
16901 * win32-low.c (win32_target_ops): Fix comment.
16902
58dbd541
YQ
169032011-08-14 Andrew Jenner <andrew@codesourcery.com>
16904 Yao Qi <yao@codesourcery.com>
16905
16906 * Makefile.in (clean): Remove tic6x-*.c files.
16907 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16908 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16909 (tic6x-c64xp-linux.c): Likewise.
16910 * configure.srv: Add support for tic6x-*-uclinux.
16911 * linux-tic6x-low.c: New.
16912 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16913
78d85199
YQ
169142011-08-14 Andrew Stubbs <ams@codesourcery.com>
16915 Yao Qi <yao@codesourcery.com>
16916
16917 * target.h (struct target_ops): Add read_loadmap.
16918 * linux-low.c (struct target_loadseg): New type.
16919 (struct target_loadmap): New type.
16920 (linux_read_loadmap): New function.
16921 (linux_target_ops): Add linux_read_loadmap.
16922 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16923 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16924 to NULL.
78d85199 16925
a959a88d
EZ
169262011-08-05 Eli Zaretskii <eliz@gnu.org>
16927
16928 * win32-low.c: Include <stdint.h>.
16929
1ced966e
PA
169302011-07-22 Pedro Alves <pedro@codesourcery.com>
16931
16932 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16933 to the inferior here.
16934 (i386_remove_aligned_watchpoint): Ditto.
16935 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16936 fit part of the watchpoint in the debug registers.
16937 (i386_update_inferior_debug_regs): New.
16938 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16939 registers, and only update the inferior on success.
16940 (i386_low_remove_watchpoint): Ditto.
16941
d26e3629
KY
169422011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16943
16944 * linux-low.c (compare_ints, unique, list_threads, show_process,
16945 linux_core_of_thread): Delete.
16946 (linux_target_ops): Change linux_core_of_thread to
16947 linux_common_core_of_thread.
16948 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16949 * utils.c (malloc_failure): Change type of argument.
16950 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16951 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16952 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16953 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16954 (IPA_OBJS): Add common-utils-ipa.o.
16955 (ptid_h, linux_osdata_h): New macros.
16956 (server_h): Add common/common-utils.h, common/xml-utils.h,
16957 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16958 common/ptid.h.
16959 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16960 ptid.o, buffer.o): New rules.
16961 (linux-low.o): Add common/linux-osdata.h as a dependency.
16962 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16963 * configure.ac: Add AC_HEADER_DIRENT check.
16964 * config.in: Regenerate.
16965 * configure: Regenerate.
16966 * remote-utils.c (xml_escape_text): Delete.
16967 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16968 buffer_xml_printf): Move to common/buffer.c.
16969 * server.c (main): Remove call to initialize_inferiors.
16970 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16971 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16972 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16973 internal_error, gdb_assert, gdb_assert_fail): Delete.
16974 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16975 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16976 common/buffer.h.
16977 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16978 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16979 initialize_inferiors): Delete.
16980
2275a1a7
PA
169812011-07-20 Pedro Alves <pedro@codesourcery.com>
16982
16983 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16984 symbol error.
16985
0a5b1e09
PA
169862011-05-31 Pedro Alves <pedro@codesourcery.com>
16987
16988 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16989 assertion.
16990 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16991
6938fd34
YQ
169922011-05-26 Yao Qi <yao@codesourcery.com>
16993
16994 * Makefile.in (thread-db.o): Track dependence to
16995 common/gdb_thread_db.h.
16996 * thread-db.c: include gdb_thread_db.h from right place.
16997
b481f9e0
TT
169982011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16999
17000 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
17001 __FILE__ and __LINE__ to internal_error.
17002
98a5dd13
DE
170032011-05-13 Doug Evans <dje@google.com>
17004
17005 * thread-db.c (try_thread_db_load_from_sdir): New function.
17006 (try_thread_db_load_from_dir): New function.
17007 (thread_db_load_search): Handle $sdir, ignore $pdir.
17008 Remove trying of system directories if search of
17009 libthread-db-search-path fails, that is now done via $sdir.
17010
d248b706
KY
170112011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
17012
17013 * server.c (handle_query): Add EnableDisableTracepoints to the list
17014 of supported features.
43aaf8b6 17015 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 17016 tracepoints.
43aaf8b6
PA
17017 (cmd_qtenable_disable): New.
17018 (cmd_qtstart): Install tracepoints even if disabled.
17019 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
17020 receiving a QTEnable or QTDisable packet.
17021 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17022 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17023 tracepoints.
17024 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 17025
84e578fb
DE
170262011-05-10 Doug Evans <dje@google.com>
17027
17028 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17029
71f55dd8
DE
170302011-05-04 Doug Evans <dje@google.com>
17031
17032 * linux-low.c (linux_join): Skip process lookup.
17033 * spu-low.c (spu_join): Ditto.
17034 * server.c (join_inferiors_callback): Delete.
17035 (process_serial_event): For 'D' packet (detach) call join_inferior
17036 directly.
17037
4d393d60
JM
170382011-05-04 Joseph Myers <joseph@codesourcery.com>
17039
17040 * README: Don't mention xscale*-*-linux*.
17041 * configure.srv (xscale*-*-linux*): Don't handle target.
17042
b00ad6ff
NF
170432011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17044
17045 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17046 casting pointers.
17047 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17048 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17049 (i386_emit_void_call_2): Likewise.
17050
af96c192
YQ
170512011-04-26 Yao Qi <yao@codesourcery.com>
17052
43aaf8b6
PA
17053 * linux-low.c: Move common macros to linux-ptrace.h.
17054 Include linux-ptrace.h.
af96c192
YQ
17055 * Makefile.in (linux_ptrace_h): New.
17056 (linux-low.o): Depends on linux-ptrace.h.
17057
03f2bd59
JK
170582011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17059
17060 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17061 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17062 (remote_prepare): New function with most of the TCP code from ...
17063 (remote_open): ... here. Detect PORT here unconditionally. Move also
17064 setting transport_is_reliable.
17065 * server.c (run_once): New variable.
17066 (gdbserver_usage): Document it.
17067 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17068 the first run if RUN_ONCE.
17069 * server.h (run_once, remote_prepare): New declarations.
17070
7a9dd1b2
TT
170712011-04-19 Tom Tromey <tromey@redhat.com>
17072
17073 * win32-low.c (handle_load_dll): Remove duplicate "the".
17074
81239425
PM
170752011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17076
17077 Remove support for old Cygwin 1.5 versions.
17078 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17079 function to avoid warning.
17080 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17081 warning.
17082
9e0627f1
PM
170832011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17084
17085 * gdbserver/server.h (Macro _): Define it if not available.
17086
588eebee
MS
170872011-03-14 Michael Snyder <msnyder@vmware.com>
17088
348af9f7 17089 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 17090
43f70d4c
JB
170912011-03-10 Joel Brobecker <brobecker@adacore.com>
17092
17093 * Makefile.in (maintainer-clean realclean distclean): Remove
17094 "make ... subdir_do" command.
17095
348af9f7
MS
170962011-03-10 Michael Snyder <msnyder@vmware.com>
17097
17098 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17099
17100 * server.c (handle_v_run): Free alloced buffer on early return.
17101
e637a4f5
YQ
171022011-03-09 Yao Qi <yao@codesourcery.com>
17103
17104 Revert:
17105 2011-03-04 Yao Qi <yao@codesourcery.com>
17106
17107 * Makefile.in: Remove GNU make feature --directory.
17108
17109 2011-03-05 Yao Qi <yao@codesourcery.com>
17110
17111 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17112 (subdir_do): New make target. Copied from gdb/Makefile.
17113 (maintainer-clean, realclean, distclean, clean): Call corresponding
17114 make targets in common/Makefile.
17115
17116 2011-02-11 Yao Qi <yao@codesourcery.com>
17117
17118 * configure.ac: Call AC_PROG_RANLIB.
17119 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17120 * configure: Regenerate.
17121
e6edda56
JK
171222011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17123
17124 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17125
e5141119
JB
171262011-03-06 Yao Qi <yao@codesourcery.com>
17127
17128 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17129
64794aa4
JB
171302011-03-05 Yao Qi <yao@codesourcery.com>
17131
17132 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17133 (subdir_do): New make target. Copied from gdb/Makefile.
17134 (maintainer-clean, realclean, distclean, clean): Call corresponding
17135 make targets in common/Makefile.
17136
7a762829
YQ
171372011-03-04 Yao Qi <yao@codesourcery.com>
17138
17139 * Makefile.in: Remove GNU make feature --directory.
17140
348af9f7
MS
171412011-03-04 Michael Snyder <msnyder@vmware.com>
17142
17143 * server.c (queue_stop_reply): Call xmalloc not malloc.
17144
171452011-03-02 Michael Snyder <msnyder@vmware.com>
17146
17147 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17148
9f72fee2
MS
171492011-02-28 Michael Snyder <msnyder@vmware.com>
17150
588eebee
MS
17151 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17152 (cmd_qtframe): Ditto.
17153 (cmd_qtbuffer): Ditto.
17154 (cmd_bigqtbuffer): Ditto.
17155
9f72fee2
MS
17156 * utils.c (decimal2str): Initialize 'width' to nine, then
17157 don't mess with it.
17158
8040bd49
UW
171592011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17160
17161 * hostio.c (require_data): Free *data, not data.
17162
7e52cbd0
JK
171632011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17164
17165 * hostio.c (require_data): Use free, not xfree.
17166
9130f83e
MS
171672011-02-27 Michael Snyder <msnyder@vmware.com>
17168
4b812f4e
MS
17169 * server.c (handle_query): Discard unused value.
17170
9130f83e
MS
17171 * hostio.c (require_data): Free malloc memory before returning
17172 error.
17173
69d37113
MS
171742011-02-26 Michael Snyder <msnyder@vmware.com>
17175
17176 * linux-low.c (list_threads): Call closedir for dirent.
17177
35f5825a
MS
171782011-02-27 Michael Snyder <msnyder@vmware.com>
17179
2a589cef
MS
17180 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17181 a case statement falls through.
17182
0adea5f7
MS
17183 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17184
35f5825a
MS
17185 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17186 in comparison.
17187
238f1c74
MS
171882011-02-26 Michael Snyder <msnyder@vmware.com>
17189
17190 * utils.c (decimal2str): Eliminate dead code and dead param.
17191 (pulongest): Drop dead param from call to decimal2str.
17192 (plongest): Ditto.
17193
633ff500
JB
171942011-02-24 Joel Brobecker <brobecker@adacore.com>
17195
17196 Revert the following patch (not approved yet):
17197 2011-02-21 Hui Zhu <teawater@gmail.com>
17198 * tracepoint.c (tp_printf): New function.
17199 (eval_agent_expr): Handle gdb_agent_op_printf.
17200
f9c6ff72
HZ
172012011-02-21 Hui Zhu <teawater@gmail.com>
17202
17203 * tracepoint.c (tp_printf): New function.
17204 (eval_agent_expr): Handle gdb_agent_op_printf.
17205
94d5e490
TT
172062011-02-18 Tom Tromey <tromey@redhat.com>
17207
17208 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17209 (tracepoint.o): Likewise.
17210 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17211 (gdb_agent_op_names): Likewise.
17212
c7f96d2b
TT
172132011-02-18 Tom Tromey <tromey@redhat.com>
17214
17215 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17216 gdb_agent_op_rot>: New constants.
17217 (gdb_agent_op_names): Add pick and roll.
17218 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17219 cases.
17220
0feedb2c
JK
172212011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17222
17223 * aclocal.m4: Regenerated with aclocal-1.11.1.
17224
b3b9301e
PA
172252011-02-14 Pedro Alves <pedro@codesourcery.com>
17226
17227 * server.c (handle_qxfer_traceframe_info): New.
17228 (qxfer_packets): Register "traceframe-info".
17229 (handle_query): Report support for qXfer:traceframe-info:read+.
17230 * tracepoint.c (match_blocktype): New.
17231 (traceframe_find_block_type): Rename to ...
17232 (traceframe_walk_blocks): ... this. Add callback filter argument,
17233 and use it.
17234 (traceframe_find_block_type): New, reimplemented on top of
17235 traceframe_walk_blocks.
17236 (build_traceframe_info_xml): New.
17237 (traceframe_read_info): New.
17238 * server.h (traceframe_read_info): Declare.
17239
4f3e6fb7
YQ
172402011-02-11 Yao Qi <yao@codesourcery.com>
17241
17242 * configure.ac: Call AC_PROG_RANLIB.
17243 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17244 * configure: Regenerate.
17245
764880b7
PA
172462011-02-07 Pedro Alves <pedro@codesourcery.com>
17247
17248 * server.c (gdb_read_memory): Change return semantics to allow
17249 partial transfers.
17250 (handle_search_memory_1): Adjust.
17251 (process_serial_event) <'m' packet>: Handle partial transfers.
17252 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17253
1c79eb8a
PA
172542011-01-28 Pedro Alves <pedro@codesourcery.com>
17255
17256 * regcache.c (init_register_cache): Initialize
17257 regcache->register_status.
17258 (free_register_cache): Release regcache->register_status.
17259 (regcache_cpy): Copy register_status.
17260 (registers_to_string): Print 'x's for unavailable registers.
17261 (supply_register): Mark the register's status valid or
17262 unavailable, depending on whether a buffer was passed in or not.
17263 (supply_register_zeroed): New.
17264 (supply_regblock): Mark the registers' status valid or
17265 unavailable, depending on whether a buffer was passed in or not.
17266 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17267 (struct regcache): New `register_status' field.
17268 (supply_register_zeroed): Declare.
17269 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17270 supply_register_zeroed, rather than passing a NULL buffer to
17271 supply_register.
17272 * tracepoint.c (fetch_traceframe_registers): Update comment.
17273
85724a0e
PA
172742011-01-28 Pedro Alves <pedro@codesourcery.com>
17275
17276 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17277 buffer explicit.
17278
d08aafef
PA
172792011-01-25 Pedro Alves <pedro@codesourcery.com>
17280
17281 * server.h (decode_xfer_write): Change prototype.
17282 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17283 and don't extract the annex here.
17284 * server.c (decode_xfer_read): Remove `annex' parameter,
17285 and don't extract the annex here.
17286 (decode_xfer): New.
17287 (struct qxfer): New.
17288 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17289 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17290 (handle_qxfer_statictrace): New functions, abstracted out from
17291 handle_query, and made to use the struct qxfer interface.
17292 (handle_threads_qxfer_proper): Rename to ...
17293 (handle_qxfer_threads_proper): ... this.
17294 (handle_threads_qxfer): Rename to ...
17295 (handle_qxfer_threads): ... this. Adjust.
17296 (qxfer_packets): New array.
17297 (handle_qxfer): New function.
17298 (handle_query): Use handle_qxfer.
17299
493e2a69
MS
173002011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17301
17302 * gdbreplay.c: Shorten lines of >= 80 columns.
17303 * linux-low.c: Ditto.
17304 * linux-ppc-low.c: Ditto.
17305 * linux-s390-low.c: Ditto.
17306 * linux-sparc-low.c: Ditto.
17307 * linux-x86-low.c: Ditto.
17308 * linux-xtensa-low.c: Ditto.
17309 * mem-break.c: Ditto.
17310 * nto-low.c: Ditto.
17311 * regcache.h: Ditto.
17312 * remote-utils.c: Ditto.
17313 * server.c: Ditto.
17314 * server.h: Ditto.
17315 * thread-db.c: Ditto.
17316 * tracepoint.c: Ditto.
17317 * utils.c: Ditto.
17318 * win32-low.h: Ditto.
17319
44944448
JB
173202011-01-05 Joel Brobecker <brobecker@adacore.com>
17321
17322 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17323 update.
17324
71ce852c
JB
173252011-01-01 Joel Brobecker <brobecker@adacore.com>
17326
17327 * server.c (gdbserver_version): Update copyright year in version
17328 output.
17329 * gdbreplay.c (gdbreplay_version): Ditto.
17330
eb826dc6
MF
173312010-12-29 Jie Zhang <jie.zhang@analog.com>
17332
17333 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17334 * linux-bfin-low.c: New file.
17335 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17336 PT_DATA_ADDR for BFIN targets.
17337 * Makefile.in (SFILES): Add linux-bfin-low.c.
17338 (clean): Remove reg-bfin.c.
17339 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17340 * README: Mention supported Blackfin targets.
17341
39ab222a
MF
173422010-12-23 Mike Frysinger <vapier@gentoo.org>
17343
17344 * .gitignore: New file.
17345
a1f2ce7d
MF
173462010-11-16 Mike Frysinger <vapier@gentoo.org>
17347
17348 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17349
f474844c
JZ
173502010-10-22 Jie Zhang <jie@codesourcery.com>
17351
17352 * Makefile.in: Add FLAGS_TO_PASS variable.
17353 (install): Remove dependency of install-only and recursively
17354 invoke make for install-only.
17355
f1048712
DE
173562010-10-04 Doug Evans <dje@google.com>
17357
17358 * Makefile.in (uninstall): Use $(DESTDIR).
17359
b53a1623
PA
173602010-09-24 Pedro Alves <pedro@codesourcery.com>
17361
e6ee044d
PA
17362 PR gdb/11842
17363
b53a1623
PA
17364 * linux-x86-low.c (compat_siginfo_from_siginfo)
17365 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17366 si_code is < 0. Check for si_code == SI_TIMER before checking for
17367 si_code < 0.
17368
fa1bd1e4
JB
173692010-09-13 Joel Brobecker <brobecker@adacore.com>
17370
17371 * lynx-i386-low.c: New file.
17372 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17373
47fac8f8
JB
173742010-09-13 Joel Brobecker <brobecker@adacore.com>
17375
17376 * lynx-low.c (ptrace_request_to_str): Remove handling for
17377 request values that have been removed in LynxOS 5.x.
17378
1adfc54d
JB
173792010-09-13 Joel Brobecker <brobecker@adacore.com>
17380
17381 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17382 <ptrace.h>
17383
c2a66c29
NS
173842010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17385
17386 * configure.ac: Add --enable-inprocess-agent option.
17387 * configure: Rebuilt.
17388
32fcada3
YQ
173892010-09-06 Yao Qi <yao@codesourcery.com>
17390
17391 * linux-low.c (linux_kill): Remove unused variable.
17392 (linux_stabilize_threads): Likewise.
17393 * server.c (start_inferior): Likewise.
17394 (queue_stop_reply_callback): Likewise.
17395 * tracepoint.c (do_action_at_tracepoint): Likewise.
17396
0cccb683
YQ
173972010-09-06 Yao Qi <yao@codesourcery.com>
17398
17399 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17400 on return.
17401
423ec54c
JK
174022010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17403
17404 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17405
12ac6819
PA
174062010-09-06 Pedro Alves <pedro@codesourcery.com>
17407
17408 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17409 "$(IPA_DEPFILES)".
17410
8ed54b31
JB
174112010-09-01 Joel Brobecker <brobecker@adacore.com>
17412
17413 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17414 gdbserver/lynx-ppc-low.c: New files.
17415 * Makefile.in (lynx_low_h): New variable.
17416 (lynx-low.o, lynx-ppc-low.o): New rules.
17417 * configure.ac: On LynxOS, link with -lnetinet.
17418 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17419 * configure: regenerate.
17420
bb0116a4
JB
174212010-09-01 Joel Brobecker <brobecker@adacore.com>
17422
17423 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17424 * configure.ac: Add check for vasprintf and vsnprintf.
17425 * configure, config.in: Regenerate.
17426 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17427
a778ab81 174282010-09-01 Joel Brobecker <brobecker@adacore.com>
17429
17430 * gdbreplay.c: Move include of alloca.h up, next to include of
17431 malloc.h.
17432 * server.h: Add include of malloc.h.
17433 * mem-break.c: Remove include of malloc.h.
17434 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17435
8b034a19 174362010-09-01 Joel Brobecker <brobecker@adacore.com>
17437
17438 * Makefile.in (memmem.o): Build with -Wno-error.
17439
174402010-09-01 Joel Brobecker <brobecker@adacore.com>
17441
17442 * utils.c (xsnprintf): Make non-static.
17443 * server.h: Add xsnprintf declaration.
17444 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17445 replace calls to snprintf by calls to xsnprintf throughout.
17446
174472010-09-01 Joel Brobecker <brobecker@adacore.com>
17448
17449 * configure.ac: Add configure check for alloca.
17450 * configure, config.in: Regenerate.
17451 * server.h: Include alloca.h if it exists.
17452 * gdbreplay.c: Include alloca.h if it exists.
17453
1a981360
PA
174542010-08-28 Pedro Alves <pedro@codesourcery.com>
17455
17456 * linux-low.c (__SIGRTMIN): Define if not already defined.
17457 (linux_create_inferior): Check for __ANDROID__ rather than
17458 __SIGRTMIN.
17459 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17460 are already deferred.
17461 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17462 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17463 stopped and already has a pending signal to report.
17464 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17465 a pending signal to report or is moving out of a jump pad.
17466 (linux_init_signals): Check for __ANDROID__ rather than
17467 __SIGRTMIN.
17468
b4d51a55
PA
174692010-08-28 Pedro Alves <pedro@codesourcery.com>
17470
17471 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17472 debug_threads check. Avoid a linear search when not doing debug
17473 output.
17474
ec48365d
PA
174752010-08-27 Pedro Alves <pedro@codesourcery.com>
17476
17477 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17478 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17479 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17480 (process_event): Change local fd's type to gdb_fildes_t.
17481 (create_file_handler): Adjust prototype.
17482 (delete_file_handler): Adjust prototype.
17483 (handle_file_event): Adjust prototype. Use pfildes.
17484 (create_file_event): Adjsut prototype.
17485 * remote-utils.c (remote_desc, listen_desc): Change type to
17486 gdb_fildes_t.
17487 * server.h: New gdb_fildes_t typedef.
17488 [USE_WIN32API]: Include winsock2.h.
17489 (delete_file_handler, add_file_handler): Adjust prototypes.
17490 (pfildes): Declare.
17491 * utils.c (pfildes): New.
17492
854d88f0
PA
174932010-08-27 Pedro Alves <pedro@codesourcery.com>
17494
17495 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17496 * configure: Regenerate.
17497
0146f85b
PA
174982010-08-27 Pedro Alves <pedro@codesourcery.com>
17499
17500 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17501 (linux_done_accessing_memory): ... this.
17502 (linux_target_ops): Adjust.
17503 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17504 * nto-low.c (nto_target_ops): Adjust comment.
17505 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17506 * spu-low.c (spu_target_ops): Adjust comment.
17507 * target.h (target_ops): Rename unprepare_to_access_memory field
17508 to done_accessing_memory.
17509 (unprepare_to_access_memory): Rename to ...
17510 (done_accessing_memory): ... this.
17511
90d74c30
PA
175122010-08-26 Pedro Alves <pedro@codesourcery.com>
17513
17514 * linux-low.c (linux_prepare_to_access_memory): New.
17515 (linux_unprepare_to_access_memory): New.
17516 (linux_target_ops): Install them.
17517 * server.c (read_memory): Rename to ...
17518 (gdb_read_memory): ... this. Use
17519 prepare_to_access_memory/prepare_to_access_memory.
17520 (write_memory): Rename to ...
17521 (gdb_write_memory): ... this. Use
17522 prepare_to_access_memory/prepare_to_access_memory.
17523 (handle_search_memory_1): Adjust.
17524 (process_serial_event): Adjust.
17525 * target.h (struct target_ops): New fields
17526 prepare_to_access_memory and unprepare_to_access_memory.
17527 (prepare_to_access_memory, unprepare_to_access_memory): New.
17528 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17529 prepare_to_access_memory/prepare_to_access_memory.
17530 * nto-low.c (nto_target_ops): Adjust.
17531 * spu-low.c (spu_target_ops): Adjust.
17532 * win32-low.c (win32_target_ops): Adjust.
17533
fd467969
PA
175342010-08-26 Pedro Alves <pedro@codesourcery.com>
17535
17536 * Makefile.in (WARN_CFLAGS): Get it from configure.
17537 (WERROR_CFLAGS): New.
17538 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17539 * configure.ac: Introduce --enable-werror, which adds -Werror to
17540 the compiler command line. Enabled by default. Disable with
17541 --disable-werror. Add -Wdeclaration-after-statement
17542 Wpointer-arith and -Wformat-nonliteral to warning flags.
17543 * configure: Regenerate.
17544
331e2f5f
PA
175452010-08-26 Pedro Alves <pedro@codesourcery.com>
17546
17547 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17548
e581f2b4
PA
175492010-08-26 Pedro Alves <pedro@codesourcery.com>
17550
17551 * gdbreplay.c (remote_error): New.
17552 (gdbchar): New.
17553 (expect): Use gdbchar. Check for error reading from GDB.
17554 Clarify sync error output.
17555 (play): Check for errors writing to GDB.
17556 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17557 * remote-utils.c (getpkt): Check for errors writing to the remote
17558 descriptor.
17559
3c11dd79
PA
175602010-08-25 Pedro Alves <pedro@codesourcery.com>
17561
17562 * linux-low.c (linux_wait_1): Move non-debugging code out of
17563 `debug_threads' control.
17564
d20a8ad9
PA
175652010-08-25 Pedro Alves <pedro@codesourcery.com>
17566
17567 * linux-low.c (linux_wait_1): Don't set last_status here.
17568 * server.c (push_event, queue_stop_reply_callback): Assert we're
17569 not pushing a TARGET_WAITKIND_IGNORE event.
17570 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17571 (myresume, handle_target_event): Set the thread's last_resume_kind
17572 and last_status from the target returned status.
17573
964e4306
PA
175742010-08-25 Pedro Alves <pedro@codesourcery.com>
17575
17576 PR threads/10729
17577
17578 * linux-x86-low.c (update_debug_registers_callback): New.
17579 (i386_dr_low_set_addr): Use it.
17580 (i386_dr_low_get_addr): New.
17581 (i386_dr_low_set_control): Use update_debug_registers_callback.
17582 (i386_dr_low_get_control): New.
17583 (i386_dr_low_get_status): Adjust.
17584 * linux-low.c (linux_stop_lwp): New.
17585 * linux-low.h (linux_stop_lwp): Declare.
17586
17587 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17588 argument instead of a i386_debug_reg_state.
17589 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17590 a i386_debug_reg_state.
17591 (i386_insert_aligned_watchpoint): Adjust.
17592 (i386_remove_aligned_watchpoint): Adjust.
17593 (i386_low_stopped_data_address): Read the debug registers from the
17594 inferior instead of from the mirrors.
17595 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17596 (i386_dr_low_get_addr): Declare.
17597 (i386_dr_low_get_control): Declare.
17598 (i386_dr_low_get_status): Change prototype.
17599
17600 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17601 (i386_dr_low_get_addr): New.
17602 (i386_dr_low_get_control): New.
17603 (i386_dr_low_get_status): Adjust prototype. Return
17604 dr_status_mirror.
17605 (i386_initial_stuff): Clear dr_status_mirror and
17606 dr_control_mirror.
17607 (i386_get_thread_context): Adjust.
17608 (i386_set_thread_context): Adjust.
17609 (i386_thread_added): Adjust.
17610
5f21a75b
PA
176112010-08-24 Pedro Alves <pedro@codesourcery.com>
17612
17613 * linux-low.h (linux_thread_area): Delete declaration.
17614
3e4c1235
TS
176152010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17616
17617 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17618 after its termination.
17619
1971b033
PA
176202010-08-09 Pedro Alves <pedro@codesourcery.com>
17621
17622 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17623 (gdb_wants_all_stopped): Delete.
17624 (linux_wait_1): Don't call them.
17625 * server.c (handle_v_cont): Tag all threads as want-stopped.
17626 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17627 stopped as "client-wants-stopped".
17628
310444ac
PA
176292010-07-31 Pedro Alves <pedro@codesourcery.com>
17630
17631 * Makefile.in (signals_h): New.
17632 (server_h): Depend on it.
17633 (server.o): Don't depend on $(signals_def).
17634 (signals.o): Depend on $(signals_def).
17635
a19cae16
JK
176362010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17637
17638 * Makefile.in (signals_def): New.
17639 (server_h): Append include/gdb/signals.h and signals_def.
17640 (server.o): Append signals_def.
17641
30d50328
JK
176422010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17643
17644 * server.c (handle_target_event): Use target_signal_to_host for
17645 resume_info.sig initialization.
17646 * target.h (struct thread_resume) <sig>: New comment.
17647
5c3216e2
OS
176482010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17649
c6f46ca0
OS
17650 * server.c (handle_query): strcpy() the returned string from paddress()
17651 instead of sprintf().
5c3216e2
OS
17652 * utils.c (paddress): Return phex_nz().
17653
6bd31874
JB
176542010-07-07 Joel Brobecker <brobecker@adacore.com>
17655
17656 * server.c (handle_v_cont): Call mourn_inferior if process
17657 just exited.
17658 (myresume): Likewise.
17659
0fb4aa4b
PA
176602010-07-01 Pedro Alves <pedro@codesourcery.com>
17661
17662 Static tracepoints, and integration with UST.
17663
17664 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17665 * mem-break.c (uninsert_all_breakpoints)
17666 (reinsert_all_breakpoints): New.
17667 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17668 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17669 (gdb_agent_ust_loaded, helper_thread_id)
17670 (gdb_agent_helper_thread_id): New macros.
17671 (struct ipa_sym_addresses): Add addr_ust_loaded,
17672 addr_helper_thread_id, addr_cmd_buf.
17673 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17674 (in_process_agent_loaded_ust): New.
17675 (write_e_ust_not_loaded): New.
17676 (maybe_write_ipa_ust_not_loaded): New.
17677 (struct collect_static_trace_data_action): New.
17678 (enum tracepoint_type) <static_tracepoint>: New.
17679 (struct tracepoint) <handle>: Mention static tracepoints.
17680 (struct static_tracepoint_ctx): New.
17681 (CMD_BUF_SIZE): New.
17682 (add_tracepoint_action): Handle static tracepoint actions.
17683 (unprobe_marker_at): New.
17684 (clear_installed_tracepoints): Handle static tracepoints.
17685 (cmd_qtdp): Handle static tracepoints.
17686 (probe_marker_at): New.
17687 (cmd_qtstart): Handle static tracepoints.
17688 (response_tracepoint): Handle static tracepoints.
17689 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17690 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17691 (get_context_regcache): Handle static tracepoints.
17692 (do_action_at_tracepoint): Handle static tracepoint actions.
17693 (traceframe_find_block_type): Handle static trace data blocks.
17694 (traceframe_read_sdata): New.
17695 (download_tracepoints): Download static tracepoint actions.
17696 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17697 (GDB_PROBE_NAME): New.
17698 (ust_ops): New.
17699 (GET_UST_SYM): New.
17700 (USTF): New.
17701 (dlsym_ust): New.
17702 (ust_marker_to_static_tracepoint): New.
17703 (gdb_probe): New.
17704 (collect_ust_data_at_tracepoint): New.
17705 (gdb_ust_probe): New.
17706 (UNIX_PATH_MAX, SOCK_DIR): New.
17707 (gdb_ust_connect_sync_socket): New.
17708 (resume_thread, stop_thread): New.
17709 (run_inferior_command): New.
17710 (init_named_socket): New.
17711 (gdb_ust_socket_init): New.
17712 (cstr_to_hexstr): New.
17713 (next_st): New.
17714 (first_marker, next_marker): New.
17715 (response_ust_marker): New.
17716 (cmd_qtfstm, cmd_qtsstm): New.
17717 (unprobe_marker_at, probe_marker_at): New.
17718 (cmd_qtstmat, gdb_ust_thread): New.
17719 (gdb_ust_init): New.
17720 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17721 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17722 (ST_REGENTRY): New.
17723 (x86_64_st_collect_regmap): New.
17724 (X86_64_NUM_ST_COLLECT_GREGS): New.
17725 (AMD64_RIP_REGNUM): New.
17726 (supply_static_tracepoint_registers): New.
17727 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17728 (ST_REGENTRY): New.
17729 (i386_st_collect_regmap): New.
17730 (i386_NUM_ST_COLLECT_GREGS): New.
17731 (supply_static_tracepoint_registers): New.
17732 * server.c (handle_query): Handle qXfer:statictrace:read.
17733 <qSupported>: Report support for StaticTracepoints, and
17734 qXfer:statictrace:read features.
17735 * server.h (traceframe_read_sdata)
17736 (supply_static_tracepoint_registers): Declare.
17737 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17738 (unpack_varlen_hex): Include in IPA build.
17739 * Makefile.in (ustlibs, ustinc): New.
17740 (IPA_OBJS): Add remote-utils-ipa.o.
17741 ($(IPA_LIB)): Link -ldl and -lpthread.
17742 (UST_CFLAGS): New.
17743 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17744 * config.in, configure: Regenerate.
17745
9e4344e5
PA
177462010-06-20 Ian Lance Taylor <iant@google.com>
17747 Pedro Alves <pedro@codesourcery.com>
17748
17749 * linux-x86-low.c (always_true): Delete.
17750 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17751 trying to fool the compiler with always_true.
17752
c6beb2cb
PA
177532010-06-20 Pedro Alves <pedro@codesourcery.com>
17754
17755 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17756 conditions in gdbserver.
17757
d2ed6730
UW
177582010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17759
17760 * spu-low.c (spu_read_memory): Wrap around local store limit.
17761 (spu_write_memory): Likewise.
17762
4e29fb54
PA
177632010-06-15 Pedro Alves <pedro@codesourcery.com>
17764
17765 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17766 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17767 LONGEST uses.
17768 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17769 uses.
17770 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17771 uses with LONGEST uses.
17772
6a271cae
PA
177732010-06-14 Stan Shebs <stan@codesourcery.com>
17774 Pedro Alves <pedro@codesourcery.com>
17775
17776 Bytecode compiler.
17777
17778 * linux-x86-low.c: Include limits.h.
17779 (add_insns): New.
17780 (always_true): New.
17781 (EMIT_ASM): New.
17782 (EMIT_ASM32): New.
17783 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17784 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17785 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17786 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17787 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17788 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17789 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17790 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17791 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17792 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17793 (amd64_emit_void_call_2): New.
17794 (amd64_emit_ops): New.
17795 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17796 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17797 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17798 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17799 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17800 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17801 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17802 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17803 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17804 (i386_emit_stack_adjust, i386_emit_int_call_1)
17805 (i386_emit_void_call_2): New.
17806 (i386_emit_ops): New.
17807 (x86_emit_ops): New.
17808 (the_low_target): Install x86_emit_ops.
17809 * server.h (struct emit_ops): New.
17810 (get_raw_reg_func_addr): Declare.
17811 (current_insn_ptr, emit_error): Declare.
17812 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17813 (set_trace_state_variable_value): New defines.
17814 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17815 addr_get_trace_state_variable_value and
17816 addr_set_trace_state_variable_value.
17817 (symbol_list): New fields for get_raw_reg,
17818 get_trace_state_variable_value and set_trace_state_variable_value.
17819 (condfn): New typedef.
17820 (struct tracepoint): New field `compiled_cond'.
17821 (do_action_at_tracepoint): Clear compiled_cond.
17822 (get_trace_state_variable_value, set_trace_state_variable_value):
17823 Export in the IPA.
17824 (condition_true_at_tracepoint): If there's a compiled condition,
17825 run that.
17826 (current_insn_ptr, emit_error): New globals.
17827 (struct bytecode_address): New.
17828 (get_raw_reg_func_addr): New.
17829 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17830 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17831 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17832 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17833 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17834 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17835 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17836 (compile_tracepoint_condition, compile_bytecodes): New.
17837 * target.h (emit_ops): Forward declare.
17838 (struct target_ops): New field emit_ops.
17839 (target_emit_ops): New.
17840 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17841 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17842 * linux-low.c (linux_emit_ops): New.
17843 (linux_target_ops): Install it.
17844 * linux-low.h (struct linux_target_ops): New field emit_ops.
17845
92b72907
UW
178462010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17847
17848 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17849 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17850
fa593d66
PA
178512010-06-01 Pedro Alves <pedro@codesourcery.com>
17852 Stan Shebs <stan@codesourcery.com>
17853
17854 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17855 (all): Depend on $(extra_libraries).
17856 (install-only): Install the IPA.
17857 (IPA_OBJS, IPA_LIB): New.
17858 (clean): Remove the IPA lib.
17859 (IPAGENT_CFLAGS): New.
17860 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17861 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17862 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17863 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17864 * configure.ac: Check for atomic builtins support in the compiler.
17865 (IPA_DEPFILES, extra_libraries): Define.
17866 * configure.srv (ipa_obj): Add description.
17867 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17868 (i[34567]86-*-linux*): Set ipa_obj.
17869 (x86_64-*-linux*): Set ipa_obj.
17870 * linux-low.c (stabilizing_threads): New.
17871 (supports_fast_tracepoints): New.
17872 (linux_detach): Stabilize threads before detaching.
17873 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17874 the lwp is either not stabilizing, or is moving out of a jump pad.
17875 (linux_fast_tracepoint_collecting): New.
17876 (maybe_move_out_of_jump_pad): New.
17877 (enqueue_one_deferred_signal): New.
17878 (dequeue_one_deferred_signal): New.
17879 (linux_wait_for_event_1): If moving out of a jump pad, defer
17880 pending signals to later.
17881 (linux_stabilize_threads): New.
17882 (linux_wait_1): Check if threads need moving out of jump pads, and
17883 do it if so.
17884 (stuck_in_jump_pad_callback): New.
17885 (move_out_of_jump_pad_callback): New.
17886 (lwp_running): New.
17887 (linux_resume_one_lwp): Handle moving out of jump pads.
17888 (linux_set_resume_request): Dequeue deferred signals.
17889 (need_step_over_p): Also step over fast tracepoint jumps.
17890 (start_step_over): Also uninsert fast tracepoint jumps.
17891 (finish_step_over): Also reinsert fast tracepoint jumps.
17892 (linux_install_fast_tracepoint_jump): New.
17893 (linux_target_ops): Install linux_stabilize_threads and
17894 linux_install_fast_tracepoint_jump_pad.
17895 * linux-low.h (linux_target_ops) <get_thread_area,
17896 install_fast_tracepoint_jump_pad>: New fields.
17897 (struct lwp_info) <collecting_fast_tracepoint,
17898 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17899 (linux_get_thread_area): Declare.
17900 * linux-x86-low.c (jump_insn): New.
17901 (x86_get_thread_area): New.
17902 (append_insns): New.
17903 (push_opcode): New.
17904 (amd64_install_fast_tracepoint_jump_pad): New.
17905 (i386_install_fast_tracepoint_jump_pad): New.
17906 (x86_install_fast_tracepoint_jump_pad): New.
17907 (the_low_target): Install x86_get_thread_area and
17908 x86_install_fast_tracepoint_jump_pad.
17909 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17910 (struct fast_tracepoint_jump): New.
17911 (fast_tracepoint_jump_insn): New.
17912 (fast_tracepoint_jump_shadow): New.
17913 (find_fast_tracepoint_jump_at): New.
17914 (fast_tracepoint_jump_here): New.
17915 (delete_fast_tracepoint_jump): New.
17916 (set_fast_tracepoint_jump): New.
17917 (uninsert_fast_tracepoint_jumps_at): New.
17918 (reinsert_fast_tracepoint_jumps_at): New.
17919 (set_breakpoint_at): Use write_inferior_memory.
17920 (uninsert_raw_breakpoint): Use write_inferior_memory.
17921 (check_mem_read): Mask out fast tracepoint jumps.
17922 (check_mem_write): Mask out fast tracepoint jumps.
17923 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17924 (set_fast_tracepoint_jump): Declare.
17925 (delete_fast_tracepoint_jump)
17926 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17927 (reinsert_fast_tracepoint_jumps_at): Declare.
17928 * regcache.c: Don't compile many functions when building the
17929 in-process agent library.
17930 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17931 the register buffer in the heap.
17932 (free_register_cache): If the register buffer isn't owned by the
17933 regcache, don't free it.
17934 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17935 pre-existing register caches.
17936 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17937 type.
17938 (convert_ascii_to_int): : Constify `from' parameter type.
17939 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17940 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17941 the needed buffer in-place.
17942 (relocate_instruction): New.
17943 * server.c (handle_query) <qSymbols>: If the target supports
17944 tracepoints, give it a chance of looking up symbols. Report
17945 support for fast tracepoints.
17946 (handle_status): Stabilize threads.
17947 (process_serial_event): Adjust.
17948 * server.h (struct fast_tracepoint_jump): Forward declare.
17949 (struct process_info) <fast_tracepoint_jumps>: New field.
17950 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17951 (decode_X_packet, decode_M_packet): Adjust.
17952 (relocate_instruction): Declare.
17953 (in_process_agent_loaded): Declare.
17954 (tracepoint_look_up_symbols): Declare.
17955 (struct fast_tpoint_collect_status): Declare.
17956 (fast_tracepoint_collecting): Declare.
17957 (force_unlock_trace_buffer): Declare.
17958 (handle_tracepoint_bkpts): Declare.
17959 (initialize_low_tracepoint)
17960 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17961 * target.h (struct target_ops) <stabilize_threads,
17962 install_fast_tracepoint_jump_pad>: New fields.
17963 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17964 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17965 [HAVE_STDINT_H]: Include stdint.h.
17966 (trace_debug_1): Rename to ...
17967 (trace_vdebug): ... this.
17968 (trace_debug): Rename to ...
17969 (trace_debug_1): ... this. Add `level' parameter.
17970 (trace_debug): New.
17971 (ATTR_USED, ATTR_NOINLINE): New.
17972 (IP_AGENT_EXPORT): New.
17973 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17974 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17975 (about_to_request_buffer_space, trace_buffer_is_full)
17976 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17977 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17978 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17979 (traceframe_write_count, traceframes_created)
17980 (trace_state_variables)
17981 New renaming defines.
17982 (struct ipa_sym_addresses): New.
17983 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17984 (symbol_list): New.
17985 (ipa_sym_addrs): New.
17986 (all_tracepoint_symbols_looked_up): New.
17987 (in_process_agent_loaded): New.
17988 (write_e_ipa_not_loaded): New.
17989 (maybe_write_ipa_not_loaded): New.
17990 (tracepoint_look_up_symbols): New.
17991 (debug_threads) [IN_PROCESS_AGENT]: New.
17992 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17993 (UNKNOWN_SIDE_EFFECTS): New.
17994 (stop_tracing): New.
17995 (flush_trace_buffer): New.
17996 (stop_tracing_bkpt): New.
17997 (flush_trace_buffer_bkpt): New.
17998 (read_inferior_integer): New.
17999 (read_inferior_uinteger): New.
18000 (read_inferior_data_pointer): New.
18001 (write_inferior_data_pointer): New.
18002 (write_inferior_integer): New.
18003 (write_inferior_uinteger): New.
18004 (struct collect_static_trace_data_action): Delete.
18005 (enum tracepoint_type): New.
18006 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
18007 <actions_str, step_actions, step_actions_str>: Only include in
18008 GDBserver.
fa593d66
PA
18009 <orig_size, obj_addr_on_target, adjusted_insn_addr>
18010 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
18011 (tracepoints): Use IP_AGENT_EXPORT.
18012 (last_tracepoint): Don't include in the IPA.
18013 (stopping_tracepoint): Use IP_AGENT_EXPORT.
18014 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
18015 (alloced_trace_state_variables): New.
18016 (trace_state_variables): Use IP_AGENT_EXPORT.
18017 (traceframe_t): Delete unused variable.
18018 (circular_trace_buffer): Don't include in the IPA.
18019 (trace_buffer_start): Delete.
18020 (struct trace_buffer_control): New.
18021 (trace_buffer_free): Delete.
18022 (struct ipa_trace_buffer_control): New.
18023 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18024 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18025 New.
18026 (trace_buffer_ctrl): New.
18027 (TRACE_BUFFER_CTRL_CURR): New.
18028 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18029 Reimplement as macros.
18030 (trace_buffer_wrap): Delete.
18031 (traceframe_write_count, traceframe_read_count)
18032 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18033 (struct tracepoint_hit_ctx) <type>: New field.
18034 (struct fast_tracepoint_ctx): New.
18035 (memory_barrier): New.
18036 (cmpxchg): New.
18037 (record_tracepoint_error): Update atomically in the IPA.
18038 (clear_inferior_trace_buffer): New.
18039 (about_to_request_buffer_space): New.
18040 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18041 updating the same buffer.
18042 (add_tracepoint): Default the tracepoint's type to trap
18043 tracepoint, and orig_size to -1.
18044 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18045 internal variables.
18046 (create_trace_state_variable): New parameter `gdb'. Handle it.
18047 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18048 (cmd_qtdp): Handle fast tracepoints.
18049 (cmd_qtdv): Adjust.
18050 (max_jump_pad_size): New.
18051 (gdb_jump_pad_head): New.
18052 (get_jump_space_head): New.
18053 (claim_jump_space): New.
18054 (sort_tracepoints): New.
18055 (MAX_JUMP_SIZE): New.
18056 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18057 IPA.
18058 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18059 support. Upload fast traceframes, and delete internal IPA
18060 breakpoints.
18061 (stop_tracing_handler): New.
18062 (flush_trace_buffer_handler): New.
18063 (cmd_qtstop): Upload fast tracepoints.
18064 (response_tracepoint): Handle fast tracepoints.
18065 (tracepoint_finished_step): Upload fast traceframes. Set the
18066 tracepoint hit context's tracepoint type.
18067 (handle_tracepoint_bkpts): New.
18068 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18069 type. Add comment about fast tracepoints.
18070 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18071 non-existing action_str field.
18072 (get_context_regcache): Handle fast tracepoints.
18073 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18074 to the regcache.
18075 (fast_tracepoint_from_jump_pad_address): New.
18076 (fast_tracepoint_from_ipa_tpoint_address): New.
18077 (collecting_t): New.
18078 (force_unlock_trace_buffer): New.
18079 (fast_tracepoint_collecting): New.
18080 (collecting): New.
18081 (gdb_collect): New.
18082 (write_inferior_data_ptr): New.
18083 (target_tp_heap): New.
18084 (target_malloc): New.
18085 (download_agent_expr): New.
18086 (UALIGN): New.
18087 (download_tracepoints): New.
18088 (download_trace_state_variables): New.
18089 (upload_fast_traceframes): New.
18090 (IPA_FIRST_TRACEFRAME): New.
18091 (IPA_NEXT_TRACEFRAME_1): New.
18092 (IPA_NEXT_TRACEFRAME): New.
18093 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18094 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18095 (gdb_jump_pad_buffer_end): New.
18096 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18097 (initialize_tracepoint): Adjust.
18098 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18099 buffer. Initialize the low module.
18100 * utils.c (PREFIX, TOOLNAME): New.
18101 (malloc_failure): Use PREFIX.
18102 (error): In the IPA, an error causes an exit.
18103 (fatal, warning): Use PREFIX.
18104 (internal_error): Use TOOLNAME.
18105 (NUMCELLS): Increase to 10.
18106 * configure, config.in: Regenerate.
18107
d149dd1d
PA
181082010-06-01 Pedro Alves <pedro@codesourcery.com>
18109
18110 * server.c (handle_query) <qSupported>: Do two passes over the
18111 qSupported string to avoid nesting strtok.
18112
f6528abd
JK
181132010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18114
18115 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18116 (CDEPS): New.
18117 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18118 -Wl,--dynamic-list.
18119 * configure: Regenerate.
18120 * proc-service.list: New.
18121
ca2a87a0
JK
181222010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18123
18124 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18125 New comment.
18126
363a6e9f
OS
181272010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18128
18129 * gdbreplay.c (remote_open): Check error return from socket() call by
18130 its equality to -1 not by it being negative.
18131 * remote-utils.c (remote_open): Likewise.
18132
d23b6cb1
PA
181332010-05-23 Pedro Alves <pedro@codesourcery.com>
18134
18135 * config.h: Regenerate.
18136
28d3cf85
MK
181372010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18138
18139 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18140 doesn't provide PTRACE_GET_THREAD_AREA.
18141
fea36a59
MK
181422010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18143
18144 * linux-m68k-low.c: Include <asm/ptrace.h>
18145 (ps_get_thread_area): Implement.
18146
24b066ba
DE
181472010-05-03 Doug Evans <dje@google.com>
18148
18149 * event-loop.c (struct callback_event): New struct.
18150 (callback_list): New global.
18151 (append_callback_event, delete_callback_event): New functions.
18152 (process_callback): New function.
18153 (start_event_loop): Call it.
18154 * remote-utils.c (NOT_SCHEDULED): Define.
18155 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18156 moved out of readchar.
18157 (readchar): Rewrite. Call reschedule before returning.
18158 (reset_readchar): New function.
18159 (remote_close): Call it.
18160 (process_remaining, reschedule): New functions.
18161 * server.h (callback_handler_func): New typedef.
18162 (append_callback_event, delete_callback_event): Declare.
18163
9836d6ea
PA
181642010-05-03 Pedro Alves <pedro@codesourcery.com>
18165
18166 * proc-service.c (ps_pglobal_lookup): Use
18167 thread_db_look_up_one_symbol.
18168 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18169 parameter. Use it instead of all_symbols_looked_up.
18170 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18171 field.
18172 (all_symbols_looked_up): Don't declare.
18173 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18174 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18175 field.
18176 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18177 Set all_symbols_looked_up here.
18178 (thread_db_look_up_one_symbol): New.
18179 (thread_db_get_tls_address): Adjust.
18180 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18181 thread_db object on the heap, and tentatively set it in the
18182 process structure.
18183 (thread_db_init): Don't set all_symbols_looked_up here.
18184 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18185
7984d532
PA
181862010-05-03 Pedro Alves <pedro@codesourcery.com>
18187
18188 * linux-low.c (linux_kill, linux_detach): Adjust.
18189 (status_pending_p_callback): Remove redundant statement. Check
18190 for !TARGET_WAITIKIND_IGNORE, instead of
18191 TARGET_WAITKIND_STOPPED.
18192 (handle_tracepoints): Make sure LWP is locked. Adjust.
18193 (linux_wait_for_event_1): Adjust.
18194 (linux_cancel_breakpoints): New.
18195 (unsuspend_one_lwp): New.
18196 (unsuspend_all_lwps): New.
18197 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18198 (send_sigstop_callback): Change return type to int, add new
18199 `except' parameter and handle it.
18200 (suspend_and_send_sigstop_callback): New.
18201 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18202 pass them down. If SUSPEND, also increment the lwp's suspend
18203 count.
18204 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18205 (need_step_over_p): Don't consider suspended LWPs.
18206 (start_step_over): Adjust.
18207 (proceed_one_lwp): Change return type to int, add new `except'
18208 parameter and handle it.
18209 (unsuspend_and_proceed_one_lwp): New.
18210 (proceed_all_lwps): Use find_inferior instead of
18211 for_each_inferior.
18212 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18213 also decrement the suspend count of LWPs. Pass `except' down,
18214 instead of hacking its suspend count.
18215 (linux_pause_all): Add `freeze' parameter. Adjust.
18216 (linux_unpause_all): New.
18217 (linux_target_ops): Install linux_unpause_all.
18218 * server.c (handle_status): Adjust.
18219 * target.h (struct target_ops): New fields `unpause_all' and
18220 `cancel_breakpoints'. Add new parameter to `pause_all'.
18221 (pause_all): Add new `freeze' parameter.
18222 (unpause_all): New.
18223 (cancel_breakpoints): New.
18224 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18225 cancel breakpoints.
18226 (cmd_qtstart): Pause threads.
18227 (stop_tracing): Pause threads, and cancel breakpoints.
18228 * win32-low.c (win32_target_ops): Adjust.
18229
e471f25b
PA
182302010-05-03 Pedro Alves <pedro@codesourcery.com>
18231
18232 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18233 the inferior right away from here...
18234 (linux_wait_1): ... to here, and adjust to check the thread's
18235 last_resume_kind instead of the lwp's step or stop_expected flags.
18236
1915ef4f
PA
182372010-05-02 Pedro Alves <pedro@codesourcery.com>
18238
18239 * README: Use consistent `GDB' and `GDBserver' spellings.
18240
f9e39928
PA
182412010-05-02 Pedro Alves <pedro@codesourcery.com>
18242
18243 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18244 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18245 (linux_detach_one_lwp): Assume the lwp is stopped.
18246 (any_thread_of): Delete.
18247 (linux_detach): Stop all lwps here. Don't blindly delete all
18248 breakpoints.
18249 (delete_lwp_callback): New.
18250 (linux_mourn): Delete all lwps of the process that is gone.
18251 (linux_wait_1): Don't delete the last lwp of the process here.
18252 * mem-break.h (mark_breakpoints_out): Declare.
18253 * mem-break.c (mark_breakpoints_out): New.
18254 (free_all_breakpoints): Use it.
18255 * server.c (handle_target_event): If the process is gone, mark
18256 breakpoints out.
18257 * thread-db.c (struct thread_db) <create_bp>: New field.
18258 (thread_db_enable_reporting): Fix prototype. Store a thread event
18259 breakpoint reference in the thread_db struct.
18260 (thread_db_load_search): Clear the thread_db object.
18261 (try_thread_db_load_1): Ditto.
18262 (switch_to_process): New.
18263 (disable_thread_event_reporting): Use it.
18264 (remove_thread_event_breakpoints): New.
18265 (thread_db_detach, thread_db_mourn): Use it.
18266
1e7fc18c
PA
182672010-05-01 Pedro Alves <pedro@codesourcery.com>
18268
18269 * linux-low.c (linux_enable_event_reporting): New.
18270 (linux_wait_for_event_1, handle_extended_wait): Use it.
18271
02fc4de7
PA
182722010-04-30 Pedro Alves <pedro@codesourcery.com>
18273
18274 * linux-low.c (linux_kill_one_lwp, linux_kill)
18275 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18276 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18277 SIGSTOP even if the LWP is stopped.
18278 (send_sigstop_callback): New.
18279 (stop_all_lwps): Use send_sigstop_callback instead.
18280 (linux_resume_one_thread): Adjust.
18281 (proceed_one_lwp): Still proceed an LWP that the client has
18282 requested to stop, if we haven't reported it as stopped yet. Make
18283 sure that LWPs the client want stopped, have a pending SIGSTOP.
18284
bc3b5632
DE
182852010-04-26 Doug Evans <dje@google.com>
18286
ae1ada35
DE
18287 * server.c (handle_general_set): Make static.
18288
bc3b5632
DE
18289 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18290 Print received char after testing for error/eof instead of before.
18291 (input_interrupt): Tweak comment.
18292
65730243
DE
182932010-04-23 Doug Evans <dje@google.com>
18294
18295 * server.c (start_inferior): Print inferior argv if --debug.
18296
a8ae7dc0
AR
182972010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18298
18299 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18300 * nto-x86-low.c: Include server.h
18301
1c07cc19
PM
183022010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18303
18304 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18305 be consistent with other sources of this directory.
18306 (init_registers_amd64): Correct name of source file of this function
18307 in the comment.
18308
e0a61e09
PM
183092010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18310
18311 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18312 64-bit executables.
18313
54709339
PM
183142010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18315
18316 * win32-i386-low.c: Add 64-bit support.
18317 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18318 (init_registers_amd64): Declare.
18319 (mappings): Add 64-bit version of array.
18320 (init_windows_x86): New function.
18321 (the_low_target): Change init_arch field to init_windows_x86.
18322
e8f0053d
PM
183232010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18324
18325 * win32-low.c: Adapt to support also 64-bit architecture.
18326 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18327 (get_image_name): Use SIZE_T type for local variable `done'.
18328 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18329 (toolhelp_get_dll_name): Idem.
18330 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18331 Use uintptr_t typecast to avoid warning.
18332 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18333 (handle_exception): Use phex_nz to avoid warning.
18334 (win32_wait): Remove unused local variable `process'.
18335
c481e77e
PM
183362010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18337
18338 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18339 `amd64-avx.o'.
18340
12ea4b69
PM
183412010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18342
18343 * configure.ac: Use `ws2_32' library for srv_mingw.
18344 * configure: Regenerate.
18345 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18346 * remote-utils.c: Likewise.
18347
f6d1620c
L
183482010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18349
18350 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18351 if __x86_64__ is defined.
18352
8e642873
PM
183532010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18354
18355 * configure: Regenerate.
18356
711e434b
PM
183572010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18358
18359 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18360 * target.h (target_ops): New get_tib_address field.
18361 * win32-low.h (win32_thread_info): Add thread_local_base field.
18362 * win32-low.c (child_add_thread): Add tlb argument.
18363 Set thread_local_base field to TLB.
18364 (get_child_debug_event): Adapt to child_add_thread change.
18365 (win32_get_tib_address): New function.
18366 (win32_target_ops): Set get_tib_address field to
18367 win32_get_tib_address.
18368 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18369
505106cd
PA
183702010-04-12 Pedro Alves <pedro@codesourcery.com>
18371
505106cd
PA
18372 * linux-low.c (linux_mourn): Also remove the process.
18373 * server.c (handle_target_event): Don't remove the process here.
18374 * nto-low.c (nto_mourn): New.
18375 (nto_target_ops): Install it.
18376 * spu-low.c (spu_mourn): New.
18377 (spu_target_ops): Install it.
18378 * win32-low.c (win32_mourn): New.
18379 (win32_target_ops): Install it.
18380
e8470a06
PA
183812010-04-12 Pedro Alves <pedro@codesourcery.com>
18382
18383 * server.h (buffer_xml_printf): Remove redundant `;'.
18384
45ba0d02
PA
183852010-04-12 Pedro Alves <pedro@codesourcery.com>
18386
18387 * regcache.c (set_register_cache): Invalidate regcaches before
18388 changing the register cache layout.
18389 (regcache_invalidate_one): Allow a NULL regcache.
18390 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18391 regcaches before changing the register cache layout or the target
18392 regsets.
18393
59e04013
L
183942010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18395
18396 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18397 variable warning on Linux/x86-64.
18398
8336d594
PA
183992010-04-11 Pedro Alves <pedro@codesourcery.com>
18400
18401 GDBserver disconnected tracing support.
18402
18403 * linux-low.c (linux_remove_process): Delete.
18404 (add_lwp): Don't set last_resume_kind here.
18405 (linux_kill): Use `mourn'.
18406 (linux_detach): Use `thread_db_detach', and `mourn'.
18407 (linux_mourn): New.
18408 (linux_attach_lwp_1): Adjust comment.
18409 (linux_attach): last_resume_kind moved the thread_info; adjust.
18410 (status_pending_p_callback): Adjust.
18411 (linux_wait_for_event_1): Adjust.
18412 (count_events_callback, select_singlestep_lwp_callback)
18413 (select_event_lwp_callback, cancel_breakpoints_callback)
18414 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18415 (proceed_one_lwp): Adjust.
18416 (linux_async): Add debug output.
18417 (linux_thread_stopped): New.
18418 (linux_pause_all): New.
18419 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18420 linux_pause_all.
18421 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18422 (thread_db_free): Delete declaration.
18423 (thread_db_detach, thread_db_mourn): Declare.
18424 * thread-db.c (thread_db_init): Use thread_db_mourn.
18425 (thread_db_free): Delete, split in two.
18426 (disable_thread_event_reporting): New.
18427 (thread_db_detach): New.
18428 (thread_db_mourn): New.
18429
18430 * server.h (struct thread_info) <last_resume_kind>: New field.
18431 <attached>: Add comment.
18432 <gdb_detached>: New field.
18433 (handler_func): Change return type to int.
18434 (handle_serial_event, handle_target_event): Ditto.
18435 (gdb_connected): Declare.
18436 (tracing): Delete.
18437 (disconnected_tracing): Declare.
18438 (stop_tracing): Declare.
18439
18440 * server.c (handle_query) <qSupported>: Report support for
18441 disconnected tracing.
18442 (queue_stop_reply_callback): Account for running threads.
18443 (gdb_wants_thread_stopped): New.
18444 (gdb_wants_all_threads_stopped): New.
18445 (gdb_reattached_process): New.
18446 (handle_status): Clear the `gdb_detached' flag of all processes.
18447 In all-stop, stop all threads.
18448 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18449 (process_serial_event): If the remote connection breaks, or if an
18450 exit was forced with "monitor exit", force an event loop exit.
18451 Handle disconnected tracing on detach.
18452 (handle_serial_event): Adjust.
18453 (handle_target_event): If GDB isn't connected, forward events back
18454 to the inferior, unless the last process exited, in which case,
18455 exit gdbserver. Adjust interface.
18456
18457 * remote-utils.c (remote_open): Don't block in accept. Instead
18458 register an event loop source on the listen socket file
18459 descriptor. Refactor bits into ...
18460 (listen_desc): ... this new global.
18461 (gdb_connected): ... this new function.
18462 (enable_async_notification): ... this new function.
18463 (handle_accept_event): ... this new function.
18464 (remote_close): Clear remote_desc.
18465
18466 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18467
18468 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18469 New fields.
18470 (mourn_inferior): Define.
18471 (target_process_qsupported): Avoid the dangling else problem.
18472 (thread_stopped): Define.
18473 (pause_all): Define.
18474 (target_waitstatus_to_string): Declare.
18475 * target.c (target_waitstatus_to_string): New.
18476
18477 * tracepoint.c (tracing): Make extern.
18478 (disconnected_tracing): New.
18479 (stop_tracing): Make extern. Handle tracing stops due to GDB
18480 disconnecting.
18481 (cmd_qtdisconnected): New.
18482 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18483 (handle_tracepoint_general_set): Handle QTDisconnected.
18484
18485 * event-loop.c (event_handler_func): Change return type to int.
18486 (process_event): Bail out if the event handler wants the event
18487 loop to stop.
18488 (handle_file_event): Ditto.
18489 (start_event_loop): Bail out if the event handler wants the event
18490 loop to stop.
18491
18492 * nto-low.c (nto_target_ops): Adjust.
18493 * spu-low.c (spu_wait): Don't remove the process here.
18494 (spu_target_ops): Adjust.
18495 * win32-low.c (win32_wait): Don't remove the process here.
18496 (win32_target_ops): Adjust.
18497
5d267c4c
PA
184982010-04-11 Pedro Alves <pedro@codesourcery.com>
18499
18500 * regcache.c (realloc_register_cache): Invalidate inferior's
18501 regcache before recreating it.
18502
623ccd72
PA
185032010-04-09 Pedro Alves <pedro@codesourcery.com>
18504
18505 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18506
219f2f23
PA
185072010-04-09 Stan Shebs <stan@codesourcery.com>
18508 Pedro Alves <pedro@codesourcery.com>
18509
18510 * server.h (LONGEST): New.
18511 (struct thread_info) <while_stepping>: New field.
18512 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18513 Declare.
18514 (initialize_tracepoint, handle_tracepoint_general_set)
18515 (handle_tracepoint_query, tracepoint_finished_step)
18516 (tracepoint_was_hit, release_while_stepping_state_list):
18517 (current_traceframe): Declare.
18518 * server.c (handle_general_set): Handle tracepoint packets.
18519 (read_memory): New.
18520 (write_memory): New.
18521 (handle_search_memory_1): Use read_memory.
18522 (handle_query): Report support for conditional tracepoints, trace
18523 state variables, and tracepoint sources. Handle tracepoint
18524 queries.
18525 (main): Initialize the tracepoints module.
18526 (process_serial_event): Handle traceframe reads/writes.
18527
18528 * linux-low.c (handle_tracepoints): New.
18529 (linux_wait_1): Call it.
18530 (linux_resume_one_lwp): Handle while-stepping.
18531 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18532 (linux_target_ops): Install them.
18533 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18534 New field.
18535 * linux-x86-low.c (x86_supports_tracepoints): New.
18536 (the_low_target). Install it.
18537
18538 * mem-break.h (delete_breakpoint): Declare.
18539 * mem-break.c (delete_breakpoint): Make external.
18540
18541 * target.h (struct target_ops): Add `supports_tracepoints',
18542 `read_pc', and `write_pc' fields.
18543 (target_supports_tracepoints): Define.
18544 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18545 (phex_nz): New.
18546
18547 * regcache.h (struct regcache) <registers_owned>: New field.
18548 (init_register_cache, regcache_cpy): Declare.
18549 (regcache_read_pc, regcache_write_pc): Declare.
18550 (register_cache_size): Declare.
18551 (supply_regblock): Declare.
18552 * regcache.c (init_register_cache): New.
18553 (new_register_cache): Use it.
18554 (regcache_cpy): New.
18555 (register_cache_size): New.
18556 (supply_regblock): New.
18557 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18558
219f2f23
PA
18559 * tracepoint.c: New.
18560
18561 * Makefile.in (OBS): Add tracepoint.o.
18562 (tracepoint.o): New rule.
18563
3a13a53b
L
185642010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18565
18566 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18567 (i386-mmx.o): New.
18568 (i386-mmx.c): Likewise.
18569 (i386-mmx-linux.o): Likewise.
18570 (i386-mmx-linux.c): Likewise.
18571
18572 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18573 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18574 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18575 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18576
18577 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18578 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18579 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18580
1570b33e
L
185812010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18582
18583 * Makefile.in (clean): Updated.
18584 (i386-avx.o): New.
18585 (i386-avx.c): Likewise.
18586 (i386-avx-linux.o): Likewise.
18587 (i386-avx-linux.c): Likewise.
18588 (amd64-avx.o): Likewise.
18589 (amd64-avx.c): Likewise.
18590 (amd64-avx-linux.o): Likewise.
18591 (amd64-avx-linux.c): Likewise.
18592
18593 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18594 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18595 (srv_amd64_regobj): Add amd64-avx.o.
18596 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18597 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18598 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18599 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18600 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18601 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18602 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18603
18604 * i387-fp.c: Include "i386-xstate.h".
18605 (i387_xsave): New.
18606 (i387_cache_to_xsave): Likewise.
18607 (i387_xsave_to_cache): Likewise.
18608 (x86_xcr0): Likewise.
18609
18610 * i387-fp.h (i387_cache_to_xsave): Likewise.
18611 (i387_xsave_to_cache): Likewise.
18612 (x86_xcr0): Likewise.
18613
18614 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18615 * linux-crisv32-low.c (target_regsets): Likewise.
18616 * linux-m68k-low.c (target_regsets): Likewise.
18617 * linux-mips-low.c (target_regsets): Likewise.
18618 * linux-ppc-low.c (target_regsets): Likewise.
18619 * linux-s390-low.c (target_regsets): Likewise.
18620 * linux-sh-low.c (target_regsets): Likewise.
18621 * linux-sparc-low.c (target_regsets): Likewise.
18622 * linux-xtensa-low.c (target_regsets): Likewise.
18623
18624 * linux-low.c: Include <sys/uio.h>.
18625 (regsets_fetch_inferior_registers): Support nt_type.
18626 (regsets_store_inferior_registers): Likewise.
18627 (linux_process_qsupported): New.
18628 (linux_target_ops): Add linux_process_qsupported.
18629
18630 * linux-low.h (regset_info): Add nt_type.
18631 (linux_target_ops): Add process_qsupported.
18632
18633 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18634 and <sys/uio.h>.
18635 (init_registers_i386_avx_linux): New.
18636 (init_registers_amd64_avx_linux): Likewise.
18637 (xmltarget_i386_linux_no_xml): Likewise.
18638 (xmltarget_amd64_linux_no_xml): Likewise.
18639 (PTRACE_GETREGSET): Likewise.
18640 (PTRACE_SETREGSET): Likewise.
18641 (x86_fill_xstateregset): Likewise.
18642 (x86_store_xstateregset): Likewise.
18643 (use_xml): Likewise.
18644 (x86_linux_update_xmltarget): Likewise.
18645 (x86_linux_process_qsupported): Likewise.
18646 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18647 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18648 init_registers_i386_linux here. Call
18649 x86_linux_update_xmltarget.
18650 (the_low_target): Add x86_linux_process_qsupported.
18651
18652 * server.c (handle_query): Call target_process_qsupported.
18653
18654 * target.h (target_ops): Add process_qsupported.
18655 (target_process_qsupported): New.
18656
fc7238bb
PA
186572010-04-03 Pedro Alves <pedro@codesourcery.com>
18658
18659 * inferiors.c (add_thread): Set last_status kind to
18660 TARGET_WAITKIND_IGNORE.
18661 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18662 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18663 (linux_wait_1): Move `thread' local definition to block that uses
18664 it. Don't NULL initialize `event_child'.
18665 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18666 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18667 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18668
bdabb078
PA
186692010-04-01 Pedro Alves <pedro@codesourcery.com>
18670
18671 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18672 an extended waitstatus, or by a watchpoint.
18673 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18674 thread was stepping or has been stopped by a watchpoint.
18675
d3bbe7a0
PA
186762010-04-01 Pedro Alves <pedro@codesourcery.com>
18677
18678 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18679 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18680 of another, then delete the previous, and validate all
18681 breakpoints.
18682 (validate_inserted_breakpoint): New.
18683 (delete_disabled_breakpoints): New.
18684 (validate_breakpoints): New.
18685 (check_mem_read): Validate breakpoints before trusting their
18686 shadow. Delete disabled breakpoints.
18687 (check_mem_write): Validate breakpoints before trusting they
18688 should be inserted. Delete disabled breakpoints.
18689 * mem-break.h (validate_breakpoints):
18690 * server.c (handle_query): Validate breakpoints when we see a
18691 qSymbol query.
18692
8b07ae33
PA
186932010-04-01 Pedro Alves <pedro@codesourcery.com>
18694
18695 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18696 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18697 if we could tell there's a GDB breakpoint at stop_pc.
18698 (need_step_over_p): Don't do a step over if we find a GDB
18699 breakpoint at the resume PC.
18700
18701 * mem-break.c (struct raw_breakpoint): New.
18702 (enum bkpt_type): New type `gdb_breakpoint'.
18703 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18704 fields. New field `raw'.
18705 (find_raw_breakpoint_at): New.
18706 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18707 breakpoint instead.
18708 (set_breakpoint_at): Adjust.
18709 (delete_raw_breakpoint): New.
18710 (release_breakpoint): New.
18711 (delete_breakpoint): Rename to...
18712 (delete_breakpoint_1): ... this. Add proc parameter. Use
18713 release_breakpoint. Return ENOENT.
18714 (delete_breakpoint): Reimplement.
18715 (find_breakpoint_at): Delete.
18716 (find_gdb_breakpoint_at): New.
18717 (delete_breakpoint_at): Delete.
18718 (set_gdb_breakpoint_at): New.
18719 (delete_gdb_breakpoint_at): New.
18720 (gdb_breakpoint_here): New.
18721 (set_reinsert_breakpoint): Use release_breakpoint.
18722 (uninsert_breakpoint): Rename to ...
18723 (uninsert_raw_breakpoint): ... this.
18724 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18725 (reinsert_raw_breakpoint): Change parameter type to
18726 raw_breakpoint.
18727 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18728 instead.
18729 (check_breakpoints): Adjust. Use release_breakpoint.
18730 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18731 (breakpoint_inserted_here): Ditto.
18732 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18733 Don't trust the breakpoint's shadow if it is not inserted.
18734 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18735 (delete_all_breakpoints): Adjust.
18736 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18737 use delete_breakpoint_1.
18738
18739 * mem-break.h (breakpoints_supported): Delete declaration.
18740 (set_gdb_breakpoint_at): Declare.
18741 (gdb_breakpoint_here): Declare.
18742 (delete_breakpoint_at): Delete.
18743 (delete_gdb_breakpoint_at): Declare.
18744
18745 * server.h (struct raw_breakpoint): Forward declare.
18746 (struct process_info): New field `raw_breakpoints'.
18747
18748 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18749 breakpoints.
18750
6bf5e0ba
PA
187512010-03-24 Pedro Alves <pedro@codesourcery.com>
18752
18753 * linux-low.c (status_pending_p_callback): Fix comment.
18754 (linux_wait_for_event_1): Move most of the internal breakpoint
18755 handling from here...
18756 (linux_wait_1): ... to here.
18757 (count_events_callback): New.
18758 (select_singlestep_lwp_callback): New.
18759 (select_event_lwp_callback): New.
18760 (cancel_breakpoints_callback): New.
18761 (select_event_lwp): New.
18762 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18763 priority to all LWPs that have had events that should be reported
18764 to the client. Cancel breakpoints when about to reporting the
18765 event to the client, not while stopping lwps. No longer cancel
18766 finished single-steps here.
18767 (cancel_finished_single_step): Delete.
18768 (cancel_finished_single_steps): Delete.
18769
414a389f
PA
187702010-03-24 Pedro Alves <pedro@codesourcery.com>
18771
18772 * mem-break.c (enum bkpt_type): New.
18773 (struct breakpoint): New field `type'.
18774 (set_breakpoint_at): Change return type to struct breakpoint
18775 pointer. Set type to `other_breakpoint' by default.
18776 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18777 in the breakpoint list.
18778 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18779 (reinsert_breakpoint): Rename to ...
18780 (reinsert_raw_breakpoint): ... this.
18781 (reinsert_breakpoints_at): Adjust.
18782 * mem-break.h (struct breakpoint): Declare.
18783 (set_breakpoint_at): Change return type to struct breakpoint
18784 pointer.
18785
2280c721
PA
187862010-03-24 Pedro Alves <pedro@codesourcery.com>
18787
18788 * server.c (handle_query): Assign, not compare.
18789
d50171e4
PA
187902010-03-24 Pedro Alves <pedro@codesourcery.com>
18791
18792 Teach linux gdbserver to step-over-breakpoints.
18793
18794 * linux-low.c (can_hardware_single_step): New.
18795 (supports_breakpoints): New.
18796 (handle_extended_wait): If stopping threads, read the stop pc of
18797 the new cloned LWP.
18798 (get_pc): New.
18799 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18800 low target doesn't support retrieving the PC.
18801 (add_lwp): Set last_resume_kind to resume_continue.
18802 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18803 (linux_attach): Don't clear stop_expected. Set the lwp's
18804 last_resume_kind to resume_stop.
18805 (linux_detach_one_lwp): Don't check for removed breakpoints.
18806 (check_removed_breakpoint): Delete.
18807 (status_pending_p): Rename to ...
18808 (status_pending_p_callback): ... this. Don't check for removed
18809 breakpoints. Don't consider threads that are stopped from GDB's
18810 perspective.
18811 (linux_wait_for_lwp): Always read the stop_pc here.
18812 (cancel_breakpoint): New.
18813 (step_over_bkpt): New global.
18814 (linux_wait_for_event_1): Implement stepping over breakpoints.
18815 (gdb_wants_lwp_stopped): New.
18816 (gdb_wants_all_stopped): New.
18817 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18818 single-step traps here. Store the thread's last reported target
18819 wait status.
18820 (send_sigstop): Don't clear stop_expected. Always set it,
18821 instead.
18822 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18823 (cancel_finished_single_step): New.
18824 (cancel_finished_single_steps): New.
18825 (wait_for_sigstop): Don't cancel finished single-step traps here.
18826 (linux_resume_one_lwp): Don't check for removed breakpoints.
18827 Don't set `step' on non-hardware step archs.
18828 (linux_set_resume_request): Ignore resume_stop requests if already
18829 stopping or stopped. Set the lwp's last_resume_kind.
18830 (resume_status_pending_p): Don't check for removed breakpoints.
18831 (need_step_over_p): New.
18832 (start_step_over): New.
18833 (finish_step_over): New.
18834 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18835 requests. Clear the thread's last reported target waitstatus.
18836 Don't use the `suspended' flag. Don't consider pending breakpoints.
18837 (linux_resume): Start a step-over if necessary.
18838 (proceed_one_lwp): New.
18839 (proceed_all_lwps): New.
18840 (unstop_all_lwps): New.
18841 * linux-low.h (struct lwp_info): Rewrite comment for the
18842 `suspended' flag. Add the `stop_pc' field. Delete the
18843 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18844 Add `'last_resume_kind' and `need_step_over' fields.
18845 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18846 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18847 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18848 (set_raw_breakpoint_at): New.
18849 (set_breakpoint_at): Rewrite to use it.
18850 (reinsert_breakpoint_handler): Delete.
18851 (set_reinsert_breakpoint): New.
18852 (reinsert_breakpoint_by_bp): Delete.
18853 (delete_reinsert_breakpoints): New.
18854 (uninsert_breakpoint): Rewrite.
18855 (uninsert_breakpoints_at): New.
18856 (reinsert_breakpoint): Rewrite.
18857 (reinsert_breakpoints_at): New.
18858 (check_breakpoints): Rewrite.
18859 (breakpoint_here): New.
18860 (breakpoint_inserted_here): New.
18861 (check_mem_read): Adjust.
18862 * mem-break.h (breakpoints_supported, breakpoint_here)
18863 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18864 (reinsert_breakpoint_by_bp): Delete declaration.
18865 (delete_reinsert_breakpoints): Declare.
18866 (reinsert_breakpoint): Delete declaration.
18867 (reinsert_breakpoints_at): Declare.
18868 (uninsert_breakpoint): Delete declaration.
18869 (uninsert_breakpoints_at): Declare.
18870 (check_breakpoints): Adjust prototype.
18871 * server.h: Adjust include order.
18872 (struct thread_info): Declare here. Add a `last_status' field.
18873
30ba68cb
MS
188742010-03-23 Michael Snyder <msnyder@vmware.com>
18875
18876 * server.c (crc32): New function.
18877 (handle_query): Add handling for 'qCRC:' request.
18878
b9a881c2
PA
188792010-03-23 Pedro Alves <pedro@codesourcery.com>
18880
18881 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18882 lwp had been stopped by a watchpoint.
18883
e92d13d5
PA
188842010-03-16 Pedro Alves <pedro@codesourcery.com>
18885
18886 * server.h (internal_error): Declare.
18887 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18888 * utils.c (internal_error): New function.
18889
64daa791
AS
188902010-03-15 Andreas Schwab <schwab@redhat.com>
18891
18892 * configure.srv: Fix typo setting srv_regobj.
18893
f52cd8cd
PA
188942010-03-15 Pedro Alves <pedro@codesourcery.com>
18895
18896 * linux-low.c (fetch_register): Avoid passing a non string literal
18897 format to `error'.
18898 (usr_store_inferior_registers): Ditto.
18899
93ae6fdc
PA
189002010-03-14 Pedro Alves <pedro@codesourcery.com>
18901
18902 * linux-low.c (linux_write_memory): Bail out early if peeking
18903 memory failed.
18904
c3adc08c
PA
189052010-03-14 Pedro Alves <pedro@codesourcery.com>
18906
18907 * linux-low.h (struct lwp_info): New fields
18908 `stopped_by_watchpoint' and `stopped_data_address'.
18909 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18910 here, and cache them in the lwp object.
18911 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18912 directly.
18913 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18914 field.
18915 (linux_stopped_by_watchpoint): Rewrite.
18916 (linux_stopped_data_address): Rewrite.
18917
bce522a2
PA
189182010-03-06 Simo Melenius <simo.melenius@iki.fi>
18919
18920 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18921 switching the current inferior, not before.
18922
90884b2b
L
189232010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18924
18925 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18926 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18927 i386-linux.c and amd64-linux.c.
18928 (reg-i386.o): Removed.
18929 (reg-i386.c): Likewise.
18930 (reg-i386-linux.o): Likewise.
18931 (reg-i386-linux.c): Likewise.
18932 (reg-x86-64.o): Likewise.
18933 (reg-x86-64.c): Likewise.
18934 (reg-x86-64-linux.o): Likewise.
18935 (reg-x86-64-linux.c): Likewise.
18936 (i386.o): New.
18937 (i386.c): Likewise.
18938 (i386-linux.o): Likewise.
18939 (i386-linux.c): Likewise.
18940 (amd64.o): Likewise.
18941 (amd64.c): Likewise.
18942 (amd64-linux.o): Likewise.
18943 (amd64-linux.c): Likewise.
18944
18945 * configure.srv (srv_i386_regobj): New.
18946 (srv_i386_linux_regobj): Likewise.
18947 (srv_amd64_regobj): Likewise.
18948 (srv_amd64_linux_regobj): Likewise.
18949 (srv_i386_32bit_xmlfiles): Likewise.
18950 (srv_i386_64bit_xmlfiles): Likewise.
18951 (srv_i386_xmlfiles): Likewise.
18952 (srv_amd64_xmlfiles): Likewise.
18953 (srv_i386_linux_xmlfiles): Likewise.
18954 (srv_amd64_linux_xmlfiles): Likewise.
18955 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18956 srv_xmlfiles to $srv_i386_xmlfiles.
18957 (i[34567]86-*-mingw32ce*): Likewise.
18958 (i[34567]86-*-mingw*): Likewise.
18959 (i[34567]86-*-nto*): Likewise.
18960 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18961 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18962 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18963 (x86_64-*-linux*): Likewise.
18964
18965 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18966 (init_registers_amd64_linux): New.
18967 (x86_arch_setup): Replace init_registers_x86_64_linux with
18968 init_registers_amd64_linux.
18969
193f13e6
MK
189702010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18971
18972 * configure.ac: Check for libdl. If it is not available link against
18973 static libthread_db.
18974 * configure: Regenerate.
18975
85d721b8
PA
189762010-02-22 Pedro Alves <pedro@codesourcery.com>
18977
18978 PR9605
18979
18980 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18981 handing a read watchpoint.
18982 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18983
6076632b
DE
189842010-02-12 Doug Evans <dje@google.com>
18985
18986 * linux-low.c (linux_supports_tracefork_flag): Document.
18987 (linux_look_up_symbols): Add comment.
18988
3327ccf7
L
189892010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18990
18991 * regcache.c (supply_register): Clear regcache if buf is NULL.
18992
0718675c 189932010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18994 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18995
18996 * inferiors.c (find_inferior): Add function documentation.
18997 (unloaded_dll): Handle the case where the unloaded dll has not
18998 been previously registered in the dll list.
18999
177321bd
DJ
190002010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19001
19002 * linux-arm-low.c (thumb_breakpoint_len): Delete.
19003 (thumb2_breakpoint): New.
19004 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
19005
2b009048
DJ
190062010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19007
19008 * linux-low.c (get_stop_pc): Check for SIGTRAP.
19009 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
19010 breakpoints.
19011
3be029c7
PA
190122010-01-21 Pedro Alves <pedro@codesourcery.com>
19013
19014 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
19015
18f5de3b
JK
190162010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19017
19018 * linux-s390-low.c (s390_collect_ptrace_register)
19019 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
19020
3743bb4f
DE
190212010-01-21 Doug Evans <dje@google.com>
19022
14ce3065
DE
19023 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19024 (PTRACE_ARG4_TYPE): New macro.
19025 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19026 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19027 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19028 (usr_store_inferior_registers): Ditto.
19029 (linux_read_memory, linux_write_memory): Ditto.
19030 (linux_test_for_tracefork): Ditto.
19031
3743bb4f
DE
19032 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19033 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19034
8b315be5
PA
190352010-01-21 Pedro Alves <pedro@codesourcery.com>
19036
19037 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19038 target.
19039
85492558
PA
190402010-01-21 Pedro Alves <pedro@codesourcery.com>
19041
19042 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19043 prototype to take a regcache. Adjust.
19044
442ea881
PA
190452010-01-20 Pedro Alves <pedro@codesourcery.com>
19046
19047 * regcache.h (struct thread_info): Forward declare.
19048 (struct regcache): New.
19049 (new_register_cache): Adjust prototype.
19050 (get_thread_regcache): Declare.
19051 (free_register_cache): Adjust prototype.
19052 (registers_to_string, registers_from_string): Ditto.
19053 (supply_register, supply_register_by_name, collect_register)
19054 (collect_register_as_string, collect_register_by_name): Ditto.
19055 * regcache.c (struct inferior_regcache_data): Delete.
19056 (get_regcache): Rename to ...
19057 (get_thread_regcache): ... this. Adjust. Switch inferior before
19058 fetching registers.
19059 (regcache_invalidate_one): Adjust.
19060 (regcache_invalidate): Fix prototype.
19061 (new_register_cache): Return the new register cache.
19062 (free_register_cache): Change prototype.
19063 (realloc_register_cache): Adjust.
19064 (registers_to_string): Change prototype to take a regcache. Adjust.
19065 (registers_from_string): Ditto.
19066 (register_data): Ditto.
19067 (supply_register): Ditto.
19068 (supply_register_by_name): Ditto.
19069 (collect_register): Ditto.
19070 (collect_register_as_string): Ditto.
19071 (collect_register_by_name): Ditto.
19072 * server.c (process_serial_event): Adjust.
19073 * linux-low.h (regset_fill_func, regset_store_func): Change
19074 prototype.
19075 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19076 Change prototype.
19077 * linux-low.c (get_stop_pc): Adjust.
19078 (check_removed_breakpoint): Adjust.
19079 (linux_wait_for_event): Adjust.
19080 (linux_resume_one_lwp): Adjust.
19081 (fetch_register): Add regcache parameter. Adjust.
19082 (usr_store_inferior_registers): Ditto.
19083 (regsets_fetch_inferior_registers): Ditto.
19084 (regsets_store_inferior_registers): Ditto.
19085 (linux_fetch_registers, linux_store_registers): Ditto.
19086 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19087 regcache. Adjust.
43aaf8b6
PA
19088 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19089 Ditto.
442ea881
PA
19090 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19091 prototype to take a regcache.
19092 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19093 * remote-utils.c (convert_ascii_to_int, outreg)
19094 (prepare_resume_reply): Change prototype to take a regcache.
19095 Adjust.
19096 * target.h (struct target_ops) <fetch_registers, store_registers>:
19097 Change prototype to take a regcache.
19098 (fetch_inferior_registers, store_inferior_registers): Change
19099 prototype to take a regcache. Adjust.
19100 * proc-service.c (ps_lgetregs): Adjust.
19101 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19102 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19103 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19104 take a regcache. Adjust.
19105 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19106 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19107 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19108 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19109 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19110 (cris_cannot_fetch_register):
19111 (cris_breakpoint_at): Change prototype to take a regcache.
19112 Adjust.
19113 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19114 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19115 to take a regcache. Adjust.
19116 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19117 Adjust.
19118 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19119 take a regcache. Adjust.
19120 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19121 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19122 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19123 * linux-mips-low.c (mips_get_pc):
19124 (mips_set_pc): Change prototype to take a regcache. Adjust.
19125 (mips_reinsert_addr): Adjust.
19126 (mips_collect_register): Change prototype to take a regcache.
19127 Adjust.
19128 (mips_supply_register):
19129 (mips_collect_register_32bit, mips_supply_register_32bit)
19130 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19131 (mips_store_fpregset): Ditto.
43aaf8b6
PA
19132 * linux-ppc-low.c (ppc_supply_ptrace_register)
19133 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
19134 (parse_spufs_run): Adjust.
19135 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19136 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19137 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19138 take a regcache. Adjust.
19139 * linux-s390-low.c (s390_collect_ptrace_register)
19140 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19141 (s390_set_pc): Change prototype to take a regcache. Adjust.
19142 (s390_arch_setup): Adjust.
19143 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19144 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19145 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19146 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19147 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19148 regcache. Adjust.
19149 (sparc_breakpoint_at): Adjust.
19150 * linux-xtensa-low.c (xtensa_fill_gregset):
19151 (xtensa_store_gregset):
19152 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19153 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19154 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19155 prototype to take a regcache. Adjust.
19156 * win32-arm-low.c (arm_fetch_inferior_register)
19157 (arm_store_inferior_register): Change prototype to take a
19158 regcache. Adjust.
19159 * win32-i386-low.c (i386_fetch_inferior_register)
19160 (i386_store_inferior_register): Change prototype to take a
19161 regcache. Adjust.
19162 * win32-low.c (child_fetch_inferior_registers)
19163 (child_store_inferior_registers): Change prototype to take a
19164 regcache. Adjust.
19165 (win32_wait): Adjust.
19166 (win32_fetch_inferior_registers): Change prototype to take a
19167 regcache. Adjust.
19168 (win32_store_inferior_registers): Adjust.
19169 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19170 store_inferior_register>: Change prototype to take a regcache.
19171
60c3d7b0
DE
191722010-01-20 Doug Evans <dje@google.com>
19173
19174 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19175 #ifdef.
19176 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 19177 (W_STOPCODE): Provide definition if missing.
60c3d7b0 19178
dc146f7c
VP
191792010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19180
19181 * linux-low.c (linux_core_of_thread): New.
19182 (compare_ints, show_process, list_threads): New.
19183 (linux_qxfer_osdata): Report threads and cores.
19184 (linux_target_op): Register linux_core_of_thread.
19185 * remote-utils.c (prepare_resume_reply): Report the core.
19186 (buffer_xml_printf): Support %d specifier.
19187 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19188 New.
19189 (handle_query): Handle qXfer:threads. Announce availability
19190 thereof.
19191 * target.h (struct target_ops): New field core_of_thread.
19192
7803799a
UW
191932010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19194
19195 * Makefile.in (clean): Remove new generated files.
19196 (reg-s390.o, reg-s390.c): Remove rules.
19197 (reg-s390x.o, reg-s390x.c): Likewise.
19198 (s390-linux32.o, s390-linux32.c): Add rules.
19199 (s390-linux64.o, s390-linux64.c): Likewise.
19200 (s390x-linux64.o, s390x-linux64.c): Likewise.
19201 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19202 * linux-s390-low.c: Include <elf.h>.
19203 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19204 (init_registers_s390): Remove prototype.
19205 (init_registers_s390x): Likewise.
19206 (init_registers_s390_linux32): Add prototype.
19207 (init_registers_s390_linux64): Likewise.
19208 (init_registers_s390x_linux64): Likewise.
19209 (s390_num_regs_3264): New define.
19210 (s390_regmap_3264): New global variable.
19211 (s390_cannot_fetch_register): Remove obsolete check.
19212 (s390_cannot_store_register): Likewise.
19213 (s390_collect_ptrace_register): Handle upper/lower register halves.
19214 (s390_supply_ptrace_register): Likewise.
19215 (s390_fill_gregset): Update to register number changes.
19216 (s390_get_hwcap): New routine.
19217 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19218 Install appropriate regmap and register set.
19219
6e7ffa39
JB
192202010-01-01 Joel Brobecker <brobecker@adacore.com>
19221
19222 * server.c (gdbserver_version): Update copyright year to 2010.
19223 * gdbreplay.c (gdbreplay_version): Likewise.
19224
957f3f49
DE
192252009-12-28 Doug Evans <dje@google.com>
19226
19227 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19228 elf/external.h. Include <elf.h> instead but only if necessary.
19229
ca5c370d
PA
192302009-12-28 Pedro Alves <pedro@codesourcery.com>
19231
19232 * linux-low.c (linux_remove_process): Remove `detaching'
19233 parameter. Don't release/detach from thread_db here.
19234 (linux_kill): Release/detach from thread_db here, ...
19235 (linux_detach): ... and here, before actually detaching.
19236 (linux_wait_1): ... and here, when a process exits.
19237 * thread-db.c (any_thread_of): New.
19238 (thread_db_free): Switch the current inferior to a thread of the
19239 passed in process.
19240
4ee62156
DE
192412009-12-21 Doug Evans <dje@google.com>
19242
d90e6a88
DE
19243 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19244
c5f62d5f
DE
19245 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19246 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19247 warning ifndef __NR_tkill. Move setting of errno there too.
19248 Delete unnecessary resetting of errno after syscall.
19249 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19250
10e86dd7
DE
19251 * configure.ac: Check for dladdr.
19252 * config.in: Regenerate.
19253 * configure: Regenerate.
19254 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19255 (try_thread_db_load): Update.
19256
4ee62156
DE
19257 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19258
00f515da
DE
192592009-12-18 Doug Evans <dje@google.com>
19260
e9464885
DE
19261 * event-loop.c: Include unistd.h if it exists.
19262
07d4f67e
DE
19263 * linux-low.c (my_waitpid): Move definition away from being in
19264 between linux_tracefork_child/linux_test_for_tracefork.
19265
00f515da
DE
19266 * gdb_proc_service.h (psaddr_t): Fix type.
19267 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19268 signature to match glibc.
19269
1de1badb
DE
192702009-12-16 Doug Evans <dje@google.com>
19271
19272 * linux-low.c (linux_read_memory): Fix argument to read.
19273
aeeb81d1
PA
192742009-11-26 Pedro Alves <pedro@codesourcery.com>
19275
19276 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19277 events, don't leave current_inferior pointing at null.
19278
10357975
PA
192792009-11-26 Pedro Alves <pedro@codesourcery.com>
19280
19281 * win32-low.c (LOG): Delete.
19282 (OUTMSG): Output to stderr.
19283 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19284 on compile time LOG macro.
19285 (win32_wait): Fix debug output.
19286
cf6e3471
PA
192872009-11-26 Pedro Alves <pedro@codesourcery.com>
19288
19289 * win32-low.c (win32_add_one_solib): If the dll name is
19290 "ntdll.dll", prepend the system directory to the dll path.
19291
0c85e18e
MK
192922009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19293
19294 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19295
9ac544ce 192962009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 19297 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
19298
19299 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19300 * configure.ac: Check for __mcoldfire__ and set
19301 gdb_cv_m68k_is_coldfire.
19302 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19303 reg-cf.o and reg-m68k.o.
19304 * configure: Regenerated.
19305
fd7dd3e6
PA
193062009-11-16 Pedro Alves <pedro@codesourcery.com>
19307
19308 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19309 Pass it to thread_db_free.
19310 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19311 proper `detaching' argument to linux_remove_process.
19312 * linux-low.h (thread_db_free): Add `detaching' parameter.
19313 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19314 to thread_db_free.
19315 (thread_db_free): Add `detaching' parameter. Only
19316 call td_ta_clear_event if detaching from process.
19317
75aa492e
MK
193182009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19319
19320 * thread-db.c (thread_db_free): Fix typo.
19321
21e1bee4
PP
193222009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19323
19324 PR gdb/10838
19325 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19326
8838b45e
NS
193272009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19328
19329 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19330 with an i686 compiler.
19331 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19332 needed.
19333 * configure: Rebuilt.
19334
8a35fb51
SL
193352009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19336
19337 PR gdb/10783
19338
19339 * server.c (handle_search_memory_1): Correct read_addr initialization
19340 in loop for searching subsequent chunks.
19341
96f15937
PP
193422009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19343
19344 * configure.ac: New --with-libthread-db option.
19345 * thread-db.c: Allow direct dependence on libthread_db.
19346 (thread_db_free): Adjust.
19347 * config.in: Regenerate.
19348 * configure: Likewise.
889bf7c5 19349
5f7d1694
PP
193502009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19351
19352 PR gdb/10757
19353 * thread-db.c (attach_thread): New function.
19354 (maybe_attach_thread): Return success/failure.
19355 (find_new_threads_callback): Adjust.
889bf7c5
PA
19356 (thread_db_find_new_threads): Loop until no new threads.
19357
88e3b899
PA
193582009-10-13 Pedro Alves <pedro@codesourcery.com>
19359
19360 * proc-service.c (ps_lgetregs): Formatting.
19361
cdbfd419
PP
193622009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19363
19364 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19365 * configure.ac: Adjust.
19366 * linux-low.h (struct process_info_private): Move members to struct
19367 thread_db.
19368 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19369 * linux-low.c (linux_remove_process): Adjust.
19370 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19371 * server.c (handle_query): Move code ...
19372 (handle_monitor_command): ... here. New function.
19373 * target.h (struct target_ops): New member.
19374 * thread-db.c (struct thread_db): New.
19375 (libthread_db_search_path): New variable.
19376 (thread_db_create_event, thread_db_enable_reporting)
19377 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19378 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19379 (try_thread_db_load_1, dladdr_to_soname): New functions.
19380 (try_thread_db_load, thread_db_load_search): New functions.
19381 (thread_db_init): Search for libthread_db.
19382 (thread_db_free): New function.
19383 (thread_db_handle_monitor_command): Likewise.
19384 * config.in: Regenerate.
19385 * configure: Regenerate.
889bf7c5 19386
4168d2d6
UW
193872009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19388
19389 * spu-low.c (spu_kill): Wait for inferior to terminate.
19390 Call clear_inferiors.
19391 (spu_detach): Call clear_inferiors.
19392
81ecdfbb
RW
193932009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19394
19395 * aclocal.m4: Regenerate.
19396 * config.in: Likewise.
19397 * configure: Likewise.
19398
0b9ff2c0
UW
193992009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19400
19401 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19402 (parse_spufs_run): New function.
19403 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19404 (ppc_breakpoint_at): Handle SPU breakpoints.
19405
efcbbd14
UW
194062009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19407
19408 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19409 (SPUFS_MAGIC): Define.
19410 (spu_enumerate_spu_ids): New function.
19411 (linux_qxfer_spu): New function.
19412 (linux_target_ops): Install linux_qxfer_spu.
19413
f4d9bade
UW
194142009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19415
19416 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19417 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19418 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19419 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19420 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19421 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19422 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19423 (init_registers_powerpc_cell32l): Add prototype.
19424 (init_registers_powerpc_cell64l): Likewise.
19425 (ppc_arch_setup): Detect Cell/B.E. architecture.
19426
96e946ca
RW
194272009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19428
19429 * Makefile.in (datarootdir): New variable.
19430
58d6951d
DJ
194312009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19432
19433 * linux-low.c (linux_write_memory): Update debugging output.
19434 * Makefile.in (clean): Add new descriptions.
19435 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19436 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19437 * configure.srv: Add new files for arm*-*-linux*.
19438 * linux-arm-low.c: Add new declarations.
19439 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19440 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19441 (HWCAP_VFPv3D16): New.
19442 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19443 instead of __IWMMXT__.
19444 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19445 (arm_arch_setup): New.
19446 (target_regsets): Remove #ifdef. Add VFP regset.
19447 (the_low_target): Use arm_arch_setup.
19448
12b42a12
DJ
194492009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19450
19451 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19452 the main thread again.
19453
ac8c974e
AR
194542009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19455
19456 Adding Neutrino gdbserver.
19457 * configure: Regenerated.
19458 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19459 * configure.srv (i[34567]86-*-nto*): New target.
19460 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19461 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19462 (nto_comctrl) [__QNX__]: New function.
19463 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19464
4424e0c3 194652009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19466
19467 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19468 srv_tgtobj.
19469
912cf4ba
PA
194702009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19471 Pedro Alves <pedro@codesourcery.com>
19472
19473 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19474 don't support CONTEXT_EXTENDED_REGISTERS.
19475 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19476 (the_low_target): Install them.
19477 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19478 failing with ERROR_PIPE_NOT_CONNECTED.
19479
aa5ca48f
DE
194802009-06-30 Doug Evans <dje@google.com>
19481 Pierre Muller <muller@ics.u-strasbg.fr>
19482
19483 Add h/w watchpoint support to x86-linux, win32-i386.
19484 * Makefile.in (SFILES): Add i386-low.c
19485 (i386_low_h): Define.
19486 (i386-low.o): Add dependencies.
19487 (linux-x86-low.o): Add i386-low.h dependency.
19488 (win32-i386-low.o): Ditto.
19489 * i386-low.c: New file.
19490 * i386-low.h: New file.
19491 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19492 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19493 * linux-low.c (linux_add_process): Initialize arch_private.
19494 (linux_remove_process): Free arch_private.
19495 (add_lwp): Initialize arch_private.
19496 (delete_lwp): Free arch_private.
19497 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19498 provided.
19499 * linux-low.h (process_info_private): New member arch_private.
19500 (lwp_info): New member arch_private.
19501 (linux_target_ops): New members new_process, new_thread,
19502 prepare_to_resume.
19503 (ptid_of): New macro.
19504 * linux-x86-low.c: Include stddef.h, i386-low.h.
19505 (arch_process_info): New struct.
19506 (arch_lwp_info): New struct.
19507 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19508 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19509 (i386_dr_low_get_status): New function.
19510 (x86_insert_point, x86_remove_point): New functions.
19511 (x86_stopped_by_watchpoint): New function.
19512 (x86_stopped_data_address): New function.
19513 (x86_linux_new_process, x86_linux_new_thread): New functions.
19514 (x86_linux_prepare_to_resume): New function.
19515 (the_low_target): Add entries for insert_point, remove_point,
19516 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19517 prepare_to_resume.
19518 * server.c (debug_hw_points): New global.
19519 (monitor_show_help): Document set debug-hw-points.
19520 (handle_query): Process "set debug-hw-points".
19521 * server.h (debug_hw_points): Declare.
19522 (paddress): Declare.
19523 * utils.c (NUMCELLS, CELLSIZE): New macros.
19524 (get_sell, xsnprintf, paddress): New functions.
19525 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19526 remove_point, stopped_by_watchpoint, stopped_data_address.
19527 * win32-i386-low.c: Include i386-low.h.
19528 (debug_reg_state): Replaces dr.
19529 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19530 (i386_dr_low_get_status): New function.
19531 (i386_insert_point, i386_remove_point): New functions.
19532 (i386_stopped_by_watchpoint): New function.
19533 (i386_stopped_data_address): New function.
19534 (i386_initial_stuff): Update.
19535 (get_thread_context,set_thread_context,i386_thread_added): Update.
19536 (the_low_target): Add entries for insert_point,
19537 remove_point, stopped_by_watchpoint, stopped_data_address.
19538 * win32-low.c (win32_insert_watchpoint): New function.
19539 (win32_remove_watchpoint): New function.
19540 (win32_stopped_by_watchpoint): New function.
19541 (win32_stopped_data_address): New function.
19542 (win32_target_ops): Add entries for insert_watchpoint,
19543 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19544 * win32-low.h (win32_target_ops): New members insert_point,
19545 remove_point, stopped_by_watchpoint, stopped_data_address.
19546
d993e290
PA
195472009-06-25 Pedro Alves <pedro@codesourcery.com>
19548
19549 * server.c (process_serial_event): Re-return unsupported, not
19550 error, if the type isn't recognized. Re-allow supporting only
19551 insert or remove packets. Also call require_running for
19552 breakpoints. Add missing break statement to default case. Tidy.
19553 * target.h (struct target_ops): Rename insert_watchpoint to
19554 insert_point, and remove_watchpoint to remove_point.
19555
19556 * linux-low.h (struct linux_target_ops): Likewise.
19557 * linux-low.c (linux_insert_watchpoint): Rename to ...
19558 (linux_insert_point): ... this. Adjust.
19559 (linux_remove_watchpoint): Rename to ...
19560 (linux_remove_point): ... this. Adjust.
19561 (linux_target_ops): Adjust.
19562 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19563 (cris_insert_point): ... this.
19564 (cris_remove_watchpoint): Rename to ...
19565 (cris_remove_point): ... this.
19566 (the_low_target): Adjust.
19567
0f54c268
PM
195682009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19569
19570 * server.c (handle_v_kill): Pass signal_pid to
19571 kill_inferior if multi_process is zero.
19572
c6314022
AR
195732009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19574
19575 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19576 * target.h (target_ops): Comment for *_watchpoint to make it clear
19577 the functions can get types '0' and '1'.
19578
4463ce24
AR
195792009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19580
19581 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19582 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19583 * regcache.c (get_regcache): Likewise.
19584 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19585 * win32-low.c (child_fetch_inferior_registers): Remove check for
19586 regno 0.
19587
cf8fd78b
PA
195882009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19589 Pedro Alves <pedro@codesourcery.com>
19590
19591 * target.h (struct target_ops) <supports_multi_process>: New
19592 callback.
19593 (target_supports_multi_process): New.
19594 * server.c (handle_query): Even if GDB reports support, only
19595 enable multi-process if the target also supports it. Report
19596 multi-process support only if the target backend supports it.
19597 * linux-low.c (linux_supports_multi_process): New function.
19598 (linux_target_ops): Install it as target_supports_multi_process
19599 callback.
19600
47c0c975
DE
196012009-05-24 Doug Evans <dje@google.com>
19602
e09875d4
DE
19603 Global renaming of find_thread_pid to find_thread_ptid.
19604 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19605 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19606 All callers updated.
19607
e27d73f6
DE
19608 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19609 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19610 directly.
19611
47c0c975
DE
19612 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19613 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19614 (linux_resume_one_lwp): Ditto.
19615
2acc282a
DE
196162009-05-23 Doug Evans <dje@google.com>
19617
19618 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19619 from struct inferior_list_entry * to struct lwp_info *.
19620 All callers updated.
19621
9f1036c1
DE
196222009-05-13 Doug Evans <dje@google.com>
19623
19624 * linux-x86-low.c: Don't include assert.h.
19625 (x86_siginfo_fixup): Use fatal, not assert.
19626 (x86_arch_setup): Fix comment.
19627
d0722149
DE
196282009-05-12 Doug Evans <dje@google.com>
19629
19630 Biarch support for i386/amd64 gdbserver.
19631 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19632 Add linux-x86-low.c.
19633 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19634 (linux-x86-low.o): Add.
19635 * linux-x86-64-low.c: Delete.
19636 * linux-i386-low.c: Delete.
19637 * linux-x86-low.c: New file.
19638 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19639 linux-x86-low.o.
19640 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19641 linux-x86-low.o.
19642 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19643 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19644 (linux_child_pid_to_exec_file): New function.
19645 (elf_64_header_p, elf_64_file_p): New functions.
19646 (siginfo_fixup): New function.
19647 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19648 give target a chance to convert layout.
19649 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19650 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19651
fdeb2a12
DE
196522009-05-07 Doug Evans <dje@google.com>
19653
19654 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19655 (regsets_store_inferior_registers): Ditto.
19656
a6dbe5df
PA
196572009-05-06 Pedro Alves <pedro@codesourcery.com>
19658
19659 PR server/10048
19660
19661 * linux-low.c (must_set_ptrace_flags): Delete.
19662 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19663 of the global.
19664 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19665 `lwp->must_set_ptrace_flags' instead.
ba42693b 19666 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19667 (linux_wait_1): ... not here.
19668
5091eb23
DE
196692009-04-30 Doug Evans <dje@google.com>
19670
9f767825
DE
19671 * inferiors.c (started_inferior_callback): New function.
19672 (attached_inferior_callback): New function.
19673 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19674 * server.c (print_started_pid, print_attached_pid): New functions.
19675 (detach_or_kill_for_exit): New function.
19676 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19677 * server.h (have_started_inferiors_p): Declare.
19678 (have_attached_inferiors_p): Declare.
19679
5091eb23
DE
19680 * inferiors.c (remove_process): Fix memory leak, free process.
19681 * linux-low.c (linux_remove_process): New function.
19682 (linux_kill): Call it instead of remove_process.
19683 (linux_detach, linux_wait_1): Ditto.
19684
155c8968
PA
196852009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19686
19687 * configure.srv: Add x86 Windows CE target.
19688
7fe519cb
UW
196892009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19690
19691 * inferiors.c (get_thread_process): Make global.
19692 * server.h (get_thread_process): Add prototype.
19693 * thread-db.c (find_one_thread): Use get_thread_process
19694 instead of current_process.
19695 (thread_db_get_tls_address): Do not crash if called when
19696 thread layer is not yet initialized.
19697
5472f405
UW
196982009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19699
19700 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19701 * spu-low.c (current_tid): Rename to ...
19702 (current_ptid): ... this.
19703 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19704 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19705 ptid_get_lwp (current_ptid) instead of current_tid.
19706 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19707 instead of current_tid. Use find_process_pid to verify pid
19708 argument is valid. Pass proper argument to remove_process.
19709 (spu_thread_alive): Compare current_ptid instead of current_tid.
19710 (spu_resume): Likewise.
19711
55ac2b99
PA
197122009-04-02 Pedro Alves <pedro@codesourcery.com>
19713
19714 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19715 variable.
19716
95954743
PA
197172009-04-01 Pedro Alves <pedro@codesourcery.com>
19718
19719 Implement the multiprocess extensions, and add linux multiprocess
19720 support.
19721
19722 * server.h (ULONGEST): Declare.
19723 (struct ptid, ptid_t): New.
19724 (minus_one_ptid, null_ptid): Declare.
19725 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19726 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19727 (struct inferior_list_entry): Change `id' type from unsigned from
19728 to ptid_t.
19729 (struct sym_cache, struct breakpoint, struct
19730 process_info_private): Forward declare.
19731 (struct process_info): Declare.
19732 (current_process): Declare.
19733 (all_processes): Declare.
19734 (initialize_inferiors): Declare.
19735 (add_thread): Adjust to use ptid_t.
19736 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19737 (add_process, remove_process, find_thread_pid): Declare.
19738 (find_inferior_id): Adjust to use ptid_t.
19739 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19740 (multi_process): Declare.
19741 (push_event): Adjust to use ptid_t.
19742 (read_ptid, write_ptid): Declare.
19743 (prepare_resume_reply): Adjust to use ptid_t.
19744 (clear_symbol_cache): Declare.
19745 * inferiors.c (all_processes): New.
19746 (null_ptid, minus_one_ptid): New.
19747 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19748 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19749 (add_thread): Change unsigned long to ptid. Remove gdb_id
19750 parameter. Adjust.
19751 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19752 (gdb_id_to_thread): Rename to ...
19753 (find_thread_pid): ... this. Change unsigned long to ptid.
19754 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19755 (loaded_dll, pull_pid_from_list): Adjust.
19756 (add_process, remove_process, find_process_pid)
19757 (get_thread_process, current_process, initialize_inferiors): New.
19758 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19759 (struct target_waitstatus) <related_pid>: Ditto.
19760 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19761 return type to int.
19762 (struct target_ops) <join>: Add `pid' argument.
19763 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19764 (struct target_ops) <wait>: Add `ptid' field. Change return type
19765 to ptid.
19766 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19767 (mywait): Add `ptid' argument. Change return type to ptid_t.
19768 (target_pid_to_str): Declare.
19769 * target.c (set_desired_inferior): Adjust to use ptids.
19770 (mywait): Add new `ptid' argument. Adjust.
19771 (target_pid_to_str): New.
19772 * mem-break.h (free_all_breakpoints): Declare.
19773 * mem-break.c (breakpoints): Delelete.
19774 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19775 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19776 to use per-process breakpoint list.
19777 (free_all_breakpoints): New.
19778 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19779 (symbol_cache, all_symbols_looked_up): Delete.
19780 (hexchars): New.
19781 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19782 read_ptid): New.
19783 (prepare_resume_reply): Change ptid argument's type from unsigned
19784 long to ptid_t. Adjust. Implement W;process and X;process.
19785 (free_sym_cache, clear_symbol_cache): New.
19786 (look_up_one_symbol): Adjust to per-process symbol cache. *
19787 * server.c (cont_thread, general_thread, step_thread): Change type
19788 to ptid_t.
19789 (attached): Delete.
19790 (multi_process): New.
19791 (last_ptid): Change type to ptid_t.
19792 (struct vstop_notif) <ptid>: Change type to ptid_t.
19793 (queue_stop_reply, push_event): Change `ptid' argument's type to
19794 ptid_t.
19795 (discard_queued_stop_replies): Add `pid' argument.
19796 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19797 changes. Don't reference the `attached' global.
19798 (attach_inferior): Adjust to mywait interface changes.
19799 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19800 features. Handle and report "multiprocess+". Handle
19801 "qAttached:PID".
19802 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19803 changes.
19804 (handle_v_kill): New.
19805 (handle_v_stopped): Adjust to use target_pid_to_str.
19806 (handle_v_requests): Allow multiple attaches and runs when
19807 multiprocess extensions are in effect. Handle "vKill".
19808 (myresume): Adjust to use ptids.
19809 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19810 (handle_status): Adjust to discard_queued_stop_replies interface
19811 change.
19812 (first_thread_of, kill_inferior_callback)
19813 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19814 (main): Call initialize_inferiors. Adjust to use ptids, killing
19815 and detaching from all inferiors. Handle multiprocess packet
19816 variants.
19817 * linux-low.h: Include gdb_proc_service.h.
19818 (struct process_info_private): New.
19819 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19820 <lwpid_of>: Use ptid_get_lwp.
19821 (get_lwp_thread): Adjust.
19822 (struct lwp_info): Add `dead' member.
19823 (find_lwp_pid): Declare.
19824 * linux-low.c (thread_db_active): Delete.
19825 (new_inferior): Adjust comment.
19826 (inferior_pid): Delete.
19827 (linux_add_process): New.
19828 (handle_extended_wait): Adjust.
19829 (add_lwp): Change unsigned long to ptid.
19830 (linux_create_inferior): Add process to processes table. Adjust
19831 to use ptids. Don't set new_inferior here.
19832 (linux_attach_lwp): Rename to ...
19833 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19834 it. Adjust to use ptids.
19835 (linux_attach_lwp): New.
19836 (linux_attach): Add process to processes table. Don't set
19837 new_inferior here.
19838 (struct counter): New.
19839 (second_thread_of_pid_p, last_thread_of_process_p): New.
19840 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19841 multiple processes.
19842 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19843 processes. Remove process from process table.
19844 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19845 to multiple processes.
19846 (any_thread_of): New.
19847 (linux_detach): Add `pid' argument, and handle it. Remove process
19848 from processes table.
19849 (linux_join): Add `pid' argument. Handle it.
19850 (linux_thread_alive): Change unsighed long argument to ptid_t.
19851 Consider dead lwps as not being alive.
19852 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19853 threads we're not interested in.
19854 (same_lwp, find_lwp_pid): New.
19855 (linux_wait_for_lwp): Change `pid' argument's type from int to
19856 ptid_t. Adjust.
19857 (linux_wait_for_event): Rename to ...
19858 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19859 from int to ptid_t. Adjust.
19860 (linux_wait_for_event): New.
19861 (linux_wait_1): Add `ptid' argument. Change return type to
19862 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19863 that exit from the process table.
19864 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19865 Adjust.
19866 (mark_lwp_dead): New.
19867 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19868 stopping all threads, mark its main lwp as dead.
19869 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19870 ptids.
19871 (fetch_register, usr_store_inferior_registers)
19872 (regsets_fetch_inferior_registers)
19873 (regsets_store_inferior_registers, linux_read_memory)
19874 (linux_write_memory): Inline `inferior_pid'.
19875 (linux_look_up_symbols): Adjust to use per-process
19876 `thread_db_active'.
19877 (linux_request_interrupt): Adjust to use ptids.
19878 (linux_read_auxv): Inline `inferior_pid'.
19879 (initialize_low): Don't reference thread_db_active.
19880 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19881 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19882 (ps_getpid): Return the pid of the current inferior.
19883 * thread-db.c (proc_handle, thread_agent): Delete.
19884 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19885 per-process data.
19886 (find_one_thread): Change argument type to ptid_t. Adjust to
19887 per-process data.
19888 (maybe_attach_thread): Adjust to per-process data and ptids.
19889 (thread_db_find_new_threads): Ditto.
19890 (thread_db_init): Ditto.
19891 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19892 processes table. Adjust to use ptids.
19893 (spu_kill, spu_detach): Adjust interface. Remove process from
19894 processes table.
19895 (spu_join, spu_thread_alive): Adjust interface.
19896 (spu_wait): Adjust interface. Remove process from processes
19897 table. Adjust to use ptids.
19898 * win32-low.c (current_inferior_tid): Delete.
19899 (current_inferior_ptid): New.
19900 (debug_event_ptid): New.
19901 (thread_rec): Take a ptid. Adjust.
19902 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19903 (child_delete_thread): Ditto.
19904 (do_initial_child_stuff): Add `attached' argument. Add process to
19905 processes table.
19906 (child_fetch_inferior_registers, child_store_inferior_registers):
19907 Adjust.
19908 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19909 (win32_attach): Pass 1 to do_initial_child_stuff.
19910 (win32_kill): Adjust interface. Remove process from processes
19911 table.
19912 (win32_detach): Ditto.
19913 (win32_join): Adjust interface.
19914 (win32_thread_alive): Take a ptid.
19915 (win32_resume): Adjust to use ptids.
19916 (get_child_debug_event): Ditto.
19917 (win32_wait): Adjust interface. Remove exiting process from
19918 processes table.
19919
bd99dc85
PA
199202009-04-01 Pedro Alves <pedro@codesourcery.com>
19921
19922 Non-stop mode support.
19923
19924 * server.h (non_stop): Declare.
19925 (gdb_client_data, handler_func): Declare.
19926 (delete_file_handler, add_file_handler, start_event_loop):
19927 Declare.
19928 (handle_serial_event, handle_target_event, push_event)
19929 (putpkt_notif): Declare.
19930 * target.h (enum resume_kind): New.
19931 (struct thread_resume): Replace `step' field by `kind' field.
19932 (TARGET_WNOHANG): Define.
19933 (struct target_ops) <wait>: Add `options' argument.
19934 <supports_non_stop, async, start_non_stop>: New fields.
19935 (target_supports_non_stop, target_async): New.
19936 (start_non_stop): Declare.
19937 (mywait): Add `options' argument.
19938 * target.c (mywait): Add `options' argument. Print child exit
19939 notifications here.
19940 (start_non_stop): New.
19941 * server.c (non_stop, own_buf, mem_buf): New globals.
19942 (struct vstop_notif): New.
19943 (notif_queue): New global.
19944 (queue_stop_reply, push_event, discard_queued_stop_replies)
19945 (send_next_stop_reply): New.
19946 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19947 interface changes.
19948 (attach_inferior): In non-stop mode, don't wait for the target
19949 here.
19950 (handle_general_set): Handle QNonStop.
19951 (handle_query): When handling qC, return the current general
19952 thread, instead of the first thread of the list.
19953 (handle_query): If the backend supports non-stop mode, include
19954 QNonStop+ in the qSupported query response.
19955 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19956 and non-stop mode.
19957 (handle_v_attach, handle_v_run): Handle non-stop mode.
19958 (handle_v_stopped): New.
19959 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19960 (myresume): Adjust to use resume_kind. Handle non-stop.
19961 (queue_stop_reply_callback): New.
19962 (handle_status): Handle non-stop mode.
19963 (main): Clear non_stop flag on reconnection. Use the event-loop.
19964 Refactor serial protocol handling from here ...
19965 (process_serial_event): ... to this new function. When GDB
19966 selects any thread, select one here. In non-stop mode, wait until
19967 GDB acks all pending events before exiting.
19968 (handle_serial_event, handle_target_event): New.
19969 * remote-utils.c (remote_open): Install remote_desc in the event
19970 loop.
19971 (remote_close): Remove remote_desc from the event loop.
19972 (putpkt_binary): Rename to...
19973 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19974 (putpkt_binary): New as wrapper around putpkt_binary_1.
19975 (putpkt_notif): New.
19976 (prepare_resume_reply): In non-stop mode, don't change the
19977 general_thread.
19978 * event-loop.c: New.
19979 * Makefile.in (OBJ): Add event-loop.o.
19980 (event-loop.o): New rule.
19981
19982 * linux-low.h (pid_of): Moved here.
19983 (lwpid_of): New.
19984 (get_lwp_thread): Use lwpid_of.
19985 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19986 * linux-low.c (pid_of): Delete.
19987 (inferior_pid): Use lwpid_of.
19988 (linux_event_pipe): New.
19989 (target_is_async_p): New.
19990 (delete_lwp): New.
19991 (handle_extended_wait): Use lwpid_of.
19992 (add_lwp): Don't set lwpid field.
19993 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19994 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19995 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19996 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19997 first. Adjust to linux_wait_for_event interface changes. Use
19998 lwpid_of.
19999 (linux_detach): Don't delete the main lwp here.
20000 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
20001 (status_pending_p): Don't consider explicitly suspended lwps.
20002 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
20003 pointer. Add OPTIONS argument. Change return type to int. Use
20004 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
20005 (linux_wait_for_event): Take an integer pid instead of a lwp_info
20006 pointer. Add status pointer argument. Return a pid instead of a
20007 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
20008 changes. In non-stop mode, don't switch to a random thread.
20009 (linux_wait): Rename to...
20010 (linux_wait_1): ... this. Add target_options argument, and handle
20011 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
20012 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
20013 clean exit and signal exit code. Don't stop all threads in
20014 non-stop mode. In all-stop mode, only stop all threads when
20015 reporting a stop to GDB. Handle explicit thread stop requests.
20016 (async_file_flush, async_file_mark): New.
20017 (linux_wait): New.
20018 (send_sigstop): Use lwpid_of.
20019 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
20020 interface changes. In non-stop mode, don't switch to a random
20021 thread.
20022 (linux_resume_one_lwp): Use lwpid_of.
20023 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20024 (linux_resume_one_thread): ... this. Handle resume_stop. In
20025 non-stop mode, don't look for pending flag in all threads.
20026 (resume_status_pending_p): Don't consider explicitly suspended
20027 threads.
20028 (my_waitpid): Reimplement. Emulate __WALL.
20029 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20030 Use lwpid_of.
20031 (sigchld_handler, linux_supports_non_stop, linux_async)
20032 (linux_start_non_stop): New.
20033 (linux_target_ops): Register linux_supports_non_stop, linux_async
20034 and linux_start_non_stop.
20035 (initialize_low): Install SIGCHLD handler.
20036 * thread-db.c (thread_db_create_event, find_one_thread)
20037 (thread_db_get_tls_address): Use lwpid_of.
20038 * win32-low.c (win32_detach): Adjust to use resume_kind.
20039 (win32_wait): Add `options' argument.
20040 * spu-low.c (spu_resume): Adjust to use resume_kind.
20041 (spu_wait): Add `options' argument.
20042
5b1c542e
PA
200432009-04-01 Pedro Alves <pedro@codesourcery.com>
20044
20045 Decouple target code from remote protocol.
20046
20047 * target.h (enum target_waitkind): New.
20048 (struct target_waitstatus): New.
20049 (struct target_ops) <wait>: Return an unsigned long. Take a
20050 target_waitstatus pointer instead of a char pointer.
20051 (mywait): Likewise.
20052 * target.c (mywait): Change prototype to return an unsigned long.
20053 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20054 * server.h (thread_from_wait, old_thread_from_wait): Delete
20055 declarations.
20056 (prepare_resume_reply): Change prototype to take a
20057 target_waitstatus.
20058 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20059 (last_status, last_ptid): New.
20060 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20061 pid instead of a signal.
20062 (attach_inferior): Remove "status" and "signal" parameters.
20063 Adjust.
20064 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20065 not as an address.
20066 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20067 (handle_v_requests, myresume): Remove "status" and "signal"
20068 parameters. Adjust.
20069 (handle_status): New.
20070 (main): Delete local `status'. Adjust.
20071 * remote-utils.c: Include target.h.
20072 (prepare_resume_reply): Change prototype to take a
20073 target_waitstatus. Adjust.
20074
20075 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20076 interface.
20077 * spu-low.c (spu_wait): Adjust.
20078 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20079 Delete.
20080 (win32_wait): Adjust.
20081
2bd7c093
PA
200822009-04-01 Pedro Alves <pedro@codesourcery.com>
20083
20084 * target.h (struct thread_resume): Delete leave_stopped member.
20085 (struct target_ops): Add a `n' argument to the `resume' callback.
20086 * server.c (start_inferior): Adjust.
20087 (handle_v_cont, myresume): Adjust.
20088 * linux-low.c (check_removed_breakpoint): Adjust to resume
20089 interface change, and to removed leave_stopped field.
20090 (resume_ptr): Delete.
20091 (struct thread_resume_array): New.
20092 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20093 resume interface change.
20094 (linux_continue_one_thread, linux_queue_one_thread)
20095 (resume_status_pending_p): Check if the resume field is NULL
20096 instead of checking the leave_stopped member.
20097 (linux_resume): Adjust to the target resume interface change.
20098 * spu-low.c (spu_resume): Adjust to the target resume interface
20099 change.
20100 * win32-low.c (win32_detach, win32_resume): Ditto.
20101
c35fafde
PA
201022009-04-01 Pedro Alves <pedro@codesourcery.com>
20103
20104 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20105 flag.
20106 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20107 pending.
20108 (linux_continue_one_thread): Only preserve the stepping flag if
20109 there's a pending breakpoint.
20110
0a59d50b
PA
201112009-03-31 Pedro Alves <pedro@codesourcery.com>
20112
20113 * server.c (main): After the inferior having exited, call
20114 remote_close before exiting gdbserver.
20115
f04c6d38
TJB
201162009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20117
20118 Fix size of FPSCR in Power 7 processors.
20119 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20120 (PPC_FEATURE_HAS_DFP): New #define.
20121 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20122 size of the FPSCR.
20123
78e5cee6
PA
201242009-03-23 Pedro Alves <pedro@codesourcery.com>
20125
20126 * server.c (handle_query) Whitespace and formatting.
20127
1b3f6016
PA
201282009-03-22 Pedro Alves <pedro@codesourcery.com>
20129
20130 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20131 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20132 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20133 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20134 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20135 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20136 Makefile.in, configure.ac: Fix whitespace throughout.
20137 * configure: Regenerate.
20138
a07b2135
PA
201392009-03-22 Pedro Alves <pedro@codesourcery.com>
20140
20141 * inferiors.c (find_inferior): Make it safe for the callback
20142 function to delete the currently iterated inferior.
20143
67cc2626
PA
201442009-03-22 Pedro Alves <pedro@codesourcery.com>
20145
20146 * Makefile.in (linuw_low_h): Move higher.
20147 (thread-db.o): Depend on $(linux_low_h).
20148
54a0b537
PA
201492009-03-17 Pedro Alves <pedro@codesourcery.com>
20150
20151 Rename "process" to "lwp" throughout.
20152
20153 * linux-low.c (all_processes): Rename to...
20154 (all_lwps): ... this.
20155 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20156 (add_process): Rename to ...
20157 (add_lwp): ... this. Adjust.
20158 (linux_create_inferior): Adjust.
20159 (linux_attach_lwp): Adjust.
20160 (linux_attach): Adjust.
20161 (linux_kill_one_process): Rename to ...
20162 (linux_kill_one_lwp): ... this. Adjust.
20163 (linux_kill): Adjust.
20164 (linux_detach_one_process): Rename to ...
20165 (linux_detach_one_lwp): ... this. Adjust.
20166 (linux_detach): Adjust.
20167 (check_removed_breakpoint): Adjust.
20168 (status_pending_p): Adjust.
20169 (linux_wait_for_process): Rename to ...
20170 (linux_wait_for_lwp): ... this. Adjust.
20171 (linux_wait_for_event): Adjust.
20172 (send_sigstop): Adjust.
20173 (wait_for_sigstop): Adjust.
20174 (stop_all_processes): Rename to ...
20175 (stop_all_lwps): ... this.
20176 (linux_resume_one_process): Rename to ...
20177 (linux_resume_one_lwp): ... this. Adjust.
20178 (linux_set_resume_request, linux_continue_one_thread)
20179 (linux_queue_one_thread, resume_status_pending_p)
20180 (usr_store_inferior_registers, regsets_store_inferior_registers)
20181 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20182 Adjust.
20183 * linux-low.h (get_process): Rename to ...
20184 (get_lwp): ... this. Adjust.
20185 (get_thread_process): Rename to ...
20186 (get_thread_lwp): ... this. Adjust.
20187 (get_process_thread): Rename to ...
20188 (get_lwp_thread): ... this. Adjust.
20189 (struct process_info): Rename to ...
20190 (struct lwp_info): ... this.
20191 (all_processes): Rename to ...
20192 (all_lwps): ... this.
20193 * proc-service.c (ps_lgetregs): Adjust.
20194 * thread-db.c (thread_db_create_event, find_one_thread)
20195 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20196
0b16c5cf
PA
201972009-03-14 Pedro Alves <pedro@codesourcery.com>
20198
20199 * server.c (handle_query): Handle "qAttached".
20200
32de4b9d
NS
202012009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20202
20203 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20204 GPLv3, update license URL.
20205
2aecd87f
DE
202062009-03-01 Doug Evans <dje@google.com>
20207
93efd302 20208 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
20209 (server_h): Add gdb_signals.h.
20210 (signals.o): Update.
20211 * server.h (target_signal_from_host,target_signal_to_host_p)
20212 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20213
86b1f9c5
PM
202142009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20215
20216 * remote-utils.c (getpkt): Also generate remote-debug
20217 information if noack_mode is set.
20218
4aa995e1
PA
202192009-02-06 Pedro Alves <pedro@codesourcery.com>
20220
20221 * server.c (handle_query): Report qXfer:siginfo:read and
20222 qXfer:siginfo:write as supported and handle them.
20223 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20224 * linux-low.c (linux_xfer_siginfo): New.
20225 (linux_target_ops): Set it.
20226
62709adf
PA
202272009-01-26 Pedro Alves <pedro@codesourcery.com>
20228
20229 * server.c (gdbserver_usage): Mention --remote-debug.
20230 (main): Accept '--remote-debug' switch.
20231
aef93bd7
DE
202322009-01-18 Doug Evans <dje@google.com>
20233
20234 * regcache.c (new_register_cache): No need to check result of xcalloc.
20235 * server.c (handle_search_memory): Back out calls to xmalloc,
20236 result is checked and error is returned to user upon failure.
20237 (handle_query): Ditto. Add more checks for result of malloc.
20238 (handle_v_cont): Check result of malloc, report error back to
20239 user upon failure.
20240 (handle_v_run): Ditto. Call freeargv.
20241 * server.h (freeargv): Declare.
20242 * utils.c (freeargv): New fn.
20243
54363045
DE
202442009-01-15 Doug Evans <dje@google.com>
20245
f626972c
DE
20246 * gdbreplay.c (perror_with_name): Make arg const char *.
20247 * server.h (target_signal_to_name): Make return type const char *.
0842e787 20248 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 20249 * utils.c (perror_with_name): Make arg const char *.
54363045 20250
18aae699
PA
202512009-01-14 Pedro Alves <pedro@codesourcery.com>
20252
20253 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20254 when handling a EXIT_PROCESS_DEBUG_EVENT.
20255
ff703abe
JB
202562009-01-06 Joel Brobecker <brobecker@adacore.com>
20257
20258 * gdbreplay.c (gdbreplay_version): Update copyright year.
20259 * server.c (gdbserver_version): Likewise.
20260
f21cc1a2 202612009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
20262
20263 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 20264 (handle_extended_wait): Improve comment.
0e21c1ec 20265
bca929d3
DE
202662008-12-13 Doug Evans <dje@google.com>
20267
20268 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20269 * server.h (ATTR_MALLOC): New macro.
20270 (xmalloc,xcalloc,xstrdup): Declare.
20271 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20272 * inferiors.c: Ditto.
20273 * linux-low.c: Ditto.
20274 * mem-break.c: Ditto.
20275 * regcache.c: Ditto.
20276 * remote-utils.c: Ditto.
20277 * server.c: Ditto.
20278 * target.c: Ditto.
20279 * win32-low.c: Ditto.
20280
97438e3f
DE
202812008-12-12 Doug Evans <dje@google.com>
20282
896c7fbb
DE
20283 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20284 in debugging printf.
20285
97438e3f
DE
20286 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20287
e3b886f8
DE
202882008-12-09 Doug Evans <dje@google.com>
20289
20290 * linux-low.h (struct process_info): Delete member tid, unused.
20291 * thread-db.c (find_one_thread): Update.
20292 (maybe_attach_thread): Update.
20293
07e059b5
VP
202942008-12-02 Pedro Alves <pedro@codesourcery.com>
20295
889bf7c5
PA
20296 * target.h (struct target_ops): Add qxfer_osdata member.
20297 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20298 and dirent.h.
20299 (linux_qxfer_osdata): New functions.
20300 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20301 callback.
20302 * server.c (handle_query): Handle "qXfer:osdata:read:".
20303 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20304 (buffer_xml_printf): New functions.
20305 * server.h (struct buffer): New.
20306 (buffer_grow_str, buffer_grow_str0): New macros.
20307 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20308 (buffer_xml_printf): Declare.
07e059b5 20309
4cab47ab
DE
203102008-11-24 Doug Evans <dje@google.com>
20311
20312 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20313
f142445f
DJ
203142008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20315
20316 * server.c (handle_v_run): Always use the supplied argument list.
20317
d0107bb6 203182008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20319
d0107bb6
BW
20320 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20321 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20322
2c4ad781
TJB
203232008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20324
20325 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20326 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20327 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20328 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20329 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20330 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20331 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20332 XML target descriptions.
20333 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20334 when inferior is running on an ISA 2.05 or later processor. Add
20335 special case to return offset for full 64-bit slot of FPSCR when
20336 in 32-bits.
20337
dfb64f85
DJ
203382008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20339
20340 * Makefile.in (SFILES, clean): Added sparc64 files.
20341 (reg-sparc64.o, reg-sparc64.c): New.
20342 * configure.srv (sparc*-*-linux*): New configuration.
20343 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20344 syscall arguments for SPARC.
20345 (regsets_store_inferior_registers): Likewise.
20346 * linux-sparc-low.c: New file.
20347
66b6e1dd
DE
203482008-10-21 Doug Evans <dje@google.com>
20349
20350 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20351 (READLINE_DIR,READLINE_DEP): Delete.
20352 (INTERNAL_CFLAGS): Update.
20353 (LINTFLAGS): Update.
20354
9b710a42
PA
203552008-10-10 Pedro Alves <pedro@codesourcery.com>
20356
20357 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20358 whole argv from the last run, not just argv[0].
20359
5822d809
PA
203602008-09-08 Pedro Alves <pedro@codesourcery.com>
20361
20362 * regcache.c (new_register_cache): Return NULL if the register
20363 cache size isn't known yet.
20364 (free_register_cache): Avoid dereferencing a NULL regcache.
20365
74aac56f
DJ
203662008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20367
20368 * configure.srv: Merge MIPS and MIPS64.
20369
400b20f5
MR
203702008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20371
20372 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20373
677c5bb1
LM
203742008-08-18 Luis Machado <luisgpm@br.ibm.com>
20375
20376 * Makefile.in: Add required vsx dependencies.
20377
20378 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20379 Declare init_registers_powerpc_vsx32l.
20380 Declare init_registers_powerpc_vsx64l.
20381 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20382 (ppc_arch_setup): Check for VSX in hwcap.
20383 (ppc_fill_vsxregset): New function.
20384 (ppc_store_vsxregset): New function.
20385 Add new VSX entry in regset_info target_regsets.
20386
20387 * configure.srv: Add new VSX dependencies.
20388
a6f3e723
SL
203892008-08-12 Pedro Alves <pedro@codesourcery.com>
20390
20391 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20392 (remote_open): Set or clear transport_is_reliable.
20393 (putpkt_binary): Don't expect acks in noack mode.
20394 (getpkt): Don't send ack/nac in noack mode.
20395 * server.c (handle_general_set): Handle QStartNoAckMode.
20396 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20397 qSupported.
20398 (main): Reset noack_mode on every connection.
20399 * server.h (noack_mode): Declare.
20400
a417dc56
RW
204012008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20402
20403 * Makefile.in (GDBREPLAY_OBS): New variable.
20404 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20405
3221518c
UW
204062008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20407 Daniel Jacobowitz <dan@codesourcery.com>
20408
20409 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20410 (usr_store_inferior_registers): Likewise.
20411 (regsets_store_inferior_registers): Likewise.
20412
ec56be1b
PA
204132008-07-31 Rolf Jansen <rj@surtec.com>
20414 Pedro Alves <pedro@codesourcery.com>
20415
20416 * configure.ac: Check for memmem declaration.
20417 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20418 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20419 (disable_packet_qfThreadInfo): Unconditionally compile.
20420 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20421 * configure, config.in: Regenerate.
20422
2fe5e3ff
DE
204232008-07-28 Doug Kwan <dougkwan@google.com>
20424
20425 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20426 (linux_write_memory): Remove declaration of errno.
20427
836acd6d
UW
204282008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20429
20430 * linux-low.c (handle_extended_wait): Do not use "status"
20431 variable uninitialized.
20432
aeba519e
PA
204332008-07-07 Pedro Alves <pedro@codesourcery.com>
20434
20435 * server.c (handle_v_attach): Inhibit reporting dll changes.
20436
db42f210
PA
204372008-06-27 Pedro Alves <pedro@codesourcery.com>
20438
20439 * remote-utils.c (prepare_resume_reply): If requested, don't
20440 output "thread:TID" in the T stop reply.
20441
20442 * server.c (disable_packet_vCont, disable_packet_Tthread)
20443 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20444 (handle_query): If requested, disable support for qC, qfThreadInfo
20445 and qsThreadInfo.
20446 (handle_v_requests): If requested, disable support for vCont.
20447 (gdbserver_show_disableable): New.
20448 (main): Handle --disable-packet and --disable-packet=LIST.
20449
20450 * server.h (disable_packet_vCont, disable_packet_Tthread)
20451 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20452
8e4c5421
CD
204532008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20454
20455 * server.c (gdbserver_usage): Mention --version.
20456
6e23a804
DJ
204572008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20458
20459 * Makefile.in (gdbreplay.o): New rule.
20460
90aa6a40
JM
204612008-06-06 Joseph Myers <joseph@codesourcery.com>
20462
20463 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20464 message, not gdbserver.
20465
c16158bc 204662008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20467 Nathan Sidwell <nathan@codesourcery.com>
20468 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20469
20470 * acinclude.m4: Include ../../config/acx.m4.
20471 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20472 * configure, config.in: Regenerate.
20473 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20474 * server.c (gdbserver_version): Print PKGVERSION.
20475 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20476 (main): Adjust gdbserver_usage calls.
20477 * gdbreplay.c (version, host_name): Add declarations.
20478 (gdbreplay_version, gdbreplay_usage): New.
20479 (main): Accept --version and --help options.
20480
aeb75bf5
DJ
204812008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20482
20483 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20484 (arm_breakpoint_at): Handle Thumb.
20485 (the_low_target): Add comment.
20486
76b233dd
UW
204872008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20488
20489 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20490
08388c79
DE
204912008-05-09 Doug Evans <dje@google.com>
20492
a3c83fae
DE
20493 * server.h (decode_search_memory_packet): Declare.
20494 * remote-utils.c (decode_search_memory_packet): New fn.
20495 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20496 (handle_search_memory): New fn.
20497 (handle_query): Process qSearch:memory packets.
20498
bb9c3d36
UW
204992008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20500
20501 * regcache.c (registers_length): Remove.
20502 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20503 full register packet.
20504 * regcache.h (registers_length): Remove prototype.
20505 * server.h (PBUFSIZ): Define to 16384.
20506
7284e1be
UW
205072008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20508
20509 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20510 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20511 powerpc-64l.o, and powerpc-altivec64l.o.
20512 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20513 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20514 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20515 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20516 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20517 to srv_xmlfiles.
20518
20519 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20520 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20521 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20522 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20523 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20524 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20525 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20526 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20527 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20528 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20529 (clean): Update.
20530
20531 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20532 (init_registers_powerpc_32l): ... this new prototype.
20533 (init_registers_powerpc_32): Remove, replace by ...
20534 (init_registers_powerpc_altivec32l): ... this new prototype.
20535 (init_registers_powerpc_e500): Remove, replace by ...
20536 (init_registers_powerpc_e500l): ... this new prototype.
20537 (init_registers_ppc64): Remove, replace by ...
20538 (init_registers_powerpc_64l): ... this new prototype.
20539 (init_registers_powerpc_64): Remove, replace by ...
20540 (init_registers_powerpc_altivec64l): ... this new prototype.
20541 (ppc_num_regs): Set to 73.
20542 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20543 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20544 (ppc_cannot_store_register): Handle orig_r3 and trap.
20545 (ppc_arch_setup): Update init_registers_... calls.
20546 (ppc_fill_gregset): Handle orig_r3 and trap.
20547
20548 * inferiors.c (clear_inferiors): Reset current_inferior.
20549
fdc59709
PB
205502008-04-23 Paolo Bonzini <bonzini@gnu.org>
20551
889bf7c5
PA
20552 * acinclude.m4: Add override.m4.
20553 * configure: Regenerate.
fdc59709 20554
c9b2f845
UW
205552008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20556
20557 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20558 initial call to init_register_ppc64.
20559
550512b8
UW
205602008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20561
43aaf8b6
PA
20562 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20563 single powerpc*-*-linux* case.
550512b8
UW
20564 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20565
b6430ec3
UW
205662008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20567
20568 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20569 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20570 from reg_xmlfiles.
20571 * linux-ppc-low.c: Include <elf.h>.
20572 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20573 (ppc_hwcap): New global variable.
20574 (ppc_regmap): Remove __SPE__ #ifdef sections.
20575 (ppc_regmap_e500): New global variable.
20576 (ppc_cannot_store_register): Update __SPE__ special case.
20577 (ppc_get_hwcap): New function.
20578 (ppc_arch_setup): Use it to determine whether inferior supports
20579 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20580 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20581 Do not access registers if target does not support AltiVec.
20582 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20583 Do not access registers if target does not support SPE.
20584 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20585
52fa2412
UW
205862008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20587
20588 * linux-low.c (disabled_regsets, num_regsets): New.
20589 (use_regsets_p): Delete.
20590 (linux_wait_for_process): Clear disabled_regsets.
20591 (regsets_fetch_inferior_registers): Check and set it.
20592 (regsets_store_inferior_registers): Likewise.
20593 (linux_fetch_registers, linux_store_registers): Do not use
20594 use_regsets_p.
20595 (initialize_low): Allocate disabled_regsets.
20596
e28b3332
DJ
205972008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20598
20599 * Makefile.in (LIBOBJS): New.
20600 (OBS): Use LIBOBJS.
20601 (memmem.o): New rule.
20602 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20603 * configure: Regenerated.
20604
4536995d
UW
206052008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20606
20607 * server.c (handle_query): Never return "unsupported" for
20608 qXfer:features:read queries.
20609
221c031f
UW
206102008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20611
20612 * server.c (get_features_xml): Fix inverted condition.
20613 (handle_query): Always support qXfer:feature:read.
20614
ccd213ac
DJ
206152008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20616
20617 * server.c (wrapper_argv): New.
20618 (start_inferior): Handle wrapper_argv. If set, expect an extra
20619 trap.
20620 (gdbserver_usage): Document --wrapper.
20621 (main): Parse --wrapper.
20622
6fe305f7
UW
206232008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20624
20625 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20626 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20627 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20628 (ppc_set_pc): Likewise.
20629 (ppc_arch_setup): New function.
20630 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20631 of collect_register.
889bf7c5 20632 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20633
5b0a002e
UW
206342008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20635
20636 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20637 instead of linux-ppc64-low.o.
20638 * linux-ppc64-low.c: Remove file.
20639 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20640 (linux-ppc64-low.o): Remove rule.
20641
20642 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20643 (init_registers_powerpc_64): Likewise.
20644 (ppc_regmap): Conditionally define depending on __powerpc64__.
20645 (ppc_cannot_store_register): Do not special-case "fpscr" when
20646 compiled on __powerpc64__.
20647 (ppc_collect_ptrace_register): New function.
20648 (ppc_supply_ptrace_register): New function.
20649 (ppc_breakpoint): Change type to "unsigned int".
20650 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20651 (the_low_target): Conditionally provide initializers for the
889bf7c5 20652 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20653 collect_ptrace_register and supply_ptrace_register members.
20654
9b4b61c8
UW
206552008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20656
20657 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20658 * server.c (gdbserver_xmltarget): Define.
20659 (get_features_xml): Use it to replace "target.xml" and arch_string.
20660
20661 * configure.srv: Remove srv_xmltarget. Add XML files that were
20662 mentioned there to srv_xmlfiles instead. Remove conditional tests
20663 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20664 srv_xmlfiles and srv_regobj to include all possible choices.
20665 * configure.ac (srv_xmltarget): Remove.
20666 (srv_xmlfiles): Do not add "target.xml".
20667 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20668 checks for supplementary target information.
20669 * configure: Regenerate.
20670 * Makefile.in (XML_TARGET): Remove.
20671 (target.xml): Remove rule.
20672 (clean): Do not clean up target.xml.
20673 (.PRECIOUS): Do not mention target.xml.
20674
20675 * target.h (struct target_ops): Remove arch_string member.
20676 * linux-low.c (linux_arch_string): Remove.
20677 (linux_target_ops): Remove arch_string initializer.
20678 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20679 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20680 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20681 * spu-low.c (spu_arch_string): Remove.
20682 (spu_target_ops): Remove arch_string initializer.
20683 * win32-low.c (win32_arch_string): Remove.
20684 (win32_target_ops): Remove arch_string initializer.
20685 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20686 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20687 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20688
ee1a7ae4
UW
206892008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20690
20691 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20692 by collect_ptrace_register and supply_ptrace_register hooks.
20693 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20694 instead of checking for the_low_target.left_pad_xfer.
20695 (usr_store_inferior_registers): Use collect_ptrace_register callback
20696 instead of checking for the_low_target.left_pad_xfer.
20697
20698 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20699 (s390_supply_ptrace_register): Likewise.
20700 (s390_fill_gregset): Call s390_collect_ptrace_register.
20701 (the_low_target): Update.
20702
20703 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20704 (ppc_supply_ptrace_register): Likewise.
20705 (the_low_target): Update.
20706
20707 * linux-i386-low.c (the_low_target): Update.
20708 * linux-x86-64-low.c (the_low_target): Update.
20709
d61ddec4
UW
207102008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20711
20712 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20713 reg-s390.o and reg-s390x.o.
20714
20715 * linux-low.c (new_inferior): New global variable.
20716 (linux_create_inferior, linux_attach): Set it.
20717 (linux_wait_for_process): Call the_low_target.arch_setup after the
20718 target has stopped for the first time.
20719 (initialize_low): Do not call the_low_target.arch_setup.
20720
20721 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20722 (s390_set_pc): Likewise.
20723 (s390_arch_setup): New function.
20724 (the_low_target): Use s390_arch_setup as arch_setup routine.
20725
20726 * regcache.c (realloc_register_cache): New function.
20727 (set_register_cache): Call it for each existing regcache.
20728
d05b4ac3
UW
207292008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20730
20731 * server.h (init_registers): Remove prototype.
20732
20733 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20734 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20735 instead of init_registers ().
20736 * linux-arm-low.c (init_registers_arm): Add prototype.
20737 (init_registers_arm_with_iwmmxt): Likewise.
20738 (the_low_target): Add initializer for arch_setup field.
20739 * linux-cris-low.c (init_registers_cris): Add prototype.
20740 (the_low_target): Add initializer for arch_setup field.
20741 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20742 (the_low_target): Add initializer for arch_setup field.
20743 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20744 (the_low_target): Add initializer for arch_setup field.
20745 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20746 (the_low_target): Add initializer for arch_setup field.
20747 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20748 (the_low_target): Add initializer for arch_setup field.
20749 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20750 (the_low_target): Add initializer for arch_setup field.
20751 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20752 (init_registers_mips64_linux): Likewise.
20753 (the_low_target): Add initializer for arch_setup field.
20754 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20755 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20756 (the_low_target): Add initializer for arch_setup field.
20757 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20758 (init_registers_powerpc_64): Likewise.
20759 (the_low_target): Add initializer for arch_setup field.
20760 * linux-s390-low.c (init_registers_s390): Add prototype.
20761 (init_registers_s390x): Likewise.
20762 (the_low_target): Add initializer for arch_setup field.
20763 * linux-sh-low.c (init_registers_sh): Add prototype.
20764 (the_low_target): Add initializer for arch_setup field.
20765 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20766 (the_low_target): Add initializer for arch_setup field.
20767 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20768 (the_low_target): Add initializer for arch_setup field.
20769
20770 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20771 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20772 instead of init_registers ().
20773 * win32-arm-low.c (init_registers_arm): Add prototype.
20774 (the_low_target): Add initializer for arch_setup field.
20775 * win32-i386-low.c (init_registers_i386): Add prototype.
20776 (the_low_target): Add initializer for arch_setup field.
20777
20778 * spu-low.c (init_registers_spu): Add prototype.
20779 (initialize_low): Call initialie_registers_spu () instead of
20780 initialize_registers ().
20781
fd96d250
PA
207822008-02-19 Pedro Alves <pedro@codesourcery.com>
20783
20784 * server.c (handle_v_requests): When handling the vRun and vAttach
20785 packets, if already debugging a process, don't kill it. Return an
20786 error instead.
20787
d41b6bb4
DJ
207882008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20789
20790 * server.c (handle_query): Correct length check.
20791
5ac588cf
PA
207922008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20793
20794 * win32-low.c (do_initial_child_stuff): Add process handle
20795 parameter. Set current_process_handle and current_process_id from the
20796 parameters. Clear globals.
20797 (win32_create_inferior): Don't set current_process_handle and
20798 current_process_id here. Instead pass them on the call to
20799 do_initial_child_stuff.
20800 (win32_attach): Likewise.
20801 (win32_clear_inferiors): New.
20802 (win32_kill): Don't close the current process handle or the
20803 current thread handle here. Instead call win32_clear_inferiors.
20804 (win32_detach): Don't open a new handle to the process. Call
20805 win32_clear_inferiors.
20806 (win32_join): Don't rely on current_process_handle; open a new
20807 handle using the process id.
20808 (win32_wait): Call win32_clear_inferiors when the inferior process
20809 has exited.
20810
ecd7ecbc
DJ
208112008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20812
20813 * server.c (monitor_show_help): Add "exit".
20814
1525d545
MG
208152008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20816
ecd7ecbc 20817 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20818 (clean): Add reg-xtensa.c.
20819 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20820 * configure.srv (xtensa*-*-linux*) New target.
20821 * linux-xtensa-low.c: New.
20822 * xtensa-xtregs.c: New.
1525d545 20823
59a016f0
PA
208242008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20825
20826 * hostio.c: Don't include errno.h.
20827 (errno_to_fileio_errno): Move to hostio-errno.
20828 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20829 error number outputting to the target->hostio_last_error callback.
20830 (hostio_packet_error): Use FILEIO_EINVAL directly.
20831 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20832 calls to hostio_error.
20833 * hostio-errno.c: New.
20834 * server.h (hostio_last_error_from_errno): Declare.
20835 * target.h (target_ops): Add hostio_last_error member.
20836 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20837 as hostio_last_error handler.
889bf7c5 20838 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20839 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20840 (wince_hostio_last_error): New functions.
20841 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20842 as hostio_last_error handler.
20843 (win32_target_ops) [!_WIN32_WCE]: Register
20844 hostio_last_error_from_errno as hostio_last_error handler.
20845 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20846 (hostio-errno.o): New rule.
20847 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20848 * configure.srv (srv_hostio_err_objs): New variable. Default to
20849 hostio-errno.o.
20850 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20851 * configure: Regenerate.
20852
2d717e4f
DJ
208532008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20854
20855 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20856 (linux_kill, linux_detach): Clean up the process list.
20857 * remote-utils.c (remote_open): Improve port number parsing.
20858 (putpkt_binary, input_interrupt): Only send interrupts if the target
20859 is running.
20860 * server.c (extended_protocol): Make static.
20861 (attached): Define earlier.
20862 (exit_requested, response_needed, program_argv): New variables.
20863 (target_running): New.
20864 (start_inferior): Clear attached here.
20865 (attach_inferior): Set attached here.
20866 (require_running): Define.
20867 (handle_query): Use require_running and target_running. Implement
20868 "monitor exit".
20869 (handle_v_attach, handle_v_run): New.
20870 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20871 (gdbserver_usage): Update.
20872 (main): Redo argument parsing. Handle --debug and --multi. Handle
20873 --attach along with other options or after the port. Save
20874 program_argv. Support no initial program. Resynchronize
20875 communication with GDB after an error. Handle "monitor exit".
20876 Use require_running and target_running. Always allow the extended
20877 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20878 restart in extended mode.
20879 * README: Refer to the GDB manual. Update --attach usage.
20880
7407e2de
AS
208812007-12-20 Andreas Schwab <schwab@suse.de>
20882
20883 * linux-low.c (STACK_SIZE): Define.
20884 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20885 (linux_test_for_tracefork): Likewise.
20886
b65d95c5
DJ
208872007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20888
20889 * linux-low.c (linux_wait_for_event): Update messages. Do not
20890 reinsert auto-delete breakpoints.
20891 * mem-break.c (struct breakpoint): Change return type of handler to
20892 int.
20893 (set_breakpoint_at): Update handler type.
20894 (reinsert_breakpoint_handler): Return 1 instead of calling
20895 delete_breakpoint.
20896 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20897 setting a new one.
20898 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20899 * mem-break.h (set_breakpoint_at): Update handler type.
20900 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20901 * win32-low.c (auto_delete_breakpoint): New.
20902 (get_child_debug_event): Use it.
20903
4e799345
DJ
209042007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20905
20906 * configure.ac: Check for pread and pwrite.
20907 * hostio.c (handle_pread): Fall back to lseek and read.
20908 (handle_pwrite): Fall back to lseek and write.
20909 * config.in, configure: Regenerated.
20910
27524b67
DJ
209112007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20912
20913 * server.c (myresume): Add own_buf argument.
20914 (main): Update calls.
20915
a20d5e98
DJ
209162007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20917
20918 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20919 * remote-utils.c (remote_open): Do not call disable_async_io.
20920 (block_async_io): Delete.
20921 (unblock_async_io): Make static.
20922 (initialize_async_io): New.
20923 * server.c (handle_v_cont): Handle async I/O here.
20924 (myresume): Likewise. Move other common resume tasks here...
20925 (main): ... from here. Call initialize_async_io. Disable async
20926 I/O before the main loop.
20927 * server.h (initialize_async_io): Declare.
20928 (block_async_io, unblock_async_io): Delete prototypes.
20929 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20930
b79d787e
DJ
209312007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20932
20933 * remote-utils.c (readchar): Allow binary data in received messages.
20934
d97903b2
PA
209352007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20936
20937 * win32-low.c (attaching): New global.
20938 (win32_create_inferior): Clear the `attaching' global.
20939 (win32_attach): Set the `attaching' global.
20940 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20941 attaching. Only set a breakpoint at the entry point if not
20942 attaching.
20943
311de423
PA
209442007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20945
20946 * server.c (main): Don't report dll events on the initial
20947 connection on attaches.
20948
6c2d16d2
PA
209492007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20950
20951 * server.c (main): Relax numerical bases supported for the pid of
20952 the --attach command line argument.
20953
5ca906e6
PA
209542007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20955
20956 * win32-low.c (win32_attach): Call OpenProcess before
20957 DebugActiveProcess, not after. Add last error output to error
20958 call.
20959
9c6c8194
PA
209602007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20961
20962 * win32-low.c (win32_get_thread_context)
20963 (win32_set_thread_context): New functions.
20964 (thread_rec): Use win32_get_thread_context.
20965 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20966 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20967 field.
20968
4d5d1aaa
PA
209692007-12-03 Leo Zayas
20970 Pedro Alves <pedro_alves@portugalmail.pt>
20971
20972 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20973 global variables.
20974 (child_add_thread): Minor cleanup.
20975 (child_continue): Resume artificially suspended threads before
20976 calling ContinueDebugEvent.
20977 (suspend_one_thread): New.
20978 (fake_breakpoint_event): New.
20979 (get_child_debug_event): Change return type to int. Check here if
20980 gdb sent an interrupt request. If a soft interrupt was requested,
20981 fake a breakpoint event. Return 0 if there is no event to handle,
20982 and 1 otherwise.
20983 (win32_wait): Don't check here if gdb sent an interrupt request.
20984 Ensure there is a valid event to handle.
20985 (win32_request_interrupt): Add soft interruption method as last
20986 resort.
20987
c436e841
PA
209882007-12-03 Leo Zayas
20989 Pedro Alves <pedro_alves@portugalmail.pt>
20990
20991 * win32-low.h (win32_thread_info): Add descriptions to the
20992 structure members. Replace `suspend_count' counter by a
20993 `suspended' flag.
20994 * win32-low.c (thread_rec): Update condition of when to get the
20995 context from the inferior. Rely on ContextFlags being set if it
20996 has already been retrieved. Only suspend the inferior thread if
20997 we haven't already. Warn if that fails.
20998 (continue_one_thread): s/suspend_count/suspended/. Only call
20999 ResumeThread once. Warn if that fails.
21000
e7b5fa67
PA
210012007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21002
21003 * win32-low.c (win32_wait): Don't read from the inferior when it
21004 has already exited.
21005
a385171d
PA
210062007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21007
21008 * Makefile.in (win32_low_h): New variable.
21009 (win32-low.o): Add dependency on $(win32_low_h).
21010 (win32-arm-low.o, win32-i386-low.o): New rules.
21011
f80c84b3
DJ
210122007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21013
21014 * hostio.c: Correct copyright year.
21015
a6b151f1
DJ
210162007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21017
21018 * Makefile.in (OBS): Add hostio.o.
21019 (hostio.o): New rule.
21020 * server.h (handle_vFile): Declare.
21021 * hostio.c: New file.
21022 * server.c (handle_v_requests): Take packet_len and new_packet_len
21023 for binary packets. Call handle_vFile.
21024 (main): Update call to handle_v_requests.
21025
f9387fc3
DJ
210262007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21027
21028 * linux-low.c: Include <sched.h>.
21029
51c2684e
DJ
210302007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21031
21032 * linux-low.c (linux_tracefork_grandchild): New.
21033 (linux_tracefork_child): Use clone.
21034 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21035
75f83163
JB
210362007-10-31 Joel Brobecker <brobecker@adacore.com>
21037
21038 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21039
da5898ce
DJ
210402007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21041
21042 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21043
24a09b5f
DJ
210442007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21045
21046 * inferiors.c (change_inferior_id): Delete.
21047 (add_pid_to_list, pull_pid_from_list): New.
21048 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21049 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21050 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21051 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21052 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21053 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21054 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21055 (using_threads): Always set to 1.
21056 (handle_extended_wait): New.
21057 (add_process): Do not set TID.
21058 (linux_create_inferior): Set must_set_ptrace_flags.
21059 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21060 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21061 (linux_thread_alive): Rename TID argument to LWPID.
21062 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21063 (linux_wait_for_event): Do not use TID or check using_threads. Update
21064 call to dead_thread_notify. Call handle_extended_wait.
21065 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21066 (send_sigstop): Delete sigstop_sent.
21067 (wait_for_sigstop): Avoid TID.
21068 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21069 (linux_test_for_tracefork): New.
21070 (linux_lookup_signals): Use thread_db_active and
21071 linux_supports_tracefork_flag.
21072 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21073 * linux-low.h (get_process_thread): Avoid TID.
21074 (struct process_ifo): Move thread_known and tid to the end. Remove
21075 sigstop_sent.
21076 (linux_attach_lwp, thread_db_init): Update prototypes.
21077 * server.h (change_inferior_id): Delete prototype.
21078 (add_pid_to_list, pull_pid_from_list): New prototypes.
21079 * thread-db.c (thread_db_use_events): New.
21080 (find_first_thread): Rename to...
21081 (find_one_thread): ...this. Update callers and messages. Do not
21082 call fatal. Check thread_db_use_events. Do not call
21083 change_inferior_id or new_thread_notify.
21084 (maybe_attach_thread): Update. Do not call new_thread_notify.
21085 (thread_db_init): Set thread_db_use_events. Check use_events.
21086 * utils.c (fatal, warning): Correct message prefix.
21087
30ed0a8f
DJ
210882007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21089
21090 * Makefile.in (clean): Remove new files.
21091 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21092 (powerpc-64.o, powerpc-64.c): New rules.
21093 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21094 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21095 with SPE.
21096 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21097 SPE targets.
21098 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21099 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21100 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21101 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21102 (target_regsets): Add AltiVec and SPE register sets.
21103 * configure.ac: Check for AltiVec and SPE.
21104 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21105 (ppc_fill_vrregset, ppc_store_vrregset): New.
21106 (target_regsets): Add AltiVec register set.
21107 * configure: Regenerated.
21108
fd462a61
DJ
211092007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21110
21111 * linux-low.c (O_LARGEFILE): Define.
21112 (linux_read_memory): Use /proc/PID/mem.
21113 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21114 * configure, config.in: Regenerated.
21115
69f223ed
DJ
211162007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21117
21118 * linux-low.c (linux_wait_for_event): Do not pass signals while
21119 single-stepping.
21120
aec18585
PA
211212007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21122
21123 * win32-low.c (create_process): New.
21124 (win32_create_inferior): Use create_process instead of
21125 CreateProcess. If create_process failed retry appending an ".exe"
21126 suffix. Store the GetLastError result immediatelly after
21127 create_process calls and use it on the call to error.
21128
34d86ddd
PA
211292007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21130
21131 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21132
5a0e3bd0
JB
211332007-08-23 Joel Brobecker <brobecker@adacore.com>
21134
21135 * configure.ac: Switch license to GPLv3.
21136
f88c79e6
MS
211372007-08-01 Michael Snyder <msnyder@access-company.com>
21138
21139 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21140
6b3d9b83
PA
211412007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21142
21143 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21144 typedef.
21145 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21146 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21147 CloseToolhelp32Snapshot.
21148 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21149 CloseToolhelp32Snapshot.
21150
c588c53c
MS
211512007-07-27 Michael Snyder <michael.snyder@access-company.com>
21152
21153 * server.c (main): Check for inferior exit before main loop.
21154
aa0403d9
PA
211552007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21156
21157 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21158 instead of on tmp_desc.
21159
255e7678
DJ
211602007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21161 Daniel Jacobowitz <dan@codesourcery.com>
21162
21163 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21164 (add_thread): Minor cleanups.
21165 (clear_inferiors): Move lower in the file. Clear the DLL
21166 list.
21167 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21168 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21169 (xml_escape_text): New.
21170 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21171 for qSupported.
21172 (handle_v_cont): Report errors.
21173 (gdbserver_version): Update.
21174 (main): Correct size of own_buf. Do not report initial DLL events.
21175 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21176 (unloaded_dll, xml_escape_text): New.
21177 * win32-low.c (enum target_waitkind): Update comments.
21178 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21179 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21180 (win32_EnumProcessModules, win32_GetModuleInformation)
21181 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21182 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21183 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21184 (win32_Module32First, win32_Module32Next, load_toolhelp)
21185 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21186 (get_child_debug_event): Handle DLL events.
21187 (win32_wait): Likewise.
21188
0d37add9
DJ
211892007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21190
21191 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21192 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21193
45e2715e
PA
211942007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21195
21196 * win32-low.c (handle_output_debug_string): Ignore event if not
21197 waiting.
21198
c5674cf1
PA
211992007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21200
21201 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21202
2bbe3cc1
DJ
212032007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21204
21205 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21206
ae13219e
DJ
212072007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21208
21209 * inferiors.c (change_inferior_id): Add comment.
21210 * linux-low.c (check_removed_breakpoint): Add an early
21211 prototype. Improve debug output.
21212 (linux_attach): Doc update.
21213 (linux_detach_one_process, linux_detach): Clean up before releasing
21214 each process.
21215 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21216 * linux-low.h (struct process_info): Doc improvement.
21217 * mem-break.c (delete_all_breakpoints): New.
21218 * mem-break.h (delete_all_breakpoints): New prototype.
21219 * thread-db.c (find_first_thread): New.
21220 (thread_db_create_event): Call it instead of
21221 thread_db_find_new_threads. Clean up unused variables.
21222 (maybe_attach_thread): Remove first thread handling.
21223 (thread_db_find_new_threads): Use find_first_thread.
21224 (thread_db_get_tls_address): Likewise.
21225
4105de34
DJ
212262007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21227
21228 * thread-db.c (thread_db_find_new_threads): Add prototype.
21229 (thread_db_create_event): Check for the main thread before adding
21230 a new thread.
21231 (maybe_attach_thread): Only enable event reporting if TID == 0.
21232 (thread_db_get_tls_address): Check for new threads.
21233
2b876972
DJ
212342007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21235
21236 * linux-low.c (linux_create_inferior): Try execv before execvp.
21237 * spu-low.c (spu_create_inferior): Likewise.
21238
7a245884
DJ
212392007-06-13 Mike Frysinger <vapier@gentoo.org>
21240
21241 * linux-low.c (linux_create_inferior): Change execv to execvp.
21242 * spu-low.c (spu_create_inferior): Likewies.
21243
117ce543
DJ
212442007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21245
21246 * Makefile.in (clean): Clean new files instead of deleted ones.
21247 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21248 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21249 rules.
21250 * configure.srv: Specify XML files and new regformats for MIPS and
21251 MIPS64 GNU/Linux.
21252 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21253 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21254 an entry for the restart register.
21255 (mips_cannot_fetch_register, mips_cannot_store_register)
21256 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21257 register names to match the XML descriptions.
21258 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21259 restart register instead of $0.
21260
0e7f50da
UW
212612007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21262 Markus Deuling <deuling@de.ibm.com>
21263
21264 * remote-utils.c (decode_xfer_write): New function.
21265 * server.h (decode_xfer_write): Add prototype.
21266 * server.c (handle_query): Add PACKET_LEN argument. Support
21267 qXfer:spu:read and qXfer:spu:write packets.
21268 (main): Pass packet_len to handle_query.
21269 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21270 * target.h (target_ops): Add qxfer_spu.
21271
374c1d38
UW
212722007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21273
21274 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21275 accessing non-seekable spufs files.
21276
bb63802a
UW
212772007-05-16 Markus Deuling <deuling@de.ibm.com>
21278
889bf7c5 21279 * server.c (handle_query): Add reply for qC packet.
bb63802a 21280
7390519e
PA
212812007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21282 Leo Zayas <lerele@champenstudios@com>
21283
21284 * server.h (check_remote_input_interrupt_request): New function.
21285 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21286 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21287 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21288 (check_remote_input_interrupt_request): New function.
21289 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 21290 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
21291 winapi_GenerateConsoleCtrlEvent): New typedefs.
21292 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21293 to 250 ms.
21294 (win32_wait): Check for remote interrupt request
21295 with check_remote_input_interrupt_request.
21296 (win32_request_interrupt): New function.
21297 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21298
34b34921
PA
212992007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21300
21301 * win32-low.c (debug_registers_changed,
21302 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21303 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21304 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21305 (thread_rec): Get context using the low target.
21306 (child_add_thread): Call thread_added on the low target,
21307 which does the same thing.
21308 (regptr): Delete.
21309 (do_initial_child_stuff): Remove debug registers references.
21310 Set context using the low target. Resume threads after
21311 setting the contexts.
21312 (child_continue): Remove dead variable. Remove debug
21313 registers references.
21314 (child_fetch_inferior_registers): Go through the low target.
21315 (do_child_store_inferior_registers): Remove.
21316 (child_store_inferior_registers): Go through the low target.
21317 (win32_resume): Remove debug registers references.
21318 Set context using the low target.
21319 (handle_exception): Change return type to void. Don't record
21320 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21321 first chance exception.
889bf7c5 21322 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21323 goto loop. Always return after waiting for debug event.
21324 (win32_wait): Convert to switch statement. Handle spurious
21325 events.
21326
21327 * win32-i386-low.c (debug_registers_changed,
21328 debug_registers_used): New.
21329 (initial_stuff): Rename to ...
21330 (i386_initial_stuff): ... this. Clear debug registers
21331 state variables.
21332 (store_debug_registers): Delete.
21333 (i386_get_thread_context): New.
21334 (load_debug_registers): Delete.
21335 (i386_set_thread_context): New.
21336 (i386_thread_added): New.
21337 (single_step): Rename to ...
21338 (i386_single_step): ... this.
21339 (do_fetch_inferior_registers): Rename to ...
21340 (i386_fetch_inferior_register): ... this.
21341 (i386_store_inferior_register): New.
21342 (the_low_target): Adapt to new interface.
21343
21344 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21345 (arm_get_thread_context): New.
21346 (arm_set_thread_context): New.
21347 (regptr): New.
21348 (do_fetch_inferior_registers): Rename to ...
21349 (arm_fetch_inferior_register): ... this.
21350 (arm_store_inferior_register): New.
21351 (arm_wince_breakpoint): Reimplement as unsigned long.
21352 (arm_wince_breakpoint_len): Define.
21353 (the_low_target): Adapt to new interface.
21354
21355 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21356 load_debug_registers. Add get_thread_context, set_thread_context,
21357 thread_added and store_inferior_register. Rename
21358 fetch_inferior_registers to fetch_inferior_register.
21359 (regptr): Remove declaration.
21360
dd6953e1
PA
213612007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21362
21363 * linux-low.c (linux_detach): Change return type to int. Return 0.
21364 * spu-low.c (spu_detach): Likewise.
21365
444d6139
PA
213662007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21367
21368 * target.h (target_ops): Change return type of detach to int.
21369 Add join.
21370 (join_inferior): New.
21371 * server.c (main): Don't skip detach support on mingw32.
21372 If the inferior doesn't support detaching return error.
21373 Call join_inferior instead of using waitpid.
21374 * linux-low.c (linux_join): New.
21375 (linux_target_op): Add linux_join.
21376 * spu-low.c (spu_join): New.
21377 (spu_target_ops): Add spu_join.
21378 * win32-low.c (win32_detach): Adapt to new interface.
21379 Reopen current_process_handle before detaching. Issue a child
21380 resume before detaching.
21381 (win32_join): New.
21382 (win32_target_op): Add win32_join.
21383
1d5315fe
PA
213842007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21385
21386 * win32-low.c (win32-attach): Fix return value.
21387 * target.h (target_ops): Describe ATTACH return values.
21388
bf914831
PA
213892007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21390
21391 * win32-low.c (GETPROCADDRESS): Define.
21392 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21393 (winapi_DebugSetProcessKillOnExit): Likewise.
21394 (win32_create_inferior): Force usage of ansi CreateProcessA.
21395 (win32_attach): Use GETPROCADDRESS.
21396 (win32_detach): Likewise.
21397
f72f3e60
PA
213982007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21399
21400 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21401
ed50f18f
PA
214022007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21403
21404 * win32-low.c: Commit leftover changes from 2007-03-29.
21405
0c2ead7e
DJ
214062007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21407
21408 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21409 fields short instead of int. Add explicit padding.
21410 (i387_cache_to_fsave): Remove unnecessary casts.
21411 (i387_fsave_to_cache): Doc fix.
21412 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21413
73725ff3
DJ
214142007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21415
21416 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21417 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21418
d99f33d8
PA
214192007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21420
21421 * configure.srv (arm*-*-mingw32ce*): Move near the other
21422 arm targets.
21423
68070c10
PA
214242007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21425
2482afc6 21426 * configure.ac: Add errno checking.
68070c10
PA
21427 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21428 sys/file.h and malloc.h.
21429 (AC_CHECK_DECLS): Add perror.
21430 (srv_mingwce): Handle.
2482afc6 21431 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21432 win32-i386-low.o to srv_tgtobj.
21433 (i[34567]86-*-mingw*): Likewise.
21434 (arm*-*-mingw32ce*): Add case.
21435 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21436 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21437 [__MINGW32CE__] (strerror): New function.
21438 [__MINGW32CE__] (errno): Define to GetLastError.
21439 [__MINGW32CE__] (COUNTOF): New macro.
21440 (remote_open): Remove extra close call.
21441 * mem-break.c (delete_breakpoint_at): New function.
21442 * mem-break.h (delete_breakpoint_at): Declare.
21443 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21444 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21445 [USE_WIN32API] (read, write): Add char* casts.
21446 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21447 * server.h: Include wincecompat.h on Windows CE.
21448 [HAVE_ERRNO_H]: Check.
21449 (perror): Declare if not declared.
21450 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21451 (perror_with_name): Remove errno declaration.
21452 * wincecompat.h: New.
21453 * wincecompat.c: New.
21454 * win32-low.h: New.
21455 * win32-arm-low.c: New.
21456 * win32-i386-low.c: New.
21457 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21458 (OUTMSG2): Make it safe.
21459 (_T): New macro.
21460 (COUNTOF): New macro.
21461 (NUM_REGS): Get it from the low target.
21462 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21463 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21464 (thread_rec): Let low target handle debug registers.
21465 (child_add_thread): Likewise.
21466 (child_init_thread_list): Likewise.
21467 (continue_one_thread): Likewise.
21468 (regptr): New.
21469 (do_child_fetch_inferior_registers): Move to ...
21470 * win32-i386-low.c: ... here, and rename to ...
21471 (do_fetch_inferior_registers): ... this.
889bf7c5 21472 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21473 Go through the low target.
21474 (do_child_store_inferior_registers): Use regptr.
21475 (strwinerror): New function.
21476 (win32_create_inferior): Handle Windows CE.
21477 Use strwinerror instead of strerror on Windows error
21478 codes. Add program to the error output.
21479 Don't close the main thread handle on Windows CE.
21480 (win32_attach): Use coredll.dll on Windows CE.
21481 (win32_kill): Close current process and current
21482 thread handles.
21483 (win32_detach): Use coredll.dll on Windows CE.
21484 (win32_resume): Let low target handle debug registers, and
21485 step request.
21486 (handle_exception): Add/Remove initial breakpoint. Avoid
21487 non-existant WSTOPSIG on Windows CE.
21488 (win32_read_inferior_memory): Cast to remove warning.
21489 (win32_arch_string): Go through the low target.
21490 (initialize_low): Call set_breakpoint_data with the low
21491 target's breakpoint.
21492 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21493 FOP_REGNUM, mappings): Move to ...
21494 * win32-i386-low.c: ... here.
21495 * win32-low.c (win32_thread_info): Move to ...
21496 * win32-low.h: ... here.
21497 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21498 win32-arm-low.c and wincecompat.c.
21499 (all:): Add $EXEEXT.
21500 (install-only:): Likewise.
21501 (gdbserver:): Likewise.
21502 (gdbreplay:): Likewise.
21503 * config.in: Regenerate.
21504 * configure: Regenerate.
21505
41093d81
PA
215062007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21507
21508 * win32-low.c: Rename typedef thread_info to
21509 win32_thread_info throughout.
21510
544afa54
PA
215112007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21512
21513 * win32-i386-low.c: Rename to ...
21514 * win32-low.c: ... this.
21515 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21516 * Makefile.in: Likewise.
21517
bce7165d
PA
215182007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21519
21520 * remote-utils.c (monitor_output): Constify msg parameter.
21521 * server.h (monitor_output): Likewise.
21522 * win32-i386-low.c (handle_output_debug_string): New.
21523 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21524 handle_output_debug_string.
21525 (get_child_debug_event): Likewise.
21526
506c7aa0
DJ
215272007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21528
21529 * server.c (main): Correct strtoul check.
21530
42c81e2a
DJ
215312007-03-27 Jon Ringle <jon@ringle.org>
21532
21533 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21534
9453113a
DJ
215352007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21536
21537 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21538
64a69107
DJ
215392007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21540
21541 * terminal.h: Check HAVE_SGTTY_H.
21542
215432007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21544
21545 * remote-utils.c (remote_open): Print out the assigned port number.
21546
c74d0ad8
DJ
215472007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21548
21549 * remote-utils.c (monitor_output): New function.
21550 * server.c (debug_threads): Define here.
21551 (monitor_show_help): New function.
21552 (handle_query): Handle qRcmd.
21553 (main): Do not handle 'd' packet.
21554 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21555 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21556 of debug_threads.
21557
de7c3b4a
PA
215582007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21559
21560 * Makefile.in (EXEEXT): New.
21561 (clean): Use $(EXEEXT).
21562
ef57601b
PA
215632007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21564
21565 * target.h (target_ops): Rename send_signal to request_interrupt,
21566 and remove enum target_signal parameter.
21567 * linux-low.c (linux_request_interrupt): Rename from
21568 linux_send_signal, and always send SIGINT.
21569 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21570 and always send SIGINT.
21571 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21572 of send_signal.
21573 (input_interrupt): Likewise.
21574
820f2bda
PA
215752007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21576
21577 * server.c (get_features_xml): Check if target implemented
21578 arch_string.
21579 * win32-i386-low.c (win32_arch_string): New.
21580 (win32_target_ops): Add win32_arch_string as arch_string member.
21581
ab39bf24
UW
215822007-02-22 Markus Deuling <deuling@de.ibm.com>
21583
21584 * spu-low.c (spu_arch_string): New.
21585 (spu_target_ops): Add spu_arch_string.
21586
61ff6e04
DJ
215872007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21588
21589 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21590 * configure.ac: Do not check for terminal.h.
21591 * configure, config.in: Regenerated.
21592
fb1e4ffc
DJ
215932007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21594
21595 * Makefile.in (OBS): Add $(XML_BUILTIN).
21596 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21597 (clean): Update.
21598 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21599 (arm-with-iwmmxt.c): New.
21600 * config.in, configure: Regenerate.
21601 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21602 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21603 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21604 (arm*-*-linux*): Add iWMMXt and regset support.
21605 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21606 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21607 (arm_store_wmmxregset, target_regsets): New.
21608 * server.c (get_features_xml): Take annex argument. Check builtin
21609 XML documents.
21610 (handle_query): Handle multiple annexes.
21611
0f48aa01
DJ
216122007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21613
21614 * remote-utils.c [USE_WIN32API] (read, write): Define.
21615 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21616 write.
21617
23181151
DJ
216182007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21619
21620 * linux-i386-low.c (the_low_target): Set arch_string.
21621 * linux-x86-64-low.c (the_low_target): Likewise.
21622 * linux-low.c (linux_arch_string): New.
21623 (linux_target_ops): Add it.
21624 * linux-low.h (struct linux_target_ops): Add arch_string.
21625 * server.c (write_qxfer_response): Use const void * for DATA.
21626 (get_features_xml): New.
21627 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21628 * target.h (struct target_ops): Add arch_string method.
21629
9d606399
DJ
216302007-01-03 Denis Pilat <denis.pilat@st.com>
21631 Daniel Jacobowitz <dan@codesourcery.com>
21632
21633 * linux-low.c (linux_kill): Handle being called with no threads.
21634 * win32-i386-low.c (win32_kill): Likewise.
21635 (get_child_debug_event): Clear current_process_handle.
21636
216372006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21638 Daniel Jacobowitz <dan@codesourcery.com>
21639
21640 * remote-utils.c (remote_open): Check the type of specified
21641 serial port devices before opening them.
21642 * server.c (main): Kill the inferior if an error occurs during
21643 the first remote_open.
21644
a5e13d24
DJ
216452006-12-05 Markus Deuling <deuling@de.ibm.com>
21646
21647 * README: Update supported targets.
21648
186947f7
DJ
216492006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21650
21651 * Makefile.in (clean): Remove reg-mips64.c.
21652 (reg-mips64.c, reg-mips64.o): New rules.
21653 * configure.srv: Handle mips64. Include regset support for mips.
21654 * linux-mips-low.c (union mips_register): New.
21655 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21656 (mips_breakpoint, mips_breakpoint_at): Use int.
21657 (mips_collect_register, mips_supply_register)
21658 (mips_collect_register_32bit, mips_supply_register_32bit)
21659 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21660 (mips_store_fpregset, target_regsets): New.
21661 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21662
a13e2c95
UW
216632006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21664
21665 * configure.srv: Add target "spu*-*-*".
21666 * Makefile.in (clean): Remove reg-spu.c.
21667 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21668 * spu-low.c: New file.
21669
cb7283db
DJ
216702006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21671
21672 * configure.ac: Correct td_thr_tls_get_addr test.
21673 * configure: Regenerated.
21674
89be2091
DJ
216752006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21676
21677 * linux-low.c (linux_wait_for_event): Reformat. Use the
21678 pass_signals array.
21679 * remote-utils.c (decode_address_to_semicolon): New.
21680 * server.c (pass_signals, handle_general_set): New.
21681 (handle_query): Mention QPassSignals for qSupported.
21682 (main): Call handle_general_set.
21683 * server.h (pass_signals, decode_address_to_semicolon): New.
21684
000ef4f0
DJ
216852006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21686
21687 * server.c (handle_query): Correct error handling for read_auxv.
21688
b7149293
UW
216892005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21690
21691 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21692 and srv_linux_thread_db to yes.
21693 * linux-s390-low.c (s390_fill_gregset): New function.
21694 (target_regsets): Define data structure.
21695
dae5f5cf
DJ
216962006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21697
21698 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21699 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21700 * config.in, configure: Regenerated.
21701 * inferiors.c (gdb_id_to_thread): New function.
21702 (gdb_id_to_thread_id): Use it.
21703 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21704 * linux-low.h (struct process_info): Add th member.
21705 (thread_db_get_tls_address): New prototype.
21706 * remote-utils.c (decode_address): Make non-static.
21707 * server.c (handle_query): Handle qGetTLSAddr.
21708 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21709 * target.h (struct target_ops): Add get_tls_address.
21710 * thread-db.c (maybe_attach_thread): Save the thread handle.
21711 (thread_db_get_tls_address): New.
21712
32ca6d61
DJ
217132006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21714
21715 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21716 (linux_resume_one_process): Take a siginfo_t *. Update all
21717 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21718 (struct pending_signals): Add a siginfo_t.
21719 (linux_wait_for_process): Always set last_status.
21720 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21721 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21722 * linux-low.h (struct process_info): Add last_status.
21723
5ffff7c1
DJ
217242006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21725
21726 * remote-utils.c (try_rle): New function.
21727 (putpkt_binary): Use it.
21728
8695c747
DJ
217292006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21730
21731 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21732 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21733 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21734 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21735 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21736 point registers.
21737
290fadea
RS
217382006-08-08 Richard Sandiford <richard@codesourcery.com>
21739
21740 * server.c (terminal_fd): New variable.
21741 (old_foreground_pgrp): Likewise.
21742 (restore_old_foreground_pgrp): New function.
21743 (start_inferior): Record the terminal file descriptor in terminal_fd
21744 and its original foreground group in old_foreground_pgrp. Register
21745 restore_old_foreground_pgrp with atexit().
21746
9f2e1e63
DJ
217472006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21748
21749 * server.c (handle_query): Correct qPart to qXfer.
21750
b80864fb
DJ
217512006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21752
21753 * configure.ac: Check for more headers which are missing on
21754 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21755 * configure.srv: Add Cygwin and mingw32.
21756 * remote-utils.c: Don't include headers unconditionally which
21757 are missing on mingw32. Include <winsock.h> for mingw32.
21758 (remote_open): Adjust for mingw32 support. Flush
21759 standard error after writing to it.
21760 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21761 (unblock_async_io, enable_async_io, disable_async_io)
21762 (readchar, getpkt): Update for Winsock support.
21763 (prepare_resume_reply): Expect a protocol signal number.
21764 * server.c: Disable <sys/wait.h> on mingw32.
21765 (start_inferior): Adjust for mingw32 support. Flush
21766 standard error after writing to it.
21767 (attach_inferior): Likewise. Use protocol signal
21768 numbers.
21769 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21770 and names.
21771 * win32-i386-low.c: New file.
21772 * Makefile.in (XM_CLIBS): Set.
21773 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21774 (win32-i386-low.o): New dependency rule.
21775 * linux-low.c (linux_wait): Use target signal numbers.
21776 * target.h (struct target_ops): Doc fix.
21777 * server.h (target_signal_to_name): New prototype.
21778 * gdbreplay.c: Don't include headers unconditionally which
21779 are missing on mingw32. Include <winsock.h> for mingw32.
21780 (remote_close, remote_open): Adjust for Winsock support.
21781 * configure, config.in: Regenerated.
21782
0876f84a
DJ
217832006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21784
21785 * server.c (decode_xfer_read, write_qxfer_response): New.
21786 (handle_query): Take a packet length argument. Handle
21787 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21788 the qSupported response.
21789 (main): Update call to handle_query.
21790
01f9e8fa
DJ
217912006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21792
21793 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21794 (putpkt_binary): Renamed from putpkt and adjusted for binary
21795 data.
21796 (putpkt): New wrapper for putpkt_binary.
21797 (readchar): Don't mask off the high bit.
21798 (decode_X_packet): New function.
21799 * server.c (main): Call putpkt_binary if a handler sets the packet
21800 length. Save the length of the incoming packet. Handle 'X'.
21801 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21802
be2a5f71
DJ
218032006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21804
21805 * server.c (handle_query): Handle qSupported.
21806
ea025f5f
DJ
218072006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21808
21809 * remote-utils.c (all_symbols_looked_up): New variable.
21810 (look_up_one_symbol): Check it.
21811 * server.h (look_up_one_symbol): New declaration.
21812 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21813
9308fc88
DJ
218142006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21815
21816 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21817 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21818 (PTRACE_GET_THREAD_AREA): Define.
21819 (ps_get_thread_area): New function.
21820
52fb6437
NS
218212006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21822
21823 * configure.srv (m68k*-*-uclinux*): New target.
21824 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21825 (linux_resume_one_process): Remove extraneous cast.
21826 (linux_read_offsets): New.
21827 (linux_target_op): Add linux_read_offsets on mmuless systems.
21828 * server.c (handle_query): Add qOffsets logic.
21829 * target.h (struct target_ops): Add read_offsets.
21830
21b0f40c
DJ
218312006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21832
21833 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21834 (PTRACE_GET_THREAD_AREA): Define.
21835 (ps_get_thread_area): New function.
21836 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21837 (linux-x86-64-low.o): Update.
21838
0050a760
DJ
218392006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21840
21841 * configure.ac: Remove checks for prfpregset_t.
21842 * gdb_proc_service.h: New file.
21843 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21844 new "gdb_proc_service.h".
21845 * proc-service.c: Likewise.
21846 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21847 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21848 * Makefile.in (gdb_proc_service_h): Updated.
21849 * configure, config.in: Regenerated.
21850
b92a518e
DJ
218512006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21852
21853 * remote-utils.c (prepare_resume_reply): Move declaration
21854 of gdb_id_from_wait to the top of the block.
21855
545587ee
DJ
218562006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21857
21858 * linux-low.c (regsets_store_inferior_registers): Read the regset
21859 from the target before filling it.
21860
9db87ebd
DJ
218612006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21862
21863 * server.c (attach_inferior): Return SIGTRAP for a successful
21864 attach.
21865
dd24457d
DJ
218662006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21867
21868 * Makefile.in (OBS): Add version.o.
21869 (STAGESTUFF): Delete.
21870 (version.o): Add dependencies.
21871 (version.c): Replace rule.
21872 (clean): Remove version.c.
21873 * server.c (gdbserver_version): New.
21874 (gdbserver_usage): Use printf.
21875 (main): Handle --version and --help.
21876 * server.h (version, host_name): Add declarations.
21877
6f0f660e
EZ
218782005-12-23 Eli Zaretskii <eliz@gnu.org>
21879
889bf7c5
PA
21880 * linux-arm-low.c:
21881 * linux-arm-low.c:
21882 * inferiors.c:
21883 * i387-fp.h:
21884 * i387-fp.c:
21885 * gdbreplay.c:
21886 * regcache.c:
21887 * proc-service.c:
21888 * mem-break.h:
21889 * mem-break.c:
21890 * linux-x86-64-low.c:
21891 * linux-sh-low.c:
21892 * linux-s390-low.c:
21893 * linux-ppc64-low.c:
21894 * linux-ppc-low.c:
21895 * linux-mips-low.c:
21896 * linux-m68k-low.c:
21897 * linux-m32r-low.c:
21898 * linux-low.h:
21899 * linux-low.c:
21900 * linux-ia64-low.c:
21901 * linux-i386-low.c:
21902 * linux-crisv32-low.c:
21903 * thread-db.c:
21904 * terminal.h:
21905 * target.h:
21906 * target.c:
21907 * server.h:
21908 * server.c:
21909 * remote-utils.c:
21910 * regcache.h:
21911 * utils.c:
21912 * Makefile.in:
21913 * configure.ac:
6f0f660e
EZ
21914 * gdbserver.1: Add (C) after Copyright. Update the FSF
21915 address.
21916
9d1fb177
DJ
219172005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21918
21919 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21920 (arm_breakpoint_at): Recognize both breakpoints.
21921 (the_low_target): Use the correct breakpoint instruction.
21922
011a70c2
DJ
219232005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21924
21925 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21926 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21927 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21928 (the_low_target): Update.
21929
7fb85e41
AS
219302005-10-25 Andreas Schwab <schwab@suse.de>
21931
21932 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21933
21934 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21935 (ia64_num_regs): Reduce to 462.
21936
3db0444b
DJ
219372005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21938
21939 * acinclude.m4: Correct quoting.
21940 * aclocal.m4: Regenerated.
21941
21942 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21943 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21944 (thread_db_init): Call thread_db_err_str.
21945 * configure.ac: Check for TD_VERSION.
21946 * config.in, configure: Regenerated.
21947
bee0189a
DJ
219482005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21949
21950 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21951
e9d25b98
DJ
219522005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21953
21954 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21955 is not available. Define HAVE_PTRACE_GETREGS if it is.
21956 * config.in, configure: Regenerated.
21957 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21958 * linux-i386-low.c, linux-m68k-low.c: Update to use
21959 HAVE_PTRACE_GETREGS.
21960 * linux-low.c (regsets_fetch_inferior_registers)
21961 (regsets_store_inferior_registers): Only return 0 if we processed
21962 GENERAL_REGS.
21963 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21964 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21965
a06660f7
DJ
219662005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21967
21968 * inferiors.c (struct thread_info): Add gdb_id.
21969 (add_thread): Add gdb_id argument.
21970 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21971 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21972 calls to add_thread.
21973 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21974 * server.c (handle_query): Use thread_to_gdb_id.
21975 (handle_v_cont, main): Use gdb_id_to_thread_id.
21976 * server.h (add_thread): Update prototype.
21977 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21978 prototypes.
21979
5a1f5858
DJ
219802005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21981
21982 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21983 left-padded registers.
21984 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21985 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21986
e122f1f5
SE
219872005-07-01 Steve Ellcey <sje@cup.hp.com>
21988
21989 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21990 * configure: Regenerate.
21991 * config.in: Regenerate.
21992 * server.h (NEED_DECLARATION_STRERROR):
21993 Replace with !HAVE_DECL_STRERROR.
21994
d592fa2f
DJ
219952005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21996
21997 * linux-low.c (linux_wait, linux_send_signal): Don't test
21998 an unsigned long variable for > 0 if it could be MAX_ULONG.
21999 * server.c (myresume): Likewise.
22000 * target.c (set_desired_inferior): Likewise.
22001
ccbd4912
MK
220022005-06-13 Mark Kettenis <kettenis@gnu.org>
22003
22004 * configure.ac: Simplify and improve check for socklen_t.
22005 * configure, config.in: Regenerate.
22006
f450004a
DJ
220072005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
22008
22009 * acconfig.h: Remove.
22010 * configure.ac: Add a test for socklen_t. Use three-argument
22011 AC_DEFINE throughout.
22012 * config.in: Regenerated using autoheader 2.59.
22013 * configure: Regenerated.
22014
22015 * gdbreplay.c (socklen_t): Provide a default.
22016 (remote_open): Use socklen_t.
22017 * remote-utils.c (socklen_t): Provide a default.
22018 (remote_open): Use socklen_t.
22019 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
22020 unsigned char.
22021
22022 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22023 char for buffers.
22024 * linux-low.c (linux_read_memory, linux_write_memory)
22025 (linux_read_auxv): Likewise.
22026 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22027 (check_mem_write): Likewise.
22028 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22029 Likewise.
22030 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22031 (registers_from_string, register_data): Likewise.
22032 * server.c (handle_query, main): Likewise.
22033 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22034 (decode_M_packet): Likewise.
22035 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22036 * target.h (struct target_ops): Update read_memory, write_memory,
22037 and read_auxv.
22038 (read_inferior_memory, write_inferior_memory): Update.
22039 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22040 to unsigned char *.
22041 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22042 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22043 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22044 linux-s390-low.c, linux-sh-low.c: Update for changes in
22045 read_inferior_memory and the_low_target->breakpoint.
22046
eee84df1
DJ
220472005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22048
22049 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22050 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22051 * configure.srv: Add powerpc64-*-linux*.
22052 * linux-ppc64-low.c: New file.
22053
45b134e5
OF
220542005-05-23 Orjan Friberg <orjanf@axis.com>
22055
22056 * linux-cris-low.c: New file with support for CRIS.
22057 * linux-crisv32-low.c: Ditto for CRISv32.
22058 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22059 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 22060 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
22061 reg-crisv32.o, and reg-crisv32.c to make rules.
22062 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22063 recognized targets.
22064
48d93c75
UW
220652005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22066
22067 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22068 of sizeof (PTRACE_XFER_TYPE).
22069 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22070
e013ee27
OF
220712005-05-12 Orjan Friberg <orjanf@axis.com>
22072
889bf7c5 22073 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
22074 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22075 pointers for hardware watchpoint support.
22076 * linux-low.h (struct linux_target_ops): Ditto.
22077 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22078 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22079 to linux_target_ops.
22080 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22081 reply packet.
22082 * server.c (main): Recognize 'Z' and 'z' packets.
22083
b0ded00b
UW
220842005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22085
22086 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22087 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22088 (the_low_target): Add new members.
22089
8643e2ad
DJ
220902005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22091
22092 * proc-service.c (ps_lgetregs): Search all_processes instead of
22093 all_threads.
22094
fc620387
DJ
220952005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22096
22097 * server.c (start_inferior): Change return type to int.
22098 (attach_inferior): Change sigptr to int *.
22099 (handle_v_cont, handle_v_requests): Change signal to int *.
22100 (main): Change signal to int.
22101
221022005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
22103
22104 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22105 * configure.srv: Add m32r*-*-linux*.
22106 * linux-m32r-low.c: New file.
22107
e0e76420
DJ
221082005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22109
22110 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22111
a1928bad
DJ
221122005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22113
22114 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22115 Take unsigned long arguments for PIDs.
22116 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22117 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22118 (wait_for_sigstop, linux_resume_one_process)
22119 (regsets_fetch_inferior_registers, linux_send_signal)
22120 (linux_read_auxv): Likewise. Update the types of variables holding
22121 PIDs. Update format string specifiers.
22122 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22123 * remote-utils.c (prepare_resume_reply): Likewise.
22124 * server.c (cont_thread, general_thread, step_thread)
22125 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22126 unsigned long.
22127 (handle_query): Update format specifiers.
22128 (handle_v_cont, main): Use strtoul for thread IDs.
22129 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22130 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22131 (general_thread, step_thread, thread_from_wait)
22132 (old_thread_from_wait): Update.
22133 * target.h (struct thread_resume): Use unsigned long for THREAD.
22134 (struct target_ops): Use unsigned long for arguments to attach and
22135 thread_alive.
22136
dcdb98d2
DJ
221372005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22138
22139 * acinclude.m4: Include bfd/bfd.m4 directly.
22140 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22141 <agriffis@toolchain.org>.
22142 * aclocal.m4, configure: Regenerated.
22143
bec39cab
AC
221442005-01-07 Andrew Cagney <cagney@gnu.org>
22145
22146 * configure.ac: Rename configure.in, require autoconf 2.59.
22147 * configure: Re-generate.
22148
434c4c77
DJ
221492004-12-08 Daniel Jacobowitz <dan@debian.org>
22150
22151 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22152 LIBS when finished.
22153 * aclocal.m4: Regenerated.
22154 * configure: Regenerated.
22155
db1d3e1b
AS
221562004-11-21 Andreas Schwab <schwab@suse.de>
22157
22158 * linux-m68k-low.c (m68k_num_gregs): Define.
22159 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22160 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22161 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22162 (m68k_breakpoint_at): New. Add to the_low_target.
22163
22164 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22165 srv_linux_thread_db to yes.
22166
43360365
JB
221672004-10-20 Joel Brobecker <brobecker@gnat.com>
22168
22169 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22170 (ARCH_SET_FS): Likewise.
22171 (ARCH_GET_FS): Likewise.
22172 (ARCH_GET_GS): Likewise.
22173
fd500816
DJ
221742004-10-16 Daniel Jacobowitz <dan@debian.org>
22175
22176 * linux-i386-low.c (ps_get_thread_area): New.
22177 * linux-x86-64-low.c (ps_get_thread_area): New.
22178 * linux-low.c: Include <sys/syscall.h>.
22179 (linux_kill_one_process): Don't kill the first thread here.
22180 (linux_kill): Kill the first thread here.
22181 (kill_lwp): New function.
22182 (send_sigstop, linux_send_signal): Use it.
22183 * proc-service.c: Clean up #ifdefs.
22184 (fpregset_info): Delete.
22185 (ps_lgetregs): Update and enable implementation.
22186 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22187 implementations.
22188 * remote-utils.c (struct sym_cache, symbol_cache): New.
22189 (input_interrupt): Print a clearer message.
22190 (async_io_enabled): New variable.
22191 (enable_async_io, disable_async_io): Use it. Update comments.
22192 (look_up_one_symbol): Use the symbol cache.
22193 * thread-db.c (thread_db_look_up_symbols): New function.
22194 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22195
f6de3c42
DJ
221962004-10-16 Daniel Jacobowitz <dan@debian.org>
22197
22198 * configure.in: Test for -rdynamic.
22199 * configure: Regenerated.
22200 * Makefile (INTERNAL_LDFLAGS): New.
22201 (gdbserver, gdbreplay): Use it.
22202
2c0fc042
AC
222032004-09-02 Andrew Cagney <cagney@gnu.org>
22204
22205 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22206
075b3282
DJ
222072004-03-23 Daniel Jacobowitz <drow@mvista.com>
22208
22209 * linux-low.c (linux_wait): Clear all_processes list also.
22210
fa6a77dc
DJ
222112004-03-12 Daniel Jacobowitz <drow@mvista.com>
22212
22213 * linux-low.c: Include <errno.h>. Remove extern declaration of
22214 errno.
22215
6d782a97
DJ
222162004-03-12 Daniel Jacobowitz <drow@mvista.com>
22217
22218 * gdbreplay.c, server.h, utils.c: Update copyright years.
22219
3a7fb99b
DJ
222202004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22221
22222 * server.c (main): Print child status or termination signal from
22223 variable 'signal', not 'sig'.
22224
c3e735a6
DJ
222252004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22226
22227 * linux-low.c (linux_read_memory): Change return type to
22228 int. Check for and return error from ptrace().
22229 * target.c (read_inferior_memory): Change return type to int. Pass
22230 back return status from the_target->read_memory().
22231 * target.h (struct target_ops): Adapt *read_memory() prototype.
22232 Update comment.
22233 (read_inferior_memory): Adapt prototype.
22234 * server.c (main): Return an error packet if
22235 read_inferior_memory() returns an error.
22236
a59d1c82
DJ
222372004-03-04 Daniel Jacobowitz <drow@mvista.com>
22238
22239 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22240 Unify with other clean targets.
22241
dc3f8883
DJ
222422004-02-29 Daniel Jacobowitz <drow@mvista.com>
22243
22244 * server.c (handle_v_cont): Call set_desired_inferior.
22245
89a208da
DJ
222462004-02-29 Daniel Jacobowitz <drow@mvista.com>
22247
22248 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22249
62ea82f5
DJ
222502004-02-29 Daniel Jacobowitz <drow@mvista.com>
22251
22252 * linux-low.c (linux_wait): Unblock async I/O.
22253 (linux_resume): Block and enable async I/O.
22254 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22255 * server.h (block_async_io, unblock_async_io): Add prototypes.
22256
6910d122
DJ
222572004-02-29 Daniel Jacobowitz <drow@mvista.com>
22258
22259 * remote-utils.c (remote_open): Print a status notice after
22260 opening a TCP port.
22261 * server.c (attach_inferior): Print a status notice after
22262 attaching.
22263
222642004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
22265
22266 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22267
c89dc5d4
DJ
222682004-02-26 Daniel Jacobowitz <drow@mvista.com>
22269
22270 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22271 error packet.
22272 * server.c, target.h: Update copyright years.
22273
4b8dad4a
RM
222742004-02-25 Roland McGrath <roland@redhat.com>
22275
22276 * target.h (struct target_ops): New member `read_auxv'.
22277 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22278 * linux-low.c (linux_read_auxv): New function.
22279 (linux_target_ops): Initialize `read_auxv' member to that.
22280
d7446758
JB
222812004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22282
22283 Committed by Jim Blandy <jimb@redhat.com>.
22284
22285 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 22286 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
22287 instead of GPR_SIZE to distiguish s390 and s390x targets.
22288
5544ad89
DJ
222892004-01-31 Daniel Jacobowitz <drow@mvista.com>
22290
22291 * linux-low.c: Update copyright year.
22292 (check_removed_breakpoint): Clear pending_is_breakpoint.
22293 (linux_set_resume_request, linux_queue_one_thread)
22294 (resume_status_pending_p): New functions.
22295 (linux_continue_one_thread): Use process->resume.
22296 (linux_resume): Only resume threads if there are no pending events.
22297 * linux-low.h (struct process_info): Add resume request
22298 pointer.
22299
2a68b70e
DJ
223002004-01-30 Daniel Jacobowitz <drow@mvista.com>
22301
22302 * regcache.c (new_register_cache): Clear the allocated register
22303 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22304
64386c31
DJ
223052003-10-13 Daniel Jacobowitz <drow@mvista.com>
22306
22307 * linux-low.c (linux_resume): Take a struct thread_resume *
22308 argument.
22309 (linux_wait): Update call.
22310 (resume_ptr): New static variable.
22311 (linux_continue_one_thread): Renamed from
22312 linux_continue_one_process. Use resume_ptr.
22313 (linux_resume): Use linux_continue_one_thread.
22314 * server.c (handle_v_cont, handle_v_requests): New functions.
22315 (myresume): New function.
22316 (main): Handle 'v' case.
22317 * target.h (struct thread_resume): New type.
22318 (struct target_ops): Change argument of "resume" to struct
22319 thread_resume *.
22320 (myresume): Delete macro.
22321
c938e9b0
L
223222003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22323
22324 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22325 (uninstall): Support DESTDIR.
22326
7f313d07
BC
22327Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22328
22329 * configure.srv: Add xscale*linux copy of arm*linux entry.
22330
3b2fc2ea
DJ
223312003-07-24 Daniel Jacobowitz <drow@mvista.com>
22332
22333 * linux-arm-low.c (arm_reinsert_addr): New function.
22334 (the_low_target): Add arm_reinsert_addr.
22335
1c0a559e
MK
223362003-07-08 Mark Kettenis <kettenis@gnu.org>
22337
22338 * mem-break.c: Remove whitespace at end of file.
22339
43d5792c
DJ
223402003-06-28 Daniel Jacobowitz <drow@mvista.com>
22341
22342 * configure.in: Check whether we need to prototype strerror.
22343 * server.h: Optionally prototype strerror.
22344 * gdbreplay.c (perror_with_name): Use strerror.
22345 * linux-low.c (linux_attach_lwp): Use strerror.
22346 * utils.c (perror_with_name): Use strerror.
22347 * config.in, configure: Regenerated.
22348
c8a86edf
DJ
223492003-06-28 Daniel Jacobowitz <drow@mvista.com>
22350
22351 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22352 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22353
73d37363
DJ
223542003-06-20 Daniel Jacobowitz <drow@mvista.com>
22355
22356 * Makefile.in (SFILES): Update.
22357 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22358 low-sun3.c: Remove files.
22359
6ad8ae5c
DJ
223602003-06-17 Daniel Jacobowitz <drow@mvista.com>
22361
22362 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22363 (linux_detach_one_process, linux_detach): New functions.
22364 (linux_target_ops): Add linux_detach.
22365 * server.c (main): Handle 'D' packet.
22366 * target.h (struct target_ops): Add "detach" member.
22367 (detach_inferior): Define.
22368
1581182a
MK
223692003-06-13 Mark Kettenis <kettenis@gnu.org>
22370
22371 From Kelley Cook <kelleycook@wideopenwest.com>:
22372 * configure.srv: Accept i[34567]86 variants.
22373
e5379b03
DJ
223742003-06-05 Daniel Jacobowitz <drow@mvista.com>
22375
22376 * linux-low.c (linux_wait_for_event): Correct comment typos.
22377 (linux_resume_one_process): Call check_removed_breakpoint.
22378 (linux_send_signal): New function.
22379 (linux_target_ops): Add linux_send_signal.
22380 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22381 of kill.
22382 * target.h (struct target_ops): Add send_signal.
22383
2ff29de4
JB
223842003-05-29 Jim Blandy <jimb@redhat.com>
22385
22386 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22387 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22388 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22389 away part of the register's value.
22390
254787d4
DJ
223912003-03-26 Daniel Jacobowitz <drow@mvista.com>
22392
22393 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22394 (linux_wait_for_event, linux_init_signals): Likewise.
22395
94e10508
DJ
223962003-03-17 Daniel Jacobowitz <drow@mvista.com>
22397
22398 * configure.in: Check for stdlib.h.
22399 * configure: Regenerated.
22400 * config.in: Regenerated.
22401
4c0711e0
DJ
224022003-01-04 Andreas Schwab <schwab@suse.de>
22403
22404 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22405
ef66e766
AC
224062003-01-02 Andrew Cagney <ac131313@redhat.com>
22407
22408 * Makefile.in: Remove obsolete code.
22409
a1358604
DJ
224102002-11-20 Daniel Jacobowitz <drow@mvista.com>
22411
22412 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22413 defined(PT_FPR0_HI).
22414
23ce3b1c
DJ
224152002-11-17 Stuart Hughes <seh@zee2.com>
22416
22417 * linux-arm-low.c (arm_num_regs): Increase.
22418 (arm_regmap): Include status register.
22419
224202002-11-17 Daniel Jacobowitz <drow@mvista.com>
22421
22422 * linux-low.c (register_addr): Remove incorrect -1 check.
22423
a9fa9f7d
DJ
224242002-08-29 Daniel Jacobowitz <drow@mvista.com>
22425
22426 * linux-low.c (linux_create_inferior): Call setpgid. Return
22427 the new PID.
22428 (unstopped_p, linux_signal_pid): Remove.
22429 (linux_target_ops): Remove linux_signal_pid.
22430 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22431 global instead of target method.
22432 * target.h (struct target_ops): Remove signal_pid. Update comment
22433 for create_inferior.
22434 * server.c (signal_pid): New variable.
22435 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22436 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22437 (attach_inferior): Set signal_pid.
22438
17574093
DJ
224392002-08-23 Daniel Jacobowitz <drow@mvista.com>
22440
22441 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22442
224432002-08-20 Jim Blandy <jimb@redhat.com>
22444
22445 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22446 default for this.
22447
224482002-08-01 Andrew Cagney <cagney@redhat.com>
22449
22450 * Makefile.in: Make chill references obsolete.
22451
224522002-07-24 Kevin Buettner <kevinb@redhat.com>
22453
22454 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22455 * configure: Regenerate.
22456 * config.in: Regenerate.
22457
224582002-07-09 David O'Brien <obrien@FreeBSD.org>
22459
22460 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22461 (perror_with_name, remote_close, remote_open, expect, play): Static.
22462
224632002-07-04 Michal Ludvig <mludvig@suse.cz>
22464
4b8dad4a 22465 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22466 byte offsets instead of an array of indexes.
22467 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22468
224692002-06-13 Daniel Jacobowitz <drow@mvista.com>
22470
22471 * regcache.c: Add comment.
22472
224732002-06-11 Daniel Jacobowitz <drow@mvista.com>
22474
22475 * thread-db.c: New file.
22476 * proc-service.c: New file.
22477 * acinclude.m4: New file.
22478 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22479 proc-service.o, and thread-db.o.
22480 (linux-low.o): Add USE_THREAD_DB.
22481 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22482 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22483 * aclocal.m4: Regenerated.
22484 * config.in: Regenerated.
22485 * configure: Regenerated.
22486 * configure.in: Check for proc_service.h, sys/procfs.h,
22487 thread_db.h, and linux/elf.h headrs.
22488 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22489 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22490 Check for -lthread_db and thread support.
22491 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22492 PowerPC, and SuperH.
22493 * i387-fp.c: Constify arguments.
22494 * i387-fp.h: Likewise.
22495 * inferiors.c: (struct thread_info): Renamed from
22496 `struct inferior_info'. Remove PID member. Use generic inferior
22497 list header. All uses updated.
22498 (inferiors, signal_pid): Removed.
22499 (all_threads): New variable.
22500 (get_thread): Define.
22501 (add_inferior_to_list): New function.
22502 (for_each_inferior): New function.
22503 (change_inferior_id): New function.
22504 (add_inferior): Removed.
22505 (remove_inferior): New function.
22506 (add_thread): New function.
22507 (free_one_thread): New function.
22508 (remove_thread): New function.
22509 (clear_inferiors): Use for_each_inferior and free_one_thread.
22510 (find_inferior): New function.
22511 (find_inferior_id): New function.
22512 (inferior_target_data): Update argument type.
22513 (set_inferior_target_data): Likewise.
22514 (inferior_regcache_data): Likewise.
22515 (set_inferior_regcache_data): Likewise.
22516 * linux-low.c (linux_bp_reinsert): Remove.
22517 (all_processes, stopping_threads, using_thrads)
22518 (struct pending_signals, debug_threads, pid_of): New.
22519 (inferior_pid): Replace with macro.
22520 (struct inferior_linux_data): Remove.
22521 (get_stop_pc, add_process): New functions.
22522 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22523 Use add_process and add_thread.
22524 (linux_attach_lwp): New function, based on old linux_attach. Use
22525 add_process and add_thread. Set stop_expected for new threads.
22526 (linux_attach): New function.
22527 (linux_kill_one_process): New function.
22528 (linux_kill): Kill all LWPs.
22529 (linux_thread_alive): Use find_inferior_id.
22530 (check_removed_breakpoints, status_pending_p): New functions.
22531 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22532 Update. Use WNOHANG. Wait for cloned processes also. Update process
22533 struct for the found process.
22534 (linux_wait_for_event): New function.
22535 (linux_wait): Use it. Support LWPs.
22536 (send_sigstop, wait_for_sigstop, stop_all_processes)
22537 (linux_resume_one_process, linux_continue_one_process): New functions.
22538 (linux_resume): Support LWPs.
22539 (REGISTER_RAW_SIZE): Remove.
22540 (fetch_register): Use register_size instead. Call supply_register.
22541 (usr_store_inferior_registers): Likewise. Call collect_register.
22542 Fix recursive case.
22543 (regsets_fetch_inferior_registers): Improve error message.
22544 (regsets_store_inferior_registers): Add debugging.
22545 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22546 (unstopped_p, linux_signal_pid): New functions.
22547 (linux_target_ops): Add linux_signal_pid.
22548 (linux_init_signals): New function.
22549 (initialize_low): Call it. Initialize using_threads.
22550 * regcache.c (inferior_regcache_data): Add valid
22551 flag.
22552 (get_regcache): Fetch registers lazily. Add fetch argument
22553 and update all callers.
22554 (regcache_invalidate_one, regcache_invalidate): New
22555 functions.
22556 (new_register_cache): Renamed from create_register_cache.
22557 Return the new regcache.
22558 (free_register_cache): Change argument to a void *.
22559 (registers_to_string, registers_from_string): Call get_regcache
22560 with fetch flag set.
22561 (register_data): Make static. Pass fetch flag to get_regcache.
22562 (supply_register): Call get_regcache with fetch flag clear.
22563 (collect_register): Call get_regcache with fetch flag set.
22564 (collect_register_as_string): New function.
22565 * regcache.h: Update.
22566 * remote-utils.c (putpkt): Flush after debug output and use
22567 stderr.
22568 Handle input interrupts while waiting for an ACK.
22569 (input_interrupt): Use signal_pid method.
22570 (getpkt): Flush after debug output and use stderr.
22571 (outreg): Use collect_register_as_string.
22572 (new_thread_notify, dead_thread_notify): New functions.
22573 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22574 and general_thread.
22575 (look_up_one_symbol): Flush after debug output.
22576 * server.c (step_thread, server_waiting): New variables.
22577 (start_inferior): Don't use signal_pid. Update call to mywait.
22578 (attach_inferior): Update call to mywait.
22579 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22580 (main): Don't fetch/store registers explicitly. Use
22581 set_desired_inferior. Support proposed ``Hs'' packet. Update
22582 calls to mywait.
22583 * server.h: Update.
22584 (struct inferior_list, struct_inferior_list_entry): New.
22585 * target.c (set_desired_inferior): New.
22586 (write_inferior_memory): Constify.
22587 (mywait): New function.
22588 * target.h: Update.
22589 (struct target_ops): New signal_pid method.
22590 (mywait): Removed macro, added prototype.
22591
22592 * linux-low.h (regset_func): Removed.
22593 (regset_fill_func, regset_store_func): New.
22594 (enum regset_type): New.
22595 (struct regset_info): Add type field. Use new operation types.
22596 (struct linux_target_ops): stop_pc renamed to get_pc.
22597 Add decr_pc_after_break and breakpoint_at.
22598 (get_process, get_thread_proess, get_process_thread)
22599 (strut process_info, all_processes, linux_attach_lwp)
22600 (thread_db_init): New.
22601
22602 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22603 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22604 (the_low_target): Add new members.
22605 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22606 (i386_store_fpxregset): Constify.
22607 (target_regsets): Add new kind identifier.
22608 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22609 (i386_set_pc): Add debugging.
22610 (i386_breakpoint_at): New function.
22611 (the_low_target): Add new members.
22612 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22613 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22614 (mips_breakpoint_at): New.
22615 (the_low_target): Add new members.
22616 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22617 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22618 (the_low_target): Add new members.
22619 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22620 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22621 (the_low_target): Add new members.
22622 * linux-x86-64-low.c (target_regsets): Add new kind
22623 identifier.
22624
226252002-05-15 Daniel Jacobowitz <drow@mvista.com>
22626
22627 From Martin Pool <mbp@samba.org>:
22628 * server.c (gdbserver_usage): New function.
22629 (main): Call it.
22630
226312002-05-14 Daniel Jacobowitz <drow@mvista.com>
22632
22633 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22634 stop_at -> stop_pc.
22635
226362002-05-04 Andrew Cagney <ac131313@redhat.com>
22637
22638 * Makefile.in: Remove obsolete code.
22639
226402002-04-24 Michal Ludvig <mludvig@suse.cz>
22641
22642 * linux-low.c (regsets_fetch_inferior_registers),
22643 (regsets_store_inferior_registers): Removed cast to int from
22644 ptrace() calls.
22645 * regcache.h: Added declaration of struct inferior_info.
22646
226472002-04-20 Daniel Jacobowitz <drow@mvista.com>
22648
22649 * inferiors.c (struct inferior_info): Add regcache_data.
22650 (add_inferior): Call create_register_cache.
22651 (clear_inferiors): Call free_register_cache.
22652 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22653 * regcache.c (struct inferior_regcache_data): New.
22654 (registers): Remove.
22655 (get_regcache): New function.
22656 (create_register_cache, free_register_cache): New functions.
22657 (set_register_cache): Don't initialize the register cache here.
22658 (registers_to_string, registers_from_string, register_data): Call
22659 get_regcache.
22660 * regcache.h: Add prototypes.
22661 * server.h: Likewise.
22662
226632002-04-20 Daniel Jacobowitz <drow@mvista.com>
22664
22665 * mem-break.c: New file.
22666 * mem-break.h: New file.
22667 * Makefile.in: Add mem-break.o rule; update server.h
22668 dependencies.
22669 * inferiors.c (struct inferior_info): Add target_data
22670 member.
22671 (clear_inferiors): Free target_data member if set.
22672 (inferior_target_data, set_inferior_target_data): New functions.
22673 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22674 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22675 * linux-low.c (linux_bp_reinsert): New variable.
22676 (struct inferior_linux_data): New.
22677 (linux_create_inferior): Use set_inferior_target_data.
22678 (linux_attach): Likewise. Call add_inferior.
22679 (linux_wait_for_one_inferior): New function.
22680 (linux_wait): Call it.
22681 (linux_write_memory): Add const.
22682 (initialize_low): Call set_breakpoint_data.
22683 * linux-low.h (struct linux_target_ops): Add breakpoint
22684 handling members.
22685 * server.c (attach_inferior): Remove extra add_inferior
22686 call.
22687 * server.h: Include mem-break.h. Update inferior.c
22688 prototypes.
22689 * target.c (read_inferior_memory)
22690 (write_inferior_memory): New functions.
22691 * target.h (read_inferior_memory)
22692 (write_inferior_memory): Change macros to prototypes.
22693 (struct target_ops): Update comments. Add const to write_memory
22694 definition.
22695
226962002-04-11 Daniel Jacobowitz <drow@mvista.com>
22697
22698 * linux-low.c (usr_store_inferior_registers): Support
22699 registers which are allowed to fail to store.
22700 * linux-low.h (linux_target_ops): Likewise.
22701 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22702 (ppc_cannot_store_register): FPSCR may not be storable.
22703
227042002-04-09 Daniel Jacobowitz <drow@mvista.com>
22705
22706 * server.h: Include <string.h> if HAVE_STRING_H.
22707 * ChangeLog: Correct paths in last ChangeLog entry.
22708
227092002-04-09 Daniel Jacobowitz <drow@mvista.com>
22710
22711 * linux-low.h: Remove obsolete prototypes.
22712 (struct linux_target_ops): New.
22713 (extern the_low_target): New.
22714 * linux-low.c (num_regs, regmap): Remove declarations.
22715 (register_addr): Use the_low_target explicitly.
22716 (fetch_register): Likewise.
22717 (usr_fetch_inferior_registers): Likewise.
22718 (usr_store_inferior_registers): Likewise.
22719 * linux-arm-low.c (num_regs): Remove.
22720 (arm_num_regs): Define.
22721 (arm_regmap): Renamed from regmap, made static.
22722 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22723 made static.
22724 (arm_cannot_store_register): Renamed from cannot_store_register,
22725 made static.
22726 (the_low_target): New.
22727 * linux-i386-low.c (num_regs): Remove.
22728 (i386_num_regs): Define.
22729 (i386_regmap): Renamed from regmap, made static.
22730 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22731 made static.
22732 (i386_cannot_store_register): Renamed from cannot_store_register,
22733 made static.
22734 (the_low_target): New.
22735 * linux-ia64-low.c (num_regs): Remove.
22736 (ia64_num_regs): Define.
22737 (ia64_regmap): Renamed from regmap, made static.
22738 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22739 made static.
22740 (ia64_cannot_store_register): Renamed from cannot_store_register,
22741 made static.
22742 (the_low_target): New.
22743 * linux-m68k-low.c (num_regs): Remove.
22744 (m68k_num_regs): Define.
22745 (m68k_regmap): Renamed from regmap, made static.
22746 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22747 made static.
22748 (m68k_cannot_store_register): Renamed from cannot_store_register,
22749 made static.
22750 (the_low_target): New.
22751 * linux-mips-low.c (num_regs): Remove.
22752 (mips_num_regs): Define.
22753 (mips_regmap): Renamed from regmap, made static.
22754 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22755 made static.
22756 (mips_cannot_store_register): Renamed from cannot_store_register,
22757 made static.
22758 (the_low_target): New.
22759 * linux-ppc-low.c (num_regs): Remove.
22760 (ppc_num_regs): Define.
22761 (ppc_regmap): Renamed from regmap, made static.
22762 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22763 made static.
22764 (ppc_cannot_store_register): Renamed from cannot_store_register,
22765 made static.
22766 (the_low_target): New.
22767 * linux-s390-low.c (num_regs): Remove.
22768 (s390_num_regs): Define.
22769 (s390_regmap): Renamed from regmap, made static.
22770 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22771 made static.
22772 (s390_cannot_store_register): Renamed from cannot_store_register,
22773 made static.
22774 (the_low_target): New.
22775 * linux-sh-low.c (num_regs): Remove.
22776 (sh_num_regs): Define.
22777 (sh_regmap): Renamed from regmap, made static.
22778 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22779 made static.
22780 (sh_cannot_store_register): Renamed from cannot_store_register,
22781 made static.
22782 (the_low_target): New.
22783 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22784 (the_low_target): New.
22785
227862002-04-09 Daniel Jacobowitz <drow@mvista.com>
22787
22788 * Makefile.in: Add stamp-h target.
22789 * configure.in: Create stamp-h.
22790 * configure: Regenerated.
22791
227922002-04-09 Daniel Jacobowitz <drow@mvista.com>
22793
22794 * inferiors.c: New file.
22795 * target.c: New file.
22796 * target.h: New file.
22797 * Makefile.in: Add target.o and inferiors.o. Update
22798 dependencies.
22799 * linux-low.c (inferior_pid): New static variable,
22800 moved from server.c.
22801 (linux_create_inferior): Renamed from create_inferior.
22802 Call add_inferior. Return 0 on success instead of a PID.
22803 (linux_attach): Renamed from myattach.
22804 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22805 (linux_thread_alive): Renamed from mythread_alive.
22806 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22807 child dies.
22808 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22809 (regsets_store_inferior_registers): Correct error message.
22810 Add missing ``return 0''.
22811 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22812 (linux_store_registers): Renamed from store_inferior_registers.
22813 (linux_read_memory): Renamed from read_inferior_memory.
22814 (linux_write_memory): Renamed from write_inferior_memory.
22815 (linux_target_ops): New structure.
22816 (initialize_low): Call set_target_ops ().
22817 * remote-utils.c (unhexify): New function.
22818 (hexify): New function.
22819 (input_interrupt): Send signals to ``signal_pid''.
22820 * server.c (inferior_pid): Remove.
22821 (start_inferior): Update create_inferior call.
22822 (attach_inferior): Call add_inferior.
22823 (handle_query): New function.
22824 (main): Call handle_query for `q' packets.
22825 * server.h: Include "target.h". Remove obsolete prototypes.
22826 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22827
228282002-04-09 Daniel Jacobowitz <drow@mvista.com>
22829
22830 * Makefile.in: Add WARN_CFLAGS. Update configury
22831 dependencies.
22832 * configure.in: Check for <string.h>
22833 * configure: Regenerate.
22834 * config.in: Regenerate.
22835 * gdbreplay.c: Include needed system headers.
22836 (remote_open): Remove strchr prototype.
22837 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22838 * regcache.c (supply_register): Change buf argument to const void *.
22839 (supply_register_by_name): Likewise.
22840 (collect_register): Change buf argument to void *.
22841 (collect_register_by_name): Likewise.
22842 * regcache.h: Add missing prototypes.
22843 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22844 * server.c (handle_query): New function.
22845 (attached): New static variable, moved out of main.
22846 (main): Quiet longjmp clobber warnings.
22847 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22848 * utils.c (error): Remove NORETURN.
22849 (fatal): Likewise.
This page took 2.468507 seconds and 4 git commands to generate.