]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
bfd: avoid infinite loop when static linking XCOFF
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
d4717483
SM
12021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
4 * win32-low.h: Likewise.
5
04977957
TBA
62021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7
8 * target.h (class process_stratum_target) <pid_to_exec_file>:
9 Constify the return type. Update the definition/references below.
10 * target.cc (process_stratum_target::pid_to_exec_file)
11 * linux-low.h (class linux_process_target) <pid_to_exec_file>
12 * linux-low.cc (linux_process_target::pid_to_exec_file)
13 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
14 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
15 * server.cc (handle_qxfer_exec_file)
16
114ee2a4
EZ
172021-04-11 Eli Zaretskii <eliz@gnu.org>
18
19 * win32-low.cc (win32_add_dll): New function, with body almost
20 identical to what win32_add_all_dlls did. Accepts one argument;
21 if that is non-NULL, returns the file name of the DLL that is
22 loaded at the base address equal to that argument, or NULL if not
23 found. If the argument is NULL, add all the DLLs loaded by the
24 inferior to the list of solibs and return NULL.
25 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
26 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
27 failed to glean the file name of the DLL, call win32_add_dll to
28 try harder using the lpBaseOfDll member of the load-DLL event.
29
782c1ab8
LM
302021-03-30 Luis Machado <luis.machado@linaro.org>
31
32 * server.cc (handle_general_set, handle_query): Update variable
33 to bool and fix verification logic.
34
41919a58
LM
352021-03-24 Luis Machado <luis.machado@linaro.org>
36
37 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
38 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
39 nat/aarch64-mte-linux-ptrace.o.
40 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
41 (class aarch64_target) <supports_memory_tagging>
42 <fetch_memtags, store_memtags>: New method overrides.
43 (aarch64_target::supports_memory_tagging)
44 (aarch64_target::fetch_memtags)
45 (aarch64_target::store_memtags): New methods.
46
5e984dbf
LM
472021-03-24 Luis Machado <luis.machado@linaro.org>
48
49 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
50 (aarch64_store_mteregset): New function.
51 (aarch64_regsets): Add MTE register set entry.
52 (aarch64_sve_regsets): Add MTE register set entry.
53
c1bd443b
LM
542021-03-24 Luis Machado <luis.machado@linaro.org>
55
56 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
57 aarch64_linux_read_description.
58 (initialize_low_tracepoint): Likewise.
59 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
60 into account.
61 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
62 for MTE.
63 (aarch64_linux_read_description): Add mte_p parameter and update to
64 use it.
65 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
66 parameter.
67
04245125
LM
682021-03-24 Luis Machado <luis.machado@linaro.org>
69
70 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
71
c2cfa654
LM
722021-03-24 Luis Machado <luis.machado@linaro.org>
73
74 * server.cc (test_memory_tagging_functions): New function.
75 (captured_main): Register test_memory_tagging_functions.
76
546b77fe
LM
772021-03-24 Luis Machado <luis.machado@linaro.org>
78
79 * remote-utils.cc (decode_m_packet_params): Renamed from ...
80 (decode_m_packet): ... this, which now calls decode_m_packet_params.
81 Make char * param/return const char *.
82 (decode_M_packet): Use decode_m_packet_params and make char * param
83 const char *.
84 * remote-utils.h (decode_m_packet_params): New prototype.
85 (decode_m_packet): Constify char pointers.
86 (decode_M_packet): Likewise.
87 * server.cc (create_fetch_memtags_reply)
88 (parse_store_memtags_request): New
89 functions.
90 (handle_general_set): Handle the QMemTags packet.
91 (parse_fetch_memtags_request): New function.
92 (handle_query): Handle the qMemTags packet and advertise memory
93 tagging support.
94 (captured_main): Initialize memory tagging flag.
95 * server.h (struct client_state): Initialize memory tagging flag.
96 * target.cc (process_stratum_target::supports_memory_tagging)
97 (process_stratum_target::fetch_memtags)
98 (process_stratum_target::store_memtags): New methods.
99 * target.h: Include gdbsupport/byte-vector.h.
100 (class process_stratum_target) <supports_memory_tagging>
101 <fetch_memtags, store_memtags>: New class virtual methods.
102 (target_supports_memory_tagging): Define.
103
d171632f
TBA
1042021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
105
106 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
107 fields.
108 * dll.h (loaded_dll)
109 (unloaded_dll): Declare an overloaded version that takes a proc
110 parameter.
111 * dll.cc (loaded_dll)
112 (unloaded_dll): Implement the overloaded versions.
113 (clear_dlls): Clear all process' dll lists.
114 (all_dlls, dlls_changed): Remove the global variables.
115 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
116 list per proc.
117 * server.cc (handle_qxfer_libraries): Ditto.
118 (handle_v_attach): Ditto.
119 (captured_main): Ditto.
120
1a48f002
SM
1212021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * linux-low.cc (linux_process_target::filter_event): Return
124 void.
125 * linux-low.h (class linux_process_target) <filter_event>:
126 Return void.
127
77fba254
TT
1282021-02-12 Tom Tromey <tromey@adacore.com>
129
130 * gdbreplay.cc (remote_desc): Remove.
131 (remote_desc_in, remote_desc_out): New globals.
132 (remote_close): Update.
133 (remote_open): Handle "-".
134 (remote_open): Update.
135 (logchar): Log to stderr.
136 (expect, play): Update.
137
c054dcd5
TT
1382021-02-12 Tom Tromey <tromey@adacore.com>
139
140 * gdbreplay.cc (remote_open): Constify.
141
9c9d63b1
PM
1422021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
143
144 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
145 gnulib free replacement too.
146 * common-defs.h [USE_WIN32API](read, write): Undefine
147 gnulib versions before defining these macros.
148
7e9cf1fe
PA
1492021-02-03 Pedro Alves <pedro@palves.net>
150
151 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
152 Discard step SIGTRAP, unless GDB wanted the thread to step.
153
b0083dd7
PA
1542021-02-03 Pedro Alves <pedro@palves.net>
155
156 * server.cc (discard_queued_stop_replies): Don't ever discard the
157 notification at the head of the list.
158
6bd434d6
SM
1592021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
160
161 * ax.cc (bytecode_address_table): Make static.
162 * debug.cc (debug_file): Make static.
163 * linux-low.cc (stopping_threads): Make static.
164 (step_over_bkpt): Make static.
165 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
166 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
167 alloced_trace_state_variables, trace_buffer_ctrl,
168 tracing_start_time, tracing_stop_time, tracing_user_name,
169 tracing_notes, tracing_stop_note): Make static.
170
037e8112
TV
1712021-01-20 Tom de Vries <tdevries@suse.de>
172
173 * linux-x86-low.cc (collect_register_i386): New function.
174 (x86_fill_gregset): Remove memset. Use collect_register_i386.
175
78e49486
TV
1762021-01-07 Tom de Vries <tdevries@suse.de>
177
178 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
179 (LIBIBERTY_FOR_SHLIB): New var.
180 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
181 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
182
3ec3145c
SM
1832021-01-04 Simon Marchi <simon.marchi@efficios.com>
184
185 * debug.cc (debug_print_depth): New.
186
2b47c078
JB
1872021-01-01 Joel Brobecker <brobecker@adacore.com>
188
189 * server.cc (gdbserver_version): Update copyright year.
190 * gdbreplay.cc (gdbreplay_version): Likewise.
191
19007d95
LM
1922020-12-16 Luis Machado <luis.machado@linaro.org>
193
194 * linux-aarch64-low.cc (address_significant): New function.
195 (aarch64_target::low_stopped_data_address): Handle the TBI.
196
96648494
AB
1972020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 * Makefile.in (IPA_LIB): Include libiberty library.
200
81fdd7ac
AB
2012020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
202
203 * server.cc (gdbserver_usage): Add missing option to usage text.
204 (gdbserver_show_disableable): Likewise.
205
dda83cd7
SM
2062020-11-02 Simon Marchi <simon.marchi@efficios.com>
207
208 * ax.cc: Fix indentation.
209 * dll.cc: Fix indentation.
210 * inferiors.h: Fix indentation.
211 * linux-low.cc: Fix indentation.
212 * linux-nios2-low.cc: Fix indentation.
213 * linux-ppc-ipa.cc: Fix indentation.
214 * linux-ppc-low.cc: Fix indentation.
215 * linux-x86-low.cc: Fix indentation.
216 * linux-xtensa-low.cc: Fix indentation.
217 * regcache.cc: Fix indentation.
218 * server.cc: Fix indentation.
219 * tracepoint.cc: Fix indentation.
220
19dd0ae5
SM
2212020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
222
223 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
224 AC_LANG_PROGRAM.
225 * configure: Re-generate.
226
b6fb30ed
SM
2272020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
228
229 * configure: Re-generate.
864ca435
SM
230
2312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
232
233 * configure: Re-generate.
b9442ec1
SM
234
2352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
236
237 * configure: Re-generate.
b6fb30ed 238
5164c117
SM
2392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
240
241 * configure: Re-generate.
242
7e8c7130
SM
2432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
244
245 * configure.ac: Modernize.
246 * configure: Re-generate.
247
91e1a0ed
SM
2482020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
251 AC_CANONICAL_SYSTEM.
252 * configure: Re-generate.
253
d744f0f9
PA
2542020-10-26 Pedro Alves <pedro@palves.net>
255
256 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
257 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
258 explicit type.
259
006811bc
SM
2602020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * acinclude.m4: Update ptrace.m4 path.
263
92a048fd
SM
2642020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
265
266 * config.in: Re-generate.
267 * configure: Re-generate.
268
4dbe16c8
SM
2692020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
270
271 * server.cc (handle_general_set): Don't use sprintf with
272 argument overlapping buffer.
273
a9b45cb7
TT
2742020-10-20 Tom Tromey <tromey@adacore.com>
275
276 PR gdb/26742:
277 * inferiors.cc (remove_thread): Clear current_thread before
278 freeing the thread.
279
b07993f6
KR
2802020-10-13 Kamil Rytarowski <n54@gmx.com>x
281
282 * netbsd-low.cc (netbsd_tdesc): Remove.
283 (netbsd_add_process): Likewise.
284 (netbsd_process_target::create_inferior): Update.
285
bbb826f5
AB
2862020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
287
288 * linux-arc-low.cc (arc_linux_read_description): Release the
289 unique_ptr returned from arc_create_target_description.
290
361cb219
AB
2912020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
292
293 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
294 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
295
51a948fd
AB
2962020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 * linux-low.cc (linux_process_target::handle_extended_wait):
299 Release the unique_ptr returned from allocate_target_description.
300 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
301 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
302 (tdesc_i386_linux_no_xml): Change type.
303 (x86_linux_read_description): Borrow pointer from unique_ptr
304 object.
305 (x86_target::get_ipa_tdesc_idx): Likewise.
306 (initialize_low_arch): Likewise.
307 * tdesc.cc (allocate_target_description): Update return type.
308
60b74662
TT
3092020-10-07 Tom Tromey <tromey@adacore.com>
310
311 * server.cc (handle_search_memory): Remove dead code.
312
55b10d89
TT
3132020-10-07 Tom Tromey <tromey@adacore.com>
314
315 * server.cc (handle_search_memory_1): Remove.
316 (handle_search_memory): Use simple_search_memory.
317
a038ffd8
SM
3182020-10-07 Simon Marchi <simon.marchi@efficios.com>
319
320 * Makefile.in (COMPILE): Add CXXFLAGS.
321 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
322 (gdbserver$(EXEEXT)): Add CXXFLAGS.
323 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
324 ($(IPA_LIB)): Add CXXFLAGS.
325 (IPAGENT_COMPILE): Add CXXFLAGS.
326
bbe90b5d 3272020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
328
329 * configure.srv: Support ARC architecture.
330 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
331 * linux-arc-low.cc: New file.
332
48491055
KR
3332020-10-07 Kamil Rytarowski <n54@gmx.com>
334
335 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
336 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
337 (netbsd_process_target::qxfer_libraries_svr4): Update.
338
2be01f63
KR
3392020-10-07 Kamil Rytarowski <n54@gmx.com>
340
341 * netbsd-low.cc: Fix whitespace formatting.
342 * netbsd-amd64-low.cc: Likewise.
343
91e5e8db
KR
3442020-10-07 Kamil Rytarowski <n54@gmx.com>
345
346 * netbsd-low.cc (netbsd_process_target::read_memory)
347 (netbsd_process_target::write_memory): Update.
348
9529c852
KR
3492020-10-07 Kamil Rytarowski <n54@gmx.com>
350
351 * netbsd-aarch64-low.cc: Add.
352 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
353 * configure.srv: Add aarch64*-*-netbsd*.
354
981b570a
SV
3552020-10-06 Shahab Vahedi <shahab@synopsys.com>
356
357 * regcache.cc (register_data): Remove unused "fetch" argument.
358
6b01403b
SM
3592020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
360
361 * server.cc (handle_monitor_command): Handle "set
362 debug-event-loop".
363 (captured_main): Handle "--debug-event-loop".
364 (monitor_show_help): Mention new setting.
365 (gdbserver_usage): Mention new flag.
366
2554f6f5
SM
3672020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
368
369 * linux-low.cc (linux_process_target::async): Pass name to
370 add_file_handler.
371 * remote-utils.cc (handle_accept_event): Likewise.
372 (remote_open): Likewise.
373
8b667fae
KR
3742020-10-01 Kamil Rytarowski <n54@gmx.com>
375
376 * netbsd-i386-low.cc: Add.
377 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
378 * configure.srv: Add i[34567]86-*-netbsd*.
379
15397b0e
KR
3802020-10-01 Kamil Rytarowski <n54@gmx.com>
381
382 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
383 (netbsd_target_regsets): Now const.
384 (the_low_target): Remove.
385 (class netbsd_amd64_target, the_netbsd_amd64_target)
386 (the_netbsd_target): Add.
387 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
388 low_arch_setup ().
389 (netbsd_process_target::fetch_registers)
390 (netbsd_process_target::store_registers, initialize_low): Update.
391 (the_netbsd_target): Remove.
392 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
393 (the_low_target, netbsd_tdesc): Remove.
394 (netbsd_process_target::get_regs_info)
395 (netbsd_process_target::low_arch_setup): Add.
396
99bb393f
HD
3972020-09-23 Hannes Domani <ssbssa@yahoo.de>
398
399 * win32-low.cc: Remove local wow64_process variable.
400 * win32-low.h: Remove local wow64_process variable.
401
b60cea74
TT
4022020-09-18 Tom Tromey <tromey@adacore.com>
403
404 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
405 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
406 (netbsd_process_target::wait): Change type of target_options.
407 * win32-low.h (class win32_process_target) <wait>: Update.
408 * win32-low.cc (win32_process_target::wait): Update.
409 * target.h (class process_stratum_target) <wait>: Update.
410 (mywait): Update.
411 * target.cc (mywait, target_wait): Change type of "options".
412 * linux-low.h (class linux_process_target) <wait, wait_1>:
413 Update.
414 * linux-low.cc (linux_process_target::wait)
415 (linux_process_target::wait_1): Update.
416
db92ac45
TT
4172020-09-15 Tom Tromey <tromey@adacore.com>
418
419 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
420 (xmltarget_amd64_linux_no_xml): Now arrays.
421
27087b7f
TT
4222020-09-14 Tom Tromey <tromey@adacore.com>
423
424 * tracepoint.cc (eval_result_names): Now const.
425 * ax.cc (gdb_agent_op_names): Now const.
426
62ba5048
KR
4272020-09-10 Kamil Rytarowski <n54@gmx.com>
428
429 * netbsd-low.cc: Add.
430 * netbsd-low.h: Likewise.
431 * netbsd-amd64-low.cc: Likewise.
432 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
433 "netbsd-amd64-low.cc".
434 * configure.srv: Add x86_64-*-netbsd*.
435
ece5bc8a
SM
4362020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
437
438 * server.cc (captured_main): Accept multiple `--selftest=`
439 options. Pass all `--selftest=` arguments to run_tests.
440
c8693053
RO
4412020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
442
443 * configure, config.in: Regenerate.
444
05a6b8c2
EZ
4452020-07-26 Eli Zaretskii <eliz@gnu.org>
446
447 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
448 When checking whether socklen_t type is defined, use ws2tcpip.h if
449 it is available and sys/socket.h isn't.
450 * configure: Regenerate.
451 * config.in: Regenerate.
452
028a4603
PA
4532020-07-22 Pedro Alves <pedro@palves.net>
454
455 * inferiors.cc (switch_to_process): New, moved here from
456 thread-db.cc, and made extern.
457 * inferiors.h (switch_to_process): Declare.
458 * server.cc: Include "gdbsupport/scoped_restore.h".
459 (handle_qxfer_threads_proper): Now returns bool. Prepare to
460 access memory around target calls.
461 (handle_qxfer_threads): Handle errors.
462 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
463
05c309a8
SM
4642020-07-21 Simon Marchi <simon.marchi@efficios.com>
465
466 * linux-low.cc (stopped_pids): Make static.
467
0e267416
AB
4682020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
469
470 * tdesc.cc (allocate_target_description): Add header comment.
471 (target_desc_deleter::operator()): New function.
472 * tdesc.h (struct target_desc): Declare as final.
473
b315b67d
SM
4742020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
475
476 * server.cc (handle_query): Use std::vector of
477 std::string for `qsupported` vector. Use separate
478 vector for unknowns.
479 * target.h (class process_stratum_target) <process_qsupported>:
480 Change parameters to array_view of const char *.
481 (target_process_qsupported): Remove `count` parameter.
482 * target.cc (process_stratum_target::process_qsupported): Change
483 parameters to array_view of const char *.
484 * linux-x86-low.cc (class x86_target) <process_qsupported>:
485 Likewise.
486
f638ed73
TV
4872020-06-29 Tom de Vries <tdevries@suse.de>
488
489 * ax.h: Include gdbsupport/debug_agent.h.
490
fbf42f4e
AB
4912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
492
493 * tdesc.cc (struct tdesc_compatible_info): New struct.
494 (tdesc_compatible_info_list): New function.
495 (tdesc_compatible_info_arch_name): New function.
496
013e3554
TBA
4972020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
498
499 Use std::list to stop pending signal instead of manually-created
500 linked list.
501 * linux-low.h: Include <list>.
502 (struct pending_signal): Move here from linux-low.cc.
503 (struct lwp_info) <pending_signals>
504 <pending_signals_to_report>: Update the type.
505 * linux-low.cc (struct pending_signals): Remove.
506 (linux_process_target::delete_lwp)
507 (linux_process_target::add_lwp)
508 (enqueue_one_deferred_signal)
509 (dequeue_one_deferred_signal)
510 (enqueue_pending_signal)
511 (linux_process_target::resume_one_lwp_throw)
512 (linux_process_target::thread_needs_step_over)
513 (linux_process_target::resume_one_thread)
514 (linux_process_target::proceed_one_lwp): Update the use of pending
515 signal list.
516
7d458ea5
SM
5172020-06-17 Simon Marchi <simon.marchi@efficios.com>
518
519 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
520 Remove.
521
84b300de
SM
5222020-06-12 Simon Marchi <simon.marchi@efficios.com>
523
524 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
525 * configure.srv: Remove mingw32ce cases.
526 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
527 * win32-low.h (to_back_slashes): Remove.
528 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
529
96c16e2b
SM
5302020-06-12 Simon Marchi <simon.marchi@efficios.com>
531
532 * Makefile.in (SFILES): linux-tile-low.cc.
533 * configure.srv: Remove tilegx case.
534 * linux-tile-low.cc: Remove.
535
bd1467ae
SM
5362020-06-12 Simon Marchi <simon.marchi@efficios.com>
537
538 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
539 * configure.srv: Remove m32r case.
540 * linux-m32r-low.cc: Remove.
541
7b46bf6f
SM
5422020-06-12 Simon Marchi <simon.marchi@efficios.com>
543
544 * Makefile.in (SFILES): Remove linux-cris-low.c.
545 * configure.srv: Remove cris cases.
546 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
547
1fa29f56
SM
5482020-06-12 Simon Marchi <simon.marchi@efficios.com>
549
550 * Makefile.in (SFILES): Remove linux-bfin-low.c.
551 * configure.srv: Remove bfin case.
552 * linux-bfin-low.cc: Remove.
553 * linux-low.cc: Remove BFIN-conditional code.
554
613f149a
SM
5552020-06-12 Simon Marchi <simon.marchi@efficios.com>
556
557 * configure: Re-generate.
558 * configure.ac: Remove srv_qnx test.
559 * configure.srv: Remove nto case.
560 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
561 * remote-utils.c: Remove __QNX__-guarded code.
562
fdb95bf5
SM
5632020-06-12 Simon Marchi <simon.marchi@efficios.com>
564
565 * configure: Re-generate.
566 * configure.ac: Remove srv_lynxos test.
567 * configure.srv: Remove lynxos cases.
568 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
569 Remove.
570
c00094dc
SM
5712020-06-12 Simon Marchi <simon.marchi@efficios.com>
572
573 * README: Fix a few outdated or incoherent things.
574
6479bf85
HD
5752020-05-27 Hannes Domani <ssbssa@yahoo.de>
576
577 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
578 (win32_clear_inferiors): Use open_process_used.
579 (get_child_debug_event): Likewise.
580
bea571eb
MW
5812020-05-25 Michael Weghorn <m.weghorn@posteo.de>
582
583 PR gdbserver/25893
584 * linux-low.cc (linux_process_target::create_inferior),
585 lynx-low.cc (lynx_process_target::create_inferior),
586 win32-low.cc (win32_process_target::create_inferior): Use
587 construct_inferior_arguments instead of stringify_argv
588 to get string representation which properly escapes
589 special characters.
590 * server.cc (handle_v_run): Just pass empty program arg
591 as such, since any further processing is now handled via
592 construct_inferior_arguments.
593
ace6b919
MW
5942020-05-25 Michael Weghorn <m.weghorn@posteo.de>
595
596 * nto-low.cc (nto_process_target::create_inferior): Pass
597 argv to spawnp function as char **.
598
b69ca137
MW
5992020-05-25 Michael Weghorn <m.weghorn@posteo.de>
600
601 * server.cc (captured_main), (handle_v_run): No longer
602 insert extra NULL element to args vector.
603
51e2cfa2
PA
6042020-05-23 Pedro Alves <palves@redhat.com>
605
606 * gdb-safe-ctype.h: New.
607
8bbf0394
TBA
6082020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
609
610 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
611 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
612 (ia64_target::low_breakpoint_at): Ditto.
613
01370779
HD
6142020-05-15 Hannes Domani <ssbssa@yahoo.de>
615
616 * win32-i386-low.cc (i386_supports_z_point_type): Handle
617 Z_PACKET_HW_BP z_type.
618 (i386_insert_point): Handle raw_bkpt_type type.
619 (i386_remove_point): Likewise.
620
7d186bc0
HD
6212020-04-30 Hannes Domani <ssbssa@yahoo.de>
622
623 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
624 Add arch/i386.o.
625 * win32-arm-low.cc (arm_num_regs): New function.
626 (struct win32_target_ops): Use arm_num_regs.
627 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
628 processes.
629 (i386_get_thread_context): Likewise.
630 (i386_prepare_to_resume): Likewise.
631 (i386_thread_added): Likewise.
632 (i386_single_step): Likewise.
633 (i386_fetch_inferior_register): Likewise.
634 (i386_store_inferior_register): Likewise.
635 (i386_arch_setup): Likewise.
636 (i386_win32_num_regs): New function.
637 (struct win32_target_ops): Use i386_win32_num_regs.
638 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
639 processes.
640 (win32_require_context): Likewise.
641 (child_add_thread): Likewise.
642 (do_initial_child_stuff): Likewise.
643 (continue_one_thread): Likewise.
644 (win32_process_target::resume): Likewise.
645 (load_psapi): Likewise.
646 (win32_add_all_dlls): Likewise.
647 (maybe_adjust_pc): Likewise.
648 (win32_process_target::qxfer_siginfo): Likewise.
649 (initialize_low): Likewise.
650 * win32-low.h (struct win32_target_ops): Change num_regs to
651 callback function.
652
1eb39914
SM
6532020-04-27 Simon Marchi <simon.marchi@efficios.com>
654
655 * configure.ac: Remove check for fs_base/gs_base in
656 user_regs_struct.
657 * configure: Re-generate.
658 * config.in: Re-generate.
659 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
660 x86_store_gregset): Adjust.
661
51ac8e22
HD
6622020-04-22 Hannes Domani <ssbssa@yahoo.de>
663
664 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
665 comparison.
666
a010605f
TT
6672020-04-16 Tom Tromey <tromey@adacore.com>
668
669 * win32-low.cc (windows_nat::handle_access_violation): New
670 function.
671
e2275c6e
SM
6722020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
673
674 * win32-low.cc (get_child_debug_event): Fix format string warning.
675
73944e9f
TT
6762020-04-13 Tom Tromey <tom@tromey.com>
677
678 * server.h (gdb_fildes_t): Remove typedef.
679 * remote-utils.c (remote_desc, list_desc): Now int.
680 (INVALID_DESCRIPTOR): Remove.
681 (gdb_connected, remote_close)
682 (check_remote_input_interrupt_request): Update.
683 * utils.h (pfildes): Don't declare.
684 * utils.c (pfildes): Remove.
685
55d7aec8
TT
6862020-04-13 Tom Tromey <tom@tromey.com>
687
688 * server.h (handle_serial_event, handle_target_event): Update.
689 * server.c: Don't call initialize_event_loop.
690 (keep_processing_events): New global.
691 (handle_serial_event): Return void. Set keep_processing_events.
692 (handle_target_event): Return void.
693 (start_event_loop): Move from event-loop.c. Rewrite.
694 * remote-utils.c (handle_accept_event): Return void.
695 (reset_readchar): Use delete_timer.
696 (process_remaining): Return void.
697 (reschedule): Use create_timer.
698 * event-loop.h: Remove.
699 * event-loop.cc: Remove.
700 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
701
e487f994
TT
7022020-04-13 Tom Tromey <tom@tromey.com>
703
704 * server.c (invoke_async_signal_handlers)
705 (check_async_event_handlers, flush_streams, gdb_select): New
706 functions.
707
8ae8e197
TT
7082020-04-13 Tom Tromey <tom@tromey.com>
709
710 * configure: Rebuild.
711 * config.in: Rebuild.
712
360ad8b3
TT
7132020-04-08 Tom Tromey <tromey@adacore.com>
714
715 PR gdb/22992
716 * win32-low.c (child_continue): Call matching_pending_stop.
717 (get_child_debug_event): Call fetch_pending_stop. Push pending
718 stop when needed.
719
523d4f80
TT
7202020-04-08 Tom Tromey <tromey@adacore.com>
721
722 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
723 (win32_process_target::supports_stopped_by_sw_breakpoint):
724 Declare.
725 * win32-low.c (win32_supports_z_point_type): Always handle
726 Z_PACKET_SW_BP.
727 (win32_insert_point): Call insert_memory_breakpoint when needed.
728 (win32_remove_point): Call remove_memory_breakpoint when needed.
729 (win32_process_target::stopped_by_sw_breakpoint)
730 (win32_process_target::supports_stopped_by_sw_breakpoint): New
731 methods.
732 (win32_target_ops): Update.
733 (maybe_adjust_pc): New function.
734 (win32_wait): Call maybe_adjust_pc.
735
e54e5929
TT
7362020-04-08 Tom Tromey <tromey@adacore.com>
737
738 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
739 field.
740 * win32-i386-low.c (the_low_target): Update.
741 * win32-arm-low.c (the_low_target): Update.
742
d6225aff
TT
7432020-04-08 Tom Tromey <tromey@adacore.com>
744
745 * win32-low.h (win32_process_target::read_pc)
746 (win32_process_target::write_pc): Declare.
747 * win32-low.c (win32_process_target::read_pc)
748 (win32_process_target::write_pc): New methods.
749 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
750 functions.
751 (the_low_target): Update.
752 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
753 functions.
754 (the_low_target): Update.
755
2c1d95e8
TT
7562020-04-08 Tom Tromey <tromey@adacore.com>
757
758 * win32-low.c (win32_kill, get_child_debug_event): Use
759 wait_for_debug_event.
760
e758e19c
TT
7612020-04-08 Tom Tromey <tromey@adacore.com>
762
763 * win32-low.c (child_continue): Call continue_last_debug_event.
764
8d30e395
TT
7652020-04-08 Tom Tromey <tromey@adacore.com>
766
767 * win32-low.c (handle_exception): Remove.
768 (windows_nat::handle_ms_vc_exception): New function.
769 (get_child_debug_event): Add "continue_status" parameter.
770 Update.
771 (win32_wait): Update.
772
a816ba18
TT
7732020-04-08 Tom Tromey <tromey@adacore.com>
774
775 * win32-low.c (windows_nat::handle_load_dll): Rename from
776 handle_load_dll. No longer static.
777 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
778 No longer static.
779
d41b524f
TT
7802020-04-08 Tom Tromey <tromey@adacore.com>
781
782 * win32-low.c (handle_output_debug_string): Add parameter. Change
783 return type.
784 (win32_kill, get_child_debug_event): Update.
785
3c76026d
TT
7862020-04-08 Tom Tromey <tromey@adacore.com>
787
788 * win32-low.c (current_process_handle, current_process_id)
789 (main_thread_id, last_sig, current_event, siginfo_er): Move to
790 nat/windows-nat.c.
791
9d8679cc
TT
7922020-04-08 Tom Tromey <tromey@adacore.com>
793
794 * win32-low.c (get_image_name): Remove.
795 (handle_load_dll): Update.
796
28688adf
TT
7972020-04-08 Tom Tromey <tromey@adacore.com>
798
799 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
800 No longer static. Change parameters.
801 (child_add_thread, child_fetch_inferior_registers)
802 (child_store_inferior_registers, win32_resume)
803 (win32_get_tib_address): Update.
804
4834dad0
TT
8052020-04-08 Tom Tromey <tromey@adacore.com>
806
807 * win32-low.h (struct win32_target_ops): Use qualified names where
808 needed.
809 * win32-i386-low.c: Add "using namespace".
810 * win32-low.c: Add "using namespace".
811 * win32-arm-low.c: Add "using namespace".
812
65bafd5b
TT
8132020-04-08 Tom Tromey <tromey@adacore.com>
814
815 * win32-low.c (delete_thread_info): Don't call CloseHandle.
816
98a03287
TT
8172020-04-08 Tom Tromey <tromey@adacore.com>
818
819 * win32-low.c (win32_require_context, suspend_one_thread): Use
820 windows_thread_info::suspend.
821 (continue_one_thread): Use windows_thread_info::resume.
822 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
823
62fe396b
TT
8242020-04-08 Tom Tromey <tromey@adacore.com>
825
826 * win32-i386-low.c (update_debug_registers)
827 (i386_prepare_to_resume, i386_thread_added): Update.
828
e9534bd2
TT
8292020-04-08 Tom Tromey <tromey@adacore.com>
830
831 * win32-low.c (child_add_thread): Use new.
832 (delete_thread_info): Use delete.
833
ae1f8880
TT
8342020-04-08 Tom Tromey <tromey@adacore.com>
835
836 * win32-low.h (struct windows_thread_info): Remove.
837
e56f8ccb
TT
8382020-04-08 Tom Tromey <tromey@adacore.com>
839
840 * win32-low.h (struct windows_thread_info): Rename from
841 win32_thread_info. Remove typedef.
842 (struct win32_target_ops, win32_require_context): Update.
843 * win32-low.c (win32_get_thread_context)
844 (win32_set_thread_context, win32_prepare_to_resume)
845 (win32_require_context, thread_rec, child_add_thread)
846 (delete_thread_info, continue_one_thread)
847 (child_fetch_inferior_registers, child_store_inferior_registers)
848 (win32_resume, suspend_one_thread, win32_get_tib_address):
849 Update.
850 * win32-i386-low.c (update_debug_registers)
851 (win32_get_current_dr, i386_get_thread_context)
852 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
853 (i386_fetch_inferior_register, i386_store_inferior_register):
854 Update.
855 * win32-arm-low.c (arm_get_thread_context)
856 (arm_fetch_inferior_register, arm_store_inferior_register):
857 Update.
858
0dd7b52e
TBA
8592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
860
861 * linux-low.h (struct linux_target_ops): Remove.
862 (the_low_target): Remove.
863 * linux-x86-low.cc (the_low_target): Remove.
864 * linux-aarch64-low.cc (the_low_target): Ditto.
865 * linux-arm-low.cc (the_low_target): Ditto.
866 * linux-bfin-low.cc (the_low_target): Ditto.
867 * linux-cris-low.cc (the_low_target): Ditto.
868 * linux-crisv32-low.cc (the_low_target): Ditto.
869 * linux-ia64-low.cc (the_low_target): Ditto.
870 * linux-m32r-low.cc (the_low_target): Ditto.
871 * linux-m68k-low.cc (the_low_target): Ditto.
872 * linux-mips-low.cc (the_low_target): Ditto.
873 * linux-nios2-low.cc (the_low_target): Ditto.
874 * linux-ppc-low.cc (the_low_target): Ditto.
875 * linux-riscv-low.cc (the_low_target): Ditto.
876 * linux-s390-low.cc (the_low_target): Ditto.
877 * linux-sh-low.cc (the_low_target): Ditto.
878 * linux-sparc-low.cc (the_low_target): Ditto.
879 * linux-tic6x-low.cc (the_low_target): Ditto.
880 * linux-tile-low.cc (the_low_target): Ditto.
881 * linux-xtensa-low.cc (the_low_target): Ditto.
882
fc5ecdb6
TBA
8832020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
884
885 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
886 linux target define the op by overriding the declaration in
887 process_stratum_target.
888
889 * linux-low.h (struct linux_target_ops): Remove the op.
890 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
891 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
892 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
893 (x86_get_ipa_tdesc_idx): Turn into...
894 (x86_target::get_ipa_tdesc_idx): ...this.
895 (the_low_target): Remove the op field.
896 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
897 (ppc_get_ipa_tdesc_idx): Turn into...
898 (ppc_target::get_ipa_tdesc_idx): ...this.
899 (the_low_target): Remove the op field.
900 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
901 (s390_get_ipa_tdesc_idx): Turn into...
902 (s390_target::get_ipa_tdesc_idx): ...this.
903 (the_low_target): Remove the op field.
904
9eedd27d
TBA
9052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
906
907 Turn the 'get_syscall_trapinfo' linux target op into a method
908 of process_stratum_target.
909
910 * linux-low.h (struct linux_target_ops): Remove the op.
911 (class linux_process_target) <get_syscall_trapinfo>
912 <gdb_catch_this_syscall>
913 <low_supports_catch_syscall>
914 <low_get_syscall_trapinfo>: Declare.
915 * linux-low.cc (get_syscall_trapinfo): Turn into...
916 (linux_process_target::get_syscall_trapinfo): ...this.
917 (linux_process_target::low_get_syscall_trapinfo): Define.
918 (gdb_catch_this_syscall_p): Turn into...
919 (linux_process_target::gdb_catch_this_syscall): ...this.
920 (linux_process_target::low_supports_catch_syscall): Define.
921
922 Update the callers below.
923
924 (linux_process_target::wait_1)
925 (linux_process_target::supports_catch_syscall)
926
927 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
928 <low_get_syscall_trapinfo>: Declare.
929 (x86_target::low_supports_catch_syscall): Define.
930 (x86_get_syscall_trapinfo): Turn into...
931 (x86_target::low_get_syscall_trapinfo): ...this.
932 (the_low_target): Remove the op field.
933 * linux-aarch64-low.cc (class aarch64_target)
934 <low_supports_catch_syscall>
935 <low_get_syscall_trapinfo>: Declare.
936 (aarch64_target::low_supports_catch_syscall): Define.
937 (aarch64_get_syscall_trapinfo): Turn into...
938 (aarch64_target::low_get_syscall_trapinfo): ...this.
939 (the_low_target): Remove the op field.
940 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
941 <low_get_syscall_trapinfo>: Declare.
942 (arm_target::low_supports_catch_syscall): Define.
943 (arm_get_syscall_trapinfo): Turn into...
944 (arm_target::low_get_syscall_trapinfo): ...this.
945 (the_low_target): Remove the op field.
946 * linux-ppc-low.cc (the_low_target): Remove the op field.
947 * linux-s390-low.cc (the_low_target): Remove the op field.
948
b31cdfa6
TBA
9492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
950
951 Remove the 'supports_hardware_single_step' linux target op and
952 override the process_stratum_target's op definition in
953 linux_process_target to return true.
954
955 * linux-low.h (struct linux_target_ops): Remove the op.
956 (class linux_process_target) <finish_step_over>
957 <maybe_hw_step>: Declare.
958 * linux-low.cc (can_hardware_single_step): Remove.
959 (maybe_hw_step): Turn into...
960 (linux_process_target::maybe_hw_step): ...this.
961 (finish_step_over): Turn into...
962 (linux_process_target::finish_step_over): ...this.
963 (linux_process_target::supports_hardware_single_step): Update
964 to return true.
965
966 Update the callers below.
967
968 (linux_process_target::single_step)
969 (linux_process_target::resume_one_lwp_throw)
970
971 * linux-arm-low.cc (class arm_target)
972 <supports_hardware_single_step>: Declare.
973 (arm_supports_hardware_single_step): Turn into...
974 (arm_target::supports_hardware_single_step): ...this.
975 (the_low_target): Remove the op field.
976 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
977 (the_low_target): Remove the op field.
978 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
979 Remove.
980 (the_low_target): Remove the op field.
981 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
982 (the_low_target): Remove the op field.
983 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
984 (the_low_target): Remove the op field.
985 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
986 (the_low_target): Remove the op field.
987 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
988 (the_low_target): Remove the op field.
989 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
990 (the_low_target): Remove the op field.
991 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
992 (the_low_target): Remove the op field.
993 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
994 (the_low_target): Remove the op field.
995 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
996 (the_low_target): Remove the op field.
997 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
998 (the_low_target): Remove the op field.
999 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1000 Remove.
1001 (the_low_target): Remove the op field.
1002
9cfd8715
TBA
10032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1004
1005 Turn the 'supports_range_stepping' linux target op into a method
1006 of linux_process_target.
1007
1008 * linux-low.h (struct linux_target_ops): Remove the op.
1009 (class linux_process_target) <low_supports_range_stepping>: Declare.
1010 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1011 Define.
1012 (linux_process_target::supports_range_stepping): Update the call
1013 site.
1014 * linux-x86-low.cc (class x86_target)
1015 <low_supports_range_stepping>: Declare.
1016 (x86_supports_range_stepping): Turn into...
1017 (x86_target::low_supports_range_stepping): ...this.
1018 (the_low_target): Remove the op field.
1019 * linux-aarch64-low.cc (class aarch64_target)
1020 <low_supports_range_stepping>: Declare.
1021 (aarch64_supports_range_stepping): Turn into...
1022 (aarch64_target::low_supports_range_stepping): ...this.
1023 (the_low_target): Remove the op field.
1024 * linux-arm-low.cc (the_low_target): Remove the op field.
1025 * linux-bfin-low.cc (the_low_target): Ditto.
1026 * linux-crisv32-low.cc (the_low_target): Ditto.
1027 * linux-m32r-low.cc (the_low_target): Ditto.
1028 * linux-m68k-low.cc (the_low_target): Ditto.
1029 * linux-ppc-low.cc (the_low_target): Ditto.
1030 * linux-s390-low.cc (the_low_target): Ditto.
1031 * linux-sh-low.cc (the_low_target): Ditto.
1032 * linux-tic6x-low.cc (the_low_target): Ditto.
1033 * linux-tile-low.cc (the_low_target): Ditto.
1034 * linux-xtensa-low.cc (the_low_target): Ditto.
1035
ab64c999
TBA
10362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1037
1038 Remove the 'emit_ops' linux target ops and let the concrete
1039 linux target define the op by overriding the declaration of
1040 process_stratum_target.
1041
1042 * linux-low.h (struct linux_target_ops): Remove the op.
1043 (class linux_process_target) <emit_ops>: Remove.
1044 * linux-low.cc (linux_process_target::emit_ops): Remove.
1045 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1046 (x86_emit_ops): Turn into...
1047 (x86_target::emit_ops): ...this.
1048 (the_low_target): Remove the op field.
1049 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1050 (aarch64_emit_ops): Turn into...
1051 (aarch64_target::emit_ops): ...this.
1052 (the_low_target): Remove the op field.
1053 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1054 (ppc_emit_ops): Turn into...
1055 (ppc_target::emit_ops): ...this.
1056 (the_low_target): Remove the op field.
1057 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1058 (s390_emit_ops): Turn into...
1059 (s390_target::emit_ops): ...this.
1060 (the_low_target): Remove the op field.
1061 * linux-arm-low.cc (the_low_target): Remove the op field.
1062 * linux-bfin-low.cc (the_low_target): Ditto.
1063 * linux-crisv32-low.cc (the_low_target): Ditto.
1064 * linux-m32r-low.cc (the_low_target): Ditto.
1065 * linux-m68k-low.cc (the_low_target): Ditto.
1066 * linux-sh-low.cc (the_low_target): Ditto.
1067 * linux-tic6x-low.cc (the_low_target): Ditto.
1068 * linux-tile-low.cc (the_low_target): Ditto.
1069 * linux-xtensa-low.cc (the_low_target): Ditto.
1070
809a0c35
TBA
10712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1072
1073 Remove the 'install_fast_tracepoint_jump_pad' and
1074 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1075 concrete linux target define the ops by overriding the declarations
1076 of process_stratum_target.
1077
1078 * linux-low.h (struct linux_target_ops): Remove the ops.
1079 (class linux_process_target) <supports_fast_tracepoints>
1080 <install_fast_tracepoint_jump_pad>
1081 <get_min_fast_tracepoint_insn_len>: Remove.
1082 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1083 (linux_process_target::install_fast_tracepoint_jump_pad)
1084 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1085 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1086 <install_fast_tracepoint_jump_pad>
1087 <get_min_fast_tracepoint_insn_len>: Declare.
1088 (x86_target::supports_fast_tracepoints): Define.
1089 (x86_install_fast_tracepoint_jump_pad): Turn into...
1090 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1091 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1092 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1093 (the_low_target): Remove the op fields.
1094 * linux-aarch64-low.cc (class aarch64_target)
1095 <supports_fast_tracepoints>
1096 <install_fast_tracepoint_jump_pad>
1097 <get_min_fast_tracepoint_insn_len>: Declare.
1098 (aarch64_target::supports_fast_tracepoints): Define.
1099 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1100 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1101 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1102 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1103 (the_low_target): Remove the op fields.
1104 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1105 <install_fast_tracepoint_jump_pad>
1106 <get_min_fast_tracepoint_insn_len>: Declare.
1107 (ppc_target::supports_fast_tracepoints): Define.
1108 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1109 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1110 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1111 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1112 (the_low_target): Remove the op fields.
1113 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1114 <install_fast_tracepoint_jump_pad>
1115 <get_min_fast_tracepoint_insn_len>: Declare.
1116 (s390_target::supports_fast_tracepoints): Define.
1117 (s390_install_fast_tracepoint_jump_pad): Turn into...
1118 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1119 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1120 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1121 (the_low_target): Remove the op fields.
1122 * linux-arm-low.cc (the_low_target): Remove the op fields.
1123 * linux-bfin-low.cc (the_low_target): Ditto.
1124 * linux-crisv32-low.cc (the_low_target): Ditto.
1125 * linux-m32r-low.cc (the_low_target): Ditto.
1126 * linux-m68k-low.cc (the_low_target): Ditto.
1127 * linux-sh-low.cc (the_low_target): Ditto.
1128 * linux-tic6x-low.cc (the_low_target): Ditto.
1129 * linux-tile-low.cc (the_low_target): Ditto.
1130 * linux-xtensa-low.cc (the_low_target): Ditto.
1131
13e567af
TBA
11322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1133
1134 Turn the 'get_thread_area' linux target op into a method of
1135 process_stratum_target.
1136
1137 * linux-low.h (struct linux_target_ops): Remove the op.
1138 (class linux_process_target) <stuck_in_jump_pad>
1139 <linux_fast_tracepoint_collecting>
1140 <low_get_thread_area>: Declare.
1141 * linux-low.cc (supports_fast_tracepoints): Remove.
1142 (linux_fast_tracepoint_collecting): Turn into...
1143 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1144 (linux_process_target::low_get_thread_area): Define.
1145 (stuck_in_jump_pad_callback): Turn into...
1146 (linux_process_target::stuck_in_jump_pad): ...this.
1147
1148 Update the caller below.
1149
1150 (linux_process_target::stabilize_threads)
1151
1152 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1153 Declare.
1154 (x86_get_thread_area): Turn into...
1155 (x86_target::low_get_thread_area): ...this.
1156 (the_low_target): Remove the op field.
1157 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1158 Declare.
1159 (aarch64_get_thread_area): Turn into...
1160 (aarch64_target::low_get_thread_area): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1163 Declare.
1164 (ppc_get_thread_area): Turn into...
1165 (ppc_target::low_get_thread_area): ...this.
1166 (the_low_target): Remove the op field.
1167 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1168 Declare.
1169 (s390_get_thread_area): Turn into...
1170 (s390_target::low_get_thread_area): ...this.
1171 (the_low_target): Remove the op field.
1172 * linux-arm-low.cc (the_low_target): Remove the op field.
1173 * linux-bfin-low.cc (the_low_target): Ditto.
1174 * linux-crisv32-low.cc (the_low_target): Ditto.
1175 * linux-m32r-low.cc (the_low_target): Ditto.
1176 * linux-m68k-low.cc (the_low_target): Ditto.
1177 * linux-sh-low.cc (the_low_target): Ditto.
1178 * linux-tic6x-low.cc (the_low_target): Ditto.
1179 * linux-tile-low.cc (the_low_target): Ditto.
1180 * linux-xtensa-low.cc (the_low_target): Ditto.
1181
47f70aa7
TBA
11822020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1183
1184 Remote the 'supports_tracepoints' linux target op and let the
1185 concrete linux target define it by overriding the op declared in
1186 process_stratum_target.
1187
1188 * linux-low.h (struct linux_target_ops): Remove the op.
1189 (class linux_process_target) <supports_tracepoints>: Remove.
1190 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1191 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1192 Declare.
1193 (x86_supports_tracepoints): Turn into...
1194 (x86_target::supports_tracepoints): ...this.
1195 (the_low_target): Remove the op field.
1196 * linux-aarch64-low.cc (class aarch64_target)
1197 <supports_tracepoints>: Declare.
1198 (aarch64_supports_tracepoints): Turn into...
1199 (aarch64_target::supports_tracepoints): ...this.
1200 (the_low_target): Remove the op field.
1201 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1202 Declare.
1203 (ppc_supports_tracepoints): Turn into...
1204 (ppc_target::supports_tracepoints): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1207 Declare.
1208 (s390_supports_tracepoints): Turn into...
1209 (s390_target::supports_tracepoints): ...this.
1210 (the_low_target): Remove the op field.
1211 * linux-arm-low.cc (the_low_target): Remove the op field.
1212 * linux-bfin-low.cc (the_low_target): Ditto.
1213 * linux-crisv32-low.cc (the_low_target): Ditto.
1214 * linux-m32r-low.cc (the_low_target): Ditto.
1215 * linux-m68k-low.cc (the_low_target): Ditto.
1216 * linux-sh-low.cc (the_low_target): Ditto.
1217 * linux-tic6x-low.cc (the_low_target): Ditto.
1218 * linux-tile-low.cc (the_low_target): Ditto.
1219 * linux-xtensa-low.cc (the_low_target): Ditto.
1220
a5b5da92
TBA
12212020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1222
1223 Remove the 'process_qsupported' linux target op and let a concrete
1224 linux target define the op by overriding the op declaration in
1225 process_stratum_target.
1226
1227 * linux-low.h (struct linux_target_ops): Remove the op.
1228 (class linux_process_target) <process_qsupported>: Remove.
1229 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1230 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1231 (x86_linux_process_qsupported): Turn into...
1232 (x86_target::process_qsupported): ...this.
1233 (the_low_target): Remove the op field.
1234 * linux-aarch64-low.cc (the_low_target): Remove the op
1235 field.
1236 * linux-arm-low.cc (the_low_target): Ditto.
1237 * linux-bfin-low.cc (the_low_target): Ditto.
1238 * linux-crisv32-low.cc (the_low_target): Ditto.
1239 * linux-m32r-low.cc (the_low_target): Ditto.
1240 * linux-m68k-low.cc (the_low_target): Ditto.
1241 * linux-ppc-low.cc (the_low_target): Ditto.
1242 * linux-s390-low.cc (the_low_target): Ditto.
1243 * linux-sh-low.cc (the_low_target): Ditto.
1244 * linux-tic6x-low.cc (the_low_target): Ditto.
1245 * linux-tile-low.cc (the_low_target): Ditto.
1246 * linux-xtensa-low.cc (the_low_target): Ditto.
1247
d7599cc0
TBA
12482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1249
1250 Turn the 'prepare_to_resume' linux target op into a method of
1251 linux_process_target.
1252
1253 * linux-low.h (struct linux_target_ops): Remove the op.
1254 (class linux_process_target) <low_prepare_to_resume>: Declare.
1255 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1256 Define.
1257
1258 Update the callers below:
1259
1260 (linux_process_target::resume_one_lwp_throw)
1261 (linux_process_target::low_prepare_to_resume)
1262
1263 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1264 Declare.
1265 (x86_target::low_prepare_to_resume): Define.
1266 (the_low_target): Remove the op field.
1267 * linux-aarch64-low.cc (class aarch64_target)
1268 <low_prepare_to_resume>: Declare.
1269 (aarch64_target::low_prepare_to_resume): Define.
1270 (the_low_target): Remove the op field.
1271 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1272 Declare.
1273 (arm_prepare_to_resume): Turn into...
1274 (arm_target::low_prepare_to_resume): ...this.
1275 (the_low_target): Remove the op field.
1276 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1277 Declare.
1278 (mips_linux_prepare_to_resume): Turn into...
1279 (mips_target::low_prepare_to_resume): ...this.
1280 (the_low_target): Remove the op field.
1281 * linux-bfin-low.cc (the_low_target): Remove the op field.
1282 * linux-crisv32-low.cc (the_low_target): Ditto.
1283 * linux-m32r-low.cc (the_low_target): Ditto.
1284 * linux-m68k-low.cc (the_low_target): Ditto.
1285 * linux-ppc-low.cc (the_low_target): Ditto.
1286 * linux-s390-low.cc (the_low_target): Ditto.
1287 * linux-sh-low.cc (the_low_target): Ditto.
1288 * linux-tic6x-low.cc (the_low_target): Ditto.
1289 * linux-tile-low.cc (the_low_target): Ditto.
1290 * linux-xtensa-low.cc (the_low_target): Ditto.
1291
fd000fb3
TBA
12922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1293
1294 Turn the 'new_process', 'delete_process', 'new_thread',
1295 'delete_thread', and 'new_fork' linux target ops into methods
1296 of linux_process_target.
1297
1298 * linux-low.h (struct linux_target_ops): Remove the ops.
1299 (class linux_process_target) <add_linux_process>
1300 <add_lwp>
1301 <delete_lwp>
1302 <attach_lwp>
1303 <detach_one_lwp>
1304 <check_zombie_leaders>
1305 <filter_exit_event>
1306 <low_new_process>
1307 <low_delete_process>
1308 <low_new_thread>
1309 <low_delete_thread>
1310 <low_new_fork>: Declare.
1311 * linux-low.cc (delete_lwp): Turn into...
1312 (linux_process_target::delete_lwp): ...this.
1313 (linux_process_target::low_delete_thread): Define.
1314 (linux_add_process): Turn into...
1315 (linux_process_target::add_linux_process): ...this.
1316 (linux_process_target::low_new_process): Define.
1317 (linux_process_target::low_delete_process): Define.
1318 (linux_process_target::low_new_fork): Define.
1319 (add_lwp): Turn into...
1320 (linux_process_target::add_lwp): ...this.
1321 (linux_process_target::low_new_thread): Define.
1322 (linux_attach_lwp): Turn into...
1323 (linux_process_target::attach_lwp): ...this.
1324 (linux_detach_one_lwp): Turn into...
1325 (linux_process_target::detach_one_lwp): ...this.
1326 (linux_detach_lwp_callback): Remove and inline...
1327 (linux_process_target::detach): ...here.
1328 (check_zombie_leaders): Turn into...
1329 (linux_process_target::check_zombie_leaders): ...this.
1330 (filter_exit_event): Turn into...
1331 (linux_process_target::filter_exit_event): ...this.
1332
1333 Update the callers below.
1334
1335 (linux_process_target::handle_extended_wait)
1336 (linux_process_target::create_inferior)
1337 (attach_proc_task_lwp_callback)
1338 (linux_process_target::attach)
1339 (linux_process_target::detach)
1340 (linux_process_target::mourn)
1341 * thread-db.cc (attach_thread)
1342
1343 * linux-x86-low.cc (class x86_target) <low_new_process>
1344 <low_delete_process>
1345 <low_new_thread>
1346 <low_delete_thread>
1347 <low_new_fork>: Declare.
1348 (x86_linux_new_process): Turn into...
1349 (x86_target::low_new_process): ...this.
1350 (x86_linux_delete_process): Turn into...
1351 (x86_target::low_delete_process): ...this.
1352 (x86_target::low_new_thread): Define.
1353 (x86_target::low_delete_thread): Define.
1354 (x86_linux_new_fork): Turn into...
1355 (x86_target::low_new_fork): ...this.
1356 (the_low_target): Remove the op fields.
1357 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1358 <low_delete_process>
1359 <low_new_thread>
1360 <low_delete_thread>
1361 <low_new_fork>: Declare.
1362 (aarch64_linux_new_process): Turn into...
1363 (aarch64_target::low_new_process): ...this.
1364 (aarch64_linux_delete_process): Turn into...
1365 (aarch64_target::low_delete_process): ...this.
1366 (aarch64_target::low_new_thread): Define.
1367 (aarch64_target::low_delete_thread): Define.
1368 (aarch64_linux_new_fork): Turn into...
1369 (aarch64_target::low_new_fork): ...this.
1370 (the_low_target): Remove the op fields.
1371 * linux-arm-low.cc (class arm_target) <low_new_process>
1372 <low_delete_process>
1373 <low_new_thread>
1374 <low_delete_thread>
1375 <low_new_fork>: Declare.
1376 (arm_new_process): Turn into...
1377 (arm_target::low_new_process): ...this.
1378 (arm_delete_process): Turn into...
1379 (arm_target::low_delete_process): ...this.
1380 (arm_new_thread): Turn into...
1381 (arm_target::low_new_thread): ...this.
1382 (arm_delete_thread): Turn into...
1383 (arm_target::low_delete_thread): ...this.
1384 (arm_new_fork): Turn into...
1385 (arm_target::low_new_fork): ...this.
1386 (the_low_target): Remove the op fields.
1387 * linux-mips-low.cc (class mips_target) <low_new_process>
1388 <low_delete_process>
1389 <low_new_thread>
1390 <low_delete_thread>
1391 <low_new_fork>: Declare.
1392 (mips_linux_new_process): Turn into...
1393 (mips_target::low_new_process): ...this.
1394 (mips_linux_delete_process): Turn into...
1395 (mips_target::low_delete_process): ...this.
1396 (mips_linux_new_thread): Turn into...
1397 (mips_target::low_new_thread): ...this.
1398 (mips_linux_delete_thread): Turn into...
1399 (mips_target::low_delete_thread): ...this.
1400 (mips_linux_new_fork): Turn into...
1401 (mips_target::low_new_fork): ...this.
1402 (the_low_target): Remove the op fields.
1403 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1404 * linux-crisv32-low.cc (the_low_target): Ditto.
1405 * linux-m32r-low.cc (the_low_target): Ditto.
1406 * linux-m68k-low.cc (the_low_target): Ditto.
1407 * linux-ppc-low.cc (the_low_target): Ditto.
1408 * linux-s390-low.cc (the_low_target): Ditto.
1409 * linux-sh-low.cc (the_low_target): Ditto.
1410 * linux-tic6x-low.cc (the_low_target): Ditto.
1411 * linux-tile-low.cc (the_low_target): Ditto.
1412 * linux-xtensa-low.cc (the_low_target): Ditto.
1413
cb63de7c
TBA
14142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1415
1416 Turn the 'siginfo_fixup' linux target op into a method of
1417 linux_process_target.
1418
1419 * linux-low.h (struct linux_target_ops): Remove the op.
1420 (class linux_process_target) <siginfo_fixup>
1421 <low_siginfo_fixup>: Declare.
1422 * linux-low.cc (siginfo_fixup): Turn into...
1423 (linux_process_target::siginfo_fixup): ...this.
1424 (linux_process_target::low_siginfo_fixup): Define.
1425 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1426 (x86_siginfo_fixup): Turn into...
1427 (x86_target::low_siginfo_fixup): ...this.
1428 (the_low_target): Remove the op field.
1429 * linux-aarch64-low.cc (class aarch64_target):
1430 <low_siginfo_fixup>: Declare.
1431 (aarch64_linux_siginfo_fixup): Turn into...
1432 (aarch64_target::low_siginfo_fixup): ...this.
1433 (the_low_target): Remove the op field.
1434 * linux-arm-low.cc (the_low_target): Remove the op field.
1435 * linux-bfin-low.cc (the_low_target): Ditto.
1436 * linux-crisv32-low.cc (the_low_target): Ditto.
1437 * linux-m32r-low.cc (the_low_target): Ditto.
1438 * linux-m68k-low.cc (the_low_target): Ditto.
1439 * linux-mips-low.cc (the_low_target): Ditto.
1440 * linux-ppc-low.cc (the_low_target): Ditto.
1441 * linux-s390-low.cc (the_low_target): Ditto.
1442 * linux-sh-low.cc (the_low_target): Ditto.
1443 * linux-tic6x-low.cc (the_low_target): Ditto.
1444 * linux-tile-low.cc (the_low_target): Ditto.
1445 * linux-xtensa-low.cc (the_low_target): Ditto.
1446
b35db733
TBA
14472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1448
1449 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1450 linux target ops into methods of linux_process_target.
1451
1452 * linux-low.h (struct linux_target_ops): Remove the ops.
1453 (class linux_process_target) <low_collect_ptrace_register>
1454 <low_store_ptrace_register>: Declare.
1455 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1456 (linux_process_target::low_supply_ptrace_register): Define.
1457
1458 Update the callers below.
1459
1460 (linux_process_target::fetch_register)
1461 (linux_process_target::store_register)
1462
1463 * linux-x86-low.cc (the_low_target): Remove the op fields.
1464 * linux-aarch64-low.cc (the_low_target): Ditto.
1465 * linux-arm-low.cc (the_low_target): Ditto.
1466 * linux-bfin-low.cc (the_low_target): Ditto.
1467 * linux-crisv32-low.cc (the_low_target): Ditto.
1468 * linux-m32r-low.cc (the_low_target): Ditto.
1469 * linux-m68k-low.cc (the_low_target): Ditto.
1470 * linux-sh-low.cc (the_low_target): Ditto.
1471 * linux-sparc-low.cc (the_low_target): Ditto.
1472 * linux-tic6x-low.cc (the_low_target): Ditto.
1473 * linux-tile-low.cc (the_low_target): Ditto.
1474 * linux-xtensa-low.cc (the_low_target): Ditto.
1475 * linux-mips-low.cc (class mips_target)
1476 <low_collect_ptrace_register>
1477 <low_supply_ptrace_register>: Declare.
1478 (mips_collect_ptrace_register): Turn into ...
1479 (mips_target::low_collect_ptrace_register): ...this.
1480 (mips_supply_ptrace_register): Turn into...
1481 (mips_target::low_supply_ptrace_register): ...this.
1482 (the_low_target): Remove the op fields.
1483 * linux-ppc-low.cc (class ppc_target)
1484 <low_collect_ptrace_register>
1485 <low_supply_ptrace_register>: Declare.
1486 (ppc_collect_ptrace_register): Turn into ...
1487 (ppc_target::low_collect_ptrace_register): ...this.
1488 (ppc_supply_ptrace_register): Turn into ...
1489 (ppc_target::low_supply_ptrace_register): ...this.
1490 (ppc_fill_gregset): Update for the calls to
1491 low_collect_ptrace_register.
1492 (the_low_target): Remove the op fields.
1493 * linux-s390-low.cc (class s390_target)
1494 <low_collect_ptrace_register>
1495 <low_supply_ptrace_register>: Declare.
1496 (s390_collect_ptrace_register): Turn into ...
1497 (s390_target::low_collect_ptrace_register): ...this.
1498 (s390_supply_ptrace_register): Turn into ...
1499 (s390_target::low_supply_ptrace_register): ...this.
1500 (s390_fill_gregset): Update for the calls to
1501 low_collect_ptrace_register.
1502 (the_low_target): Remove the op fields.
1503
ac1bbaca
TBA
15042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1505
1506 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1507 target ops into methods of linux_process_target.
1508
1509 * linux-low.h (struct linux_target_ops): Remove the ops.
1510 (class linux_process_target) <check_stopped_by_watchpoint>
1511 <low_stopped_by_watchpoint>
1512 <low_stopped_data_address>: Declare.
1513 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1514 (linux_process_target::check_stopped_by_watchpoint): ...this.
1515 (linux_process_target::low_stopped_by_watchpoint): Define.
1516 (linux_process_target::low_stopped_data_address): Define.
1517 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1518 <low_stopped_data_address>: Declare.
1519 (x86_stopped_by_watchpoint): Turn into...
1520 (x86_target::low_stopped_by_watchpoint): ...this.
1521 (x86_stopped_data_address): Turn into...
1522 (x86_target::low_stopped_data_address): ...this.
1523 (the_low_target): Remove the op fields.
1524 * linux-aarch64-low.cc (class aarch64_target)
1525 <low_stopped_by_watchpoint>
1526 <low_stopped_data_address>: Declare.
1527 (aarch64_stopped_by_watchpoint): Turn into...
1528 (aarch64_target::low_stopped_by_watchpoint): ...this.
1529 (aarch64_stopped_data_address): Turn into...
1530 (aarch64_target::low_stopped_data_address): ...this.
1531 (the_low_target): Remove the op fields.
1532 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1533 <low_stopped_data_address>: Declare.
1534 (arm_stopped_by_watchpoint): Turn into...
1535 (arm_target::low_stopped_by_watchpoint): ...this.
1536 (arm_stopped_data_address): Turn into...
1537 (arm_target::low_stopped_data_address): ...this.
1538 (the_low_target): Remove the op fields.
1539 * linux-crisv32-low.cc (class crisv32_target)
1540 <low_stopped_by_watchpoint>
1541 <low_stopped_data_address>: Declare.
1542 (cris_stopped_by_watchpoint): Turn into...
1543 (crisv32_target::low_stopped_by_watchpoint): ...this.
1544 (cris_stopped_data_address): Turn into...
1545 (crisv32_target::low_stopped_data_address): ...this.
1546 (the_low_target): Remove the op fields.
1547 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1548 <low_stopped_data_address>: Declare.
1549 (mips_stopped_by_watchpoint): Turn into...
1550 (mips_target::low_stopped_by_watchpoint): ...this.
1551 (mips_stopped_data_address): Turn into...
1552 (mips_target::low_stopped_data_address): ...this.
1553 (the_low_target): Remove the op fields.
1554 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1555 * linux-m32r-low.cc (the_low_target): Ditto.
1556 * linux-m68k-low.cc (the_low_target): Ditto.
1557 * linux-ppc-low.cc (the_low_target): Ditto.
1558 * linux-s390-low.cc (the_low_target): Ditto.
1559 * linux-sh-low.cc (the_low_target): Ditto.
1560 * linux-sparc-low.cc (the_low_target): Ditto.
1561 * linux-tic6x-low.cc (the_low_target): Ditto.
1562 * linux-tile-low.cc (the_low_target): Ditto.
1563 * linux-xtensa-low.cc (the_low_target): Ditto.
1564
9db9aa23
TBA
15652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1566
1567 Turn the 'insert_point' and 'remove_point' linux target ops into
1568 methods of linux_process_target.
1569
1570 * linux-low.h (struct linux_target_ops): Remove the ops.
1571 (class linux_process_target) <low_insert_point>
1572 <low_remove_point>: Declare.
1573 * linux-low.cc (linux_process_target::low_insert_point)
1574 (linux_process_target::low_remove_point): Define.
1575 (linux_process_target::insert_point)
1576 (linux_process_target::remove_point): Update for calls to
1577 low_insert_point and low_remove_point.
1578 * linux-x86-low.cc (class x86_target) <low_insert_point>
1579 <low_remove_point>: Declare.
1580 (x86_insert_point): Turn into...
1581 (x86_target::low_insert_point): ...this.
1582 (x86_remove_point): Turn into...
1583 (x86_target::low_remove_point): ...this.
1584 (the_low_target): Remove the op fields.
1585 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1586 <low_remove_point>: Declare.
1587 (aarch64_insert_point): Turn into...
1588 (aarch64_target::low_insert_point): ...this.
1589 (aarch64_remove_point): Turn into...
1590 (aarch64_target::low_remove_point): ...this.
1591 (the_low_target): Remove the op fields.
1592 * linux-arm-low.cc (class arm_target) <low_insert_point>
1593 <low_remove_point>: Declare.
1594 (arm_insert_point): Turn into...
1595 (arm_target::low_insert_point): ...this.
1596 (arm_remove_point): Turn into...
1597 (arm_target::low_remove_point): ...this.
1598 (the_low_target): Remove the op fields.
1599 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1600 <low_remove_point>: Declare.
1601 (crisv32_insert_point): Turn into...
1602 (crisv32_target::low_insert_point): ...this.
1603 (crisv32_remove_point): Turn into...
1604 (crisv32_target::low_remove_point): ...this.
1605 (the_low_target): Remove the op fields.
1606 * linux-mips-low.cc (class mips_target) <low_insert_point>
1607 <low_remove_point>: Declare.
1608 (mips_insert_point): Turn into...
1609 (mips_target::low_insert_point): ...this.
1610 (mips_remove_point): Turn into...
1611 (mips_target::low_remove_point): ...this.
1612 (the_low_target): Remove the op fields.
1613 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1614 <low_remove_point>: Declare.
1615 (ppc_insert_point): Turn into...
1616 (ppc_target::low_insert_point): ...this.
1617 (ppc_remove_point): Turn into...
1618 (ppc_target::low_remove_point): ...this.
1619 (the_low_target): Remove the op fields.
1620 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1621 * linux-m32r-low.cc (the_low_target): Ditto.
1622 * linux-m68k-low.cc (the_low_target): Ditto.
1623 * linux-s390-low.cc (the_low_target): Ditto.
1624 * linux-sh-low.cc (the_low_target): Ditto.
1625 * linux-sparc-low.cc (the_low_target): Ditto.
1626 * linux-tic6x-low.cc (the_low_target): Ditto.
1627 * linux-tile-low.cc (the_low_target): Ditto.
1628 * linux-xtensa-low.cc (the_low_target): Ditto.
1629
007c9b97
TBA
16302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1631
1632 Remove the 'supports_z_point_type' linux target op and let the
1633 concrete linux target define it by overriding the op declared in
1634 process_stratum_target.
1635
1636 * linux-low.cc (linux_process_target::supports_z_point_type):
1637 Remove.
1638 * linux-low.h (struct linux_target_ops): Remove the op.
1639 (class linux_process_target) <supports_z_point_type>: Remove.
1640 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1641 Declare.
1642 (x86_supports_z_point_type): Turn into...
1643 (x86_target::supports_z_point_type): ...this.
1644 (the_low_target): Remove the op field.
1645 * linux-aarch64-low.cc (class aarch64_target)
1646 <supports_z_point_type>: Declare.
1647 (aarch64_supports_z_point_type): Turn into...
1648 (aarch64_target::supports_z_point_type): ...this.
1649 (the_low_target): Remove the op field.
1650 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1651 Declare.
1652 (arm_supports_z_point_type): Turn into...
1653 (arm_target::supports_z_point_type): ...this.
1654 (the_low_target): Remove the op field.
1655 * linux-crisv32-low.cc (class crisv32_target)
1656 <supports_z_point_type>: Declare.
1657 (cris_supports_z_point_type): Turn into...
1658 (crisv32_target::supports_z_point_type): ...this.
1659 (the_low_target): Remove the op field.
1660 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1661 Declare.
1662 (mips_supports_z_point_type): Turn into...
1663 (mips_target::supports_z_point_type): ...this.
1664 (the_low_target): Remove the op field.
1665 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1666 Declare.
1667 (ppc_supports_z_point_type): Turn into...
1668 (ppc_target::supports_z_point_type): ...this.
1669 (the_low_target): Remove the op field.
1670 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1671 Declare.
1672 (s390_supports_z_point_type): Turn into...
1673 (s390_target::supports_z_point_type): ...this.
1674 (the_low_target): Remove the op field.
1675 * linux-bfin-low.cc (the_low_target): Remove the op field.
1676 * linux-m32r-low.cc (the_low_target): Ditto.
1677 * linux-m68k-low.cc (the_low_target): Ditto.
1678 * linux-sh-low.cc (the_low_target): Ditto.
1679 * linux-sparc-low.cc (the_low_target): Ditto.
1680 * linux-tic6x-low.cc (the_low_target): Ditto.
1681 * linux-tile-low.cc (the_low_target): Ditto.
1682 * linux-xtensa-low.cc (the_low_target): Ditto.
1683
d7146cda
TBA
16842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1685
1686 Turn the 'breakpoint_at' linux target op into a method of
1687 linux_process_target.
1688
1689 * linux-low.h (struct linux_target_ops): Remove the op.
1690 (class linux_process_target) <low_breakpoint_at>: Declare.
1691
1692 Update the callers below:
1693
1694 * linux-low.cc (linux_process_target::save_stop_reason)
1695 (linux_process_target::thread_still_has_status_pending)
1696 (linux_process_target::wait_1)
1697
1698 * linux-x86-low.cc (class x86_target)
1699 <low_breakpoint_at>: Declare.
1700 (x86_breakpoint_at): Turn into...
1701 (x86_target::low_breakpoint_at): ...this.
1702 (the_low_target): Remove the op field.
1703 * linux-aarch64-low.cc (class aarch64_target)
1704 <low_breakpoint_at>: Declare.
1705 (aarch64_breakpoint_at): Turn into...
1706 (aarch64_target::low_breakpoint_at): ...this.
1707 (the_low_target): Remove the op field.
1708 * linux-arm-low.cc (class arm_target)
1709 <low_breakpoint_at>: Declare.
1710 (arm_target::low_breakpoint_at): Define.
1711 (the_low_target): Remove the op field.
1712 * linux-bfin-low.cc (class bfin_target)
1713 <low_breakpoint_at>: Declare.
1714 (bfin_breakpoint_at): Turn into...
1715 (bfin_target::low_breakpoint_at): ...this.
1716 (the_low_target): Remove the op field.
1717 * linux-cris-low.cc (class cris_target)
1718 <low_breakpoint_at>: Declare.
1719 (cris_breakpoint_at): Turn into...
1720 (cris_target::low_breakpoint_at): ...this.
1721 (the_low_target): Remove the op field.
1722 * linux-crisv32-low.cc (class crisv32_target)
1723 <low_breakpoint_at>: Declare.
1724 (crisv32_breakpoint_at): Turn into...
1725 (crisv32_target::low_breakpoint_at): ...this.
1726 (the_low_target): Remove the op field.
1727 * linux-ia64-low.cc (class ia64_target)
1728 <low_breakpoint_at>: Declare.
1729 (ia64_target::low_breakpoint_at): Define.
1730 * linux-m32r-low.cc (class m32r_target)
1731 <low_breakpoint_at>: Declare.
1732 (m32r_breakpoint_at): Turn into...
1733 (m32r_target::low_breakpoint_at): ...this.
1734 (the_low_target): Remove the op field.
1735 * linux-m68k-low.cc (class m68k_target)
1736 <low_breakpoint_at>: Declare.
1737 (m68k_breakpoint_at): Turn into...
1738 (m68k_target::low_breakpoint_at): ...this.
1739 (the_low_target): Remove the op field.
1740 * linux-mips-low.cc (class mips_target)
1741 <low_breakpoint_at>: Declare.
1742 (mips_breakpoint_at): Turn into...
1743 (mips_target::low_breakpoint_at): ...this.
1744 (the_low_target): Remove the op field.
1745 * linux-nios2-low.cc (class nios2_target)
1746 <low_breakpoint_at>: Declare.
1747 (nios2_breakpoint_at): Turn into...
1748 (nios2_target::low_breakpoint_at): ...this.
1749 (the_low_target): Remove the op field.
1750 * linux-ppc-low.cc (class ppc_target)
1751 <low_breakpoint_at>: Declare.
1752 (ppc_breakpoint_at): Turn into...
1753 (ppc_target::low_breakpoint_at): ...this.
1754 (the_low_target): Remove the op field.
1755 * linux-riscv-low.cc (class riscv_target)
1756 <low_breakpoint_at>: Declare.
1757 (riscv_breakpoint_at): Turn into...
1758 (riscv_target::low_breakpoint_at): ...this.
1759 (the_low_target): Remove the op field.
1760 * linux-s390-low.cc (class s390_target)
1761 <low_breakpoint_at>: Declare.
1762 (s390_breakpoint_at): Turn into...
1763 (s390_target::low_breakpoint_at): ...this.
1764 (the_low_target): Remove the op field.
1765 * linux-sh-low.cc (class sh_target)
1766 <low_breakpoint_at>: Declare.
1767 (sh_breakpoint_at): Turn into...
1768 (sh_target::low_breakpoint_at): ...this.
1769 (the_low_target): Remove the op field.
1770 * linux-sparc-low.cc (class sparc_target)
1771 <low_breakpoint_at>: Declare.
1772 (sparc_breakpoint_at): Turn into...
1773 (sparc_target::low_breakpoint_at): ...this.
1774 (the_low_target): Remove the op field.
1775 * linux-tic6x-low.cc (class tic6x_target)
1776 <low_breakpoint_at>: Declare.
1777 (tic6x_breakpoint_at): Turn into...
1778 (tic6x_target::low_breakpoint_at): ...this.
1779 (the_low_target): Remove the op field.
1780 * linux-tile-low.cc (class tile_target)
1781 <low_breakpoint_at>: Declare.
1782 (tile_breakpoint_at): Turn into...
1783 (tile_target::low_breakpoint_at): ...this.
1784 (the_low_target): Remove the op field.
1785 * linux-xtensa-low.cc (class xtensa_target)
1786 <low_breakpoint_at>: Declare.
1787 (xtensa_breakpoint_at): Turn into...
1788 (xtensa_target::low_breakpoint_at): ...this.
1789 (the_low_target): Remove the op field.
1790
d4807ea2
TBA
17912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1792
1793 Turn the 'decr_pc_after_break' linux_target_ops field into
1794 a method of linux_process_target.
1795
1796 * linux-low.h (struct linux_target_ops)
1797 <decr_pc_after_break>: Remove.
1798 (class linux_process_target) <low_decr_pc_after_break>: New method
1799 declaration.
1800 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1801 New method implementation.
1802
1803 Update the users below.
1804
1805 (linux_process_target::save_stop_reason)
1806 (linux_process_target::wait_1)
1807 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1808 New declaration.
1809 (x86_target::low_decr_pc_after_break): New method implementation.
1810 (the_low_target): Remove the field.
1811 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1812 New declaration.
1813 (bfin_target::low_decr_pc_after_break): New method implementation.
1814 (the_low_target): Remove the field.
1815 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1816 New declaration.
1817 (m68k_target::low_decr_pc_after_break): New method implementation.
1818 (the_low_target): Remove the field.
1819 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1820 New declaration.
1821 (s390_target::low_decr_pc_after_break): New method implementation.
1822 (the_low_target): Remove the field.
1823 * linux-aarch64-low.cc (the_low_target): Remove the field.
1824 * linux-arm-low.cc (the_low_target): Remove the field.
1825 * linux-cris-low.cc (the_low_target): Remove the field.
1826 * linux-crisv32-low.cc (the_low_target): Remove the field.
1827 * linux-m32r-low.cc (the_low_target): Remove the field.
1828 * linux-mips-low.cc (the_low_target): Remove the field.
1829 * linux-nios2-low.cc (the_low_target): Remove the field.
1830 * linux-ppc-low.cc (the_low_target): Remove the field.
1831 * linux-riscv-low.cc (the_low_target): Remove the field.
1832 * linux-sh-low.cc (the_low_target): Remove the field.
1833 * linux-sparc-low.cc (the_low_target): Remove the field.
1834 * linux-tic6x-low.cc (the_low_target): Remove the field.
1835 * linux-tile-low.cc (the_low_target): Remove the field.
1836 * linux-xtensa-low.cc (the_low_target): Remove the field.
1837
7582c77c
TBA
18382020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1839
1840 Remove the 'supports_software_single_step' linux target op and let
1841 the concrete linux target define it by overriding the op in
1842 process_stratum_target.
1843 Turn the 'get_next_pcs' linux target op into a method of
1844 linux_process_target.
1845
1846 * linux-low.h (struct linux_target_ops): Remove the ops.
1847 (class linux_process_target) <supports_software_single_step>:
1848 Remove.
1849 <low_get_next_pcs>: Declare.
1850 * linux-low.cc (can_software_single_step): Remove.
1851 (linux_process_target::low_get_next_pcs): Define.
1852 (linux_process_target::supports_software_single_step): Remove.
1853
1854 Update the callers below.
1855
1856 (linux_process_target::handle_extended_wait)
1857 (linux_process_target::wait_1)
1858 (linux_process_target::install_software_single_step_breakpoints)
1859 (linux_process_target::single_step)
1860 (linux_process_target::thread_needs_step_over)
1861 (linux_process_target::proceed_one_lwp)
1862 (linux_process_target::supports_range_stepping)
1863
1864 * linux-x86-low.cc (the_low_target): Remove the op field.
1865 * linux-aarch64-low.cc (the_low_target): Ditto.
1866 * linux-bfin-low.cc (the_low_target): Ditto.
1867 * linux-cris-low.cc (the_low_target): Ditto.
1868 * linux-crisv32-low.cc (the_low_target): Ditto.
1869 * linux-m32r-low.cc (the_low_target): Ditto.
1870 * linux-m68k-low.cc (the_low_target): Ditto.
1871 * linux-mips-low.cc (the_low_target): Ditto.
1872 * linux-nios2-low.cc (the_low_target): Ditto.
1873 * linux-ppc-low.cc (the_low_target): Ditto.
1874 * linux-riscv-low.cc (the_low_target): Ditto.
1875 * linux-s390-low.cc (the_low_target): Ditto.
1876 * linux-sh-low.cc (the_low_target): Ditto.
1877 * linux-sparc-low.cc (the_low_target): Ditto.
1878 * linux-tic6x-low.cc (the_low_target): Ditto.
1879 * linux-tile-low.cc (the_low_target): Ditto.
1880 * linux-xtensa-low.cc (the_low_target): Ditto.
1881 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1882 <supports_software_single_step>: Declare.
1883 (arm_target::supports_software_single_step): Define.
1884 (arm_gdbserver_get_next_pcs): Turn into...
1885 (arm_target::low_get_next_pcs): ...this.
1886 (the_low_target): Remove the op field.
1887
3ca4edb6
TBA
18882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1889
1890 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1891 the concrete linux target define it by overriding the op
1892 in process_stratum_target.
1893
1894 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1895 Remove.
1896 * linux-low.h (struct linux_target_ops): Remove the op.
1897 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1898 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1899 Declare.
1900 (x86_sw_breakpoint_from_kind): Turn into...
1901 (x86_target::sw_breakpoint_from_kind): ...this.
1902 (the_low_target): Remove the op field.
1903 * linux-aarch64-low.cc (class aarch64_target)
1904 <sw_breakpoint_from_kind>: Declare.
1905 (aarch64_sw_breakpoint_from_kind): Turn into...
1906 (aarch64_target::sw_breakpoint_from_kind): ...this.
1907 (the_low_target): Remove the op field.
1908 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1909 Declare.
1910 (arm_target::sw_breakpoint_from_kind): Define.
1911 (the_low_target): Remove the op field.
1912 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1913 Declare.
1914 (bfin_sw_breakpoint_from_kind): Turn into...
1915 (bfin_target::sw_breakpoint_from_kind): ...this.
1916 (the_low_target): Remove the op field.
1917 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1918 Declare.
1919 (cris_sw_breakpoint_from_kind): Turn into...
1920 (cris_target::sw_breakpoint_from_kind): ...this.
1921 (the_low_target): Remove the op field.
1922 * linux-crisv32-low.cc (class crisv32_target)
1923 <sw_breakpoint_from_kind>: Declare.
1924 (cris_sw_breakpoint_from_kind): Turn into...
1925 (crisv32_target::sw_breakpoint_from_kind): ...this.
1926 (the_low_target): Remove the op field.
1927 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1928 Declare.
1929 (ia64_target::sw_breakpoint_from_kind): Define.
1930 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1931 Declare.
1932 (m32r_sw_breakpoint_from_kind): Turn into...
1933 (m32r_target::sw_breakpoint_from_kind): ...this.
1934 (the_low_target): Remove the op field.
1935 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1936 Declare.
1937 (m68k_sw_breakpoint_from_kind): Turn into...
1938 (m68k_target::sw_breakpoint_from_kind): ...this.
1939 (the_low_target): Remove the op field.
1940 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1941 Declare.
1942 (mips_sw_breakpoint_from_kind): Turn into...
1943 (mips_target::sw_breakpoint_from_kind): ...this.
1944 (the_low_target): Remove the op field.
1945 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1946 Declare.
1947 (nios2_sw_breakpoint_from_kind): Turn into...
1948 (nios2_target::sw_breakpoint_from_kind): ...this.
1949 (the_low_target): Remove the op field.
1950 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1951 Declare.
1952 (ppc_sw_breakpoint_from_kind): Turn into...
1953 (ppc_target::sw_breakpoint_from_kind): ...this.
1954 (the_low_target): Remove the op field.
1955 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1956 Declare.
1957 (riscv_sw_breakpoint_from_kind): Turn into...
1958 (riscv_target::sw_breakpoint_from_kind): ...this.
1959 (the_low_target): Remove the op field.
1960 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1961 Declare.
1962 (s390_sw_breakpoint_from_kind): Turn into...
1963 (s390_target::sw_breakpoint_from_kind): ...this.
1964 (the_low_target): Remove the op field.
1965 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1966 Declare.
1967 (sh_sw_breakpoint_from_kind): Turn into...
1968 (sh_target::sw_breakpoint_from_kind): ...this.
1969 (the_low_target): Remove the op field.
1970 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1971 Declare.
1972 (sparc_sw_breakpoint_from_kind): Turn into...
1973 (sparc_target::sw_breakpoint_from_kind): ...this.
1974 (the_low_target): Remove the op field.
1975 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1976 Declare.
1977 (tic6x_sw_breakpoint_from_kind): Turn into...
1978 (tic6x_target::sw_breakpoint_from_kind): ...this.
1979 (the_low_target): Remove the op field.
1980 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1981 Declare.
1982 (tile_sw_breakpoint_from_kind): Turn into...
1983 (tile_target::sw_breakpoint_from_kind): ...this.
1984 (the_low_target): Remove the op field.
1985 * linux-xtensa-low.cc (class xtensa_target)
1986 <sw_breakpoint_from_kind>: Declare.
1987 (xtensa_sw_breakpoint_from_kind): Turn into...
1988 (xtensa_target::sw_breakpoint_from_kind): ...this.
1989 (the_low_target): Remove the op field.
1990
06250e4e
TBA
19912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1992
1993 Remove the 'breakpoint_kind_from_pc' and
1994 'breakpoint_kind_from_current_state' linux target ops, and let the
1995 concrete linux target define them by overriding the ops of
1996 process_stratum_target.
1997
1998 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1999 Remove.
2000 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2001 * linux-low.h (struct linux_target_ops): Remove ops.
2002 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2003 <breakpoint_kind_from_current_state>: Remove.
2004 * linux-x86-low.cc (the_low_target): Remove the op fields.
2005 * linux-bfin-low.cc (the_low_target): Ditto.
2006 * linux-cris-low.cc (the_low_target): Ditto.
2007 * linux-crisv32-low.cc (the_low_target): Ditto.
2008 * linux-m32r-low.cc (the_low_target): Ditto.
2009 * linux-m68k-low.cc (the_low_target): Ditto.
2010 * linux-mips-low.cc (the_low_target): Ditto.
2011 * linux-nios2-low.cc (the_low_target): Ditto.
2012 * linux-ppc-low.cc (the_low_target): Ditto.
2013 * linux-s390-low.cc (the_low_target): Ditto.
2014 * linux-sh-low.cc (the_low_target): Ditto.
2015 * linux-sparc-low.cc (the_low_target): Ditto.
2016 * linux-tic6x-low.cc (the_low_target): Ditto.
2017 * linux-tile-low.cc (the_low_target): Ditto.
2018 * linux-xtensa-low.cc (the_low_target): Ditto.
2019 * linux-aarch64-low.cc (class aarch64_target)
2020 <breakpoint_kind_from_pc>
2021 <breakpoint_kind_from_current_state>: Declare.
2022 (aarch64_breakpoint_kind_from_pc): Turn into...
2023 (aarch64_target::breakpoint_kind_from_pc): ...this.
2024 (aarch64_breakpoint_kind_from_current_state): Turn into...
2025 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2026 (the_low_target): Remove the op fields.
2027 * linux-arm-low.cc (class arm_target):
2028 <breakpoint_kind_from_pc>
2029 <breakpoint_kind_from_current_state>: Declare.
2030 (arm_target::breakpoint_kind_from_pc): Define.
2031 (arm_target::breakpoint_kind_from_current_state): Define.
2032 (the_low_target): Remove the op fields.
2033 * linux-riscv-low.cc (class riscv_target):
2034 <breakpoint_kind_from_pc>: Declare.
2035 (riscv_breakpoint_kind_from_pc): Turn into...
2036 (riscv_target::breakpoint_kind_from_pc): ...this.
2037 (the_low_target): Remove the op fields.
2038
bf9ae9d8
TBA
20392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2040
2041 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2042 of linux_process_target.
2043
2044 * linux-low.h (struct linux_target_ops): Remove the ops.
2045 (class linux_process_target) <low_supports_breakpoints>
2046 <low_get_pc>
2047 <low_set_pc>: Declare.
2048 * linux-low.cc (supports_breakpoints): Turn into...
2049 (linux_process_target::low_supports_breakpoints): ...this.
2050 (linux_process_target::low_get_pc): Define.
2051 (linux_process_target::low_set_pc): Define.
2052
2053 Update the callers below.
2054
2055 (linux_process_target::get_pc)
2056 (linux_process_target::save_stop_reason)
2057 (linux_process_target::maybe_move_out_of_jump_pad)
2058 (linux_process_target::wait_1)
2059 (linux_process_target::resume_one_lwp_throw)
2060 (linux_process_target::resume)
2061 (linux_process_target::proceed_all_lwps)
2062 (linux_process_target::read_pc)
2063 (linux_process_target::write_pc)
2064
2065 * linux-x86-low.cc (class linux_process_target)
2066 <low_supports_breakpoints>
2067 <low_get_pc>
2068 <low_set_pc>: Declare.
2069 (x86_target::low_supports_breakpoints): Define.
2070 (x86_get_pc): Turn into...
2071 (x86_target::low_get_pc): ...this.
2072 (x86_set_pc): Turn into...
2073 (x86_target::low_set_pc): ...this.
2074 (the_low_target): Remove the op fields.
2075 * linux-arm-low.cc (class arm_target)
2076 <low_supports_breakpoints>
2077 <low_get_pc>
2078 <low_set_pc>: Declare.
2079 (arm_target::low_supports_breakpoints)
2080 (arm_target::low_get_pc)
2081 (arm_target::low_set_pc): Define.
2082 (the_low_target): Remove the op fields.
2083 * linux-bfin-low.cc (class bfin_target)
2084 <low_supports_breakpoints>
2085 <low_get_pc>
2086 <low_set_pc>: Declare.
2087 (bfin_target::low_supports_breakpoints)
2088 (bfin_target::low_get_pc)
2089 (bfin_target::low_set_pc): Define.
2090 (the_low_target): Remove the op fields.
2091 * linux-cris-low.cc (class cris_target)
2092 <low_supports_breakpoints>
2093 <low_get_pc>
2094 <low_set_pc>: Declare.
2095 (cris_target::low_supports_breakpoints)
2096 (cris_target::low_get_pc)
2097 (cris_target::low_set_pc): Define.
2098 (the_low_target): Remove the op fields.
2099 * linux-crisv32-low.cc (class crisv32_target)
2100 <low_supports_breakpoints>
2101 <low_get_pc>
2102 <low_set_pc>: Declare.
2103 (crisv32_target::low_supports_breakpoints)
2104 (crisv32_target::low_get_pc)
2105 (crisv32_target::low_set_pc): Define.
2106 (the_low_target): Remove the op fields.
2107 * linux-m32r-low.cc (class m32r_target)
2108 <low_supports_breakpoints>
2109 <low_get_pc>
2110 <low_set_pc>: Declare.
2111 (m32r_target::low_supports_breakpoints)
2112 (m32r_target::low_get_pc)
2113 (m32r_target::low_set_pc): Define.
2114 (the_low_target): Remove the op fields.
2115 * linux-m68k-low.cc (class m68k_target)
2116 <low_supports_breakpoints>
2117 <low_get_pc>
2118 <low_set_pc>: Declare.
2119 (m68k_target::low_supports_breakpoints)
2120 (m68k_target::low_get_pc)
2121 (m68k_target::low_set_pc): Define.
2122 (the_low_target): Remove the op fields.
2123 * linux-nios2-low.cc (class nios2_target)
2124 <low_supports_breakpoints>
2125 <low_get_pc>
2126 <low_set_pc>: Declare.
2127 (nios2_target::low_supports_breakpoints)
2128 (nios2_target::low_get_pc)
2129 (nios2_target::low_set_pc): Define.
2130 (the_low_target): Remove the op fields.
2131 * linux-sh-low.cc (class sh_target)
2132 <low_supports_breakpoints>
2133 <low_get_pc>
2134 <low_set_pc>: Declare.
2135 (sh_target::low_supports_breakpoints)
2136 (sh_target::low_get_pc)
2137 (sh_target::low_set_pc): Define.
2138 (the_low_target): Remove the op fields.
2139 * linux-xtensa-low.cc (class xtensa_target)
2140 <low_supports_breakpoints>
2141 <low_get_pc>
2142 <low_set_pc>: Declare.
2143 (xtensa_target::low_supports_breakpoints)
2144 (xtensa_target::low_get_pc)
2145 (xtensa_target::low_set_pc): Define.
2146 (the_low_target): Remove the op fields.
2147 * linux-sparc-low.cc (class sparc_target)
2148 <low_supports_breakpoints>
2149 <low_get_pc>: Declare.
2150 (sparc_target::low_supports_breakpoints)
2151 (sparc_target::low_get_pc): Define.
2152 (the_low_target): Remove the op fields.
2153 * linux-tile-low.cc (class tile_target)
2154 <low_supports_breakpoints>
2155 <low_get_pc>
2156 <low_set_pc>: Declare.
2157 (tile_target::low_supports_breakpoints)
2158 (tile_target::low_get_pc)
2159 (tile_target::low_set_pc): Define.
2160 (the_low_target): Remove the op fields.
2161 * linux-aarch64-low.cc (class aarch64_target)
2162 <low_supports_breakpoints>
2163 <low_get_pc>
2164 <low_set_pc>: Declare.
2165 (aarch64_target::low_supports_breakpoints): Define.
2166 (aarch64_get_pc): Turn into...
2167 (aarch64_target::low_get_pc): ...this.
2168 (aarch64_set_pc): Turn into...
2169 (aarch64_target::low_set_pc): ...this.
2170 (the_low_target): Remove the op fields.
2171 * linux-mips-low.cc (class mips_target)
2172 <low_supports_breakpoints>
2173 <low_get_pc>
2174 <low_set_pc>: Declare.
2175 (mips_target::low_supports_breakpoints): Define.
2176 (mips_get_pc): Turn into...
2177 (mips_target::low_get_pc): ...this.
2178 (mips_set_pc): Turn into...
2179 (mips_target::low_set_pc): ...this.
2180 (the_low_target): Remove the op fields.
2181 * linux-ppc-low.cc (class ppc_target)
2182 <low_supports_breakpoints>
2183 <low_get_pc>
2184 <low_set_pc>: Declare.
2185 (ppc_target::low_supports_breakpoints): Define.
2186 (ppc_get_pc): Turn into...
2187 (ppc_target::low_get_pc): ...this.
2188 (ppc_set_pc): Turn into...
2189 (ppc_target::low_set_pc): ...this.
2190 (the_low_target): Remove the op fields.
2191 * linux-riscv-low.cc (class riscv_target)
2192 <low_supports_breakpoints>
2193 <low_get_pc>
2194 <low_set_pc>: Declare.
2195 (riscv_target::low_supports_breakpoints): Define.
2196 (riscv_get_pc): Turn into...
2197 (riscv_target::low_get_pc): ...this.
2198 (riscv_set_pc): Turn into...
2199 (riscv_target::low_set_pc): ...this.
2200 (the_low_target): Remove the op fields.
2201 * linux-s390-low.cc (class s390_target)
2202 <low_supports_breakpoints>
2203 <low_get_pc>
2204 <low_set_pc>: Declare.
2205 (s390_target::low_supports_breakpoints): Define.
2206 (s390_get_pc): Turn into...
2207 (s390_target::low_get_pc): ...this.
2208 (s390_set_pc): Turn into...
2209 (s390_target::low_set_pc): ...this.
2210 (the_low_target): Remove the op fields.
2211 * linux-tic6x-low.cc (class tic6x_target)
2212 <low_supports_breakpoints>
2213 <low_get_pc>
2214 <low_set_pc>: Declare.
2215 (tic6x_target::low_supports_breakpoints): Define.
2216 (tic6x_get_pc): Turn into...
2217 (tic6x_target::low_get_pc): ...this.
2218 (tic6x_set_pc): Turn into...
2219 (tic6x_target::low_set_pc): ...this.
2220 (the_low_target): Remove the op fields.
2221
df95181f
TBA
22222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2223
2224 Turn some more static methods in linux-low into private methods
2225 of linux_process_target.
2226
2227 * linux-low.cc (get_pc): Turn into...
2228 (linux_process_target::get_pc): ...this.
2229 (save_stop_reason): Turn into...
2230 (linux_process_target::save_stop_reason): ...this.
2231 (thread_still_has_status_pending_p): Turn into...
2232 (linux_process_target::thread_still_has_status_pending): ...this.
2233 (status_pending_p_callback): Turn into...
2234 (linux_process_target::status_pending_p_callback): ...this.
2235 (resume_stopped_resumed_lwps): Turn into...
2236 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2237 (install_software_single_step_breakpoints): Turn into...
2238 (linux_process_target::install_software_single_step_breakpoints):
2239 ...this.
2240 (single_step): Turn into...
2241 (linux_process_target::single_step): ...this.
2242 (linux_resume_one_lwp_throw): Turn into...
2243 (linux_process_target::resume_one_lwp_throw): ...this.
2244 (linux_resume_one_lwp): Turn into...
2245 (linux_process_target::resume_one_lwp): ...this.
2246 (resume_status_pending_p): Turn into...
2247 (linux_process_target::resume_status_pending): ...this.
2248 (need_step_over_p): Turn into...
2249 (linux_process_target::thread_needs_step_over): ...this.
2250 (linux_resume_one_thread): Turn into...
2251 (linux_process_target::resume_one_thread): ...this.
2252 (proceed_one_lwp): Turn into...
2253 (linux_process_target::proceed_one_lwp): ...this.
2254 (unsuspend_and_proceed_one_lwp): Turn into...
2255 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2256
2257 Update the calls/references to the above functions below.
2258
2259 (linux_process_target::handle_extended_wait)
2260 (linux_process_target::filter_event)
2261 (linux_process_target::wait_for_event_filtered)
2262 (linux_process_target::wait_1)
2263 (linux_process_target::move_out_of_jump_pad)
2264 (linux_process_target::start_step_over)
2265 (linux_process_target::resume)
2266 (linux_process_target::proceed_all_lwps)
2267 (regsets_store_inferior_registers)
2268 (linux_process_target::store_register)
2269
2270 * linux-low.h (class linux_process_target)
2271 <get_pc>
2272 <save_stop_reason>
2273 <thread_still_has_status_pending>
2274 <status_pending_p_callback>
2275 <resume_stopped_resumed_lwps>
2276 <install_software_single_step_breakpoints>
2277 <single_step>
2278 <resume_one_lwp_throw>
2279 <resume_one_lwp>
2280 <resume_status_pending>
2281 <thread_needs_step_over>
2282 <resume_one_thread>
2283 <proceed_one_lwp>
2284 <unsuspend_and_proceed_one_lwp>: Declare.
2285
bd70b1f2
TBA
22862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2287
2288 Turn the 'fetch_register' linux target op into a method of
2289 linux_process_target.
2290
2291 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2292 (class linux_process_target) <low_fetch_register>: Declare.
2293 * linux-x86-low.cc (the_low_target)
2294 * linux-aarch64-low.cc (the_low_target)
2295 * linux-arm-low.cc (the_low_target)
2296 * linux-bfin-low.cc (the_low_target)
2297 * linux-cris-low.cc (the_low_target)
2298 * linux-crisv32-low.cc (the_low_target)
2299 * linux-m32r-low.cc (the_low_target)
2300 * linux-m68k-low.cc (the_low_target)
2301 * linux-nios2-low.cc (the_low_target)
2302 * linux-ppc-low.cc (the_low_target)
2303 * linux-s390-low.cc (the_low_target)
2304 * linux-sh-low.cc (the_low_target)
2305 * linux-sparc-low.cc (the_low_target)
2306 * linux-tic6x-low.cc (the_low_target)
2307 * linux-tile-low.cc (the_low_target)
2308 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2309 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2310 Declare.
2311 (ia64_fetch_register): Turn into...
2312 (ia64_target::low_fetch_register): ...this.
2313 (the_low_target): Remove the op field.
2314 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2315 Declare.
2316 (mips_fetch_register): Turn into...
2317 (mips_target::low_fetch_register): ...this.
2318 (the_low_target): Remove the op field.
2319 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2320 Declare.
2321 (riscv_fetch_register): Turn into...
2322 (riscv_target::low_fetch_register): ...this.
2323 (the_low_target): Remove the op field.
2324
2325 Update the callers below.
2326
2327 * linux-low.cc (linux_process_target::fetch_registers)
2328 (linux_process_target::low_fetch_register)
2329
daca57a7
TBA
23302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2331
2332 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2333 linux target ops into methods of linux_process_target.
2334
2335 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2336 (class linux_process_target) <fetch_register>
2337 <store_register>
2338 <usr_fetch_inferior_registers>
2339 <usr_store_inferior_registers>
2340 <low_cannot_fetch_register>
2341 <low_cannot_fetch_register> Declare.
2342 * linux-low.cc (fetch_register): Turn into...
2343 (linux_process_target::fetch_register): ...this.
2344 (store_register): Turn into ...
2345 (linux_process_target::store_register): ...this.
2346 (usr_fetch_inferior_registers): Turn into...
2347 (linux_process_target::usr_fetch_inferior_registers): ...this.
2348 (usr_store_inferior_registers): Turn into...
2349 (linux_process_target::usr_store_inferior_registers): ...this.
2350 * linux-x86-low.cc (class x86_target)
2351 <low_cannot_fetch_register>
2352 <low_cannot_store_register>: Declare.
2353 (x86_cannot_store_register): Turn into...
2354 (x86_target::low_cannot_store_register): ...this.
2355 (x86_cannot_fetch_register): Turn into...
2356 (x86_target::low_cannot_fetch_register): ...this.
2357 (the_low_target): Remove the target op fields.
2358 * linux-aarch64-low.cc (class aarch64_target)
2359 <low_cannot_fetch_register>
2360 <low_cannot_store_register>: Declare.
2361 (aarch64_target::low_cannot_fetch_register)
2362 (aarch64_target::low_cannot_store_register): Define.
2363 (the_low_target): Remove the op fields.
2364 * linux-arm-low.cc (class arm_target)
2365 <low_cannot_fetch_register>
2366 <low_cannot_store_register>: Declare.
2367 (arm_cannot_fetch_register): Turn into...
2368 (arm_target::low_cannot_fetch_register): ...this.
2369 (arm_cannot_store_register): Turn into...
2370 (arm_target::low_cannot_store_register): ...this.
2371 (the_low_target): Remove the op fields.
2372 * linux-bfin-low.cc (class bfin_target)
2373 <low_cannot_fetch_register>
2374 <low_cannot_store_register>: Declare.
2375 (bfin_cannot_fetch_register): Turn into...
2376 (bfin_target::low_cannot_fetch_register): ...this.
2377 (bfin_cannot_store_register): Turn into...
2378 (bfin_target::low_cannot_store_register): ...this.
2379 (the_low_target): Remove the op fields.
2380 * linux-cris-low.cc (class cris_target)
2381 <low_cannot_fetch_register>
2382 <low_cannot_store_register>: Declare.
2383 (cris_cannot_fetch_register): Turn into...
2384 (cris_target::low_cannot_fetch_register): ...this.
2385 (cris_cannot_store_register): Turn into...
2386 (cris_target::low_cannot_store_register): ...this.
2387 (the_low_target): Remove the op fields.
2388 * linux-crisv32-low.cc (class crisv32_target)
2389 <low_cannot_fetch_register>
2390 <low_cannot_store_register>: Declare.
2391 (crisv32_target::low_cannot_fetch_register)
2392 (crisv32_target::low_cannot_store_register): Define.
2393 (the_low_target): Remove the op fields.
2394 * linux-ia64-low.cc (class ia64_target)
2395 <low_cannot_fetch_register>
2396 <low_cannot_store_register>: Declare.
2397 (ia64_cannot_fetch_register): Turn into...
2398 (ia64_target::low_cannot_fetch_register): ...this.
2399 (ia64_cannot_store_register): Turn into...
2400 (ia64_target::low_cannot_store_register): ...this.
2401 (the_low_target): Remove the op fields.
2402 * linux-m32r-low.cc (class m32r_target)
2403 <low_cannot_fetch_register>
2404 <low_cannot_store_register>: Declare.
2405 (m32r_cannot_fetch_register): Turn into...
2406 (m32r_target::low_cannot_fetch_register): ...this.
2407 (m32r_cannot_store_register): Turn into...
2408 (m32r_target::low_cannot_store_register): ...this.
2409 (the_low_target): Remove the op fields.
2410 * linux-m68k-low.cc (class m68k_target)
2411 <low_cannot_fetch_register>
2412 <low_cannot_store_register>: Declare.
2413 (m68k_cannot_fetch_register): Turn into...
2414 (m68k_target::low_cannot_fetch_register): ...this.
2415 (m68k_cannot_store_register): Turn into...
2416 (m68k_target::low_cannot_store_register): ...this.
2417 (the_low_target): Remove the op fields.
2418 * linux-mips-low.cc (class mips_target)
2419 <low_cannot_fetch_register>
2420 <low_cannot_store_register>: Declare.
2421 (mips_cannot_fetch_register): Turn into...
2422 (mips_target::low_cannot_fetch_register): ...this.
2423 (mips_cannot_store_register): Turn into...
2424 (mips_target::low_cannot_store_register): ...this.
2425 (get_usrregs_info): Inline at the call sites in
2426 low_cannot_fetch_register and low_cannot_store_register,
2427 and remove.
2428 (the_low_target): Remove the op fields.
2429 * linux-nios2-low.cc (class nios2_target)
2430 <low_cannot_fetch_register>
2431 <low_cannot_store_register>: Declare.
2432 (nios2_cannot_fetch_register): Turn into...
2433 (nios2_target::low_cannot_fetch_register): ...this.
2434 (nios2_cannot_store_register): Turn into...
2435 (nios2_target::low_cannot_store_register): ...this.
2436 (the_low_target): Remove the op fields.
2437 * linux-ppc-low.cc (class ppc_target)
2438 <low_cannot_fetch_register>
2439 <low_cannot_store_register>: Declare.
2440 (ppc_cannot_fetch_register): Turn into...
2441 (ppc_target::low_cannot_fetch_register): ...this.
2442 (ppc_cannot_store_register): Turn into...
2443 (ppc_target::low_cannot_store_register): ...this.
2444 (the_low_target): Remove the op fields.
2445 * linux-riscv-low.cc (class riscv_target)
2446 <low_cannot_fetch_register>
2447 <low_cannot_store_register>: Declare.
2448 (riscv_target::low_cannot_fetch_register)
2449 (riscv_target::low_cannot_store_register): Define.
2450 (the_low_target): Remove the op fields.
2451 * linux-s390-low.cc (class s390_target)
2452 <low_cannot_fetch_register>
2453 <low_cannot_store_register>: Declare.
2454 (s390_cannot_fetch_register): Turn into...
2455 (s390_target::low_cannot_fetch_register): ...this.
2456 (s390_cannot_store_register): Turn into...
2457 (s390_target::low_cannot_store_register): ...this.
2458 (the_low_target): Remove the op fields.
2459 * linux-sh-low.cc (class sh_target)
2460 <low_cannot_fetch_register>
2461 <low_cannot_store_register>: Declare.
2462 (sh_cannot_fetch_register): Turn into...
2463 (sh_target::low_cannot_fetch_register): ...this.
2464 (sh_cannot_store_register): Turn into...
2465 (sh_target::low_cannot_store_register): ...this.
2466 (the_low_target): Remove the op fields.
2467 * linux-sparc-low.cc (class sparc_target)
2468 <low_cannot_fetch_register>
2469 <low_cannot_store_register>: Declare.
2470 (sparc_cannot_fetch_register): Turn into...
2471 (sparc_target::low_cannot_fetch_register): ...this.
2472 (sparc_cannot_store_register): Turn into...
2473 (sparc_target::low_cannot_store_register): ...this.
2474 (the_low_target): Remove the op fields.
2475 * linux-tic6x-low.cc (class tic6x_target)
2476 <low_cannot_fetch_register>
2477 <low_cannot_store_register>: Declare.
2478 (tic6x_cannot_fetch_register): Turn into...
2479 (tic6x_target::low_cannot_fetch_register): ...this.
2480 (tic6x_cannot_store_register): Turn into...
2481 (tic6x_target::low_cannot_store_register): ...this.
2482 (the_low_target): Remove the op fields.
2483 * linux-tile-low.cc (class tile_target)
2484 <low_cannot_fetch_register>
2485 <low_cannot_store_register>: Declare.
2486 (tile_cannot_fetch_register): Turn into...
2487 (tile_target::low_cannot_fetch_register): ...this.
2488 (tile_cannot_store_register): Turn into...
2489 (tile_target::low_cannot_store_register): ...this.
2490 (the_low_target): Remove the op fields.
2491 * linux-xtensa-low.cc (class xtensa_target)
2492 <low_cannot_fetch_register>
2493 <low_cannot_store_register>: Declare.
2494 (xtensa_target::low_cannot_fetch_register)
2495 (xtensa_target::low_cannot_store_register): Define.
2496 (the_low_target): Remove the op fields.
2497
aa8d21c9
TBA
24982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2499
2500 Turn the 'regs_info' linux target op into a method of
2501 linux_process_target.
2502
2503 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2504 (class linux_process_target) <get_regs_info>: Define.
2505
2506 Update the callers below.
2507
2508 * linux-low.cc (linux_process_target::fetch_registers)
2509 (linux_process_target::store_registers)
2510 * proc-service.cc (gregset_info)
2511
2512 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2513 (x86_linux_regs_info): Turn into ...
2514 (x86_target::get_regs_info): ...this.
2515 (the_low_target): Remove the op field.
2516 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2517 Declare.
2518 (aarch64_regs_info): Turn into ...
2519 (aarch64_target::get_regs_info): ...this.
2520 (the_low_target): Remove the op field.
2521 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2522 (arm_regs_info): Turn into ...
2523 (arm_target::get_regs_info): ...this.
2524 (the_low_target): Remove the op field.
2525 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2526 (bfin_regs_info): Turn into ...
2527 (bfin_target::get_regs_info): ...this.
2528 (the_low_target): Remove the op field.
2529 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2530 (cris_regs_info): Turn into ...
2531 (cris_target::get_regs_info): ...this.
2532 (the_low_target): Remove the op field.
2533 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2534 Declare.
2535 (crisv32_regs_info): Turn into ...
2536 (crisv32_target::get_regs_info): ...this.
2537 (the_low_target): Remove the op field.
2538 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2539 (ia64_regs_info): Turn into ...
2540 (ia64_target::get_regs_info): ...this.
2541 (the_low_target): Remove the op field.
2542 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2543 (m32r_regs_info): Turn into ...
2544 (m32r_target::get_regs_info): ...this.
2545 (the_low_target): Remove the op field.
2546 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2547 (m68k_regs_info): Turn into ...
2548 (m68k_target::get_regs_info): ...this.
2549 (the_low_target): Remove the op field.
2550 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2551 (mips_regs_info): Turn into ...
2552 (mips_target::get_regs_info): ...this.
2553 (the_low_target): Remove the op field.
2554 (get_usrregs_info): Update the call to the op.
2555 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2556 (nios2_regs_info): Turn into ...
2557 (nios2_target::get_regs_info): ...this.
2558 (the_low_target): Remove the op field.
2559 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2560 (ppc_regs_info): Turn into ...
2561 (ppc_target::get_regs_info): ...this.
2562 (the_low_target): Remove the op field.
2563 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2564 (riscv_regs_info): Turn into ...
2565 (riscv_target::get_regs_info): ...this.
2566 (the_low_target): Remove the op field.
2567 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2568 (s390_regs_info): Turn into ...
2569 (s390_target::get_regs_info): ...this.
2570 (the_low_target): Remove the op field.
2571 (s390_collect_ptrace_register)
2572 (s390_supply_ptrace_register)
2573 (s390_fill_gregset): Update the call to the op.
2574 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2575 (sh_regs_info): Turn into ...
2576 (sh_target::get_regs_info): ...this.
2577 (the_low_target): Remove the op field.
2578 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2579 (sparc_regs_info): Turn into ...
2580 (sparc_target::get_regs_info): ...this.
2581 (the_low_target): Remove the op field.
2582 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2583 (tic6x_regs_info): Turn into ...
2584 (tic6x_target::get_regs_info): ...this.
2585 (the_low_target): Remove the op field.
2586 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2587 (tile_regs_info): Turn into ...
2588 (tile_target::get_regs_info): ...this.
2589 (the_low_target): Remove the op field.
2590 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2591 Declare.
2592 (xtensa_regs_info): Turn into ...
2593 (xtensa_target::get_regs_info): ...this.
2594 (the_low_target): Remove the op field.
2595
797bcff5
TBA
25962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2597
2598 Turn the 'arch_setup' linux target op into a method of
2599 linux_process_target.
2600
2601 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2602 (class linux_process_target) <arch_setup_thread>
2603 <low_arch_setup>: New declarations.
2604 * linux-low.cc (linux_arch_setup): Delete.
2605 (linux_arch_setup_thread): Turn into...
2606 (linux_process_target::arch_setup_thread): ... this.
2607
2608 Update the callers below.
2609
2610 (linux_process_target::handle_extended_wait)
2611 (linux_process_target::post_create_inferior)
2612 (linux_process_target::filter_event)
2613
2614 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2615 declaration.
2616 (x86_linux_update_xmltarget): Turn into...
2617 (x86_target::update_xmltarget): ...this.
2618 (x86_linux_process_qsupported): Update the call to
2619 x86_linux_update_xmltarget.
2620 (x86_arch_setup): Turn into ...
2621 (x86_target::low_arch_setup): ...this.
2622 (the_low_target): Remove the op field.
2623 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2624 declaration.
2625 (aarch64_arch_setup): Turn into ...
2626 (aarch64_target::low_arch_setup): ...this.
2627 (the_low_target): Remove the op field.
2628 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2629 declaration.
2630 (arm_arch_setup): Turn into ...
2631 (arm_target::low_arch_setup): ...this.
2632 (the_low_target): Remove the op field.
2633 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2634 declaration.
2635 (bfin_arch_setup): Turn into ...
2636 (bfin_target::low_arch_setup): ...this.
2637 (the_low_target): Remove the op field.
2638 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2639 declaration.
2640 (cris_arch_setup): Turn into ...
2641 (cris_target::low_arch_setup): ...this.
2642 (the_low_target): Remove the op field.
2643 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2644 declaration.
2645 (crisv32_arch_setup): Turn into ...
2646 (crisv32_target::low_arch_setup): ...this.
2647 (the_low_target): Remove the op field.
2648 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2649 declaration.
2650 (ia64_arch_setup): Turn into ...
2651 (ia64_target::low_arch_setup): ...this.
2652 (the_low_target): Remove the op field.
2653 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2654 declaration.
2655 (m32r_arch_setup): Turn into ...
2656 (m32r_target::low_arch_setup): ...this.
2657 (the_low_target): Remove the op field.
2658 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2659 declaration.
2660 (m68k_arch_setup): Turn into ...
2661 (m68k_target::low_arch_setup): ...this.
2662 (the_low_target): Remove the op field.
2663 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2664 declaration.
2665 (mips_arch_setup): Turn into ...
2666 (mips_target::low_arch_setup): ...this.
2667 (the_low_target): Remove the op field.
2668 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2669 declaration.
2670 (nios2_arch_setup): Turn into ...
2671 (nios2_target::low_arch_setup): ...this.
2672 (the_low_target): Remove the op field.
2673 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2674 declaration.
2675 (ppc_arch_setup): Turn into ...
2676 (ppc_target::low_arch_setup): ...this.
2677 (the_low_target): Remove the op field.
2678 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2679 declaration.
2680 (riscv_arch_setup): Turn into ...
2681 (riscv_target::low_arch_setup): ...this.
2682 (the_low_target): Remove the op field.
2683 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2684 declaration.
2685 (s390_arch_setup): Turn into ...
2686 (s390_target::low_arch_setup): ...this.
2687 (the_low_target): Remove the op field.
2688 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2689 declaration.
2690 (sh_arch_setup): Turn into ...
2691 (sh_target::low_arch_setup): ...this.
2692 (the_low_target): Remove the op field.
2693 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2694 declaration.
2695 (sparc_arch_setup): Turn into ...
2696 (sparc_target::low_arch_setup): ...this.
2697 (the_low_target): Remove the op field.
2698 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2699 declaration.
2700 (tic6x_arch_setup): Turn into ...
2701 (tic6x_target::low_arch_setup): ...this.
2702 (the_low_target): Remove the op field.
2703 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2704 declaration.
2705 (tile_arch_setup): Turn into ...
2706 (tile_target::low_arch_setup): ...this.
2707 (the_low_target): Remove the op field.
2708 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2709 declaration.
2710 (xtensa_arch_setup): Turn into ...
2711 (xtensa_target::low_arch_setup): ...this.
2712 (the_low_target): Remove the op field.
2713
ef0478f6
TBA
27142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2715
2716 * linux-low.h (the_linux_target): New extern declaration.
2717 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2718 'the_target'.
2719 (the_linux_target): Remove.
2720 * linux-x86-low.cc (class x86_target): New class.
2721 (the_x86_target): New static object.
2722 (the_linux_target): Define as pointer to the_x86_target.
2723 * linux-aarch64-low.cc (class aarch64_target): New class.
2724 (the_aarch64_target): New static object.
2725 (the_linux_target): Define as pointer to the_aarch64_target.
2726 * linux-arm-low.cc (class arm_target): New class.
2727 (the_arm_target): New static object.
2728 (the_linux_target): Define as pointer to the_arm_target.
2729 * linux-bfin-low.cc (class bfin_target): New class.
2730 (the_bfin_target): New static object.
2731 (the_linux_target): Define as pointer to the_bfin_target.
2732 * linux-cris-low.cc (class cris_target): New class.
2733 (the_cris_target): New static object.
2734 (the_linux_target): Define as pointer to the_cris_target.
2735 * linux-crisv32-low.cc (class crisv32_target): New class.
2736 (the_crisv32_target): New static object.
2737 (the_linux_target): Define as pointer to the_crisv32_target.
2738 * linux-ia64-low.cc (class ia64_target): New class.
2739 (the_ia64_target): New static object.
2740 (the_linux_target): Define as pointer to the_ia64_target.
2741 * linux-m32r-low.cc (class m32r_target): New class.
2742 (the_m32r_target): New static object.
2743 (the_linux_target): Define as pointer to the_m32r_target.
2744 * linux-m68k-low.cc (class m68k_target): New class.
2745 (the_m68k_target): New static object.
2746 (the_linux_target): Define as pointer to the_m68k_target.
2747 * linux-mips-low.cc (class mips_target): New class.
2748 (the_mips_target): New static object.
2749 (the_linux_target): Define as pointer to the_mips_target.
2750 * linux-nios2-low.cc (class nios2_target): New class.
2751 (the_nios2_target): New static object.
2752 (the_linux_target): Define as pointer to the_nios2_target.
2753 * linux-ppc-low.cc (class ppc_target): New class.
2754 (the_ppc_target): New static object.
2755 (the_linux_target): Define as pointer to the_ppc_target.
2756 * linux-riscv-low.cc (class riscv_target): New class.
2757 (the_riscv_target): New static object.
2758 (the_linux_target): Define as pointer to the_riscv_target.
2759 * linux-s390-low.cc (class s390_target): New class.
2760 (the_s390_target): New static object.
2761 (the_linux_target): Define as pointer to the_s390_target.
2762 * linux-sh-low.cc (class sh_target): New class.
2763 (the_sh_target): New static object.
2764 (the_linux_target): Define as pointer to the_sh_target.
2765 * linux-sparc-low.cc (class sparc_target): New class.
2766 (the_sparc_target): New static object.
2767 (the_linux_target): Define as pointer to the_sparc_target.
2768 * linux-tic6x-low.cc (class tic6x_target): New class.
2769 (the_tic6x_target): New static object.
2770 (the_linux_target): Define as pointer to the_tic6x_target.
2771 * linux-tile-low.cc (class tile_target): New class.
2772 (the_tile_target): New static object.
2773 (the_linux_target): Define as pointer to the_tile_target.
2774 * linux-xtensa-low.cc (class xtensa_target): New class.
2775 (the_xtensa_target): New static object.
2776 (the_linux_target): Define as pointer to the_xtensa_target.
2777
d16f3f6c
TBA
27782020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2779
2780 Turn some static functions in linux-low.cc into private methods of
2781 linux_process_target.
2782
2783 * linux-low.cc (handle_extended_wait): Turn into ...
2784 (linux_process_target::handle_extended_wait): ...this. Call
2785 'mourn' on 'this' object instead of 'the_target'.
2786 (maybe_move_out_of_jump_pad): Turn into...
2787 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2788 (linux_low_filter_event): Turn into...
2789 (linux_process_target::filter_event): ...this.
2790 (linux_wait_for_event_filtered): Turn into...
2791 (linux_process_target::wait_for_event_filtered): ...this.
2792 (linux_wait_for_event): Turn into...
2793 (linux_process_target::wait_for_event): ...this.
2794 (linux_wait_1): Turn into...
2795 (linux_process_target::wait_1): ...this.
2796 (wait_for_sigstop): Turn into...
2797 (linux_process_target::wait_for_sigstop): ...this.
2798 (move_out_of_jump_pad_callback): Turn into...
2799 (linux_process_target::move_out_of_jump_pad): ...this.
2800 (stop_all_lwps): Turn into...
2801 (linux_process_target::stop_all_lwps): ...this.
2802 (start_step_over): Turn into...
2803 (linux_process_target::start_step_over): ...this.
2804 (complete_ongoing_step_over): Turn into...
2805 (linux_process_target::complete_ongoing_step_over): ...this.
2806 (proceed_all_lwps): Turn into...
2807 (linux_process_target::proceed_all_lwps): ...this.
2808 (unstop_all_lwps): Turn into...
2809 (linux_process_target::unstop_all_lwps): ...this.
2810
2811 * linux-low.h (class linux_process_target)
2812 <handle_extended_wait>
2813 <maybe_move_out_of_jump_pad>
2814 filter_event>
2815 <wait_for_event_filtered>
2816 <wait_for_event>
2817 <wait_1>
2818 <wait_for_sigstop>
2819 <move_out_of_jump_pad>
2820 <stop_all_lwps>
2821 <start_step_over>
2822 <complete_ongoing_step_over>
2823 <proceed_all_lwps>
2824 <unstop_all_lwps>: Declare.
2825
2826 Update the callers below.
2827
2828 * linux-low.cc (linux_process_target::attach): Update.
2829 (linux_process_target::stabilize_threads): Ditto.
2830 (linux_process_target::wait): Ditto.
2831
a5863204
TBA
28322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2833
2834 * linux-low.h (struct linux_target_ops): Update the comment for
2835 'cannot_store_register' to return 0 or 1.
2836 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2837 of 2.
2838
c884cc46
SM
28392020-03-20 Simon Marchi <simon.marchi@efficios.com>
2840
2841 * config.in: Re-generate.
2842 * configure: Re-generate.
2843
5a82b8a1
KR
28442020-03-17 Kamil Rytarowski <n54@gmx.com>
2845
2846 * regcache.cc (find_register_by_number): Update.
2847 * tdesc.cc (init_target_desc): Likewise.
2848 * tdesc.h (target_desc::reg_defs): Likewise.
2849
4635ff97
TT
28502020-03-12 Tom Tromey <tom@tromey.com>
2851
2852 * configure: Rebuild.
2853 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2854 (WIN32APILIBS): New subst.
2855 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2856 gdbsupport files.
2857 (gdbsupport/%.o): Remove target.
2858 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2859 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2860 (WIN32APILIBS): New variable.
2861 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2862 (gdbreplay$(EXEEXT)): Likewise.
2863
9a665d62
TT
28642020-03-12 Tom Tromey <tom@tromey.com>
2865
2866 * config.in, configure: Rebuild.
2867 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2868 * acinclude.m4: Include gettext-sister.m4.
2869 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2870 variables.
2871 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2872 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2873
272cd5a3
SM
28742020-03-12 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * acinclude.m4: Update path to selftest.m4.
2877
db6878ac
SM
28782020-03-12 Simon Marchi <simon.marchi@efficios.com>
2879
2880 * configure.ac: Don't source bfd/development.sh, move
2881 GDB_AC_COMMON higher.
2882 * configure: Re-generate.
2883
4d696a5c
SM
28842020-03-12 Simon Marchi <simon.marchi@efficios.com>
2885
2886 * configure: Re-generate.
2887
a0761e34
SM
28882020-03-11 Simon Marchi <simon.marchi@efficios.com>
2889
2890 * configure: Re-generate.
2891
20ea4a60
AB
28922020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 * .dir-locals.el: New file.
2895
842806cb
TBA
28962020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2897
2898 * .gitattributes: New file.
2899
442131c1
AB
29002020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2901
2902 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2903 reply into an S reply.
2904 * server.cc (disable_packet_T): New global.
2905 (captured_main): Set new global when appropriate.
2906 * server.h (disable_packet_T): Declare.
2907
dda42c0b
TT
29082020-02-21 Tom Tromey <tom@tromey.com>
2909
2910 * Makefile.in (mostlyclean): New target.
2911
52405d85
TBA
29122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2913
2914 * target.h (struct process_stratum_target): Remove.
2915 (class process_target): Rename to ...
2916 (class process_stratum_target): ... this.
2917 * linux-low.h (class linux_process_target): Derive from
2918 'process_stratum_target'.
2919 * linux-low.cc (linux_target_ops): Remove.
2920 (initialize_low): Set the_target to the singleton instance of
2921 linux_process_target.
2922 * lynx-low.h (class lynx_process_target): Derive from
2923 'process_stratum_target'.
2924 * lynx-low.cc (lynx_target_ops): Remove.
2925 (initialize_low): Set the_target to the singleton instance of
2926 lynx_process_target.
2927 * nto-low.h (class nto_process_target): Derive from
2928 'process_stratum_target'.
2929 * nto-low.cc (nto_target_ops): Remove.
2930 (initialize_low): Set the_target to the singleton instance of
2931 nto_process_target.
2932 * win32-low.h (class win32_process_target): Derive from
2933 'process_stratum_target'.
2934 * win32-low.cc (win32_target_ops): Remove.
2935 (initialize_low): Set the_target to the singleton instance of
2936 win32_process_target.
2937
2938 Replace 'the_target->pt' with 'the_target' in the uses below.
2939
2940 * hostio.cc (hostio_error)
2941 (handle_setfs)
2942 (handle_open)
2943 (handle_unlink)
2944 (handle_readlink)
2945 * linux-aarch32-low.cc (arm_breakpoint_at)
2946 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2947 * linux-arm-low.cc (arm_sigreturn_next_pc)
2948 (arm_get_hwcap)
2949 (arm_get_syscall_trapinfo)
2950 * linux-cris-low.cc (cris_breakpoint_at)
2951 * linux-crisv32-low.cc (cris_breakpoint_at)
2952 * linux-low.cc (handle_extended_wait)
2953 (linux_wait_1)
2954 (linux_read_memory)
2955 (linux_process_target::breakpoint_kind_from_pc)
2956 (linux_get_auxv)
2957 * linux-m32r-low.cc (m32r_breakpoint_at)
2958 * linux-mips-low.cc (mips_breakpoint_at)
2959 * linux-nios2-low.cc (nios2_breakpoint_at)
2960 * linux-ppc-low.cc (ppc_breakpoint_at)
2961 * linux-s390-low.cc (s390_get_hwcap)
2962 * linux-sh-low.cc (sh_breakpoint_at)
2963 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2964 (sparc_store_gregset_from_stack)
2965 (sparc_breakpoint_at)
2966 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2967 * linux-tile-low.cc (tile_breakpoint_at)
2968 * linux-x86-low.cc (x86_breakpoint_at)
2969 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2970 * mem-break.cc (bp_size)
2971 (bp_opcode)
2972 (insert_memory_breakpoint)
2973 (set_raw_breakpoint_at)
2974 (delete_raw_breakpoint)
2975 (z_type_supported)
2976 (uninsert_raw_breakpoint)
2977 (reinsert_raw_breakpoint)
2978 (validate_inserted_breakpoint)
2979 * regcache.cc (regcache_read_pc)
2980 (regcache_write_pc)
2981 * remote-utils.cc (putpkt_binary_1)
2982 (input_interrupt)
2983 (getpkt)
2984 (prepare_resume_reply)
2985 * server.cc (handle_general_set)
2986 (handle_detach)
2987 (handle_qxfer_auxv)
2988 (handle_qxfer_exec_file)
2989 (handle_qxfer_libraries_svr4)
2990 (handle_qxfer_osdata)
2991 (handle_qxfer_siginfo)
2992 (handle_qxfer_fdpic)
2993 (handle_query)
2994 (resume)
2995 (handle_v_requests)
2996 (queue_stop_reply_callback)
2997 (captured_main)
2998 * target.cc (prepare_to_access_memory)
2999 (done_accessing_memory)
3000 (read_inferior_memory)
3001 (target_write_memory)
3002 (target_stop_and_wait)
3003 (target_wait)
3004 (target_mourn_inferior)
3005 (target_continue_no_signal)
3006 (target_continue)
3007 (target_supports_multi_process)
3008 (kill_inferior)
3009 * target.h
3010 (target_create_inferior)
3011 (target_post_create_inferior)
3012 (myattach)
3013 (target_supports_fork_events)
3014 (target_supports_vfork_events)
3015 (target_supports_exec_events)
3016 (target_handle_new_gdb_connection)
3017 (detach_inferior)
3018 (mythread_alive)
3019 (fetch_inferior_registers)
3020 (store_inferior_registers)
3021 (join_inferior)
3022 (target_supports_non_stop)
3023 (target_async)
3024 (target_process_qsupported)
3025 (target_supports_catch_syscall)
3026 (target_get_ipa_tdesc_idx)
3027 (target_supports_tracepoints)
3028 (target_supports_fast_tracepoints)
3029 (target_get_min_fast_tracepoint_insn_len)
3030 (target_thread_stopped)
3031 (target_pause_all)
3032 (target_unpause_all)
3033 (target_stabilize_threads)
3034 (target_install_fast_tracepoint_jump_pad)
3035 (target_emit_ops)
3036 (target_supports_disable_randomization)
3037 (target_supports_agent)
3038 (target_enable_btrace)
3039 (target_disable_btrace)
3040 (target_read_btrace)
3041 (target_read_btrace_conf)
3042 (target_supports_range_stepping)
3043 (target_supports_stopped_by_sw_breakpoint)
3044 (target_stopped_by_sw_breakpoint)
3045 (target_supports_stopped_by_hw_breakpoint)
3046 (target_supports_hardware_single_step)
3047 (target_stopped_by_hw_breakpoint)
3048 (target_breakpoint_kind_from_pc)
3049 (target_breakpoint_kind_from_current_state)
3050 (target_supports_software_single_step)
3051 (target_core_of_thread)
3052 (target_thread_name)
3053 (target_thread_handle)
3054 * win32-low.cc (do_initial_child_stuff)
3055
3056 Rename target op default definitions listed below.
3057
3058 * target.cc (process_target::post_create_inferior): Rename as ...
3059 (process_stratum_target::post_create_inferior): ... this.
3060 (process_target::prepare_to_access_memory): Rename as ...
3061 (process_stratum_target::prepare_to_access_memory): ... this.
3062 (process_target::done_accessing_memory): Rename as ...
3063 (process_stratum_target::done_accessing_memory): ... this.
3064 (process_target::look_up_symbols): Rename as ...
3065 (process_stratum_target::look_up_symbols): ... this.
3066 (process_target::supports_read_auxv): Rename as ...
3067 (process_stratum_target::supports_read_auxv): ... this.
3068 (process_target::read_auxv): Rename as ...
3069 (process_stratum_target::read_auxv): ... this.
3070 (process_target::supports_z_point_type): Rename as ...
3071 (process_stratum_target::supports_z_point_type): ... this.
3072 (process_target::insert_point): Rename as ...
3073 (process_stratum_target::insert_point): ... this.
3074 (process_target::remove_point): Rename as ...
3075 (process_stratum_target::remove_point): ... this.
3076 (process_target::stopped_by_sw_breakpoint): Rename as ...
3077 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3078 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3079 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3080 (process_target::stopped_by_hw_breakpoint): Rename as ...
3081 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3082 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3083 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3084 (process_target::supports_hardware_single_step): Rename as ...
3085 (process_stratum_target::supports_hardware_single_step): ... this.
3086 (process_target::stopped_by_watchpoint): Rename as ...
3087 (process_stratum_target::stopped_by_watchpoint): ... this.
3088 (process_target::stopped_data_address): Rename as ...
3089 (process_stratum_target::stopped_data_address): ... this.
3090 (process_target::supports_read_offsets): Rename as ...
3091 (process_stratum_target::supports_read_offsets): ... this.
3092 (process_target::read_offsets): Rename as ...
3093 (process_stratum_target::read_offsets): ... this.
3094 (process_target::supports_get_tls_address): Rename as ...
3095 (process_stratum_target::supports_get_tls_address): ... this.
3096 (process_target::get_tls_address): Rename as ...
3097 (process_stratum_target::get_tls_address): ... this.
3098 (process_target::hostio_last_error): Rename as ...
3099 (process_stratum_target::hostio_last_error): ... this.
3100 (process_target::supports_qxfer_osdata): Rename as ...
3101 (process_stratum_target::supports_qxfer_osdata): ... this.
3102 (process_target::qxfer_osdata): Rename as ...
3103 (process_stratum_target::qxfer_osdata): ... this.
3104 (process_target::supports_qxfer_siginfo): Rename as ...
3105 (process_stratum_target::supports_qxfer_siginfo): ... this.
3106 (process_target::qxfer_siginfo): Rename as ...
3107 (process_stratum_target::qxfer_siginfo): ... this.
3108 (process_target::supports_non_stop): Rename as ...
3109 (process_stratum_target::supports_non_stop): ... this.
3110 (process_target::async): Rename as ...
3111 (process_stratum_target::async): ... this.
3112 (process_target::start_non_stop): Rename as ...
3113 (process_stratum_target::start_non_stop): ... this.
3114 (process_target::supports_multi_process): Rename as ...
3115 (process_stratum_target::supports_multi_process): ... this.
3116 (process_target::supports_fork_events): Rename as ...
3117 (process_stratum_target::supports_fork_events): ... this.
3118 (process_target::supports_vfork_events): Rename as ...
3119 (process_stratum_target::supports_vfork_events): ... this.
3120 (process_target::supports_exec_events): Rename as ...
3121 (process_stratum_target::supports_exec_events): ... this.
3122 (process_target::handle_new_gdb_connection): Rename as ...
3123 (process_stratum_target::handle_new_gdb_connection): ... this.
3124 (process_target::handle_monitor_command): Rename as ...
3125 (process_stratum_target::handle_monitor_command): ... this.
3126 (process_target::core_of_thread): Rename as ...
3127 (process_stratum_target::core_of_thread): ... this.
3128 (process_target::supports_read_loadmap): Rename as ...
3129 (process_stratum_target::supports_read_loadmap): ... this.
3130 (process_target::read_loadmap): Rename as ...
3131 (process_stratum_target::read_loadmap): ... this.
3132 (process_target::process_qsupported): Rename as ...
3133 (process_stratum_target::process_qsupported): ... this.
3134 (process_target::supports_tracepoints): Rename as ...
3135 (process_stratum_target::supports_tracepoints): ... this.
3136 (process_target::read_pc): Rename as ...
3137 (process_stratum_target::read_pc): ... this.
3138 (process_target::write_pc): Rename as ...
3139 (process_stratum_target::write_pc): ... this.
3140 (process_target::supports_thread_stopped): Rename as ...
3141 (process_stratum_target::supports_thread_stopped): ... this.
3142 (process_target::thread_stopped): Rename as ...
3143 (process_stratum_target::thread_stopped): ... this.
3144 (process_target::supports_get_tib_address): Rename as ...
3145 (process_stratum_target::supports_get_tib_address): ... this.
3146 (process_target::get_tib_address): Rename as ...
3147 (process_stratum_target::get_tib_address): ... this.
3148 (process_target::pause_all): Rename as ...
3149 (process_stratum_target::pause_all): ... this.
3150 (process_target::unpause_all): Rename as ...
3151 (process_stratum_target::unpause_all): ... this.
3152 (process_target::stabilize_threads): Rename as ...
3153 (process_stratum_target::stabilize_threads): ... this.
3154 (process_target::supports_fast_tracepoints): Rename as ...
3155 (process_stratum_target::supports_fast_tracepoints): ... this.
3156 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3157 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3158 (process_target::emit_ops): Rename as ...
3159 (process_stratum_target::emit_ops): ... this.
3160 (process_target::supports_disable_randomization): Rename as ...
3161 (process_stratum_target::supports_disable_randomization): ... this.
3162 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3163 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3164 (process_target::qxfer_libraries_svr4): Rename as ...
3165 (process_stratum_target::qxfer_libraries_svr4): ... this.
3166 (process_target::supports_agent): Rename as ...
3167 (process_stratum_target::supports_agent): ... this.
3168 (process_target::enable_btrace): Rename as ...
3169 (process_stratum_target::enable_btrace): ... this.
3170 (process_target::disable_btrace): Rename as ...
3171 (process_stratum_target::disable_btrace): ... this.
3172 (process_target::read_btrace): Rename as ...
3173 (process_stratum_target::read_btrace): ... this.
3174 (process_target::read_btrace_conf): Rename as ...
3175 (process_stratum_target::read_btrace_conf): ... this.
3176 (process_target::supports_range_stepping): Rename as ...
3177 (process_stratum_target::supports_range_stepping): ... this.
3178 (process_target::supports_pid_to_exec_file): Rename as ...
3179 (process_stratum_target::supports_pid_to_exec_file): ... this.
3180 (process_target::pid_to_exec_file): Rename as ...
3181 (process_stratum_target::pid_to_exec_file): ... this.
3182 (process_target::supports_multifs): Rename as ...
3183 (process_stratum_target::supports_multifs): ... this.
3184 (process_target::multifs_open): Rename as ...
3185 (process_stratum_target::multifs_open): ... this.
3186 (process_target::multifs_unlink): Rename as ...
3187 (process_stratum_target::multifs_unlink): ... this.
3188 (process_target::multifs_readlink): Rename as ...
3189 (process_stratum_target::multifs_readlink): ... this.
3190 (process_target::breakpoint_kind_from_pc): Rename as ...
3191 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3192 (process_target::breakpoint_kind_from_current_state): Rename as ...
3193 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3194 (process_target::thread_name): Rename as ...
3195 (process_stratum_target::thread_name): ... this.
3196 (process_target::thread_handle): Rename as ...
3197 (process_stratum_target::thread_handle): ... this.
3198 (process_target::supports_software_single_step): Rename as ...
3199 (process_stratum_target::supports_software_single_step): ... this.
3200 (process_target::supports_catch_syscall): Rename as ...
3201 (process_stratum_target::supports_catch_syscall): ... this.
3202 (process_target::get_ipa_tdesc_idx): Rename as ...
3203 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3204
478f9adf
PA
32052020-02-20 Pedro Alves <palves@redhat.com>
3206
3207 * target.cc (set_target_ops): Simply copy the given target pointer
3208 instead of creating a copy of the pointed object.
3209
d633e831
TBA
32102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3211
3212 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3213 of process_target.
3214
3215 * target.h (struct process_stratum_target): Remove the target op.
3216 (class process_target): Add the target op.
3217 (target_get_ipa_tdesc_idx): Update the macro.
3218 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3219
3220 Update the derived classes and callers below.
3221
3222 * linux-low.cc (linux_target_ops): Update.
3223 (linux_get_ipa_tdesc_idx): Turn into ...
3224 (linux_process_target::get_ipa_tdesc_idx): ... this.
3225 * linux-low.h (class linux_process_target): Update.
3226 * lynx-low.cc (lynx_target_ops): Update.
3227 * nto-low.cc (nto_target_ops): Update.
3228 * win32-low.cc (win32_target_ops): Update.
3229
bc8d3ae4
TBA
32302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3231
3232 Turn process_stratum_target's supports_catch_syscall op into a
3233 method of process_target.
3234
3235 * target.h (struct process_stratum_target): Remove the target op.
3236 (class process_target): Add the target op.
3237 (target_supports_catch_syscall): Update the macro.
3238 * target.cc (process_target::supports_catch_syscall): Define.
3239
3240 Update the derived classes and callers below.
3241
3242 * linux-low.cc (linux_target_ops): Update.
3243 (linux_supports_catch_syscall): Turn into ...
3244 (linux_process_target::supports_catch_syscall): ... this.
3245 * linux-low.h (class linux_process_target): Update.
3246 * lynx-low.cc (lynx_target_ops): Update.
3247 * nto-low.cc (nto_target_ops): Update.
3248 * win32-low.cc (win32_target_ops): Update.
3249
5303a34f
TBA
32502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3251
3252 Turn process_stratum_target's supports_software_single_step op
3253 into a method of process_target.
3254
3255 * target.h (struct process_stratum_target): Remove the target op.
3256 (class process_target): Add the target op.
3257 (target_supports_software_single_step): Update the macro.
3258 * target.cc (process_target::supports_software_single_step): Define.
3259
3260 Update the derived classes and callers below.
3261
3262 * linux-low.cc (linux_target_ops): Update.
3263 (linux_supports_software_single_step): Turn into ...
3264 (linux_process_target::supports_software_single_step): ... this.
3265 * linux-low.h (class linux_process_target): Update.
3266 * lynx-low.cc (lynx_target_ops): Update.
3267 * nto-low.cc (nto_target_ops): Update.
3268 * win32-low.cc (win32_target_ops): Update.
3269
7f63b89b
TBA
32702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3271
3272 Turn process_stratum_target's thread_name and thread_handle ops
3273 into methods of process_target.
3274
3275 * target.h (struct process_stratum_target): Remove the target ops.
3276 (class process_target): Add the target ops.
3277 (target_thread_name): Update the macro.
3278 (target_thread_handle): Update the macro.
3279 * target.cc (process_target::thread_name): Define.
3280 (process_target::thread_handle): Define.
3281
3282 Update the derived classes and callers below.
3283
3284 * linux-low.cc (linux_target_ops): Update.
3285 (linux_process_target::thread_name): Define.
3286 (linux_process_target::thread_handle): Define.
3287 * linux-low.h (class linux_process_target): Update.
3288 * lynx-low.cc (lynx_target_ops): Update.
3289 * nto-low.cc (nto_target_ops): Update.
3290 * win32-low.cc (win32_target_ops): Update.
3291
d367006f
TBA
32922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3293
3294 Turn process_stratum_target's breakpoint_kind_from_pc,
3295 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3296 ops into methods of process_target.
3297
3298 * target.h (struct process_stratum_target): Remove the target op.
3299 (class process_target): Add the target op.
3300 (target_breakpoint_kind_from_pc): Update the macro.
3301 (target_breakpoint_kind_from_current_state): Update the macro.
3302 (default_breakpoint_kind_from_pc): Remove declaration.
3303 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3304 (process_target::breakpoint_kind_from_pc): ... this.
3305 (process_target::breakpoint_kind_from_current_state): Define.
3306
3307 Update the derived classes and callers below.
3308
3309 * mem-break.cc (bp_size): Update.
3310 (bp_opcode): Update.
3311 * linux-low.cc (linux_target_ops): Update.
3312 (linux_wait_1): Update.
3313 (linux_breakpoint_kind_from_pc): Turn into ...
3314 (linux_process_target::breakpoint_kind_from_pc): ... this.
3315 (linux_sw_breakpoint_from_kind): Turn into ...
3316 (linux_process_target::sw_breakpoint_from_kind): ... this.
3317 (linux_breakpoint_kind_from_current_state): Turn into ...
3318 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3319 * linux-low.h (class linux_process_target): Update.
3320 * lynx-low.cc (lynx_target_ops): Update.
3321 (lynx_process_target::sw_breakpoint_from_kind): Define.
3322 * lynx-low.h (class lynx_process_target): Update.
3323 * nto-low.cc (nto_target_ops): Update.
3324 (nto_sw_breakpoint_from_kind): Turn into ...
3325 (nto_process_target::sw_breakpoint_from_kind): ... this.
3326 * nto-low.h (class nto_process_target): Update.
3327 * win32-low.cc (win32_target_ops): Update.
3328 (win32_sw_breakpoint_from_kind): Turn into ...
3329 (win32_process_target::sw_breakpoint_from_kind): ... this.
3330 * win32-low.h (class win32_process_target): Update.
3331
c9b7b804
TBA
33322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3333
3334 Turn process_stratum_target's multifs_open, multifs_readlink,
3335 multifs_unlink ops into methods of process_target.
3336
3337 * target.h (struct process_stratum_target): Remove the target ops.
3338 (class process_target): Add the target ops. Also add
3339 'supports_multifs'.
3340 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3341 "sys/stat.h".
3342 (process_target::supports_multifs): Define.
3343 (process_target::multifs_open): Define.
3344 (process_target::multifs_readlink): Define.
3345 (process_target::multifs_unlink): Define.
3346
3347 Update the derived classes and callers below.
3348
3349 * hostio.cc (handle_setfs): Update.
3350 (handle_open): Update.
3351 (handle_unlink): Update.
3352 (handle_readlink): Update.
3353 * linux-low.cc (linux_target_ops): Update.
3354 (linux_process_target::supports_multifs): Define.
3355 (linux_process_target::multifs_open): Define.
3356 (linux_process_target::multifs_readlink): Define.
3357 (linux_process_target::multifs_unlink): Define.
3358 * linux-low.h (class linux_process_target): Update.
3359 * lynx-low.cc (lynx_target_ops): Update.
3360 * nto-low.cc (nto_target_ops): Update.
3361 * win32-low.cc (win32_target_ops): Update.
3362
8247b823
TBA
33632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3364
3365 Turn process_stratum_target's pid_to_exec_file op into a method
3366 of process_target.
3367
3368 * target.h (struct process_stratum_target): Remove the target op.
3369 (class process_target): Add the target op. Also add
3370 'supports_pid_to_exec_file'.
3371 * target.cc (process_target::pid_to_exec_file): Define.
3372 (process_target::supports_pid_to_exec_file): Define.
3373
3374 Update the derived classes and callers below.
3375
3376 * server.cc (handle_qxfer_exec_file): Update.
3377 (handle_query): Update.
3378 * linux-low.cc (linux_target_ops): Update.
3379 (linux_process_target::supports_pid_to_exec_file): Define.
3380 (linux_process_target::pid_to_exec_file): Define.
3381 * linux-low.h (class linux_process_target): Update.
3382 * lynx-low.cc (lynx_target_ops): Update.
3383 * nto-low.cc (nto_target_ops): Update.
3384 * win32-low.cc (win32_target_ops): Update.
3385
2526e0cd
TBA
33862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3387
3388 Turn process_stratum_target's supports_range_stepping op into a
3389 method of process_target.
3390
3391 * target.h (struct process_stratum_target): Remove the target op.
3392 (class process_target): Add the target op.
3393 (target_supports_range_stepping): Update the macro.
3394 * target.cc (process_target::supports_range_stepping): Define.
3395
3396 Update the derived classes and callers below.
3397
3398 * linux-low.cc (linux_target_ops): Update.
3399 (linux_supports_range_stepping): Turn into ...
3400 (linux_process_target::supports_range_stepping): ... this.
3401 * linux-low.h (class linux_process_target): Update.
3402 * lynx-low.cc (lynx_target_ops): Update.
3403 * nto-low.cc (nto_target_ops): Update.
3404 * win32-low.cc (win32_target_ops): Update.
3405
79597bdd
TBA
34062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3407
3408 Turn process_stratum_target's btrace-related ops (enable_btrace,
3409 disable_btrace, read_btrace, read_btrace_conf) into methods of
3410 process_target.
3411
3412 * target.h (struct process_stratum_target): Remove the target ops.
3413 (class process_target): Add the target ops.
3414 (target_enable_btrace): Update.
3415 (target_disable_btrace): Update.
3416 (target_read_btrace): Update.
3417 (target_read_btrace_conf): Update.
3418 * target.cc (process_target::enable_btrace): Define.
3419 (process_target::disable_btrace): Define.
3420 (process_target::read_btrace): Define.
3421 (process_target::read_btrace_conf): Define.
3422
3423 Update the derived classes and callers below.
3424
3425 * linux-low.cc (linux_target_ops): Update.
3426 (linux_process_target:enable_btrace): Define as a wrapper around
3427 linux_enable_btrace.
3428 (linux_low_disable_btrace): Turn into ...
3429 (linux_process_target::disable_btrace): ... this.
3430 (linux_low_read_btrace): Turn into ...
3431 (linux_process_target::read_btrace): ... this.
3432 (linux_low_btrace_conf): Turn into ...
3433 (linux_process_target::read_btrace_conf): ... this.
3434 * linux-low.h (class linux_process_target): Update.
3435 * lynx-low.cc (lynx_target_ops): Update.
3436 * nto-low.cc (nto_target_ops): Update.
3437 * win32-low.cc (win32_target_ops): Update.
3438
c0245cb9
TBA
34392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3440
3441 Turn process_stratum_target's supports_agent op into a method of
3442 process_target.
3443
3444 * target.h (struct process_stratum_target): Remove the target op.
3445 (class process_target): Add the target op.
3446 (target_supports_agent): Update the macro.
3447 * target.cc (process_target::supports_agent): Define.
3448
3449 Update the derived classes and callers below.
3450
3451 * linux-low.cc (linux_target_ops): Update.
3452 (linux_supports_agent): Turn into ...
3453 (linux_process_target::supports_agent): ... this.
3454 * linux-low.h (class linux_process_target): Update.
3455 * lynx-low.cc (lynx_target_ops): Update.
3456 * nto-low.cc (nto_target_ops): Update.
3457 * win32-low.cc (win32_target_ops): Update.
3458
974387bb
TBA
34592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3460
3461 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3462 method of process_target.
3463
3464 * target.h (struct process_stratum_target): Remove the target op.
3465 (class process_target): Add the target op. Also add
3466 'supports_qxfer_libraries_svr4'.
3467 * target.cc (process_target::qxfer_libraries_svr4): Define.
3468 (process_target::supports_qxfer_libraries_svr4): Define.
3469
3470 Update the derived classes and callers below.
3471
3472 * server.cc (handle_qxfer_libraries_svr4): Update.
3473 (handle_query): Update.
3474 * linux-low.cc (linux_target_ops): Update.
3475 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3476 (linux_qxfer_libraries_svr4): Turn into ...
3477 (linux_process_target::qxfer_libraries_svr4): ... this.
3478 * linux-low.h (class linux_process_target): Update.
3479 * lynx-low.cc (lynx_target_ops): Update.
3480 * nto-low.cc (nto_target_ops): Update.
3481 * win32-low.cc (win32_target_ops): Update.
3482
c756403b
TBA
34832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3484
3485 Turn process_stratum_target's supports_disable_randomization op
3486 into a method of process_target.
3487
3488 * target.h (struct process_stratum_target): Remove the target op.
3489 (class process_target): Add the target op.
3490 (target_supports_disable_randomization): Update the macro.
3491 * target.cc (process_target::supports_disable_randomization): Define.
3492
3493 Update the derived classes and callers below.
3494
3495 * linux-low.cc (linux_target_ops): Update.
3496 (linux_supports_disable_randomization): Turn into ...
3497 (linux_process_target::supports_disable_randomization): ... this.
3498 * linux-low.h (class linux_process_target): Update.
3499 * lynx-low.cc (lynx_target_ops): Update.
3500 * nto-low.cc (nto_target_ops): Update.
3501 * win32-low.cc (win32_target_ops): Update.
3502
345dafad
TBA
35032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3504
3505 Turn process_stratum_target's emit_ops op into a method of
3506 process_target.
3507
3508 * target.h (struct process_stratum_target): Remove the target op.
3509 (class process_target): Add the target op.
3510 (target_emit_ops): Update the macro.
3511 * target.cc (process_target::emit_ops): Define.
3512
3513 Update the derived classes and callers below.
3514
3515 * linux-low.cc (linux_target_ops): Update.
3516 (linux_emit_ops): Turn into ...
3517 (linux_process_target::emit_ops): ... this.
3518 * linux-low.h (class linux_process_target): Update.
3519 * lynx-low.cc (lynx_target_ops): Update.
3520 * nto-low.cc (nto_target_ops): Update.
3521 * win32-low.cc (win32_target_ops): Update.
3522
c23c9391
TBA
35232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3524
3525 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3526 and get_min_fast_tracepoint_insn_len ops into methods of
3527 process_target.
3528
3529 * target.h (struct process_stratum_target): Remove the target ops.
3530 (class process_target): Add the target ops. Also add
3531 'supports_fast_tracepoints'.
3532 (target_supports_fast_tracepoints): Update the macro.
3533 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3534 (install_fast_tracepoint_jump_pad): Update and rename the macro
3535 to ...
3536 (target_install_fast_tracepoint_jump_pad): ... this.
3537 * target.cc (process_target::supports_fast_tracepoints): Define.
3538 (process_target::install_fast_tracepoint_jump_pad): Define.
3539 (process_target::get_min_fast_tracepoint_insn_len): Define.
3540
3541 Update the derived classes and callers below.
3542
3543 * tracepoint.cc (install_fast_tracepoint): Update.
3544 * linux-low.cc (linux_target_ops): Update.
3545 (linux_process_target::supports_fast_tracepoints): Define.
3546 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3547 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3548 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3549 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3550 * linux-low.h (class linux_process_target): Update.
3551 * lynx-low.cc (lynx_target_ops): Update.
3552 * nto-low.cc (nto_target_ops): Update.
3553 * win32-low.cc (win32_target_ops): Update.
3554
5c9eb2f2
TBA
35552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3556
3557 Turn process_stratum_target's stabilize_threads op into a
3558 method of process_target.
3559
3560 * target.h (struct process_stratum_target): Remove the target op.
3561 (class process_target): Add the target op.
3562 (target_stabilize_threads): Update the macro.
3563 * target.cc (process_target::stabilize_threads): Define.
3564
3565 Update the derived classes and callers below.
3566
3567 * server.cc (handle_status): Update.
3568 * tracepoint.cc (cmd_qtdp): Update.
3569 (cmd_qtstart): Update.
3570 * linux-low.cc (linux_target_ops): Update.
3571 (linux_stabilize_threads): Turn into ...
3572 (linux_process_target::stabilize_threads): ... this.
3573 (linux_wait_1): Update.
3574 * linux-low.h (class linux_process_target): Update.
3575 * lynx-low.cc (lynx_target_ops): Update.
3576 * nto-low.cc (nto_target_ops): Update.
3577 * win32-low.cc (win32_target_ops): Update.
3578
29e8dc09
TBA
35792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3580
3581 Turn process_stratum_target's pause_all and unpause_all ops
3582 into methods of process_target.
3583
3584 * target.h (struct process_stratum_target): Remove the target ops.
3585 (class process_target): Add the target ops.
3586 (pause_all): Update the macro and rename to...
3587 (target_pause_all): ... this.
3588 (unpause_all): Update the macro and rename to...
3589 (target_unpause_all): ... this.
3590 * target.cc (process_target::pause_all): Define.
3591 (process_target::unpause_all): Define.
3592
3593 Update the derived classes and callers below.
3594
3595 * server.cc (handle_status): Update.
3596 * tracepoint.cc (clear_installed_tracepoints): Update.
3597 (cmd_qtdp): Update.
3598 (cmd_qtstart): Update.
3599 (stop_tracing): Update.
3600 (cmd_qtstatus): Update.
3601 (upload_fast_traceframes): Update.
3602 (run_inferior_command): Update.
3603 * linux-low.cc (linux_target_ops): Update.
3604 (linux_pause_all): Turn into ...
3605 (linux_process_target::pause_all): ... this.
3606 (linux_unpause_all): Turn into ...
3607 (linux_process_target::unpause_all): ... this.
3608 (linux_process_target::prepare_to_access_memory): Update.
3609 (linux_process_target::done_accessing_memory): Update.
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
4e2e869c
TBA
36152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3616
3617 Turn process_stratum_target's get_tib_address op into a method of
3618 process_target.
3619
3620 * target.h (struct process_stratum_target): Remove the target op.
3621 (class process_target): Add the target op. Also add
3622 'supports_get_tib_address'.
3623 * target.cc (process_target::get_tib_address): Define.
3624 (process_target::supports_get_tib_address): Define.
3625
3626 Update the derived classes and callers below.
3627
3628 * server.cc (handle_query): Update.
3629 * linux-low.cc (win32_target_ops): Update.
3630 * lynx-low.cc (lynx_target_ops): Update.
3631 * nto-low.cc (nto_target_ops): Update.
3632 * win32-low.cc (win32_target_ops): Update.
3633 (win32_process_target::supports_get_tib_address): Define.
3634 (win32_get_tib_address): Turn into ...
3635 (win32_process_target::get_tib_address): ... this.
3636 * win32-low.h (class win32_process_target): Update.
3637
68119632
TBA
36382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3639
3640 Turn process_stratum_target's thread_stopped op into a method of
3641 process_target.
3642
3643 * target.h (struct process_stratum_target): Remove the target op.
3644 (class process_target): Add the target op. Also add
3645 'supports_thread_stopped'.
3646 (target_thread_stopped): Update the macro.
3647 * target.cc (process_target::thread_stopped): Define.
3648 (process_target::supports_thread_stopped): Define.
3649 (prepare_to_access_memory): Update.
3650
3651 Update the derived classes and callers below.
3652
3653 * server.cc (queue_stop_reply_callback): Update.
3654 * linux-low.cc (linux_target_ops): Update.
3655 (linux_process_target::supports_thread_stopped): Define.
3656 (linux_thread_stopped): Turn into ...
3657 (linux_process_target::thread_stopped): ... this.
3658 * linux-low.h (class linux_process_target): Update.
3659 * lynx-low.cc (lynx_target_ops): Update.
3660 * nto-low.cc (nto_target_ops): Update.
3661 * win32-low.cc (win32_target_ops): Update.
3662
770d8f6a
TBA
36632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3664
3665 Turn process_stratum_target's read_pc and write_pc ops into
3666 methods of process_target.
3667
3668 * target.h (struct process_stratum_target): Remove the target ops.
3669 (class process_target): Add the target ops.
3670 * target.cc (process_target::read_pc): Define.
3671 (process_target::write_pc): Define.
3672
3673 Update the derived classes and callers below.
3674
3675 * regcache.cc (regcache_read_pc): Update.
3676 (regcache_write_pc): Update.
3677 * linux-low.cc (linux_target_ops): Update.
3678 (linux_read_pc): Turn into ...
3679 (linux_process_target::read_pc): ... this.
3680 (linux_write_pc): Turn into ...
3681 (linux_process_target::write_pc): ... this.
3682 * linux-low.h (class linux_process_target): Update.
3683 * lynx-low.cc (lynx_target_ops): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 * win32-low.cc (win32_target_ops): Update.
3686
290732bf
TBA
36872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3688
3689 Turn process_stratum_target's supports_tracepoints op into a
3690 method of process_target.
3691
3692 * target.h (struct process_stratum_target): Remove the target op.
3693 (class process_target): Add the target op.
3694 (target_supports_tracepoints): Update the macro.
3695 * target.cc (process_target::supports_tracepoints): Define.
3696
3697 Update the derived classes and callers below.
3698
3699 * linux-low.cc (linux_target_ops): Update.
3700 (linux_supports_tracepoints): Turn into ...
3701 (linux_process_target::supports_tracepoints): ... this.
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
0df28b1b
TBA
37072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3708
3709 Turn process_stratum_target's process_qsupported op into a method
3710 of process_target.
3711
3712 * target.h (struct process_stratum_target): Remove the target op.
3713 (class process_target): Add the target op.
3714 (target_process_qsupported): Update the macro.
3715 * target.cc (process_target::process_qsupported): Define.
3716
3717 Update the derived classes and callers below.
3718
3719 * linux-low.cc (linux_target_ops): Update.
3720 (linux_process_qsupported): Turn into ...
3721 (linux_process_target::process_qsupported): ... this.
3722 * linux-low.h (class linux_process_target): Update.
3723 * lynx-low.cc (lynx_target_ops): Update.
3724 * nto-low.cc (nto_target_ops): Update.
3725 * win32-low.cc (win32_target_ops): Update.
3726
9da41fda
TBA
37272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3728
3729 Turn process_stratum_target's read_loadmap op into a method of
3730 process_target.
3731
3732 * target.h (struct process_stratum_target): Remove the target op.
3733 (class process_target): Add the target op. Also add
3734 'supports_read_loadmap'.
3735 * target.cc (process_target::read_loadmap): Define.
3736 (process_target::supports_read_loadmap): Define.
3737
3738 Update the derived classes and callers below.
3739
3740 * server.cc (handle_qxfer_fdpic): Update.
3741 (handle_query): Update.
3742 * linux-low.cc (linux_target_ops): Update.
3743 (linux_process_target::supports_read_loadmap): Define.
3744 (linux_read_loadmap): Turn into ...
3745 (linux_process_target::read_loadmap): ... this.
3746 * linux-low.h (class linux_process_target): Update.
3747 * lynx-low.cc (lynx_target_ops): Update.
3748 * nto-low.cc (nto_target_ops): Update.
3749 * win32-low.cc (win32_target_ops): Update.
3750
95a45fc1
TBA
37512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3752
3753 Turn process_stratum_target's core_of_thread op into a method of
3754 process_target.
3755
3756 * target.h (struct process_stratum_target): Remove the target op.
3757 (class process_target): Add the target op.
3758 (target_core_of_thread): Update the macro.
3759 * target.cc (process_target::core_of_thread): Define.
3760
3761 Update the derived classes and callers below.
3762
3763 * linux-low.cc (linux_target_ops): Update.
3764 (linux_process_target::core_of_thread): Define.
3765 * linux-low.h (class linux_process_target): Update.
3766 * lynx-low.cc (lynx_target_ops): Update.
3767 * nto-low.cc (nto_target_ops): Update.
3768 * win32-low.cc (win32_target_ops): Update.
3769
55cf3021
TBA
37702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3771
3772 Turn process_stratum_target's handle_monitor_command op into a
3773 method of process_target.
3774
3775 * target.h (struct process_stratum_target): Remove the target op.
3776 (class process_target): Add the target op.
3777 (target_handle_monitor_command): Update the macro.
3778 * target.cc (process_target::handle_monitor_command): Define.
3779
3780 Update the derived classes and callers below.
3781
3782 * server.cc (handle_query): Update.
3783 * linux-low.cc (linux_target_ops): Update.
3784 (linux_process_target::handle_monitor_command): Define.
3785 * linux-low.h (class linux_process_target): Update.
3786 * lynx-low.cc (lynx_target_ops): Update.
3787 * nto-low.cc (nto_target_ops): Update.
3788 * win32-low.cc (win32_target_ops): Update.
3789
fb00dfce
TBA
37902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3791
3792 Turn process_stratum_target's handle_new_gdb_connection op into a
3793 method of process_target.
3794
3795 * target.h (struct process_stratum_target): Remove the target op.
3796 (class process_target): Add the target op.
3797 (target_handle_new_gdb_connection): Update the macro.
3798 * target.cc (process_target::handle_new_gdb_connection): Define.
3799
3800 Update the derived classes and callers below.
3801
3802 * linux-low.cc (linux_target_ops): Update.
3803 (linux_handle_new_gdb_connection): Turn into ...
3804 (linux_process_target::handle_new_gdb_connection): ... this.
3805 * linux-low.h (class linux_process_target): Update.
3806 * lynx-low.cc (lynx_target_ops): Update.
3807 * nto-low.cc (nto_target_ops): Update.
3808 * win32-low.cc (win32_target_ops): Update.
3809
9690a72a
TBA
38102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3811
3812 Turn process_stratum_target's supports_fork_events,
3813 supports_vfork_events, and supports_exec_events ops into methods
3814 of process_target.
3815
3816 * target.h (struct process_stratum_target): Remove the target ops.
3817 (class process_target): Add the target ops.
3818 (target_supports_fork_events): Update the macro.
3819 (target_supports_vfork_events): Update the macro.
3820 (target_supports_exec_events): Update the macro.
3821 * target.cc (process_target::supports_fork_events): Define.
3822 (process_target::supports_vfork_events): Define.
3823 (process_target::supports_exec_events): Define.
3824
3825 Update the derived classes and callers below.
3826
3827 * linux-low.cc (linux_target_ops): Update.
3828 (linux_supports_fork_events): Turn into ...
3829 (linux_process_target::supports_fork_events): ... this.
3830 (linux_supports_vfork_events): Turn into ...
3831 (linux_process_target::supports_vfork_events): ... this.
3832 (linux_supports_exec_events): Turn into ...
3833 (linux_process_target::supports_exec_events): ... this.
3834 * linux-low.h (class linux_process_target): Update.
3835 * lynx-low.cc (lynx_target_ops): Update.
3836 * nto-low.cc (nto_target_ops): Update.
3837 * win32-low.cc (win32_target_ops): Update.
3838
652aef77
TBA
38392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3840
3841 Turn process_stratum_target's supports_multi_process op into a
3842 method of process_target.
3843
3844 * target.h (struct process_stratum_target): Remove the target op.
3845 (class process_target): Add the target op.
3846 * target.cc (process_target::supports_multi_process): Define.
3847 (target_supports_multi_process): Update.
3848
3849 Update the derived classes and callers below.
3850
3851 * linux-low.cc (linux_target_ops): Update.
3852 (linux_supports_multi_process): Turn into ...
3853 (linux_process_target::supports_multi_process): ... this.
3854 * linux-low.h (class linux_process_target): Update.
3855 * lynx-low.cc (lynx_target_ops): Update.
3856 * nto-low.cc (nto_target_ops): Update.
3857 * win32-low.cc (win32_target_ops): Update.
3858
0dc587d4
TBA
38592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3860
3861 Turn process_stratum_target's supports_non_stop, async, and
3862 start_non_stop ops into methods of process_target.
3863
3864 * target.h (struct process_stratum_target): Remove the target ops.
3865 (class process_target): Add the target ops.
3866 (target_supports_non_stop): Update the macro.
3867 (target_async): Update the macro.
3868 (start_non_stop): Remove declaration.
3869 * target.cc (process_target::supports_non_stop): Define.
3870 (process_target::async): Define.
3871 (process_target::start_non_stop): Define.
3872 (start_non_stop): Remove.
3873
3874 Update the derived classes and callers below.
3875
3876 * server.cc (handle_qxfer_siginfo): Update.
3877 (handle_query): Update.
3878 * linux-low.cc (linux_target_ops): Update.
3879 (linux_supports_non_stop): Turn into ...
3880 (linux_process_target::supports_non_stop): ... this.
3881 (linux_async): Turn into ...
3882 (linux_process_target::async): ... this.
3883 (linux_start_non_stop): Turn into ...
3884 (linux_process_target::start_non_stop): ... this.
3885 * linux-low.h (class linux_process_target): Update.
3886 * lynx-low.cc (lynx_target_ops): Update.
3887 * nto-low.cc (nto_target_ops): Update.
3888 (nto_supports_non_stop): Remove; rely on the default behavior
3889 instead.
3890 * win32-low.cc (win32_target_ops): Update.
3891
d7abedf7
TBA
38922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3893
3894 Turn process_stratum_target's qxfer_siginfo op into a method of
3895 process_target.
3896
3897 * target.h (struct process_stratum_target): Remove the target op.
3898 (class process_target): Add the target op. Also add
3899 'supports_qxfer_siginfo'.
3900 * target.cc (process_target::qxfer_siginfo): Define.
3901 (process_target::supports_qxfer_siginfo): Define.
3902
3903 Update the derived classes and callers below.
3904
3905 * server.cc (handle_qxfer_siginfo): Update.
3906 (handle_query): Update.
3907 * linux-low.cc (linux_target_ops): Update.
3908 (linux_process_target::supports_qxfer_siginfo): Define.
3909 (linux_xfer_siginfo): Turn into ...
3910 (linux_process_target::qxfer_siginfo): ... this.
3911 * linux-low.h (class linux_process_target): Update.
3912 * lynx-low.cc (lynx_target_ops): Update.
3913 * nto-low.cc (nto_target_ops): Update.
3914 * win32-low.cc (win32_target_ops): Update.
3915
2d0795ee
TBA
39162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3917
3918 Turn process_stratum_target's qxfer_osdata op into a method of
3919 process_target.
3920
3921 * target.h (struct process_stratum_target): Remove the target op.
3922 (class process_target): Add the target op. Also add
3923 'supports_qxfer_osdata'.
3924 * target.cc (process_target::qxfer_osdata): Define.
3925 (process_target::supports_qxfer_osdata): Define.
3926
3927 Update the derived classes and callers below.
3928
3929 * server.cc (handle_qxfer_osdata): Update.
3930 (handle_query): Update.
3931 * linux-low.cc (linux_target_ops): Update.
3932 (linux_process_target::supports_qxfer_osdata): Define.
3933 (linux_qxfer_osdata): Turn into ...
3934 (linux_process_target::qxfer_osdata): ... this.
3935 * linux-low.h (class linux_process_target): Update.
3936 * lynx-low.cc (lynx_target_ops): Update.
3937 * nto-low.cc (nto_target_ops): Update.
3938 * win32-low.cc (win32_target_ops): Update.
3939
ea06bbaa
TBA
39402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3941
3942 Turn process_stratum_target's hostio_last_error op into a
3943 method of process_target.
3944
3945 * target.h (struct process_stratum_target): Remove the target op.
3946 (class process_target): Add the target op.
3947 * target.cc: Add "hostio.h" to includes.
3948 (process_target::hostio_last_error): Define.
3949
3950 Update the derived classes and callers below.
3951
3952 * hostio.cc (hostio_error): Update.
3953 * linux-low.cc: Remove "hostio.h" from includes.
3954 (linux_target_ops): Update.
3955 * lynx-low.cc (lynx_target_ops): Update.
3956 * nto-low.cc (nto_target_ops): Update.
3957 * win32-low.h (class win32_process_target): Update.
3958 * win32-low.cc (win32_target_ops): Update.
3959 (wince_hostio_last_error): Turn into ...
3960 (win32_process_target::hostio_last_error): ... this.
3961
6e3fd7e9
TBA
39622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3963
3964 Turn process_stratum_target's get_tls_address op into a method of
3965 process_target.
3966
3967 * target.h (struct process_stratum_target): Remove the target op.
3968 (class process_target): Add the target op. Also add
3969 'supports_get_tls_address'.
3970 * target.cc (process_target::get_tls_address): Define.
3971 (process_target::supports_get_tls_address): Define.
3972
3973 Update the derived classes and callers below.
3974
3975 * server.cc (handle_query): Update.
3976 * linux-low.cc (linux_target_ops): Update.
3977 (linux_process_target::supports_get_tls_address): Define.
3978 (linux_process_target::get_tls_address): Define.
3979 * linux-low.h (class linux_process_target): Update.
3980 * lynx-low.cc (lynx_target_ops): Update.
3981 * nto-low.cc (nto_target_ops): Update.
3982 * win32-low.cc (win32_target_ops): Update.
3983
5203ae1e
TBA
39842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3985
3986 Turn process_stratum_target's read_offsets 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_read_offsets'.
3992 * target.cc (process_target::read_offsets): Define.
3993 (process_target::supports_read_offsets): Define.
3994
3995 Update the derived classes and callers below.
3996
3997 * server.cc (handle_query): Update.
3998 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3999 (linux_target_ops): Update.
4000 (linux_process_target::supports_read_offsets): Define.
4001 (linux_read_offsets): Turn into ...
4002 (linux_process_target::read_offsets): ... 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
6eeb5c55
TBA
40082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4009
4010 Turn process_stratum_target's stopped_by_watchpoint and
4011 stopped_data_address ops into methods of process_target.
4012
4013 * target.h (struct process_stratum_target): Remove the target ops.
4014 (class process_target): Add the target ops.
4015 * target.cc (process_target::stopped_by_watchpoint): Define.
4016 (process_target::stopped_data_address): Define.
4017
4018 Update the derived classes and callers below.
4019
4020 * remote-utils.cc (prepare_resume_reply): Update.
4021 * linux-low.cc (linux_target_ops): Update.
4022 (linux_stopped_by_watchpoint): Turn into ...
4023 (linux_process_target::stopped_by_watchpoint): ... this.
4024 (linux_stopped_data_address): Turn into ...
4025 (linux_process_target::stopped_data_address): ... this.
4026 * linux-low.h (class linux_process_target): Update.
4027 * lynx-low.cc (lynx_target_ops): Update.
4028 * nto-low.cc (nto_target_ops): Update.
4029 (nto_stopped_by_watchpoint): Turn into ...
4030 (nto_process_target::stopped_by_watchpoint): ... this.
4031 (nto_stopped_data_address): Turn into ...
4032 (nto_process_target::stopped_data_address): ... this.
4033 * nto-low.h (class nto_process_target): Update.
4034 * win32-low.cc (win32_target_ops): Update.
4035 (win32_stopped_by_watchpoint): Turn into ...
4036 (win32_process_target::stopped_by_watchpoint): ... this.
4037 (win32_stopped_data_address): Turn into ...
4038 (win32_process_target::stopped_data_address): ... this.
4039 * win32-low.h (class win32_process_target): Update.
4040
22aa6223
TBA
40412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4042
4043 Turn process_stratum_target's supports_hardware_single_step op into
4044 a method of process_target.
4045
4046 * target.h (struct process_stratum_target): Remove the target op.
4047 (class process_target): Add the target op.
4048 (target_supports_hardware_single_step): Update the macro.
4049 (target_can_do_hardware_single_step): Remove declaration.
4050 * target.cc (process_target::supports_hardware_single_step): Define.
4051 (target_can_do_hardware_single_step): Remove.
4052
4053 Update the derived classes and callers below.
4054
4055 * linux-low.h (class linux_process_target): Update.
4056 * linux-low.cc (linux_target_ops): Update.
4057 (linux_supports_hardware_single_step): Turn into ...
4058 (linux_process_target::supports_hardware_single_step): ... this.
4059 * lynx-low.h (class lynx_process_target): Update.
4060 * lynx-low.cc (lynx_target_ops): Update.
4061 (lynx_process_target::supports_hardware_single_step): Define.
4062 * nto-low.h (class nto_process_target): Update.
4063 * nto-low.cc (nto_target_ops): Update.
4064 (nto_process_target::supports_hardware_single_step): Define.
4065 * win32-low.h (class win32_process_target): Update.
4066 * win32-low.cc (win32_target_ops): Update.
4067 (win32_process_target::supports_hardware_single_step): Define.
4068
93fe88b2
TBA
40692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4070
4071 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4072 ops into methods of process_target.
4073
4074 * target.h (struct process_stratum_target): Remove the target ops.
4075 (class process_target): Add the target ops.
4076 (target_stopped_by_hw_breakpoint): Update the macro.
4077 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4078 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4079 (process_target::supports_stopped_by_hw_breakpoint): Define.
4080
4081 Update the derived classes and callers below.
4082
4083 * linux-low.cc (linux_target_ops): Update.
4084 (linux_stopped_by_hw_breakpoint): Turn into ...
4085 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4086 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4087 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4088 * linux-low.h (class linux_process_target): Update.
4089 * lynx-low.cc (lynx_target_ops): Update.
4090 * nto-low.cc (nto_target_ops): Update.
4091 * win32-low.cc (win32_target_ops): Update.
4092
84320c4e
TBA
40932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4094
4095 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4096 ops into methods of process_target.
4097
4098 * target.h (struct process_stratum_target): Remove the target ops.
4099 (class process_target): Add the target ops.
4100 (target_stopped_by_sw_breakpoint): Update the macro.
4101 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4102 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4103 (process_target::supports_stopped_by_sw_breakpoint): Define.
4104
4105 Update the derived classes and callers below.
4106
4107 * linux-low.cc (linux_target_ops): Update.
4108 (linux_stopped_by_sw_breakpoint): Turn into ...
4109 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4110 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4111 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4112 * linux-low.h (class linux_process_target): Update.
4113 * lynx-low.cc (lynx_target_ops): Update.
4114 * nto-low.cc (nto_target_ops): Update.
4115 * win32-low.cc (win32_target_ops): Update.
4116
7e0bde70
TBA
41172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4118
4119 Turn process_stratum_target's insert_point and remove_point ops
4120 into methods of process_target.
4121
4122 * target.h (struct process_stratum_target): Remove the target ops.
4123 (class process_target): Add the target ops.
4124 * target.cc (process_target::insert_point): Define.
4125 (process_target::remove_point): Define.
4126
4127 Update the derived classes and callers below.
4128
4129 * mem-break.cc (set_raw_breakpoint_at): Update.
4130 (delete_raw_breakpoint): Update.
4131 (uninsert_raw_breakpoint): Update.
4132 (reinsert_raw_breakpoint): Update.
4133 * linux-low.cc (linux_target_ops): Update.
4134 (linux_insert_point): Turn into ...
4135 (linux_process_target::insert_point): ... this.
4136 (linux_remove_point): Turn into ...
4137 (linux_process_target::remove_point): ... this.
4138 * linux-low.h (class linux_process_target): Update.
4139 * lynx-low.cc (lynx_target_ops): Update.
4140 * nto-low.cc (nto_target_ops): Update.
4141 (nto_insert_point): Turn into ...
4142 (nto_process_target::insert_point): ... this.
4143 (nto_remove_point): Turn into ...
4144 (nto_process_target::remove_point): ... this.
4145 * nto-low.h (class nto_process_target): Update.
4146 * win32-low.cc (win32_target_ops): Update.
4147 (win32_insert_point): Turn into ...
4148 (win32_process_target::insert_point): ... this.
4149 (win32_remove_point): Turn into ...
4150 (win32_process_target::remove_point): ... this.
4151 * win32-low.h (class win32_process_target): Update.
4152
a2b2297a
TBA
41532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4154
4155 Turn process_stratum_target's supports_z_point_type op into a
4156 method of process_target.
4157
4158 * target.h (struct process_stratum_target): Remove the target op.
4159 (class process_target): Add the target op.
4160 * target.cc (process_target::supports_z_point_type): Define.
4161
4162 Update the derived classes and callers below.
4163
4164 * mem-break.cc (z_type_supported): Update.
4165 * linux-low.cc (linux_target_ops): Update.
4166 (linux_supports_z_point_type): Turn into ...
4167 (linux_process_target::supports_z_point_type): ... this.
4168 * linux-low.h (class linux_process_target): Update.
4169 * lynx-low.cc (lynx_target_ops): Update.
4170 * nto-low.cc (nto_target_ops): Update.
4171 (nto_supports_z_point_type): Turn into ...
4172 (nto_process_target::supports_z_point_type): ... this.
4173 * nto-low.h (class nto_process_target): Update.
4174 * win32-low.cc (win32_target_ops): Update.
4175 (win32_supports_z_point_type): Turn into ...
4176 (win32_process_target::supports_z_point_type): ... this.
4177 * win32-low.h (class win32_process_target): Update.
4178
eac215cc
TBA
41792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4180
4181 Turn process_stratum_target's read_auxv op into a method of
4182 process_target.
4183
4184 * target.h (class process_stratum_target): Remove the target op.
4185 (struct process_target): Add the target op. Also add
4186 'supports_read_auxv'.
4187 * target.cc (process_target::read_auxv): Define.
4188 (process_target::supports_read_auxv): Define.
4189
4190 Update the derived classes and callers below.
4191
4192 * server.cc (handle_qxfer_auxv): Update.
4193 (handle_query): Update.
4194 * linux-low.cc (linux_target_ops): Update.
4195 (linux_process_target::supports_read_auxv): Define.
4196 (linux_read_auxv): Turn into ...
4197 (linux_process_target::read_auxv): ... this.
4198 * linux-low.h (class linux_process_target): Update.
4199 * lynx-low.cc (lynx_target_ops): Update.
4200 * nto-low.cc (nto_target_ops): Update.
4201 (nto_process_target::supports_read_auxv): Define.
4202 (nto_read_auxv): Turn into ...
4203 (nto_process_target::read_auxv): ... this.
4204 * nto-low.h (class nto_process_target): Update.
4205 * win32-low.cc (win32_target_ops): Update.
4206
eb497a2a
TBA
42072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4208
4209 Turn process_stratum_target's request_interrupt op into a method of
4210 process_target.
4211
4212 * target.h (struct process_stratum_target): Remove the target op.
4213 (class process_target): Add the target op.
4214
4215 Update the derived classes and callers below.
4216
4217 * remote-utils.cc (putpkt_binary_1): Update.
4218 (input_interrupt): Update.
4219 (getpkt): Update.
4220 * server.cc (handle_v_requests): Update.
4221 * linux-low.cc (linux_target_ops): Update.
4222 (linux_request_interrupt): Turn into ...
4223 (linux_process_target::request_interrupt): ... this.
4224 * linux-low.h (class linux_process_target): Update.
4225 * lynx-low.cc (lynx_target_ops): Update.
4226 (lynx_request_interrupt): Turn into ...
4227 (lynx_process_target::request_interrupt): ... this.
4228 * lynx-low.h (class lynx_process_target): Update.
4229 * nto-low.cc (nto_target_ops): Update.
4230 (nto_request_interrupt): Turn into ...
4231 (nto_process_target::request_interrupt): ... this.
4232 * nto-low.h (class nto_process_target): Update.
4233 * win32-low.cc (win32_target_ops): Update.
4234 (win32_request_interrupt): Turn into ...
4235 (win32_process_target::request_interrupt): ... this.
4236 * win32-low.h (class win32_process_target): Update.
4237
2a31c7aa
TBA
42382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4239
4240 Turn process_stratum_target's look_up_symbols op into a method of
4241 process_target.
4242
4243 * target.h (struct process_stratum_target): Remove the target op.
4244 (class process_target): Add the target op.
4245 * target.cc (process_target::look_up_symbols): Define.
4246
4247 Update the derived classes and callers below.
4248
4249 * server.cc (handle_query): Update.
4250 * linux-low.cc (linux_target_ops): Update.
4251 (linux_look_up_symbols): Turn into ...
4252 (linux_process_target::look_up_symbols): ... this.
4253 * linux-low.h (class linux_process_target): Update.
4254 * lynx-low.cc (lynx_target_ops): Update.
4255 * nto-low.cc (nto_target_ops): Update.
4256 * win32-low.cc (win32_target_ops): Update.
4257
e2558df3
TBA
42582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4259
4260 Turn process_stratum_target's read_memory and write_memory
4261 ops into methods of process_target.
4262
4263 * target.h (struct process_stratum_target): Remove the target ops.
4264 (class process_target): Add the target ops.
4265
4266 Update the derived classes and callers below.
4267
4268 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4269 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4270 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4271 (arm_get_syscall_trapinfo): Update.
4272 * linux-cris-low.cc (cris_breakpoint_at): Update.
4273 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4274 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4275 * linux-mips-low.cc (mips_breakpoint_at): Update.
4276 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4277 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4278 * linux-sh-low.cc (sh_breakpoint_at): Update.
4279 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4280 (sparc_store_gregset_from_stack): Update.
4281 (sparc_breakpoint_at): Update.
4282 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4283 * linux-tile-low.cc (tile_breakpoint_at): Update.
4284 * linux-x86-low.cc (x86_breakpoint_at): Update.
4285 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4286 * mem-brea.cc (insert_memory_breakpoint): Update.
4287 (validate_inserted_breakpoint): Update.
4288 * target.cc (read_inferior_memory): Update.
4289 (target_write_memory): Update.
4290 * linux-low.cc (linux_target_ops): Update.
4291 (linux_read_memory): Make a wrapper around the read_memory target
4292 op call.
4293 (linux_process_target::read_memory): Rename from linux_read_memory.
4294 (linux_write_memory): Turn into ...
4295 (linux_process_target::write_memory): ... this.
4296 * linux-low.h (class linux_process_target): Update.
4297 * lynx-low.cc (lynx_target_ops): Update.
4298 (lynx_read_memory): Turn into ...
4299 (lynx_process_target::read_memory): ... this.
4300 (lynx_write_memory): Turn into ...
4301 (lynx_process_target::write_memory): ... this.
4302 * lynx-low.h (class lynx_process_target): Update.
4303 * nto-low.cc (nto_target_ops): Update.
4304 (nto_read_memory): Turn into ...
4305 (nto_process_target::read_memory): ... this.
4306 (nto_write_memory): Turn into ...
4307 (nto_process_target::write_memory): ... this.
4308 * nto-low.h (class nto_process_target): Update.
4309 * win32-low.cc (win32_target_ops): Update.
4310 (win32_read_inferior_memory): Turn into ...
4311 (win32_process_target::read_memory): ... this.
4312 (win32_write_inferior_memory): Turn into ...
4313 (win32_process_target::write_memory): ... this.
4314 * win32-low.h (class win32_process_target): Update.
4315
79b44087
TBA
43162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4317
4318 Turn process_stratum_target's prepare_to_access_memory and
4319 done_accessing_memory ops into methods of process_target.
4320
4321 * target.h (struct process_stratum_target): Remove the target ops.
4322 (class process_target): Add the target ops.
4323 * target.cc (process_target::prepare_to_access_memory): Define.
4324 (process_target::done_accessing_memory): Define.
4325 (prepare_to_access_memory): Update.
4326 (done_accessing_memory): Update.
4327
4328 Update the derived classes and callers below.
4329
4330 * linux-low.cc (linux_target_ops): Update.
4331 (linux_prepare_to_access_memory): Turn into ...
4332 (linux_process_target::prepare_to_access_memory): ... this.
4333 (linux_done_accessing_memory): Turn into ...
4334 (linux_process_target::done_accessing_memory): ... this.
4335 * linux-low.h (class linux_process_target): Update.
4336 * lynx-low.cc (lynx_target_ops): Update.
4337 * nto-low.cc (nto_target_ops): Update.
4338 * win32-low.cc (win32_target_ops): Update.
4339
a5a4d4cd
TBA
43402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4341
4342 Turn process_stratum_target's fetch_registers and store_registers
4343 ops into methods of process_target.
4344
4345 * target.h (struct process_stratum_target): Remove the target ops.
4346 (class process_target): Add the target ops.
4347 (fetch_inferior_registers): Update the macro.
4348 (store_inferior_registers): Update the macro.
4349
4350 Update the derived classes and callers below.
4351
4352 * linux-low.cc (linux_target_ops): Update.
4353 (linux_fetch_registers): Turn into ...
4354 (linux_process_target::fetch_registers): ... this.
4355 (linux_store_registers): Turn into ...
4356 (linux_process_target::store_registers): ... this.
4357 * linux-low.h (class linux_process_target): Update.
4358 * lynx-low.cc (lynx_target_ops): Update.
4359 (lynx_fetch_registers): Turn into ...
4360 (lynx_process_target::fetch_registers): ... this.
4361 (lynx_store_registers): Turn into ...
4362 (lynx_process_target::store_registers): ... this.
4363 * lynx-low.h (class lynx_process_target): Update.
4364 * nto-low.cc (nto_target_ops): Update.
4365 (nto_fetch_registers): Turn into ...
4366 (nto_process_target::fetch_registers): ... this.
4367 (nto_store_registers): Turn into ...
4368 (nto_process_target::store_registers): ... this.
4369 * nto-low.h (class nto_process_target): Update.
4370 * win32-low.cc (win32_target_ops): Update.
4371 (win32_fetch_inferior_registers): Turn into ...
4372 (win32_process_target::fetch_registers): ... this.
4373 (win32_store_inferior_registers): Turn into ...
4374 (win32_process_target::store_registers): ... this.
4375 * win32-low.h (class win32_process_target): Update.
4376
6532e7e3
TBA
43772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4378
4379 Turn process_stratum_target's wait op into a method of
4380 process_target.
4381
4382 * target.h (struct process_stratum_target): Remove the target op.
4383 (class process_target): Add the target op.
4384
4385 Update the derived classes and callers below.
4386
4387 * target.cc (target_wait): Update.
4388 * linux-low.cc (linux_target_ops): Update.
4389 (linux_wait): Turn into ...
4390 (linux_process_target::wait): ... this.
4391 * linux-low.h (class linux_process_target): Update.
4392 * lynx-low.cc (lynx_target_ops): Update.
4393 (lynx_wait): Turn into ...
4394 (lynx_process_target::wait): ... this.
4395 * lynx-low.h (class lynx_process_target): Update.
4396 * nto-low.cc (nto_target_ops): Update.
4397 (nto_wait): Turn into ...
4398 (nto_process_target::wait): ... this.
4399 * nto-low.h (class nto_process_target): Update.
4400 * win32-low.cc (win32_target_ops): Update.
4401 (win32_wait): Turn into ...
4402 (win32_process_target::wait): ... this.
4403 (do_initial_child_stuff): Update.
4404 * win32-low.h (class win32_process_target): Update.
4405
0e4d7e35
TBA
44062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4407
4408 Turn process_stratum_target's resume op into a method of
4409 process_target.
4410
4411 * target.h (struct process_stratum_target): Remove the target op.
4412 (class process_target): Add the target op.
4413
4414 Update the derived classes and callers below.
4415
4416 * server.cc (resume): Update.
4417 * target.cc (target_stop_and_wait): Update.
4418 (target_continue_no_signal): Update.
4419 (target_continue): Update.
4420 * linux-low.cc (linux_target_ops): Update.
4421 (linux_resume): Turn into ...
4422 (linux_process_target::resume): ... this.
4423 * linux-low.h (class linux_process_target): Update.
4424 * lynx-low.cc (lynx_target_ops): Update.
4425 (lynx_resume): Turn into ...
4426 (lynx_process_target::resume): ... this.
4427 * lynx-low.h (class lynx_process_target): Update.
4428 * nto-low.cc (nto_target_ops): Update.
4429 (nto_resume): Turn into ...
4430 (nto_process_target::resume): ... this.
4431 * nto-low.h (class nto_process_target): Update.
4432 * win32-low.cc (win32_target_ops): Update.
4433 (win32_resume): Turn into ...
4434 (win32_process_target::resume): ... this.
4435 (win32_process_target::detach): Update.
4436 (do_initial_child_stuff): Update.
4437 * win32-low.h (class win32_process_target): Update.
4438
13d3d99b
TBA
44392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4440
4441 Turn process_stratum_target's thread_alive op into a method of
4442 process_target.
4443
4444 * target.h (struct process_stratum_target): Remove the target op.
4445 (class process_target): Add the target op.
4446 (mythread_alive): Update the macro.
4447
4448 Update the derived classes and callers below.
4449
4450 * linux-low.cc (linux_target_ops): Update.
4451 (linux_thread_alive): Turn into ...
4452 (linux_process_target::thread_alive): ... this.
4453 (wait_for_sigstop): Update.
4454 * linux-low.h (class linux_process_target): Update.
4455 * lynx-low.cc (lynx_target_ops): Update.
4456 (lynx_thread_alive): Turn into ...
4457 (lynx_process_target::thread_alive): ... this.
4458 * lynx-low.h (class lynx_process_target): Update.
4459 * nto-low.cc (nto_target_ops): Update.
4460 (nto_thread_alive): Turn into ...
4461 (nto_process_target::thread_alive): ... this.
4462 * nto-low.h (class nto_process_target): Update.
4463 * win32-low.cc (win32_target_ops): Update.
4464 (win32_thread_alive): Turn into ...
4465 (win32_process_target::thread_alive): ... this.
4466 * win32-low.h (class win32_process_target): Update.
4467
95a49a39
TBA
44682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4469
4470 Turn process_stratum_target's join op into a method of
4471 process_target.
4472
4473 * target.h (struct process_stratum_target): Remove the target op.
4474 (class process_target): Add the target op.
4475 (join_inferior): Update the macro.
4476
4477 Update the derived classes and callers below.
4478
4479 * linux-low.cc (linux_target_ops): Update.
4480 (linux_join): Turn into ...
4481 (linux_process_target::join): ... this.
4482 * linux-low.h (class linux_process_target): Update.
4483 * lynx-low.cc (lynx_target_ops): Update.
4484 (lynx_join): Turn into ...
4485 (lynx_process_target::join): ... this.
4486 * lynx-low.h (class lynx_process_target): Update.
4487 * nto-low.cc (nto_target_ops): Update.
4488 (nto_process_target::join): Define.
4489 * nto-low.h (class nto_process_target): Update.
4490 * win32-low.cc (win32_target_ops): Update.
4491 (win32_join): Turn into ...
4492 (win32_process_target::join): ... this.
4493 * win32-low.h (class win32_process_target): Update.
4494
8adb37b9
TBA
44952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4496
4497 Turn process_stratum_target's mourn op into a method of
4498 process_target.
4499
4500 * target.h (struct process_stratum_target): Remove the target op.
4501 (class process_target): Add the target op.
4502
4503 Update the derived classes and callers below.
4504
4505 * target.cc (target_mourn_inferior): Update.
4506 * linux-low.cc (linux_target_ops): Update.
4507 (linux_mourn): Turn into ...
4508 (linux_process_target::mourn): ... this.
4509 (handle_extended_wait): Update.
4510 (linux_process_target::kill): Update.
4511 (linux_process_target::detach): Update.
4512 * linux-low.h (class linux_process_target): Update.
4513 * lynx-low.cc (lynx_target_ops): Update.
4514 (lynx_mourn): Turn into ...
4515 (lynx_process_target::mourn): ... this.
4516 * lynx-low.h (class lynx_process_target): Update.
4517 * nto-low.cc (nto_target_ops): Update.
4518 (nto_mourn): Turn into ...
4519 (nto_process_target::mourn): ... this.
4520 * nto-low.h (class nto_process_target): Update.
4521 * win32-low.cc (win32_target_ops): Update.
4522 (win32_mourn): Turn into ...
4523 (win32_process_target::mourn): ... this.
4524 * win32-low.h (class win32_process_target): Update.
4525
9061c9cf
TBA
45262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4527
4528 Turn process_stratum_target's detach op into a method of
4529 process_target.
4530
4531 * target.h (struct process_stratum_target): Remove the target op.
4532 (class process_target): Add the target op.
4533 (detach_inferior): Update the macro.
4534
4535 Update the derived classes and callers below.
4536
4537 * linux-low.cc (linux_target_ops): Update.
4538 (linux_detach): Turn into ...
4539 (linux_process_target::detach): ... this.
4540 * linux-low.h (class linux_process_target): Update.
4541 * lynx-low.cc (lynx_target_ops): Update.
4542 (lynx_detach): Turn into ...
4543 (lynx_process_target::detach): ... this.
4544 * lynx-low.h (class lynx_process_target): Update.
4545 * nto-low.cc (nto_target_ops): Update.
4546 (nto_detach): Turn into ...
4547 (nto_process_target::detach): ... this.
4548 * nto-low.h (class nto_process_target): Update.
4549 * win32-low.cc (win32_target_ops): Update.
4550 (win32_detach): Turn into ...
4551 (win32_process_target::detach): ... this.
4552 * win32-low.h (class win32_process_target): Update.
4553
c6885a57
TBA
45542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4555
4556 Turn process_stratum_target's kill op into a method of
4557 process_target.
4558
4559 * target.h (struct process_stratum_target): Remove the target op.
4560 (class process_target): Add the target op.
4561
4562 Update the derived classes and callers below.
4563
4564 * target.cc (kill_inferior): Update.
4565 * linux-low.cc (linux_target_ops): Update.
4566 (linux_kill): Turn into ...
4567 (linux_process_target::kill): ... this.
4568 * linux-low.h (class linux_process_target): Update.
4569 * lynx-low.cc (lynx_target_ops): Update.
4570 (lynx_kill): Turn into ...
4571 (lynx_process_target::kill): ... this.
4572 * lynx-low.h (class lynx_process_target): Update.
4573 * nto-low.cc (nto_target_ops): Update.
4574 (nto_kill): Turn into ...
4575 (nto_process_target::kill): ... this.
4576 * nto-low.h (class nto_process_target): Update.
4577 * win32-low.cc (win32_target_ops): Update.
4578 (win32_kill): Turn into ...
4579 (win32_process_target::kill): ... this.
4580 * win32-low.h (class win32_process_target): Update.
4581
ef03dad8
TBA
45822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4583
4584 Turn process_stratum_target's attach op into a method of
4585 process_target.
4586
4587 * target.h (struct process_stratum_target): Remove the target op.
4588 (class process_target): Add the target op.
4589 (myattach): Update the macro.
4590
4591 Update the derived classes and callers below.
4592
4593 * linux-low.cc (linux_target_ops): Update.
4594 (linux_attach): Turn into ...
4595 (linux_process_target::attach): ... this.
4596 * linux-low.h (class linux_process_target): Update.
4597 * lynx-low.cc (lynx_target_ops): Update.
4598 (lynx_attach): Turn into ...
4599 (lynx_process_target::attach): ... this.
4600 * lynx-low.h (class lynx_process_target): Update.
4601 * nto-low.cc (nto_target_ops): Update.
4602 (nto_attach): Turn into ...
4603 (nto_process_target::attach): ... this.
4604 * nto-low.h (class nto_process_target): Update.
4605 * win32-low.cc (win32_target_ops): Update.
4606 (win32_attach): Turn into ...
4607 (win32_process_target::attach): ... this.
4608 * win32-low.h (class win32_process_target): Update.
4609
6dee9afb
TBA
46102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4611
4612 Turn process_stratum_target's post_create_inferior op into a method
4613 of process_target.
4614
4615 * target.h (struct process_stratum_target): Remove the target op.
4616 (class process_target): Add the target op.
4617 (target_post_create_inferior): Update the macro.
4618 * target.cc (process_target::post_create_inferior): Define.
4619
4620 Update the derived classes and callers below.
4621
4622 * linux-low.cc (linux_target_ops): Update.
4623 (linux_post_create_inferior): Turn into ...
4624 (linux_process_target::post_create_inferior): ... this.
4625 * linux-low.h (class linux_process_target): Update.
4626 * lynx-low.cc (lynx_target_ops): Update.
4627 * nto-low.cc (nto_target_ops): Update.
4628 * win32-low.cc (win32_target_ops): Update.
4629
15295543
TBA
46302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4631
4632 Turn process_stratum_target's create_inferior op into a method of
4633 process_target.
4634
4635 * target.h (struct process_stratum_target): Remove the target op.
4636 (class process_target): Add the target op.
4637 (create_inferior): Rename the macro to ...
4638 (target_create_inferior): ... this.
4639
4640 Update the derived classes and callers below.
4641
4642 * server.cc (handle_v_run): Update.
4643 (captured_main): Update.
4644 (process_serial_event): Update.
4645 * linux-low.cc (linux_target_ops): Update.
4646 (linux_create_inferior): Turn into ...
4647 (linux_process_target::create_inferior): ... this.
4648 * linux-low.h (class linux_process_target): Update.
4649 * lynx-low.cc (lynx_target_ops): Update.
4650 (lynx_create_inferior): Turn into ...
4651 (lynx_process_target::create_inferior): ... this.
4652 * lynx-low.h (class lynx_process_target): Update.
4653 * nto-low.cc (nto_target_ops): Update.
4654 (nto_create_inferior): Turn into ...
4655 (nto_process_target::create_inferior): ... this.
4656 * nto-low.h (class nto_process_target): Update.
4657 * win32-low.cc (win32_target_ops): Update.
4658 (win32_create_inferior): Turn into ...
4659 (win32_process_target::create_inferior): ... this.
4660 * win32-low.h (class win32_process_target): Update.
4661
5ef9273d
TBA
46622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4663
4664 * target.h (class process_target): New class definition.
4665 (struct process_stratum_target) <pt>: New field with type
4666 'process_target*'.
4667 * linux-low.h (class linux_process_target): Define as a derived
4668 class of 'process_target'.
4669 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4670 as the 'pt' field.
4671 * lynx-low.h (class lynx_process_target): Define as a derived
4672 class of 'process_target'.
4673 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4674 as the 'pt' field.
4675 * nto-low.h (class nto_process_target): Define as a derived
4676 class of 'process_target'.
4677 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4678 as the 'pt' field.
4679 * win32-low.h (class win32_process_target): Define as a derived
4680 class of 'process_target'.
4681 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4682 as the 'pt' field.
4683
9f1528a1
AB
46842020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4685
4686 * configure: Regenerate.
4687
bf84f706
MR
46882020-02-19 Maciej W. Rozycki <macro@wdc.com>
4689 Andrew Burgess <andrew.burgess@embecosm.com>
4690
4691 * linux-riscv-low.cc: New file.
4692 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4693 and nat/riscv-linux-tdesc.c.
4694 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4695 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4696 Define.
4697
1a627e7e
TT
46982020-02-14 Tom Tromey <tom@tromey.com>
4699
4700 * acinclude.m4: Don't include acx_configure_dir.m4.
4701 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4702 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4703 (all, install-only, uninstall, clean-info, clean)
4704 (maintainer-clean): Don't recurse.
4705 (subdir_do, all-lib): Remove.
4706 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4707 (GNULIB_H): Remove.
4708 (generated_files): Update.
4709 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4710 * configure: Rebuild.
4711 * configure.ac: Don't configure gnulib or libiberty.
4712 (GNULIB): Update.
4713
a9b34532
EZ
47142020-02-14 Eli Zaretskii <eliz@gnu.org>
4715
4716 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4717 preparing the command line for CreateProcess.
4718 (win32_create_inferior): Reflect the program name in debugging
4719 output that shows the process and its command line.
4720
feacfcac
SM
47212020-02-13 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * Makefile.in: Rename source files from .c to .cc.
4724 * %.c: Rename to %.cc.
4725 * configure.ac: Rename server.c to server.cc.
4726 * configure: Re-generate.
4727
06b3c5bd
SM
47282020-02-13 Simon Marchi <simon.marchi@efficios.com>
4729
4730 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4731
052793ad
HD
47322020-02-12 Hannes Domani <ssbssa@yahoo.de>
4733
4734 * win32-low.c (win32_create_inferior): Set signal_pid.
4735
f20e3e82
MR
47362020-02-12 Maciej W. Rozycki <macro@wdc.com>
4737 Pedro Alves <palves@redhat.com>
4738
4739 Skip building gdbserver in a cross-configuration.
4740 * configure.srv: Set $gdbserver_host depending on whether $target
4741 is $host. Use $gdbserver_host instead of $host.
4742
8ddd8e0e
SM
47432020-02-11 Simon Marchi <simon.marchi@efficios.com>
4744
4745 * configure: Re-generate.
4746
898e7f60
SM
47472020-02-11 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * configure: Re-generate.
4750
58df732b
SM
47512020-02-11 Simon Marchi <simon.marchi@efficios.com>
4752
4753 * acinclude.m4: Update warning.m4 path.
4754
7928d571
HD
47552020-02-09 Hannes Domani <ssbssa@yahoo.de>
4756
4757 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4758 (handle_exception): Set siginfo_er.
4759 (win32_xfer_siginfo): New function.
4760
919adfe8
TT
47612020-02-07 Tom Tromey <tom@tromey.com>
4762 Pedro Alves <palves@redhat.com>
4763
4764 * README: Update build documentation.
4765 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4766 host, not target.
4767 * configure.ac: Update paths.
4768 * configure: Rebuild.
4769 * acinclude.m4: Update paths.
4770 * Makefile.in: Update include paths.
4771 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4772 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4773 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4774 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4775 (%-generated.c): Update paths.
4776 * Move entire directory from ../gdb/gdbserver.
4777
287c844a
MR
47782020-01-29 Maciej W. Rozycki <macro@wdc.com>
4779
4780 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4781
548a204f
PFC
47822020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4783
4784 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4785 assignment instead of srv_linux_obj.
4786
a2236a08
HD
47872020-01-28 Hannes Domani <ssbssa@yahoo.de>
4788
4789 * server.c (handle_qxfer_libraries): Write segment-address with
4790 paddress.
4791
bdaed379
HD
47922020-01-24 Hannes Domani <ssbssa@yahoo.de>
4793
4794 * Makefile.in (install-strip): New target.
4795 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4796 * aclocal.m4: Regenerate.
4797 * configure: Regenerate.
4798 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4799
42cd72aa
MR
48002020-01-24 Maciej W. Rozycki <macro@wdc.com>
4801
4802 * Makefile.in (SFILES): Adjust paths to point to real files.
4803 (OBS): Move waitstatus.o to target/waitstatus.o.
4804 (TAGS): Transform paths appropriately.
4805 (%.o): Rename to...
4806 (nat/%.o): ... this pattern rule.
4807 (%.o): Rename to...
4808 (target/%.o): ... this pattern rule.
4809 * configure.srv: Adjust paths throughout to include nat/ prefix
4810 with the revant files.
4811 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4812 * configure: Regenerate.
4813
42ba50ec
MR
48142020-01-24 Maciej W. Rozycki <macro@wdc.com>
4815
4816 * Makefile.in (TAGS): Remove config files from the recipe.
4817
05ea2a05
TT
48182020-01-14 Tom Tromey <tom@tromey.com>
4819
4820 * configure: Rebuild.
4821 * configure.ac: Remove any checks that were added to common.m4.
4822 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4823 lib-link.m4.
4824
01027315
TT
48252020-01-14 Tom Tromey <tom@tromey.com>
4826
4827 * server.h: Include config.h.
4828 * gdbreplay.c: Include config.h.
4829 * configure: Rebuild.
4830 * configure.ac: Don't source common.host.
4831 * acinclude.m4: Update path.
4832 * Makefile.in (INCSUPPORT): New variable.
4833 (INCLUDE_CFLAGS): Add INCSUPPORT.
4834 (SFILES): Update paths.
4835 (version-generated.c): Update path to create-version.sh.
4836 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4837
b2ceabe8
TT
48382020-01-14 Tom Tromey <tom@tromey.com>
4839
4840 * configure.ac (LIBS): Use WIN32APILIBS.
4841 (USE_WIN32API): Don't define.
4842 * configure: Rebuild.
4843
25c51f71
TT
48442020-01-14 Tom Tromey <tom@tromey.com>
4845
4846 * configure: Rebuild.
4847
c0bd321d
SM
48482020-01-13 Simon Marchi <simon.marchi@efficios.com>
4849
4850 * Makefile.in (%-generated.c): Remove rule for files from
4851 regformats/i386.
4852
bb564c58
SM
48532020-01-13 Simon Marchi <simon.marchi@efficios.com>
4854
4855 * configure: Re-generate.
4856
6e37c371
SM
48572020-01-13 Simon Marchi <simon.marchi@efficios.com>
4858
4859 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4860 Define to static.
4861 * tracepoint.c (stop_tracing, flush_trace_buffer,
4862 about_to_request_buffer_space, get_trace_state_variable_value,
4863 set_trace_state_variable_value, gdb_collect): Add declaration.
4864
df4a0200
SM
48652020-01-13 Simon Marchi <simon.marchi@efficios.com>
4866
4867 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4868 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4869 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4870 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4871 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4872 static.
4873
89e94ec9
SM
48742020-01-13 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * inferiors.c: Include gdbsupport/common-inferior.h.
4877
2552728a
SM
48782020-01-13 Simon Marchi <simon.marchi@efficios.com>
4879
4880 * hostio-errno.c: Include hostio.h.
4881
4025fa09
SM
48822020-01-13 Simon Marchi <simon.marchi@efficios.com>
4883
4884 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4885 prerequisite.
4886
c0b0a142
SM
48872020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4888
4889 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4890 * linux-arm-tdesc.h: Include arch/arm.h.
4891
bb1183e2
SM
48922020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4893
4894 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4895
f5df0b5f
SM
48962020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4897
4898 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4899 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4900
5b6d1e4f
PA
49012020-01-10 Pedro Alves <palves@redhat.com>
4902
4903 * fork-child.c (post_fork_inferior): Pass target down to
4904 startup_inferior.
4905 * inferiors.c (switch_to_thread): Add process_stratum_target
4906 parameter.
4907 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4908 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4909 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4910 * remote-utils.c (prepare_resume_reply): Pass the target to
4911 switch_to_thread.
4912 * target.c (the_target): Now a process_stratum_target.
4913 (done_accessing_memory): Pass the target to switch_to_thread.
4914 (set_target_ops): Ajust to use process_stratum_target.
4915 * target.h (struct target_ops): Rename to ...
4916 (struct process_stratum_target): ... this.
4917 (the_target, set_target_ops): Adjust.
4918 (prepare_to_access_memory): Adjust comment.
4919 * win32-low.c (child_xfer_memory): Adjust to use
4920 process_stratum_target.
4921 (win32_target_ops): Now a process_stratum_target.
4922
559e7e50
EZ
49232020-01-06 Eli Zaretskii <eliz@gnu.org>
4924 Pedro Alves <palves@redhat.com>
4925
4926 * win32-low.c (get_child_debug_event): Extract the fatal exception
4927 from the exit status and convert to the equivalent Posix signal
4928 number.
4929 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4930 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4931
48189bec
HD
49322020-01-01 Hannes Domani <ssbssa@yahoo.de>
4933
4934 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4935
5dd8bf88
JB
49362020-01-01 Joel Brobecker <brobecker@adacore.com>
4937
4938 * server.c (gdbserver_version): Change copyright year to 2020.
4939 * gdbreplay.c (gdbreplay_version): Likewise.
4940
0ad6b8ee
CB
49412019-12-19 Christian Biesinger <cbiesinger@google.com>
4942
4943 * configure: Regenerate.
4944 * configure.ac: Quote variable arguments of test.
4945
1ee7b812
BE
49462019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4947
4948 * Makefile.in: Fix build with GNU Make 3.81
4949
d9fa87f4
TT
49502019-12-16 Tom Tromey <tromey@adacore.com>
4951
4952 * server.c (get_exec_file): Constify result.
4953
ab7d13f0
CB
49542019-12-10 Christian Biesinger <cbiesinger@google.com>
4955
4956 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4957 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4958 * config.in: Regenerate.
4959 * configure: Regenerate.
4960 * configure.ac: Don't check for strerror.
4961 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4962 Call safe_strerror instead of strerror.
4963 * server.h (strerror): Remove this now-unnecessary declaration.
4964 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4965 strerror.
4966 (gdb_agent_helper_thread): Likewise.
4967 * utils.c (perror_with_name): Likewise.
4968
4da8c3a8
TT
49692019-11-26 Tom Tromey <tom@tromey.com>
4970
4971 * configure, config.in: Rebuild.
4972
21987b9c
TT
49732019-11-26 Tom Tromey <tom@tromey.com>
4974
4975 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4976 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4977 gdb_sigmask.
4978 * configure, config.in: Rebuild.
4979
5e030278
TT
49802019-11-26 Tom Tromey <tom@tromey.com>
4981
4982 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4983 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4984 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4985 * acinclude.m4: Include ax_pthread.m4.
4986 * config.in, configure: Rebuild.
4987
6d91ce9a
CB
49882019-11-26 Christian Biesinger <cbiesinger@google.com>
4989
4990 * debug.c (debug_set_output): Call safe_strerror instead of
4991 strerror.
4992 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4993 (linux_kill_one_lwp): Likewise.
4994 (linux_detach_one_lwp): Likewise.
4995 (linux_wait_for_event_filtered): Likewise.
4996 (store_register): Likewise.
4997 * lynx-low.c (lynx_attach): Likewise.
4998 * mem-break.c (insert_memory_breakpoint): Likewise.
4999 (remove_memory_breakpoint): Likewise.
5000 (delete_fast_tracepoint_jump): Likewise.
5001 (set_fast_tracepoint_jump): Likewise.
5002 (uninsert_fast_tracepoint_jumps_at): Likewise.
5003 (reinsert_fast_tracepoint_jumps_at): Likewise.
5004 * nto-low.c (nto_xfer_memory): Likewise.
5005 (nto_resume): Likewise.
5006
6cdd651f
LM
50072019-11-20 Luis Machado <luis.machado@linaro.org>
5008
5009 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5010 instead of register count.
5011 * tdesc.c (tdesc_contains_feature): New function.
5012 * tdesc.h (tdesc_contains_feature): New prototype.
5013
cd850b40
CB
50142019-11-15 Christian Biesinger <cbiesinger@google.com>
5015
5016 * Makefile.in: Add safe-strerror.c.
5017 * configure: Regenerate.
5018 * configure.ac: Don't source common.host.
5019
5abebf3c
CB
50202019-11-15 Christian Biesinger <cbiesinger@google.com>
5021
5022 * config.in: Regenerate.
5023 * configure: Regenerate.
5024
e06f3d6e
AB
50252019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5026
5027 * ax.c (ax_printf): Handle size_t_arg.
5028
ca3a04f6
CB
50292019-11-06 Christian Biesinger <cbiesinger@google.com>
5030
5031 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5032 * mi/mi-main.c (output_cores): Likewise.
5033 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5034 (linux_xfer_osdata_modules): Likewise.
5035 * remote.c (register_remote_support_xml): Likewise.
5036 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5037 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5038
e48f6033
CB
50392019-11-01 Christian Biesinger <cbiesinger@google.com>
5040
5041 * configure: Regenerate.
5042 * configure.ac: Remove check for strerror_r.
5043
e7e97a2e
CB
50442019-10-31 Christian Biesinger <cbiesinger@google.com>
5045
5046 * config.in: Regenerate.
5047 * configure: Regenerate.
5048 * configure.ac: Also check for strerror_r.
5049
75cafaa6
CB
50502019-10-31 Christian Biesinger <cbiesinger@google.com>
5051
5052 * ax.h (debug_agent): Remove duplicate declaration.
5053
30baf67b
TV
50542019-10-26 Tom de Vries <tdevries@suse.de>
5055
5056 * linux-aarch64-low.c: Fix typos in comments.
5057 * linux-arm-low.c: Same.
5058 * linux-low.c: Same.
5059 * linux-ppc-low.c: Same.
5060 * proc-service.c: Same.
5061 * regcache.h: Same.
5062 * server.c: Same.
5063 * tracepoint.c: Same.
5064 * win32-low.c: Same.
5065
52c64cf7
TT
50662019-10-25 Tom Tromey <tromey@adacore.com>
5067
5068 * utils.c (xstrdup): Remove.
5069
c12d372d
TT
50702019-10-23 Tom Tromey <tom@tromey.com>
5071
5072 * configure, config.in: Rebuild.
5073
4d0b984b
TT
50742019-10-23 Tom Tromey <tom@tromey.com>
5075
5076 * configure: Rebuild.
5077 * acinclude.m4: Use m4_include, not sinclude.
5078
c5adaa19
TT
50792019-10-17 Tom Tromey <tromey@adacore.com>
5080
5081 * configure: Rebuild.
5082 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5083 in AC_CONFIG_FILES invocation.
5084 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5085 invocation.
5086
fec4e896
CB
50872019-10-16 Christian Biesinger <cbiesinger@google.com>
5088
5089 * server.c: Include xml-builtin.h.
5090 (get_xml_features): Don't declare xml_builtins here.
5091
00975ff6
AB
50922019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5093
5094 * Makefile.in: Remove references to vec-ipa.o.
5095
0dc32745
AB
50962019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5097
5098 * Makefile.in: Remove references to vec.c.
5099
3e6ec53a
CB
51002019-10-02 Christian Biesinger <cbiesinger@google.com>
5101
5102 * server.c (server_waiting): Change to bool.
5103 (extended_protocol): Likewise.
5104 (response_needed): Likewise.
5105 (exit_requested): Likewise.
5106 (run_once): Likewise.
5107 (report_no_resumed): Likewise.
5108 (non_stop): Likewise.
5109 (disable_packet_vCont): Likewise.
5110 (disable_packet_Tthread): Likewise.
5111 (disable_packet_qC): Likewise.
5112 (disable_packet_qfThreadInfo): Likewise.
5113 (handle_general_set): Update.
5114 (handle_detach): Update.
5115 (handle_monitor_command): Update.
5116 (handle_query): Update.
5117 (captured_main): Update.
5118 (process_serial_event): Update.
5119 * server.h (server_waiting): Change to bool.
5120 (disable_packet_vCont): Likewise.
5121 (disable_packet_Tthread): Likewise.
5122 (disable_packet_qC): Likewise.
5123 (disable_packet_qfThreadInfo): Likewise.
5124 (run_once): Likewise.
5125 (non_stop): Likewise.
5126 * target.c (target_stop_and_wait): Update.
5127
80fd2826
TT
51282019-10-02 Tom Tromey <tromey@adacore.com>
5129
5130 * Makefile.in (SFILES): Add common-inferior.c.
5131 (OBS): Add common-inferior.o.
5132 * server.c (startup_with_shell): Don't define.
5133
46f29a9a
AB
51342019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5135
5136 * linux-low.c (linux_low_read_btrace): Update for change to
5137 std::vector.
5138
f9d949fb
CB
51392019-09-20 Christian Biesinger <cbiesinger@google.com>
5140
5141 * debug.c (debug_threads): Remove comment in favor of the header.
5142 * debug.h (using_threads): Add declaration.
5143 (debug_threads): Add comment.
5144 * linux-aarch64-low.c: Include debug.h and remove declaration of
5145 debug_threads.
5146 * nto-low.c: Likewise.
5147 * remote-utils.c: Likewise.
5148 * thread-db.c: Likewise.
5149
abf516c6
UW
51502019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5151
5152 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5153 and powerpc-cell64l-ipa.o.
5154 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5155 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5156 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5157 (spu*-*-*): Remove.
5158
5159 * spu-low.c: Remove file.
5160
5161 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5162 (parse_spufs_run): Remove.
5163 (ppc_get_pc): Remove Cell/B.E. support.
5164 (ppc_set_pc): Likewise.
5165 (ppc_breakpoint_at): Likewise.
5166 (ppc_arch_setup): Likewise.
5167 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5168 tdesc_powerpc_cell32l.
5169 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5170 or init_registers_powerpc_cell32l.
5171 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5172 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5173 or init_registers_powerpc_cell32l.
5174 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5175 (init_registers_powerpc_cell32l): Remove prototype.
5176 (init_registers_powerpc_cell64l): Likewise.
5177
5178 * target.h (struct target_ops): Remove qxfer_spu member.
5179 * server.c (handle_qxfer_spu): Remove.
5180 (qxfer_packets): Remove entry for "spu".
5181 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5182 * linux-low.c (SPUFS_MAGIC): Remove.
5183 (spu_enumerate_spu_ids): Remove.
5184 (linux_qxfer_spu): Remove.
5185 (linux_target_ops): Remove qxfer_spu member.
5186 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5187 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5188 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5189
2d41fa11
SDJ
51902019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5191
5192 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5193 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5194 * config.in: Regenerate.
5195 * configure: Regenerate.
5196
d59b55f0
TT
51972019-08-15 Tom Tromey <tromey@adacore.com>
5198
5199 * target.c (target_write_memory): Use gdb::byte_vector.
5200
4196ab2a
TT
52012019-08-15 Tom Tromey <tromey@adacore.com>
5202
5203 * tracepoint.c (write_inferior_data_pointer)
5204 (write_inferior_integer, write_inferior_int8)
5205 (write_inferior_uinteger, m_tracepoint_action_download)
5206 (r_tracepoint_action_download, x_tracepoint_action_download)
5207 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5208 (download_agent_expr, download_tracepoint_1)
5209 (download_trace_state_variables, upload_fast_traceframes): Update.
5210 * server.c (gdb_write_memory): Update.
5211 * remote-utils.c (relocate_instruction): Update.
5212 * proc-service.c (ps_pdwrite): Update.
5213 * mem-break.c (remove_memory_breakpoint)
5214 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5215 (uninsert_fast_tracepoint_jumps_at)
5216 (reinsert_fast_tracepoint_jumps_at): Update.
5217 * linux-x86-low.c (append_insns)
5218 (i386_install_fast_tracepoint_jump_pad)
5219 (amd64_write_goto_address, i386_write_goto_address): Update.
5220 * linux-s390-low.c (append_insns, s390_write_goto_address):
5221 Update.
5222 * linux-ppc-low.c (ppc_relocate_instruction)
5223 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5224 (ppc_write_goto_address): Update.
5225 * linux-aarch64-low.c (append_insns): Update.
5226 * target.h (struct target_ops): Update.
5227 (write_inferior_memory): Don't declare.
5228 * target.c (target_write_memory): Rename from
5229 write_inferior_memory. Remove old target_write_memory.
5230
c6778d00
TT
52312019-08-15 Tom Tromey <tromey@adacore.com>
5232
5233 * target.c (write_inferior_memory): Use std::vector.
5234
404f2902
FCE
52352019-08-06 Frank Ch. Eigler <fche@redhat.com>
5236
5237 PR build/24886
5238 * configure.ac: Drop enable-libmcheck support.
5239 * configure, config.in: Rebuild.
5240 * acinclude.m4: Don't include it.
5241
4c5aa8e0
AH
52422019-07-19 Alan Hayward <alan.hayward@arm.com>
5243
5244 * configure.srv: Remove Arm xml files.
5245
7cc17433
AH
52462019-07-19 Alan Hayward <alan.hayward@arm.com>
5247
5248 * configure.srv: Add new files. Remove xml generated files.
5249 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5250 registers.
5251 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5252 * linux-aarch32-tdesc.c: New file.
5253 * linux-aarch32-tdesc.h: New file.
5254 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5255 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5256 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5257 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5258 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5259 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5260 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5261 (arm_read_description): Call arm_linux_read_description.
5262 (initialize_low_arch): Don't init registers.
5263 * linux-arm-tdesc.c: New file.
5264 * linux-arm-tdesc.h: New file.
5265
166a82be
AH
52662019-07-10 Alan Hayward <alan.hayward@arm.com>
5267
5268 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5269 Move counter inside for.
5270 (arm_read_description): Check ptrace earlier.
5271 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5272
268a13a5
TT
52732019-07-09 Tom Tromey <tom@tromey.com>
5274
5275 * configure: Rebuild.
5276 * configure.ac: Change common to gdbsupport.
5277 * acinclude.m4: Change common to gdbsupport.
5278 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5279 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5280 common to gdbsupport.
5281 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5282 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5283 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5284 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5285 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5286 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5287 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5288 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5289 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5290 common to gdbsupport.
5291
350fab54
AH
52922019-07-04 Alan Hayward <alan.hayward@arm.com>
5293
5294 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5295 defines.
5296 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5297
2b40fda7
AH
52982019-07-04 Alan Hayward <alan.hayward@arm.com>
5299
5300 * configure.srv: Remove legacy xml.
5301 * linux-aarch64-low.c (initialize_low_arch): Remove
5302 initialize_low_tdesc call.
5303 * linux-aarch64-tdesc-selftest.c: Remove file.
5304 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5305 * linux-x86-low.c (initialize_low_arch): Remove
5306 initialize_low_tdesc call.
5307 * linux-x86-tdesc-selftest.c: Remove file.
5308 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5309
7d10623d
TV
53102019-06-20 Tom de Vries <tdevries@suse.de>
5311
5312 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5313 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5314
8d6a48df
TV
53152019-06-19 Tom de Vries <tdevries@suse.de>
5316
5317 * debug.h (debug_write): Change return type to ssize_t.
5318 * debug.c (debug_write): Same.
5319
73cc7272
TT
53202019-06-14 Tom Tromey <tom@tromey.com>
5321
5322 * configure.ac: Use new path to gnulib.
5323 * configure: Rebuild.
5324 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5325 to gnulib.
5326
08f10e02
TT
53272019-06-11 Tom Tromey <tom@tromey.com>
5328
5329 * Makefile.in (SFILES): Add alloc.c.
5330 (OBS): Add alloc.o.
5331 (IPA_OBJS): Add alloc-ipa.o.
5332 (alloc-ipa.o): New target.
5333 (%.o: ../%.c): New pattern rule.
5334
422186a9
TT
53352019-06-10 Tom Tromey <tromey@adacore.com>
5336
5337 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5338 end warning with a newline.
5339 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5340 newline.
5341 * thread-db.c (attach_thread): Don't end warning with a newline.
5342 (thread_db_notice_clone): Likewise.
5343 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5344 newline.
5345 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5346 end warning with a newline.
5347
b02f78f9
PA
53482019-06-04 Pedro Alves <palves@redhat.com>
5349
5350 * server.c (captured_main): Use make_unique_xstrdup.
5351
88ed7edb
TT
53522019-06-02 Tom Tromey <tom@tromey.com>
5353
5354 * gdbreplay.c (fromhex): Remove.
5355 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5356
33a6bc35
TT
53572019-05-29 Tom Tromey <tromey@adacore.com>
5358
5359 * configure: Rebuild.
5360
e90a813d
KB
53612019-05-06 Kevin Buettner <kevinb@redhat.com>
5362
5363 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5364 sign extension code on 32-bit builds.
5365
353ea2d1
EZ
53662019-05-03 Eli Zaretskii <eliz@gnu.org>
5367
5368 * remote-utils.c:
5369 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5370
b494cdff
TT
53712019-04-19 Tom Tromey <tom@tromey.com>
5372
5373 * server.c (struct vstop_notif): Derive from notif_event.
5374 <base>: Remove.
5375 (queue_stop_reply): Update.
5376 (remove_all_on_match_ptid): Change type. Rewrite.
5377 (discard_queued_stop_replies): Rewrite.
5378 (in_queued_stop_replies_ptid): Change type.
5379 (in_queued_stop_replies): Rewrite.
5380 (notif_stop): Update.
5381 (queue_stop_reply_callback): Update.
5382 (captured_main): Don't call initialize_notif.
5383 (push_stop_notification): Update.
5384 * notif.c (notif_write_event, handle_notif_ack)
5385 (notif_event_enque, notif_push): Update.
5386 (notif_event_xfree, initialize_notif): Remove.
5387 * notif.h (struct notif_event): Include <list>, not
5388 "common/queue.h".
5389 (struct notif_server) <queue>: Now a std::list.
5390 (notif_event_p): Remove typedef.
5391 (initialize_notif): Don't declare.
5392 (struct notif_event): Add virtual destructor.
5393
a7e559cc
AH
53942019-04-17 Alan Hayward <alan.hayward@arm.com>
5395
5396 * ax.c (ax_vdebug): Call debug_printf.
5397 * debug.c (debug_write): New function.
5398 * debug.h (debug_write): New declaration.
5399 * linux-low.c (sigchld_handler): Call debug_write.
5400
aeb2e706
AH
54012019-04-17 Alan Hayward <alan.hayward@arm.com>
5402
5403 * debug.c (debug_set_output): New function.
5404 (debug_vprintf): Send output to debug_file.
5405 (debug_flush): Likewise.
5406 * debug.h (debug_set_output): New declaration.
5407 * server.c (handle_monitor_command): Add debug-file option.
5408 (captured_main): Likewise.
5409
c1bc0935
AH
54102019-04-17 Alan Hayward <alan.hayward@arm.com>
5411
5412 * debug.c (remote_debug): Add definition.
5413 * debug.h (remote_debug): Add declaration.
5414 * hostio.c (remote_debug): Remove declaration.
5415 * remote-utils.c (struct ui_file): Likewise.
5416 (remote_debug): Likewise.
5417 * remote-utils.h (remote_debug): Likewise,
5418 * server.c (remote_debug): Remove definition.
5419
3f52fdbc
KB
54202019-04-10 Kevin Buettner <kevinb@redhat.com>
5421
5422 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5423 when using a 64-bit gdbserver.
5424
b0319eaa
TT
54252019-04-09 Tom Tromey <tromey@adacore.com>
5426
5427 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5428
eedc3f4f
TT
54292019-04-08 Tom Tromey <tom@tromey.com>
5430
5431 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5432 throw.
5433 (linux_resume_one_lwp): Likewise.
5434
230d2906
TT
54352019-04-08 Tom Tromey <tom@tromey.com>
5436
5437 * gdbreplay.c: Update.
5438 * linux-low.c: Update.
5439 * server.c: Update.
5440
a70b8144
TT
54412019-04-08 Tom Tromey <tom@tromey.com>
5442
5443 * server.c: Use C++ exception handling.
5444 * linux-low.c: Use C++ exception handling.
5445 * gdbreplay.c: Use C++ exception handling.
5446
3d6e9d23
TT
54472019-04-08 Tom Tromey <tom@tromey.com>
5448
5449 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5450 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5451 (captured_main, main): Update.
5452 * gdbreplay.c (main): Update.
5453
0570503d
PFC
54542019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5455
5456 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5457 value in argument pointer, return 1 if the entry is found and 0
5458 otherwise. Move comment.
5459 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5460 * linux-low.h (linux_get_auxv): Declare.
5461 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5462
227a9e65
TT
54632019-04-05 Tom Tromey <tromey@adacore.com>
5464
5465 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5466 variables.
5467
69f4c9cc
AH
54682019-03-28 Alan Hayward <alan.hayward@arm.com>
5469
5470 * linux-low.c (AT_HWCAP2): Add define if not already included.
5471
974c89e0
AH
54722019-03-26 Alan Hayward <alan.hayward@arm.com>
5473
5474 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5475 (aarch64_arch_setup): Call linux_get_hwcap.
5476 * linux-arm-low.c (arm_get_hwcap): Remove function.
5477 (arm_read_description): Call linux_get_hwcap.
5478 * linux-low.c (linux_get_auxv): New function.
5479 (linux_get_hwcap): Likewise.
5480 (linux_get_hwcap2): Likewise.
5481 * linux-low.h (linux_get_hwcap): New declaration.
5482 (linux_get_hwcap2): Likewise.
5483 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5484 (ppc_arch_setup): Call linux_get_hwcap.
5485 * linux-s390-low.c (s390_get_hwcap): Remove function.
5486 (s390_arch_setup): Call linux_get_hwcap.
5487
1ef53e6b
AH
54882019-03-22 Alan Hayward <alan.hayward@arm.com>
5489 Jiong Wang <jiong.wang@arm.com>
5490
5491 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5492 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5493 to fail.
5494 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5495
ee4fbcfa
AH
54962019-03-22 Alan Hayward <alan.hayward@arm.com>
5497 Jiong Wang <jiong.wang@arm.com>
5498
5499 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5500 (aarch64_get_hwcap): New function.
5501 (aarch64_arch_setup): Read APIA hwcap.
5502
6dc0ebde
AH
55032019-03-22 Alan Hayward <alan.hayward@arm.com>
5504 Jiong Wang <jiong.wang@arm.com>
5505
5506 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5507 (initialize_low_tracepoint): Likewise.
5508 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5509 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5510 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5511 (aarch64_linux_read_description): Likewise.
5512 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5513
1163a4b7
JB
55142019-03-12 John Baldwin <jhb@FreeBSD.org>
5515
5516 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5517 i386_create_target_description for 'segments' parameter.
5518 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5519 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5520 * win32-i386-low.c (i386_arch_setup): Likewise.
5521
d3a70e03
TT
55222019-03-12 Tom Tromey <tromey@adacore.com>
5523
5524 * linux-low.c (iterate_over_lwps): Update.
5525
37991b4f
TT
55262019-03-06 Tom Tromey <tom@tromey.com>
5527
5528 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5529 (captured_main): Use SCOPE_EXIT.
5530
45950eb6
SDJ
55312019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5532
5533 * configure.srv: Use '$enable_unittest' instead of '$development'
5534 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5535 case.
5536
43ac54fc
TT
55372019-02-27 Tom Tromey <tromey@adacore.com>
5538
5539 * gdbreplay.c (logchar): Handle \r\n.
5540
df0da8a2
AH
55412019-02-07 Alan Hayward <alan.hayward@arm.com>
5542
5543 * linux-low.c (linux_attach): Add process before lwp.
5544 * server.c (attach_inferior): Check if already attached.
5545
1a5c2598
TT
55462019-02-07 Tom Tromey <tom@tromey.com>
5547
5548 * x86-tdesc.h: Rename include guard.
5549 * x86-low.h: Add include guard.
5550 * wincecompat.h: Rename include guard.
5551 * win32-low.h: Add include guard.
5552 * utils.h: Rename include guard.
5553 * tracepoint.h: Rename include guard.
5554 * tdesc.h: Rename include guard.
5555 * target.h: Rename include guard.
5556 * server.h: Rename include guard.
5557 * remote-utils.h: Rename include guard.
5558 * regcache.h: Rename include guard.
5559 * nto-low.h: Rename include guard.
5560 * notif.h: Add include guard.
5561 * mem-break.h: Rename include guard.
5562 * lynx-low.h: Add include guard.
5563 * linux-x86-tdesc.h: Add include guard.
5564 * linux-s390-tdesc.h: Add include guard.
5565 * linux-ppc-tdesc-init.h: Add include guard.
5566 * linux-low.h: Add include guard.
5567 * linux-aarch64-tdesc.h: Add include guard.
5568 * linux-aarch32-low.h: Add include guard.
5569 * inferiors.h: Rename include guard.
5570 * i387-fp.h: Rename include guard.
5571 * hostio.h: Rename include guard.
5572 * gdbthread.h: Rename include guard.
5573 * gdb_proc_service.h: Rename include guard.
5574 * event-loop.h: Rename include guard.
5575 * dll.h: Rename include guard.
5576 * debug.h: Rename include guard.
5577 * ax.h: Rename include guard.
5578
956cc47c
SN
55792018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5580
5581 PR gdb/23985
5582 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5583 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5584
a0707f3c
TT
55852019-01-25 Tom Tromey <tom@tromey.com>
5586
5587 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5588
0747795c
TT
55892019-01-25 Tom Tromey <tom@tromey.com>
5590
5591 * win32-low.c: Fix common/ includes.
5592 * win32-i386-low.c: Fix common/ includes.
5593 * tracepoint.c: Fix common/ includes.
5594 * thread-db.c: Fix common/ includes.
5595 * target.h: Fix common/ includes.
5596 * symbol.c: Fix common/ includes.
5597 * spu-low.c: Fix common/ includes.
5598 * server.h: Fix common/ includes.
5599 * server.c: Fix common/ includes.
5600 * remote-utils.c: Fix common/ includes.
5601 * regcache.h: Fix common/ includes.
5602 * regcache.c: Fix common/ includes.
5603 * nto-x86-low.c: Fix common/ includes.
5604 * notif.h: Fix common/ includes.
5605 * mem-break.h: Fix common/ includes.
5606 * lynx-low.c: Fix common/ includes.
5607 * lynx-i386-low.c: Fix common/ includes.
5608 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5609 * linux-x86-low.c: Fix common/ includes.
5610 * linux-low.c: Fix common/ includes.
5611 * inferiors.h: Fix common/ includes.
5612 * i387-fp.c: Fix common/ includes.
5613 * hostio.c: Fix common/ includes.
5614 * hostio-errno.c: Fix common/ includes.
5615 * gdbthread.h: Fix common/ includes.
5616 * gdbreplay.c: Fix common/ includes.
5617 * fork-child.c: Fix common/ includes.
5618 * event-loop.c: Fix common/ includes.
5619 * ax.c:
5620 (enum gdb_agent_op): Fix common/ includes.
5621
be6d4f74
TT
56222019-01-21 Tom Tromey <tom@tromey.com>
5623
5624 * tracepoint.c: Fix includes.
5625 * remote-utils.c: Fix includes.
5626 * linux-x86-low.c: Fix includes.
5627
66d91b39
JB
56282019-01-01 Joel Brobecker <brobecker@adacore.com>
5629
5630 * gdbreplay.c (gdbreplay_version): Update copyright year in
5631 version message.
5632 * server.c (gdbserver_version): Likewise.
5633
754e3168
AH
56342018-12-05 Alan Hayward <alan.hayward@arm.com>
5635
5636 * linux-low.c (add_lwp): Switch ordering.
5637
d105de22
TT
56382018-11-29 Tom Tromey <tom@tromey.com>
5639
5640 * win32-low.c (win32_join): Take pid, not process.
5641 * target.h (struct target_ops) <join>: Change argument type.
5642 (join_inferior): Change argument name.
5643 * spu-low.c (spu_join): Take pid, not process.
5644 * server.c (handle_detach): Preserve pid before destroying
5645 process.
5646 * lynx-low.c (lynx_join): Take pid, not process.
5647 * linux-low.c (linux_join): Take pid, not process.
5648
50138245
AH
56492018-11-23 Alan Hayward <alan.hayward@arm.com>
5650
5651 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5652 (aarch64_cannot_fetch_register): Likewise.
5653 (struct linux_target_ops): Update references.
5654
64f57f3d
PFC
56552018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5656
5657 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5658
8d619c01
EBM
56592018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5660
5661 * configure.srv (ipa_ppc_linux_regobj): Add
5662 powerpc-isa207-htm-vsx32l-ipa.o and
5663 powerpc-isa207-htm-vsx64l-ipa.o.
5664 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5665 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5666 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5667 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5668 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5669 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5670 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5671 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5672 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5673 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5674 (init_registers_powerpc_isa207_htm_vsx32l)
5675 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5676 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5677 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5678 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5679 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5680 (ppc_store_tm_ctarregset): New functions.
5681 (ppc_regsets): Add entries for HTM regsets.
5682 (ppc_arch_setup): Set htm in features struct when needed. Set
5683 sizes for the HTM regsets.
5684 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5685 (initialize_low_arch): Call
5686 init_registers_powerpc_isa207_htm_vsx32l and
5687 init_registers_powerpc_isa207_htm_vsx64l.
5688 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5689 PPC_TDESC_ISA207_HTM_VSX.
5690 (initialize_low_tracepoint): Call
5691 init_registers_powerpc_isa207_htm_vsx32l and
5692 init_registers_powerpc_isa207_htm_vsx64l.
5693
232bfb86
EBM
56942018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5695
5696 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5697 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5698 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5699 (ppc_store_pmuregset): New functions.
5700 (ppc_regsets): Add entries for ebb and pmu regsets.
5701 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5702 pmu regsets are available. Set sizes for these regsets.
5703
f2cf6173
EBM
57042018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5705
5706 * configure.srv (ipa_ppc_linux_regobj): Add
5707 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5708 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5709 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5710 rs6000/powerpc-isa207-vsx32l.xml, and
5711 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5712 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5713 <PPC_TDESC_ISA207_VSX>: New enum value.
5714 (init_registers_powerpc_isa207_vsx32l): Declare.
5715 (init_registers_powerpc_isa207_vsx64l): Declare.
5716 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5717 (ppc_store_tarregset): New function.
5718 (ppc_regsets): Add entry for the TAR regset.
5719 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5720 size for the TAR regsets.
5721 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5722 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5723 and init_registers_powerpc_isa207_vsx64l.
5724 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5725 (initialize_low_tracepoint): Call
5726 init_registers_powerpc_isa207_vsx32l and
5727 init_registers_powerpc_isa207_vsx64l.
5728
7ca18ed6
EBM
57292018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5730 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5731
5732 * configure.srv (ipa_ppc_linux_regobj): Add
5733 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5734 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5735 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5736 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5737 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5738 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5739 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5740 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5741 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5742 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5743 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5744 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5745 (ppc_hwcap): Add comment.
5746 (ppc_hwcap2): New global.
5747 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5748 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5749 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5750 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5751 when needed. Set sizes for the the DSCR and PPR regsets.
5752 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5753 (initialize_low_arch): Call
5754 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5755 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5756 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5757 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5758 (initialize_low_tracepoint): Call
5759 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5760 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5761
5c849b22
PFC
57622018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5763
5764 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5765
8ecfd7bd
SDJ
57662018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5767 Simon Marchi <simark@simark.ca>
5768
5769 * acinclude.m4: Include "../selftest.m4".
5770 * configure: Regenerate.
5771 * configure.ac: Use "GDB_AC_SELFTEST".
5772 * configure.srv: Use "$enable_unittests" instead of
5773 "$development" when checking whether unit tests have been
5774 enabled.
5775 * server.c (captured_main): Update message informing that
5776 selftests have been disabled.
5777
96643e35
TT
57782018-10-04 Tom Tromey <tom@tromey.com>
5779
5780 * configure: Rebuild.
5781
da4ae14a
TT
57822018-10-04 Tom Tromey <tom@tromey.com>
5783
5784 * server.c (handle_status): Rename inner "thread".
5785 (process_serial_event): Declare "res" in 'm' case.
5786 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5787 (iterate_over_lwps): Rename inner "thread".
5788 (linux_qxfer_libraries_svr4): Rename inner "len".
5789 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5790
7c619dbd
GB
57912018-10-01 Gary Benson <gbenson@redhat.com>
5792
5793 * gdb_proc_service.h: Moved common code to
5794 common/gdb_proc_service.h.
5795
3795e814
GB
57962018-10-01 Gary Benson <gbenson@redhat.com>
5797
5798 * gdb_proc_service.h: Synchronize comments and whitespace with
5799 GDB's version of this file.
5800
49b036f1
TT
58012018-09-25 Tom Tromey <tom@tromey.com>
5802
5803 * configure: Rebuild.
5804 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5805
8ff03f0b
SM
58062018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5807
5808 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5809 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5810 ($(IPA_LIB)): Sort IPA_OBJS.
5811
a1cd91dc
SM
58122018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5813
5814 * Makefile.in: Remove references to $(ADD_DEPS).
5815
752312ba
TT
58162018-09-16 Tom Tromey <tom@tromey.com>
5817
5818 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5819 variables.
5820 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5821 variables.
5822
f1628857
TT
58232018-09-05 Tom Tromey <tom@tromey.com>
5824
5825 * configure: Rebuild.
5826
ad202fcc
SM
58272018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5828
5829 PR build/23399
5830 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5831
d3d8724a
TT
58322018-08-27 Tom Tromey <tom@tromey.com>
5833
5834 PR build/23087:
5835 * configure: Rebuild.
5836
b4f183d2
TT
58372018-08-27 Tom Tromey <tom@tromey.com>
5838
5839 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5840 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5841 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5842 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5843 (s390x_emit_stack_adjust): Add casts to unsigned char.
5844
4e2aa472
SM
58452018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5846
5847 PR gdb/23374
5848 PR gdb/23375
5849 * server.h (struct client_state) <disable_randomization>:
5850 Initialize to 1.
5851
cf4088a9
SM
58522018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5853
5854 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5855 variable.
5856 (mips_supply_ptrace_register): Likewise.
5857
a0de763e
TT
58582018-07-22 Tom Tromey <tom@tromey.com>
5859
5860 * configure: Rebuild.
5861
b0a7723d
TT
58622018-07-22 Tom Tromey <tom@tromey.com>
5863
5864 * win32-low.c (win32_create_inferior): Remove unused variables.
5865 * gdbreplay.c (remote_open): Remove unused variable.
5866 * remote-utils.c (remote_prepare): Remove unused variable.
5867 * x86-tdesc.h (X86_TDESC_H): Define.
5868 (amd64_expedite_regs): Define conditionally.
5869 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5870 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5871 * remote-utils.c (readchar): Remove unused variable.
5872
a780ef4f
PA
58732018-07-13 Pedro Alves <palves@redhat.com>
5874
5875 * linux-low.c (linux_kill): Change parameter to process_info
5876 pointer instead of pid. Adjust.
5877 * lynx-low.c (lynx_kill): Likewise.
5878 * nto-low.c (nto_kill): Likewise.
5879 * spu-low.c (spu_kill): Likewise.
5880 * win32-low.c (win32_kill): Likewise.
5881 * server.c (handle_v_kill, kill_inferior_callback)
5882 (detach_or_kill_for_exit): Adjust.
5883 * target.c (kill_inferior): Change parameter to process_info
5884 pointer instead of pid. Adjust.
5885 * target.h (struct target_ops) <kill>: Change parameter to
5886 process_info pointer instead of pid. Adjust all implementations
5887 and callers.
5888 (kill_inferior): Likewise.
5889
ef2ddb33
PA
58902018-07-13 Pedro Alves <palves@redhat.com>
5891
5892 * linux-low.c (linux_detach, linux_join): Change parameter to
5893 process_info pointer instead of pid. Adjust.
5894 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5895 * nto-low.c (nto_detach): Likewise.
5896 * spu-low.c (spu_detach, spu_join): Likewise.
5897 * win32-low.c (win32_detach, win32_join): Likewise.
5898 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5899 * target.h (struct target_ops) <detach, join>: Change parameter to
5900 process_info pointer instead of pid. Adjust all implementations
5901 and callers.
5902 (detach_inferior, join_inferior): Rename 'pid' parameter to
5903 'proc'.
5904
c7ab0aef
SDJ
59052018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5906 Jan Kratochvil <jan.kratochvil@redhat.com>
5907 Paul Fertser <fercerpav@gmail.com>
5908 Tsutomu Seki <sekiriki@gmail.com>
5909
5910 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5911 (OBS): Add 'common/netstuff.o'.
5912 (GDBREPLAY_OBS): Likewise.
5913 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5914 (remote_open): Implement support for IPv6
5915 connections.
5916 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5917 and 'wspiapi.h'.
5918 (handle_accept_event): Accept connections from IPv6 sources.
5919 (remote_prepare): Handle IPv6-style hostnames; implement
5920 support for IPv6 connections.
5921 (remote_open): Implement support for printing connections from
5922 IPv6 sources.
5923
31445d10
PA
59242018-07-11 Pedro Alves <palves@redhat.com>
5925
5926 PR gdb/23377
5927 * mem-break.c (any_persistent_commands): Add process_info
5928 parameter and use it instead of relying on the current process.
5929 Change return type to bool.
5930 * mem-break.h (any_persistent_commands): Add process_info
5931 parameter and change return type to bool.
5932 * server.c (handle_detach): Remove require_running_or_return call.
5933 Look up the process_info for the process we're about to detach.
5934 If not found, return back error to GDB. Adjust
5935 any_persistent_commands call to pass down a process pointer.
5936
cb197132
PA
59372018-07-11 Pedro Alves <palves@redhat.com>
5938
5939 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5940 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5941 instead of collect_register_by_name.
5942 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5943 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5944
1b919490
VB
59452018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5946 Pedro Alves <palves@redhat.com>
5947
5948 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5949
d7e15655
TT
59502018-07-03 Tom Tromey <tom@tromey.com>
5951
5952 * linux-low.c: Update.
5953 * lynx-low.c: Update.
5954 * mem-break.c: Update.
5955 * nto-low.c: Update.
5956 * remote-utils.c: Update.
5957 * server.c: Update.
5958 * spu-low.c: Update.
5959 * target.c: Update.
5960 * win32-low.c: Update.
5961
26a57c92
TT
59622018-07-03 Tom Tromey <tom@tromey.com>
5963
5964 * server.c: Update.
5965
0e998d96
TT
59662018-07-03 Tom Tromey <tom@tromey.com>
5967
5968 * linux-low.c: Update.
5969
cc6bcb54
TT
59702018-07-03 Tom Tromey <tom@tromey.com>
5971
5972 * target.c: Update.
5973
e38504b3
TT
59742018-07-03 Tom Tromey <tom@tromey.com>
5975
5976 * linux-low.c: Update.
5977 * linux-mips-low.c: Update.
5978 * lynx-low.c: Update.
5979 * nto-low.c: Update.
5980 * remote-utils.c: Update.
5981 * server.c: Update.
5982 * spu-low.c: Update.
5983 * target.c: Update.
5984 * thread-db.c: Update.
5985
e99b03dc
TT
59862018-07-03 Tom Tromey <tom@tromey.com>
5987
5988 * linux-low.c: Update.
5989 * linux-mips-low.c: Update.
5990 * lynx-low.c: Update.
5991 * mem-break.c: Update.
5992 * nto-low.c: Update.
5993 * remote-utils.c: Update.
5994 * server.c: Update.
5995 * spu-low.c: Update.
5996 * target.c: Update.
5997 * tracepoint.c: Update.
5998
f2907e49
TT
59992018-07-03 Tom Tromey <tom@tromey.com>
6000
6001 * linux-low.c: Update.
6002 * linux-ppc-low.c: Update.
6003 * linux-x86-low.c: Update.
6004 * proc-service.c: Update.
6005 * server.c: Update.
6006 * spu-low.c: Update.
6007 * thread-db.c: Update.
6008 * win32-low.c: Update.
6009
fd79271b
TT
60102018-07-03 Tom Tromey <tom@tromey.com>
6011
6012 * linux-low.c: Update.
6013 * lynx-low.c: Update.
6014 * nto-low.c: Update.
6015 * remote-utils.c: Update.
6016 * spu-low.c: Update.
6017 * thread-db.c: Update.
6018 * win32-low.c: Update.
6019
c0867626
SDJ
60202018-06-29 Joel Brobecker <brobecker@adacore.com>
6021
6022 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6023 parameter in call to 'amd64_create_target_description'.
6024
2512d7ef
JK
60252018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6026
6027 * x86-tdesc.h: Remove executable permission flag.
6028
d0ac1c44
SM
60292018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6030
6031 * configure.ac: Remove AC_PREREQ, add missing quoting.
6032 * configure: Re-generate.
6033 * config.in: Re-generate.
6034 * aclocal.m4: Re-generate.
6035
c4eb05ff
SM
60362018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6037
6038 * tracepoint.h (current_traceframe): Remove declaration.
6039
02895270
AH
60402018-06-18 Alan Hayward <alan.hayward@arm.com>
6041
6042 * linux-aarch64-low.c (is_sve_tdesc): New function.
6043 (aarch64_sve_regs_copy_to_regcache): Likewise.
6044 (aarch64_sve_regs_copy_from_regcache): Likewise.
6045 (aarch64_regs_info): Add SVE checks.
6046 (initialize_low_arch): Initialize SVE.
6047
e9902bfc
AH
60482018-06-18 Alan Hayward <alan.hayward@arm.com>
6049
6050 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6051
fefa175e
AH
60522018-06-11 Alan Hayward <alan.hayward@arm.com>
6053
6054 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6055 (initialize_low_tracepoint): Likewise
6056 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6057 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6058 param.
6059 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6060 checks.
6061 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6062
b91ad3ff
AH
60632018-06-11 Alan Hayward <alan.hayward@arm.com>
6064
6065 * server.h (PBUFSIZ): Increase size
6066
f868386e
AH
60672018-06-11 Alan Hayward <alan.hayward@arm.com>
6068
6069 * regcache.c (regcache::raw_compare): New function.
6070 * regcache.h (regcache::raw_compare): New declaration.
6071
9c861883
AH
60722018-06-11 Alan Hayward <alan.hayward@arm.com>
6073
6074 * regcache.c (new_register_cache): Use new.
6075 (free_register_cache): Use delete.
6076 (register_data): Use const.
6077 (supply_register): Move body inside regcache.
6078 (regcache::raw_supply): New override function.
6079 (collect_register): Move body inside regcache.
6080 (regcache::raw_collect): New override function.
6081 (regcache::get_register_status): New override function.
6082 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6083
40591844
TT
60842018-06-09 Tom Tromey <tom@tromey.com>
6085
6086 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6087 declare queue.
6088 (event_queue): Use std::queue.
6089 (gdb_event_xfree): Remove.
6090 (initialize_event_loop, process_event, wait_for_event): Update.
6091
6341380d
SC
60922018-06-08 Stan Cox <scox@redhat.com>
6093
6094 * win32-low.c (win32_create_inferior): last_ptid and last_status
6095 moved to client_state.
6096
03349c93
PA
60972018-06-08 Pedro Alves <palves@redhat.com>
6098
6099 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6100 common/common-exceptions.o, common/common-utils.o,
6101 common/errors.o, common/print-utils.o and utils.o.
6102 * gdbreplay.c: Include "common-defs.h" instead of the two
6103 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6104 string.h or alloca.h.
6105 (perror_with_name): Delete.
6106 (remote_open): Use xstrdup instead of strdup.
6107 (main): Rename to ...
6108 (captured_main): ... this.
6109 (main): New.
6110
8dcc53b3
TT
61112018-06-08 Tom Tromey <tom@tromey.com>
6112
6113 * linux-low.c (linux_low_read_btrace): Update.
6114
c12a5089
SC
61152018-06-04 Stan Cox <scox@redhat.com>
6116
6117 * server.h (struct client_state): New.
6118 * server.c (cont_thread, general_thread, multi_process)
6119 (report_fork_events, report_vfork_events, report_exec_events)
6120 (report_thread_events, swbreak_feature, hwbreak_feature)
6121 (vCont_supported, disable_randomization, pass_signals)
6122 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6123 Moved to client_state.
6124 * remote-utils.c (remote_debug, noack_mode)
6125 (transport_is_reliable): Moved to client_state.
6126 * tracepoint.c (current_traceframe): Moved to client_state.
6127
6128 Update all callers.
6129 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6130 linux-low.c, remote-utils.h, target.c: Use client_state.
6131
122394f1
AH
61322018-05-31 Alan Hayward <alan.hayward@arm.com>
6133
6134 * configure.srv: Add new c/h file.
6135
95228a0d
AH
61362018-05-31 Alan Hayward <alan.hayward@arm.com>
6137
6138 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6139 null VQ.
6140
d8dab6c3
MR
61412018-05-25 Maciej W. Rozycki <macro@mips.com>
6142
6143 * gdb.arch/mips-fpregset-core.exp: New test.
6144 * gdb.arch/mips-fpregset-core.c: New test source.
6145
81e25b7c
EK
61462018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6147
6148 PR server/23198
6149 * hostio.c (require_int): Do not report overflow for integers
6150 between 0xfffffff and 0x7fffffff.
6151
7e947ad3
MR
61522018-05-22 Maciej W. Rozycki <macro@mips.com>
6153
6154 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6155 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6156 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6157 functions.
6158 (the_low_target): Wire them.
6159
1d75a658
PFC
61602018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6161
6162 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6163 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6164 mode. Call collect_register_by_name with vscr using
6165 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6166 (ppc_store_vrregset): Add and set vscr_offset variable as in
6167 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6168 vscr_offset.
6169
d078308a
PFC
61702018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6171
6172 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6173 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6174 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6175
7273b5fc
PFC
61762018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6177
6178 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6179 (ppc_store_vsxregset): Likewise.
6180 (ppc_fill_vrregset): Likewise.
6181 (ppc_store_vrregset): Likewise.
6182 (ppc_fill_evrregset): Likewise.
6183 (ppc_store_evrregset): Likewise.
6184 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6185 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6186 needed.
6187
2e077f5e
PFC
61882018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6189
6190 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6191 wordsize of the inferior. Call ppc_linux_target_wordsize.
6192
bd64614e
PFC
61932018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6194
6195 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6196 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6197 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6198 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6199 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6200 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6201 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6202 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6203 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6204 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6205 (tdesc_powerpc_e500l): Remove.
6206 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6207 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6208 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6209 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6210 linux-ppc-tdesc.h.
6211 (ppc_arch_setup): Remove target description matching code. Fill a
6212 ppc_linux_features struct and call ppc_linux_match_description
6213 with it.
6214
75d74cca
MR
62152018-05-22 Maciej W. Rozycki <macro@mips.com>
6216
6217 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6218 width of the requested register exceeds the width of the
6219 `ptrace' data type.
6220 (mips_cannot_store_register): Likewise.
6221
e4439e43
MR
62222018-05-21 Maciej W. Rozycki <macro@mips.com>
6223
6224 * linux-mips-low.c (mips_fetch_register): New function. Update
6225 preceding comment.
6226 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6227 (the_low_target): Wire `mips_fetch_register'.
6228
55271bf9
JB
62292018-05-10 Joel Brobecker <brobecker@adacore.com>
6230
6231 * lynx-i386-low.c (LYNXOS_178): New macro.
6232 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6233 the layout on LynxOS-178.
6234 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6235 handle floating point registers that are not supported by
6236 LynxOS-178.
6237
1a34f210
TT
62382018-05-10 Tom Tromey <tom@tromey.com>
6239
6240 * configure: Rebuild.
6241
190852c8
JB
62422018-05-10 Joel Brobecker <brobecker@adacore.com>
6243
6244 PR server/23158:
6245 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6246 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6247 Use it to set the expedite_regs field in the given tdesc.
6248 * x86-tdesc.h: New file.
6249 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6250 Adjust following the addition of the new expedite_regs parameter
6251 to init_target_desc.
6252 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6253 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6254 (i386_linux_read_description, amd64_linux_read_description):
6255 Adjust following the addition of the new expedite_regs parameter
6256 to init_target_desc.
6257 * lynx-i386-low.c: #include "x86-tdesc.h".
6258 (lynx_i386_arch_setup): Adjust following the addition of the new
6259 expedite_regs parameter to init_target_desc.
6260 * nto-x86-low.c: #include "x86-tdesc.h".
6261 (nto_x86_arch_setup): Adjust following the addition of the new
6262 expedite_regs parameter to init_target_desc.
6263 * win32-i386-low.c: #include "x86-tdesc.h".
6264 (i386_arch_setup): Adjust following the addition of the new
6265 expedite_regs parameter to init_target_desc.
6266
7dbac825
JB
62672018-05-10 Joel Brobecker <brobecker@adacore.com>
6268
6269 PR server/23158:
6270 * win32-low.c (win32_create_inferior): Add call to my_wait
6271 setting last_status global.
6272
906994d9
JB
62732018-05-10 Joel Brobecker <brobecker@adacore.com>
6274
6275 PR server/23158:
6276 * win32-low.c (create_process): Only call gdb_tilde_expand if
6277 inferior_cwd is not NULL.
6278
8ee22052
AB
62792018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6280
6281 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6282 registers to the cache if their values have changed.
6283 (i387_xsave_to_cache): Provide default values for x87 control
6284 registers when these features are available, but disabled.
6285 * regcache.c (supply_register_by_name_zeroed): New function.
6286 * regcache.h (supply_register_by_name_zeroed): Declare new
6287 function.
6288
aff689d3
TT
62892018-05-07 Tom Tromey <tom@tromey.com>
6290
6291 * configure: Rebuild.
6292
85e26832
TT
62932018-05-04 Tom Tromey <tom@tromey.com>
6294
6295 * configure: Rebuild.
6296
a3b60e45
JK
62972018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6298 Pedro Alves <palves@redhat.com>
6299
6300 * linux-aarch64-low.c (aarch64_stopped_data_address):
6301 Likewise.
6302
632e107b
TT
63032018-04-27 Tom Tromey <tom@tromey.com>
6304
6305 * configure: Rebuild.
6306
458412c3
TT
63072018-04-23 Tom Tromey <tom@tromey.com>
6308
6309 * configure: Rebuild.
6310
f31c089e
SM
63112018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6312
6313 * Makefile.in (depcomp): Add "..".
6314 (all_deps_files): New and use it.
6315
b319b098
AH
63162018-04-18 Alan Hayward <alan.hayward@arm.com>
6317
6318 * configure.srv (aarch64*-*-linux*): Don't include xml.
6319 (i[34567]86-*-cygwin*): Likewise.
6320 (i[34567]86-*-linux*): Likewise.
6321 (i[34567]86-*-lynxos*): Likewise.
6322 (i[34567]86-*-mingw32ce*): Likewise.
6323 (i[34567]86-*-mingw*): Likewise.
6324 (i[34567]86-*-nto*): Likewise.
6325 (tic6x-*-uclinux): Likewise.
6326 (x86_64-*-linux*): Likewise.
6327 (x86_64-*-mingw*): Likewise.
6328 (x86_64-*-cygwin*): Likewise.
6329
3b74854b
AH
63302018-04-18 Alan Hayward <alan.hayward@arm.com>
6331
6332 * tdesc.c: Remove xml parameter.
6333
e98577a9
AH
63342018-04-18 Alan Hayward <alan.hayward@arm.com>
6335
6336 * server.c (get_features_xml): Remove cast.
6337 * tdesc.c (void target_desc::accept): Fill in function.
6338 (tdesc_get_features_xml): Remove old xml creation.
6339 (print_xml_feature::visit_pre): Add xml vistor.
6340 * tdesc.h (struct target_desc): Make xmltarget mutable.
6341 (tdesc_get_features_xml): Remove declaration.
6342
d278f585
AH
63432018-04-18 Alan Hayward <alan.hayward@arm.com>
6344
6345 * tdesc.c (tdesc_architecture_name): Add new function.
6346 (tdesc_osabi_name): Likewise.
6347 (tdesc_get_features_xml): Use new functions.
6348
eee8a18d
AH
63492018-04-18 Alan Hayward <alan.hayward@arm.com>
6350
6351 * tdesc.c (tdesc_create_flags): Remove.
6352 (tdesc_add_flag): Likewise.
6353 (tdesc_named_type): Likewise.
6354 (tdesc_create_union): Likewise.
6355 (tdesc_create_struct): Likewise.
6356 (tdesc_create_vector): Likewise.
6357 (tdesc_add_bitfield): Likewise.
6358 (tdesc_add_field): Likewise.
6359 (tdesc_set_struct_size): Likewise.
6360
82ec9bc7
AH
63612018-04-18 Alan Hayward <alan.hayward@arm.com>
6362
6363 * tdesc.c (~target_desc): Remove implictly deleted items.
6364 (init_target_desc): Iterate all features.
6365 (tdesc_get_features_xml): Use vector.
6366 (tdesc_create_feature): Create feature.
6367 * tdesc.h (tdesc_feature) Remove
6368 (target_desc): Add features.
6369
ea3e7d71
AH
63702018-04-18 Alan Hayward <alan.hayward@arm.com>
6371
6372 * Makefile.in: Add common/tdesc.c
6373 * tdesc.c (init_target_desc): init all reg_defs from register
6374 vector.
6375 (tdesc_create_reg): Create tdesc_reg.
6376 * tdesc.h (tdesc_feature): Add register vector.
6377
17d08cd4
SM
63782018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6379
6380 * tdesc.h (struct target_desc) <features>: Change type to
6381 std::vector<std::string>.
6382 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6383 changes.
6384 (tdesc_get_features_xml): Likewise.
6385 (tdesc_create_feature): Likewise.
6386
5cd3e386
AH
63872018-03-26 Alan Hayward <alan.hayward@arm.com>
6388
6389 * regcache.c (find_register_by_number): Return a ref.
6390 (find_regno): Use references.
6391 (register_size): Likewise.
6392 (register_data): Likewise.
6393 * tdesc.c (target_desc::~target_desc): Remove free calls.
6394 (target_desc::operator==): Use std::vector compare.
6395 (init_target_desc): Use reference.
6396 (tdesc_create_reg): Use reg constructors.
6397 * tdesc.h (struct target_desc): Replace pointer with object.
6398
dff7492c
AH
63992018-03-23 Alan Hayward <alan.hayward@arm.com>
6400
6401 * regcache.c (find_register_by_number): Make static.
6402 (find_regno): Use find_register_by_number
6403 * regcache.h (struct reg): Remove declaration.
6404
d80e5242
AH
64052018-03-23 Alan Hayward <alan.hayward@arm.com>
6406
6407 * tdesc.c (target_desc::~target_desc): Move to here.
6408 (target_desc::operator==): Likewise.
6409 * tdesc.h (target_desc::~target_desc): Move from here.
6410 (target_desc::operator==): Likewise.
6411
f69c5afb
AA
64122018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6413
6414 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6415
ce29f843
AA
64162018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6417
6418 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6419 S390_TDESC_GS.
6420 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6421 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6422 and init_registers_s390_gs_linux64.
6423
c49bd90b
AA
64242018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6425
6426 * linux-s390-low.c (s390_fill_gs): Remove function.
6427 (s390_fill_gsbc): Remove function.
6428 (s390_regsets): Set fill functions for the guarded storage regsets
6429 to NULL.
6430
7edb9bd3
AA
64312018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6432
6433 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6434 the word size. Add comment.
6435 (s390_get_wordsize): New function.
6436 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6437 pswm with it. Instead, use s390_get_wordsize to determine the
6438 word size first and derive the correct tdesc from that directly.
6439
39be3c7e
SM
64402018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6441
6442 * Makefile.in: Include silent-rules.mk.
6443 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6444 (COMPILE): Add ECHO_CXX.
6445 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6446 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6447 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6448 (version-generated.c): Add ECHO_GEN.
6449 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6450 (IPAGENT_COMPILE): Add ECHO_CXX.
6451 (%-generated.c): Add ECHO_REGDAT.
6452
3ae9ce5d
TT
64532018-03-14 Tom Tromey <tom@tromey.com>
6454
6455 PR cli/14977:
6456 * ax.c (ax_printf): Special case for NULL.
6457
e6a58aa8
SM
64582018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6459
6460 * linux-low.c (linux_qxfer_libraries_svr4): Use
6461 xml_escape_text_append.
6462
f6e8a41e
SM
64632018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6464
6465 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6466
b9671caf
SM
64672018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6468
6469 * server.c (handle_general_set): Remove unnecessary xstrdup.
6470
e80aaf61
SM
64712018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6472
6473 * server.c (parse_debug_format_options): Adjust to
6474 delim_string_to_char_ptr_vec changes.
6475 * thread-db.c (thread_db_load_search): Adjust to
6476 dirnames_to_char_ptr_vec changes.
6477
b1223e78
MM
64782018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6479
6480 * target.h (target_enable_btrace, target_disable_btrace)
6481 (target_read_btrace, target_read_btrace_conf): Turn macro into
6482 inline function. Throw error if target method is not defined.
6483 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6484 check for btrace target method. Be prepared to handle exceptions
6485 from btrace target methods.
6486
81561546
SDJ
64872018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6488
6489 * server.c (captured_main): Change order of error message printed
6490 when the current working directory cannot be found.
6491
25e3c82c
SDJ
64922018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6493
6494 * server.c: Include "filenames.h" and "pathstuff.h".
6495 (program_name): Delete variable.
6496 (program_path): New anonymous class.
6497 (get_exec_wrapper): Use "program_path" instead of
6498 "program_name".
6499 (handle_v_run): Likewise.
6500 (captured_main): Likewise.
6501 (process_serial_event): Likewise.
6502
b4987c95
SDJ
65032018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6504
6505 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6506 (OBJS): Add "pathstuff.o".
6507 * server.c (current_directory): New global variable.
6508 (captured_main): Initialize "current_directory".
6509
f46cd62a
AH
65102018-02-26 Alan Hayward <alan.hayward@arm.com>
6511
6512 * tdesc.c: Use common/tdesc.h.
6513 * tdesc.h: Likewise.
6514
a543c5ca
AH
65152018-02-20 Alan Hayward <alan.hayward@arm.com>
6516 Simon Marchi <simon.marchi@ericsson.com>
6517
6518 * Makefile.in: Switch order of make rules.
6519
b5884fa7
AH
65202018-02-19 Alan Hayward <alan.hayward@arm.com>
6521
6522 * Makefile.in: Add common directory in build.
6523 * configure.ac: Add common reference.
6524 * configure: Regenerate.
6525
de6242d3
MM
65262018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6527
6528 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6529 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6530 * spu-low.c (spu_target_ops): Likewise.
6531 * win32-low.c (win32_target_ops): Likewise.
6532 * server.c (supported_btrace_packets): Report packets unconditionally.
6533 * target.h (target_ops) <supports_btrace>: Remove.
6534 (target_supports_btrace): Remove.
6535
9ee23a85
MM
65362018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6537
6538 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6539 (handle_btrace_disable): Change return type to void. Use exceptions
6540 to report errors.
6541 (handle_btrace_general_set): Catch exception and copy message to
6542 return message.
6543
8ce47547
TT
65442018-02-08 Tom Tromey <tom@tromey.com>
6545
6546 * linux-low.c (install_software_single_step_breakpoints): Use
6547 make_scoped_restore.
6548 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6549 (do_restore_current_thread_cleanup): Remove.
6550 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6551 declare.
6552
45dd3607
TT
65532018-02-08 Tom Tromey <tom@tromey.com>
6554
6555 * mem-break.c (set_raw_breakpoint_at): Use
6556 gdb::unique_xmalloc_ptr.
6557
e671cd59
PA
65582018-01-30 Pedro Alves <palves@redhat.com>
6559
6560 PR gdb/13211
6561 * target.c (target_terminal::terminal_state): Rename to ...
6562 (target_terminal::m_terminal_state): ... this.
6563
a0aad537
JC
65642018-01-19 James Clarke <jrtc27@jrtc27.com>
6565
6566 * linux-low.c (handle_extended_wait): Surround call to
6567 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6568
4d9b86e1
SM
65692018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6570
6571 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6572 linux_ptrace_attach_fail_reason_string now returning an
6573 std::string.
6574 (linux_attach): Likewise.
6575 * thread-db.c (attach_thread): Likewise.
6576
f517c180
EA
65772018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6578
6579 PR gdb/21559
6580 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6581 checking for fs_base/gs_base fields in struct user_regs_struct.
6582 * configure: Regenerate.
6583
9a70f35c
YQ
65842018-01-16 Yao Qi <yao.qi@linaro.org>
6585
6586 PR gdb/18749
6587 * linux-low.c (fetch_register): Call supply_register instead of
6588 error.
6589
605fd3c6
YQ
65902018-01-08 Yao Qi <yao.qi@linaro.org>
6591 Simon Marchi <simon.marchi@ericsson.com>
6592
6593 * Makefile.in (OBS): Remove selftest.o.
6594 * configure.ac: Set srv_selftest_objs if $development is true.
6595 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6596 * configure: Re-generated.
6597 * server.c (captured_main): Wrap variable selftest_filter with
6598 GDB_SELF_TEST.
6599
2cc05030
SM
66002018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * server.c (parse_debug_format_options): Return std::string.
6603 (handle_monitor_command, captured_main): Adjust.
6604
e379cee6
PA
66052018-01-05 Pedro Alves <palves@redhat.com>
6606
6607 PR gdb/18653
6608 * server.c (captured_main): Pass quiet=false to
6609 save_original_signals_state.
6610
82e1e79a
JB
66112018-01-01 Joel Brobecker <brobecker@adacore.com>
6612
6613 * gdbreplay.c (gdbreplay_version): Update copyright year in
6614 version message.
6615 * server.c (gdbserver_version): Likewise.
6616
8e481c3b
TT
66172017-12-08 Tom Tromey <tom@tromey.com>
6618
6619 * ax.c (ax_printf): Update.
6620
a8806230
YQ
66212017-12-07 Yao Qi <yao.qi@linaro.org>
6622
6623 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6624 aarch64_linux_read_description.
6625 * linux-amd64-ipa.c (idx2mask): New array.
6626 (get_ipa_tdesc): Move idx2mask out.
6627 (initialize_low_tracepoint): Initialize target descriptions.
6628 * linux-i386-ipa.c (idx2mask): New array.
6629 (get_ipa_tdesc): Move idx2mask out.
6630 (initialize_low_tracepoint): Initialize target descriptions.
6631
d4a0e8b5
SM
66322017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6633
6634 * tdesc.c (struct tdesc_type): Change return type.
6635 (tdesc_add_flag): Change parameter type.
6636 (tdesc_add_bitfield): Likewise.
6637 (tdesc_add_field): Likewise.
6638 (tdesc_set_struct_size): Likewise.
6639
798a7429
SM
66402017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6641
6642 * regcache.c (registers_to_string): Remove unused variable.
6643
c0e15c9b
SM
66442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6645
6646 * inferiors.c (for_each_inferior_with_data): Remove.
6647 * inferiors.h (for_each_inferior_with_data): Remove.
6648 * server.c (handle_qxfer_threads_worker): Change parameter type.
6649 (handle_qxfer_threads_proper): Use for_each_thread.
6650
f0045347
SM
66512017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6652
6653 * inferiors.c (for_each_inferior): Remove.
6654 (clear_inferiors): Use for_each_thread.
6655 * inferiors.h (for_each_inferior): Remove.
6656 * linux-low.c (linux_wait_for_event_filtered): Use
6657 for_each_thread.
6658 (linux_stabilize_threads): Likewise.
6659 * regcache.c (regcache_release): Likewise.
6660 * server.c (gdb_wants_all_threads_stopped): Likewise.
6661 (clear_pending_status_callback): Remove.
6662 (handle_status): Use for_each_thread.
6663 (captured_main): Likewise.
6664 * win32-low.c (child_init_thread_list): Likewise.
6665 (win32_clear_inferiors): Likewise.
6666 (fake_breakpoint_event): Likewise.
6667
9521758b
SM
66682017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6669
6670 * inferiors.h (find_inferior): Remove.
6671 * inferiors.c (find_inferior): Remove.
6672
8f86d7aa
SM
66732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6674
6675 * linux-low.c (resume_status_pending_p): Update comment.
6676 (need_step_over_p): Update comment.
6677
e2b44075
SM
66782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6679
6680 * linux-low.c (proceed_one_lwp): Return void, change parameter
6681 type.
6682 (unsuspend_and_proceed_one_lwp): Likewise.
6683 (proceed_all_lwps): Use for_each_thread.
6684 (unstop_all_lwps): Likewise.
6685
c80825ff
SM
66862017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6687
6688 * linux-low.c (linux_resume_one_thread): Return void, take
6689 parameter directly.
6690 (linux_resume): Use for_each_thread.
6691
df3e4dbe
SM
66922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6693
6694 * linux-low.c (send_sigstop_callback): Return void, change
6695 parameter type. Rename to...
6696 (send_sigstop): ... this.
6697 (suspend_and_send_sigstop_callback): Return void, change parameter
6698 type. Rename to...
6699 (suspend_and_send_sigstop): ... this.
6700 (stop_all_lwps): Use for_each_thread.
6701
5a6b0a41
SM
67022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6703
6704 * linux-low.c (lwp_running): Return bool, remove unused
6705 argument.
6706 (linux_stabilize_threads): Use find_thread.
6707
39a64da5
SM
67082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6709
6710 * linux-low.c (select_singlestep_lwp_callback): Remove.
6711 (count_events_callback): Remove.
6712 (select_event_lwp_callback): Remove.
6713 (select_event_lwp): Use find_thread/for_each_thread.
6714
a1385b7b
SM
67152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6716
6717 * linux-low.c (not_stopped_callback): Return bool, take filter
6718 argument directly.
6719 (linux_wait_for_event_filtered): Use find_thread.
6720 (linux_wait_1): Likewise.
6721
454296a2
SM
67222017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6723
6724 * linux-low.c (same_lwp): Remove.
6725 (find_lwp_pid): Use find_thread.
6726
6b2a85da
SM
67272017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6728
6729 * linux-low.c (delete_lwp_callback): Remove.
6730 (linux_mourn): Use for_each_thread.
6731
798a38e8
SM
67322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6733
6734 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6735 args parameter, don't check for pid.
6736 (linux_detach): Use for_each_thread.
6737
e4eb0dec
SM
67382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6739
6740 * linux-low.c (struct counter): Remove.
6741 (second_thread_of_pid_p): Remove.
6742 (last_thread_of_process_p): Use find_thread.
6743
83e1b6c1
SM
67442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6745
6746 * inferiors.c (find_inferior_in_random): Remove.
6747 * inferiors.h (find_inferior_in_random): Remove.
6748 * linux-low.c (status_pending_p_callback): Return bool, accept
6749 parameter ptid directly.
6750 (linux_wait_for_event_filtered): Use find_thread_in_random.
6751 (linux_wait_1): Likewise.
6752
8dc7b443
SM
67532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6754
6755 * inferiors.c (find_inferior_id): Remove.
6756 (find_thread_ptid): Move implemention from find_inferior_id to
6757 here.
6758 * inferiors.h (find_inferior_id): Remove.
6759 * server.c (handle_status): Use find_thread_ptid.
6760 (process_serial_event): Likewise.
6761 * thread-db.c (find_one_thread): Likewise.
6762 (thread_db_thread_handle): Likewise.
6763 * win32-low.c (thread_rec): Likewise.
6764 (child_delete_thread): Likewise.
6765 (win32_thread_alive): Likewise.
6766 (get_child_debug_event): Likewise.
6767
da25033c
SM
67682017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6769
6770 * linux-mips-low.c (update_watch_registers_callback): Return
6771 void, remove pid_p parameter, don't check for pid.
6772 (mips_insert_point, mips_remove_point): Use for_each_thread.
6773
c91bb56b
SM
67742017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6775
6776 * lynx.low (lynx_delete_thread_callback): Remove.
6777 (lynx_mourn): Use for_each_thread.
6778
634a3254
SM
67792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6780
6781 * regcache.c (regcache_invalidate_one): Remove.
6782 (regcache_invalidate_pid): use for_each_thread.
6783
41272101
TT
67842017-11-26 Tom Tromey <tom@tromey.com>
6785
6786 * linux-low.c (linux_create_inferior): Update.
6787
f5291a6f
UW
67882017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6789
6790 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6791
6654d750
AH
67922017-11-24 Alan Hayward <alan.hayward@arm.com>
6793
6794 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6795 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6796 * linux-aarch64-tdesc-selftest.c: New file.
6797 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6798
67992017-11-24 Alan Hayward <alan.hayward@arm.com>
6800
6801 * configure.srv: Add new file.
6802 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6803 * linux-aarch64-tdesc-selftest.c: New file.
6804 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6805
49bdb7ee
AH
68062017-11-24 Alan Hayward <alan.hayward@arm.com>
6807
6808 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6809 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6810 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6811
d6d7ce56
AH
68122017-11-24 Alan Hayward <alan.hayward@arm.com>
6813
6814 * configure.srv: Add new files.
6815 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6816 aarch64_linux_read_description.
6817 * linux-aarch64-low.c (aarch64_linux_read_description):
6818 Merge with aarch64_arch_setup.
6819 (aarch64_arch_setup): Call aarch64_linux_read_description.
6820 * linux-aarch64-tdesc.c: New file.
6821 * linux-aarch64-tdesc.h: New file.
6822
506fe5f4
YQ
68232017-11-24 Yao Qi <yao.qi@linaro.org>
6824
6825 * configure.srv: Set $srv_regobj for tic6x-linux.
6826 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6827 (tic6x_read_description): Move some code to tic6x_arch_setup.
6828 (tic6x_tdesc_test): New function.
6829 (initialize_low_arch): Call selftests::register_test.
6830
29f9a567
YQ
68312017-11-22 Yao Qi <yao.qi@linaro.org>
6832
6833 * remote-utils.c (prepare_resume_reply): Use memcpy.
6834
578290ec
SM
68352017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6836
6837 * linux-low.c (kill_one_lwp_callback): Return void, take
6838 argument directly, don't filter on pid.
6839 (linux_kill): Use for_each_thread.
6840
eca55aec
SM
68412017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6842
6843 * linux-low.c (need_step_over_p): Return bool, remove dummy
6844 argument.
6845 (linux_resume, proceed_all_lwps): Use find_thread.
6846
25c28b4d
SM
68472017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6848
6849 * linux-low.c (resume_status_pending_p): Return bool, remove
6850 flag_p argument.
6851 (linux_resume): Use find_thread.
6852
5fdda392
SM
68532017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6854
6855 * linux-low.c (struct thread_resume_array): Remove.
6856 (linux_set_resume_request): Return void, take arguments
6857 directly.
6858 (linux_resume): Use for_each_thread.
6859
fcb056a5
SM
68602017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6861
6862 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6863 return bool, remove data argument.
6864 (linux_stabilize_threads): Use find_thread.
6865
139720c5
SM
68662017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6867
6868 * linux-low.c (unsuspend_one_lwp): Remove.
6869 (unsuspend_all_lwps): Use for_each_thread, inline code from
6870 unsuspend_one_lwp.
6871
6d1e5673
SM
68722017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6873
6874 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6875 * linux-low.c (struct iterate_over_lwps_args): Remove.
6876 (iterate_over_lwps_filter): Remove.
6877 (iterate_over_lwps): Use find_thread.
6878
bbf550d5
SM
68792017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6880
6881 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6882 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6883 code from reset_lwp_ptrace_options_callback.
6884
00192f77
SM
68852017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6886
6887 * linux-arm-low.c (struct update_registers_data): Remove.
6888 (update_registers_callback): Return void, take arguments
6889 directly, don't check thread's pid.
6890 (arm_insert_point, arm_remove_point): Use for_each_thread.
6891
2bee2b6c
SM
68922017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6893
6894 * win32-low.c (continue_one_thread): Return void, take argument
6895 directly.
6896 (child_continue): Use for_each_thread.
6897
0b360f19
SM
68982017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6899
6900 * win32-i386-low.c (update_debug_registers_callback): Rename
6901 to ...
6902 (update_debug_registers): ... this, return void, remove pid_p arg.
6903 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6904
f27866ba
SM
69052017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6906
6907 * inferiors.h (struct process_info): Add constructor, initialize
6908 fields..
6909 <syscalls_to_catch>: Change type to std::vector<int>.
6910 * inferiors.c (add_process): Allocate process_info with new.
6911 (remove_process): Free process_info with delete.
6912 * linux-low.c (handle_extended_wait): Adjust.
6913 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6914 * server.c (handle_general_set): Adjust.
6915
e849ea89
PA
69162017-11-16 Pedro Alves <palves@redhat.com>
6917
6918 * remote-utils.c (remote_close): Block SIGIO signals instead of
6919 uninstalling the SIGIO handler.
6920
1d0aa65c
AH
69212017-11-16 Alan Hayward <alan.hayward@arm.com>
6922
6923 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6924
3491a34c
YQ
69252017-11-16 Yao Qi <yao.qi@linaro.org>
6926
6927 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6928 (tic6x_store_gregset): Likewise.
6929 (tic6x_usrregs_info): Move it up.
6930
a602f924
AH
69312017-11-15 Alan Hayward <alan.hayward@arm.com>
6932
6933 * Makefile.in: Update arch rules.
6934 * configure.srv: Explicitly mark arch/ files.
6935
5616b6c3
AS
69362017-11-13 Andreas Schwab <schwab@suse.de>
6937
6938 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6939 function.
6940 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6941
d1928160
PA
69422017-11-06 Pedro Alves <palves@redhat.com>
6943
6944 * config.in, configure: Regenerate.
6945
bac608e7
SM
69462017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6947
6948 * target.c (struct thread_search): Remove.
6949 (thread_search_callback): Remove.
6950 (prepare_to_access_memory): Use for_each_thread instead of
6951 find_inferior. Inline code from thread_search_callback.
6952
eaddb425
SM
69532017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6954
6955 * server.c (struct visit_actioned_threads_data): Remove.
6956 (visit_actioned_threads): Change prototype to take arguments
6957 directly.
6958 (resume): Use find_thread instead of find_inferior.
6959
99078d34
SM
69602017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6961
6962 * server.c (queue_stop_reply_callback): Change prototype, return
6963 void.
6964 (find_status_pending_thread_callback): Remove.
6965 (handle_status): Replace find_inferior with find_thread and
6966 for_each_thread.
6967
cc628f3d
AH
69682017-10-25 Alan Hayward <alan.hayward@arm.com>
6969
6970 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6971 with REGNO.
6972 (aarch64_store_gregset): Likewise.
6973 (aarch64_fill_fpregset): Likewise.
6974 (aarch64_store_fpregset): Likewise.
6975
4d3bb80e
SM
69762017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6977
6978 * gdbthread.h (find_thread, for_each_thread): New functions.
6979 * inferiors.c (thread_of_pid): Remove.
6980 (find_any_thread_of_pid): Use find_thread.
6981 * linux-low.c (num_lwps): Use for_each_thread.
6982
7a7cdfa0
YQ
69832017-10-17 Yao Qi <yao.qi@linaro.org>
6984
6985 * Makefile.in: Remove one rule.
6986 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6987
e675d170
YQ
69882017-10-17 Yao Qi <yao.qi@linaro.org>
6989
6990 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6991 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6992
7eb4e0f9
YQ
69932017-10-17 Yao Qi <yao.qi@linaro.org>
6994
6995 * configure.srv: Rename arm.o with arch/arm.o.
6996
60d6cfc9
YQ
69972017-10-17 Yao Qi <yao.qi@linaro.org>
6998
6999 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7000 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7001 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7002 (arch-i386.o, arch-amd64.o): Remove rules.
7003 (arch/%.o): New rule.
7004 Update POSTCOMPILE and COMPILE.pre.
7005 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7006 * configure: Re-generated.
7007 * configure.srv: Replace arch-i386.o with arch/i386.o.
7008 Replace arch-amd64.o with arch/amd64.o.
7009
5bfda255
YQ
70102017-10-16 Yao Qi <yao.qi@linaro.org>
7011
7012 * configure: Regenerated.
7013
9c80ecd6
SM
70142017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7015
7016 * inferiors.h: (struct inferior_list): Remove.
7017 (struct inferior_list_entry); Remove.
7018 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7019 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7020 get_first_inferior): Remove.
7021 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7022 find_inferior_id, find_inferior_in_random): Change signature.
7023 * inferiors.c (all_threads): Change type to
7024 std::list<thread_info *>.
7025 (get_thread): Remove macro.
7026 (find_inferior, find_inferior_id): Change signature, implement
7027 using find_thread.
7028 (find_inferior_in_random): Change signature, implement using
7029 find_thread_in_random.
7030 (for_each_inferior, for_each_inferior_with_data): Change
7031 signature, implement using for_each_thread.
7032 (add_inferior_to_list, remove_inferior): Remove.
7033 (add_thread, get_first_thread, thread_of_pid,
7034 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7035 (get_first_inferior, one_inferior_p, clear_inferior_list):
7036 Remove.
7037 (clear_inferiors, get_thread_process): Update.
7038 * gdbthread.h: Include <list>.
7039 (struct thread_info) <entry>: Remove field.
7040 <id>: New field.
7041 (all_threads): Change type to std::list<thread_info *>.
7042 (get_first_inferior): Add doc.
7043 (find_thread, for_each_thread, find_thread_in_random): New
7044 functions.
7045 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7046 * linux-arm-low.c (update_registers_callback): Update.
7047 * linux-low.c (second_thread_of_pid_p): Update.
7048 (kill_one_lwp_callback, linux_detach_lwp_callback,
7049 delete_lwp_callback, status_pending_p_callback, same_lwp,
7050 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7051 iterate_over_lwps, not_stopped_callback,
7052 resume_stopped_resumed_lwps, count_events_callback,
7053 select_singlestep_lwp_callback, select_event_lwp_callback,
7054 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7055 suspend_and_send_sigstop_callback, wait_for_sigstop,
7056 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7057 lwp_running, linux_set_resume_request, resume_status_pending_p,
7058 need_step_over_p, start_step_over, linux_resume_one_thread,
7059 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7060 reset_lwp_ptrace_options_callback): Update.
7061 * linux-mips-low.c (update_watch_registers_callback): Update.
7062 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7063 Update.
7064 (free_register_cache_thread_one): Remove.
7065 (regcache_release): Update.
7066 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7067 handle_qxfer_threads_worker): Update.
7068 (handle_query): Update, use list iterator.
7069 (visit_actioned_threads, handle_pending_status,
7070 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7071 clear_pending_status_callback, set_pending_status_callback,
7072 find_status_pending_thread_callback, handle_status,
7073 process_serial_event): Update.
7074 * target.c (thread_search_callback): Update.
7075 * thread-db.c (thread_db_get_tls_address): Update.
7076 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7077 Update.
7078 * win32-i386-low.c (update_debug_registers_callback): Update.
7079 * win32-low.c (delete_thread_info, child_delete_thread,
7080 continue_one_thread, suspend_one_thread,
7081 get_child_debug_event): Adjust.
7082
9179355e
SM
70832017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7084
7085 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7086 * inferiors.h: Include <list>.
7087 (struct process_info) <entry>: Remove field.
7088 <pid>: New field.
7089 (pid_of): Change macro to function.
7090 (ptid_of, lwpid_of): Remove macro.
7091 (all_processes): Change type to std::list<process_info *>.
7092 (ALL_PROCESSES): Remove macro.
7093 (for_each_process, find_process): New function.
7094 * inferiors.c (all_processes): Change type to
7095 std::list<process_info *>.
7096 (find_thread_process): Adjust.
7097 (add_process): Likewise.
7098 (remove_process): Likewise.
7099 (find_process_pid): Likewise.
7100 (get_first_process): Likewise.
7101 (started_inferior_callback): Remove.
7102 (have_started_inferiors_p): Adjust.
7103 (attached_inferior_callback): Remove.
7104 (have_attached_inferiors_p): Adjust.
7105 * linux-low.c (check_zombie_leaders): Likewise.
7106 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7107 (x86_linux_update_xmltarget): Adjust.
7108 * server.c (handle_query): Likewise.
7109 (gdb_reattached_process): Remove.
7110 (handle_status): Adjust.
7111 (kill_inferior_callback): Likewise.
7112 (detach_or_kill_inferior): Remove.
7113 (print_started_pid): Likewise.
7114 (print_attached_pid): Likewise.
7115 (detach_or_kill_for_exit): Update.
7116 (process_serial_event): Likewise.
7117 * linux-arm-low.c (arm_new_fork): Likewise.
7118
c9cb8905
SM
71192017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7120
7121 * dll.h: Include <list>.
7122 (struct dll_info): Add constructor.
7123 <entry>: Remove field.
7124 (all_dlls): Change type to std::list<dll_info>.
7125 * dll.c: Include <algorithm>.
7126 (get_dll): Remove macro.
7127 (all_dlls): Change type to std::list<dll_info *>.
7128 (free_one_dll): Remove.
7129 (match_dll): Likewise.
7130 (loaded_dll): Adjust.
7131 (unloaded_dll): Adjust to all_dlls type change, use
7132 std::find_if. Inline code from match_dll.
7133 (clear_dlls): Adjust to all_dlls type change.
7134 * server.c (emit_dll_description): Remove.
7135 (handle_qxfer_libraries): Adjust to all_dlls type change,
7136 integrate emit_dll_description's functionality.
7137
04ec7890
SM
71382017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7139
7140 * linux-low.h (struct linux_target_ops) <delete_process>: New
7141 field.
7142 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7143 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7144 (struct linux_target_ops): Add delete_process callback.
7145 * linux-arm-low.c (arm_delete_process): New.
7146 (struct linux_target_ops): Add delete_process callback.
7147 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7148 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7149 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7150 * linux-mips-low.c (mips_linux_delete_process): New.
7151 (struct linux_target_ops): Add delete_process callback.
7152 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7153 * linux-s390-low.c (struct linux_target_ops): Likewise.
7154 * linux-sh-low.c (struct linux_target_ops): Likewise.
7155 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7156 * linux-tile-low.c (struct linux_target_ops): Likewise.
7157 * linux-x86-low.c (x86_linux_delete_process): New.
7158 (struct linux_target_ops): Add delete_process callback.
7159 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7160
466eecee
SM
71612017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7162
7163 * linux-aarch64-low.c (the_low_target): Add thread delete
7164 callback.
7165 * linux-arm-low.c (arm_delete_thread): New function.
7166 (the_low_target): Add thread delete callback.
7167 * linux-bfin-low.c (the_low_target): Likewise.
7168 * linux-crisv32-low.c (the_low_target): Likewise.
7169 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7170 set.
7171 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7172 field.
7173 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7174 * linux-mips-low.c (mips_linux_delete_thread): New function.
7175 (the_low_target): Add thread delete callback.
7176 * linux-ppc-low.c (the_low_target): Likewise.
7177 * linux-s390-low.c (the_low_target): Likewise.
7178 * linux-sh-low.c (the_low_target): Likewise.
7179 * linux-tic6x-low.c (the_low_target): Likewise.
7180 * linux-tile-low.c (the_low_target): Likewise.
7181 * linux-x86-low.c (the_low_target): Likewise.
7182 * linux-xtensa-low.c (the_low_target): Likewise.
7183
b79f7801
YZ
71842017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7185
7186 * win32-low.c: Include "common-inferior.h".
7187
bc3b087d
SDJ
71882017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7189
7190 * inferiors.c (set_inferior_cwd): New function.
7191 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7192 (handle_query): Inform that QSetWorkingDir is supported.
7193 * win32-low.c (create_process): Pass the inferior's cwd to
7194 CreateProcess.
7195
d092c5a2
SDJ
71962017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7197
7198 * inferiors.c (current_inferior_cwd): New global variable.
7199 (get_inferior_cwd): New function.
7200 * inferiors.h (struct process_info) <cwd>: New field.
7201
7da0a886
SDJ
72022017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7203
7204 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7205 (OBS): Add gdb_tilde_expand.o.
7206
289a6840
SM
72072017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7208
7209 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7210 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7211
256642e8
PA
72122017-09-29 Pedro Alves <palves@redhat.com>
7213
7214 * ax.c (gdb_parse_agent_expr): Constify.
7215 * ax.h (gdb_parse_agent_expr): Constify.
7216 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7217 Constify.
7218 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7219 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7220 * remote-utils.h (read_ptid): Constify.
7221 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7222 (process_point_options, process_serial_event): Constify.
7223 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7224 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7225 (cmd_qtbuffer): Constify.
7226
5b9ca4d4
PA
72272017-09-29 Pedro Alves <palves@redhat.com>
7228
7229 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7230 fails.
7231
94c207e0
PA
72322017-09-29 Pedro Alves <palves@redhat.com>
7233
7234 * linux-low.c (handle_extended_wait): Pass parent thread instead
7235 of process to thread_db_notice_clone.
7236 * linux-low.h (thread_db_notice_clone): Replace parent process
7237 parameter with parent thread parameter.
7238 * thread-db.c (find_one_thread): Add comment.
7239 (thread_db_notice_clone): Replace parent process parameter with
7240 parent thread parameter. Temporarily switch to the parent thread.
7241
75352e28
SDJ
72422017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7243
7244 * gdbthread.h: Include "common-gdbthread.h".
7245 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7246 "if" when validating the ptid.
7247 * remote-utils.c: Include "gdbthread.h".
7248 (prepare_resume_reply): Use "switch_to_thread".
7249 * target.c (done_accessing_memory): Likewise.
7250
ad339634
AA
72512017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7252
7253 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7254 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7255 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7256 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7257 s390x-gs-linux64-ipa.o to ipa_obj.
7258 * linux-s390-low.c (HWCAP_S390_GS): New define.
7259 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7260 New functions.
7261 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7262 (s390_arch_setup): Check for guarded-storage support and choose
7263 appropriate tdesc.
7264 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7265 init_registers_s390x_gs_linux64.
7266 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7267 enum value.
7268 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7269 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7270
cc4d742f
SM
72712017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7272
7273 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7274
f6327dcb
KB
72752017-09-21 Kevin Buettner <kevinb@redhat.com>
7276
7277 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7278 (thread_db_thread_handle): Declare.
7279 * linux-low.c (linux_target_ops): Initialize thread_handle.
7280 * server.c (handle_qxfer_threads_worker): Add support for
7281 "handle" attribute.
7282 * target.h (struct target_ops): Add new function pointer,
7283 thread_handle.
7284 (target_thread_handle): Define.
7285 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7286 field in lwp.
7287 (thread_db_thread_handle): New function.
7288
86299109
KB
72892017-09-21 Kevin Buettner <kevinb@redhat.com>
7290
7291 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7292 * linux-low.h (thread_db_notice_clone): Declare.
7293 * thread-db.c (thread_db_notice_clone): New function.
7294
f557a88a
PA
72952017-09-21 Pedro Alves <palves@redhat.com>
7296
7297 * server.c (gdb_read_memory, handle_status, process_serial_event)
7298 (handle_serial_event, handle_target_event): Adjust to
7299 set_desired_thread prototype change.
7300 * target.c (set_desired_thread): Remove 'use_general' parameter
7301 and adjust.
7302 * target.h (set_desired_thread): Remove 'use_general' parameter.
7303
223ffa71
TT
73042017-09-20 Tom Tromey <tom@tromey.com>
7305
7306 * target.c (target_terminal::terminal_state): Define.
7307 (target_terminal::init): Rename from target_terminal_init.
7308 (target_terminal::inferior): Rename from
7309 target_terminal_inferior.
7310 (target_terminal::ours): Rename from target_terminal_ours.
7311 (target_terminal::ours_for_output, target_terminal::info): New.
7312
04fd3ba9
SM
73132017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7314
7315 * server.c (accumulate_file_name_length): Remove.
7316 (emit_dll_description): Adjust to std::string change.
7317 (handle_qxfer_libraries): Use std::string to hold document.
7318
5e187554
SM
73192017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7320
7321 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7322 return type of xml_escape_text.
7323 * server.c (emit_dll_description): Likewise.
7324
1526853e
SM
73252017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7326
7327 * server.c (captured_main): Accept argument for --selftest.
7328 Update run_tests call.
7329 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7330 when registering selftests.
7331
c4dfafab
SDJ
73322017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7333
7334 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7335 instead of "VEC" for "target_desc.reg_defs".
7336 (regcache_cpy): Likewise.
7337 (registers_to_string): Likewise.
7338 (registers_from_string): Likewise.
7339 (find_regno): Likewise.
7340 (supply_regblock): Likewise.
7341 (regcache_raw_read_unsigned): Likewise.
7342 * tdesc.c (init_target_desc): Likewise.
7343 (tdesc_create_reg): Likewise.
7344 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7345 (struct target_desc) <reg_defs>: Convert to "std::vector".
7346 (target_desc): Do not initialize "reg_defs".
7347 (~target_desc): Update code to use "std::vector" instead of "VEC"
7348 for "target_desc.reg_defs".
7349 (operator==): Likewise.
7350
124aceb4
SM
73512017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7352
7353 * inferiors.h (thread_to_gdb_id): Remove.
7354 * inferiors.c (thread_to_gdb_id): Remove.
7355 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7356 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7357 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7358 Likewise.
7359 * nto-low.c (nto_fetch_registers, nto_store_registers,
7360 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7361
96cde54f
SM
73622017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7363
7364 * inferiors.h (gdb_id_to_thread_id): Remove.
7365 * inferiors.c (gdb_id_to_thread_id): Remove.
7366 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7367 removal. Move pid declaration closer to where it's used.
7368
e8ca139e
SM
73692017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7370
7371 * server.c (handle_detach): New function.
7372 (process_serial_event): Move code out, call handle_detach.
7373
f8a4e119
SM
73742017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7375
7376 * server.c (require_running): Rename to ...
7377 (require_running_or_return): ... this ...
7378 (require_running_or_break): ... and this.
7379 (handle_query, process_serial_event): Adjust.
7380
0eb0a407
SM
73812017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7382
7383 * linux-low.c (linux_set_resume_request): Remove unused
7384 variables.
7385
785922a5
SM
73862017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7387
7388 * server.c (first_thread_of): Remove.
7389 (process_serial_event): Replace usage of first_thread_of with
7390 find_any_thread_of_pid.
7391 * tracepoint.c (same_process_p): Remove.
7392 (gdb_agent_about_to_close): Replace usage of same_process_p with
7393 find_any_thread_of_pid.
7394 * linux-x86-low.c (same_process_callback): Remove.
7395 (x86_arch_setup_process_callback): Replace usage of
7396 same_process_callback with find_any_thread_of_pid.
7397 * thread-db.c (any_thread_of): Remove.
7398 (switch_to_process): Replace usage of any_thread_of with
7399 find_any_thread_of_pid.
7400 * inferiors.c (thread_pid_matches_callback): Remove.
7401 (find_thread_process): Adjust to use find_any_thread_of_pid.
7402
a059f00c
SDJ
74032017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7404
7405 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7406 with "!VEC_empty".
a059f00c 7407
cc397f3a
SDJ
74082017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7409
7410 * linux-low.c (handle_extended_wait): Use
7411 "allocate_target_description" instead of "XNEW".
7412 * linux-x86-low.c (initialize_low_arch): Likewise.
7413
22916b07
YQ
74142017-09-05 Yao Qi <yao.qi@linaro.org>
7415
7416 * configure.srv (srv_i386_regobj): Remove.
7417 (srv_amd64_regobj): Remove.
7418 (srv_regobj): Set it to "" for x86 non-linux targets.
7419 * linux-x86-tdesc.c (i386_linux_read_description):
7420 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7421 (init_registers_i386): Remove the declaration.
7422 (tdesc_i386): Remove the declaration.
7423 (lynx_i386_arch_setup): Call i386_create_target_description.
7424 * nto-x86-low.c: Likewise.
7425 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7426 [!__x86_64__]: include arch/i386.h.
7427 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7428
38602d55
YQ
74292017-09-05 Yao Qi <yao.qi@linaro.org>
7430
7431 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7432 i386/amd64-XXX-linux from it.
7433
44b886ff
YQ
74342017-09-05 Yao Qi <yao.qi@linaro.org>
7435
7436 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7437 false.
7438 (ipa_amd64_linux_regobj): Remove.
7439 (ipa_x32_linux_regobj): Remove.
7440
b4570e4b
YQ
74412017-09-05 Yao Qi <yao.qi@linaro.org>
7442
7443 * Makefile.in (arch-amd64.o): New rule.
7444 * configure.srv: Append arch-amd64.o.
7445 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7446 (get_ipa_tdesc): Call amd64_linux_read_description.
7447 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7448 and init_registers_amd64_XXX.
7449 * linux-x86-low.c (x86_linux_read_description): Call
7450 amd64_linux_read_description.
7451 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7452 (initialize_low_arch): Don't call init_registers_x32_XXX and
7453 init_registers_amd64_XXX.
7454 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7455 and tdesc_amd64_XXX.
7456 [__x86_64__] (amd64_tdesc_test): New function.
7457 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7458 and init_registers_amd64_XXX.
7459 * linux-x86-tdesc.c: Include arch/amd64.h.
7460 (xcr0_to_tdesc_idx): New function.
7461 (i386_linux_read_description): New function.
7462 (amd64_get_ipa_tdesc_idx): New function.
7463 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7464 (amd64_get_ipa_tdesc): Declare.
7465
d1f28ea2
YQ
74662017-09-05 Yao Qi <yao.qi@linaro.org>
7467
7468 * configure.srv (srv_i386_linux_xmlfiles): Remove
7469 i386/i386-XXX-linux.xml from it.
7470
25a93583
YQ
74712017-09-05 Yao Qi <yao.qi@linaro.org>
7472
7473 * configure.srv: Set srv_i386_linux_regobj empty if $development
7474 is false.
7475 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7476 initialize_low_tdesc.
7477 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7478 with #if initialize_low_tdesc.
7479 * linux-x86-tdesc-selftest.c: New file.
7480 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7481
5f035c07
YQ
74822017-09-05 Yao Qi <yao.qi@linaro.org>
7483
7484 * Makefile.in (arch-i386.o): New rule.
7485 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7486 (x86_64-*-linux*): Likewise.
7487 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7488 include arch/i386.h.
7489 (i386_linux_read_description): Remove code and call
7490 i386_create_target_description.
7491 * tdesc.c (allocate_target_description): New function.
7492 * tdesc.h (set_tdesc_architecture): Remove declaration.
7493 (set_tdesc_osabi): Likewise.
7494
0abe8a89
YQ
74952017-09-05 Yao Qi <yao.qi@linaro.org>
7496
7497 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7498 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7499 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7500 .xmltarget.
7501 * server.c (get_features_xml): Call tdesc_get_features_xml.
7502 * tdesc.c (set_tdesc_architecture): New function.
7503 (set_tdesc_osabi): New function.
7504 (tdesc_get_features_xml): New function.
7505 (tdesc_create_feature): Add an argument.
7506 * tdesc.h (struct target_desc) <features>: New field.
7507 <arch, osabi>: New field.
7508 (~target_desc): xfree features, arch, and osabi.
7509 (target_desc::oerator==): Don't compare .xmltarget.
7510 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7511 (set_tdesc_osabi): Likewise.
7512 (tdesc_get_features_xml): Likewise.
7513
0a188386
YQ
75142017-09-05 Yao Qi <yao.qi@linaro.org>
7515
7516 * linux-x86-tdesc.c: Include selftest.h.
7517 (i386_tdesc_test): New function.
7518 (initialize_low_tdesc): Call selftests::register_test.
7519 * tdesc.h: Include regdef.h.
7520 (target_desc): Override operator == and !=.
7521
f49ff000
YQ
75222017-09-05 Yao Qi <yao.qi@linaro.org>
7523
7524 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7525 (ipa_obj): Likewise.
7526 * linux-i386-ipa.c: Include common/x86-xstate.h
7527 (get_ipa_tdesc): Call i386_linux_read_description.
7528 (initialize_low_tracepoint): Don't call init_registers_XXX
7529 functions, call initialize_low_tdesc instead.
7530 * linux-x86-low.c (x86_linux_read_description): Call
7531 i386_linux_read_description.
7532 (initialize_low_arch): Don't call init_registers_i386_XXX
7533 functions, call initialize_low_tdesc.
7534 * linux-x86-tdesc.c: New file.
7535 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7536 (i386_get_ipa_tdesc_idx): Declare.
7537 (i386_get_ipa_tdesc): Declare.
7538 (initialize_low_tdesc): Declare.
7539
2b68ef2f
YQ
75402017-09-05 Yao Qi <yao.qi@linaro.org>
7541
7542 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7543 instead of 0.
7544
f7000548
YQ
75452017-09-05 Yao Qi <yao.qi@linaro.org>
7546
7547 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7548 * regcache.c (get_thread_regcache): Use VEC_length.
7549 (init_register_cache): Likewise.
7550 (regcache_cpy): Likewise.
7551 (registers_to_string): Iterate reg_defs via VEC_iterate.
7552 (find_regno): Likewise.
7553 (find_register_by_number): Use VEC_index.
7554 (register_size): Call find_register_by_number.
7555 (register_data): Call find_register_by_number.
7556 (supply_regblock): Use VEC_length.
7557 (regcache_raw_read_unsigned): Likewise.
7558 * tdesc.c (init_target_desc): Iterate reg_defs via
7559 VEC_iterate.
7560 (default_description): Update initializer.
7561 (copy_target_description): Don't update field num_registers.
7562 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7563 <num_registers>: Remove.
7564
50a421ac
SM
75652017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7566
7567 * Makefile.in (.SECONDARY): Define target.
7568
23fdd69e
SM
75692017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7570
7571 * linux-low.c (linux_wait_1): Adjust.
7572 * server.c (queue_stop_reply_callback): Adjust.
7573
0a2dde4a
SDJ
75742017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7575
7576 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7577 QEnvironmentUnset and QEnvironmentReset packets.
7578 (handle_query): Inform remote that QEnvironmentHexEncoded,
7579 QEnvironmentUnset and QEnvironmentReset are supported.
7580
6afd337d
SM
75812017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7582
7583 * inferiors.h (inferior_target_data): Rename to ...
7584 (thread_target_data): ... this.
7585 (inferior_regcache_data): Rename to ...
7586 (thread_regcache_data): ... this.
7587 (set_inferior_regcache_data): Rename to ...
7588 (set_thread_regcache_data): ... this.
7589 * inferiors.c (inferior_target_data): Rename to ...
7590 (thread_target_data): ... this.
7591 (inferior_regcache_data): Rename to ...
7592 (thread_regcache_data): ... this.
7593 (set_inferior_regcache_data): Rename to ...
7594 (set_thread_regcache_data): ... this.
7595 (free_one_thread): Update.
7596 * linux-low.h (get_thread_lwp): Update.
7597 * regcache.c (get_thread_regcache): Update.
7598 (regcache_invalidate_thread): Update.
7599 (free_register_cache_thread): Update.
7600 * win32-i386-low.c (update_debug_registers_callback): Update.
7601 (win32_get_current_dr): Update.
7602 * win32-low.c (thread_rec): Update.
7603 (delete_thread_info): Update.
7604 (continue_one_thread): Update.
7605 (suspend_one_thread): Update.
7606
a160cc46
SM
76072017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7608
7609 * inferiors.c (set_inferior_target_data): Remove.
7610 * inferiors.h (set_inferior_target_data): Remove.
7611
6d580b63
YQ
76122017-08-18 Yao Qi <yao.qi@linaro.org>
7613
7614 * Makefile.in (OBS): Add selftest.o.
7615 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7616 * configure, config.in: Re-generated.
7617 * server.c: Include common/sefltest.h.
7618 (captured_main): Handle option --selftest.
7619
f5a29eb0
YQ
76202017-08-09 Yao Qi <yao.qi@linaro.org>
7621
7622 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7623 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7624 i386-avx-mpx.o and i386-mmx.o.
7625 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7626 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7627 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7628 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7629 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7630 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7631 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7632 i386/amd64-avx-mpx.xml.
7633
57757c2f
YQ
76342017-08-09 Yao Qi <yao.qi@linaro.org>
7635
7636 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7637 and x32-avx-avx512.o.
7638 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7639 i386/x32-avx-avx512.xml.
7640
229d26fc
SM
76412017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7642
7643 * tracepoint.h (enum class fast_tpoint_collect_result): New
7644 enumeration.
7645 (fast_tracepoint_collecting): Change return type to
7646 fast_tpoint_collect_result.
7647 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7648 * linux-low.h: Include tracepoint.h.
7649 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7650 fast_tpoint_collect_result.
7651 * linux-low.c (handle_tracepoints): Adjust.
7652 (linux_fast_tracepoint_collecting): Change return type to
7653 fast_tpoint_collect_result.
7654 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7655 linux_wait_1, stuck_in_jump_pad_callback,
7656 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7657 proceed_one_lwp): Adjust to type change.
7658
2e1e43e1
YQ
76592017-07-10 Yao Qi <yao.qi@linaro.org>
7660
7661 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7662
adc764e7
YQ
76632017-06-29 Yao Qi <yao.qi@linaro.org>
7664
7665 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7666 Remove.
7667 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7668
a206891a
SM
76692017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7670
7671 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7672
9a6c7d9c
SDJ
76732017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7674
7675 * linux-low.c (linux_create_inferior): Adjust code to access the
7676 environment information via 'gdb_environ' class.
7677 * lynx-low.c (lynx_create_inferior): Likewise.
7678 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7679 (get_environ): Return a pointer to 'our_environ'.
7680 (captured_main): Initialize 'our_environ'.
7681 * server.h (get_environ): Adjust prototype.
7682 * spu-low.c (spu_create_inferior): Adjust code to access the
7683 environment information via 'gdb_environ' class.
7684
ae3e2ccf
SM
76852017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7686
7687 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7688 usage of "register" keyword.
7689
3e019bdc
SM
76902017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7691
7692 * configure: Re-generate.
7693
8465943a
SM
76942017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7695
7696 * configure: Re-generate.
7697
cf0dd6f0
SM
76982017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7699
7700 * Makefile.in (COMPILE.pre): Add "-x c++".
7701
9845682b
SDJ
77022017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7703
7704 * fork-child.c: Conditionally include <signal.h>.
7705
aefd8b33
SDJ
77062017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7707
7708 * server.c (handle_general_set): Handle new packet
7709 "QStartupWithShell".
7710 (handle_query): Add "QStartupWithShell" to the list of supported
7711 packets.
7712 (gdbserver_usage): Add help text explaining the
7713 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7714 options.
7715 (captured_main): Recognize and act upon the presence of the new
7716 CLI options.
7717
2090129c
SDJ
77182017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7719 Pedro Alves <palves@redhat.com>
7720
7721 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7722 * configure: Regenerate.
7723 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7724 "fork-inferior.o".
7725 (i[34567]86-*-lynxos*): Likewise.
7726 (spu*-*-*): Likewise.
7727 * fork-child.c: New file.
7728 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7729 and "environ.h".
7730 (linux_ptrace_fun): New function.
7731 (linux_create_inferior): Adjust function prototype to reflect
7732 change on "target.h". Adjust function code to use
7733 "fork_inferior".
7734 (linux_request_interrupt): Delete "signal_pid".
7735 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7736 (lynx_ptrace_fun): New function.
7737 (lynx_create_inferior): Adjust function prototype to reflect
7738 change on "target.h". Adjust function code to use
7739 "fork_inferior".
7740 * nto-low.c (nto_create_inferior): Adjust function prototype and
7741 code to reflect change on "target.h". Update comments.
7742 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7743 "common-terminal.h" and "environ.h".
7744 (terminal_fd): Moved to fork-child.c.
7745 (old_foreground_pgrp): Likewise.
7746 (restore_old_foreground_pgrp): Likewise.
7747 (last_status): Make it global.
7748 (last_ptid): Likewise.
7749 (our_environ): New variable.
7750 (startup_with_shell): Likewise.
7751 (program_name): Likewise.
7752 (program_argv): Rename to...
7753 (program_args): ...this.
7754 (wrapper_argv): New variable.
7755 (start_inferior): Delete function.
7756 (get_exec_wrapper): New function.
7757 (get_exec_file): Likewise.
7758 (get_environ): Likewise.
7759 (prefork_hook): Likewise.
7760 (post_fork_inferior): Likewise.
7761 (postfork_hook): Likewise.
7762 (postfork_child_hook): Likewise.
7763 (handle_v_run): Update code to deal with arguments coming from the
7764 remote host. Update calls from "start_inferior" to
7765 "create_inferior".
7766 (captured_main): Likewise. Initialize environment variable. Call
7767 "have_job_control".
7768 * server.h (post_fork_inferior): New prototype.
7769 (get_environ): Likewise.
7770 (last_status): Declare.
7771 (last_ptid): Likewise.
7772 (signal_pid): Likewise.
7773 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7774 (spu_ptrace_fun): New function.
7775 (spu_create_inferior): Adjust function prototype to reflect change
7776 on "target.h". Adjust function code to use "fork_inferior".
7777 * target.c (target_terminal_init): New function.
7778 (target_terminal_inferior): Likewise.
7779 (target_terminal_ours): Likewise.
7780 * target.h: Include <vector>.
7781 (struct target_ops) <create_inferior>: Update prototype.
7782 (create_inferior): Update macro.
7783 * utils.c (gdb_flush_out_err): New function.
7784 * win32-low.c (win32_create_inferior): Adjust function prototype
7785 and code to reflect change on "target.h".
7786
043a4934
SDJ
77872017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7788
7789 * inferiors.c (switch_to_thread): New function.
7790
15652511
SDJ
77912017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7792
7793 * Makefile.in (SFILE): Add "common/job-control.c".
7794 (OBS): Add "job-control.o".
7795
21ea5acd
SDJ
77962017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7797
7798 * Makefile: Remove "@host_makefile_frag@".
7799
e13cb306
PA
78002017-05-05 Pedro Alves <palves@redhat.com>
7801
7802 * configure: Regenerate.
7803
c94fee56
SDJ
78042017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7805
7806 * configure: Regenerate.
7807
a0ff9e1a
SM
78082017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7809
7810 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7811 software_single_step change of return type to
7812 std::vector<CORE_ADDR>.
7813 * linux-low.c (install_software_single_step_breakpoints):
7814 Likewise.
7815 * linux-low.h (install_software_single_step_breakpoints):
7816 Likewise.
7817
be628ab8
SDJ
78182017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7819
7820 * remote-utils.c: Include "gdb_termios.h" instead of
7821 "terminal.h".
7822 * terminal.h: Delete file.
7823
7c5ded6a
SDJ
78242017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7825
7826 * server.c: Include <vector>.
7827 <program_argv, wrapper_argv>: Convert to std::vector.
7828 (start_inferior): Rewrite function to use C++.
7829 (handle_v_run): Likewise. Update code that calculates the argv
7830 based on the vRun packet; use C++.
7831 (captured_main): Likewise.
7832
436252de
SM
78332017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7834
7835 * server.c (handle_v_cont): Initialize thread_resume::thread
7836 with null_ptid.
7837
9bf2a700
PA
78382017-04-05 Pedro Alves <palves@redhat.com>
7839
7840 * configure: Regenerate.
7841
a121b7c1
PA
78422017-04-05 Pedro Alves <palves@redhat.com>
7843
7844 * gdbreplay.c (sync_error): Constify.
7845 * linux-x86-low.c (push_opcode): Constify.
7846
21c8a587
PA
78472017-04-05 Pedro Alves <palves@redhat.com>
7848
7849 * win32-low.c (get_child_debug_event)
7850 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7851 Report TARGET_WAITKIND_SPURIOUS instead.
7852
fb32b4f7
PA
78532017-04-05 Pedro Alves <palves@redhat.com>
7854
e79be6e5
SM
7855 * remote-utils.c (remote_prepare, remote_open): Constify.
7856 * remote-utils.h (remote_prepare, remote_open): Constify.
7857 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7858
65dd1e59
SM
78592017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7860
7861 * Makefile.in (clean): Clear .deps.
7862
8fa5b777
SM
78632017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7864
7865 * .gitignore: Remove generated files, replace with wildcard.
7866 * (clean): Replace removal of generated files with wildcard.
7867 (version.c): Replace with...
7868 (version-generated.c): ...this.
7869 (xml-builtin.c): Replace with...
7870 (xml-builtin-generated.c): ...this.
7871 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7872 (%.c: *regformats*): Replace with...
7873 (%-generated.c: *regformats*): ...this.
7874
a12e714b
MF
78752017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7876
7877 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7878 (xtensa_fill_gregset): Call collect_register_by_name for
7879 threadptr register.
7880 (xtensa_store_gregset): Call supply_register_by_name for
7881 threadptr register.
7882
1a09b50a
MF
78832017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7884
7885 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7886 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7887 (xtensa_store_gregset): Call supply_register for all registers in
7888 a0_regnum..a0_regnum + C0_NREGS range.
7889
1a01e7c6
SM
78902017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7891
7892 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7893 (ax-ipa.o: ax.c): Remove.
7894 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7895 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7896 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7897 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7898 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7899
36bc18a8
SM
79002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7901
7902 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7903 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7904 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7905 (errors-ipa.o: ../common/errors.c): Remove.
7906 (format-ipa.o: ../common/format.c): Remove.
7907 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7908
a8ebe3d5
SM
79092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7910
7911 * Makefile.in (%-ipa.o: %.c): New rule.
7912 (tracepoint-ipa.o: tracepoint.c): Remove.
7913 (utils-ipa.o: utils.c): Remove.
7914 (remote-utils-ipa.o: remote-utils.c): Remove.
7915 (regcache-ipa.o: regcache.c): Remove.
7916 (i386-linux-ipa.o: i386-linux.c): Remove.
7917 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7918 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7919 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7920 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7921 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7922 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7923 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7924 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7925 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7926 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7927 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7928 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7929 (aarch64-ipa.o: aarch64.c): Remove.
7930 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7931 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7932 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7933 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7934 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7935 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7936 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7937 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7938 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7939 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7940 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7941 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7942 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7943 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7944 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7945 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7946 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7947 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7948 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7949 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7950 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7951 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7952 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7953 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7954 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7955 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7956 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7957 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7958 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7959 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7960 (tdesc-ipa.o: tdesc.c): Remove.
7961 (x32-linux-ipa.o: x32-linux.c): Remove.
7962 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7963 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7964
50cfacb7
SM
79652017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7966
7967 * Makefile.in (%.o: ../arch/%.c): New rule.
7968 (arm.o: ../arch/arm.c): Remove.
7969 (arm-linux.o: ../arch/arm-linux.c): Remove.
7970 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7971 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7972
c5a22423
SM
79732017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7974
7975 * Makefile.in (%.o: ../nat/%.c): New rule.
7976 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7977 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7978 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7979 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7980 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7981 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7982 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7983 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7984 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7985 (linux-personality.o: ../nat/linux-personality.c): Remove.
7986 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7987 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7988 (x86-linux.o: ../nat/x86-linux.c): Remove.
7989 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7990 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7991
6bda016b
SM
79922017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7993
7994 * Makefile.in (%.o: ../common/%.c): New rule.
7995 (signals.o: ../common/signals.c): Remove.
7996 (print-utils.o: ../common/print-utils.c): Remove.
7997 (rsp-low.o: ../common/rsp-low.c): Remove.
7998 (common-utils.o: ../common/common-utils.c): Remove.
7999 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8000 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8001 (vec.o: ../common/vec.c): Remove.
8002 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8003 (xml-utils.o: ../common/xml-utils.c): Remove.
8004 (ptid.o: ../common/ptid.c): Remove.
8005 (buffer.o: ../common/buffer.c): Remove.
8006 (format.o: ../common/format.c): Remove.
8007 (filestuff.o: ../common/filestuff.c): Remove.
8008 (agent.o: ../common/agent.c): Remove.
8009 (errors.o: ../common/errors.c): Remove.
8010 (environ.o: ../common/environ.c): Remove.
8011 (common-debug.o: ../common/common-debug.c): Remove.
8012 (cleanups.o: ../common/cleanups.c): Remove.
8013 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8014 (fileio.o: ../common/fileio.c): Remove.
8015 (common-regcache.o: ../common/common-regcache.c): Remove.
8016 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8017 (new-op.o: ../common/new-op.c): Remove.
8018 (btrace-common.o: ../common/btrace-common.c): Remove.
8019
21122961
SM
80202017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8021
8022 * Makefile.in (%.o: ../target/%.c): New rule.
8023 (waitstatus.o: ../target/waitstatus.c): Remove.
8024
c362e621
SM
80252017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8026
8027 * Makefile.in
8028 (%.c: ../regformats/%.dat,
8029 (%.c: ../regformats/arm/%.dat,
8030 (%.c: ../regformats/i386/%.dat,
8031 (%.c: ../regformats/rs6000/%.dat): New rules.
8032 (aarch64.c): Remove.
8033 (reg-arm.c): Remove.
8034 (arm-with-iwmmxt.c): Remove.
8035 (arm-with-vfpv2.c): Remove.
8036 (arm-with-vfpv3.c): Remove.
8037 (arm-with-neon.c): Remove.
8038 (reg-bfin.c): Remove.
8039 (reg-cris.c): Remove.
8040 (reg-crisv32.c): Remove.
8041 (i386.c): Remove.
8042 (i386-linux.c): Remove.
8043 (i386-avx.c): Remove.
8044 (i386-avx-linux.c): Remove.
8045 (i386-avx-avx512.c): Remove.
8046 (i386-avx-avx512-linux.c): Remove.
8047 (i386-mpx.c): Remove.
8048 (i386-mpx-linux.c): Remove.
8049 (i386-avx-mpx-avx512-pku.c): Remove.
8050 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8051 (i386-avx-mpx.c): Remove.
8052 (i386-avx-mpx-linux.c): Remove.
8053 (i386-mmx.c): Remove.
8054 (i386-mmx-linux.c): Remove.
8055 (reg-ia64.c): Remove.
8056 (reg-m32r.c): Remove.
8057 (reg-m68k.c): Remove.
8058 (reg-cf.c): Remove.
8059 (mips-linux.c): Remove.
8060 (mips-dsp-linux.c): Remove.
8061 (mips64-linux.c): Remove.
8062 (mips64-dsp-linux.c): Remove.
8063 (nios2-linux.c): Remove.
8064 (powerpc-32.c): Remove.
8065 (powerpc-32l.c): Remove.
8066 (powerpc-altivec32l.c): Remove.
8067 (powerpc-cell32l.c): Remove.
8068 (powerpc-vsx32l.c): Remove.
8069 (powerpc-isa205-32l.c): Remove.
8070 (powerpc-isa205-altivec32l.c): Remove.
8071 (powerpc-isa205-vsx32l.c): Remove.
8072 (powerpc-e500l.c): Remove.
8073 (powerpc-64l.c): Remove.
8074 (powerpc-altivec64l.c): Remove.
8075 (powerpc-cell64l.c): Remove.
8076 (powerpc-vsx64l.c): Remove.
8077 (powerpc-isa205-64l.c): Remove.
8078 (powerpc-isa205-altivec64l.c): Remove.
8079 (powerpc-isa205-vsx64l.c): Remove.
8080 (s390-linux32.c): Remove.
8081 (s390-linux32v1.c): Remove.
8082 (s390-linux32v2.c): Remove.
8083 (s390-linux64.c): Remove.
8084 (s390-linux64v1.c): Remove.
8085 (s390-linux64v2.c): Remove.
8086 (s390-te-linux64.c): Remove.
8087 (s390-vx-linux64.c): Remove.
8088 (s390-tevx-linux64.c): Remove.
8089 (s390x-linux64.c): Remove.
8090 (s390x-linux64v1.c): Remove.
8091 (s390x-linux64v2.c): Remove.
8092 (s390x-te-linux64.c): Remove.
8093 (s390x-vx-linux64.c): Remove.
8094 (s390x-tevx-linux64.c): Remove.
8095 (tic6x-c64xp-linux.c): Remove.
8096 (tic6x-c64x-linux.c): Remove.
8097 (tic6x-c62x-linux.c): Remove.
8098 (reg-sh.c): Remove.
8099 (reg-sparc64.c): Remove.
8100 (reg-spu.c): Remove.
8101 (amd64.c): Remove.
8102 (amd64-linux.c): Remove.
8103 (amd64-avx.c): Remove.
8104 (amd64-avx-linux.c): Remove.
8105 (amd64-avx-avx512.c): Remove.
8106 (amd64-avx-avx512-linux.c): Remove.
8107 (amd64-mpx.c): Remove.
8108 (amd64-mpx-linux.c): Remove.
8109 (amd64-avx-mpx-avx512-pku.c): Remove.
8110 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8111 (amd64-avx-mpx.c): Remove.
8112 (amd64-avx-mpx-linux.c): Remove.
8113 (x32.c): Remove.
8114 (x32-linux.c): Remove.
8115 (x32-avx.c): Remove.
8116 (x32-avx-linux.c): Remove.
8117 (x32-avx-avx512.c): Remove.
8118 (x32-avx-avx512-linux.c): Remove.
8119 (reg-xtensa.c): Remove.
8120 (reg-tilegx.c): Remove.
8121 (reg-tilegx32.c): Remove.
8122
1672e0d9
SDJ
81232017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8124
8125 * Makefile.in (SFILES): Add "common/environ.c".
8126 (OBJS): Add "common/environ.h".
8127
239b6d10
WT
81282017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8129
8130 * configure.ac: Check if the fs_base and gs_base members of
8131 `struct user_regs_struct' exist.
8132 * config.in: Regenerated.
8133 * configure: Likewise.
8134
694b382c
AT
81352017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8136
8137 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8138 target_read_memory.
8139 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8140 (get_next_pcs_syscall_next_pc): Likewise.
8141
7dc53023
LM
81422016-12-23 Luis Machado <lgustavo@codesourcery.com>
8143
8144 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8145 * nto-x86-low.c: Likewise.
8146
ad02e4fe
SM
81472016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8148
8149 * Makefile.in: Include disable-implicit-rules.mk.
8150
dcb07cfa
PA
81512016-11-23 Pedro Alves <palves@redhat.com>
8152
8153 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8154 (debug_vprintf): Use std::chrono::steady_clock instead of
8155 gettimeofday. Use '.' instead of ':'.
8156 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8157 (get_timestamp): Use std::chrono::steady_clock instead of
8158 gettimeofday.
8159
8629c02c
SM
81602016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8161
8162 * Makefile.in: Fix whitespace formatting.
8163
b593ecca
SM
81642016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8165
8166 * Makefile.in (SFILES, OBS): Flatten list and order
8167 alphabetically.
8168
9986ba08
PA
81692016-11-23 Pedro Alves <palves@redhat.com>
8170
8171 * event-loop.c (handle_file_event): Use warning.
8172 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8173 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8174 Use warning.
8175
4eefa7bc
PA
81762016-11-23 Pedro Alves <palves@redhat.com>
8177
8178 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8179 output.
8180 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8181 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8182 debug_printf and debug_flush for debug output.
8183 * server.c (handle_general_set): Likewise.
8184 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8185 output.
8186
5443506e
SM
81872016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8188
8189 * Makefile.in (.c.o): Replace rule with ...
8190 (%.o: %.c): ... this one.
8191
3b165252
SM
81922016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8193
8194 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8195 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8196 make.
8197 * configure.ac: Remove checks for the make program.
8198 * configure: Re-generate.
8199
0bcda685
PA
82002016-10-28 Pedro Alves <palves@redhat.com>
8201
8202 * Makefile.in (CXX_DIALECT): Get from configure.
8203 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8204 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8205 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8206 * config.in: Regenerate.
8207 * configure: Regenerate.
8208
c3805894
YQ
82092016-10-27 Yao Qi <yao.qi@linaro.org>
8210
8211 * linux-low.c (linux_supports_range_stepping): Return true if
8212 can_software_single_step return true.
8213
89342618
YQ
82142016-10-27 Yao Qi <yao.qi@linaro.org>
8215
8216 * inferiors.c (find_inferior_in_random): New function.
8217 * inferiors.h (find_inferior_in_random): Declare.
8218 * linux-low.c (linux_wait_for_event_filtered): Call
8219 find_inferior_in_random instead of find_inferior.
8220
e3652c84
YQ
82212016-10-27 Yao Qi <yao.qi@linaro.org>
8222
8223 * linux-low.c (linux_wait_1): If single-step breakpoints are
8224 inserted, remove them.
8225
5a04c4cf
PA
82262016-10-26 Pedro Alves <palves@redhat.com>
8227
8228 * linux-low.c (handle_extended_wait): Link parent/child fork
8229 threads.
8230 (linux_wait_1): Unlink them.
8231 (linux_set_resume_request): Ignore resume requests for
8232 already-resumed and unhandled fork child threads.
8233 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8234 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8235 New functions.
8236 (handle_v_requests) <vCont>: Don't call require_running.
8237 * server.h (in_queued_stop_replies): New declaration.
8238
cb93dc7f
YQ
82392016-10-24 Yao Qi <yao.qi@linaro.org>
8240
8241 PR server/20733
8242 * linux-aarch64-low.c (append_insns): Cast the return value to
8243 'uint32_t *'.
8244
a1078bea
YQ
82452016-10-10 Yao Qi <yao.qi@linaro.org>
8246
8247 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8248
1fb77080
SDJ
82492016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8250
8251 * target.c (target_supports_multi_process): New function, moved
8252 from...
8253 * target.h (target_supports_multi_process): ... here. Remove
8254 macro.
8255
39b5a3b9
TT
82562016-10-05 Tom Tromey <tom@tromey.com>
8257
8258 PR remote/20655:
8259 * tracepoint.c (handle_tracepoint_bkpts): Check
8260 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8261
c1d0b70a
YQ
82622016-10-05 Yao Qi <yao.qi@linaro.org>
8263
8264 * configure.srv: Update the path of arm-*.xml files.
8265
0a69eedb
YQ
82662016-10-05 Terry Guo <terry.guo@arm.com>
8267 Yao Qi <yao.qi@linaro.org>
8268
8269 * Makefile.in: Adjust the path of rules.
8270 * configure.srv: Update the path of xml files.
8271 * regformats/arm-with-iwmmxt.dat: Regenerated.
8272 * regformats/arm-with-neon.dat: Likewise.
8273 * regformats/arm-with-vfpv2.dat: Likewise.
8274 * regformats/arm-with-vfpv3.dat Likewise.
8275
17e16485
YQ
82762016-09-30 Yao Qi <yao.qi@linaro.org>
8277
8278 PR gdbserver/20627
8279 * target.c (target_stop_and_wait): Don't call
8280 target_continue_no_signal, use resume_stop instead.
8281
edeeb602
YQ
82822016-09-26 Yao Qi <yao.qi@linaro.org>
8283
8284 * linux-low.c (linux_wait_1): Call debug_exit.
8285
503b1c39
PA
82862016-09-23 Pedro Alves <palves@redhat.com>
8287
8288 * Makefile.in (SFILES): Add common/new-op.c.
8289 (OBS): Add common/new-op.o.
8290 (new-op.o): New rule.
8291
74172ecf
SM
82922016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8293
8294 * .gitinore: Ignore more files.
8295
fc6cda2e
YQ
82962016-09-21 Yao Qi <yao.qi@linaro.org>
8297
8298 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8299 23.
8300
bc1e6c81
SDJ
83012016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8302
8303 * server.c (start_inferior): Call target_mourn_inferior instead of
8304 mourn_inferior; pass ptid_t argument to it.
8305 (resume): Likewise.
8306 (handle_target_event): Likewise.
8307 * target.c (target_mourn_inferior): New function.
8308 * target.h (mourn_inferior): Delete macro.
8309
0e00e962
AA
83102016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8311
8312 * linux-low.c (lwp_is_stepping): New function.
8313
1d8cb77d
CL
83142016-09-06 Carl Love <cel@us.ibm.com>
8315
8316 * server.c (start_inferior): Fixed comment, requested comment change
8317 didn't get updated correctly. Removed reference to ptrace () call as
8318 it is only true on Linux systems.
8319
7313bced
CL
83202016-09-06 Carl Love <cel@us.ibm.com>
8321
8322 * server.c (start_inferior): Do not call
8323 function target_post_create_inferior () if the
8324 inferior process has already exited.
8325
cf6de44d
PA
83262016-09-05 Pedro Alves <palves@redhat.com>
8327
8328 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8329 (COMPILE.pre, CC_LD): Use CXX directly.
8330 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8331 * acinclude.m4: Don't include build-with-cxx.m4.
8332 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8333 * configure: Regenerate.
8334
c1da6748
AT
83352016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8336
8337 PR gdb/19495
8338 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8339 call writing data to own_buf.
8340
f2b9e3df
SDJ
83412016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8342
8343 * target.c (mywait): Call target_wait instead of
8344 the_target->wait.
8345 (target_wait): New function.
8346
049a8570
SDJ
83472016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8348
8349 * server.c (start_inferior): New variable 'ptid'. Replace calls
8350 to the_target->resume by target_continue{,_no_signal}, depending
8351 on the case.
8352 * target.c (target_stop_and_wait): Call target_continue_no_signal
8353 instead of the_target->resume.
8354 (target_continue): New function.
8355
3aa5cfa0
AT
83562016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8357
8358 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8359
754653a7
AZ
83602016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8361
8362 PR server/20491
8363 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8364 ps_prochandle.
8365 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8366 * linux-arm-low.c (ps_get_thread_area): Likewise.
8367 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8368 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8369 * linux-mips-low.c (ps_get_thread_area): Likewise.
8370 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8371 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8372 * linux-x86-low.c (ps_get_thread_area): Likewise.
8373 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8374
ed036b40
PA
83752016-08-19 Pedro Alves <palves@redhat.com>
8376
8377 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8378
c8ef42ee
PA
83792016-08-19 Pedro Alves <palves@redhat.com>
8380
8381 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8382 comment. Use memcpy instead of casting through unsigned long.
8383
9c235a72
PA
83842016-08-19 Pedro Alves <palves@redhat.com>
8385
8386 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8387 allocating around 0x80000000.
8388
201506da
PA
83892016-08-19 Pedro Alves <palves@redhat.com>
8390
8391 PR gdb/20415
8392 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8393 (x32-avx512-linux-ipa.o): New rules.
8394 * configure.ac (x86_64-*-linux*): New x32 check.
8395 * configure.srv (ipa_x32_linux_regobj): New.
8396 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8397 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8398 descriptions.
8399 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8400 descriptions.
8401 * configure: Regenerate.
8402
f348d89a
PA
84032016-08-09 Pedro Alves <palves@redhat.com>
8404
8405 PR gdb/18653
8406 * Makefile.in (OBS): Add signals-state-save-restore.o.
8407 (signals-state-save-restore.o): New rule.
8408 * config.in: Regenerate.
8409 * configure: Regenerate.
8410 * linux-low.c: Include "signals-state-save-restore.h".
8411 (linux_create_inferior): Call
8412 restore_original_signals_state.
8413 * server.c: Include "dispositions-save-restore.h".
8414 (captured_main): Call save_original_signals_state.
8415
1baf5149
PA
84162016-08-05 Pedro Alves <palves@redhat.com>
8417
8418 * configure: Regenerate.
8419
fcd4a73d
YQ
84202016-08-04 Yao Qi <yao.qi@linaro.org>
8421
8422 * linux-low.c (regsets_fetch_inferior_registers): Check
8423 errno is ESRCH or not.
8424
979659d0
YQ
84252016-08-02 Yao Qi <yao.qi@linaro.org>
8426
8427 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8428 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8429 (thread_db_load_search): Update.
8430 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8431 td_ta_set_event and td_ta_event_getmsg.
8432
6598661d
PA
84332016-07-26 Pedro Alves <palves@redhat.com>
8434
8435 PR server/20414
8436 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8437 of unsigned long for 64-bit registers and use uint32_t instead of
8438 unsigned int for 32-bit registers.
8439
9cf12d57
PA
84402016-07-26 Pedro Alves <palves@redhat.com>
8441
8442 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8443 to 'ptrace'.
8444
305450ed
TT
84452016-07-21 Tom Tromey <tom@tromey.com>
8446
8447 * configure: Rebuild.
8448
2583da7c
YQ
84492016-07-21 Yao Qi <yao.qi@linaro.org>
8450
8451 * mem-break.c (find_gdb_breakpoint): Cast bp to
8452 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8453
21536b36
YQ
84542016-07-21 Yao Qi <yao.qi@linaro.org>
8455
8456 * server.c (handle_v_requests): Support s and S actions
8457 if target_supports_software_single_step return true.
8458
8901d193
YQ
84592016-07-21 Yao Qi <yao.qi@linaro.org>
8460
8461 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8462 is resume_step, call maybe_hw_step.
8463 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8464 and unstop them.
8465 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8466 breakpoints or not.
8467 (proceed_one_lwp): If resume request is resume_step, install
8468 reinsert breakpoints and call maybe_hw_step.
8469
0e9a339e
YQ
84702016-07-21 Yao Qi <yao.qi@linaro.org>
8471
8472 * linux-low.c (proceed_one_lwp): Declare.
8473 (linux_resume_one_thread): Remove local variable 'step'.
8474 Lift code enqueue signal. Call proceed_one_lwp instead of
8475 linux_resume_one_lwp.
8476
4281b351
YQ
84772016-07-21 Yao Qi <yao.qi@linaro.org>
8478
8479 * linux-low.c (linux_resume_one_thread): Call
8480 enqueue_pending_signal.
8481
984a2c04
YQ
84822016-07-21 Yao Qi <yao.qi@linaro.org>
8483
8484 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8485 * inferiors.c (do_restore_current_thread_cleanup): New function.
8486 (make_cleanup_restore_current_thread): Likewise.
8487 * linux-low.c (install_software_single_step_breakpoints): Call
8488 make_cleanup_restore_current_thread. Switch current_thread to
8489 thread.
8490
bec903c9
YQ
84912016-07-21 Yao Qi <yao.qi@linaro.org>
8492
8493 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8494 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8495 (clone_one_breakpoint): Likewise.
8496 (delete_reinsert_breakpoints): Change parameter to thread.
8497 Callers updated.
8498 (has_reinsert_breakpoints): Likewise.
8499 (uninsert_reinsert_breakpoints): Likewise.
8500 (reinsert_reinsert_breakpoints): Likewise.
8501 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8502 (delete_reinsert_breakpoints): Likewise.
8503 (reinsert_reinsert_breakpoints): Likewise.
8504 (uninsert_reinsert_breakpoints): Likewise.
8505 (has_reinsert_breakpoints): Likewise.
8506
63c40ec7
YQ
85072016-07-21 Yao Qi <yao.qi@linaro.org>
8508
8509 * inferiors.c (get_thread_process): Make parameter const.
8510 * inferiors.h (get_thread_process): Update declaration.
8511 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8512 Add new parameters child_thread and parent_thread. Callers
8513 updated.
8514 * mem-break.h (clone_all_breakpoints): Update declaration.
8515
9aa76cd0
YQ
85162016-07-21 Yao Qi <yao.qi@linaro.org>
8517
8518 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8519 <command_list, handler>: Remove.
8520 (struct gdb_breakpoint): New.
8521 (struct other_breakpoint): New.
8522 (struct reinsert_breakpoint): New.
8523 (is_gdb_breakpoint): New function.
8524 (any_persistent_commands): Update command_list if
8525 is_gdb_breakpoint returns true.
8526 (set_breakpoint): Create breakpoints according to their types.
8527 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8528 (set_gdb_breakpoint_1): Likewise.
8529 (set_gdb_breakpoint): Likewise.
8530 (clear_breakpoint_conditions): Change parameter type to
8531 'struct gdb_breakpoint *'.
8532 (clear_breakpoint_commands): Likewise.
8533 (clear_breakpoint_conditions_and_commands): Likewise.
8534 (add_condition_to_breakpoint): Likewise.
8535 (add_breakpoint_condition): Likewise.
8536 (add_commands_to_breakpoint): Likewise.
8537 (check_breakpoints): Check other_breakpoint.
8538 (clone_one_breakpoint): Clone breakpopint according to its type.
8539 * mem-break.h (struct gdb_breakpoint): Declare.
8540 (set_gdb_breakpoint): Update declaration.
8541 (clear_breakpoint_conditions_and_commands): Likewise.
8542 (add_breakpoint_condition): Likewise.
8543 (add_breakpoint_commands): Likewise.
8544 * server.c (process_point_options): Change parameter type to
8545 'struct gdb_breakpoint *'.
8546
811f8301
YQ
85472016-07-21 Yao Qi <yao.qi@linaro.org>
8548
8549 * mem-break.c (set_breakpoint_at): Rename it to ...
8550 (set_breakpoint_type_at): ... it.
8551 (set_breakpoint_at): Call set_breakpoint_type_at.
8552 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8553 * mem-break.h (set_breakpoint_at): Update comments.
8554
b1c51e36
CLT
85552016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8556
8557 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8558 to buf parameter.
8559 (nios2_store_gregset): Likewise.
8560
ced2dffb
PA
85612016-07-01 Pedro Alves <palves@redhat.com>
8562 Antoine Tremblay <antoine.tremblay@ericsson.com>
8563
8564 * linux-low.c: Change interface to take the target lwp_info
8565 pointer directly and return void. Handle detaching from a zombie
8566 thread.
8567 (linux_detach_lwp_callback): New function.
8568 (linux_detach): Detach from the leader thread after detaching from
8569 the clone threads.
8570
2ac09a5b
YQ
85712016-06-28 Yao Qi <yao.qi@linaro.org>
8572
8573 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8574 for variable new_offset.
8575 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8576 (aarch64_ftrace_insn_reloc_cb): Likewise.
8577 (aarch64_ftrace_insn_reloc_tb): Likewise.
8578 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8579 PRIx64 instead of PRIx32.
8580
79e7fd4f
YQ
85812016-06-28 Yao Qi <yao.qi@linaro.org>
8582
8583 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8584 (the_low_target): Install arm_get_syscall_trapinfo.
8585
061fc021
YQ
85862016-06-28 Yao Qi <yao.qi@linaro.org>
8587
8588 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8589 function.
8590 (the_low_target): Install aarch64_get_syscall_trapinfo.
8591
4cc32bec
YQ
85922016-06-28 Yao Qi <yao.qi@linaro.org>
8593
8594 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8595 Callers updated.
8596 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8597 Remove parameter sysno.
8598 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8599 sysret.
8600
782c1122
AA
86012016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8602
8603 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8604 (s390_emit_ne_goto): Likewise.
8605 (s390_emit_lt_goto): Likewise.
8606 (s390_emit_le_goto): Likewise.
8607 (s390_emit_gt_goto): Likewise.
8608 (s390_emit_ge_goto): Likewise.
8609 (s390x_emit_eq_goto): Likewise.
8610 (s390x_emit_ne_goto): Likewise.
8611 (s390x_emit_lt_goto): Likewise.
8612 (s390x_emit_le_goto): Likewise.
8613 (s390x_emit_gt_goto): Likewise.
8614 (s390x_emit_ge_goto): Likewise.
8615 (s390_emit_ops_impl): Mark variable static.
8616 (s390x_emit_ops): Likewise.
8617
2e7b624b
YQ
86182016-06-17 Yao Qi <yao.qi@linaro.org>
8619
8620 * linux-low.c (handle_extended_wait): Call
8621 uninsert_reinsert_breakpoints for the parent process. Remove
8622 reinsert breakpoints from the child process. Reinsert them to
8623 the parent process when vfork is done.
8624 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8625 (reinsert_reinsert_breakpoints): New function.
8626 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8627 (reinsert_reinsert_breakpoints): Declare.
8628
8a81c5d7
YQ
86292016-06-17 Yao Qi <yao.qi@linaro.org>
8630
8631 * linux-low.c (handle_extended_wait): If the parent is doing
8632 step-over, remove the reinsert breakpoints from the forked child.
8633
f50bf8e5
YQ
86342016-06-17 Yao Qi <yao.qi@linaro.org>
8635
8636 * linux-low.c (unsuspend_all_lwps): Declare.
8637 (linux_low_filter_event): If thread exited, call finish_step_over.
8638 If step-over is finished, unsuspend other threads.
8639
8376a3cb
YQ
86402016-06-17 Yao Qi <yao.qi@linaro.org>
8641
8642 * linux-low.c (linux_resume_one_lwp_throw): Assert
8643 has_reinsert_breakpoints returns false.
8644 * mem-break.c (delete_disabled_breakpoints): Assert
8645 bp type isn't reinsert_breakpoint.
8646
f79b145d
YQ
86472016-06-17 Yao Qi <yao.qi@linaro.org>
8648
8649 * linux-low.c (maybe_hw_step): New function.
8650 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8651 (finish_step_over): Switch current_thread to lwp temporarily,
8652 and assert has_reinsert_breakpoints returns true.
8653 (proceed_one_lwp): Call maybe_hw_step.
8654 * mem-break.c (has_reinsert_breakpoints): New function.
8655 * mem-break.h (has_reinsert_breakpoints): Declare.
8656
0ae534d2
JT
86572016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8658
8659 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8660
fcdad592
YQ
86612016-05-17 Yao Qi <yao.qi@linaro.org>
8662
8663 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8664 instead of find_inferior.
8665
9e784964
YQ
86662016-05-05 Yao Qi <yao.qi@linaro.org>
8667
8668 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8669 Initialize res to zero.
8670
cf2ebb6e
YQ
86712016-05-05 Yao Qi <yao.qi@linaro.org>
8672
8673 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8674 to uint32_t.
8675
c1aebf87
UW
86762016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8677
8678 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8679 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8680 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8681
35fd2deb 86822016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8683 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8684
8685 * tracepoint.c (write_inferior_int8): New function.
8686 (cmd_qtenable_disable): Write enable flag using
8687 write_inferior_int8.
8688
484b3c32
YQ
86892016-04-25 Yao Qi <yao.qi@linaro.org>
8690
8691 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8692 (need_step_over_p): Return zero if the LWP has pending signals
8693 can be delivered on software single step target.
8694
85ba7d86
YQ
86952016-04-25 Yao Qi <yao.qi@linaro.org>
8696
8697 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8698 return instead of error.
8699
3539aa13
YQ
87002016-04-22 Yao Qi <yao.qi@linaro.org>
8701
8702 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8703 to 23.
8704
5b061e98
YQ
87052016-04-22 Yao Qi <yao.qi@linaro.org>
8706
8707 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8708 signal when stepping over breakpoint with software single
8709 step.
8710
3451269c
PA
87112016-04-21 Pedro Alves <palves@redhat.com>
8712
8713 * linux-s390-low.c (s390_collect_ptrace_register)
8714 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8715 add casts.
8716 (s390_check_regset): Use void * instead of gdb_byte *.
8717
a2358508
PA
87182016-04-20 Pedro Alves <palves@redhat.com>
8719
8720 * configure: Renegerate.
8721
6885166d
YQ
87222016-04-20 Yao Qi <yao.qi@linaro.org>
8723
8724 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8725 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8726 number 16.
8727 (arm_store_gregset): Likewise.
8728
2b863f51
WT
87292016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8730
8731 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8732 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8733 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8734 (amd64-avx-mpx-linux.c): New rules.
8735 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8736 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8737 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8738 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8739 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8740 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8741 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8742 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8743 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8744 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8745 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8746 * linux-x86-low.c (x86_linux_read_description): Add case for
8747 X86_XSTATE_AVX_MPX_MASK.
8748 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8749 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8750 init_registers_i386_avx_mpx_linux.
8751 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8752 (initialize_low_tracepoint): Call
8753 init_registers_i386_avx_mpx_linux.
8754 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8755 (initialize_low_tracepoint): Call
8756 init_registers_amd64_avx_mpx_linux.
8757 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8758 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8759 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8760 declarations.
8761
9b30624b
PA
87622016-04-18 Pedro Alves <palves@redhat.com>
8763
8764 * configure: Regenerate.
8765
45e3745e
AT
87662016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8767
8768 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8769 (aarch64_emit_sub): Likewise.
8770
2afc13ff
PA
87712016-04-12 Pedro Alves <palves@redhat.com>
8772
8773 * utils.c (prepare_to_throw_exception): Delete.
8774
6e774b13
SM
87752016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8776
8777 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8778
4dca19f8
MK
87792016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8780
8781 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8782
d0a9981f
MK
87832016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8784
8785 * linux-aarch64-ipa.c: Add <elf.h> include.
8786 * linux-ppc-ipa.c: Add <elf.h> include.
8787 * linux-s390-ipa.c: Add <elf.h> include.
8788
252db07e
MK
87892016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8790
8791 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8792 (get_raw_reg_ptr): Likewise.
8793 (get_trace_state_variable_value_ptr): Likewise.
8794 (set_trace_state_variable_value_ptr): Likewise.
8795 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8796 char *.
8797
14e2b6d9
MK
87982016-03-31 Wei-cheng Wang <cole945@gmail.com>
8799 Marcin Kościelnicki <koriakin@0x04.net>
8800
8801 PR/17221
8802 * linux-ppc-low.c (emit_insns): New function.
8803 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8804 (ppc_emit_prologue): New function.
8805 (ppc_emit_epilogue): New function.
8806 (ppc_emit_add): New function.
8807 (ppc_emit_sub): New function.
8808 (ppc_emit_mul): New function.
8809 (ppc_emit_lsh): New function.
8810 (ppc_emit_rsh_signed): New function.
8811 (ppc_emit_rsh_unsigned): New function.
8812 (ppc_emit_ext): New function.
8813 (ppc_emit_zero_ext): New function.
8814 (ppc_emit_log_not): New function.
8815 (ppc_emit_bit_and): New function.
8816 (ppc_emit_bit_or): New function.
8817 (ppc_emit_bit_xor): New function.
8818 (ppc_emit_bit_not): New function.
8819 (ppc_emit_equal): New function.
8820 (ppc_emit_less_signed): New function.
8821 (ppc_emit_less_unsigned): New function.
8822 (ppc_emit_ref): New function.
8823 (ppc_emit_const): New function.
8824 (ppc_emit_reg): New function.
8825 (ppc_emit_pop): New function.
8826 (ppc_emit_stack_flush): New function.
8827 (ppc_emit_swap): New function.
8828 (ppc_emit_stack_adjust): New function.
8829 (ppc_emit_call): New function.
8830 (ppc_emit_int_call_1): New function.
8831 (ppc_emit_void_call_2): New function.
8832 (ppc_emit_if_goto): New function.
8833 (ppc_emit_goto): New function.
8834 (ppc_emit_eq_goto): New function.
8835 (ppc_emit_ne_goto): New function.
8836 (ppc_emit_lt_goto): New function.
8837 (ppc_emit_le_goto): New function.
8838 (ppc_emit_gt_goto): New function.
8839 (ppc_emit_ge_goto): New function.
8840 (ppc_write_goto_address): New function.
8841 (ppc_emit_ops_impl): New static variable.
8842 (ppc64v1_emit_prologue): New function.
8843 (ppc64v2_emit_prologue): New function.
8844 (ppc64_emit_epilogue): New function.
8845 (ppc64_emit_add): New function.
8846 (ppc64_emit_sub): New function.
8847 (ppc64_emit_mul): New function.
8848 (ppc64_emit_lsh): New function.
8849 (ppc64_emit_rsh_signed): New function.
8850 (ppc64_emit_rsh_unsigned): New function.
8851 (ppc64_emit_ext): New function.
8852 (ppc64_emit_zero_ext): New function.
8853 (ppc64_emit_log_not): New function.
8854 (ppc64_emit_bit_and): New function.
8855 (ppc64_emit_bit_or): New function.
8856 (ppc64_emit_bit_xor): New function.
8857 (ppc64_emit_bit_not): New function.
8858 (ppc64_emit_equal): New function.
8859 (ppc64_emit_less_signed): New function.
8860 (ppc64_emit_less_unsigned): New function.
8861 (ppc64_emit_ref): New function.
8862 (ppc64_emit_const): New function.
8863 (ppc64v1_emit_reg): New function.
8864 (ppc64v2_emit_reg): New function.
8865 (ppc64_emit_pop): New function.
8866 (ppc64_emit_stack_flush): New function.
8867 (ppc64_emit_swap): New function.
8868 (ppc64v1_emit_call): New function.
8869 (ppc64v2_emit_call): New function.
8870 (ppc64v1_emit_int_call_1): New function.
8871 (ppc64v2_emit_int_call_1): New function.
8872 (ppc64v1_emit_void_call_2): New function.
8873 (ppc64v2_emit_void_call_2): New function.
8874 (ppc64_emit_if_goto): New function.
8875 (ppc64_emit_eq_goto): New function.
8876 (ppc64_emit_ne_goto): New function.
8877 (ppc64_emit_lt_goto): New function.
8878 (ppc64_emit_le_goto): New function.
8879 (ppc64_emit_gt_goto): New function.
8880 (ppc64_emit_ge_goto): New function.
8881 (ppc64v1_emit_ops_impl): New static variable.
8882 (ppc64v2_emit_ops_impl): New static variable.
8883 (ppc_emit_ops): New function.
8884 (linux_low_target): Wire in ppc_emit_ops.
8885
a2174ba4
MK
88862016-03-31 Wei-cheng Wang <cole945@gmail.com>
8887 Marcin Kościelnicki <koriakin@0x04.net>
8888
8889 PR/17221
8890 * Makefile.in: Add powerpc-*-ipa.o
8891 * configure.srv: Add ipa_obj for powerpc*-linux.
8892 * linux-ppc-ipa.c: New file.
8893 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8894 includes.
8895 (PPC_FIELD): New macro.
8896 (PPC_SEXT): New macro.
8897 (PPC_OP6): New macro.
8898 (PPC_BO): New macro.
8899 (PPC_LI): New macro.
8900 (PPC_BD): New macro.
8901 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8902 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8903 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8904 (ppc_get_thread_area): New function.
8905 (is_elfv2_inferior): New function.
8906 (gen_ds_form): New function.
8907 (GEN_STD): New macro.
8908 (GEN_STDU): New macro.
8909 (GEN_LD): New macro.
8910 (GEN_LDU): New macro.
8911 (gen_d_form): New function.
8912 (GEN_ADDI): New macro.
8913 (GEN_ADDIS): New macro.
8914 (GEN_LI): New macro.
8915 (GEN_LIS): New macro.
8916 (GEN_ORI): New macro.
8917 (GEN_ORIS): New macro.
8918 (GEN_LWZ): New macro.
8919 (GEN_STW): New macro.
8920 (GEN_STWU): New macro.
8921 (gen_xfx_form): New function.
8922 (GEN_MFSPR): New macro.
8923 (GEN_MTSPR): New macro.
8924 (GEN_MFCR): New macro.
8925 (GEN_MTCR): New macro.
8926 (GEN_SYNC): New macro.
8927 (GEN_LWSYNC): New macro.
8928 (gen_x_form): New function.
8929 (GEN_OR): New macro.
8930 (GEN_MR): New macro.
8931 (GEN_LWARX): New macro.
8932 (GEN_STWCX): New macro.
8933 (GEN_CMPW): New macro.
8934 (gen_md_form): New function.
8935 (GEN_RLDICL): New macro.
8936 (GEN_RLDICR): New macro.
8937 (gen_i_form): New function.
8938 (GEN_B): New macro.
8939 (GEN_BL): New macro.
8940 (gen_b_form): New function.
8941 (GEN_BNE): New macro.
8942 (GEN_LOAD): New macro.
8943 (GEN_STORE): New macro.
8944 (gen_limm): New function.
8945 (gen_atomic_xchg): New function.
8946 (gen_call): New function.
8947 (ppc_relocate_instruction): New function.
8948 (ppc_install_fast_tracepoint_jump_pad): New function.
8949 (ppc_get_min_fast_tracepoint_insn_len): New function.
8950 (ppc_get_ipa_tdesc_idx): New function.
8951 (the_low_target): Wire in the new functions.
8952 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8953 tdescs.
8954 * linux-ppc-tdesc.h: New file.
8955
a13c4696
MK
89562016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8957
8958 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8959 (alloc_jump_pad_buffer): New function.
8960 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8961 (alloc_jump_pad_buffer): New function.
8962 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8963 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8964 (alloc_jump_pad_buffer): New function.
8965 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8966 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8967 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8968 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8969
1cda1512
MK
89702016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8971
8972 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8973 * linux-amd64-ipa.c: Likewise.
8974 * linux-i386-ipa.c: Likewise.
8975 * linux-s390-ipa.c: Likewise.
8976 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8977 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8978 set_trace_state_variable_value_ptr.
8979 (struct ipa_sym_addresses): Likewise.
8980 (symbol_list): Likewise.
8981 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8982 accessing gdb_collect directly.
8983 (gdb_collect_ptr_type): New typedef.
8984 (get_raw_reg_ptr_type): New typedef.
8985 (get_trace_state_variable_value_ptr_type): New typedef.
8986 (set_trace_state_variable_value_ptr_type): New typedef.
8987 (gdb_collect_ptr): New global.
8988 (get_raw_reg_ptr): New global.
8989 (get_trace_state_variable_value_ptr): New global.
8990 (set_trace_state_variable_value_ptr): New global.
8991 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8992 accessing get_raw_reg directly.
8993 (get_get_tsv_func_addr): Likewise for
8994 get_trace_state_variable_value_ptr.
8995 (get_set_tsv_func_addr): Likewise for
8996 set_trace_state_variable_value_ptr.
8997 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8998
72fb5488
SM
89992016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9000
9001 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9002
28170b88
MK
90032016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9004
9005 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9006 packets.
9007 (relocate_instruction): Remove own_buf.
9008 * server.c (own_buf): Make global.
9009 (handle_v_requests): Make global.
9010 * server.h (own_buf): New declaration.
9011 (handle_v_requests): New prototype.
9012
f39e8743
MK
90132016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9014
9015 PR 18377
9016 * linux-s390-low.c (add_insns): New function.
9017 (s390_emit_prologue): New function.
9018 (s390_emit_epilogue): New function.
9019 (s390_emit_add): New function.
9020 (s390_emit_sub): New function.
9021 (s390_emit_mul): New function.
9022 (s390_emit_lsh): New function.
9023 (s390_emit_rsh_signed): New function.
9024 (s390_emit_rsh_unsigned): New function.
9025 (s390_emit_ext): New function.
9026 (s390_emit_log_not): New function.
9027 (s390_emit_bit_and): New function.
9028 (s390_emit_bit_or): New function.
9029 (s390_emit_bit_xor): New function.
9030 (s390_emit_bit_not): New function.
9031 (s390_emit_equal): New function.
9032 (s390_emit_less_signed): New function.
9033 (s390_emit_less_unsigned): New function.
9034 (s390_emit_ref): New function.
9035 (s390_emit_if_goto): New function.
9036 (s390_emit_goto): New function.
9037 (s390_write_goto_address): New function.
9038 (s390_emit_litpool): New function.
9039 (s390_emit_const): New function.
9040 (s390_emit_call): New function.
9041 (s390_emit_reg): New function.
9042 (s390_emit_pop): New function.
9043 (s390_emit_stack_flush): New function.
9044 (s390_emit_zero_ext): New function.
9045 (s390_emit_swap): New function.
9046 (s390_emit_stack_adjust): New function.
9047 (s390_emit_set_r2): New function.
9048 (s390_emit_int_call_1): New function.
9049 (s390_emit_void_call_2): New function.
9050 (s390_emit_eq_goto): New function.
9051 (s390_emit_ne_goto): New function.
9052 (s390_emit_lt_goto): New function.
9053 (s390_emit_le_goto): New function.
9054 (s390_emit_gt_goto): New function.
9055 (s390_emit_ge_goto): New function.
9056 (s390x_emit_prologue): New function.
9057 (s390x_emit_epilogue): New function.
9058 (s390x_emit_add): New function.
9059 (s390x_emit_sub): New function.
9060 (s390x_emit_mul): New function.
9061 (s390x_emit_lsh): New function.
9062 (s390x_emit_rsh_signed): New function.
9063 (s390x_emit_rsh_unsigned): New function.
9064 (s390x_emit_ext): New function.
9065 (s390x_emit_log_not): New function.
9066 (s390x_emit_bit_and): New function.
9067 (s390x_emit_bit_or): New function.
9068 (s390x_emit_bit_xor): New function.
9069 (s390x_emit_bit_not): New function.
9070 (s390x_emit_equal): New function.
9071 (s390x_emit_less_signed): New function.
9072 (s390x_emit_less_unsigned): New function.
9073 (s390x_emit_ref): New function.
9074 (s390x_emit_if_goto): New function.
9075 (s390x_emit_const): New function.
9076 (s390x_emit_call): New function.
9077 (s390x_emit_reg): New function.
9078 (s390x_emit_pop): New function.
9079 (s390x_emit_stack_flush): New function.
9080 (s390x_emit_zero_ext): New function.
9081 (s390x_emit_swap): New function.
9082 (s390x_emit_stack_adjust): New function.
9083 (s390x_emit_int_call_1): New function.
9084 (s390x_emit_void_call_2): New function.
9085 (s390x_emit_eq_goto): New function.
9086 (s390x_emit_ne_goto): New function.
9087 (s390x_emit_lt_goto): New function.
9088 (s390x_emit_le_goto): New function.
9089 (s390x_emit_gt_goto): New function.
9090 (s390x_emit_ge_goto): New function.
9091 (s390_emit_ops): New function.
9092 (struct linux_target_ops): Fill in emit_ops hook.
9093
abd9baf9
MK
90942016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9095
9096 PR 18377
9097 * Makefile.in: Add s390 IPA files.
9098 * configure.srv: Build IPA for s390.
9099 * linux-s390-ipa.c: New file.
9100 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9101 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9102 (tdesc_s390_linux32): Likewise.
9103 (init_registers_s390_linux32v1): Likewise.
9104 (tdesc_s390_linux32v1): Likewise.
9105 (init_registers_s390_linux32v2): Likewise.
9106 (tdesc_s390_linux32v2): Likewise.
9107 (init_registers_s390_linux64): Likewise.
9108 (tdesc_s390_linux64): Likewise.
9109 (init_registers_s390_linux64v1): Likewise.
9110 (tdesc_s390_linux64v1): Likewise.
9111 (init_registers_s390_linux64v2): Likewise.
9112 (tdesc_s390_linux64v2): Likewise.
9113 (init_registers_s390_te_linux64): Likewise.
9114 (tdesc_s390_te_linux64): Likewise.
9115 (init_registers_s390_vx_linux64): Likewise.
9116 (tdesc_s390_vx_linux64): Likewise.
9117 (init_registers_s390_tevx_linux64): Likewise.
9118 (tdesc_s390_tevx_linux64): Likewise.
9119 (init_registers_s390x_linux64): Likewise.
9120 (tdesc_s390x_linux64): Likewise.
9121 (init_registers_s390x_linux64v1): Likewise.
9122 (tdesc_s390x_linux64v1): Likewise.
9123 (init_registers_s390x_linux64v2): Likewise.
9124 (tdesc_s390x_linux64v2): Likewise.
9125 (init_registers_s390x_te_linux64): Likewise.
9126 (tdesc_s390x_te_linux64): Likewise.
9127 (init_registers_s390x_vx_linux64): Likewise.
9128 (tdesc_s390x_vx_linux64): Likewise.
9129 (init_registers_s390x_tevx_linux64): Likewise.
9130 (tdesc_s390x_tevx_linux64): Likewise.
9131 (have_hwcap_s390_vx): New static variable.
9132 (s390_arch_setup): Fill have_hwcap_s390_vx.
9133 (s390_get_thread_area): New function.
9134 (s390_ft_entry_gpr_esa): New const.
9135 (s390_ft_entry_gpr_zarch): New const.
9136 (s390_ft_entry_misc): New const.
9137 (s390_ft_entry_fr): New const.
9138 (s390_ft_entry_vr): New const.
9139 (s390_ft_main_31): New const.
9140 (s390_ft_main_64): New const.
9141 (s390_ft_exit_fr): New const.
9142 (s390_ft_exit_vr): New const.
9143 (s390_ft_exit_misc): New const.
9144 (s390_ft_exit_gpr_esa): New const.
9145 (s390_ft_exit_gpr_zarch): New const.
9146 (append_insns): New function.
9147 (s390_relocate_instruction): New function.
9148 (s390_install_fast_tracepoint_jump_pad): New function.
9149 (s390_get_min_fast_tracepoint_insn_len): New function.
9150 (s390_get_ipa_tdesc_idx): New function.
9151 (struct linux_target_ops): Wire in the above functions.
9152 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9153 * linux-s390-tdesc.h: New file.
9154
a4105d04
MK
91552016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9156
9157 * linux-s390-low.c (s390_supports_tracepoints): New function.
9158 (struct linux_target_ops): Fill supports_tracepoints hook.
9159
35ac8b3e
YQ
91602016-03-18 Yao Qi <yao.qi@linaro.org>
9161
9162 * linux-low.c (lwp_signal_can_be_delivered): New function.
9163 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9164
94610ec4
YQ
91652016-03-18 Yao Qi <yao.qi@linaro.org>
9166
9167 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9168 0 if signal is enqueued. Remove 'signal' from one debugging
9169 message. Move one debugging message to some lines below.
9170 Remove code setting 'signal' to 0.
9171
80aea927
YQ
91722016-03-18 Yao Qi <yao.qi@linaro.org>
9173
9174 * linux-low.c (linux_low_filter_event): Remove redundant
9175 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9176
b04fd3be
MK
91772016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9178
9179 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9180 (struct linux_target_ops): Wire in the above.
9181
c40c8d4b
YQ
91822016-03-03 Yao Qi <yao.qi@linaro.org>
9183
9184 * linux-low.c: Update comments to start_step_over.
9185
0f8288ae
YQ
91862016-03-03 Yao Qi <yao.qi@linaro.org>
9187
9188 PR server/19736
9189 * linux-low.c (handle_extended_wait): Set child suspended
9190 if event_lwp->bp_reinsert isn't zero.
9191
fdbd04a8
YQ
91922016-03-02 Yao Qi <yao.qi@linaro.org>
9193
9194 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9195 enqueue_pending_signal.
9196
6896a8fa
MK
91972016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9198
9199 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9200 is actually loaded.
9201
ab503087
MK
92022016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9203
9204 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9205 (s390_regmap_3264) [!__s390x__]: New global.
9206 (s390_collect_ptrace_register): Skip map entries containing -1.
9207 (s390_supply_ptrace_register): Ditto.
9208 (s390_fill_gprs_high): New function.
9209 (s390_store_gprs_high): New function.
9210 (s390_regsets): Add NT_S390_HIGH_GPRS.
9211 (s390_get_hwcap): Enable on 31-bit.
9212 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9213 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9214 Detect NT_S390_HIGH_GPRS.
9215 (s390_usrregs_info_3264): Enable on 31-bit.
9216 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9217 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9218
ae91f625
MK
92192016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9220
9221 PR gdb/13808
9222 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9223 * configure.srv: Ditto.
9224 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9225 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9226 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9227 (init_registers_amd64_linux): Remove prototype.
9228 (tdesc_amd64_linux): Remove declaration.
9229 (get_ipa_tdesc): New function.
9230 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9231 initialize remaining tdescs.
9232 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9233 (init_registers_i386_linux): Remove prototype.
9234 (tdesc_i386_linux): Remove declaration.
9235 (get_ipa_tdesc): New function.
9236 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9237 initialize remaining tdescs.
9238 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9239 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9240 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9241 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9242 (x86_get_ipa_tdesc_idx): New function.
9243 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9244 * linux-x86-tdesc.h: New file.
9245 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9246 (target_get_ipa_tdesc_idx): New macro.
9247 * tracepoint.c (ipa_tdesc_idx): New macro.
9248 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9249 (symbol_list): Add ipa_tdesc_idx.
9250 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9251 (ipa_tdesc): Remove.
9252 (ipa_tdesc_idx): New variable.
9253 (get_context_regcache): Use get_ipa_tdesc.
9254 (gdb_collect): Ditto.
9255 (gdb_probe): Ditto.
9256 * tracepoint.h (get_ipa_tdesc): New prototype.
9257 (ipa_tdesc): Remove.
9258
e7ad2f14
PA
92592016-02-24 Pedro Alves <palves@redhat.com>
9260
9261 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9262 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9263 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9264 Factor out common code between the USE_SIGTRAP_SIGINFO and
9265 !USE_SIGTRAP_SIGINFO blocks.
9266 (linux_low_filter_event): Call save_stop_reason instead of
9267 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9268 Update comments.
9269 (linux_wait_1): Update comments.
9270
657f9cde
WW
92712016-02-24 Wei-cheng Wang <cole945@gmail.com>
9272
9273 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9274 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9275 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9276 ppc_insert_point, ppc_remove_point.
9277
b00b61e1
MK
92782016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9279
9280 * linux-s390-low.c (s390_supports_z_point_type): New function.
9281 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9282
553cb527
YQ
92832016-02-16 Yao Qi <yao.qi@linaro.org>
9284
9285 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9286 PC. Get pc from regcache_read_pc.
9287
a5652c21
YQ
92882016-02-12 Yao Qi <yao.qi@linaro.org>
9289
9290 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9291 or linux_get_pc_32bit.
9292 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9293
ed443b61
YQ
92942016-02-12 Yao Qi <yao.qi@linaro.org>
9295
9296 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9297 arm_linux_get_next_pcs_fixup.
9298
020ecd38
MK
92992016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9300
9301 * tracepoint.c (x_tracepoint_action_download): Change
9302 write_inferior_data_ptr to write_inferior_data_pointer.
9303 (cmd_qtstart): Likewise.
9304 (write_inferior_data_ptr): Remove.
9305 (download_agent_expr): Change write_inferior_data_ptr to
9306 write_inferior_data_pointer.
9307 (download_tracepoint_1): Likewise.
9308 (download_tracepoint): Likewise.
9309 (download_trace_state_variables): Likewise.
9310
7cae9051
WW
93112016-02-11 Wei-cheng Wang <cole945@gmail.com>
9312 Marcin Kościelnicki <koriakin@0x04.net>
9313
9314 * tracepoint.c (struct tracepoint_action_ops): Remove.
9315 (struct tracepoint_action): Remove ops.
9316 (m_tracepoint_action_download, r_tracepoint_action_download)
9317 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9318 size and offset accordingly.
9319 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9320 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9321 (tracepoint_action_send, tracepoint_action_download): New functions.
9322 Helpers for trace action handlers.
9323 (add_tracepoint_action): Remove setup actions ops.
9324 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9325
9f6a71b4
YQ
93262016-02-10 Yao Qi <yao.qi@linaro.org>
9327
9328 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9329
1e94266c
SM
93302016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9331
9332 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9333 to AC_OUTPUT.
9334 * configure: Regenerate.
9335
8adce034
SM
93362016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9337
9338 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9339 void * to gdb_byte *.
9340 * linux-low.c (siginfo_fixup): Likewise.
9341 (linux_xfer_siginfo): Likewise.
9342 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9343 Likewise.
9344 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9345
93813b37
WT
93462016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9347
9348 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9349 to srv_tgtobj.
9350 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9351 to srv_tgtobj.
9352 * linux-x86-low.c [__x86_64__]: Include
9353 "nat/amd64-linux-siginfo.h".
9354 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9355 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9356 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9357 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9358 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9359 (cpt_si_fd, si_timerid, si_overrun): Move from
9360 nat/amd64-linux-siginfo.c.
9361 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9362
8424cc97
SM
93632016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9364
9365 * server.c (skip_to_semicolon): Remove.
9366 (process_point_options): Use strchrnul instead of
9367 skip_to_semicolon.
9368
4d18591b
YQ
93692016-01-26 Yao Qi <yao.qi@linaro.org>
9370
9371 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9372 * linux-low.c (install_software_single_step_breakpoints): Don't
9373 call regcache_read_pc.
9374 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9375 argument pc.
9376
d8020970
YQ
93772016-01-26 Yao Qi <yao.qi@linaro.org>
9378
9379 * linux-low.c (install_software_single_step_breakpoints): Call
9380 regcache_read_pc instead of get_pc.
9381
8b207339
YQ
93822016-01-26 Yao Qi <yao.qi@linaro.org>
9383
9384 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9385 (unblock_async_io): Rename to ...
9386 (block_unblock_async_io): ... it. New function.
9387 (enable_async_io): Don't install SIGIO handler. Unblock it
9388 instead.
9389 (disable_async_io): Don't ignore SIGIO. Block it instead.
9390 (initialize_async_io): Install SIGIO handler. Don't call
9391 unblock_async_io.
9392
18879fef
YQ
93932016-01-26 Yao Qi <yao.qi@linaro.org>
9394
9395 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9396 first character is '\003', call *the_target->request_interrupt.
9397
a0f8e08a
YQ
93982016-01-25 Yao Qi <yao.qi@linaro.org>
9399
9400 * remote-utils.c (new_thread_notify): Remove.
9401 (dead_thread_notify): Likewise.
9402 * remote-utils.h (new_thread_notify): Remove declaration.
9403 (dead_thread_notify): Likewise.
9404
cc5fd9ab
MK
94052016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9406
9407 * gdb.trace/pending.exp: Fix expected message on continue.
9408
99e8eb11
MK
94092016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9410
9411 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9412 it works properly on big-endian machines where sizeof (CORE_ADDR)
9413 != sizeof (void *).
9414
a994041d
PA
94152016-01-21 Pedro Alves <palves@redhat.com>
9416
9417 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9418 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9419 * configure: Regenerate.
9420
f7a6a40d
YQ
94212016-01-21 Yao Qi <yao.qi@linaro.org>
9422
9423 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9424 is_thumb and set it according to CPSR saved on the stack.
9425 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9426 arm_sigreturn_next_pc.
9427
6f69e520
YQ
94282016-01-18 Yao Qi <yao.qi@linaro.org>
9429
9430 * linux-low.c (linux_set_pc_64bit): New function.
9431 (linux_get_pc_64bit): New function.
9432 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9433 Declare.
9434 * linux-sparc-low.c (debug_threads): Remove declaration.
9435 (sparc_get_pc): Remove.
9436 (the_low_target): Use linux_get_pc_64bit instead of
9437 sparc_get_pc.
9438 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9439 (the_low_target): Use linux_get_pc_64bit and
9440 linux_set_pc_64bit.
9441
276d4552
YQ
94422016-01-18 Yao Qi <yao.qi@linaro.org>
9443
9444 * linux-arm-low.c (debug_threads): Remove declaration.
9445 (arm_get_pc, arm_set_pc): Remove.
9446 (the_low_target): Use linux_get_pc_32bit and
9447 linux_set_pc_32bit.
9448 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9449 (the_low_target): Use linux_get_pc_32bit and
9450 linux_set_pc_32bit.
9451 * linux-cris-low.c (debug_threads): Remove declaration.
9452 (cris_get_pc, cris_set_pc,): Remove.
9453 (the_low_target): Use linux_get_pc_32bit and
9454 linux_set_pc_32bit.
9455 * linux-crisv32-low.c (debug_threads): Remove declaration.
9456 (cris_get_pc, cris_set_pc): Remove.
9457 (the_low_target): Use linux_get_pc_32bit and
9458 linux_set_pc_32bit.
9459 * linux-low.c: Include inttypes.h.
9460 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9461 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9462 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9463 (the_low_target): Use linux_get_pc_32bit and
9464 linux_set_pc_32bit.
9465 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9466 (the_low_target): Use linux_get_pc_32bit and
9467 linux_set_pc_32bit.
9468 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9469 (the_low_target): Use linux_get_pc_32bit and
9470 linux_set_pc_32bit.
9471 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9472 (the_low_target): Use linux_get_pc_32bit and
9473 linux_set_pc_32bit.
9474 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9475 (the_low_target): Use linux_get_pc_32bit and
9476 linux_set_pc_32bit.
9477
eb0edac8
GB
94782016-01-18 Gary Benson <gbenson@redhat.com>
9479
9480 * configure.ac (AC_FUNC_FORK): New check.
9481 * config.in: Regenerate.
9482 * configure: Likewise.
9483
1b451dda
YQ
94842016-01-14 Yao Qi <yao.qi@linaro.org>
9485
9486 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9487 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9488 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9489 arm_get_next_pcs_ctor.
9490
82075af2
JS
94912016-01-12 Josh Stone <jistone@redhat.com>
9492 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9493
9494 * inferiors.h: Include "gdb_vecs.h".
9495 (struct process_info): Add syscalls_to_catch.
9496 * inferiors.c (remove_process): Free syscalls_to_catch.
9497 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9498 syscall_return stops.
9499 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9500 * server.c (handle_general_set): Handle QCatchSyscalls.
9501 (handle_query): Report support for QCatchSyscalls.
9502 * target.h (struct target_ops): Add supports_catch_syscall.
9503 (target_supports_catch_syscall): New macro.
9504 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9505 (struct lwp_info): Add syscall_state.
9506 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9507 Maintain syscall_state and syscalls_to_catch across exec.
9508 (get_syscall_trapinfo): New function, proxy to the_low_target.
9509 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9510 (linux_low_filter_event): Toggle syscall_state entry/return for
9511 syscall traps, and set it ignored for all others.
9512 (gdb_catching_syscalls_p): New function.
9513 (gdb_catch_this_syscall_p): New function.
9514 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9515 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9516 (linux_supports_catch_syscall): New function.
9517 (linux_target_ops): Install it.
9518 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9519 (the_low_target): Install it.
9520
8f13a3ce
MF
95212016-01-12 Mike Frysinger <vapier@gentoo.org>
9522
9523 * acinclude.m4: Include new ../warning.m4 file.
9524 * configure: Regenerated.
9525 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9526
5b3da067
MF
95272016-01-12 Mike Frysinger <vapier@gentoo.org>
9528
9529 * ax.c (is_goto_target): Mark static.
9530 * linux-low.c (register_addr): Likewise.
9531 (linux_fetch_registers, linux_store_registers): Likewise.
9532 * mem-break.c (any_persistent_commands): Fix old prototype.
9533 (add_commands_to_breakpoint): Mark static.
9534 * regcache.c (find_register_by_name): Delete unused func.
9535 * remote-utils.c (hex_or_minus_one): Mark static.
9536 * server.c (monitor_show_help): Mark static.
9537 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9538 handle_v_requests): Likewise.
9539
bc504a31
PA
95402016-01-12 Pedro Alves <palves@redhat.com>
9541
9542 Remove use of the registered trademark symbol throughout.
9543
5a0dd67a
YQ
95442016-01-08 Yao Qi <yao.qi@linaro.org>
9545
9546 * remote-utils.c (getpkt): If c is '\003', call target hook
9547 request_interrupt.
9548
b2ca446f
YQ
95492016-01-06 Yao Qi <yao.qi@linaro.org>
9550
9551 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9552 linux-aarch32-low.c.
9553 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9554 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9555 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9556 (thumb2_breakpoint): Declare.
9557 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9558 linux-aarch32-low.h.
9559 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9560 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9561 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9562
edd88788
JB
95632016-01-01 Joel Brobecker <brobecker@adacore.com>
9564
9565 * gdbreplay.c (gdbreplay_version): Change copyright year in
9566 version message.
9567 * server.c (gdbserver_version): Likewise.
9568
65da7f14
PP
95692015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9570
9571 * server.c (crc32_table): Delete.
9572 (crc32): Use libiberty's xcrc32 function.
9573
4abd5ed2
JB
95742015-12-22 Joel Brobecker <brobecker@adacore.com>
9575
9576 * lynx-low.c (lynx_delete_thread_callback): New function.
9577 (lynx_mourn): Properly delete our process and all of its
9578 threads. Remove call to clear_inferiors.
9579
0e50fe5c
JB
95802015-12-22 Joel Brobecker <brobecker@adacore.com>
9581
9582 * target.c (thread_search_callback): Add check that
9583 the thread_stopped target callback is not NULL before
9584 calling it.
9585
35adc03f
YQ
95862015-12-21 Yao Qi <yao.qi@linaro.org>
9587
9588 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9589 arm breakpoint.
9590
bd2b2909
AT
95912015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9592
9593 * server.c (handle_query): Call target_supports_software_single_step.
9594
7fe5e27e
AT
95952015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9596
9597 * linux-low.c (single_step): New function.
9598 (linux_resume_one_lwp_throw): Call single_step.
9599 (start_step_over): Likewise.
9600
d9311bfa
AT
96012015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9602
9603 * Makefile.in (SFILES): Append arch/arm-linux.c,
9604 arch/arm-get-next-pcs.c.
9605 (arm-linux.o): New rule.
9606 (arm-get-next-pcs.o): New rule.
9607 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9608 arm-linux.o.
9609 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9610 to linux-aarch32-low.c.
9611 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9612 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9613 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9614 (thumb2_breakpoint_len): Likewise.
9615 (arm_is_thumb_mode): Make non-static.
9616 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9617 from linux-aarch32-low.c.
9618 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9619 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9620 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9621 (thumb2_breakpoint_len): Likewise.
9622 (arm_is_thumb_mode): New declaration.
9623 * linux-arm-low.c: Include arch/arm-linux.h
9624 aarch/arm-get-next-pcs.h, sys/syscall.h.
9625 (get_next_pcs_ops): New struct.
9626 (get_next_pcs_addr_bits_remove): New function.
9627 (get_next_pcs_is_thumb): New function.
9628 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9629 (arm_sigreturn_next_pc): Likewise.
9630 (get_next_pcs_syscall_next_pc): Likewise.
9631 (arm_gdbserver_get_next_pcs): Likewise.
9632 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9633 Initialize.
9634 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9635 * server.h: Include gdb_vecs.h.
9636
68ce2059
AT
96372015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9638
9639 * Makefile.in (SFILES): Append common/common-regcache.c.
9640 (OBS): Append common-regcache.o.
9641 (common-regcache.o): New rule.
9642 * regcache.c (init_register_cache): Initialize cache to
9643 REG_UNAVAILABLE.
9644 (regcache_raw_read_unsigned): New function.
9645 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9646 register_status enum.
9647
fa5308bd
AT
96482015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9649
9650 * linux-aarch64-low.c (the_low_targets): Rename
9651 breakpoint_reinsert_addr to get_next_pcs.
9652 * linux-arm-low.c (the_low_targets): Likewise.
9653 * linux-bfin-low.c (the_low_targets): Likewise.
9654 * linux-cris-low.c (the_low_targets): Likewise.
9655 * linux-crisv32-low.c (the_low_targets): Likewise.
9656 * linux-low.c (can_software_single_step): Likewise.
9657 (install_software_single_step_breakpoints): New function.
9658 (start_step_over): Use install_software_single_step_breakpoints.
9659 * linux-low.h: New CORE_ADDR vector.
9660 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9661 get_next_pcs.
9662 * linux-mips-low.c (the_low_targets): Likewise.
9663 * linux-nios2-low.c (the_low_targets): Likewise.
9664 * linux-sparc-low.c (the_low_targets): Likewise.
9665
4a6ed09b
PA
96662015-12-17 Pedro Alves <palves@redhat.com>
9667
9668 * linux-low.c (linux_kill_one_lwp): Remove references to
9669 LinuxThreads.
9670 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9671 to 'kill'.
9672 (linux_init_signals): Delete.
9673 (initialize_low): Adjust.
9674 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9675
7544db95
PA
96762015-12-16 Pedro Alves <palves@redhat.com>
9677
9678 * configure.ac (compiler warning flags): When testing a
9679 -Wno-foo option, check whether -Wfoo works instead.
9680 * configure: Regenerate.
9681
8020350c
DB
96822015-12-11 Don Breazeal <donb@codesourcery.com>
9683
9684 * server.c (process_serial_event): Don't exit from gdbserver
9685 in remote mode if there are still active inferiors.
9686
db91f502
YQ
96872015-12-11 Yao Qi <yao.qi@linaro.org>
9688
9689 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9690 arm_breakpoint_at if the process is 32-bit.
9691
b37a6290
YQ
96922015-12-11 Yao Qi <yao.qi@linaro.org>
9693
9694 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9695 arm breakpoint.
9696
17b1509a
YQ
96972015-12-07 Yao Qi <yao.qi@linaro.org>
9698
9699 * configure.srv: Append arm.o to srv_tgtobj for
9700 aarch64*-*-linux* target.
9701 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9702 from linux-arm-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, arm_breakpoint_at): Likewise.
9708 (arm_breakpoint_kinds): Likewise.
9709 (arm_breakpoint_kind_from_pc): Likewise.
9710 (arm_sw_breakpoint_from_kind): Likewise.
9711 (arm_breakpoint_kind_from_current_state): Likewise.
9712 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9713 (arm_sw_breakpoint_from_kind): Declare.
9714 (arm_breakpoint_kind_from_current_state): Declare.
9715 (arm_breakpoint_at): Declare.
9716 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9717 arm_sw_breakpoint_from_kind if process is 32-bit.
9718 (aarch64_breakpoint_kind_from_pc): New function.
9719 (aarch64_breakpoint_kind_from_current_state): New function.
9720 (the_low_target): Initialize fields breakpoint_kind_from_pc
9721 and breakpoint_kind_from_current_state.
9722 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9723 linux-aarch32-low.c.
9724 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9725 (arm_breakpoint, arm_breakpoint_len): Likewise.
9726 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9727 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9728 (arm_is_thumb_mode): Likewise.
9729 (arm_breakpoint_at): Likewise.
9730 (arm_breakpoint_kind_from_pc): Likewise.
9731 (arm_sw_breakpoint_from_kind): Likewise.
9732 (arm_breakpoint_kind_from_current_state): Likewise.
9733
9734 Revert:
9735 2015-08-04 Yao Qi <yao.qi@linaro.org>
9736
9737 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9738 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9739 * server.c (extended_protocol): Remove "static".
9740 * server.h (extended_protocol): Declare it.
9741
ece66d65
JS
97422015-12-04 Josh Stone <jistone@redhat.com>
9743
9744 * target.h (struct target_ops) <arch_setup>: Rename to ...
9745 (struct target_ops) <post_create_inferior>: ... this.
9746 (target_arch_setup): Rename to ...
9747 (target_post_create_inferior): ... this, calling post_create_inferior.
9748 * server.c (start_inferior): Update target_arch_setup calls to
9749 target_post_create_inferior.
9750 * linux-low.c (linux_low_ptrace_options): Forward declare.
9751 (linux_arch_setup): Update its comment for general use.
9752 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9753 (struct linux_target_ops): Use linux_post_create_inferior.
9754 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9755 to post_create_inferior.
9756 * nto-low.c (struct nto_target_ops): Likewise.
9757 * spu-low.c (struct spu_target_ops): Likewise.
9758 * win32-low.c (struct win32_target_ops): Likewise.
9759
e58c48b4
AT
97602015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9761
9762 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9763
fbec8956
AT
97642015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9765
9766 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9767 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9768 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9769 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9770 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9771 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9772 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9773 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9774 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9775 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9776 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9777 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9778
9b4c5f87
AT
97792015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9780
9781 * linux-low.c (linux_look_up_symbols): Don't call
9782 linux_supports_traceclone.
9783 * linux-low.h (thread_db_init): Remove use_events argument.
9784 * thread-db.c (thread_db_use_event): Remove global variable.
9785 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9786 (struct thread_db) <td_create_bp>: Remove field.
9787 (thread_db_create_event): Remove function.
9788 (thread_db_enable_reporting): Likewise.
9789 (find_one_thread): Don't check for thread_db_use_events.
9790 (attach_thread): Likewise.
9791 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9792 (try_thread_db_load_1): Don't check for thread_db_use_events.
9793 (thread_db_init): Remove use_events argument and thread events
9794 handling.
9795 (remove_thread_event_breakpoints): Remove function.
9796 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9797
7d00775e
AT
97982015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9799
9800 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9801 New function.
9802 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9803 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9804 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9805 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9806 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9807 Initialize.
9808 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9809 New function.
9810 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9811 * linux-low.c (can_hardware_single_step): Use
9812 supports_hardware_single_step.
9813 (can_software_single_step): New function.
9814 (start_step_over): Call can_software_single_step.
9815 (linux_supports_hardware_single_step): New function.
9816 (struct target_ops) <supports_software_single_step>: Initialize.
9817 * linux-low.h (struct linux_target_ops)
9818 <supports_hardware_single_step>: Initialize.
9819 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9820 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9821 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9822 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9823 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9824 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9825 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9826 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9827 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9828 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9829 Initialize.
9830 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9831 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9832 Initialize.
9833 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9834 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9835 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9836 New function.
9837 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9838 * target.h (struct target_ops): <supports_software_single_step>:
9839 New field.
9840 (target_supports_software_single_step): New macro.
9841
2d97cd35
AT
98422015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9843
9844 * linux-low.c (linux_wait_1): Fix pc advance condition.
9845 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9846 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9847
769ef81f
AT
98482015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9849
9850 * linux-arm-low.c (arm_is_thumb_mode): New function.
9851 (arm_breakpoint_at): Use arm_is_thumb_mode.
9852 (arm_breakpoint_kind_from_current_state): New function.
9853 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9854 Initialize.
9855 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9856 (linux_breakpoint_kind_from_current_state): New function.
9857 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9858 * linux-low.h (struct linux_target_ops)
9859 <breakpoint_kind_from_current_state>: New field.
9860 * target.h (struct target_ops): Likewise.
9861 (target_breakpoint_kind_from_current_state): New macro.
9862
1bebeeca
PA
98632015-11-30 Pedro Alves <palves@redhat.com>
9864
9865 * linux-low.c (linux_resume): Wake up the event loop before
9866 returning.
9867
a67a9fae
PA
98682015-11-30 Pedro Alves <palves@redhat.com>
9869
9870 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9871 check.
9872 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9873 to -1.
9874 * target.c (struct thread_search): New structure.
9875 (thread_search_callback): New function.
9876 (prev_general_thread): New global.
9877 (prepare_to_access_memory, done_accessing_memory): New functions.
9878 * target.h (prepare_to_access_memory, done_accessing_memory):
9879 Replace macros with function declarations.
9880
f2faf941
PA
98812015-11-30 Pedro Alves <palves@redhat.com>
9882
9883 PR 14618
9884 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9885 report TARGET_WAITKIND_NO_RESUMED.
9886 * remote-utils.c (prepare_resume_reply): Handle
9887 TARGET_WAITKIND_NO_RESUMED.
9888 * server.c (report_no_resumed): New global.
9889 (handle_query) <qSupported>: Handle "no-resumed+". Report
9890 "no-resumed+" support.
9891 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9892 return error if the client doesn't support no-resumed events.
9893 (push_stop_notification): New function.
9894 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9895 events if the client supports them.
9896
a681f9c9
PA
98972015-11-30 Pedro Alves <palves@redhat.com>
9898
9899 * linux-low.c (thread_still_has_status_pending_p): Don't check
9900 vCont;t here.
9901 (lwp_resumed): New function.
9902 (status_pending_p_callback): Return early if the LWP is not
9903 supposed to be resumed.
9904
65706a29
PA
99052015-11-30 Pedro Alves <palves@redhat.com>
9906
9907 * linux-low.c (handle_extended_wait): Assert that the LWP's
9908 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9909 thread create events, leave the new child's status pending.
9910 (linux_low_filter_event): If GDB wants to hear about thread exit
9911 events, leave the LWP marked dead and don't delete it.
9912 (linux_wait_for_event_filtered): Don't check for thread exit.
9913 (filter_exit_event): New function.
9914 (linux_wait_1): Use it, when returning an exit event.
9915 (linux_resume_one_lwp_throw): Assert that the LWP's
9916 waitstatus is TARGET_WAITKIND_IGNORE.
9917 * remote-utils.c (prepare_resume_reply): Handle
9918 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9919 * server.c (report_thread_events): New global.
9920 (handle_general_set): Handle QThreadEvents.
9921 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9922 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9923 TARGET_WAITKIND_THREAD_EXITED.
9924 * server.h (report_thread_events): Declare.
9925
56cf4bed
PA
99262015-11-30 Pedro Alves <palves@redhat.com>
9927
9928 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9929 the thread's last_resume_kind was resume_stop.
9930
500c1d85
PA
99312015-11-30 Pedro Alves <palves@redhat.com>
9932
9933 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9934 before returning.
9935
de979965
PA
99362015-11-30 Pedro Alves <palves@redhat.com>
9937
9938 * server.c (handle_v_requests): Handle vCtrlC.
9939
34c65914
PA
99402015-11-30 Pedro Alves <palves@redhat.com>
9941
9942 * gdbthread.h (find_any_thread_of_pid): Declare.
9943 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9944 functions.
9945 * server.c (handle_query): If current_thread is NULL, look for
9946 another thread of the selected process.
9947
79efa585 99482015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9949 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9950
9951 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9952 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9953 name in reply.
9954 * target.h (struct target_ops) <thread_name>: New field.
9955 (target_thread_name): New macro.
9956
80d82c19
JB
99572015-11-23 Joel Brobecker <brobecker@adacore.com>
9958
9959 * regcache.h (regcache_invalidate_pid): Add declaration.
9960 * regcache.c (regcache_invalidate_pid): New function, extracted
9961 from regcache_invalidate.
9962 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9963 Add trivial documentation comment.
9964 * lynx-low.c: Use regcache_invalidate_pid instead of
9965 regcache_invalidate.
9966
64da5dd5
JB
99672015-11-23 Joel Brobecker <brobecker@adacore.com>
9968
9969 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9970 and Elf64_auxv_t if the target is Android.
9971
37ce4055
DE
99722015-11-22 Doug Evans <xdje42@gmail.com>
9973
9974 * target.h: #include <sys/types.h>.
9975
06e03fff
PA
99762015-11-19 Pedro Alves <palves@redhat.com>
9977
9978 * linux-low.c (linux_process_qsupported): Change prototype.
9979 Adjust.
9980 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9981 Change prototype.
9982 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9983 and adjust to loop over all features.
9984 * server.c (handle_query) <qSupported>: Adjust to call
9985 target_process_qsupported once, passing it a vector of unprocessed
9986 features.
9987 * target.h (struct target_ops) <process_qsupported>: Change
9988 prototype.
9989 (target_process_qsupported): Adjust.
9990
9a084706
PA
99912015-11-19 Pedro Alves <palves@redhat.com>
9992
9993 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9994 mode.
9995 * configure: Regenerate.
9996
dad44a1f
PA
99972015-11-19 Pedro Alves <palves@redhat.com>
9998
9999 * configure: Regenerate.
10000
231c0592
YQ
100012015-11-19 Yao Qi <yao.qi@linaro.org>
10002
10003 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10004 type to uint32_t.
10005
6c1c9a8b
YQ
100062015-11-19 Yao Qi <yao.qi@linaro.org>
10007
10008 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10009 (struct aarch64_operand): Move enum out.
10010
9caa3311
YQ
100112015-11-19 Yao Qi <yao.qi@linaro.org>
10012
10013 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10014 struct user_fpsimd_state *.
10015 (aarch64_store_fpregset): Likewise.
10016
6a69a054
YQ
100172015-11-19 Yao Qi <yao.qi@linaro.org>
10018
10019 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10020 struct user_pt_regs *.
10021 (aarch64_store_gregset): Likewise.
10022
1798301e
PA
100232015-11-18 Pedro Alves <palves@redhat.com>
10024
10025 * Makefile.in (all_object_files): Add $IPA_OBJS.
10026
ce7715e2
PA
100272015-11-17 Pedro Alves <palves@redhat.com>
10028
10029 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10030 GDB_SIGNAL_0 and gdb_signal_to_string.
10031
c0879059
PA
100322015-11-17 Pedro Alves <palves@redhat.com>
10033
10034 * win32-low.c (handle_output_debug_string): Remove parameter.
10035 (win32_kill): Remove our_status local and adjust call to
10036 handle_output_debug_string.
10037 (get_child_debug_event): Adjust call to
10038 handle_output_debug_string.
10039
1996e237
SM
100402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10041
10042 * linux-mips-low.c (mips_fill_gregset): Add cast.
10043 (mips_store_gregset): Likewise.
10044 (mips_fill_fpregset): Likewise.
10045 (mips_store_fpregset): Likewise.
10046
cbec665b
SM
100472015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10048
10049 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10050 priv.
10051
eb3e3c67
SM
100522015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10053
10054 * linux-mips-low.c (mips_linux_new_thread): Change type of
10055 watch_type to enum target_hw_bp_type.
10056
171de4b8
SM
100572015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10058
10059 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10060 Change return type to arm_hwbp_type.
10061
04248ead
SM
100622015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10063
10064 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10065 (arm_store_gregset): Likewise.
10066 * linux-arm-low.c (arm_get_hwcap): Likewise.
10067 (arm_read_description): Likewise.
10068
04b3479c
SM
100692015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10070
10071 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10072
2bc84e8a
SM
100732015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10074
10075 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10076 (ppc_fill_vsxregset): Likewise.
10077 (ppc_store_vsxregset): Likewise.
10078 (ppc_fill_vrregset): Likewise.
10079 (ppc_store_vrregset): Likewise.
10080 (ppc_fill_evrregset): Likewise.
10081 (ppc_store_evrregset): Likewise.
10082
e6c5bb05
SM
100832015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10084
10085 * linux-ppc-low.c (ppc_usrregs_info): Remove
10086 forward-declaration.
10087 (ppc_arch_setup): Move lower in file.
10088
7ea45d72
SM
100892015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10090
10091 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10092 (ps_pdwrite): Likewise.
10093
69291610
HW
100942015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10095
10096 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10097 to after assert checks.
10098
b42945fd
SM
100992015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10100
10101 * proc-service.c (ps_pdread): Add/adjust casts.
10102 (ps_pdwrite): Add/adjust casts.
10103
d6f85c84
SM
101042015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10105
10106 * server.c (handle_search_memory_1): Cast return value of
10107 memmem.
10108
f98cd059
SM
101092015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10110
10111 * server.c (write_qxfer_response): Change type of data to
10112 gdb_byte *.
10113
d2412fa5
PA
101142015-10-29 Pedro Alves <palves@redhat.com>
10115
10116 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10117
c17414a2
PA
101182015-10-29 Pedro Alves <palves@redhat.com>
10119
10120 * tracepoint.c (clear_installed_tracepoints): Add casts.
10121
e053fbc4
PA
101222015-10-29 Pedro Alves <palves@redhat.com>
10123
10124 * server.c (handle_v_cont, process_serial_event): Add enum
10125 gdb_signal casts to signal parsing code.
10126
add67df8
PA
101272015-10-29 Pedro Alves <palves@redhat.com>
10128
10129 * linux-low.h (NULL_REGSET): Define.
10130 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10131 * linux-arm-low.c (arm_regsets): Likewise.
10132 * linux-crisv32-low.c (cris_regsets): Likewise.
10133 * linux-m68k-low.c (m68k_regsets): Likewise.
10134 * linux-mips-low.c (mips_regsets): Likewise.
10135 * linux-nios2-low.c (nios2_regsets): Likewise.
10136 * linux-ppc-low.c (ppc_regsets): Likewise.
10137 * linux-s390-low.c (s390_regsets): Likewise.
10138 * linux-sh-low.c (sh_regsets): Likewise.
10139 * linux-sparc-low.c (sparc_regsets): Likewise.
10140 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10141 * linux-tile-low.c (tile_regsets): Likewise.
10142 * linux-x86-low.c (x86_regsets): Likewise.
10143 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10144
50bc912a
PA
101452015-10-29 Pedro Alves <palves@redhat.com>
10146
10147 * linux-low.h (NULL_REGSET): Define.
10148 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10149 * linux-arm-low.c (arm_regsets): Likewise.
10150 * linux-crisv32-low.c (cris_regsets): Likewise.
10151 * linux-m68k-low.c (m68k_regsets): Likewise.
10152 * linux-mips-low.c (mips_regsets): Likewise.
10153 * linux-nios2-low.c (nios2_regsets): Likewise.
10154 * linux-ppc-low.c (ppc_regsets): Likewise.
10155 * linux-s390-low.c (s390_regsets): Likewise.
10156 * linux-sh-low.c (sh_regsets): Likewise.
10157 * linux-sparc-low.c (sparc_regsets): Likewise.
10158 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10159 * linux-tile-low.c (tile_regsets): Likewise.
10160 * linux-x86-low.c (x86_regsets): Likewise.
10161 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10162
682b2546
DE
101632015-10-26 Doug Evans <dje@google.com>
10164
10165 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10166
963843d4
DE
101672015-10-26 Doug Evans <dje@google.com>
10168
10169 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10170
d41401ac
DE
101712015-10-26 Doug Evans <dje@google.com>
10172
10173 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10174 for debug_printf.
10175 (attach_thread, find_new_threads_callback): Ditto.
10176
3db28855
AT
101772015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10178
10179 * mem-break.h (set_breakpoint_data): Remove.
10180
fb78e89c
AT
101812015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10182
10183 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10184 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10185 (initialize_low): Remove set_breakpoint_data call.
10186 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10187 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10188 (initialize_low): Remove set_breakpoint_data call.
10189 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10190 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10191 (initialize_low): Remove set_breakpoint_data call.
10192
2e6ee069
AT
101932015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10194
10195 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10196 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10197 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10198 * target.h (target_breakpoint_kind_from_pc): New macro.
10199
1652a986
AT
102002015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10201
10202 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10203 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10204 the default breakpoint kind.
10205
abeead09
AT
102062015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10207
10208 * linux-arm-low.c (arm_supports_z_point_type): Add software
10209 breakpoint support.
10210
b0b4b501
AT
102112015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10212
10213 * linux-arm-low.c: Refactor breakpoint definitions.
10214 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10215 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10216
8689682c
AT
102172015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10218
10219 * Makefile.in: Add arm.c/o.
10220 * configure.srv: Likewise.
10221 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10222 (arm_breakpoint_kind_from_pc): New function.
10223 (arm_sw_breakpoint_from_kind): Return proper kind.
10224 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10225
27165294
AT
102262015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10227
10228 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10229 removal.
10230 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10231 (struct raw_breakpoint) <size>: Remove.
10232 (struct raw_breakpoint) <kind>: Add.
10233 (bp_size): New function.
10234 (bp_opcode): Likewise.
10235 (find_raw_breakpoint_at): Adjust for kind.
10236 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10237 (remove_memory_breakpoint): Adjust for kind call bp_size.
10238 (set_raw_breakpoint_at): Adjust for kind.
10239 (set_breakpoint): Likewise.
10240 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10241 (delete_raw_breakpoint): Adjust for kind.
10242 (delete_breakpoint): Likewise.
10243 (find_gdb_breakpoint): Likewise.
10244 (set_gdb_breakpoint_1): Likewise.
10245 (set_gdb_breakpoint): Likewise.
10246 (delete_gdb_breakpoint_1): Likewise.
10247 (delete_gdb_breakpoint): Likewise.
10248 (uninsert_raw_breakpoint): Likewise.
10249 (reinsert_raw_breakpoint): Likewise.
10250 (set_breakpoint_data): Remove.
10251 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10252 (check_mem_read): Adjust for kind call bp_size.
10253 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10254 (clone_one_breakpoint): Adjust for kind.
10255 * mem-break.h (set_gdb_breakpoint): Likewise.
10256 (delete_gdb_breakpoint): Likewise.
10257 * server.c (process_serial_event): Likewise.
10258
dd373349
AT
102592015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10260
10261 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10262 (struct linux_target_ops) <breakpoint>: Remove.
10263 (struct linux_target_ops) <breakpoint_len>: Remove.
10264 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10265 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10266 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10267 (arm_sw_breakpoint_from_kind): New function.
10268 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10269 (struct linux_target_ops) <breakpoint>: Remove.
10270 (struct linux_target_ops) <breakpoint_len>: Remove.
10271 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10272 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10273 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10274 (struct linux_target_ops) <breakpoint>: Remove.
10275 (struct linux_target_ops) <breakpoint_len>: Remove.
10276 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10277 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10278 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10279 (struct linux_target_ops) <breakpoint>: Remove.
10280 (struct linux_target_ops) <breakpoint_len>: Remove.
10281 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10282 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10283 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10284 and sw_breakpoint_from_kind to increment the pc.
10285 (linux_breakpoint_kind_from_pc): New function.
10286 (linux_sw_breakpoint_from_kind): New function.
10287 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10288 (initialize_low): Call breakpoint_kind_from_pc and
10289 sw_breakpoint_from_kind to replace breakpoint_data/len.
10290 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10291 New field.
10292 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10293 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10294 (struct linux_target_ops) <breakpoint>: Remove.
10295 (struct linux_target_ops) <breakpoint_len>: Remove.
10296 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10297 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10298 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10299 (struct linux_target_ops) <breakpoint>: Remove.
10300 (struct linux_target_ops) <breakpoint_len>: Remove.
10301 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10302 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10303 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10304 (struct linux_target_ops) <breakpoint>: Remove.
10305 (struct linux_target_ops) <breakpoint_len>: Remove.
10306 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10307 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10308 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10309 (struct linux_target_ops) <breakpoint>: Remove.
10310 (struct linux_target_ops) <breakpoint_len>: Remove.
10311 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10312 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10313 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10314 (struct linux_target_ops) <breakpoint>: Remove.
10315 (struct linux_target_ops) <breakpoint_len>: Remove.
10316 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10317 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10318 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10319 (struct linux_target_ops) <breakpoint>: Remove.
10320 (struct linux_target_ops) <breakpoint_len>: Remove.
10321 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10322 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10323 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10324 (struct linux_target_ops) <breakpoint>: Remove.
10325 (struct linux_target_ops) <breakpoint_len>: Remove.
10326 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10327 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10328 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10329 (struct linux_target_ops) <breakpoint>: Remove.
10330 (struct linux_target_ops) <breakpoint_len>: Remove.
10331 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10332 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10333 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10334 (struct linux_target_ops) <breakpoint>: Remove.
10335 (struct linux_target_ops) <breakpoint_len>: Remove.
10336 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10337 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10338 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10339 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10340 (struct linux_target_ops) <breakpoint>: Remove.
10341 (struct linux_target_ops) <breakpoint_len>: Remove.
10342 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10343 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10344 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10345 (struct linux_target_ops) <breakpoint>: Remove.
10346 (struct linux_target_ops) <breakpoint_len>: Remove.
10347 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10348 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10349
4cd98a19
AT
103502015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10351
10352 * linux-cris-low.c (cris_get_pc): Remove void arg.
10353
774ee6d2
AR
103542015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10355
10356 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10357 variable name.
10358
833dcd29
AR
103592015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10360
10361 * inferiors.c (thread_pid_matches_callback): New function.
10362 (find_thread_process): New function.
10363 (remove_thread): Reset current_thread.
10364 (remove_process): Assert threads have been removed first.
10365
8d689ee5
YQ
103662015-10-15 Yao Qi <yao.qi@linaro.org>
10367
10368 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10369 if it is 3.
10370 (aarch64_remove_point): Likewise.
10371 * regcache.c (regcache_register_size): New function.
10372
1c2e1515
YQ
103732015-10-12 Yao Qi <yao.qi@linaro.org>
10374
10375 * linux-aarch64-low.c: Update all callers as emit_load_store
10376 is renamed to aarch64_emit_load_store.
10377
e1c587c3
YQ
103782015-10-12 Yao Qi <yao.qi@linaro.org>
10379
10380 * linux-aarch64-low.c: Update all callers of function renaming
10381 from emit_insn to aarch64_emit_insn.
10382
b6542f81
YQ
103832015-10-12 Yao Qi <yao.qi@linaro.org>
10384
10385 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10386 arch/aarch64-insn.h.
10387 (struct aarch64_memory_operand): Likewise.
10388 (ENCODE): Likewise.
10389 (emit_insn): Move to arch/aarch64-insn.c.
10390 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10391 (emit_load_store): Move to arch/aarch64-insn.c.
10392 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10393 (can_encode_int32): Remove.
10394
246994ce
YQ
103952015-10-12 Yao Qi <yao.qi@linaro.org>
10396
10397 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10398 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10399 (aarch64_relocate_instruction): Likewise.
10400 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10401 (struct aarch64_insn_visitor): Likewise.
10402
0badd99f
YQ
104032015-10-12 Yao Qi <yao.qi@linaro.org>
10404
10405 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10406 (struct aarch64_insn_visitor): New.
10407 (struct aarch64_insn_relocation_data): New.
10408 (aarch64_ftrace_insn_reloc_b): New function.
10409 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10410 (aarch64_ftrace_insn_reloc_cb): Likewise.
10411 (aarch64_ftrace_insn_reloc_tb): Likewise.
10412 (aarch64_ftrace_insn_reloc_adr): Likewise.
10413 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10414 (aarch64_ftrace_insn_reloc_others): Likewise.
10415 (visitor): New.
10416 (aarch64_relocate_instruction): Use visitor.
10417
dfaffe9d
YQ
104182015-10-12 Yao Qi <yao.qi@linaro.org>
10419
10420 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10421 int. Add argument buf.
10422 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10423 aarch64_relocate_instruction.
10424
70b439f0
YQ
104252015-10-12 Yao Qi <yao.qi@linaro.org>
10426
10427 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10428 argument insn. Remove local variable insn. Don't call
10429 target_read_uint32.
10430 (aarch64_install_fast_tracepoint_jump_pad): Call
10431 target_read_uint32.
10432
7781c06f
YQ
104332015-09-30 Yao Qi <yao.qi@linaro.org>
10434
10435 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10436 (emit_load_store_pair): Likewise.
10437
9a3c8263
SM
104382015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10439
10440 * dll.c (match_dll): Add cast(s).
10441 (unloaded_dll): Likewise.
10442 * linux-low.c (second_thread_of_pid_p): Likewise.
10443 (delete_lwp_callback): Likewise.
10444 (count_events_callback): Likewise.
10445 (select_event_lwp_callback): Likewise.
10446 (linux_set_resume_request): Likewise.
10447 * server.c (accumulate_file_name_length): Likewise.
10448 (emit_dll_description): Likewise.
10449 (handle_qxfer_threads_worker): Likewise.
10450 (visit_actioned_threads): Likewise.
10451 * thread-db.c (any_thread_of): Likewise.
10452 * tracepoint.c (same_process_p): Likewise.
10453 (match_blocktype): Likewise.
10454 (build_traceframe_info_xml): Likewise.
10455
224c3ddb
SM
104562015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10457
10458 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10459 assignment.
10460 (gdb_unparse_agent_expr): Likewise.
10461 * hostio.c (require_data): Likewise.
10462 (handle_pread): Likewise.
10463 * linux-low.c (disable_regset): Likewise.
10464 (fetch_register): Likewise.
10465 (store_register): Likewise.
10466 (get_dynamic): Likewise.
10467 (linux_qxfer_libraries_svr4): Likewise.
10468 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10469 (set_fast_tracepoint_jump): Likewise.
10470 (uninsert_fast_tracepoint_jumps_at): Likewise.
10471 (reinsert_fast_tracepoint_jumps_at): Likewise.
10472 (validate_inserted_breakpoint): Likewise.
10473 (clone_agent_expr): Likewise.
10474 * regcache.c (init_register_cache): Likewise.
10475 * remote-utils.c (putpkt_binary_1): Likewise.
10476 (decode_M_packet): Likewise.
10477 (decode_X_packet): Likewise.
10478 (look_up_one_symbol): Likewise.
10479 (relocate_instruction): Likewise.
10480 (monitor_output): Likewise.
10481 * server.c (handle_search_memory): Likewise.
10482 (handle_qxfer_exec_file): Likewise.
10483 (handle_qxfer_libraries): Likewise.
10484 (handle_qxfer): Likewise.
10485 (handle_query): Likewise.
10486 (handle_v_cont): Likewise.
10487 (handle_v_run): Likewise.
10488 (captured_main): Likewise.
10489 * target.c (write_inferior_memory): Likewise.
10490 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10491 * tracepoint.c (init_trace_buffer): Likewise.
10492 (add_tracepoint_action): Likewise.
10493 (add_traceframe): Likewise.
10494 (add_traceframe_block): Likewise.
10495 (cmd_qtdpsrc): Likewise.
10496 (cmd_qtdv): Likewise.
10497 (cmd_qtstatus): Likewise.
10498 (response_source): Likewise.
10499 (response_tsv): Likewise.
10500 (cmd_qtnotes): Likewise.
10501 (gdb_collect): Likewise.
10502 (initialize_tracepoint): Likewise.
10503
afbe19f8
PL
105042015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10505
10506 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10507 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10508 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10509 <NOP>: New.
10510 (enum aarch64_condition_codes): New enum.
10511 (w0): New static global.
10512 (fp): Likewise.
10513 (lr): Likewise.
10514 (struct aarch64_memory_operand) <type>: New
10515 MEMORY_OPERAND_POSTINDEX type.
10516 (postindex_memory_operand): New helper function.
10517 (emit_ret): New function.
10518 (emit_load_store_pair): New function, factored out of emit_stp
10519 with support for MEMORY_OPERAND_POSTINDEX.
10520 (emit_stp): Rewrite using emit_load_store_pair.
10521 (emit_ldp): New function.
10522 (emit_load_store): Likewise.
10523 (emit_ldr): Mention post-index instruction in comment.
10524 (emit_ldrh): New function.
10525 (emit_ldrb): New function.
10526 (emit_ldrsw): Mention post-index instruction in comment.
10527 (emit_str): Likewise.
10528 (emit_subs): New function.
10529 (emit_cmp): Likewise.
10530 (emit_and): Likewise.
10531 (emit_orr): Likewise.
10532 (emit_orn): Likewise.
10533 (emit_eor): Likewise.
10534 (emit_mvn): Likewise.
10535 (emit_lslv): Likewise.
10536 (emit_lsrv): Likewise.
10537 (emit_asrv): Likewise.
10538 (emit_mul): Likewise.
10539 (emit_sbfm): Likewise.
10540 (emit_sbfx): Likewise.
10541 (emit_ubfm): Likewise.
10542 (emit_ubfx): Likewise.
10543 (emit_csinc): Likewise.
10544 (emit_cset): Likewise.
10545 (emit_nop): Likewise.
10546 (emit_ops_insns): New helper function.
10547 (emit_pop): Likewise.
10548 (emit_push): Likewise.
10549 (aarch64_emit_prologue): New function.
10550 (aarch64_emit_epilogue): Likewise.
10551 (aarch64_emit_add): Likewise.
10552 (aarch64_emit_sub): Likewise.
10553 (aarch64_emit_mul): Likewise.
10554 (aarch64_emit_lsh): Likewise.
10555 (aarch64_emit_rsh_signed): Likewise.
10556 (aarch64_emit_rsh_unsigned): Likewise.
10557 (aarch64_emit_ext): Likewise.
10558 (aarch64_emit_log_not): Likewise.
10559 (aarch64_emit_bit_and): Likewise.
10560 (aarch64_emit_bit_or): Likewise.
10561 (aarch64_emit_bit_xor): Likewise.
10562 (aarch64_emit_bit_not): Likewise.
10563 (aarch64_emit_equal): Likewise.
10564 (aarch64_emit_less_signed): Likewise.
10565 (aarch64_emit_less_unsigned): Likewise.
10566 (aarch64_emit_ref): Likewise.
10567 (aarch64_emit_if_goto): Likewise.
10568 (aarch64_emit_goto): Likewise.
10569 (aarch64_write_goto_address): Likewise.
10570 (aarch64_emit_const): Likewise.
10571 (aarch64_emit_call): Likewise.
10572 (aarch64_emit_reg): Likewise.
10573 (aarch64_emit_pop): Likewise.
10574 (aarch64_emit_stack_flush): Likewise.
10575 (aarch64_emit_zero_ext): Likewise.
10576 (aarch64_emit_swap): Likewise.
10577 (aarch64_emit_stack_adjust): Likewise.
10578 (aarch64_emit_int_call_1): Likewise.
10579 (aarch64_emit_void_call_2): Likewise.
10580 (aarch64_emit_eq_goto): Likewise.
10581 (aarch64_emit_ne_goto): Likewise.
10582 (aarch64_emit_lt_goto): Likewise.
10583 (aarch64_emit_le_goto): Likewise.
10584 (aarch64_emit_gt_goto): Likewise.
10585 (aarch64_emit_ge_got): Likewise.
10586 (aarch64_emit_ops_impl): New static global variable.
10587 (aarch64_emit_ops): New target function, return
10588 &aarch64_emit_ops_impl.
10589 (struct linux_target_ops): Install it.
10590
bb903df0
PL
105912015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10592
10593 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10594 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10595 aarch64-ipa.o.
10596 * linux-aarch64-ipa.c: New file.
10597 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10598 and endian.h.
10599 (aarch64_get_thread_area): New target method.
10600 (extract_signed_bitfield): New helper function.
10601 (aarch64_decode_ldr_literal): New function.
10602 (enum aarch64_opcodes): New enum.
10603 (struct aarch64_register): New struct.
10604 (struct aarch64_operand): New struct.
10605 (x0): New static global.
10606 (x1): Likewise.
10607 (x2): Likewise.
10608 (x3): Likewise.
10609 (x4): Likewise.
10610 (w2): Likewise.
10611 (ip0): Likewise.
10612 (sp): Likewise.
10613 (xzr): Likewise.
10614 (aarch64_register): New helper function.
10615 (register_operand): Likewise.
10616 (immediate_operand): Likewise.
10617 (struct aarch64_memory_operand): New struct.
10618 (offset_memory_operand): New helper function.
10619 (preindex_memory_operand): Likewise.
10620 (enum aarch64_system_control_registers): New enum.
10621 (ENCODE): New macro.
10622 (emit_insn): New helper function.
10623 (emit_b): New function.
10624 (emit_bcond): Likewise.
10625 (emit_cb): Likewise.
10626 (emit_tb): Likewise.
10627 (emit_blr): Likewise.
10628 (emit_stp): Likewise.
10629 (emit_ldp_q_offset): Likewise.
10630 (emit_stp_q_offset): Likewise.
10631 (emit_load_store): Likewise.
10632 (emit_ldr): Likewise.
10633 (emit_ldrsw): Likewise.
10634 (emit_str): Likewise.
10635 (emit_ldaxr): Likewise.
10636 (emit_stxr): Likewise.
10637 (emit_stlr): Likewise.
10638 (emit_data_processing_reg): Likewise.
10639 (emit_data_processing): Likewise.
10640 (emit_add): Likewise.
10641 (emit_sub): Likewise.
10642 (emit_mov): Likewise.
10643 (emit_movk): Likewise.
10644 (emit_mov_addr): Likewise.
10645 (emit_mrs): Likewise.
10646 (emit_msr): Likewise.
10647 (emit_sevl): Likewise.
10648 (emit_wfe): Likewise.
10649 (append_insns): Likewise.
10650 (can_encode_int32_in): New helper function.
10651 (aarch64_relocate_instruction): New function.
10652 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10653 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10654 (struct linux_target_ops): Install aarch64_get_thread_area,
10655 aarch64_install_fast_tracepoint_jump_pad and
10656 aarch64_get_min_fast_tracepoint_insn_len.
10657
787749ea
PL
106582015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10659
10660 * Makefile.in (aarch64-insn.o): New rule.
10661 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10662
9812b2e6
YQ
106632015-09-21 Yao Qi <yao.qi@linaro.org>
10664
10665 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10666
18fe412b
YQ
106672015-09-21 Yao Qi <yao.qi@linaro.org>
10668
10669 * tracepoint.c (max_jump_pad_size): Remove.
10670
a0cc84cd
YQ
106712015-09-18 Yao Qi <yao.qi@linaro.org>
10672
10673 * linux-aarch64-low.c: Don't include sys/uio.h.
10674 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10675
d78908cf
WW
106762015-09-16 Wei-cheng Wang <cole945@gmail.com>
10677
10678 * tracepoint.c (eval_result_type): Change prototype.
10679 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10680
d57e0d50
PA
106812015-09-15 Pedro Alves <palves@redhat.com>
10682
10683 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10684 Check whether to report exec events instead of checking whether
10685 multiprocess is enabled.
10686
5a676acc
PA
106872015-09-15 Pedro Alves <palves@redhat.com>
10688
10689 PR remote/18965
10690 * remote-utils.c (prepare_resume_reply): Merge
10691 TARGET_WAITKIND_VFORK_DONE switch case with the
10692 TARGET_WAITKIND_FORKED case.
10693
7c5d0fad
YQ
106942015-09-15 Yao Qi <yao.qi@linaro.org>
10695
10696 * server.c (handle_query): Check string comparison using
10697 "else if" instead of "if".
10698
750ce8d1
YQ
106992015-09-15 Yao Qi <yao.qi@linaro.org>
10700
10701 * server.c (vCont_supported): New global variable.
10702 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10703 matches. Append ";vContSupported+" to own_buf.
10704 (handle_v_requests): Append ";s;S" to own_buf if target supports
10705 hardware single step or vCont_supported is false.
10706 (capture_main): Set vCont_supported to zero.
10707
70b90b91
YQ
107082015-09-15 Yao Qi <yao.qi@linaro.org>
10709
10710 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10711 it to ...
10712 (linux_supports_hardware_single_step): ... New function.
10713 (linux_target_ops): Update.
10714 * lynx-low.c (lynx_target_ops): Set field
10715 supports_hardware_single_step to target_can_do_hardware_single_step.
10716 * nto-low.c (nto_target_ops): Likewise.
10717 * spu-low.c (spu_target_ops): Likewise.
10718 * win32-low.c (win32_target_ops): Likewise.
10719 * target.c (target_can_do_hardware_single_step): New function.
10720 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10721 Remove. <supports_hardware_single_step>: New field.
10722 (target_supports_conditional_breakpoints): Remove.
10723 (target_supports_hardware_single_step): New macro.
10724 (target_can_do_hardware_single_step): Declare.
10725 * server.c (handle_query): Use target_supports_hardware_single_step
10726 instead of target_supports_conditional_breakpoints.
10727
ade90bde
YQ
107282015-09-15 Yao Qi <yao.qi@linaro.org>
10729
10730 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10731 function.
10732 (struct linux_target_ops the_low_target): Install
10733 aarch64_linux_siginfo_fixup.
10734
94585166
DB
107352015-09-11 Don Breazeal <donb@codesourcery.com>
10736 Luis Machado <lgustavo@codesourcery.com>
10737
10738 * linux-low.c (linux_mourn): Static declaration.
10739 (linux_arch_setup): Move in front of
10740 handle_extended_wait.
10741 (linux_arch_setup_thread): New function.
10742 (handle_extended_wait): Handle exec events. Call
10743 linux_arch_setup_thread. Make event_lwp argument a
10744 pointer-to-a-pointer.
10745 (check_zombie_leaders): Do not check stopped threads.
10746 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10747 (linux_low_filter_event): Add lwp and thread for exec'ing
10748 non-leader thread if leader thread has been deleted.
10749 Refactor code into linux_arch_setup_thread and call it.
10750 Pass child lwp pointer by reference to handle_extended_wait.
10751 (linux_wait_for_event_filtered): Update comment.
10752 (linux_wait_1): Prevent clobbering exec event status.
10753 (linux_supports_exec_events): New function.
10754 (linux_target_ops) <supports_exec_events>: Initialize new member.
10755 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10756 new member.
10757 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10758 * server.c (report_exec_events): New global variable.
10759 (handle_query): Handle qSupported query for exec-events feature.
10760 (captured_main): Initialize report_exec_events.
10761 * server.h (report_exec_events): Declare new global variable.
10762 * target.h (struct target_ops) <supports_exec_events>: New
10763 member.
10764 (target_supports_exec_events): New macro.
10765 * win32-low.c (win32_target_ops) <supports_exec_events>:
10766 Initialize new member.
10767
0568462b
MM
107682015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10769
10770 * linux-low.c (linux_low_enable_btrace): Remove.
10771 (linux_target_ops): Replace linux_low_enable_btrace with
10772 linux_enable_btrace.
10773
39edd165
YQ
107742015-09-03 Yao Qi <yao.qi@linaro.org>
10775
10776 * linux-aarch64-low.c (aarch64_insert_point): Call
10777 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10778 returns true.
10779
1db33b5a
UW
107802015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10781
10782 * linux-low.c (check_stopped_by_breakpoint): Use
10783 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10784
ab290430
PA
107852015-08-27 Pedro Alves <palves@redhat.com>
10786
10787 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10788
8d749320
SM
107892015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10790
6711b7f8
SM
10791 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10792 the XNEW-family equivalent.
8d749320
SM
10793 (compile_bytecodes): Likewise.
10794 * dll.c (loaded_dll): Likewise.
10795 * event-loop.c (append_callback_event): Likewise.
10796 (create_file_handler): Likewise.
10797 (create_file_event): Likewise.
10798 * hostio.c (handle_open): Likewise.
10799 * inferiors.c (add_thread): Likewise.
10800 (add_process): Likewise.
10801 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10802 * linux-arm-low.c (arm_new_process): Likewise.
10803 (arm_new_thread): Likewise.
10804 * linux-low.c (add_to_pid_list): Likewise.
10805 (linux_add_process): Likewise.
10806 (handle_extended_wait): Likewise.
10807 (add_lwp): Likewise.
10808 (enqueue_one_deferred_signal): Likewise.
10809 (enqueue_pending_signal): Likewise.
10810 (linux_resume_one_lwp_throw): Likewise.
10811 (linux_resume_one_thread): Likewise.
10812 (linux_read_memory): Likewise.
10813 (linux_write_memory): Likewise.
10814 * linux-mips-low.c (mips_linux_new_process): Likewise.
10815 (mips_linux_new_thread): Likewise.
10816 (mips_add_watchpoint): Likewise.
10817 * linux-x86-low.c (initialize_low_arch): Likewise.
10818 * lynx-low.c (lynx_add_process): Likewise.
10819 * mem-break.c (set_raw_breakpoint_at): Likewise.
10820 (set_breakpoint): Likewise.
10821 (add_condition_to_breakpoint): Likewise.
10822 (add_commands_to_breakpoint): Likewise.
10823 (clone_agent_expr): Likewise.
10824 (clone_one_breakpoint): Likewise.
10825 * regcache.c (new_register_cache): Likewise.
10826 * remote-utils.c (look_up_one_symbol): Likewise.
10827 * server.c (queue_stop_reply): Likewise.
10828 (start_inferior): Likewise.
10829 (queue_stop_reply_callback): Likewise.
10830 (handle_target_event): Likewise.
10831 * spu-low.c (fetch_ppc_memory): Likewise.
10832 (store_ppc_memory): Likewise.
10833 * target.c (set_target_ops): Likewise.
10834 * thread-db.c (thread_db_load_search): Likewise.
10835 (try_thread_db_load_1): Likewise.
10836 * tracepoint.c (add_tracepoint): Likewise.
10837 (add_tracepoint_action): Likewise.
10838 (create_trace_state_variable): Likewise.
10839 (cmd_qtdpsrc): Likewise.
10840 (cmd_qtro): Likewise.
10841 (add_while_stepping_state): Likewise.
10842 * win32-low.c (child_add_thread): Likewise.
10843 (get_image_name): Likewise.
10844
ed8b7b42
YQ
108452015-08-25 Yao Qi <yao.qi@linaro.org>
10846
10847 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10848
db3cb7cb
YQ
108492015-08-25 Yao Qi <yao.qi@linaro.org>
10850
10851 * Makefile.in (aarch64-linux.o): New rule.
10852 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10853 srv_tgtobj.
10854 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10855 (aarch64_init_debug_reg_state): Make it extern.
10856 (aarch64_linux_prepare_to_resume): Remove.
10857
f6011a1c
YQ
108582015-08-25 Yao Qi <yao.qi@linaro.org>
10859
10860 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10861 lwp_arch_private_info and ptid_of_lwp.
10862
88e2cf7e
YQ
108632015-08-25 Yao Qi <yao.qi@linaro.org>
10864
10865 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10866 Find proc_info by find_process_pid. All callers updated.
10867
5e35436e
YQ
108682015-08-25 Yao Qi <yao.qi@linaro.org>
10869
10870 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10871 Remove.
10872 (debug_reg_change_callback): Remove.
10873 (aarch64_notify_debug_reg_change): Remove.
10874
4a8a7965
YQ
108752015-08-25 Yao Qi <yao.qi@linaro.org>
10876
10877 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10878 Call current_lwp_ptid.
10879
32a271ee
YQ
108802015-08-25 Yao Qi <yao.qi@linaro.org>
10881
10882 * linux-aarch64-low.c (debug_reg_change_callback): Use
10883 debug_printf.
10884
0d51c8d7
YQ
108852015-08-25 Yao Qi <yao.qi@linaro.org>
10886
10887 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10888
31a43dd5
YQ
108892015-08-25 Yao Qi <yao.qi@linaro.org>
10890
10891 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10892
8ee52567
YQ
108932015-08-25 Yao Qi <yao.qi@linaro.org>
10894
10895 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10896 the code.
10897
ff3f0f45
YQ
108982015-08-25 Yao Qi <yao.qi@linaro.org>
10899
10900 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10901 Remove.
10902 (debug_reg_change_callback): Remove argument entry and add argument
10903 lwp. Remove local variable thread. Don't print thread id in the
10904 debugging output. Don't check whether pid of thread equals to pid.
10905 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10906 iterate_over_lwps instead find_inferior.
10907
3d40fbb5
PA
109082015-08-24 Pedro Alves <palves@redhat.com>
10909
10910 * inferiors.c (get_first_process): New function.
10911 * inferiors.h (get_first_process): New declaration.
10912 * remote-utils.c (read_ptid): Default to the first process in the
10913 list, instead of to the current thread's process.
10914
438e1e42
PA
109152015-08-24 Pedro Alves <palves@redhat.com>
10916
10917 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10918 * event-loop.c: Likewise.
10919 * remote-utils.c: Likewise.
10920 * tracepoint.c: Likewise.
10921
a8c6d4fc
PA
109222015-08-24 Pedro Alves <palves@redhat.com>
10923
10924 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10925 ptid_get_lwp.
10926
99b0bb12
PA
109272015-08-21 Pedro Alves <palves@redhat.com>
10928
10929 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10930 instead of literal 1.
10931
f8904751
PA
109322015-08-21 Pedro Alves <palves@redhat.com>
10933
10934 * tdesc.c (default_description): Explicitly zero-initialize.
10935
465a859e
PA
109362015-08-21 Pedro Alves <palves@redhat.com>
10937
10938 PR gdb/18749
10939 * inferiors.c (remove_thread): Discard any pending stop reply for
10940 this thread.
10941 * server.c (remove_all_on_match_pid): Rename to ...
10942 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10943 instead of a pid.
10944 (discard_queued_stop_replies): Change parameter to a ptid. Now
10945 extern.
10946 (handle_v_kill, kill_inferior_callback, captured_main)
10947 (process_serial_event): Adjust.
10948 * server.h (discard_queued_stop_replies): Declare.
10949
f0db101d
PA
109502015-08-21 Pedro Alves <palves@redhat.com>
10951
10952 * linux-low.c (wait_for_sigstop): Always switch to no thread
10953 selected if the previously current thread dies.
10954 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10955 process instead of the current thread's.
10956 * remote-utils.c (input_interrupt): Don't check if there's no
10957 current thread.
10958 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10959 current thread to the general thread fails, error out.
10960 (handle_qxfer_auxv, handle_qxfer_libraries)
10961 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10962 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10963 (handle_query): Check if there's a thread selected instead of
10964 checking whether there's any thread in the thread list.
10965 (handle_qxfer_threads, handle_qxfer_btrace)
10966 (handle_qxfer_btrace_conf): Don't error out early if there's no
10967 thread in the thread list.
10968 (handle_v_cont, myresume): Don't set the current thread to the
10969 continue thread.
10970 (process_serial_event) <Hg handling>: Also set thread_id if the
10971 previous general thread is still alive.
10972 (process_serial_event) <g/G handling>: If setting the current
10973 thread to the general thread fails, error out.
10974 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10975 thread's lwp instead of the current thread's.
10976 * target.c (set_desired_thread): If the desired thread was not
10977 found, leave the current thread pointing to NULL. Return an int
10978 (boolean) indicating success.
10979 * target.h (set_desired_thread): Change return type to int.
10980
40045d91
MF
109812015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10982
10983 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10984 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10985 #includes.
10986 (ps_get_thread_area): New function.
10987
45face3b
GB
109882015-08-19 Gary Benson <gbenson@redhat.com>
10989
10990 * hostio.c (handle_pread): Do not attempt to read more data
10991 than hostio_reply_with_data can fit in a packet.
10992
16d5f642
JB
109932015-08-18 Joel Brobecker <brobecker@adacore.com>
10994
10995 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10996
a738da3a
MF
109972015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10998
10999 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11000
33ebda9d
PA
110012015-08-06 Pedro Alves <palves@redhat.com>
11002
11003 * tracepoint.c (expr_eval_result): Now an int.
11004
a44892be
PA
110052015-08-06 Pedro Alves <palves@redhat.com>
11006
11007 * gdbthread.h (struct regcache): Forward declare.
11008 (struct thread_info) <regcache_data>: Now a struct regcache
11009 pointer.
11010 * inferiors.c (inferior_regcache_data)
11011 (set_inferior_regcache_data): Now work with struct regcache
11012 pointers.
11013 * inferiors.h (struct regcache): Forward declare.
11014 (inferior_regcache_data, set_inferior_regcache_data): Now work
11015 with struct regcache pointers.
11016 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11017 (free_register_cache_thread): Remove struct regcache pointer
11018 casts.
11019
608a1e46
PA
110202015-08-06 Pedro Alves <palves@redhat.com>
11021
11022 * server.c (captured_main): On error, print the exception message
11023 to stderr, and if run_once is set, throw a quit.
11024
f0ce0d3a
PA
110252015-08-06 Pedro Alves <palves@redhat.com>
11026
11027 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11028 the current thread.
11029
bf47e248
PA
110302015-08-06 Pedro Alves <palves@redhat.com>
11031
11032 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11033 reading beyond the passed in buffer length.
11034
b6b9ffcc
PL
110352015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11036
11037 * tracepoint.c (symbol_list) <required>: Remove.
11038
863d01bd
PA
110392015-08-06 Pedro Alves <palves@redhat.com>
11040
11041 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11042 count if stopping and suspending threads.
11043 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11044 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11045 (linux_detach): Complete an ongoing step-over.
11046 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11047 throughout.
11048 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11049 (linux_wait_1): If passing a signal to the inferior after
11050 finishing a step-over, unsuspend and re-resume all lwps. If we
11051 see a single-step event but the thread should be continuing, don't
11052 pass the trap to gdb.
11053 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11054 internal_error instead of gdb_assert.
11055 (enqueue_pending_signal): New function.
11056 (check_ptrace_stopped_lwp_gone): Add debug output.
11057 (start_step_over): Use internal_error instead of gdb_assert.
11058 (complete_ongoing_step_over): New function.
11059 (linux_resume_one_thread): Don't resume a suspended thread.
11060 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11061 it stepping.
11062
00db26fa
PA
110632015-08-06 Pedro Alves <palves@redhat.com>
11064
11065 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11066 (linux_thread_alive): Use lwp_is_marked_dead.
11067 (extended_event_reported): Delete.
11068 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11069 instead of extended_event_reported.
11070 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11071 as well.
11072 (lwp_is_marked_dead): New function.
11073 (lwp_running): Use lwp_is_marked_dead.
11074 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11075 comment.
11076
ad071a30
PA
110772015-08-06 Pedro Alves <palves@redhat.com>
11078
11079 * linux-low.c (linux_wait_1): Move fork event output out of the
11080 !report_to_gdb check. Pass event_child->waitstatus to
11081 target_waitstatus_to_string instead of ourstatus.
11082
524b57e6
YQ
110832015-08-04 Yao Qi <yao.qi@linaro.org>
11084
11085 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11086 if current_thread is 32 bit.
11087
6085d6f6
YQ
110882015-08-04 Yao Qi <yao.qi@linaro.org>
11089
11090 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11091 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11092 * server.c (extended_protocol): Remove "static".
11093 * server.h (extended_protocol): Declare it.
11094
8a7e4587
YQ
110952015-08-04 Yao Qi <yao.qi@linaro.org>
11096
11097 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11098 both aarch64 and aarch32.
11099 (aarch64_set_pc): Likewise.
11100
3b53ae99
YQ
111012015-08-04 Yao Qi <yao.qi@linaro.org>
11102
11103 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11104 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11105 arm-with-neon.xml to srv_xmlfiles.
11106 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11107 (is_64bit_tdesc): New function.
11108 (aarch64_linux_read_description): New function.
11109 (aarch64_arch_setup): Call aarch64_linux_read_description.
11110 (regs_info): Rename to regs_info_aarch64.
11111 (aarch64_regs_info): Return right regs_info.
11112 (initialize_low_arch): Call initialize_low_arch_aarch32.
11113
bd9e6534
YQ
111142015-08-04 Yao Qi <yao.qi@linaro.org>
11115
11116 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11117 * linux-aarch32-low.c: New file.
11118 * linux-aarch32-low.h: New file.
11119 * linux-arm-low.c (arm_fill_gregset): Move it to
11120 linux-aarch32-low.c.
11121 (arm_store_gregset): Likewise.
11122 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11123 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11124 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11125 (regs_info): Rename to regs_info_arm.
11126 (arm_regs_info): Return regs_info_aarch32 if
11127 have_ptrace_getregset is 1 and target description is
11128 arm_with_neon or arm_with_vfpv3.
11129 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11130 Call initialize_low_arch_aarch32 instead.
11131
ded48a5e
YQ
111322015-08-04 Yao Qi <yao.qi@linaro.org>
11133
11134 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11135 * linux-low.c: ... here.
11136 * linux-low.h (have_ptrace_getregset): Declare it.
11137
96e9210f
PA
111382015-08-04 Pedro Alves <palves@redhat.com>
11139
11140 * thread-db.c (struct thread_db): Use new typedefs.
11141 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11142 CHK calls.
11143 (disable_thread_event_reporting): Cast result of dlsym to
11144 destination function pointer type.
11145 (thread_db_mourn): Use td_ta_delete_ftype.
11146
af60a1ef
SL
111472015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11148
11149 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11150 arch variant.
11151 (CDX_BREAKPOINT): Define for R2.
11152 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11153 (the_low_target): Add comments.
11154
e8b41681
YQ
111552015-07-30 Yao Qi <yao.qi@linaro.org>
11156
11157 * linux-arm-low.c (arm_hwcap): Remove it.
11158 (arm_read_description): New local variable arm_hwcap. Don't
11159 set arm_hwcap to zero.
11160
89abb039
YQ
111612015-07-30 Yao Qi <yao.qi@linaro.org>
11162
11163 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11164 Use regcache->tdesc instead.
11165 (arm_store_wmmxregset): Likewise.
11166 (arm_fill_vfpregset): Likewise.
11167 (arm_store_vfpregset): Likewise.
11168
deca266c
YQ
111692015-07-30 Yao Qi <yao.qi@linaro.org>
11170
11171 * linux-arm-low.c: Include arch/arm.h.
11172 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11173 (arm_store_gregset): Likewise.
11174
aa58a496
SM
111752015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11176
11177 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11178 ptrace's 4th parameter.
11179
50904b25
YQ
111802015-07-27 Yao Qi <yao.qi@linaro.org>
11181
11182 * configure.srv (case aarch64*-*-linux*): Don't set
11183 srv_linux_usrregs.
11184
5826e159
PA
111852015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11186
11187 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11188 sys/ptrace.h.
11189 * linux-arm-low.c: Likewise.
11190 * linux-cris-low.c: Likewise.
11191 * linux-crisv32-low.c: Likewise.
11192 * linux-low.c: Likewise.
11193 * linux-m68k-low.c: Likewise.
11194 * linux-mips-low.c: Likewise.
11195 * linux-nios2-low.c: Likewise.
11196 * linux-s390-low.c: Likewise.
11197 * linux-sparc-low.c: Likewise.
11198 * linux-tic6x-low.c: Likewise.
11199 * linux-tile-low.c: Likewise.
11200 * linux-x86-low.c: Likewise.
11201
54019719
PA
112022015-07-24 Pedro Alves <palves@redhat.com>
11203
11204 * config.in: Regenerate.
11205 * configure: Regenerate.
11206
eb7aa561
PA
112072015-07-24 Pedro Alves <palves@redhat.com>
11208
11209 * acinclude.m4: Include ../ptrace.m4.
11210 * configure.ac: Call GDB_AC_PTRACE.
11211 * config.in, configure: Regenerate.
11212
55d7b841
YQ
112132015-07-24 Yao Qi <yao.qi@linaro.org>
11214
11215 * linux-low.c (linux_create_inferior): Remove setting to
11216 proc->priv->new_inferior.
11217 (linux_attach): Likewise.
11218 (linux_low_filter_event): Likewise.
11219 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11220
c06cbd92
YQ
112212015-07-24 Yao Qi <yao.qi@linaro.org>
11222
11223 * linux-low.c (linux_arch_setup): New function.
11224 (linux_low_filter_event): If proc->tdesc is NULL and
11225 proc->attached is true, call the_low_target.arch_setup.
11226 Otherwise, keep status pending, and return.
11227 (linux_resume_one_lwp_throw): Don't call get_pc if
11228 thread->while_stepping isn't NULL. Don't call
11229 get_thread_regcache if proc->tdesc is NULL.
11230 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11231 (linux_target_ops): Install arch_setup.
11232 * server.c (start_inferior): Call the_target->arch_setup.
11233 * target.h (struct target_ops) <arch_setup>: New field.
11234 (target_arch_setup): New marco.
11235 * lynx-low.c (lynx_target_ops): Update.
11236 * nto-low.c (nto_target_ops): Update.
11237 * spu-low.c (spu_target_ops): Update.
11238 * win32-low.c (win32_target_ops): Update.
11239
5ae3ebba
YQ
112402015-07-24 Yao Qi <yao.qi@linaro.org>
11241
11242 * linux-low.c (linux_add_process): Don't set
11243 proc->priv->new_inferior.
11244 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11245 (linux_attach): Likewise.
11246
eb97750b
YQ
112472015-07-24 Yao Qi <yao.qi@linaro.org>
11248
11249 * server.c (start_inferior): Code refactor.
11250
51aee833
YQ
112512015-07-24 Yao Qi <yao.qi@linaro.org>
11252
11253 * server.c (process_serial_event): Set general_thread.
11254
af1b22f3
YQ
112552015-07-21 Yao Qi <yao.qi@linaro.org>
11256
11257 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11258 aarch64_linux_get_debug_reg_capacity.
11259
554717a3
YQ
112602015-07-17 Yao Qi <yao.qi@linaro.org>
11261
11262 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11263 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11264 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11265 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11266 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11267 (AARCH64_HWP_ALIGNMENT): Likewise.
11268 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11269 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11270 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11271 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11272 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11273 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11274 (struct aarch64_debug_reg_state): Likewise.
11275 (struct arch_lwp_info): Likewise.
11276 (aarch64_align_watchpoint): Likewise.
11277 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11278 (aarch64_watchpoint_length): Likewise.
11279 (aarch64_point_encode_ctrl_reg): Likewise
11280 (aarch64_point_is_aligned): Likewise.
11281 (aarch64_align_watchpoint): Likewise.
11282 (aarch64_linux_set_debug_regs):
11283 (aarch64_dr_state_insert_one_point): Likewise.
11284 (aarch64_dr_state_remove_one_point): Likewise.
11285 (aarch64_handle_breakpoint): Likewise.
11286 (aarch64_handle_aligned_watchpoint): Likewise.
11287 (aarch64_handle_unaligned_watchpoint): Likewise.
11288 (aarch64_handle_watchpoint): Likewise.
11289
c67ca4de
YQ
112902015-07-17 Yao Qi <yao.qi@linaro.org>
11291
11292 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11293 and don't aarch64_get_debug_reg_state. All callers update.
11294 (aarch64_handle_aligned_watchpoint): Likewise.
11295 (aarch64_handle_unaligned_watchpoint): Likewise.
11296 (aarch64_handle_watchpoint): Likewise.
11297 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11298 (aarch64_remove_point): Likewise.
11299
25abf979
YQ
113002015-07-17 Yao Qi <yao.qi@linaro.org>
11301
11302 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11303 debug_printf.
11304 (aarch64_handle_unaligned_watchpoint): Likewise.
11305
db1ff28b
JK
113062015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11307
11308 Revert the previous 3 commits:
11309 Move gdb_regex* to common/
11310 Move linux_find_memory_regions_full & co.
11311 gdbserver build-id attribute generator
11312
700ca40f
JK
113132015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11314 Jan Kratochvil <jan.kratochvil@redhat.com>
11315
11316 gdbserver build-id attribute generator.
11317 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11318 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11319 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11320 (find_phdr): New.
11321 (get_dynamic): Use find_pdhr to traverse program headers.
11322 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11323 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11324 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11325 (get_hex_build_id): New.
11326 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11327 to reply XML document.
11328
9904185c
JK
113292015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11330 Jan Kratochvil <jan.kratochvil@redhat.com>
11331
11332 * target.c: Include target/target-utils.h and fcntl.h.
11333 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11334 (target_fileio_read_stralloc): New functions.
11335
6e5b4429
JK
113362015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11337
11338 * Makefile.in (OBS): Add gdb_regex.o.
11339 (gdb_regex.o): New.
11340 * config.in: Rebuilt.
11341 * configure: Rebuilt.
11342
ddc98fbf
JK
113432015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11344 Jan Kratochvil <jan.kratochvil@redhat.com>
11345
11346 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11347 * Makefile.in (OBS): Add target-utils.o.
11348 (linux-maps.o, target-utils.o): New.
11349 * configure.srv (srv_linux_obj): Add linux-maps.o.
11350
e57bb7a0
PL
113512015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11352
11353 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11354 function, return 1.
11355 (the_low_target): Install it.
11356
586b02a9
PA
113572015-07-14 Pedro Alves <palves@redhat.com>
11358
11359 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11360 Instead, ignore ECHILD, and throw an error for other errnos.
11361
58c1b36c
PA
113622015-07-10 Pedro Alves <palves@redhat.com>
11363
11364 * event-loop.c (struct callback_event) <data>: Change type to
11365 gdb_client_data instance instead of gdb_client_data pointer.
11366 (append_callback_event): Adjust.
11367
421530db
PL
113682015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11369
11370 * linux-aarch64-low.c: Add comments for each linux_target_ops
11371 method. Remove comments already covered in target_ops and
11372 linux_target_ops definitions.
11373 (the_low_target): Add comments for each unimplemented method.
11374
c2d65f38
YQ
113752015-07-09 Yao Qi <yao.qi@linaro.org>
11376
11377 * linux-aarch64-low.c (aarch64_regmap): Remove.
11378 (aarch64_usrregs_info): Remove.
11379 (regs_info): Set field usrregs to NULL.
11380
b20a6524
MM
113812015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11382
11383 * linux-low.c: Include "rsp-low.h"
11384 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11385 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11386 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11387 (handle_btrace_enable_pt): New.
11388 (handle_btrace_general_set): Support "pt".
11389 (handle_btrace_conf_general_set): Support "pt:size".
11390
96c97461
PL
113912015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11392
11393 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11394 Z_PACKET_SW_BP.
11395
37d66942
PL
113962015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11397
11398 * linux-aarch64-low.c: Remove comment about endianness.
11399 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11400 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11401 memcmp.
11402
dc06243f
GB
114032015-06-24 Gary Benson <gbenson@redhat.com>
11404
11405 * linux-i386-ipa.c (stdint.h): Do not include.
11406 * lynx-i386-low.c (stdint.h): Likewise.
11407 * lynx-ppc-low.c (stdint.h): Likewise.
11408 * mem-break.c (stdint.h): Likewise.
11409 * thread-db.c (stdint.h): Likewise.
11410 * tracepoint.c (stdint.h): Likewise.
11411 * win32-low.c (stdint.h): Likewise.
11412
124e13d9
SM
114132015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11414
11415 * server.c (write_qxfer_response): Update call to
11416 remote_escape_output.
11417
909c2cda
JK
114182015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11419 Jan Kratochvil <jan.kratochvil@redhat.com>
11420
11421 Merge multiple hex conversions.
11422 * gdbreplay.c (tohex): Rename to 'fromhex'.
11423 (logchar): Use fromhex.
11424
24c05f46
JK
114252015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11426
11427 * server.c (handle_qxfer_libraries): Set `version' attribute for
11428 <library-list>.
11429
14d2069a
GB
114302015-06-10 Gary Benson <gbenson@redhat.com>
11431
11432 * target.h (struct target_ops) <multifs_open>: New field.
11433 <multifs_unlink>: Likewise.
11434 <multifs_readlink>: Likewise.
11435 * linux-low.c (nat/linux-namespaces.h): New include.
11436 (linux_target_ops): Initialize the_target->multifs_open,
11437 the_target->multifs_unlink and the_target->multifs_readlink.
11438 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11439 * hostio.c (hostio_fs_pid): New static variable.
11440 (hostio_handle_new_gdb_connection): New function.
11441 (handle_setfs): Likewise.
11442 (handle_open): Use the_target->multifs_open as appropriate.
11443 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11444 (handle_readlink): Use the_target->multifs_readlink as
11445 appropriate.
11446 (handle_vFile): Handle vFile:setfs packets.
11447 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11448 after target_handle_new_gdb_connection.
11449
4b8b5e72
GB
114502015-06-10 Gary Benson <gbenson@redhat.com>
11451
11452 * configure.ac (AC_CHECK_FUNCS): Add setns.
11453 * config.in: Regenerate.
11454 * configure: Likewise.
11455 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11456 (linux-namespaces.o): New rule.
11457 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11458
3ac2e371
GB
114592015-06-09 Gary Benson <gbenson@redhat.com>
11460
11461 * hostio.c (handle_open): Process mode argument with
11462 fileio_to_host_mode.
11463
ca9b78ce
YQ
114642015-06-01 Yao Qi <yao.qi@linaro.org>
11465
11466 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11467 * linux-x86-low.c: Likewise.
11468
bfacd19d
DB
114692015-05-28 Don Breazeal <donb@codesourcery.com>
11470
11471 * linux-low.c (handle_extended_wait): Initialize
11472 thread_info.last_resume_kind for new fork children.
11473
452003ef
PA
114742015-05-15 Pedro Alves <palves@redhat.com>
11475
11476 * target.h (target_handle_new_gdb_connection): Rewrite using if
11477 wrapped in do/while.
11478
1041a03c
JB
114792015-05-14 Joel Brobecker <brobecker@adacore.com>
11480
11481 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11482 * configure, config.in: Regenerate.
11483 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11484 Declare typedef.
11485
c269dbdb
DB
114862015-05-12 Don Breazeal <donb@codesourcery.com>
11487
11488 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11489 PTRACE_EVENT_VFORK_DONE.
11490 (linux_low_ptrace_options, extended_event_reported): Add vfork
11491 events.
11492 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11493 and "vforkdone" for RSP 'T' Stop Reply Packet.
11494 * server.h (report_vfork_events): Declare
11495 global variable.
11496
3a8a0396
DB
114972015-05-12 Don Breazeal <donb@codesourcery.com>
11498
11499 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11500 (the_low_target) <new_fork>: Initialize new member.
11501 * linux-arm-low.c (arm_new_fork): New function.
11502 (the_low_target) <new_fork>: Initialize new member.
11503 * linux-low.c (handle_extended_wait): Call new target function
11504 new_fork.
11505 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11506 * linux-mips-low.c (mips_add_watchpoint): New function
11507 extracted from mips_insert_point.
11508 (the_low_target) <new_fork>: Initialize new member.
11509 (mips_linux_new_fork): New function.
11510 (mips_insert_point): Call mips_add_watchpoint.
11511 * linux-x86-low.c (x86_linux_new_fork): New function.
11512 (the_low_target) <new_fork>: Initialize new member.
11513
de0d863e
DB
115142015-05-12 Don Breazeal <donb@codesourcery.com>
11515
11516 * linux-low.c (handle_extended_wait): Implement return value,
11517 rename argument 'event_child' to 'event_lwp', handle
11518 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11519 (linux_low_ptrace_options): New function.
11520 (linux_low_filter_event): Call linux_low_ptrace_options,
11521 use different argument fo linux_enable_event_reporting,
11522 use return value from handle_extended_wait.
11523 (extended_event_reported): New function.
11524 (linux_wait_1): Call extended_event_reported and set
11525 status to report fork events.
11526 (linux_write_memory): Add pid to debug message.
11527 (reset_lwp_ptrace_options_callback): New function.
11528 (linux_handle_new_gdb_connection): New function.
11529 (linux_target_ops): Initialize new structure member.
11530 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11531 * lynx-low.c: Initialize new structure member.
11532 * remote-utils.c (prepare_resume_reply): Implement stop reason
11533 "fork" for "T" stop message.
11534 * server.c (handle_query): Call handle_new_gdb_connection.
11535 * server.h (report_fork_events): Declare global flag.
11536 * target.h (struct target_ops) <handle_new_gdb_connection>:
11537 New member.
11538 (target_handle_new_gdb_connection): New macro.
11539 * win32-low.c: Initialize new structure member.
11540
ddcbc397
DB
115412015-05-12 Don Breazeal <donb@codesourcery.com>
11542
11543 * mem-break.c (APPEND_TO_LIST): Define macro.
11544 (clone_agent_expr): New function.
11545 (clone_one_breakpoint): New function.
11546 (clone_all_breakpoints): New function.
11547 * mem-break.h: Declare new functions.
11548
89245bc0
DB
115492015-05-12 Don Breazeal <donb@codesourcery.com>
11550
11551 * linux-low.c (linux_supports_fork_events): New function.
11552 (linux_supports_vfork_events): New function.
11553 (linux_target_ops): Initialize new structure members.
11554 (initialize_low): Call linux_check_ptrace_features.
11555 * lynx-low.c (lynx_target_ops): Initialize new structure
11556 members.
11557 * server.c (report_fork_events, report_vfork_events):
11558 New global flags.
11559 (handle_query): Add new features to qSupported packet and
11560 response.
11561 (captured_main): Initialize new global variables.
11562 * target.h (struct target_ops) <supports_fork_events>:
11563 New member.
11564 <supports_vfork_events>: New member.
11565 (target_supports_fork_events): New macro.
11566 (target_supports_vfork_events): New macro.
11567 * win32-low.c (win32_target_ops): Initialize new structure
11568 members.
11569
835205d0
GB
115702015-05-12 Gary Benson <gbenson@redhat.com>
11571
11572 * server.c (handle_qxfer_exec_file): Use current process
11573 if annex is empty.
11574
21e94bd9
SL
115752015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11576
11577 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11578 Remove HAVE_PTRACE_GETREGS conditionals.
11579 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11580 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11581
45614f15
YQ
115822015-05-08 Yao Qi <yao.qi@linaro.org>
11583
11584 * linux-low.c (linux_supports_conditional_breakpoints): New
11585 function.
11586 (linux_target_ops): Install new target method.
11587 * lynx-low.c (lynx_target_ops): Install NULL hook for
11588 supports_conditional_breakpoints.
11589 * nto-low.c (nto_target_ops): Likewise.
11590 * spu-low.c (spu_target_ops): Likewise.
11591 * win32-low.c (win32_target_ops): Likewise.
11592 * server.c (handle_query): Check
11593 target_supports_conditional_breakpoints.
11594 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11595 New field.
11596 (target_supports_conditional_breakpoints): New macro.
11597
80ad801e
PA
115982015-05-06 Pedro Alves <palves@redhat.com>
11599
11600 PR server/18081
11601 * server.c (start_inferior): If the process exits, mourn it.
11602
819843c7
GB
116032015-04-21 Gary Benson <gbenson@redhat.com>
11604
11605 * hostio.c (fileio_open_flags_to_host): Factored out to
11606 fileio_to_host_openflags in common/fileio.c. Single use
11607 updated.
11608
a2d5a9d7
MF
116092015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11610
11611 * linux-xtensa-low.c (xtensa_fill_gregset)
11612 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11613 XCHAL_HAVE_LOOP.
11614
deb44829
MF
116152015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11616
11617 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11618 (regs_info): Replace usrregs pointer with NULL.
11619
e57f1de3
GB
116202015-04-17 Gary Benson <gbenson@redhat.com>
11621
11622 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11623 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11624 * server.c (handle_qxfer_exec_file): New function.
11625 (qxfer_packets): Add exec-file entry.
11626 (handle_query): Report qXfer:exec-file:read as supported packet.
11627
62828379
RN
116282015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11629
11630 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11631
b88bb450
GB
116322015-04-09 Gary Benson <gbenson@redhat.com>
11633
11634 * hostio-errno.c (errno_to_fileio_error): Remove function.
11635 Update caller to use remote_fileio_to_fio_error.
11636
c8f4bfdd
YQ
116372015-04-09 Yao Qi <yao.qi@linaro.org>
11638
11639 * linux-low.c (linux_insert_point): Call
11640 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11641 (linux_remove_point): Call remove_memory_breakpoint if type is
11642 raw_bkpt_type_sw.
11643 * linux-x86-low.c (x86_insert_point): Don't call
11644 insert_memory_breakpoint.
11645 (x86_remove_point): Don't call remove_memory_breakpoint.
11646
41f98f02
PA
116472015-04-01 Pedro Alves <palves@redhat.com>
11648 Cleber Rosa <crosa@redhat.com>
11649
11650 * server.c (gdbserver_usage): Reorganize and extend the usage
11651 message.
11652
2bf6fb9d
PA
116532015-03-24 Pedro Alves <palves@redhat.com>
11654
11655 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11656 output. Also dump TRAP_TRACE.
11657 (linux_low_filter_event): In debug output, distinguish a
11658 resume_stop SIGSTOP from a delayed SIGSTOP.
11659
369f6daa
GB
116602015-03-24 Gary Benson <gbenson@redhat.com>
11661
11662 * linux-x86-low.c (x86_linux_new_thread): Moved to
11663 nat/x86-linux.c.
11664 (x86_linux_prepare_to_resume): Likewise.
11665
8e5d4070
GB
116662015-03-24 Gary Benson <gbenson@redhat.com>
11667
11668 * Makefile.in (x86-linux-dregs.o): New rule.
11669 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11670 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11671 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11672 (x86_linux_dr_get): Likewise.
11673 (x86_linux_dr_set): Likewise.
11674 (update_debug_registers_callback): Likewise.
11675 (x86_linux_dr_set_addr): Likewise.
11676 (x86_linux_dr_get_addr): Likewise.
11677 (x86_linux_dr_set_control): Likewise.
11678 (x86_linux_dr_get_control): Likewise.
11679 (x86_linux_dr_get_status): Likewise.
11680 (x86_linux_update_debug_registers): Likewise.
11681
2b95d440
GB
116822015-03-24 Gary Benson <gbenson@redhat.com>
11683
11684 * linux-x86-low.c (x86_linux_update_debug_registers):
11685 New function, factored out from...
11686 (x86_linux_prepare_to_resume): ...this.
11687
14b0bc68
GB
116882015-03-24 Gary Benson <gbenson@redhat.com>
11689
11690 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11691 (x86_linux_dr_set): Likewise.
11692 (update_debug_registers_callback): Likewise.
11693 (x86_linux_dr_set_addr): Likewise.
11694 (x86_linux_dr_get_addr): Likewise.
11695 (x86_linux_dr_set_control): Likewise.
11696 (x86_linux_dr_get_control): Likewise.
11697 (x86_linux_dr_get_status): Likewise.
11698 (x86_linux_prepare_to_resume): Likewise.
11699
5dfe6ca8
GB
117002015-03-24 Gary Benson <gbenson@redhat.com>
11701
11702 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11703 Use perror_with_name. Pass string through gettext.
11704 (x86_linux_dr_set): Likewise.
11705
d33472ad
GB
117062015-03-24 Gary Benson <gbenson@redhat.com>
11707
11708 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11709 (x86_linux_dr_set_addr): ...this.
11710 (x86_dr_low_get_addr): Rename to...
11711 (x86_linux_dr_get_addr): ...this.
11712 (x86_dr_low_set_control): Rename to...
11713 (x86_linux_dr_set_control): ...this.
11714 (x86_dr_low_get_control): Rename to...
11715 (x86_linux_dr_get_control): ...this.
11716 (x86_dr_low_get_status): Rename to...
11717 (x86_linux_dr_get_status): ...this.
11718 (x86_dr_low): Update with new function names.
11719
4b134ca1
GB
117202015-03-24 Gary Benson <gbenson@redhat.com>
11721
11722 * Makefile.in (x86-linux.o): New rule.
11723 * configure.srv: Add x86-linux.o to relevant targets.
11724 * linux-low.c (lwp_set_arch_private_info): New function.
11725 (lwp_arch_private_info): Likewise.
11726 * linux-x86-low.c: Include nat/x86-linux.h.
11727 (arch_lwp_info): Removed structure.
11728 (update_debug_registers_callback):
11729 Use lwp_set_debug_registers_changed.
11730 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11731 and lwp_set_debug_registers_changed.
11732 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11733
34c703da
GB
117342015-03-24 Gary Benson <gbenson@redhat.com>
11735
11736 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11737 * linux-arm-low.c (arm_new_thread): Likewise.
11738 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11739 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11740 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11741 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11742
cff068da
GB
117432015-03-24 Gary Benson <gbenson@redhat.com>
11744
11745 * linux-low.c (ptid_of_lwp): New function.
11746 (lwp_is_stopped): Likewise.
11747 (lwp_stop_reason): Likewise.
11748 * linux-x86-low.c (update_debug_registers_callback):
11749 Use lwp_is_stopped.
11750 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11751 lwp_stop_reason.
11752
b2f7c7e8
GB
117532015-03-24 Gary Benson <gbenson@redhat.com>
11754
11755 * linux-low.h (linux_stop_lwp): Remove declaration.
11756
6d4ee8c6
GB
117572015-03-24 Gary Benson <gbenson@redhat.com>
11758
11759 * linux-low.h: Include nat/linux-nat.h.
11760 * linux-low.c (iterate_over_lwps_args): New structure.
11761 (iterate_over_lwps_filter): New function.
11762 (iterate_over_lwps): Likewise.
11763 * linux-x86-low.c (update_debug_registers_callback):
11764 Update signature to what iterate_over_lwps expects.
11765 Remove PID check that iterate_over_lwps now performs.
11766 (x86_dr_low_set_addr): Use iterate_over_lwps.
11767 (x86_dr_low_set_control): Likewise.
11768
70a0bb6b
GB
117692015-03-24 Gary Benson <gbenson@redhat.com>
11770
11771 * linux-x86-low.c (x86_debug_reg_state): New function.
11772 (x86_linux_prepare_to_resume): Use the above.
11773
7b669087
GB
117742015-03-24 Gary Benson <gbenson@redhat.com>
11775
11776 * linux-low.c (current_lwp_ptid): New function.
11777 * linux-x86-low.c: Include nat/linux-nat.h.
11778 (x86_dr_low_get_addr): Use current_lwp_ptid.
11779 (x86_dr_low_get_control): Likewise.
11780 (x86_dr_low_get_status): Likewise.
11781
eef49a3d
PA
117822015-03-20 Pedro Alves <palves@redhat.com>
11783
11784 * tracepoint.c (cmd_qtstatus): Make "str" const.
11785
b2333d22
PA
117862015-03-20 Pedro Alves <palves@redhat.com>
11787
11788 * server.c (handle_general_set): Make "req_str" const.
11789
23f238d3
PA
117902015-03-19 Pedro Alves <palves@redhat.com>
11791
11792 * linux-low.c (linux_resume_one_lwp): Rename to ...
11793 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11794 instead call perror_with_name.
11795 (check_ptrace_stopped_lwp_gone): New function.
11796 (linux_resume_one_lwp): Reimplement as wrapper around
11797 linux_resume_one_lwp_throw that swallows errors if the LWP is
11798 gone.
11799
91baf43f
PA
118002015-03-19 Pedro Alves <palves@redhat.com>
11801
11802 * linux-low.c (count_events_callback, select_event_lwp_callback):
11803 No longer check whether the thread has resume_stop as last resume
11804 kind.
11805
8bf3b159
PA
118062015-03-19 Pedro Alves <palves@redhat.com>
11807
11808 * linux-low.c (count_events_callback, select_event_lwp_callback):
11809 Use the lwp's status_pending_p field, not the thread's.
11810
b90fc188
PA
118112015-03-19 Pedro Alves <palves@redhat.com>
11812
11813 * linux-low.c (select_event_lwp_callback): Update comments to
11814 no longer mention SIGTRAP.
11815
464b0089
GB
118162015-03-18 Gary Benson <gbenson@redhat.com>
11817
11818 * server.c (handle_query): Do not report vFile:fstat as supported.
11819
aa9e327f
GB
118202015-03-11 Gary Benson <gbenson@redhat.com>
11821
11822 * hostio.c (sys/types.h): New include.
11823 (sys/stat.h): Likewise.
11824 (common-remote-fileio.h): Likewise.
11825 (handle_fstat): New function.
11826 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11827
791c0056
GB
118282015-03-11 Gary Benson <gbenson@redhat.com>
11829
11830 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11831 struct stat.st_blocks and struct stat.st_blksize.
11832 * configure: Regenerate.
11833 * config.in: Likewise.
11834 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11835 (OBS): Add common-remote-fileio.o.
11836 (common-remote-fileio.o): New rule.
11837
9a9df970
PA
118382015-03-09 Pedro Alves <palves@redhat.com>
11839
11840 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11841 'struct sockaddr' pointer in 'accept' call.
11842
9eb1356e
PA
118432015-03-09 Pedro Alves <palves@redhat.com>
11844
11845 Revert:
11846 2015-03-07 Pedro Alves <palves@redhat.com>
11847 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11848 or <winsock2.h> here. Instead include "gdb_socket.h".
11849 (remote_open): Use union gdb_sockaddr_u.
11850 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11851 or <winsock2.h> here. Instead include "gdb_socket.h".
11852 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11853 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11854 or <sys/un.h>.
11855 (init_named_socket, gdb_agent_helper_thread): Use union
11856 gdb_sockaddr_u.
11857
aac331e4
PA
118582015-03-07 Pedro Alves <palves@redhat.com>
11859
11860 * configure.ac (build_warnings): Move
11861 -Wdeclaration-after-statement to the C-specific set.
11862 * configure: Regenerate.
11863
366c75fc
PA
118642015-03-07 Pedro Alves <palves@redhat.com>
11865
11866 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11867 or <winsock2.h> here. Instead include "gdb_socket.h".
11868 (remote_open): Use union gdb_sockaddr_u.
11869 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11870 or <winsock2.h> here. Instead include "gdb_socket.h".
11871 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11872 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11873 or <sys/un.h>.
11874 (init_named_socket, gdb_agent_helper_thread): Use union
11875 gdb_sockaddr_u.
11876
492d29ea
PA
118772015-03-07 Pedro Alves <palves@redhat.com>
11878
11879 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11880 instead.
11881
60a191ed
YQ
118822015-03-06 Yao Qi <yao.qi@linaro.org>
11883
11884 * linux-aarch64-low.c (aarch64_insert_point): Use
11885 show_debug_regs as a boolean.
11886 (aarch64_remove_point): Likewise.
11887
f5771b1d
PA
118882015-03-05 Pedro Alves <palves@redhat.com>
11889
11890 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11891 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11892 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11893 * nto-low.c (nto_target_ops): Likewise.
11894 * spu-low.c (spu_target_ops): Likewise.
11895 * win32-low.c (win32_target_ops): Likewise.
11896
3e572f71
PA
118972015-03-04 Pedro Alves <palves@redhat.com>
11898
72f4393d 11899 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11900 Decide whether a breakpoint triggered based on the SIGTRAP's
11901 siginfo.si_code.
72f4393d
L
11902 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11903 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11904 (linux_low_filter_event): Check for breakpoints before checking
11905 watchpoints.
11906 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11907 siginfo.si_code.
72f4393d
L
11908 (linux_stopped_by_sw_breakpoint)
11909 (linux_supports_stopped_by_sw_breakpoint)
11910 (linux_stopped_by_hw_breakpoint)
11911 (linux_supports_stopped_by_hw_breakpoint): New functions.
11912 (linux_target_ops): Install new target methods.
3e572f71 11913
1ec68e26
PA
119142015-03-04 Pedro Alves <palves@redhat.com>
11915
11916 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11917 * server.c (swbreak_feature, hwbreak_feature): New globals.
11918 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11919 (captured_main): Clear swbreak_feature and hwbreak_feature.
11920 * server.h (swbreak_feature, hwbreak_feature): Declare.
11921 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11922 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11923 supports_stopped_by_hw_breakpoint>: New fields.
11924 (target_supports_stopped_by_sw_breakpoint)
11925 (target_stopped_by_sw_breakpoint)
11926 (target_supports_stopped_by_hw_breakpoint)
11927 (target_stopped_by_hw_breakpoint): Declare.
11928
15c66dd6
PA
119292015-03-04 Pedro Alves <palves@redhat.com>
11930
11931 enum lwp_stop_reason -> enum target_stop_reason
11932 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11933 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11934 (linux_wait_1, stuck_in_jump_pad_callback)
11935 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11936 (linux_stopped_by_watchpoint):
11937 * linux-low.h (enum lwp_stop_reason): Delete.
11938 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11939 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11940
98fc70d6
YQ
119412015-03-04 Yao Qi <yao.qi@linaro.org>
11942
11943 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11944
dd2ac174
GB
119452015-03-03 Gary Benson <gbenson@redhat.com>
11946
11947 * hostio.c (handle_vFile): Fix prefix lengths.
11948
d68e53f4
MM
119492015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11950
11951 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11952 ptr_bits.
11953
bf2d68ab
AA
119542015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11955
11956 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11957 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11958 (clean): Add "rm -f" for above C files.
11959 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11960 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11961 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11962 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11963 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11964 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11965 (init_registers_s390x_vx_linux64)
11966 (init_registers_s390x_tevx_linux64)
11967 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11968 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11969 declarations.
11970 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11971 (s390_store_vxrs_high): New functions.
11972 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11973 NT_S390_VXRS_HIGH.
11974 (s390_arch_setup): Add logic for selecting one of the new target
11975 descriptions. Activate the new vector regsets if applicable.
11976 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11977 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11978 and init_registers_s390x_tevx_linux64.
11979
c966a859
PA
119802015-03-01 Pedro Alves <palves@redhat.com>
11981
11982 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11983 parameter.
11984
4180215b
PA
119852015-02-27 Pedro Alves <palves@redhat.com>
11986
11987 * linux-x86-low.c (u_debugreg_offset): New function.
11988 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11989
749bab01
PA
119902015-02-27 Pedro Alves <palves@redhat.com>
11991
11992 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11993 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11994 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11995 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11996 (ps_lsetfpregs, ps_getpid)
11997 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11998 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11999 (ps_lsetxregs, ps_plog): Declare.
12000
3c14e5a3
PA
120012015-02-27 Pedro Alves <palves@redhat.com>
12002
12003 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12004 IP_AGENT_EXPORT_FUNC.
12005 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12006 IP_AGENT_EXPORT_FUNC.
12007 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12008 (IP_AGENT_EXPORT): Delete.
12009 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12010 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12011 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12012 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12013 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12014 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12015 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12016 (traceframe_read_count, traceframe_write_count)
12017 (traceframes_created, trace_state_variables, get_raw_reg)
12018 (get_trace_state_variable_value, set_trace_state_variable_value)
12019 (ust_loaded, helper_thread_id, cmd_buf): Use
12020 IPA_SYM_EXPORTED_NAME.
12021 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12022 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12023 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12024 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12025 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12026 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12027 EXTERN_C_PUSH/EXTERN_C_POP.
12028 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12029 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12030 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12031 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12032 (traceframe_write_count, traceframe_read_count)
12033 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12034 (about_to_request_buffer_space, get_trace_state_variable_value)
12035 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12036 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12037 EXTERN_C_PUSH/EXTERN_C_POP.
12038 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12039 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12040 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12041 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12042 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12043 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12044 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12045 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12046 Define.
12047 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12048 (IP_AGENT_EXPORT_VAR_DECL): Define.
12049 (tracing): Declare.
12050 (gdb_agent_get_raw_reg): Declare.
12051
fe978cb0
PA
120522015-02-27 Tom Tromey <tromey@redhat.com>
12053 Pedro Alves <palves@redhat.com>
12054
12055 Rename symbols whose names are reserved C++ keywords throughout.
12056
3bc3d82a
PA
120572015-02-27 Pedro Alves <palves@redhat.com>
12058
12059 * Makefile.in (COMPILER): New, get it from autoconf.
12060 (CXX): Get from autoconf instead.
12061 (COMPILE.pre): Use COMPILER.
12062 (CC-LD): Rename to ...
12063 (CC_LD): ... this. Use COMPILER.
12064 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12065 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12066 * acinclude.m4: Include build-with-cxx.m4.
12067 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12068 Disable -Werror by default if building in C++ mode.
12069 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12070 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12071 the C++ compiler. Save/restore CXXFLAGS too.
12072 * configure: Regenerate.
12073
07697489
PA
120742015-02-27 Pedro Alves <palves@redhat.com>
12075
12076 * acinclude.m4: Include libiberty.m4.
12077 * configure.ac: Call libiberty_INIT.
12078 * config.in, configure: Regenerate.
12079
9beb7c4e
PA
120802015-02-26 Pedro Alves <palves@redhat.com>
12081
12082 * linux-low.c (linux_wait_1): When incrementing the PC past a
12083 program breakpoint always use the_low_target.breakpoint_len as
12084 increment, rather than the maximum between that and
12085 the_low_target.decr_pc_after_break.
12086
8090aef2
PA
120872015-02-23 Pedro Alves <palves@redhat.com>
12088
12089 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12090 thread was doing a step-over; always adjust the PC if
12091 we stepped over a permanent breakpoint.
12092 (linux_wait_1): If we stepped over breakpoint that was on top of a
12093 permanent breakpoint, manually advance the PC past it.
12094
bc9540e8
PA
120952015-02-23 Pedro Alves <palves@redhat.com>
12096
12097 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12098 modes.
12099 (x86_fill_gregset, x86_store_gregset): Use it when handling
12100 $orig_eax.
12101
2db9a427
PA
121022015-02-20 Pedro Alves <palves@redhat.com>
12103
12104 * thread-db.c: Include "nat/linux-procfs.h".
12105 (thread_db_init): Skip listing new threads if the kernel supports
12106 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12107
afa8d396
PA
121082015-02-20 Pedro Alves <palves@redhat.com>
12109
12110 * linux-low.c (status_pending_p_callback): Use ptid_match.
12111
c9587f88
AT
121122015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12113
12114 PR breakpoints/16812
12115 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12116 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12117 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12118
b05ec7a5
AT
121192015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12120
12121 PR breakpoints/15956
12122 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12123
d33501a5
MM
121242015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12125
12126 * linux-low.c (linux_low_btrace_conf): Print size.
12127 * server.c (handle_btrace_conf_general_set): New.
12128 (hanle_general_set): Call handle_btrace_conf_general_set.
12129 (handle_query): Report Qbtrace-conf:bts:size as supported.
12130
f4abbc16
MM
121312015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12132
12133 * linux-low.c (linux_low_enable_btrace): Update parameters.
12134 (linux_low_btrace_conf): New.
12135 (linux_target_ops)<to_btrace_conf>: Initialize.
12136 * server.c (current_btrace_conf): New.
12137 (handle_btrace_enable): Rename to ...
12138 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12139 to target_enable_btrace. Update comment. Update users.
12140 (handle_qxfer_btrace_conf): New.
12141 (qxfer_packets): Add btrace-conf entry.
12142 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12143 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12144 (target_ops)<read_btrace_conf>: New.
12145 (target_enable_btrace): Update parameters.
12146 (target_read_btrace_conf): New.
12147
043c3577
MM
121482015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12149
12150 * server.c (handle_btrace_general_set): Remove call to
12151 target_supports_btrace.
12152 (supported_btrace_packets): New.
12153 (handle_query): Call supported_btrace_packets.
12154 * target.h: include btrace-common.h.
12155 (btrace_target_info): Removed.
12156 (supports_btrace, target_supports_btrace): Update parameters.
12157
734b0e4b
MM
121582015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12159
12160 * Makefile.in (SFILES): Add common/btrace-common.c.
12161 (OBS): Add common/btrace-common.o.
12162 (btrace-common.o): Add build rules.
12163 * linux-low: Include btrace-common.h.
12164 (linux_low_read_btrace): Use struct btrace_data. Call
12165 btrace_data_init and btrace_data_fini.
12166
d6c146e9
PA
121672015-02-06 Pedro Alves <palves@redhat.com>
12168
12169 * thread-db.c (find_new_threads_callback): Add debug output.
12170
20ba1ce6
PA
121712015-02-04 Pedro Alves <palves@redhat.com>
12172
12173 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12174 (resume_stopped_resumed_lwps): New function.
12175 (linux_wait_for_event_filtered): Use it.
12176
8cc73a39
SDJ
121772015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12178
12179 * Makefile.in (SFILES): Add linux-personality.c.
12180 (linux-personality.o): New rule.
12181 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12182 list of objects to be built.
12183 * linux-low.c: Include nat/linux-personality.h.
12184 (linux_create_inferior): Remove code to disable address space
12185 randomization (moved to ../nat/linux-personality.c). Create
12186 cleanup to disable address space randomization.
12187
fb23d554
SDJ
121882015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12189
12190 * Makefile.in (posix-strerror.o): New rule.
12191 (mingw-strerror.o): Likewise.
12192 * configure: Regenerated.
12193 * configure.ac: Source file ../common/common.host. Initialize new
12194 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12195
cdf43629
YQ
121962015-01-14 Yao Qi <yao@codesourcery.com>
12197
12198 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12199 (ppc-linux.o): New rule.
12200 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12201 * configure.ac: AC_CHECK_FUNCS(getauxval).
12202 * config.in: Re-generated.
12203 * configure: Re-generated.
12204 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12205 ppc64_64bit_inferior_p
12206
514c5338
YQ
122072015-01-14 Yao Qi <yao@codesourcery.com>
12208
12209 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12210 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12211 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12212 (PT_ORIG_R3, PT_TRAP): Likewise.
12213 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12214 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12215 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12216
3368c1e5
JB
122172015-01-10 Joel Brobecker <brobecker@adacore.com>
12218
12219 * i387-fp.c (i387_cache_to_xsave): In look over
12220 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12221 zmmh_low_space field by use of zmmh_high_space.
12222
582511be
PA
122232015-01-09 Pedro Alves <palves@redhat.com>
12224
12225 * linux-low.c (step_over_bkpt): Move higher up in the file.
12226 (handle_extended_wait): Don't store the stop_pc here.
12227 (get_stop_pc): Adjust comments and rename to ...
12228 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12229 stopped for a software breakpoint or hardware breakpoint.
12230 (thread_still_has_status_pending_p): New function.
12231 (status_pending_p_callback): Use
12232 thread_still_has_status_pending_p. If the event is no longer
12233 interesting, resume the LWP.
12234 (handle_tracepoints): Add assert.
12235 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12236 (wstatus_maybe_breakpoint): New function.
12237 (cancel_breakpoint): Delete function.
12238 (check_stopped_by_watchpoint): New function, factored out from
12239 linux_low_filter_event.
12240 (lp_status_maybe_breakpoint): Delete function.
12241 (linux_low_filter_event): Remove filter_ptid argument.
12242 Leave thread group exits pending here. Store the LWP's stop PC.
12243 Always leave events pending.
12244 (linux_wait_for_event_filtered): Pull all events out of the
12245 kernel, and leave them all pending.
12246 (count_events_callback, select_event_lwp_callback): Consider all
12247 events.
12248 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12249 (select_event_lwp): Only give preference to the stepping LWP in
12250 all-stop mode. Adjust comments.
12251 (ignore_event): New function.
12252 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12253 references to cancel_breakpoints. Adjust to renames. Also give
12254 equal priority to all LWPs that have had events in non-stop mode.
12255 If reporting a software breakpoint event, unadjust the LWP's PC.
12256 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12257 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12258 Adjust.
12259 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12260 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12261 (linux_stopped_by_watchpoint): Adjust.
12262 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12263 * linux-low.h (enum lwp_stop_reason): New.
12264 (struct lwp_info) <stop_pc>: Adjust comment.
12265 <stopped_by_watchpoint>: Delete field.
12266 <stop_reason>: New field.
12267 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12268 * mem-break.c (software_breakpoint_inserted_here)
12269 (hardware_breakpoint_inserted_here): New function.
12270 * mem-break.h (software_breakpoint_inserted_here)
12271 (hardware_breakpoint_inserted_here): Declare.
12272 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12273 (cancel_breakpoints): Delete.
12274 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12275 (upload_fast_traceframes): Remove references to
12276 cancel_breakpoints.
12277
a33e3959
PA
122782015-01-09 Pedro Alves <palves@redhat.com>
12279
12280 * thread-db.c (find_new_threads_callback): Ignore thread if the
12281 kernel thread ID is -1.
12282
8784d563
PA
122832015-01-09 Pedro Alves <palves@redhat.com>
12284
12285 * linux-low.c (linux_attach_fail_reason_string): Move to
12286 nat/linux-ptrace.c, and rename.
12287 (linux_attach_lwp): Update comment.
12288 (attach_proc_task_lwp_callback): New function.
12289 (linux_attach): Adjust to rename and use
12290 linux_proc_attach_tgid_threads.
12291 (linux_attach_fail_reason_string): Delete declaration.
12292
76f2b779
JB
122932015-01-01 Joel Brobecker <brobecker@adacore.com>
12294
12295 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12296 * server.c (gdbserver_version): Likewise.
12297
fafcc06a
SDJ
122982014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12299
12300 * remote-utils.c: Include ctype.h.
12301 (input_interrupt): Explicitly handle the case when the char
12302 received is the NUL byte. Improve the printing of non-ASCII
12303 characters.
12304
beed38b8
JB
123052014-12-16 Joel Brobecker <brobecker@adacore.com>
12306
12307 * linux-low.c (linux_low_filter_event): Update call to
12308 linux_enable_event_reporting following the addition of
12309 a new parameter to that function.
12310
bf330350
CU
123112014-12-16 Catalin Udma <catalin.udma@freescale.com>
12312
12313 PR server/17457
12314 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12315 (AARCH64_FPCR_REGNO): Likewise.
12316 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12317 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12318 (aarch64_store_fpregset): Likewise.
12319
5227d625
JB
123202014-12-15 Joel Brobecker <brobecker@adacore.com>
12321
12322 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12323 Remove FIXME comment about assumption about N.
12324
f93b65a0
JB
123252014-12-13 Joel Brobecker <brobecker@adacore.com>
12326
12327 * configure.ac: If large-file support is disabled in GDBserver,
12328 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12329 * configure: Regenerate.
12330
e5a9158d
AA
123312014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12332
12333 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12334 warning upon ENODATA from ptrace.
12335 * linux-s390-low.c (s390_store_tdb): New.
12336 (s390_regsets): Add regset for NT_S390_TDB.
12337
feea5f36
AA
123382014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12339
12340 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12341 without a fill_function.
12342 * linux-s390-low.c (s390_fill_last_break): Remove.
12343 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12344 (s390_arch_setup): Use regset's size instead of fill_function for
12345 loop end condition.
12346
098dbe61
AA
123472014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12348
12349 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12350 the regset's store function when ptrace returned an error.
12351 * regcache.c (get_thread_regcache): Invalidate register cache
12352 before fetching inferior's registers.
12353
28eef672
AA
123542014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12355
12356 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12357 while-loop as for-loop.
12358 (regsets_store_inferior_registers): Likewise.
12359
bdca27a2
YQ
123602014-11-28 Yao Qi <yao@codesourcery.com>
12361
12362 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12363 * config.in, configure: Re-generate.
12364 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12365 is defined.
12366
9c232dda
YQ
123672014-11-21 Yao Qi <yao@codesourcery.com>
12368
12369 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12370 (AC_CHECK_HEADERS): Remove malloc.h.
12371 * configure: Re-generated.
12372 * config.in: Re-generated.
12373 * server.h: Don't include alloca.h and malloc.h.
12374 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12375 Don't include malloc.h.
12376
43968415
JB
123772014-11-17 Joel Brobecker <brobecker@adacore.com>
12378
12379 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12380 corresponding ERRNO check in same block.
12381
40e91bc7
PA
123822014-11-12 Pedro Alves <palves@redhat.com>
12383
12384 * server.c (cont_thread): Update comment.
12385 (start_inferior, attach_inferior): No longer clear cont_thread.
12386 (handle_v_cont): No longer set cont_thread.
12387 (captured_main): Clear cont_thread each time a GDB connects.
12388
c2c118cf
PA
123892014-11-12 Pedro Alves <palves@redhat.com>
12390
12391 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12392 thread, and don't resume all threads if the Hc thread has exited.
12393
78708b7c
PA
123942014-11-12 Pedro Alves <palves@redhat.com>
12395
12396 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12397 the process group instead of to a specific LWP.
12398
a2abc7de
PA
123992014-10-15 Pedro Alves <palves@redhat.com>
12400
12401 PR server/17487
12402 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12403 parameter.
12404 (arm_set_thread_context): Delete.
12405 (the_low_target): Adjust.
12406 * win32-i386-low.c (debug_registers_changed)
12407 (debug_registers_used): Delete.
12408 (update_debug_registers_callback): New function.
12409 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12410 needing to update their debug registers.
12411 (win32_get_current_dr): New function.
12412 (x86_dr_low_get_addr, x86_dr_low_get_control)
12413 (x86_dr_low_get_status): Fetch the debug register from the thread
12414 record's context.
12415 (i386_initial_stuff): Adjust.
12416 (i386_get_thread_context): Remove current_event parameter. Don't
12417 clear debug_registers_changed nor copy DR values to
12418 debug_reg_state.
12419 (i386_set_thread_context): Delete.
12420 (i386_prepare_to_resume): New function.
12421 (i386_thread_added): Mark the thread as needing to update irs
12422 debug registers.
12423 (the_low_target): Remove i386_set_thread_context and install
12424 i386_prepare_to_resume.
12425 * win32-low.c (win32_get_thread_context): Adjust.
12426 (win32_set_thread_context): Use SetThreadContext
12427 directly.
12428 (win32_prepare_to_resume): New function.
12429 (win32_require_context): New function, factored out from ...
12430 (thread_rec): ... this.
12431 (continue_one_thread): Call win32_prepare_to_resume on each thread
12432 we're about to continue.
12433 (win32_resume): Call win32_prepare_to_resume on the event thread.
12434 * win32-low.h (struct win32_thread_info)
12435 <debug_registers_changed>: New field.
12436 (struct win32_target_ops): Change prototype of set_thread_context,
12437 delete set_thread_context and add prepare_to_resume.
12438 (win32_require_context): New declaration.
12439
a442d071
GB
124402014-10-08 Gary Benson <gbenson@redhat.com>
12441
12442 * server.h: Do not include common-exceptions.h.
12443
6f1947e8
GB
124442014-10-08 Gary Benson <gbenson@redhat.com>
12445
12446 * server.h: Do not include cleanups.h.
12447
63b434a4
JH
124482014-09-30 James Hogan <james.hogan@imgtec.com>
12449
12450 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12451 mips64-dsp-linux.c.
12452
c4d9ceb6
YQ
124532014-09-23 Yao Qi <yao@codesourcery.com>
12454
12455 * linux-low.c (lp_status_maybe_breakpoint): New function.
12456 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12457 (count_events_callback): Likewise.
12458 (select_event_lwp_callback): Likewise.
12459 (cancel_breakpoints_callback): Likewise.
12460
89a5711c
DB
124612014-09-19 Don Breazeal <donb@codesourcery.com>
12462
12463 * linux-low.c (handle_extended_wait): Call
12464 linux_ptrace_get_extended_event.
12465 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12466 linux_is_extended_waitstatus.
12467
bffc0964
JB
124682014-09-16 Joel Brobecker <brobecker@adacore.com>
12469
12470 * Makefile.in (CPPFLAGS): Define.
12471 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12472 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12473
0bfdf32f
GB
124742014-09-16 Gary Benson <gbenson@redhat.com>
12475
12476 * inferiors.h (current_inferior): Renamed as...
12477 (current_thread): New variable. All uses updated.
12478 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12479 (maybe_move_out_of_jump_pad): Likewise.
12480 (cancel_breakpoint): Likewise.
12481 (linux_low_filter_event): Likewise.
12482 (wait_for_sigstop): Likewise.
12483 (linux_resume_one_lwp): Likewise.
12484 (need_step_over_p): Likewise.
12485 (start_step_over): Likewise.
12486 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12487 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12488 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12489 and save_inferior as saved_thread.
12490 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12491 saved_thread.
12492 (regcache_invalidate_thread): Likewise.
12493 * remote-utils.c (prepare_resume_reply): Likewise.
12494 * thread-db.c (thread_db_get_tls_address): Likewise.
12495 (disable_thread_event_reporting): Likewise.
12496 (remove_thread_event_breakpoints): Likewise.
12497 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12498 as saved_thread.
12499 * target.h (set_desired_inferior): Renamed as...
12500 (set_desired_thread): New declaration. All uses updated.
12501 * server.c (myresume): Updated comment to reference thread instead
12502 of inferior.
12503 (handle_serial_event): Likewise.
12504 (handle_target_event): Likewise.
12505
361c8ade
GB
125062014-09-12 Tom Tromey <tromey@redhat.com>
12507 Gary Benson <gbenson@redhat.com>
12508
12509 * regcache.h: Include common-regcache.h.
12510 (regcache_read_pc): Don't declare.
12511 * regcache.c (get_thread_regcache_for_ptid): New function.
12512
bd9269f7
GB
125132014-09-11 Tom Tromey <tromey@redhat.com>
12514 Gary Benson <gbenson@redhat.com>
12515
12516 * symbol.c: New file.
12517 * Makefile.in (SFILES): Add symbol.c.
12518 (OBS): Add symbol.o.
12519
f8c1d06b
GB
125202014-09-11 Gary Benson <gbenson@redhat.com>
12521
12522 * target.c (target_stop_ptid, target_continue_ptid): New
12523 functions.
12524
721ec300
GB
125252014-09-11 Tom Tromey <tromey@redhat.com>
12526 Gary Benson <gbenson@redhat.com>
12527
12528 * target.h: Include target/target.h.
12529 * target.c (target_read_memory, target_read_uint32)
12530 (target_write_memory): New functions.
12531
c5e92cca
GB
125322014-09-11 Gary Benson <gbenson@redhat.com>
12533
12534 * server.h (debug_hw_points): Don't declare.
12535 * server.c (debug_hw_points): Don't define. Replace all uses
12536 with show_debug_regs.
12537 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12538 all uses with show_debug_regs.
12539
2e4bb98a
EBM
125402014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12541
12542 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12543 endianness into account.
12544 (ppc_supply_ptrace_register): Likewise.
12545
ac740bc7
JH
125462014-09-03 James Hogan <james.hogan@imgtec.com>
12547
12548 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12549 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12550
97ea6506
GB
125512014-09-03 Gary Benson <gbenson@redhat.com>
12552
12553 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12554 ALL_DEBUG_ADDRESS_REGISTERS.
12555
df7e5265
GB
125562014-09-02 Gary Benson <gbenson@redhat.com>
12557
12558 * i386-low.h: Renamed as...
12559 * x86-low.h: New file. All type, function and variable name
12560 prefixes changed from "i386_" to "x86_". All references updated.
12561 * i386-low.c: Renamed as...
12562 * x86-low.c: New file. All type, function and variable name
12563 prefixes changed from "i386_" to "x86_". All references updated.
12564
ed859da7
GB
125652014-09-02 Gary Benson <gbenson@redhat.com>
12566
12567 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12568 (x86_linux_new_thread): Likewise.
12569
860789c7
GB
125702014-08-29 Gary Benson <gbenson@redhat.com>
12571
12572 * server.h (setjmp.h): Do not include.
12573 (toplevel): Do not declare.
12574 (common-exceptions.h): Include.
12575 (cleanups.h): Likewise.
12576 * server.c (toplevel): Do not define.
12577 (exit_code): New static global.
12578 (detach_or_kill_for_exit_cleanup): New function.
12579 (main): New function. Original main renamed to...
12580 (captured_main): New function.
12581 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12582
ff55e1b5
GB
125832014-08-29 Gary Benson <gbenson@redhat.com>
12584
12585 * Makefile.in (SFILES): Add common/common-exceptions.c.
12586 (OBS): Add common-exceptions.o.
12587 (common-exceptions.o): New rule.
12588 * utils.c (prepare_to_throw_exception): New function.
12589
e9bcb658
GB
125902014-08-29 Gary Benson <gbenson@redhat.com>
12591
12592 * config.in: Regenerate.
12593 * configure: Likewise.
12594
e3180625
GB
125952014-08-29 Gary Benson <gbenson@redhat.com>
12596
12597 * Makefile.in (SFILES): Add common/cleanups.c.
12598 (OBS): cleanups.o.
12599 (cleanups.o): New rule.
12600
e3d6ba5d
GB
126012014-08-29 Gary Benson <gbenson@redhat.com>
12602
12603 * utils.c (internal_vwarning): New function.
12604
7096e886
GB
126052014-08-28 Gary Benson <gbenson@redhat.com>
12606
12607 * utils.h (fatal): Remove declaration.
12608 * utils.c (fatal): Remove function.
12609
14ce3192
GB
126102014-08-28 Gary Benson <gbenson@redhat.com>
12611
12612 * tracepoint.c (gdb_agent_init): Replace fatal with
12613 perror_with_name.
12614 (initialize_tracepoint): Likewise.
12615
50278d59
GB
126162014-08-28 Gary Benson <gbenson@redhat.com>
12617
12618 * remote-utils.c (remote_prepare): Replace fatal with error.
12619
aa96c426
GB
126202014-08-28 Gary Benson <gbenson@redhat.com>
12621
12622 * linux-low.c (linux_async): Replace fatal with warning.
12623 Tidy up and return.
12624 (linux_start_non_stop): Return -1 if linux_async failed.
12625
f7160e97
GB
126262014-08-28 Gary Benson <gbenson@redhat.com>
12627
12628 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12629 gdb_assert.
12630 (i386_dr_low_get_addr): Remove vague comment.
12631 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12632 gdb_assert.
12633
38e08fca
GB
126342014-08-28 Gary Benson <gbenson@redhat.com>
12635
12636 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12637 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12638 internal_error.
12639 (linux_resume_one_lwp): Likewise.
12640 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12641 gdb_assert.
12642 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12643 with internal_error.
12644 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12645 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12646 (find_register_by_name): Replace fatal with internal_error.
12647 (find_regno): Likewise.
12648 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12649 * thread-db.c (thread_db_create_event): Likewise.
12650 (thread_db_load_search): Likewise.
12651 (try_thread_db_load_1): Likewise.
12652 * tracepoint.c (get_jump_space_head): Replace fatal with
12653 internal_error.
12654 (claim_trampoline_space): Likewise.
12655 (have_fast_tracepoint_trampoline_buffer): Likewise.
12656 (cmd_qtstart): Likewise.
12657 (stop_tracing): Likewise.
12658 (fast_tracepoint_collecting): Likewise.
12659 (target_malloc): Likewise.
12660 (download_tracepoint): Likewise.
12661 (download_trace_state_variables): Replace check with gdb_assert.
12662 (upload_fast_traceframes): Replace fatal with internal_error.
12663
34abf635
GB
126642014-08-19 Tom Tromey <tromey@redhat.com>
12665 Gary Benson <gbenson@redhat.com>
12666
12667 * Makefile.in (SFILES): Add common/common-debug.c.
12668 (OBS): Add common-debug.o.
12669 (common-debug.o): New rule.
12670 * debug.h (debug_printf): Don't declare.
12671 * debug.c (debug_printf): Renamed and rewritten as...
12672 (debug_vprintf): New function.
12673
f6e94d78
GB
126742014-08-19 Gary Benson <gbenson@redhat.com>
12675
12676 * utils.h: Do not include print-utils.h.
12677
9239eeab
GB
126782014-08-19 Tom Tromey <tromey@redhat.com>
12679 Gary Benson <gbenson@redhat.com>
12680
12681 * server.h: Add static assertion.
12682 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12683
ef87c8bb
GB
126842014-08-19 Tom Tromey <tromey@redhat.com>
12685 Gary Benson <gbenson@redhat.com>
12686
12687 * Makefile.in (SFILES): Add common/errors.c.
12688 (OBS): Add errors.o.
12689 (IPA_OBS): Add errors-ipa.o.
12690 (errors.o): New rule.
12691 (errors-ipa.o): Likewise.
12692 * utils.h (perror_with_name, error, warning): Don't declare.
12693 * utils.c (warning): Renamed and rewritten as...
12694 (vwarning): New function.
12695 (error): Renamed and rewritten as...
12696 (verror): New function.
12697 (internal_error): Renamed and rewritten as...
12698 (internal_verror): New function.
12699
bb974a24
GB
127002014-08-07 Gary Benson <gbenson@redhat.com>
12701
12702 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12703 * configure: Regenerate.
12704 * config.in: Likewise.
12705 * server.h: Do not include errno.h.
12706 * event-loop.c: Likewise.
12707 * hostio-errno.c: Likewise.
12708 * linux-low.c: Likewise.
12709 * remote-utils.c: Likewise.
12710 * spu-low.c: Likewise.
12711 * utils.c: Likewise.
12712 * gdbreplay.c: Unconditionally include errno.h.
12713
6d3d12eb
GB
127142014-08-07 Gary Benson <gbenson@redhat.com>
12715
12716 * server.h: Do not include string.h.
12717 * event-loop.c: Likewise.
12718 * linux-low.c: Likewise.
12719 * regcache.c: Likewise.
12720 * remote-utils.c: Likewise.
12721 * spu-low.c: Likewise.
12722 * utils.c: Likewise.
12723
dccbb609
GB
127242014-08-07 Gary Benson <gbenson@redhat.com>
12725
12726 * server.h: Do not include gdb_assert.h.
12727
e76df0d0
GB
127282014-08-07 Gary Benson <gbenson@redhat.com>
12729
12730 * server.h: Do not include common-utils.h.
12731
4cb9c816
GB
127322014-08-07 Gary Benson <gbenson@redhat.com>
12733
12734 * server.h: Do not include ptid.h.
12735 * notif.h: Likewise.
12736
3995eeee
GB
127372014-08-07 Gary Benson <gbenson@redhat.com>
12738
12739 * server.h: Do not include gdb_locale.h.
12740
cb9f1a9b
GB
127412014-08-07 Gary Benson <gbenson@redhat.com>
12742
12743 * server.h: Do not include gdb/signals.h.
12744 * win32-low.c: Likewise.
12745
a5fceff8
GB
127462014-08-07 Gary Benson <gbenson@redhat.com>
12747
12748 * server.h: Do not include pathmax.h.
12749
b9391142
GB
127502014-08-07 Gary Benson <gbenson@redhat.com>
12751
12752 * server.h: Do not include libiberty.h.
12753 * linux-bfin-low.c: Likewise.
12754
0e443c87
GB
127552014-08-07 Gary Benson <gbenson@redhat.com>
12756
12757 * server.h: Do not include ansidecl.h.
12758
8ebb3f56
GB
127592014-08-07 Gary Benson <gbenson@redhat.com>
12760
12761 * linux-x86-low.c: Do not include stddef.h.
12762 * lynx-ppc-low.c: Likewise.
12763 * tracepoint.c: Likewise.
12764
8980bdf6
GB
127652014-08-07 Gary Benson <gbenson@redhat.com>
12766
12767 * server.h: Do not include stdarg.h.
12768 * nto-low.c: Likewise.
12769
d7096f71
GB
127702014-08-07 Gary Benson <gbenson@redhat.com>
12771
12772 * server.h: Do not include stdlib.h.
12773 * inferiors.c: Likewise.
12774 * linux-low.c: Likewise.
12775 * regcache.c: Likewise.
12776 * spu-low.c: Likewise.
12777 * tracepoint.c: Likewise.
12778 * utils.c: Likewise.
12779
d02f550d
GB
127802014-08-07 Gary Benson <gbenson@redhat.com>
12781
12782 * server.h: Do not include stdio.h.
12783 * linux-low.c: Likewise.
12784 * remote-utils.c: Likewise.
12785 * spu-low.c: Likewise.
12786 * utils.c: Likewise.
12787 * wincecompat.c: Likewise.
12788
87f6c4e3
GB
127892014-08-06 Gary Benson <gbenson@redhat.com>
12790
12791 * regcache.c (init_register_cache): Move conditionals inside if.
12792
7089dca4
GB
127932014-08-06 Gary Benson <gbenson@redhat.com>
12794
12795 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12796
462f517e
GB
127972014-07-31 Gary Benson <gbenson@redhat.com>
12798
12799 * ax.h: Do not include server.h.
12800 * gdbthread.h: Likewise.
12801 * lynx-low.h: Likewise.
12802 * notif.h: Likewise.
12803
976411d6
GB
128042014-07-30 Gary Benson <gbenson@redhat.com>
12805
12806 * server.h: Include common-defs.h.
12807 Do not include config.h or build-gnulib-gdbserver/config.h.
12808
d41f6d8e
GB
128092014-07-30 Gary Benson <gbenson@redhat.com>
12810
12811 * hostio-errno.c: Move server.h to top of includes list.
12812 * inferiors.c: Likewise.
12813 * linux-x86-low.c: Likewise.
12814 * notif.c: Include server.h.
12815
314c6a35
TT
128162014-07-24 Tom Tromey <tromey@redhat.com>
12817 Gary Benson <gbenson@redhat.com>
12818
12819 * server.h (CORE_ADDR): Now unsigned.
12820
69ff6be5
PA
128212014-07-16 Pedro Alves <palves@redhat.com>
12822
12823 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12824
ce9e3fe7
PA
128252014-07-15 Pedro Alves <palves@redhat.com>
12826
12827 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12828 copy.
12829
e76126e8
PA
128302014-07-11 Pedro Alves <palves@redhat.com>
12831
12832 * linux-low.c (kill_wait_lwp): New function, based on
12833 kill_one_lwp_callback, but use my_waitpid directly.
12834 (kill_one_lwp_callback, linux_kill): Use it.
12835
8e9db26e
PA
128362014-06-23 Pedro Alves <palves@redhat.com>
12837
12838 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12839 before setting DR0..DR3.
12840
698b3e08
GB
128412014-06-20 Gary Benson <gbenson@redhat.com>
12842
12843 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12844 * configure: Regenerated.
12845 * config.in: Likewise.
12846
125f8a3d
GB
128472014-06-20 Gary Benson <gbenson@redhat.com>
12848
12849 * Makefile.in (SFILES): Update locations for files moved
12850 from common to nat.
12851 (object file files): Reordered.
12852
42995dbd
GB
128532014-06-20 Gary Benson <gbenson@redhat.com>
12854
12855 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12856 (i386_dr_low_set_addr): Likewise.
12857 (i386_dr_low_get_addr): Likewise.
12858 (i386_dr_low_can_set_control): Likewise.
12859 (i386_dr_low_set_control): Likewise.
12860 (i386_dr_low_get_control): Likewise.
12861 (i386_dr_low_get_status): Likewise.
12862 (i386_get_debug_register_length): Likewise.
12863 * linux-x86-low.c (i386_dr_low_set_addr):
12864 Changed signature. Made static.
12865 (i386_dr_low_get_addr): Likewise.
12866 (i386_dr_low_set_control): Likewise.
12867 (i386_dr_low_get_control): Likewise.
12868 (i386_dr_low_get_status): Likewise.
12869 (i386_dr_low): New global variable.
12870 * win32-i386-low.c (i386_dr_low_set_addr):
12871 Changed signature. Made static.
12872 (i386_dr_low_get_addr): Likewise.
12873 (i386_dr_low_set_control): Likewise.
12874 (i386_dr_low_get_control): Likewise.
12875 (i386_dr_low_get_status): Likewise.
12876 (i386_dr_low): New global variable.
12877
e1d2394b
MS
128782014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12879
12880 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12881 * Makefile.in (AR, AR_FLAGS): Define.
12882 * configure: Regenerate.
12883
3a8ee006
GB
128842014-06-19 Gary Benson <gbenson@redhat.com>
12885
12886 * Makefile.in (i386-dregs.o): New rule.
12887 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12888 * i386-low.c (target.h): Remove include.
12889 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12890 (DR_CONTROL_SHIFT): Likewise.
12891 (DR_CONTROL_SIZE): Likewise.
12892 (DR_RW_EXECUTE): Likewise.
12893 (DR_RW_WRITE): Likewise.
12894 (DR_RW_READ): Likewise.
12895 (DR_RW_IORW): Likewise.
12896 (DR_LEN_1): Likewise.
12897 (DR_LEN_2): Likewise.
12898 (DR_LEN_4): Likewise.
12899 (DR_LEN_8): Likewise.
12900 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12901 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12902 (DR_ENABLE_SIZE): Likewise.
12903 (DR_LOCAL_SLOWDOWN): Likewise.
12904 (DR_GLOBAL_SLOWDOWN): Likewise.
12905 (DR_CONTROL_RESERVED): Likewise.
12906 (I386_DR_CONTROL_MASK): Likewise.
12907 (I386_DR_VACANT): Likewise.
12908 (I386_DR_LOCAL_ENABLE): Likewise.
12909 (I386_DR_GLOBAL_ENABLE): Likewise.
12910 (I386_DR_DISABLE): Likewise.
12911 (I386_DR_SET_RW_LEN): Likewise.
12912 (I386_DR_GET_RW_LEN): Likewise.
12913 (I386_DR_WATCH_HIT): Likewise.
12914 (i386_wp_op_t): Likewise.
12915 (i386_show_dr): Likewise.
12916 (i386_length_and_rw_bits): Likewise.
12917 (i386_insert_aligned_watchpoint): Likewise.
12918 (i386_remove_aligned_watchpoint): Likewise.
12919 (i386_handle_nonaligned_watchpoint): Likewise.
12920 i386_update_inferior_debug_regs(): Likewise.
12921 (i386_dr_insert_watchpoint): Likewise.
12922 (i386_dr_remove_watchpoint): Likewise.
12923 (i386_dr_region_ok_for_watchpoint): Likewise.
12924 (i386_dr_stopped_data_address): Likewise.
12925 (i386_dr_stopped_by_watchpoint): Likewise.
12926
8f26655c
GB
129272014-06-19 Gary Benson <gbenson@redhat.com>
12928
12929 * i386-low.c (i386_dr_show): Renamed to
12930 i386_show_dr and made static. All uses updated.
12931 (i386_dr_length_and_rw_bits): Renamed to
12932 i386_length_and_rw_bits and made static.
12933 All uses updated.
12934 (i386_dr_insert_aligned_watchpoint): Renamed to
12935 i386_insert_aligned_watchpoint and made static.
12936 All uses updated.
12937 (i386_dr_remove_aligned_watchpoint): Renamed to
12938 i386_remove_aligned_watchpoint and made static.
12939 All uses updated.
12940 (i386_dr_update_inferior_debug_regs): Renamed to
12941 i386_update_inferior_debug_regs and made static.
12942 All uses updated.
12943
b9228891
GB
129442014-06-18 Gary Benson <gbenson@redhat.com>
12945
5171def3
GB
12946 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12947 (i386_dr_low_can_set_control): Likewise.
12948 (i386_get_debug_register_length): Likewise.
12949 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12950 (i386_dr_low_can_set_control): Likewise.
12951 (i386_get_debug_register_length): Likewise.
12952
129532014-06-17 Gary Benson <gbenson@redhat.com>
12954
b9228891
GB
12955 * i386-low.h (i386-dregs.h): New include.
12956 (DR_FIRSTADDR): Now in i386-dregs.h.
12957 (DR_LASTADDR): Likewise.
12958 (DR_NADDR): Likewise.
12959 (DR_STATUS): Likewise.
12960 (DR_CONTROL): Likewise.
12961 (i386_debug_reg_state): Likewise.
12962 (i386_dr_insert_watchpoint): Likewise.
12963 (i386_dr_remove_watchpoint): Likewise.
12964 (i386_dr_region_ok_for_watchpoint): Likewise.
12965 (i386_dr_stopped_data_address): Likewise.
12966 (i386_dr_stopped_by_watchpoint): Likewise.
12967 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12968
4be83cc2
GB
129692014-06-18 Gary Benson <gbenson@redhat.com>
12970
12971 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12972 i386_dr_insert_watchpoint.
12973 (i386_low_remove_watchpoint): Renamed to
12974 i386_dr_remove_watchpoint.
12975 (i386_low_region_ok_for_watchpoint): Renamed to
12976 i386_dr_region_ok_for_watchpoint.
12977 (i386_low_stopped_data_address): Renamed to
12978 i386_dr_stopped_data_address.
12979 (i386_low_stopped_by_watchpoint): Renamed to
12980 i386_dr_stopped_by_watchpoint.
12981 * i386-low.c (i386_show_dr): Renamed to
12982 i386_dr_show and made nonstatic. All uses updated.
12983 (i386_length_and_rw_bits): Renamed to
12984 i386_dr_length_and_rw_bits and made nonstatic.
12985 All uses updated.
12986 (i386_insert_aligned_watchpoint): Renamed to
12987 i386_dr_insert_aligned_watchpoint and made nonstatic.
12988 All uses updated.
12989 (i386_remove_aligned_watchpoint): Renamed to
12990 i386_dr_remove_aligned_watchpoint and made nonstatic.
12991 All uses updated.
12992 (i386_update_inferior_debug_regs): Renamed to
12993 i386_dr_update_inferior_debug_regs and made nonstatic.
12994 All uses updated.
12995 (i386_low_insert_watchpoint): Renamed to
12996 i386_dr_insert_watchpoint. All uses updated.
12997 (i386_low_remove_watchpoint): Renamed to
12998 i386_dr_remove_watchpoint. All uses updated.
12999 (i386_low_region_ok_for_watchpoint): Renamed to
13000 i386_dr_region_ok_for_watchpoint. All uses updated.
13001 (i386_low_stopped_data_address): Renamed to
13002 i386_dr_stopped_data_address. All uses updated.
13003 (i386_low_stopped_by_watchpoint): Renamed to
13004 i386_dr_stopped_by_watchpoint. All uses updated.
13005
131aa0d4
GB
130062014-06-18 Gary Benson <gbenson@redhat.com>
13007
13008 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13009 (i386_dr_low_can_set_control): Likewise.
13010 (i386_insert_aligned_watchpoint): New check.
13011
d9305f7f
GB
130122014-06-18 Gary Benson <gbenson@redhat.com>
13013
13014 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13015 Renamed to state.
13016
e927c9fc
GB
130172014-06-18 Gary Benson <gbenson@redhat.com>
13018
13019 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13020 instead of fatal and error.
13021 (i386_handle_nonaligned_watchpoint): Likewise.
13022
1b6d4134
GB
130232014-06-18 Gary Benson <gbenson@redhat.com>
13024
13025 * i386-low.c (i386_get_debug_register_length): New macro.
13026 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13027 (i386_show_dr): Use debug_printf instead of fprintf. Use
13028 phex to format values.
13029
6e62758f
GB
130302014-06-18 Gary Benson <gbenson@redhat.com>
13031
13032 * i386-low.h: Comment changes.
13033 * i386-low.c: Likewise.
13034
fc6e2f03
GB
130352014-06-18 Gary Benson <gbenson@redhat.com>
13036
13037 * i386-low.c: Whitespace changes.
13038
f9d1eeed
TT
130392014-06-12 Tom Tromey <tromey@redhat.com>
13040
13041 * utils.c (freeargv): Remove.
13042
0b04e523
TT
130432014-06-12 Tom Tromey <tromey@redhat.com>
13044
13045 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13046 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13047 (parse_debug_format_options): Likewise.
13048 (gdbserver_usage): Likewise.
13049 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13050 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13051 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13052 against libiberty.
13053 ($(LIBGNU)): Depend on libiberty.
13054 (all-lib): Recurse into all subdirs.
13055 (install-only): Invoke "install" target in subdirs.
13056 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13057 targets.
13058 * configure: Rebuild.
13059 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13060 for vasprintf, vsnprintf, or gettimeofday.
13061 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13062 srv_tgtobj.
13063
270c9937
JB
130642014-06-05 Joel Brobecker <brobecker@adacore.com>
13065
13066 * development.sh: Delete.
13067 * Makefile.in (config.status): Adjust dependency on development.sh.
13068 * configure.ac: Adjust development.sh source call.
13069 * configure: Regenerate.
13070
0a261ed8
PA
130712014-06-02 Pedro Alves <palves@redhat.com>
13072
13073 * ax.c (gdb_free_agent_expr): New function.
13074 * ax.h (gdb_free_agent_expr): New declaration.
13075 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13076 list.
13077 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13078 static.
13079 (clear_breakpoint_conditions_and_commands): New function.
13080 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13081 (clear_breakpoint_conditions_and_commands): New declaration.
13082
e9dae05e
RR
130832014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13084
13085 * linux-aarch64-low.c (asm/ptrace.h): Include.
13086
5876f503
JK
130872014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13088
13089 Fix TLS access for -static -pthread.
13090 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13091 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13092 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13093
802e8e6d
PA
130942014-05-20 Pedro Alves <palves@redhat.com>
13095
13096 * linux-aarch64-low.c (aarch64_insert_point)
13097 (aarch64_remove_point): No longer check whether the type is
13098 supported here. Adjust to new interface.
13099 (the_low_target): Install aarch64_supports_z_point_type as
13100 supports_z_point_type method.
13101 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13102 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13103 instead of a Z packet char. Adjust.
13104 (arm_supports_z_point_type): New function.
13105 (arm_insert_point, arm_remove_point): Adjust to new interface.
13106 (the_low_target): Install arm_supports_z_point_type.
13107 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13108 (cris_insert_point, cris_remove_point): Adjust to new interface.
13109 Don't check whether the type is supported here.
13110 (the_low_target): Install cris_supports_z_point_type.
13111 * linux-low.c (linux_supports_z_point_type): New function.
13112 (linux_insert_point, linux_remove_point): Adjust to new interface.
13113 * linux-low.h (struct linux_target_ops) <insert_point,
13114 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13115 raw_breakpoint pointer parameter.
13116 <supports_z_point_type>: New method.
13117 * linux-mips-low.c (mips_supports_z_point_type): New function.
13118 (mips_insert_point, mips_remove_point): Adjust to new interface.
13119 Use mips_supports_z_point_type.
13120 (the_low_target): Install mips_supports_z_point_type.
13121 * linux-ppc-low.c (the_low_target): Install NULL as
13122 supports_z_point_type method.
13123 * linux-s390-low.c (the_low_target): Install NULL as
13124 supports_z_point_type method.
13125 * linux-sparc-low.c (the_low_target): Install NULL as
13126 supports_z_point_type method.
13127 * linux-x86-low.c (x86_supports_z_point_type): New function.
13128 (x86_insert_point): Adjust to new insert_point interface. Use
13129 insert_memory_breakpoint. Adjust to new
13130 i386_low_insert_watchpoint interface.
13131 (x86_remove_point): Adjust to remove_point interface. Use
13132 remove_memory_breakpoint. Adjust to new
13133 i386_low_remove_watchpoint interface.
13134 (the_low_target): Install x86_supports_z_point_type.
13135 * lynx-low.c (lynx_target_ops): Install NULL as
13136 supports_z_point_type callback.
13137 * nto-low.c (nto_supports_z_point_type): New.
13138 (nto_insert_point, nto_remove_point): Adjust to new interface.
13139 (nto_target_ops): Install nto_supports_z_point_type.
13140 * mem-break.c: Adjust intro comment.
13141 (struct raw_breakpoint) <raw_type, size>: New fields.
13142 <inserted>: Update comment.
13143 <shlib_disabled>: Delete field.
13144 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13145 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13146 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13147 (raw_bkpt_type_to_target_hw_bp_type): New function.
13148 (find_enabled_raw_code_breakpoint_at): New function.
13149 (find_raw_breakpoint_at): New type and size parameters. Use them.
13150 (insert_memory_breakpoint): New function, based off
13151 set_raw_breakpoint_at.
13152 (remove_memory_breakpoint): New function.
13153 (set_raw_breakpoint_at): Reimplement.
13154 (set_breakpoint): New, based on set_breakpoint_at.
13155 (set_breakpoint_at): Reimplement.
13156 (delete_raw_breakpoint): Go through the_target->remove_point
13157 instead of assuming memory breakpoints.
13158 (find_gdb_breakpoint_at): Delete.
13159 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13160 (find_gdb_breakpoint): New function.
13161 (set_gdb_breakpoint_at): Delete.
13162 (z_type_supported): New function.
13163 (set_gdb_breakpoint_1): New function, loosely based off
13164 set_gdb_breakpoint_at.
13165 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13166 (delete_gdb_breakpoint_at): Delete.
13167 (delete_gdb_breakpoint_1): New function, loosely based off
13168 delete_gdb_breakpoint_at.
13169 (delete_gdb_breakpoint): New function.
13170 (clear_gdb_breakpoint_conditions): Rename to ...
13171 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13172 breakpoint.
13173 (add_condition_to_breakpoint): Make static.
13174 (add_breakpoint_condition): Take a struct breakpoint pointer
13175 instead of an address. Adjust.
13176 (gdb_condition_true_at_breakpoint): Rename to ...
13177 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13178 z_type parameter.
13179 (gdb_condition_true_at_breakpoint): Reimplement.
13180 (add_breakpoint_commands): Take a struct breakpoint pointer
13181 instead of an address. Adjust.
13182 (gdb_no_commands_at_breakpoint): Rename to ...
13183 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13184 parameter. Return true if no breakpoint was found. Change debug
13185 output.
13186 (gdb_no_commands_at_breakpoint): Reimplement.
13187 (run_breakpoint_commands): Rename to ...
13188 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13189 and change return type to boolean.
13190 (run_breakpoint_commands): New function.
13191 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13192 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13193 breakpoint. Go through the_target->remove_point instead of
13194 assuming memory breakpoint.
13195 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13196 software and hardware breakpoints.
13197 (reinsert_raw_breakpoint): Go through the_target->insert_point
13198 instead of assuming memory breakpoint.
13199 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13200 software and hardware breakpoints.
13201 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13202 Check both software and hardware breakpoints.
13203 (validate_inserted_breakpoint): Assert the breakpoint is a
13204 software breakpoint. Set the inserted flag to -1 instead of
13205 setting shlib_disabled.
13206 (delete_disabled_breakpoints): Adjust.
13207 (validate_breakpoints): Only validate software breakpoints.
13208 Adjust to inserted flag change.
13209 (check_mem_read, check_mem_write): Skip breakpoint types other
13210 than software breakpoints. Adjust to inserted flag change.
13211 * mem-break.h (enum raw_bkpt_type): New enum.
13212 (raw_breakpoint, struct process_info): Forward declare.
13213 (Z_packet_to_target_hw_bp_type): Delete declaration.
13214 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13215 (set_gdb_breakpoint, delete_gdb_breakpoint)
13216 (clear_breakpoint_conditions): New declarations.
13217 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13218 (breakpoint_inserted_here): Update comment.
13219 (add_breakpoint_condition, add_breakpoint_commands): Replace
13220 address parameter with a breakpoint pointer parameter.
13221 (gdb_breakpoint_here): Update comment.
13222 (delete_gdb_breakpoint_at): Delete.
13223 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13224 * server.c (process_point_options): Take a struct breakpoint
13225 pointer instead of an address. Adjust.
13226 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13227 delete_gdb_breakpoint.
13228 * spu-low.c (spu_target_ops): Install NULL as
13229 supports_z_point_type method.
13230 * target.h: Include mem-break.h.
13231 (struct target_ops) <prepare_to_access_memory>: Update comment.
13232 <supports_z_point_type>: New field.
13233 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13234 instead of a char. Also take a raw breakpoint pointer.
13235 * win32-arm-low.c (the_low_target): Install NULL as
13236 supports_z_point_type.
13237 * win32-i386-low.c (i386_supports_z_point_type): New function.
13238 (i386_insert_point, i386_remove_point): Adjust to new interface.
13239 (the_low_target): Install i386_supports_z_point_type.
13240 * win32-low.c (win32_supports_z_point_type): New function.
13241 (win32_insert_point, win32_remove_point): Adjust to new interface.
13242 (win32_target_ops): Install win32_supports_z_point_type.
13243 * win32-low.h (struct win32_target_ops):
13244 <supports_z_point_type>: New method.
13245 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13246 instead of a char. Also take a raw breakpoint pointer.
13247
932539e3
PA
132482014-05-20 Pedro Alves <palves@redhat.com>
13249
13250 * mem-break.h: Include break-common.h.
13251 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13252 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13253 (Z_packet_to_target_hw_bp_type): New declaration.
13254 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13255 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13256 (Z_PACKET_ACCESS_WP): Delete macros.
13257 (Z_packet_to_hw_type): Delete function.
13258 * i386-low.h: Don't include break-common.h here.
13259 (Z_packet_to_hw_type): Delete declaration.
13260 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13261 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13262 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13263 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13264 * linux-aarch64-low.c: Don't include break-common.h here.
13265 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13266 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13267 (Z_packet_to_target_hw_bp_type): Delete function.
13268 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13269 function.
13270 (mips_insert_point, mips_remove_point): Use
13271 Z_packet_to_target_hw_bp_type.
13272
4ff0d3d8
PA
132732014-05-20 Pedro Alves <palves@redhat.com>
13274
13275 * linux-aarch64-low.c: Include break-common.h.
13276 (enum target_point_type): Delete.
13277 (Z_packet_to_point_type): Rename to ...
13278 (Z_packet_to_target_hw_bp_type): ... this, and return a
13279 target_hw_bp_type instead.
13280 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13281 instead of an enum target_point_type.
13282 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13283 breakpoint type.
13284 (aarch64_dr_state_insert_one_point)
13285 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13286 (aarch64_handle_aligned_watchpoint)
13287 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13288 Take an enum target_hw_bp_type instead of an enum
13289 target_point_type.
13290 (aarch64_supports_z_point_type): New function.
13291 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13292 use Z_packet_to_target_hw_bp_type.
13293
786dc519
JB
132942014-05-20 Joel Brobecker <brobecker@adacore.com>
13295
13296 * configure.ac: Only use -Werror by default when DEVELOPMENT
13297 is true.
13298 * configure: Regenerate.
13299
9e0aa64f
JK
133002014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13301
13302 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13303 * linux-x86-low.c (X86_64_USER_REGS): New.
13304 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13305
2b577b92
YQ
133062014-04-28 Yao Qi <yao@codesourcery.com>
13307
13308 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13309 name.
13310
94611da2
PA
133112014-04-25 Pedro Alves <palves@redhat.com>
13312
13313 PR server/16255
13314 * linux-low.c (linux_attach_fail_reason_string): New function.
13315 (linux_attach_lwp): Delete.
13316 (linux_attach_lwp_1): Rename to ...
13317 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13318 argument. Remove "initial" parameter. Return int instead of
13319 void. Don't error or warn here.
13320 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13321 failure to attach to the tgid. Call warning when failing to
13322 attach to an lwp.
13323 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13324 argument. Remove "initial" parameter. Return int instead of
13325 void. Don't error or warn here.
13326 (linux_attach_fail_reason_string): New declaration.
13327 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13328 interface change. Use linux_attach_fail_reason_string.
13329
01f9f808
MS
133302014-04-24 Michael Sturm <michael.sturm@mintel.com>
13331 Walfred Tedeschi <walfred.tedeschi@intel.com>
13332
13333 * Makefile.in: Added rules to handle new files
13334 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13335 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13336 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13337 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13338 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13339 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13340 x32-avx512-linux.o.
13341 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13342 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13343 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13344 i386/x32-avx512.xml.
13345 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13346 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13347 i386/x32-avx512-linux.xml.
13348 * i387-fp.c (num_avx512_k_registers): New constant for number
13349 of K registers.
13350 (num_avx512_zmmh_low_registers): New constant for number of
13351 lower ZMM registers (0-15).
13352 (num_avx512_zmmh_high_registers): New constant for number of
13353 higher ZMM registers (16-31).
13354 (num_avx512_ymmh_registers): New contant for number of higher
13355 YMM registers (ymm16-31 added by avx521 on x86_64).
13356 (num_avx512_xmm_registers): New constant for number of higher
13357 XMM registers (xmm16-31 added by AVX512 on x86_64).
13358 (struct i387_xsave): Add space for AVX512 registers.
13359 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13360 Add code to handle AVX512 registers.
13361 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13362 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13363 prototypei from generated file.
13364 (tdesc_amd64_avx512_linux): Likewise.
13365 (init_registers_x32_avx512_linux): Likewise.
13366 (tdesc_x32_avx512_linux): Likewise.
13367 (init_registers_i386_avx512_linux): Likewise.
13368 (tdesc_i386_avx512_linux): Likewise.
13369 (x86_64_regmap): Add AVX512 registers.
13370 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13371 mask.
13372 (initialize_low_arch): Add code to initialize AVX512 registers.
13373
51aa91f9
PA
133742014-04-23 Pedro Alves <palves@redhat.com>
13375
13376 * mem-break.c (find_gdb_breakpoint_at): Make static.
13377 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13378
a4165e94
PA
133792014-04-23 Pedro Alves <palves@redhat.com>
13380
13381 * i386-low.c: Don't include break-common.h here.
13382 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13383 prototype to take target_hw_bp_type as argument instead of a Z
13384 packet char.
13385 * i386-low.h: Include break-common.h here.
13386 (Z_packet_to_hw_type): Declare.
13387 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13388 prototypes.
13389 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13390 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13391 (x86_remove_point): Convert the packet number to a
13392 target_hw_bp_type before calling i386_low_remove_watchpoint.
13393 * win32-i386-low.c (i386_insert_point): Convert the packet number
13394 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13395 (i386_remove_point): Convert the packet number to a
13396 target_hw_bp_type before calling i386_low_remove_watchpoint.
13397
b8acf843
PA
133982014-04-23 Pedro Alves <palves@redhat.com>
13399
13400 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13401
d708bcd1
PA
134022014-04-10 Pedro Alves <palves@redhat.com>
13403
13404 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13405 Check if the condition or command is NULL before checking if the
13406 breakpoint is known. On success, return true.
13407 * mem-break.h (add_breakpoint_condition): Document return.
13408 (add_breakpoint_commands): Add describing comment.
13409 * server.c (skip_to_semicolon): New function.
13410 (process_point_options): Use it.
13411
2eec7d5b
PA
134122014-04-09 Pedro Alves <palves@redhat.com>
13413
13414 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13415 to lwpid_of.
13416
fa96cb38
PA
134172014-02-27 Pedro Alves <palves@redhat.com>
13418
13419 PR 12702
13420 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13421 macros.
13422 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13423 output.
13424 (last_thread_of_process_p): Take a PID argument instead of a
13425 thread pointer.
13426 (linux_wait_for_lwp): Delete.
13427 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13428 functions.
13429 (linux_low_filter_event): New function, party factored out from
13430 linux_wait_for_event.
13431 (linux_wait_for_event): Rename to ...
13432 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13433 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13434 sigsuspend. Check for zombie leaders.
13435 (linux_wait_for_event): Reimplement as wrapper around
13436 linux_wait_for_event_filtered.
13437 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13438 a normal or signal exit is seen, it's the whole process exiting.
13439 (wait_for_sigstop): No longer a for_each_inferior callback.
13440 Rewrite on top of linux_wait_for_event_filtered.
13441 (stop_all_lwps): Call wait_for_sigstop directly.
13442 * server.c (resume, handle_target_event): Handle
13443 TARGET_WAITKIND_NO_RESUMED.
13444
d763de10
JB
134452014-02-26 Joel Brobecker <brobecker@adacore.com>
13446
13447 * win32-low.c (psapi_get_dll_name,
13448 * win32_CreateToolhelp32Snapshot): Delete.
13449 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13450 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13451 Delete.
13452 (handle_load_dll): Add function description.
13453 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13454
850a0f76
JB
134552014-02-26 Joel Brobecker <brobecker@adacore.com>
13456
13457 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13458 Add comment.
13459 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13460 base address when calling win32_add_one_solib.
13461 (handle_load_dll): Delete local variable load_addr.
13462 Remove 0x1000 offset applied to DLL base address when calling
13463 win32_add_one_solib.
13464 (handle_unload_dll): Add comment.
13465
f25b3fc3
JB
134662014-02-26 Joel Brobecker <brobecker@adacore.com>
13467
13468 * win32-low.c (win32_add_all_dlls): Renames
13469 win32_ensure_ntdll_loaded. Rewrite function documentation.
13470 Adjust implementation to always load all DLLs.
13471 Add 0x1000 offset to DLL base address when calling
13472 win32_add_one_solib.
13473 (child_initialization_done): New static global.
13474 (do_initial_child_stuff): Set child_initialization_done to
13475 zero during child initialization, and 1 after. Replace call
13476 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13477 Add comment.
13478 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13479 (handle_unload_dll): Add function documentation.
13480 (get_child_debug_event): Ignore load and unload DLL events
13481 during child initialization.
13482
d86d4aaf
DE
134832014-02-20 Doug Evans <dje@google.com>
13484
3bc32da3 13485 Remove global all_lwps.
d86d4aaf
DE
13486 * inferiors.h (ptid_of): Move here from linux-low.h.
13487 (pid_of, lwpid_of): Ditto.
13488 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13489 parameter is a struct thread_info * now.
13490 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13491 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13492 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13493 directly.
13494 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13495 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13496 * linux-arm-low.c (update_registers_callback): Update, "entry"
13497 parameter is a struct thread_info * now.
13498 Fetch lwpid from current_inferior directly.
13499 (arm_insert_point): Pass &all_threads to find_inferior instead of
13500 &all_lwps.
13501 (arm_remove_point): Ditto.
13502 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13503 (arm_prepare_to_resume): Fetch pid from thread.
13504 (arm_read_description): Fetch lwpid from current_inferior directly.
13505 * linux-low.c (all_lwps): Delete.
13506 (delete_lwp): Delete call to remove_inferior.
13507 (handle_extended_wait): Fetch lwpid from thread.
13508 (add_lwp): Don't set lwp->entry.id. Remove call to
13509 add_inferior_to_list.
13510 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13511 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13512 (kill_one_lwp_callback): Ditto.
13513 (linux_kill): Don't dereference NULL pointer.
13514 Fetch ptid,lwpid from thread.
13515 (get_detach_signal): Fetch ptid from thread.
13516 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13517 Simplify call to regcache_invalidate_thread.
13518 (delete_lwp_callback): Update, "entry" parameter is a
13519 struct thread_info * now. Fetch pid from thread.
13520 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13521 (status_pending_p_callback): Update, "entry" parameter is a
13522 struct thread_info * now. Fetch ptid from thread.
13523 (find_lwp_pid): Update, "entry" parameter is a
13524 struct thread_info * now.
13525 (linux_wait_for_lwp): Fetch pid from thread.
13526 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13527 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13528 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13529 (dequeue_one_deferred_signal): Ditto.
13530 (cancel_breakpoint): Fetch ptid from current_inferior.
13531 (linux_wait_for_event): Pass &all_threads to find_inferior,
13532 not &all_lwps. Fetch ptid, lwpid from thread.
13533 (count_events_callback): Update, "entry" parameter is a
13534 struct thread_info * now.
13535 (select_singlestep_lwp_callback): Ditto.
13536 (select_event_lwp_callback): Ditto.
13537 (cancel_breakpoints_callback): Ditto.
13538 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13539 not &all_lwps.
13540 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13541 (unsuspend_one_lwp): Update, "entry" parameter is a
13542 struct thread_info * now.
13543 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13544 not &all_lwps.
13545 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13546 Fetch lwpid from thread, not lwp.
13547 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13548 Pass &all_threads to find_inferior, not &all_lwps.
13549 (send_sigstop): Fetch lwpid from thread, not lwp.
13550 (send_sigstop_callback): Update, "entry" parameter is a
13551 struct thread_info * now.
13552 (suspend_and_send_sigstop_callback): Ditto.
13553 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13554 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13555 struct thread_info * now.
13556 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13557 from thread, lwp.
13558 (lwp_running): Update, "entry" parameter is a
13559 struct thread_info * now.
13560 (stop_all_lwps): Fetch ptid from thread.
13561 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13562 (linux_resume_one_lwp): Fetch lwpid from thread.
13563 (linux_set_resume_request): Update, "entry" parameter is a
13564 struct thread_info * now. Fetch pid, lwpid from thread.
13565 (resume_status_pending_p): Update, "entry" parameter is a
13566 struct thread_info * now.
13567 (need_step_over_p): Ditto. Fetch lwpid from thread.
13568 (start_step_over): Fetch lwpid from thread.
13569 (linux_resume_one_thread): Update, "entry" parameter is a
13570 struct thread_info * now. Fetch lwpid from thread.
13571 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13572 (proceed_one_lwp): Update, "entry" parameter is a
13573 struct thread_info * now. Fetch lwpid from thread.
13574 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13575 struct thread_info * now.
13576 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13577 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13578 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13579 directly.
13580 (regsets_store_inferior_registers): Ditto.
13581 (fetch_register, store_register): Ditto.
13582 (linux_read_memory, linux_write_memory): Ditto.
13583 (linux_request_interrupt): Ditto.
13584 (linux_read_auxv): Ditto.
13585 (linux_xfer_siginfo): Ditto.
13586 (linux_qxfer_spu): Ditto.
13587 (linux_qxfer_libraries_svr4): Ditto.
13588 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13589 moved to inferiors.h.
13590 (get_lwp): Delete.
13591 (get_thread_lwp): Update.
13592 (struct lwp_info): Delete member "entry". Simplify comment for
13593 member "thread".
13594 (all_lwps): Delete.
13595 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13596 current_inferior directly.
13597 (update_watch_registers_callback): Update, "entry" parameter is a
13598 struct thread_info * now. Fetch pid from thread.
13599 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13600 (mips_insert_point): Fetch lwpid from current_inferior.
13601 Pass &all_threads to find_inferior, not &all_lwps.
13602 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13603 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13604 directly.
13605 (mips_stopped_data_address): Ditto.
13606 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13607 directly.
13608 * linux-tile-low.c (tile_arch_setup): Ditto.
13609 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13610 (update_debug_registers_callback): Update, "entry" parameter is a
13611 struct thread_info * now. Fetch pid from thread.
13612 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13613 Pass &all_threads to find_inferior, not &all_lwps.
13614 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13615 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13616 Pass &all_threads to find_inferior, not &all_lwps.
13617 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13618 (i386_dr_low_get_status): Ditto.
13619 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13620 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13621 (x86_linux_read_description): Ditto.
13622 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13623
3b8361aa
DE
136242014-02-20 Doug Evans <dje@google.com>
13625
13626 * inferiors.c (get_first_inferior): Fix buglet.
13627
f7667f0d
DE
136282014-02-19 Doug Evans <dje@google.com>
13629
13630 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13631 * inferiors.c (add_thread): Change result type to struct thread_info *.
13632 All callers updated.
13633 (add_lwp): Call add_thread here instead of in callers.
13634 All callers updated.
13635 * linux-low.h (get_lwp_thread): Rewrite.
13636 (struct lwp_info): New member "thread".
13637
b3312d80
DE
136382014-02-19 Doug Evans <dje@google.com>
13639
13640 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13641 All callers updated.
13642
ecc6f45c
DE
136432014-02-19 Doug Evans <dje@google.com>
13644
13645 * inferiors.c (add_thread): Fix whitespace.
13646
649ebbca
DE
136472014-02-19 Doug Evans <dje@google.com>
13648
13649 * dll.c (clear_dlls): Replace accessing list implemention details
13650 with API function.
13651 * gdbthread.h (get_first_thread): Declare.
13652 * inferiors.c (for_each_inferior_with_data): New function.
13653 (get_first_thread): New function.
13654 (find_thread_ptid): Simplify.
13655 (get_first_inferior): New function.
13656 (clear_list): Delete.
13657 (one_inferior_p): New function.
13658 (clear_inferior_list): New function.
13659 (clear_inferiors): Update.
13660 * inferiors.h (for_each_inferior_with_data): Declare.
13661 (clear_inferior_list): Declare.
13662 (one_inferior_p): Declare.
13663 (get_first_inferior): Declare.
13664 * linux-low.c (linux_wait_for_event): Replace accessing list
13665 implemention details with API function.
13666 * server.c (target_running): Ditto.
13667 (accumulate_file_name_length): New function.
13668 (emit_dll_description): New function.
13669 (handle_qxfer_libraries): Replace accessing list implemention
13670 details with API function.
13671 (handle_qxfer_threads_worker): New function.
13672 (handle_qxfer_threads_proper): Replace accessing list implemention
13673 details with API function.
13674 (handle_query): Ditto.
13675 (visit_actioned_threads_callback_ftype): New typedef.
13676 (visit_actioned_threads_data): New struct.
13677 (visit_actioned_threads): Rewrite to be find_inferior callback.
13678 (resume): Call find_inferior.
13679 (handle_status): Replace accessing list implemention
13680 details with API function.
13681 (process_serial_event): Replace accessing list implemention details
13682 with API function.
13683 * target.c (set_desired_inferior): Replace accessing list implemention
13684 details with API function.
13685 * tracepoint.c (same_process_p): New function.
13686 (gdb_agent_about_to_close): Replace accessing list implemention
13687 details with API function.
13688 * win32-low.c (child_delete_thread): Replace accessing list
13689 implemention details with API function.
13690 (match_dll_by_basename): New function.
13691 (dll_is_loaded_by_basename): New function.
13692 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13693 details call to dll_is_loaded_by_basename.
13694
80894984
DE
136952014-02-19 Doug Evans <dje@google.com>
13696
13697 * dll.h (struct dll_info): Add comment.
13698 * gdbthread.h (struct thread_info): Add comment.
13699 (current_ptid): Simplify.
13700 * inferiors.c (add_process): Update.
13701 (remove_process): Update.
13702 * inferiors.h (struct process_info): Rename member "head" to "entry".
13703 * linux-low.c (delete_lwp): Update.
13704 (add_lwp): Update.
13705 (last_thread_of_process_p): Update.
13706 (kill_one_lwp_callback, linux_kill): Update.
13707 (status_pending_p_callback): Update.
13708 (wait_for_sigstop): Update. Simplify read of ptid.
13709 (start_step_over): Update.
13710 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13711 (get_lwp_thread): Update.
13712 (struct lwp_info): Rename member "head" to "entry".
13713 * regcache.h (inferior_list_entry): Delete.
13714 * server.c (kill_inferior_callback): Update.
13715 (detach_or_kill_inferior_callback): Update.
13716 (print_started_pid): Update.
13717 (print_attached_pid): Update.
13718 (process_serial_event): Simplify read of ptid.
13719 * thread-db.c (thread_db_create_event): Update.
13720 (thread_db_get_tls_address): Update.
13721 * win32-low.c (current_inferior_ptid): Simplify.
13722
46917d26
TT
137232014-02-19 Tom Tromey <tromey@redhat.com>
13724
13725 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13726 argument.
13727 (target_supports_btrace): Update.
13728
0759a81e
YQ
137292014-02-14 Yao Qi <yao@codesourcery.com>
13730
13731 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13732 (rsp-low-ipa.o): New target.
13733
a7191e8b
TT
137342014-02-12 Tom Tromey <tromey@redhat.com>
13735
13736 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13737 convert_ascii_to_int.
13738 * regcache.c (registers_to_string): Likewise.
13739 * remote-utils.c (decode_M_packet): Likewise.
13740 * server.c (process_serial_event): Likewise.
13741
ff0e980e
TT
137422014-02-12 Tom Tromey <tromey@redhat.com>
13743
13744 * server.c (handle_query, handle_v_run): Use hex2bin, not
13745 unhexify.
13746 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13747
e9371aff
TT
137482014-02-12 Tom Tromey <tromey@redhat.com>
13749
13750 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13751 convert_int_to_ascii.
13752 * regcache.c (registers_to_string, collect_register_as_string):
13753 Likewise.
13754 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13755 Likewise.
13756 * server.c (process_serial_event): Likewise.
13757 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13758 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13759
971dc0b8
TT
137602014-02-12 Tom Tromey <tromey@redhat.com>
13761
13762 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13763 bin2hex, not hexify.
13764 * tracepoint.c (cmd_qtstatus): Likewise.
13765
0a822afb
TT
137662014-02-12 Tom Tromey <tromey@redhat.com>
13767
13768 * remote-utils.c (monitor_output): Pass explicit length to
13769 hexify.
13770
9c3d6531
TT
137712014-02-12 Tom Tromey <tromey@redhat.com>
13772
13773 * tracepoint.c: Include rsp-low.h.
13774 * server.c: Include rsp-low.h.
13775 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13776 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13777 declare.
13778 * remote-utils.c: Include rsp-low.h.
13779 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13780 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13781 (convert_int_to_ascii, convert_ascii_to_int): Move to
13782 common/rsp-low.c.
13783 * regcache.c: Include rsp-low.h.
13784 * ax.c: Include rsp-low.h.
13785 * Makefile.in (SFILES): Add common/rsp-low.c.
13786 (OBS): Add rsp-low.o.
13787 (rsp-low.o): New target.
13788
01fd3ea5
TT
137892014-02-12 Tom Tromey <tromey@redhat.com>
13790
13791 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13792 Include print-utils.h.
13793 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13794 (plongest, thirty_two, phex_nz): Remove.
13795 * Makefile.in (SFILES): Add common/print-utils.c.
13796 (OBS): Add print-utils.o.
13797 (print-utils-ipa.o): New target.
13798 (print-utils.o): New target.
13799 (IPA_OBJS): Add print-utils-ipa.o.
13800
e99dc820
TT
138012014-02-06 Tom Tromey <tromey@redhat.com>
13802
13803 * Makefile.in (SFILES): Fix indentation.
13804
ee1e2d4f
DE
138052014-02-05 Doug Evans <dje@google.com>
13806
13807 * linux-low.c (linux_wait_for_event): Improve comment.
13808 (linux_wait_1): Keep current_inferior in sync with event_child.
13809
f5a02773
DE
138102014-01-22 Doug Evans <dje@google.com>
13811
13812 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13813
87ce2a04
DE
138142014-01-22 Doug Evans <dje@google.com>
13815
13816 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13817 * configure: Regenerate.
13818 * config.in: Regenerate.
13819 * Makefile.in (SFILES): Add debug.c.
13820 (OBS): Add debug.o.
13821 * debug.c: New file.
13822 * debug.h: New file.
13823 * linux-aarch64-low.c (*): Update all debugging printfs to use
13824 debug_printf instead of fprintf.
13825 * linux-arm-low.c (*): Ditto.
13826 * linux-cris-low.c (*): Ditto.
13827 * linux-crisv32-low.c (*): Ditto.
13828 * linux-m32r-low.c (*): Ditto.
13829 * linux-sparc-low.c (*): Ditto.
13830 * linux-x86.c (*): Ditto.
13831 * linux-low.c (*): Ditto.
13832 (linux_wait_1): Add calls to debug_enter, debug_exit.
13833 (linux_wait): Remove redundant debugging printf.
13834 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13835 (linux_resume, unstop_all_lwps): Ditto.
13836 * mem-break.c (*): Update all debugging printfs to use
13837 debug_printf instead of fprintf.
13838 * remote-utils.c (*): Ditto.
13839 * thread-db.c (*): Ditto.
13840 * server.c #include <ctype.h>, "gdb_vecs.h".
13841 (debug_threads): Moved to debug.c.
13842 (*): Update all debugging printfs to use debug_printf instead of
13843 fprintf.
13844 (start_inferior): Replace call to fflush with call to debug_flush.
13845 (monitor_show_help): Mention set debug-format.
13846 (parse_debug_format_options): New function.
13847 (handle_monitor_command): Handle "monitor set debug-format".
13848 (gdbserver_usage): Mention --debug-format.
13849 (main): Parse --debug-format.
13850 * server.h (debug_threads): Declaration moved to debug.h.
13851 #include "debug.h".
13852 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13853 trace_debug_1 that uses debug_printf.
13854 (tracepoint_look_up_symbols): Update all debugging printfs to use
13855 debug_printf instead of fprintf.
13856
e671835b
BS
138572014-01-20 Baruch Siach <baruch@tkos.co.il>
13858
13859 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13860 sys/ptrace.h.
13861
b5737fa9
PA
138622014-01-17 Pedro Alves <palves@redhat.com>
13863
ea38d2a9 13864 PR build/16445
c7faa97a
PA
13865 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13866 defined after including gdb_proc_service.h.
b5737fa9 13867
40ed484e
DE
138682014-01-16 Doug Evans <dje@google.com>
13869
13870 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13871 (match_dll): Use it.
13872
969c39fb
MM
138732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13874
13875 * target.h (target_ops) <read_btrace>: Change parameters and
13876 return type to allow error reporting.
13877 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13878 trace reading errors on.
13879 * linux-low.c (linux_low_read_btrace): Pass trace reading
13880 errors on.
13881 (linux_low_disable_btrace): New.
13882
ab7f45ba
DE
138832014-01-15 Doug Evans <dje@google.com>
13884
13885 * inferiors.c (thread_id_to_gdb_id): Delete.
13886 * inferiors.h (thread_id_to_gdb_id): Delete.
13887
66af0f44
EZ
138882014-01-13 Eli Zaretskii <eliz@gnu.org>
13889
13890 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13891 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13892 versions.
13893
9939e131
PA
138942014-01-08 Pedro Alves <palves@redhat.com>
13895
13896 * server.c (handle_status): Don't discard previous queued stop
13897 replies or thread's pending status here.
13898 (main) <disconnection>: Do it here instead.
13899
b7ea362b
PA
139002014-01-08 Pedro Alves <palves@redhat.com>
13901
13902 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13903 * server.c (visit_actioned_threads, handle_pending_status): New
13904 function.
13905 (handle_v_cont): Factor out parts to ...
13906 (resume): ... this new function. If in all-stop, and a thread
13907 being resumed has a pending status, report it without actually
13908 resuming.
13909 (myresume): Adjust to use the new 'resume' function.
13910 (clear_pending_status_callback, set_pending_status_callback)
13911 (find_status_pending_thread_callback): New functions.
13912 (handle_status): Handle the case of multiple threads having
13913 interesting statuses to report. Report threads' real last signal
13914 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13915 with an interesting thread to report the status for, instead of
13916 always reporting the status of the first thread.
13917
28498c42
JB
139182014-01-01 Joel Brobecker <brobecker@adacore.com>
13919
13920 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13921 * gdbreplay.c (gdbreplay_version): Likewise.
13922
f45c82da
YZ
139232013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13924
13925 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13926 iov.iov_len with the real length in use.
13927
379a5e2d
JB
139282013-12-13 Joel Brobecker <brobecker@adacore.com>
13929
13930 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13931 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13932 for all targets that use win32-low.c.
13933 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13934 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13935
4210d83e
PA
139362013-12-13 Pedro Alves <palves@redhat.com>
13937
13938 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13939 if equal to TARGET_WAITKIND_LOADED.
13940 * win32-low.c (cached_status): New static global.
13941 (win32_wait): Add declaration.
13942 (do_initial_child_stuff): Flush all initial pending debug events
13943 up to the initial breakpoint.
13944 (win32_wait): If CACHED_STATUS was set, return that instead
13945 of doing a real wait. Remove the code resuming the execution
13946 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13947 during the initial phase. Also remove the code changing
13948 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13949 TARGET_WAITKIND_STOPPED.
13950
e7f0d979
YQ
139512013-12-11 Yao Qi <yao@codesourcery.com>
13952
13953 * notif.c (handle_notif_ack): Return 0 if no notification
13954 matches.
13955
ebcf782c
DE
139562013-11-20 Doug Evans <dje@google.com>
13957
13958 * linux-low.c (linux_set_resume_request): Fix comment.
13959
20ad9378
DE
139602013-11-20 Doug Evans <dje@google.com>
13961
13962 * linux-low.c (resume_status_pending_p): Tweak comment.
13963
a196ebeb
WT
139642013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13965
13966 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13967 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13968 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13969 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13970 (srv_amd64_regobj): Add amd64-mpx.o.
13971 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13972 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13973 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13974 * i387-fp.c (num_pl_bnd_register) Added constant.
13975 (num_pl_bnd_cfg_registers) Added constant.
13976 (struct i387_xsave) Added reserved area and MPX fields.
13977 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13978 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13979 function.
13980 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13981 (init_registers_amd64_mpx_linux): Declare new function.
13982 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13983 (x86_64_regmap): Add MPX registers.
13984 (x86_linux_read_description): Add MPX case.
13985 (initialize_low_arch): Initialize MPX targets.
13986
0080a2f6
TT
139872013-11-18 Tom Tromey <tromey@redhat.com>
13988
13989 * configure: Rebuild.
13990 * configure.ac: Don't check for stdlib.h.
13991 * gdbreplay.c: Unconditionally include stdlib.h.
13992
2978b111
TT
139932013-11-18 Tom Tromey <tromey@redhat.com>
13994
13995 * config.in: Rebuild.
13996 * configure: Rebuild.
13997 * configure.ac: Don't use AC_HEADER_DIRENT.
13998
a3d08894
TT
139992013-11-18 Tom Tromey <tromey@redhat.com>
14000
14001 * server.h: Don't check HAVE_STRING_H.
14002 * gdbreplay.c: Don't check HAVE_STRING_H.
14003 * configure: Rebuild.
14004
0a5dd17d
TT
140052013-11-18 Tom Tromey <tromey@redhat.com>
14006
14007 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14008 LIBGNU.
14009
1bd2f0ba
TT
140102013-11-08 Tom Tromey <tromey@redhat.com>
14011
14012 * configure, config.in: Rebuild.
14013 * configure.ac: Remove unused configury.
14014
3266f10b
TT
140152013-11-08 Tom Tromey <tromey@redhat.com>
14016
14017 * acinclude.m4: Include common.m4, codeset.m4.
14018 * configure, config.in: Rebuild.
14019 * configure.ac: Use GDB_AC_COMMON.
14020
6682d959
AA
140212013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14022
14023 * linux-s390-low.c (HWCAP_S390_TE): New define.
14024 (s390_arch_setup): Consider the TE field in the HWCAP for
14025 determining 'have_regset_tdb'.
14026
fd0a4d76
SDJ
140272013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14028
14029 PR gdb/16014
14030 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14031 call to sizeof.
14032
1a3d890b
PA
140332013-10-02 Pedro Alves <palves@redhat.com>
14034
14035 * server.c (process_serial_event): Don't output "GDBserver
14036 exiting" if GDB is connected through stdio.
14037 * target.c (mywait): Likewise, be silent if GDB is connected
14038 through stdio.
14039
97ad4581
JB
140402013-10-01 Joel Brobecker <brobecker@adacore.com>
14041
14042 * lynx-low.c (lynx_add_threads_after_attach): New function.
14043 (lynx_attach): Remove call to add_thread. Add call to
14044 lynx_add_threads_after_attach instead.
14045
5b4e221c
MF
140462013-09-28 Mike Frysinger <vapier@gentoo.org>
14047
14048 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14049 * config.in, configure: Regenerated.
14050
ee47b2f8
YQ
140512013-09-18 Yao Qi <yao@codesourcery.com>
14052
14053 PR server/15959
14054 * server.c (start_inferior): Clear 'resume_info'.
14055
d6707650 140562013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14057
d6707650
JW
14058 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14059 for each register.
14060
9243dd0e 140612013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14062
9243dd0e
JW
14063 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14064 linux-tile-low.o to srv_tgtobj.
14065
c623a6ef
WN
140662013-09-16 Will Newton <will.newton@linaro.org>
14067
14068 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14069 out regs.
14070
fb71d39e
PA
140712013-09-06 Pedro Alves <palves@redhat.com>
14072
14073 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14074 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14075 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14076 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14077 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14078 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14079
8e7e9910
PA
140802013-09-06 Pedro Alves <palves@redhat.com>
14081
14082 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14083 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14084
7c3a12ca
PA
140852013-09-06 Pedro Alves <palves@redhat.com>
14086
14087 * linux-amd64-ipa.c: Include tracepoint.h.
14088 * linux-i386-ipa.c: Include tracepoint.h.
14089
8eb3d7b6
RW
140902013-09-06 Ricard Wanderlof <ricardw@axis.com>
14091
14092 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14093 (ps_get_thread_area): New function.
14094
eddddb9d
RW
140952013-09-06 Ricard Wanderlof <ricardw@axis.com>
14096
14097 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14098 (initialize_low_arch): Call init_registers_crisv32 rather than
14099 init_register_crisv32.
14100
533b0600
PA
141012013-09-05 Pedro Alves <palves@redhat.com>
14102
14103 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14104 to ...
14105 * hostio.h: ... this new file.
14106 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14107 win32-low.c: Include hostio.h.
14108
0ce3d3b5
PA
141092013-09-05 Pedro Alves <palves@redhat.com>
14110
14111 * server.h (gdb_client_data, handler_func, callback_handler_func)
14112 (delete_file_handler, add_file_handler, append_callback_event)
14113 (delete_callback_event, start_event_loop, initialize_event_loop):
14114 Move to event-loop.h and include it.
14115 * event-loop.h: New file.
14116
799cdc37
PA
141172013-09-05 Pedro Alves <palves@redhat.com>
14118
14119 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14120 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14121 (loaded_dll, unloaded_dll): Move to ...
14122 * dll.h: ... this new file.
14123 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14124
6a6bbd9d
PA
141252013-09-05 Pedro Alves <palves@redhat.com>
14126
14127 * server.h (current_process, get_thread_process, all_processes)
14128 (add_inferior_to_list, for_each_inferior, current_inferior)
14129 (remove_inferior, add_process, remove_process, find_process_pid)
14130 (have_started_inferiors_p, have_attached_inferiors_p)
14131 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14132 (clear_inferiors, find_inferior, find_inferior_id)
14133 (inferior_target_data, set_inferior_target_data)
14134 (inferior_regcache_data, set_inferior_regcache_data): Move to
14135 inferiors.h, and include it.
14136 * inferiors.h: New file.
14137
f699aaba
PA
141382013-09-05 Pedro Alves <palves@redhat.com>
14139
14140 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14141 Move ...
72f4393d 14142 * ax.h: ... here.
f699aaba 14143
c144c7a0
PA
141442013-09-05 Pedro Alves <palves@redhat.com>
14145
14146 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14147 tracepoint.h.
14148 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14149 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14150 (handle_tracepoint_general_set, handle_tracepoint_query)
14151 (tracepoint_finished_step, tracepoint_was_hit)
14152 (release_while_stepping_state_list, current_traceframe)
14153 (in_readonly_region, traceframe_read_mem)
14154 (fetch_traceframe_registers, traceframe_read_sdata)
14155 (traceframe_read_info, struct fast_tpoint_collect_status)
14156 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14157 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14158 (supply_fast_tracepoint_registers)
14159 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14160 (ipa_tdesc, claim_trampoline_space)
14161 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14162 (agent_mem_read, agent_get_trace_state_variable_value)
14163 (agent_set_trace_state_variable_value, agent_tsv_read)
14164 (agent_mem_read_string, get_raw_reg_func_addr)
14165 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14166 * tracepoint.h: ... this new file.
14167
ff42e6ab
PA
141682013-09-05 Pedro Alves <palves@redhat.com>
14169
14170 * server.h (perror_with_name, error, fatal, warning, paddress)
14171 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14172 include it.
14173 * utils.h: New file.
14174
541af0f4
PA
141752013-09-05 Pedro Alves <palves@redhat.com>
14176
14177 * server.h (remote_debug, noack_mode, transport_is_reliable)
14178 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14179 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14180 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14181 (write_enn, initialize_async_io, enable_async_io)
14182 (disable_async_io, check_remote_input_interrupt_request)
14183 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14184 (dead_thread_notify, prepare_resume_reply)
14185 (decode_address_to_semicolon, decode_address, decode_m_packet)
14186 (decode_M_packet, decode_X_packet, decode_xfer_write)
14187 (decode_search_memory_packet, unhexify, hexify)
14188 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14189 (look_up_one_symbol, relocate_instruction)
14190 (monitor_output): Move to remote-utils.h, and include it.
14191 * remote-utils.h: New file.
14192
eebdf26b
PA
141932013-09-05 Pedro Alves <palves@redhat.com>
14194
14195 * server.h (_): Delete.
14196
3aafd2ff
PA
141972013-09-02 Pedro Alves <palves@redhat.com>
14198
14199 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14200 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14201 allocated.
14202 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14203
cee83bcb
PM
142042013-09-02 Pierre Muller <muller@sourceware.org>
14205
14206 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14207 or WriteProcessMemory complete successfully and handle
14208 ERROR_PARTIAL_COPY error.
14209
9a13b2fa
PA
142102013-09-02 Pedro Alves <palves@redhat.com>
14211
14212 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14213 error instead of EIO.
14214
602e3198
JK
142152013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14216
14217 PR server/15604
14218 * linux-low.c: Include filestuff.h.
14219 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14220 * lynx-low.c: Include filestuff.h.
14221 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14222 * server.c: Include filestuff.h.
14223 (main): Call notice_open_fds.
14224 * spu-low.c: Include filestuff.h.
14225 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14226
96d7229d
LM
142272013-08-22 Luis Machado <lgustavo@codesourcery.com>
14228
14229 * Makefile.in: Explain why ../target and ../nat are not
14230 listed as include file search paths.
14231 (linux-waitpid.o): New object file rule.
14232 * configure.srv (srv_native_linux_obj): New variable.
14233 Replace all occurrences of linux native object files with
14234 $srv_native_linux_obj.
14235 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14236 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14237 (linux_enable_event_reporting): Remove declaration.
14238 (my_waitpid): Moved to common/linux-waitpid.c.
14239 (linux_wait_for_event): Pass ptid when calling
14240 linux_enable_event_reporting.
14241 (linux_supports_tracefork_flag): Remove.
14242 (linux_enable_event_reporting): Likewise.
14243 (linux_tracefork_grandchild): Remove.
14244 (STACK_SIZE): Moved to common/linux-ptrace.c.
14245 (linux_tracefork_child): Remove.
14246 (linux_test_for_tracefork): Remove.
14247 (linux_look_up_symbols): Call linux_supports_traceclone.
14248 (initialize_low): Remove call to linux_test_for_tracefork.
14249 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14250 common/linux-ptrace.h.
14251 (PTRACE_TYPE_ARG4): Likewise.
14252 Include linux-ptrace.h.
14253
32940073
PA
142542013-08-21 Pedro Alves <palves@redhat.com>
14255
14256 * config.in: Renegerate.
14257
33b60d58 142582013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14259
33b60d58
LM
14260 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14261 (SFILES): Remove $(srcdir)/common/target-common.c and
14262 add $(srcdir)/target/waitstatus.c.
14263 (OBS): Remove target-common.o and add waitstatus.o.
14264 (server_h): Remove $(srcdir)/../common/target-common.h and
14265 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14266 and $(srcdir)/../target/waitstatus.h.
14267 (target-common.o): Remove.
14268 (waitstatus.o): New target object file.
14269 * target.h: Do not include target-common.h and
14270 include target/resume.h, target/wait.h and
14271 target/waitstatus.h.
14272
b8e1b30e
LM
142732013-08-13 Luis Machado <lgustavo@codesourcery.com>
14274
14275 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14276 to PTRACE_TYPE_ARG3.
14277 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14278 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14279 PTRACE_TYPE_ARG4.
14280 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14281 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14282
7a60ad40
YQ
142832013-07-27 Jie Zhang <jie@codesourcery.com>
14284 Daniel Jacobowitz <dan@codesourcery.com>
14285 Yao Qi <yao@codesourcery.com>
14286
14287 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14288 (mips-linux-watch.o): New rule.
14289 (mips_linux_watch_h): New variable.
14290 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14291 srv_tgtobj.
14292 * linux-mips-low.c: Include mips-linux-watch.h.
14293 (struct arch_process_info, struct arch_lwp_info): New.
14294 (update_watch_registers_callback): New function.
14295 (mips_linux_new_process, mips_linux_new_thread) New functions.
14296 (mips_linux_prepare_to_resume, mips_insert_point): New
14297 functions.
14298 (mips_remove_point, mips_stopped_by_watchpoint): New
14299 functions.
14300 (rsp_bp_type_to_target_hw_bp_type): New function.
14301 (mips_stopped_data_address): New function.
14302 (the_low_target): Add watchpoint support functions.
14303
de6f69ad
YQ
143042013-07-27 Yao Qi <yao@codesourcery.com>
14305
14306 * i386-low.c: Include break-common.h.
14307 (enum target_hw_bp_type): Remove.
14308
3360c0bf
LM
143092013-07-24 Luis Machado <lgustavo@codesourcery.com>
14310
14311 * Makefile.in (SFILES): /common/target-common.c.
14312 (OBS): Add target-common.o.
14313 (server_h): Add $(srcdir)/../common/target-common.h.
14314 (target-common.o): New target.
14315 * server.c (queue_stop_reply_callback): Free
14316 status string after use.
14317 * target.c (target_waitstatus_to_string): Remove.
14318 * target.h: Include target-common.h.
14319 (resume_kind): Likewise.
14320 (target_waitkind): Likewise.
14321 (target_waitstatus): Likewise.
14322 (TARGET_WNOHANG): Likewise.
14323
bd885420
YQ
143242013-07-04 Yao Qi <yao@codesourcery.com>
14325
14326 * Makefile.in (host_alias): Use @host_noncanonical@.
14327 (target_alias): Use @target_noncanonical@.
14328 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14329 ACX_NONCANONICAL_HOST.
14330 * configure: Regenerated.
14331
14332 Revert:
14333 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14334
14335 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14336 * configure: Rebuild.
14337 * Makefile.in (version_host, version_target): Get from configure.
14338 (version.c): Use $(version_host) and $(version_target).
14339
17ef446e
PA
143402013-07-03 Pedro Alves <palves@redhat.com>
14341
14342 * Makefile.in (config.status): Depend on development.sh.
14343 * acinclude.m4: Include libmcheck.m4.
14344 * configure: Regenerate.
14345
7a9a7487
MG
143462013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14347
14348 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14349 attribute inside the parentheses.
14350 (winapi_DebugSetProcessKillOnExit): Ditto.
14351 (winapi_DebugBreakProcess): Ditto.
14352 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14353
49b64de6
MG
143542013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14355
14356 * notif.h (notif_event): Add a dummy member to avoid compiler
14357 errors.
14358
d5749ee7
PA
143592013-07-01 Pedro Alves <palves@redhat.com>
14360
14361 * hostio.c (HOSTIO_PATH_MAX): Define.
14362 (require_filename, handle_open, handle_unlink, handle_readlink):
14363 Use it.
14364
d8d2a3ee
PA
143652013-07-01 Pedro Alves <palves@redhat.com>
14366
14367 * server.h: Include "pathmax.h".
14368 * linux-low.c: Don't include sys/param.h.
14369 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14370 MAXPATHLEN.
14371 * win32-low.c: Don't include sys/param.h.
14372 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14373
bc7dea8d
PA
143742013-07-01 Pedro Alves <palves@redhat.com>
14375
14376 * event-loop.c: Don't check HAVE_UNISTD_H before including
14377 <unistd.h>.
14378 * gdbreplay.c: Likewise.
14379 * remote-utils.c: Likewise.
14380 * server.c: Likewise.
14381 * configure.ac: Don't check for unistd.h.
14382 * configure: Regenerate.
14383
d6c2da54
TT
143842013-06-28 Tom Tromey <tromey@redhat.com>
14385
14386 * Makefile.in (version.c): Use version.in, not
14387 common/version.in.
14388
257b6bec
MG
143892013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14390
14391 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14392 * configure: Rebuild.
14393 * Makefile.in (version_host, version_target): Get from configure.
14394 (version.c): Use $(version_host) and $(version_target).
14395
86ebe149
DK
143962013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14397
14398 Fix trace-status to output user name without trailing colon.
14399 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14400
f30aa5af
DK
144012013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14402
14403 Fix trace-status to output proper start-time and stop-time.
14404 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14405 output start time and stop time in hex as gdb expects.
14406
28a93511
YQ
144072013-06-26 Pedro Alves <pedro@codesourcery.com>
14408
14409 * tracepoint.c (build_traceframe_info_xml): Output trace state
14410 variables present in the trace buffer.
14411
01208463
TT
144122013-06-24 Tom Tromey <tromey@redhat.com>
14413
14414 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14415 create-version.sh.
14416 (version.o): Remove.
14417 * gdbreplay.c: Include version.h.
14418 (version, host_name): Don't declare.
14419 * server.h: Include version.h.
14420 (version, host_name): Don't declare.
14421
760256f9
PA
144222013-06-12 Pedro Alves <palves@redhat.com>
14423
14424 * linux-x86-low.c (linux_is_elf64): Delete global.
14425 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14426 with local linux_pid_exe_is_elf_64_file use.
14427
030031ee
PA
144282013-06-11 Pedro Alves <palves@redhat.com>
14429
14430 * linux-low.c (regset_disabled, disable_regset): New functions.
14431 (regsets_fetch_inferior_registers)
14432 (regsets_store_inferior_registers): Use them.
14433 (initialize_regsets_info); Don't allocate the disabled_regsets
14434 array here.
14435 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14436 comment.
14437
5da6eb0a
PA
144382013-06-11 Pedro Alves <palves@redhat.com>
14439
14440 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14441 xmalloc.
14442
7e5aaa09
PA
144432013-06-11 Pedro Alves <palves@redhat.com>
14444
14445 * linux-x86-low.c (initialize_low_arch): Call
14446 init_registers_x32_avx_linux.
14447
d878444c
JK
144482013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14449
14450 Fix compatibility with Android Bionic.
14451 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14452 it is not empty.
14453
3aee8918
PA
144542013-06-07 Pedro Alves <palves@redhat.com>
14455
5f2b57b5 14456 PR server/14823
3aee8918
PA
14457 * Makefile.in (OBS): Add tdesc.o.
14458 (IPA_OBJS): Add tdesc-ipa.o.
14459 (tdesc-ipa.o): New rule.
14460 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14461 interface.
14462 * linux-low.c (new_inferior): Delete.
14463 (disabled_regsets, num_regsets): Delete.
14464 (linux_add_process): Adjust to set the new per-process
14465 new_inferior flag.
14466 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14467 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14468 was a stop. When calling arch_setup, switch the current inferior
14469 to the thread that got an event.
14470 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14471 (regsets_fetch_inferior_registers)
14472 (regsets_store_inferior_registers): New regsets_info parameter.
14473 Adjust to use it.
14474 (linux_register_in_regsets): New regs_info parameter. Adjust to
14475 use it.
14476 (register_addr, fetch_register, store_register): New usrregs_info
14477 parameter. Adjust to use it.
14478 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14479 parameter regs_info. Adjust to use it.
14480 (linux_fetch_registers): Get the current inferior's regs_info, and
14481 adjust to use it.
14482 (linux_store_registers): Ditto.
14483 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14484 (initialize_low): Don't initialize the target_regsets here. Call
14485 initialize_low_arch.
14486 * linux-low.h (target_regsets): Delete declaration.
14487 (struct regsets_info): New.
14488 (struct usrregs_info): New.
14489 (struct regs_info): New.
14490 (struct process_info_private) <new_inferior>: New field.
14491 (struct linux_target_ops): Delete the num_regs, regmap, and
14492 regset_bitmap fields. New field regs_info.
14493 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14494 * i387-fp.c (num_xmm_registers): Delete.
14495 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14496 calls to new interface.
14497 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14498 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14499 Infer the number of xmm registers from the regcache's target
14500 description.
14501 * i387-fp.h (num_xmm_registers): Delete.
14502 * inferiors.c (add_thread): Don't install the thread's regcache
14503 here.
14504 * proc-service.c (gregset_info): Fetch the current inferior's
14505 regs_info. Adjust to use it.
14506 * regcache.c: Include tdesc.h.
14507 (register_bytes, reg_defs, num_registers)
14508 (gdbserver_expedite_regs): Delete.
14509 (get_thread_regcache): If the thread doesn't have a regcache yet,
14510 create one, instead of aborting gdbserver.
14511 (regcache_invalidate_one): Rename to ...
14512 (regcache_invalidate_thread): ... this.
14513 (regcache_invalidate_one): New.
14514 (regcache_invalidate): Only invalidate registers of the current
14515 process.
14516 (init_register_cache): Add target_desc parameter, and use it.
14517 (new_register_cache): Ditto. Assert the target description has a
14518 non zero registers_size.
14519 (regcache_cpy): Add assertions. Adjust.
14520 (realloc_register_cache, set_register_cache): Delete.
14521 (registers_to_string, registers_from_string): Adjust.
14522 (find_register_by_name, find_regno, find_register_by_number)
14523 (register_cache_size): Add target_desc parameter, and use it.
14524 (free_register_cache_thread, free_register_cache_thread_one)
14525 (regcache_release, register_cache_size): New.
14526 (register_size): Add target_desc parameter, and use it.
14527 (register_data, supply_register, supply_register_zeroed)
14528 (supply_regblock, supply_register_by_name, collect_register)
14529 (collect_register_as_string, collect_register_by_name): Adjust.
14530 * regcache.h (struct target_desc): Forward declare.
14531 (struct regcache) <tdesc>: New field.
14532 (init_register_cache, new_register_cache): Add target_desc
14533 parameter.
14534 (regcache_invalidate_thread): Declare.
14535 (regcache_invalidate_one): Delete declaration.
14536 (regcache_release): Declare.
14537 (find_register_by_number, register_cache_size, register_size)
14538 (find_regno): Add target_desc parameter.
14539 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14540 declarations.
14541 * remote-utils.c: Include tdesc.h.
14542 (outreg, prepare_resume_reply): Adjust.
14543 * server.c: Include tdesc.h.
14544 (gdbserver_xmltarget): Delete declaration.
14545 (get_features_xml, process_serial_event): Adjust.
14546 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14547 declare.
14548 (struct process_info) <tdesc>: New field.
14549 (ipa_tdesc): Declare.
14550 * tdesc.c: New file.
14551 * tdesc.h: New file.
14552 * tracepoint.c: Include tdesc.h.
14553 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14554 (get_context_regcache): Adjust to pass ipa_tdesc down.
14555 (do_action_at_tracepoint): Adjust to get the register cache size
14556 from the context regcache's description.
14557 (traceframe_walk_blocks): Adjust to get the register cache size
14558 from the current trace frame's description.
14559 (traceframe_get_pc): Adjust to get current trace frame's
14560 description and pass it down.
14561 (gdb_collect): Adjust to get the register cache size from the
14562 IPA's description.
14563 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14564 (gdbserver_xmltarget): Delete.
14565 (initialize_low_tracepoint): Set the ipa's target description.
14566 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14567 (initialize_low_tracepoint): Set the ipa's target description.
14568 * linux-x86-low.c: Include tdesc.h.
14569 [__x86_64__] (is_64bit_tdesc): New.
14570 (ps_get_thread_area, x86_get_thread_area): Use it.
14571 (i386_cannot_store_register): Rename to ...
14572 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14573 (i386_cannot_fetch_register): Rename to ...
14574 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14575 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14576 to new interface.
14577 (target_regsets): Rename to ...
14578 (x86_regsets): ... this.
14579 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14580 interface.
14581 (x86_siginfo_fixup): Use is_64bit_tdesc.
14582 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14583 (tdesc_x32_avx_linux, tdesc_x32_linux)
14584 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14585 Declare.
14586 (x86_linux_update_xmltarget): Delete.
14587 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14588 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14589 (AMD64_LINUX_USER64_CS): New.
14590 (x86_linux_read_description): New, based on
14591 x86_linux_update_xmltarget.
14592 (same_process_callback): New.
14593 (x86_arch_setup_process_callback): New.
14594 (x86_linux_update_xmltarget): New.
14595 (x86_regsets_info): New.
14596 (amd64_linux_regs_info): New.
14597 (i386_linux_usrregs_info): New.
14598 (i386_linux_regs_info): New.
14599 (x86_linux_regs_info): New.
14600 (x86_arch_setup): Reimplement.
14601 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14602 (x86_emit_ops): Ditto.
14603 (the_low_target): Adjust. Install x86_linux_regs_info,
14604 x86_cannot_fetch_register, and x86_cannot_store_register.
14605 (initialize_low_arch): New.
14606 * linux-ia64-low.c (tdesc_ia64): Declare.
14607 (ia64_fetch_register): Adjust.
14608 (ia64_usrregs_info, regs_info): New globals.
14609 (ia64_regs_info): New function.
14610 (the_low_target): Adjust.
14611 (initialize_low_arch): New function.
14612 * linux-sparc-low.c (tdesc_sparc64): Declare.
14613 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14614 Adjust.
14615 (sparc_arch_setup): New function.
14616 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14617 (the_low_target): Adjust.
14618 (initialize_low_arch): New function.
14619 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14620 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14621 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14622 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14623 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14624 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14625 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14626 (tdesc_powerpc_isa205_vsx64l): Declare.
14627 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14628 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14629 (ppc_set_pc, ppc_get_hwcap): Adjust.
14630 (ppc_usrregs_info): Forward declare.
14631 (!__powerpc64__) ppc_regmap_adjusted: New global.
14632 (ppc_arch_setup): Adjust to the current process'es target
14633 description.
14634 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14635 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14636 (ppc_store_evrregset): Adjust.
14637 (target_regsets): Rename to ...
14638 (ppc_regsets): ... this, and make static.
14639 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14640 (ppc_regs_info): New function.
14641 (the_low_target): Adjust.
14642 (initialize_low_arch): New function.
14643 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14644 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14645 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14646 (tdesc_s390x_linux64v2): Declare.
14647 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14648 (s390_fill_gregset, s390_store_last_break): Adjust.
14649 (target_regsets): Rename to ...
14650 (s390_regsets): ... this, and make static.
14651 (s390_get_pc, s390_set_pc): Adjust.
14652 (s390_get_hwcap): New target_desc parameter, and use it.
14653 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14654 (s390_arch_setup): Adjust to set the current process'es target
14655 description. Don't adjust the regmap.
14656 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14657 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14658 (regs_info_3264): New globals.
14659 (s390_regs_info): New function.
14660 (the_low_target): Adjust.
14661 (initialize_low_arch): New function.
14662 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14663 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14664 [__mips64] (init_registers_mips_linux)
14665 (init_registers_mips_dsp_linux): Delete defines.
14666 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14667 (have_dsp): New global.
14668 (mips_read_description): New, based on mips_arch_setup.
14669 (mips_arch_setup): Reimplement.
14670 (get_usrregs_info): New function.
14671 (mips_cannot_fetch_register, mips_cannot_store_register)
14672 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14673 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14674 (target_regsets): Rename to ...
14675 (mips_regsets): ... this, and make static.
14676 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14677 (dsp_regs_info, regs_info): New globals.
14678 (mips_regs_info): New function.
14679 (the_low_target): Adjust.
14680 (initialize_low_arch): New function.
14681 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14682 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14683 Declare.
14684 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14685 (arm_read_description): New, with bits factored from
14686 arm_arch_setup.
14687 (arm_arch_setup): Reimplement.
14688 (target_regsets): Rename to ...
14689 (arm_regsets): ... this, and make static.
14690 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14691 (arm_regs_info): New function.
14692 (the_low_target): Adjust.
14693 (initialize_low_arch): New function.
14694 * linux-m68k-low.c (tdesc_m68k): Declare.
14695 (target_regsets): Rename to ...
14696 (m68k_regsets): ... this, and make static.
14697 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14698 (m68k_regs_info): New function.
14699 (m68k_arch_setup): New function.
14700 (the_low_target): Adjust.
14701 (initialize_low_arch): New function.
14702 * linux-sh-low.c (tdesc_sharch): Declare.
14703 (target_regsets): Rename to ...
14704 (sh_regsets): ... this, and make static.
14705 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14706 (sh_regs_info, sh_arch_setup): New functions.
14707 (the_low_target): Adjust.
14708 (initialize_low_arch): New function.
14709 * linux-bfin-low.c (tdesc_bfin): Declare.
14710 (bfin_arch_setup): New function.
14711 (bfin_usrregs_info, regs_info): New globals.
14712 (bfin_regs_info): New function.
14713 (the_low_target): Adjust.
14714 (initialize_low_arch): New function.
14715 * linux-cris-low.c (tdesc_cris): Declare.
14716 (cris_arch_setup): New function.
14717 (cris_usrregs_info, regs_info): New globals.
14718 (cris_regs_info): New function.
14719 (the_low_target): Adjust.
14720 (initialize_low_arch): New function.
14721 * linux-cris-low.c (tdesc_crisv32): Declare.
14722 (cris_arch_setup): New function.
14723 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14724 (cris_regs_info): New function.
14725 (the_low_target): Adjust.
14726 (initialize_low_arch): New function.
14727 * linux-m32r-low.c (tdesc_m32r): Declare.
14728 (m32r_arch_setup): New function.
14729 (m32r_usrregs_info, regs_info): New globals.
14730 (m32r_regs_info): Adjust.
14731 (initialize_low_arch): New function.
14732 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14733 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14734 (tic6x_usrregs_info): Forward declare.
14735 (tic6x_read_description): New function, based on ...
14736 (tic6x_arch_setup): ... this. Reimplement.
14737 (target_regsets): Rename to ...
14738 (tic6x_regsets): ... this, and make static.
14739 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14740 (tic6x_regs_info): New function.
14741 (the_low_target): Adjust.
14742 (initialize_low_arch): New function.
14743 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14744 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14745 (target_regsets): Rename to ...
14746 (xtensa_regsets): ... this, and make static.
14747 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14748 globals.
14749 (xtensa_arch_setup, xtensa_regs_info): New functions.
14750 (the_low_target): Adjust.
14751 (initialize_low_arch): New function.
14752 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14753 (nios2_arch_setup): Set the current process'es tdesc.
14754 (target_regsets): Rename to ...
14755 (nios2_regsets): ... this.
14756 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14757 (nios2_regs_info): New function.
14758 (the_low_target): Adjust.
14759 (initialize_low_arch): New function.
a261b8f5
PA
14760 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14761 (aarch64_arch_setup): Set the current process'es tdesc.
14762 (target_regsets): Rename to ...
14763 (aarch64_regsets): ... this.
14764 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14765 (aarch64_regs_info): New function.
14766 (the_low_target): Adjust.
14767 (initialize_low_arch): New function.
3aee8918
PA
14768 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14769 globals.
14770 (target_regsets): Rename to ...
14771 (tile_regsets): ... this.
14772 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14773 (tile_regs_info): New function.
14774 (tile_arch_setup): Set the current process'es tdesc.
14775 (the_low_target): Adjust.
14776 (initialize_low_arch): New function.
14777 * spu-low.c (tdesc_spu): Declare.
14778 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14779 * win32-arm-low.c (tdesc_arm): Declare.
14780 (arm_arch_setup): New function.
14781 (the_low_target): Install arm_arch_setup instead of
14782 init_registers_arm.
14783 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14784 (init_windows_x86): Rename to ...
14785 (i386_arch_setup): ... this. Set `win32_tdesc'.
14786 (the_low_target): Adjust.
14787 * win32-low.c (win32_tdesc): New global.
14788 (child_add_thread): Don't create the thread cache here.
14789 (do_initial_child_stuff): Set the new process'es tdesc.
14790 * win32-low.h (struct target_desc): Forward declare.
14791 (win32_tdesc): Declare.
14792 * lynx-i386-low.c (tdesc_i386): Declare global.
14793 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14794 * lynx-low.c (lynx_tdesc): New global.
14795 (lynx_add_process): Set the new process'es tdesc.
14796 * lynx-low.h (struct target_desc): Forward declare.
14797 (lynx_tdesc): Declare global.
14798 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14799 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14800 * nto-low.c (nto_tdesc): New global.
14801 (do_attach): Set the new process'es tdesc.
14802 * nto-low.h (struct target_desc): Forward declare.
14803 (nto_tdesc): Declare.
14804 * nto-x86-low.c (tdesc_i386): Declare.
14805 (nto_x86_arch_setup): Set `nto_tdesc'.
14806
b1fbec62
GB
148072013-06-04 Gary Benson <gbenson@redhat.com>
14808
14809 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14810 to qSupported response when appropriate.
14811 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14812 with nonzero-length annex.
14813 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14814 arguments supplied in annex.
14815
d1ec4ce7
DE
148162013-05-31 Doug Evans <dje@google.com>
14817
ac44adcb 14818 PR server/15594
d1ec4ce7
DE
14819 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14820 64 bits in 64-cross-32 environment.
14821
9b25f2d3
PA
148222013-05-28 Pedro Alves <palves@redhat.com>
14823
14824 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14825 (aarch64-without-fpu.c): Delete rule.
14826 * configure.srv (aarch64*-*-linux*): Remove references to
14827 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14828 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14829 declaration.
14830
6740dc9c
PA
148312013-05-24 Pedro Alves <palves@redhat.com>
14832
14833 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14834 instead of strchr/decode_address. Error if the range isn't split
14835 with a ','. Don't assume there's be a ':' in the action.
14836
c2d6af84
PA
148372013-05-23 Yao Qi <yao@codesourcery.com>
14838 Pedro Alves <palves@redhat.com>
14839
14840 * linux-low.c (lwp_in_step_range): New function.
14841 (linux_wait_1): If the thread was range stepping and stopped
14842 outside the stepping range, report the stop to GDB. Otherwise,
14843 continue stepping. Add range stepping debug output.
14844 (linux_set_resume_request): Copy the step range from the resume
14845 request to the lwp.
14846 (linux_supports_range_stepping): New.
14847 (linux_target_ops) <supports_range_stepping>: Set to
14848 linux_supports_range_stepping.
14849 * linux-low.h (struct linux_target_ops)
14850 <supports_range_stepping>: New field.
14851 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14852 * linux-x86-low.c (x86_supports_range_stepping): New.
14853 (the_low_target) <supports_range_stepping>: Set to
14854 x86_supports_range_stepping.
14855 * server.c (handle_v_cont): Handle 'r' action.
14856 (handle_v_requests): Append ";r" if the target supports range
14857 stepping.
14858 * target.h (struct thread_resume) <step_range_start,
14859 step_range_end>: New fields.
14860 (struct target_ops) <supports_range_stepping>:
14861 New field.
14862 (target_supports_range_stepping): New macro.
14863
58794e1a
JB
148642013-05-17 Joel Brobecker <brobecker@adacore.com>
14865
14866 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14867 confusion in comment.
14868
d631c5a7
JB
148692013-05-17 Joel Brobecker <brobecker@adacore.com>
14870
14871 * lynx-low.c (struct process_info_private): New type.
14872 (lynx_add_process): New function.
14873 (lynx_create_inferior, lynx_attach): Replace calls to
14874 add_process by calls to lynx_add_process.
14875 (lynx_resume): If PTID is null, then try using
14876 current_process()->private->last_wait_event_ptid.
14877 Add comments.
14878 (lynx_clear_inferiors): Delete. The contents of that function
14879 has been inlined in lynx_mourn;
14880 (lynx_wait_1): Save the ptid in the process's private data.
14881 (lynx_mourn): Free the process' private data. Replace call
14882 to lynx_clear_inferiors by call to clear_inferiors.
14883
96f7a20f
YQ
148842013-05-17 Yao Qi <yao@codesourcery.com>
14885
14886 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14887 the right place.
14888
db0dfaa0
LM
148892013-05-16 Luis Machado <lgustavo@codesourcery.com>
14890
14891 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14892 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14893 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14894 PT_TEXT_END_ADDR guards. Update comments.
14895 (linux_target_op) <read_offsets>: Conditionally define to
14896 linux_read_offsets if the target is UCLIBC and if it defines
14897 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14898
68f5f838
SL
148992013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14900 Andrew Jenner <andrew@codesourcery.com>
14901
14902 * Makefile.in (SFILES): Add linux-nios2-low.c.
14903 (clean): Add action to delete nios2-linux.c.
14904 (nios2-linux.c): New rule.
14905 * configure.srv: Add nios2*-*-linux*.
14906 * linux-nios2-low.c: New.
14907
1ebff1fd
HAQ
149082013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14909
14910 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14911
f6150862
HZ
149122013-04-25 Hui Zhu <hui@codesourcery.com>
14913
14914 PR gdb/15186
f6150862
HZ
14915 * ax.c (ax_printf): Add fflush.
14916
614c279d
TT
149172013-04-22 Tom Tromey <tromey@redhat.com>
14918
14919 * Makefile.in (SFILES): Add filestuff.c.
14920 (OBS): Add filestuff.o.
14921 (filestuff.o): New target.
14922 * config.in, configure: Rebuild.
14923 * configure.ac: Check for fdwalk, pipe2.
14924
7d4e5717
PA
149252013-04-17 Pedro Alves <palves@redhat.com>
14926
14927 * configure.ac (USE_THREAD_DB): Delete variable.
14928 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14929 Don't AC_SUBST USE_THREAD_DB.
14930 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14931 * config.in, configure: Regenerate.
14932
d5c93e41
PA
149332013-04-16 Pedro Alves <palves@redhat.com>
14934
14935 * linux-low.h (struct lwp_info) <thread_known>: Move under
14936 the USE_THREAD_DB #ifdef.
14937
04f5fe89
PA
149382013-04-16 Pedro Alves <palves@redhat.com>
14939
14940 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14941 (linux-low.o): Delete rule.
14942 * linux-low.h: Always include "gdb_thread_db.h" instead of
14943 conditionally including thread_db.h.
14944 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14945 HAVE_THREAD_DB_H.
14946
480b27bf
JK
149472013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14948
14949 * Makefile.in (install-only): Fix make install regression.
14950
43662968
JK
149512013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14952
14953 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14954 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14955 installation.
14956 * gdbserver.1: Remove.
14957
3e74e146
PA
149582013-03-22 Pedro Alves <palves@redhat.com>
14959
14960 * linux-low.c (handle_extended_wait): Don't call
14961 linux_enable_event_reporting.
14962
a8347a2a
TT
149632013-03-15 Tony Theodore <tonyt@logyst.com>
14964
14965 PR build/9098:
14966 * Makefile.in (SHELL): Use @SHELL@.
14967
eeb56fa7
SDJ
149682013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14969
14970 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14971 compiler warning.
14972
4fa7e2ff
JB
149732013-03-13 Joel Brobecker <brobecker@adacore.com>
14974
14975 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14976 Remove extraneous NULL element.
14977
8ddb1965
YQ
149782013-03-13 Yao Qi <yao@codesourcery.com>
14979
14980 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14981 'V' block in trace frame.
14982
9accd112
MM
149832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14984
14985 * target.h (struct target_ops): Add btrace ops.
14986 (target_supports_btrace): New macro.
14987 (target_enable_btrace): New macro.
14988 (target_disable_btrace): New macro.
14989 (target_read_btrace): New macro.
14990 * gdbthread.h (struct thread_info): Add btrace field.
14991 * server.c: Include btrace-common.h.
14992 (handle_btrace_general_set): New function.
14993 (handle_btrace_enable): New function.
14994 (handle_btrace_disable): New function.
14995 (handle_general_set): Call handle_btrace_general_set.
14996 (handle_qxfer_btrace): New function.
14997 (struct qxfer qxfer_packets[]): Add btrace entry.
14998 * inferiors.c (remove_thread): Disable btrace.
14999 * linux-low: Include linux-btrace.h.
15000 (linux_low_enable_btrace): New function.
15001 (linux_low_read_btrace): New function.
15002 (linux_target_ops): Add btrace ops.
15003 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15004 Add srv_linux_btrace=yes.
15005 (x86_64-*-linux*): Add linux-btrace.o.
15006 Add srv_linux_btrace=yes.
15007 * configure.ac: Define HAVE_LINUX_BTRACE.
15008 * config.in: Regenerated.
15009 * configure: Regenerated.
15010
5cc22e4c
MM
150112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15012
15013 * server.c (handle_qxfer): Preserve error message if -3 is
15014 returned.
15015 (qxfer): Document the -3 return value.
15016
7c97f91e
MM
150172013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15018
15019 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15020 (linux_btrace_h): New variable.
15021 (linux-btrace.o): New rule.
15022
be9a119c 150232013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
15024 Hafiz Abid Qadeer <abidh@codesourcery.com>
15025
15026 * tracepoint.c (trace_buffer_size): New global.
15027 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15028 (init_trace_buffer): Change to one-argument function. Allocate
15029 trace buffer memory.
15030 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15031 handle QTBuffer:size packet.
15032 (cmd_bigqtbuffer_size): New function.
15033 (initialize_tracepoint): Call init_trace_buffer with
15034 DEFAULT_TRACE_BUFFER_SIZE.
15035 * server.c (handle_query): Add QTBuffer:size in the
15036 supported packets.
15037
e64f7499
YQ
150382013-03-07 Yao Qi <yao@codesourcery.com>
15039
15040 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15041 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15042 of -1.
15043 (cmd_qtsp): Adjust condition. Do post increment.
15044 Set cur_action and cur_step_action back to 0.
15045
f0ae6fc3
PA
150462013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15047
15048 PR server/15236
15049 * linux-low.c (linux_write_memory): Return early success if LEN is
15050 zero.
15051
b5b0b0af
CV
150522013-03-05 Corinna Vinschen <vinschen@redhat.de>
15053
334ad4a8 15054 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 15055
589bc927
TT
150562013-02-28 Tom Tromey <tromey@redhat.com>
15057
15058 * configure.ac: Invoke AC_SYS_LARGEFILE.
15059 * configure, config.in: Rebuild.
15060
dfe07582
CV
150612013-02-28 Corinna Vinschen <vinschen@redhat.com>
15062
15063 * win32-low.c: Throughout, fix format strings and casts of
15064 printf-like functions to avoid type related warnings on all
15065 platforms.
15066 (get_child_debug_event): Print dwDebugEventCode as hex since
15067 that's how it's usually documented.
15068
736cd585
YQ
150692013-02-28 Yao Qi <yao@codesourcery.com>
15070
15071 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15072 pulongest.
15073
e1f58301
JW
150742013-02-27 Jiong Wang <jiwang@tilera.com>
15075
15076 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15077 (reg-tilegx32.c): New rule.
15078 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15079 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15080 different register info initializer according to elf class.
15081 (init_registers_tilgx32): New function. The tilegx32 register info
15082 initializer.
15083 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15084 (tile_store_gregset): Likewise.
15085
d171ca78
YQ
150862013-02-27 Yao Qi <yao@codesourcery.com>
15087
15088 * server.c (process_point_options): Print debug message when
15089 debug_threads is true.
15090
282bbdf3
YQ
150912013-02-26 Yao Qi <yao@codesourcery.com>
15092
15093 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15094
aca22551
PA
150952013-02-19 Pedro Alves <palves@redhat.com>
15096 Kai Tietz <ktietz@redhat.com>
15097
15098 PR gdb/15161
15099
15100 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15101 instead of strtoul to extract address from packet.
15102 (process_serial_event) <'z'>: Likewise.
15103
4f3cee1c
YQ
151042013-02-18 Yao Qi <yao@codesourcery.com>
15105
15106 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15107
8e1d55a3
PA
151082013-02-14 Pedro Alves <palves@redhat.com>
15109
15110 Plug memory leak.
15111
15112 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15113 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15114
458820da
PA
151152013-02-14 Pedro Alves <palves@redhat.com>
15116
15117 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15118
baea0dae
PA
151192013-02-14 Pedro Alves <palves@redhat.com>
15120
15121 * tracepoint.c (save_string): Delete.
15122 (add_tracepoint_action): Use savestring instead of save_string.
15123
0b1afbb3
PA
151242013-02-12 Pedro Alves <palves@redhat.com>
15125
15126 * linux-xtensa-low.c: Ditto.
15127 * xtensa-xtregs.c: Ditto.
15128
8a4ac37e
PA
151292013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15130
15131 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15132 thread_db.
15133
148de6bb
MS
151342013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15135
15136 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15137 aarch64_num_wp_regs and aarch64_num_bp_regs to
15138 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15139
55fac6e0
MS
151402013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15141
15142 * linux-aarch64-low.c (ps_get_thread_area): Replace
15143 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15144
176eb98c
MS
151452013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15146 Marcus Shawcroft <marcus.shawcroft@arm.com>
15147 Nigel Stephens <nigel.stephens@arm.com>
15148 Yufeng Zhang <yufeng.zhang@arm.com>
15149
15150 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15151 (aarch64.c, aarch64-without-fpu.c): New targets.
15152 * configure.srv (aarch64*-*-linux*): New.
15153 * linux-aarch64-low.c: New file.
15154
56f7af9c
MS
151552013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15156
43aaf8b6 15157 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
15158 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15159 (dequeue_one_deferred_signal, linux_resume_one_thread)
15160 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15161 (linux_tracefork_grandchild, linux_test_for_tracefork)
15162 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15163 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15164 where the argument is 0.
15165
60f662b0
YQ
151662013-01-25 Yao Qi <yao@codesourcery.com>
15167
15168 * event-loop.c: Include "queue.h".
15169 (gdb_event_p): New typedef.
15170 (struct gdb_event) <next_event>: Remove.
15171 (event_queue): Change to QUEUE(gdb_event_p).
15172 (async_queue_event): Remove.
15173 (gdb_event_xfree): New.
15174 (initialize_event_loop): New.
15175 (process_event): Use API from QUEUE.
15176 (wait_for_event): Likewise.
15177 * server.c (main): Call initialize_event_loop.
15178 * server.h (initialize_event_loop): Declare.
15179
5ae4861a
YQ
151802013-01-18 Yao Qi <yao@codesourcery.com>
15181
15182 * ax.h (struct eval_agent_expr_context): New.
15183 (gdb_eval_agent_expr): Update declaration.
15184 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15185 TFRAME. Add new argument CTX.
15186 * server.h (struct eval_agent_expr_context): Declare.
15187 (agent_mem_read, agent_tsv_read): Update declaration.
15188 (agent_mem_read_string): Likewise.
15189 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15190 (add_traceframe_block): Add new argument TPOINT.
15191 Increase TPOINT->traceframe_usage.
15192 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15193 eval_tracepoint_agent_expr.
15194 (condition_true_at_tracepoint): Likewise.
15195 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15196 (agent_mem_read_string, agent_tsv_read): Likewise.
15197
85e00e85
YQ
151982013-01-16 Yao Qi <yao@codesourcery.com>
15199
15200 * linux-low.c (linux_resume_one_lwp): Don't check
15201 'lwp->bp_reinsert != 0'.
15202
4039cf45
JB
152032013-01-07 Joel Brobecker <brobecker@adacore.com>
15204 Pedro Alves <palves@redhat.com>
15205
15206 * lynx-low.c (ptrace_request_to_str): Define a temporary
15207 macro and use it to simplify this function's implementation.
15208
9044dee2
JB
152092013-01-07 Joel Brobecker <brobecker@adacore.com>
15210
15211 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15212 sets errno.
15213
e6352c8f
JB
152142013-01-07 Joel Brobecker <brobecker@adacore.com>
15215
15216 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15217
50681a27
JB
152182013-01-07 Joel Brobecker <brobecker@adacore.com>
15219
15220 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15221
3f6e77ef
JB
152222013-01-07 Joel Brobecker <brobecker@adacore.com>
15223
15224 * lynx-low.c (lynx_resume): Use the resume_info parameter
15225 to determine the ptid for the lynx_ptrace call, unless
15226 it is equal to minus_one_ptid, in which case we use the
15227 ptid of the current_inferior.
15228 (lynx_wait_1): After having received a thread create/exit
15229 event, resume the inferior's execution using the signaling
15230 thread's ptid, rather than the old ptid.
15231
7fda33ae
JB
152322013-01-07 Joel Brobecker <brobecker@adacore.com>
15233
15234 * lynx-low.c (lynx_resume): Delete variable ret.
15235
b9786c74
JB
152362013-01-01 Joel Brobecker <brobecker@adacore.com>
15237
15238 * gdbreplay.c (gdbreplay_version): Update copyright year.
15239 * server.c (gdbserver_version): Likewise.
15240
8b93d60f
JB
152412012-12-17 Joel Brobecker <brobecker@adacore.com>
15242
15243 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15244 new thread.
15245
037335a7
JB
152462012-12-17 Joel Brobecker <brobecker@adacore.com>
15247
15248 * lynx-low.c (ptrace_request_to_str): Add handling for
15249 PTRACE_GETTRACESIG.
15250
52d4cbd8
JB
152512012-12-17 Joel Brobecker <brobecker@adacore.com>
15252
15253 * lynx-low.c (lynx_attach): Delete variable new_process.
15254
ab8f6ca9
JB
152552012-12-17 Joel Brobecker <brobecker@adacore.com>
15256
15257 * lynx-low.c (lynx_create_inferior): Delete variable
15258 new_process.
15259
78cbc024
JB
152602012-12-17 Joel Brobecker <brobecker@adacore.com>
15261
15262 * lynx-low.c (ptrace_request_to_str): Do not handle
15263 PTRACE_GETTHREADLIST if this macro does not exist.
15264
14a00470
YQ
152652012-12-15 Yao Qi <yao@codesourcery.com>
15266
15267 * Makefile.in (OBS): Add notif.o.
15268 * notif.c, notif.h: New.
15269 * server.c: Include "notif.h".
15270 (struct vstop_notif) <next>: Remove.
15271 <base>: New field.
15272 (queue_stop_reply): Update.
15273 (push_event, send_next_stop_reply): Remove.
15274 (discard_queued_stop_replies): Update.
15275 (notif_stop): New variable.
15276 (handle_v_stopped): Remove.
15277 (handle_v_requests): Don't call handle_v_stopped. Call
15278 handle_ack_notif instead.
15279 (queue_stop_reply_callback): Call notif_event_enque instead
15280 of queue_stop_reply.
15281 (handle_status): Don't call send_next_stop_reply, call
15282 notif_write_event instead.
15283 (kill_inferior_callback): Likewise.
15284 (detach_or_kill_inferior_callback): Likewise.
15285 (main): Call initialize_notif.
15286 (process_serial_event): Call QUEUE_is_empty.
15287 (handle_target_event): Call notif_push instead of push event.
15288 * server.h (push_event): Remove declaration.
15289
61c125b9
TT
152902012-12-10 Tom Tromey <tromey@redhat.com>
15291
15292 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15293 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15294 macros.
15295 (.c.o): Rewrite.
15296 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15297 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15298 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15299 (amd64-linux-ipa.o, ax.o): Rewrite.
15300 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15301 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15302 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15303 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15304 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15305 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15306 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15307 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15308 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15309 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15310 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15311 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15312 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15313 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15314 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15315 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15316 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15317 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15318 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15319 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15320 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15321 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15322 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15323 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15324 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15325 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15326 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15327 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15328 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15329 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15330 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15331 (reg-tilegx.o): Remove.
15332 (all_object_files): New macro.
15333 Include .deps files.
15334 * aclocal.m4, configure: Rebuild.
15335 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15336 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15337 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15338
e90e9ad9
TT
153392012-12-05 Tom Tromey <tromey@redhat.com>
15340
15341 PR gdb/14917:
15342 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15343
02d403bf 153442012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15345
15346 * configure.ac: Check for linux/perf_event.h.
15347 * config.in: Regenerated.
15348 * configure: Regenerated.
15349
0270a750
PA
153502012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15351
15352 * hostio.c (handle_readlink): Decrease buffer size
15353 parameter passed to readlink by one byte.
15354
8c29b58e
YQ
153552012-11-26 Yao Qi <yao@codesourcery.com>
15356
15357 * configure.ac (build_warnings): Append '-Wempty-body'.
15358 * configure: Regenerated.
15359 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15360 body.
15361
8bdce1ff
PM
153622012-11-15 Pierre Muller <muller@sourceware.org>
15363
15364 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15365 * config.in: Regenerate.
15366 * configure: Regenerate.
15367 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15368 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15369 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15370 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15371 header.
15372 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15373 instead of <sys/wait.h> header.
15374 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15375
02d403bf 153762012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15377
15378 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15379 (various make rules): Remove -DGDBSERVER
15380
fbd5db48
YQ
153812012-11-09 Yao Qi <yao@codesourcery.com>
15382
15383 * spu-low.c (current_ptid): Move it to ..
15384 * gdbthread.h: ... here. New.
15385 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15386 * server.c (myresume, process_serial_event): Likewise.
15387 * thread-db.c (thread_db_find_new_threads): Likewise.
15388 * tracepoint.c (run_inferior_command): Likewise.
15389
b3dc46ff
AB
153902012-10-01 Andrew Burgess <aburgess@broadcom.com>
15391
15392 * server.c (handle_search_memory_1): Include access length in
15393 warning message.
15394
07c04788
HPN
153952012-09-05 Michael Brandt <michael.brandt@axis.com>
15396
15397 * linux-crisv32-low.c: Fix compile errors.
15398
918d227b
YQ
153992012-09-04 Yao Qi <yao@codesourcery.com>
15400
15401 * tracepoint.c (cmd_qtsv): Adjust debug message.
15402 Don't check CUR_TPOINT.
15403
18c1b81a
YQ
154042012-08-28 Yao Qi <yao@codesourcery.com>
15405
15406 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15407 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15408 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15409 Remove declarations of xmalloc, xreallloc, xstrdup and
15410 freeargv.
15411 * Makefile.in (libiberty_h): New.
15412 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15413 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15414
dc82f37b
YQ
154152012-08-23 Yao Qi <yao@codesourcery.com>
15416
15417 * server.h: Remove declaration of 'xsnprintf'.
15418
406b1477
KS
154192012-08-22 Keith Seitz <keiths@redhat.com>
15420
15421 * server.h: Include build-gnulib-gbserver/config.h.
15422 * gdbreplay.c: Likewise.
15423
e6712ff1
DE
154242012-08-08 Doug Evans <dje@google.com>
15425
15426 * Makefile.in (SFILES): Add gdb_vecs.c.
15427 (OBS): Add gdb_vecs.o.
15428 (gdb_vecs_h, host_defs_h): New variables.
15429 (thread-db.o): Add $(gdb_vecs_h) dependency.
15430 (gdb_vecs.o): New rule.
15431 * thread-db.c: #include "gdb_vecs.h".
15432 (thread_db_load_search): Use a vector to iterate over path elements.
15433 Handle text appearing after "$pdir".
15434
15435 * configure.ac: Add check for strstr.
15436 * config.in: Regenerate.
15437 * configure: Regenerate.
15438
7c3270ae
UW
154392012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15440
15441 * hostio.c (handle_pread): If pread fails, fall back to attempting
15442 lseek/read.
15443 (handle_pwrite): Likewise for pwrite.
15444
b62e2b27
UW
154452012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15446
15447 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15448 between unsupported TYPE and unimplementable ADDR/LEN combination.
15449 (arm_insert_point): Act on new return value.
15450
78a99e91
PA
154512012-07-31 Pedro Alves <palves@redhat.com>
15452
15453 * server.c (process_point_options): Only skip tokens if we find
15454 one that is unrecognized. Don't treat 'X' specially while
15455 skipping unrecognized tokens.
15456
fcf303ab
UW
154572012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15458
15459 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15460 to 4-byte-align HW breakpoint addresses for Thumb.
15461
7255706c
YQ
154622012-07-27 Yao Qi <yao@codesourcery.com>
15463
15464 PR remote/14161.
15465
15466 * server.h: Declare gdb_agent_about_to_close.
15467 * target.c (kill_inferior): Include "agent.h".
15468 New. Send command 'kill'.
15469 * target.h (kill_inferior): Removed macro.
15470 * tracepoint.c (gdb_agent_about_to_close): New.
15471 (gdb_agent_helper_thread): Handle command 'close'.
15472 Wait endlessly until the inferior stops.
15473 Install gdb_agent_remove_socket to atexit hook.
15474 (agent_socket_name): New static variable.
15475 (gdb_agent_socket_init): Replace local variable 'name' with
15476 'agent_socket_name'.
15477 (gdb_agent_remove_socket): New.
15478
5a3f286f
YQ
154792012-07-27 Yao Qi <yao@codesourcery.com>
15480
15481 * server.c (process_point_options): Stop at 'X' when parsing.
15482
961bd387
ME
154832012-07-19 Michael Eager <eager@eagercon.com>
15484
a261b8f5 15485 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15486 to hw_execute.
15487 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15488 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15489 hardware breakpoint.
15490
aa7c7447
JK
154912012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15492
15493 * gdbserver/linux-low.c (initialize_low): Call
15494 linux_ptrace_init_warnings.
15495
7f216e7c
DE
154962012-07-02 Doug Evans <dje@google.com>
15497
15498 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15499 pointer to int.
15500
d3ce09f5
SS
155012012-07-02 Stan Shebs <stan@codesourcery.com>
15502
15503 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15504 (ax.o): Add it to build rule.
15505 (ax-ipa.o): Ditto.
15506 (OBS): Add format.o.
15507 (IPA_OBS): Add format.o.
15508 * server.c (handle_query): Claim support for breakpoint commands.
15509 (process_point_options): Add command case.
15510 (process_serial_event): Leave running if there are printfs in
15511 effect.
15512 * mem-break.h (any_persistent_commands): Declare.
15513 (add_breakpoint_commands): Declare.
15514 (gdb_no_commands_at_breakpoint): Declare.
15515 (run_breakpoint_commands): Declare.
15516 * mem-break.c (struct point_command_list): New struct.
15517 (struct breakpoint): New field command_list.
15518 (any_persistent_commands): New function.
15519 (add_commands_to_breakpoint): New function.
15520 (add_breakpoint_commands): New function.
15521 (gdb_no_commands_at_breakpoint): New function.
15522 (run_breakpoint_commands): New function.
15523 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15524 locally.
15525 * ax.c: Include format.h.
15526 (ax_printf): New function.
15527 (gdb_eval_agent_expr): Add printf opcode.
15528
2f8f6aed
YQ
155292012-06-13 Yao Qi <yao@codesourcery.com>
15530
15531 * server.c (start_inferior): Remove duplicated writes to fields
15532 'last_resume_kind' and 'last_status' of 'current_inferior'.
15533
0c9070b3
YQ
155342012-06-12 Yao Qi <yao@codesourcery.com>
15535 Pedro Alves <palves@redhat.com>
15536
15537 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15538 comment.
15539 * server.c (handle_v_cont): Extend comment.
15540
c52daf70
YQ
155412012-06-11 Yao Qi <yao@codesourcery.com>
15542
15543 * linux-low.c (linux_attach): Add 'static'.
15544
d38bbb0a
YQ
155452012-06-06 Yao Qi <yao@codesourcery.com>
15546
15547 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15548
89dc0afd
JK
155492012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15550
15551 Fix gcc -flto compilation warning.
15552 * server.c (main): Make variable multi_mode and attach volatile.
15553
75f62ce7
TJB
155542012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15555
15556 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15557 if the platform doesn't know about it.
15558
65f479b6
PA
155592012-05-30 Jeff Kenton <jkenton@tilera.com>
15560
15561 * Makefile.in (SFILES): Add linux-tile-low.c.
15562 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15563 * configure.srv: Handle tilegx-*-linux*.
15564 * linux-tile-low.c: New file.
15565
0c5bf5a9
JK
155662012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15567
15568 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15569
a493e3e2
PA
155702012-05-24 Pedro Alves <palves@redhat.com>
15571
15572 PR gdb/7205
15573
43aaf8b6 15574 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15575
2ea28649
PA
155762012-05-24 Pedro Alves <palves@redhat.com>
15577
15578 PR gdb/7205
15579
15580 Replace target_signal with gdb_signal throughout.
15581
8d409d16
MR
155822012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15583
15584 * linux-low.c (linux_store_registers): Avoid the copying sequence
15585 when no data has been retrieved by ptrace.
15586
23512c01
MGD
155872012-05-22 Will Deacon <will.deacon@arm.com>
15588
15589 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15590 Include asm/ptrace.h.
15591 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15592 already defined.
15593
4934b29e
MR
155942012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15595
15596 * linux-low.c (linux_store_registers): Don't re-retrieve data
15597 with ptrace that has already been obtained from /proc. Always
15598 copy any data retrieved with ptrace to the buffer supplied.
15599
bde24c0a
PA
156002012-05-11 Yao Qi <yao@codesourcery.com>
15601 Pedro Alves <palves@redhat.com>
15602
15603 * linux-low.c (enum stopping_threads_kind): New.
15604 (stopping_threads): Change type to `enum stopping_threads_kind'.
15605 (handle_extended_wait): If stopping and suspending threads, leave
15606 the new_lwp suspended too.
15607 (linux_wait_for_event): Adjust.
15608 (stop_all_lwps): Set `stopping_threads' to
15609 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15610 whether we're suspending threads or just stopping them. Assert no
15611 recursion happens.
15612
623b6bdf
YQ
156132012-04-29 Yao Qi <yao@codesourcery.com>
15614
15615 * server.h: Move some code to ...
15616 * gdbthread.h: ... here. New.
15617 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15618 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15619 (nto-low.o, win32-low.o): Likewise.
15620 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15621 * regcache.c, remote-utils.c, server.c: Likewise.
15622 * target.c, tracepoint.c, win32-low.c: Likewise.
15623
f15f9948
TJB
156242012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15625
15626 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15627 (PTRACE_ARG4_TYPE): Likewise.
15628 (PTRACE_XFER_TYPE): Likewise.
15629 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15630 ptrace to PTRACE_ARG3_TYPE.
15631 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15632 (PTRACE_ARG4_TYPE): Likewise.
15633 (PTRACE_XFER_TYPE): Likewise.
15634 (linux_detach_one_lwp): Cast fourth argument of
15635 ptrace to long then PTRACE_ARG4_TYPE.
15636 (regsets_fetch_inferior_registers): Cast third argument of
15637 ptrace to long then PTRACE_ARG3_TYPE.
15638 (regsets_store_inferior_registers): Likewise.
15639
38ea300a
PA
156402012-04-20 Pedro Alves <palves@redhat.com>
15641
15642 * configure: Regenerate.
15643
c971b7fa
PA
156442012-04-19 Pedro Alves <palves@redhat.com>
15645
43aaf8b6 15646 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15647 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15648 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15649 (all, install-only, uninstall, clean-info, all-lib, clean): No
15650 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15651 (maintainer-clean realclean distclean): Use subdir_do.
15652 (subdir_do): New.
15653 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15654 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15655 * acinclude.m4: Include acx_configure_dir.m4.
15656 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15657 calls. Call AC_PROG_RANLIB. Configure gnulib using
15658 ACX_CONFIGURE_DIR.
15659 (GNULIB): New.
15660 (GNULIB_STDINT_H): Adjust.
15661 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15662 * gdbreplay.c: Include build-gnulib/config.h.
15663 * server.h: Likewise.
15664 * aclocal.m4: Regenerate.
15665 * config.in: Regenerate.
15666 * configure: Regenerate.
c971b7fa 15667
809277f8
PA
156682012-04-19 Pedro Alves <palves@redhat.com>
15669
15670 * Makefile.in (LIBGNU, INCGNU): Adjust.
15671 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15672 (all, install-only, uninstall, clean-info, all-lib, clean)
15673 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15674 * configure.ac: Adjust AC_OUTPUT output.
15675 * aclocal.m4: Regenerate.
15676 * configure: Regenerate.
15677
fd9bb8b8
PA
156782012-04-19 Pedro Alves <palves@redhat.com>
15679
15680 * Makefile.in (generated_files): New.
15681 (server_h): Remove the explicit dependency on config.h, and depend
15682 on $generated_files.
15683
1c298c66
PA
156842012-04-19 Pedro Alves <palves@redhat.com>
15685
15686 * Makefile.in (INCGNU): Add -Ignulib.
15687
57c4b50b
PA
156882012-04-19 Pedro Alves <palves@redhat.com>
15689
15690 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15691 (INCGNU): ... this, and spell out -I here.
15692 (GNULIB_LIB): Rename to ...
15693 (LIBGNU): ... this.
15694 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15695
1030e047
PA
156962012-04-19 Pedro Alves <palves@redhat.com>
15697
15698 * config.in: Regenerate.
15699
447d4319
PA
157002012-04-19 Pedro Alves <palves@redhat.com>
15701
15702 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15703 * server.h (memmem): Remove declaration.
15704 * config.in: Regenerate.
15705 * configure: Regenerate.
15706
aad9eab9
YQ
157072012-04-19 Yao Qi <yao@codesourcery.com>
15708
15709 * Makefile.in (SFILES): Add common/vec.c.
15710 (OBS): Add vec.o.
15711 (vec.o): New rule.
15712
3e10640f
YQ
157132012-04-19 Yao Qi <yao@codesourcery.com>
15714
15715 * remote-utils.c (prepare_resume_reply): Replace with macro
15716 target_core_of_thread.
15717 * server.c (handle_qxfer_threads_proper): Likewise.
15718 * target.h (traget_core_of_thread): New macro.
15719
71622373
PA
157202012-04-18 Pedro Alves <palves@redhat.com>
15721
15722 * aclocal.m4: Regenerate.
15723 * configure: Regenerate.
15724
80d26939
YQ
157252012-04-16 Yao Qi <yao@codesourcery.com>
15726
15727 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15728 duplicated on address.
15729
42476b70
YQ
157302012-04-16 Yao Qi <yao@codesourcery.com>
15731
15732 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15733 (struct tracepoint_action_ops) <send>: New field.
15734 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15735 (agent_expr_send, x_tracepoint_action_send): New.
15736 (l_tracepoint_action_send): New.
15737 (cmd_qtdp): Download and install tracepoint
15738 according to `use_agent'.
15739 (run_inferior_command): Add one more parameter `len'.
15740 Update callers.
15741 (tracepoint_send_agent): New.
15742 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15743
7bc83639
YQ
157442012-04-16 Yao Qi <yao@codesourcery.com>
15745
15746 * tracepoint.c (download_tracepoints): Moved to ...
15747 (cmd_qtstart): ... here.
15748
5f18041e
YQ
157492012-04-14 Yao Qi <yao@codesourcery.com>
15750
15751 * tracepoint.c: Include inttypes.h.
15752 (struct collect_memory_action): Use sized types.
15753 (struct tracepoint): Likewise.
15754 (cmd_qtdp, stop_tracing): Update print specifiers.
15755 (cmd_qtp, response_tracepoint): Likewise.
15756 (collect_data_at_tracepoint): Likewise.
15757 (collect_data_at_step): Likewise.
15758
55a8c076
YQ
157592012-04-14 Yao Qi <yao@codesourcery.com>
15760
15761 Import gnulib module inttypes.
15762 * aclocal.m4, config.in, configure: Regenerated.
15763
dc750257
YQ
157642012-04-14 Yao Qi <yao@codesourcery.com>
15765
15766 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15767 Makefile and config.status at last.
15768
0ab5faf9
YQ
157692012-04-13 Yao Qi <yao@codesourcery.com>
15770
15771 * tracepoint.c: Include stdint.h unconditionally.
15772
18f5fd81
TJB
157732012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15774
15775 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15776 on BFD_HAVE_SYS_PROCFS_TYPE.
15777 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15778 * configure: Regenerate.
15779 * config.in: Likewise.
15780
4d47af5c
L
157812012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15782
15783 * Makefile.in (clean): Also remove x32.c x32-linux.c
15784 x32-avx.c x32-avx-linux.c.
15785 (x32.o): New target.
15786 (x32.c): Likewise.
15787 (x32-linux.o): Likewise.
15788 (x32-linux.c): Likewise.
15789 (x32-avx.o): Likewise.
15790 (x32-avx.c): Likewise.
15791 (x32-avx-linux.o): Likewise.
15792 (x32-avx-linux.c): Likewise.
15793
15794 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15795 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15796 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15797 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15798 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15799 i386/x32-avx-linux.xml.
15800
15801 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15802 (init_registers_x32_avx_linux): Likwise.
15803 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15804 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15805
ecedbe58
PA
158062012-04-13 Pedro Alves <palves@redhat.com>
15807
15808 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15809 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15810 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15811 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15812 the sub-make.
15813
c92b5177
L
158142012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15815
15816 * linux-x86-low.c (compat_x32_clock_t): New.
15817 (compat_x32_siginfo_t): Likewise.
15818 (compat_x32_siginfo_from_siginfo): Likewise.
15819 (siginfo_from_compat_x32_siginfo): Likewise.
15820 (linux_is_elf64): Likewise.
15821 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15822 and siginfo_from_compat_x32_siginfo for x32.
15823 (x86_arch_setup): Set linux_is_elf64.
15824
214d508e
L
158252012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15826
15827 PR gdb/13969
15828 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15829 e_machine field.
15830 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15831 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15832 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15833 compatible with process.
15834
c9a1864a
YQ
158352012-04-12 Yao Qi <yao@codesourcery.com>
15836
15837 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15838 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15839 (install-only, install-info, clean): Handle sub dir gnulib.
15840 (all-lib, am--refresh): New targets.
15841 (memmem.o): Remove target.
15842 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15843 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15844 (AC_REPLACE_FUNCS): Remove memmem.
15845 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15846 (AC_OUTPUT): Generate Makefile in gnulib/.
15847 * aclocal.m4, config.in, configure: Regenerated.
15848
367ba2c2
MR
158492012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15850
15851 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15852
9d236627
PA
158532012-04-05 Pedro Alves <palves@redhat.com>
15854
15855 -Werror=strict-aliasing
15856
15857 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15858 pointer.
15859
111217b3
PA
158602012-04-04 Pedro Alves <palves@redhat.com>
15861
15862 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15863 (sparc_store_gregset_from_stack, sparc_store_gregset)
15864 (sparc_breakpoint_at): Fix formatting.
15865
8365dcf5
TJB
158662012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15867
15868 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15869 are available.
15870 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15871 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15872 * config.in: Regenerate.
15873 * configure: Likewise.
15874
689cc2ae
PA
158752012-03-29 Pedro Alves <palves@redhat.com>
15876
15877 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15878 Correct ptrace arguments.
15879
c14dfd32
PA
158802012-03-28 Pedro Alves <palves@redhat.com>
15881
15882 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15883 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15884 (IA64_FR1_REGNUM): New defines.
15885 (ia64_fetch_register): New.
15886 (the_low_target): Install it.
15887 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15888 field.
15889 * linux-low.c (linux_fetch_registers): Try the
15890 the_low_target.fetch_register hook first.
15891
15892 * linux-arm-low.c (the_low_target): Adjust.
15893 * linux-bfin-low.c (the_low_target): Adjust.
15894 * linux-cris-low.c (the_low_target): Adjust.
15895 * linux-crisv32-low.c (the_low_target): Adjust.
15896 * linux-m32r-low.c (the_low_target): Adjust.
15897 * linux-m68k-low.c (the_low_target): Adjust.
15898 * linux-mips-low.c (the_low_target): Adjust.
15899 * linux-ppc-low.c (the_low_target): Adjust.
15900 * linux-s390-low.c (the_low_target): Adjust.
15901 * linux-sh-low.c (the_low_target): Adjust.
15902 * linux-sparc-low.c (the_low_target): Adjust.
15903 * linux-tic6x-low.c (the_low_target): Adjust.
15904 * linux-x86-low.c (the_low_target): Adjust.
15905 * linux-xtensa-low.c (the_low_target): Adjust.
15906
63c88e13
PA
159072012-03-26 Pedro Alves <palves@redhat.com>
15908
15909 * server.c (handle_qxfer_libraries): Don't bail early if
15910 the_target->qxfer_libraries_svr4 is not NULL.
15911
fb723180
PA
159122012-03-26 Pedro Alves <palves@redhat.com>
15913
15914 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15915
0afae3cf
PA
159162012-03-23 Pedro Alves <palves@redhat.com>
15917
15918 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15919 "library-list-svr4" element's start tag when the the DSO list is
15920 empty.
15921
485f1ee4
PA
159222012-03-23 Pedro Alves <palves@redhat.com>
15923
15924 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15925 a variable whose type size is the same as the inferior's pointer
15926 size.
15927
a5362b9a
TS
159282012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15929
15930 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15931 struct siginfo.
15932 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15933 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15934 * linux-low.h: Include <signal.h>.
15935 (struct siginfo): Remove forward declaration.
15936 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15937 struct siginfo.
15938
d226c142
MF
159392012-03-21 Mike Frysinger <vapier@gentoo.org>
15940
15941 * .gitignore: Ignore more files.
15942
122f36ef
PA
159432012-03-19 Pedro Alves <palves@redhat.com>
15944 Jan Kratochvil <jan.kratochvil@redhat.com>
15945
15946 * server.c (cont_thread, general_thread): Add describing comments.
15947 (start_inferior): Clear `cont_thread'.
15948 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15949 of a process.
15950
fc3e5175
YQ
159512012-03-15 Yao Qi <yao@codesourcery.com>
15952
15953 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15954 handling to ...
15955 (cmd_qtdp): ... here.
15956
8d0d92cd
YQ
159572012-03-15 Yao Qi <yao@codesourcery.com>
15958
15959 * tracepoint.c (struct tracepoint_action_ops): New.
15960 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15961 (m_tracepoint_action_download): New.
15962 (r_tracepoint_action_download): New.
15963 (x_tracepoint_action_download): New.
15964 (l_tracepoint_action_download): New.
15965 (add_tracepoint_action): Install `action->ops' according type.
15966 (download_tracepoint_1): Move code `download' function pointer
15967 of various tracepoint_action_ops.
15968
87b0bb13
JK
159692012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15970
15971 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15972 linux_ptrace_attach_warnings.
15973
5f572dec
JK
159742012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15975
15976 * Makefile.in (linux-ptrace.o): New.
15977 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15978 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15979 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15980 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15981 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15982 of these targets.
15983 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15984
f4647387
YQ
159852012-03-08 Yao Qi <yao@codesourcery.com>
15986 Pedro Alves <palves@redhat.com>
15987
15988 Fix PR server/13392.
15989 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15990 offset of JMP insn.
15991 * tracepoint.c (remove_tracepoint): New.
15992 (cmd_qtdp): Call remove_tracepoint when failed to install.
15993
9b224c5e
PA
159942012-03-07 Pedro Alves <palves@redhat.com>
15995
15996 * linux-low.c (get_detach_signal): New.
15997 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15998 Pass on pending signals to PTRACE_DETACH. Check the result of the
15999 ptrace call.
16000 * server.c (program_signals, program_signals_p): New.
16001 (handle_general_set): Handle QProgramSignals.
16002 * server.h (program_signals, program_signals_p): Declare.
16003
e237a7e2
JK
160042012-03-05 Pedro Alves <palves@redhat.com>
16005 Jan Kratochvil <jan.kratochvil@redhat.com>
16006
16007 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16008 New comment why.
16009
5808517f
YQ
160102012-03-03 Yao Qi <yao@codesourcery.com>
16011
16012 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16013 agent_look_up_symbols.
16014
58b4daa5
YQ
160152012-03-03 Yao Qi <yao@codesourcery.com>
16016
16017 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16018 (linux-x86-low.o): Likewise.
16019 * server.h: Remove in_process_agent_loaded.
16020 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16021 common/agent.c.
16022 Update callers.
16023
8ffcbaaf
YQ
160242012-03-03 Yao Qi <yao@codesourcery.com>
16025
16026 * tracepoint.c (gdb_agent_capability): New global.
16027 (in_process_agent_loaded_ust): Renamed to
16028 `in_process_agent_supports_ust'.
16029 Update callers.
16030 (in_process_agent_supports_ust): Call agent_capability_check.
16031 (clear_installed_tracepoints): Assert that agent supports
16032 agent.
16033
d1feda86
YQ
160342012-03-03 Yao Qi <yao@codesourcery.com>
16035
16036 * linux-low.c (linux_supports_agent): New.
16037 (linux_target_ops): Initialize field `supports_agent' with
16038 linux_supports_agent.
16039 * target.h (struct target_ops) <supports_agent>: New.
16040 (target_supports_agent): New macro.
16041 * server.c (handle_general_set): Handle packet 'QAgent'.
16042 (handle_query): Send `QAgent+'.
16043 * Makefile.in (server.o): Depends on agent.h.
16044
2fa291ac
YQ
160452012-03-03 Yao Qi <yao@codesourcery.com>
16046
16047 * Makefile.in (OBS): Add agent.o.
16048 Add new rule for agent.o.
16049 Track dependence of tracepoint.c on agent.h.
16050 * tracepoint.c (run_inferior_command_1):
16051 (run_inferior_command): Call agent_run_command.
16052 (gdb_ust_connect_sync_socket): Deleted. Move it to
16053 common/agent.c.
16054 (resume_thread, stop_thread): Likewise.
16055 (gdb_ust_socket_init): Renamed to ...
16056 (gdb_agent_socket_init): ... New.
16057 (gdb_ust_thread): Renamed to ...
16058 (gdb_agent_helper_thread): ... New.
16059 (gdb_ust_init): Move some code to ...
16060 (gdb_agent_init): ... here. New.
16061 [HAVE_UST]: Call gdb_ust_init.
16062 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16063 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16064 * config.in, configure: Regenerated.
16065
05044653
PA
160662012-03-02 Pedro Alves <palves@redhat.com>
16067
16068 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16069 * linux-low.c (struct simple_pid_list): New.
16070 (stopped_pids): New a struct simple_pid_list pointer.
16071 (add_to_pid_list, pull_pid_from_list): New.
16072 (handle_extended_wait): Don't assume the first signal new children
16073 report is SIGSTOP. Adjust call to pull_pid_from_list.
16074 (linux_wait_for_lwp): Adjust.
16075
8d00225b
YQ
160762012-03-02 Yao Qi <yao@codesourcery.com>
16077
16078 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16079 debug log.
16080
19560ba5
YQ
160812012-03-02 Yao Qi <yao@codesourcery.com>
16082
16083 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16084 `stop_pc' and `tpoint'. Update caller.
16085
1faeff08
MR
160862012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16087
16088 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16089 * linux-low.c (use_linux_regsets): New macro.
16090 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16091 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16092 (linux_register_in_regsets): New function.
16093 (usr_fetch_inferior_registers): Skip registers covered by
16094 regsets.
16095 (usr_store_inferior_registers): Likewise.
16096 (usr_fetch_inferior_registers): New macro.
16097 (usr_store_inferior_registers): Likewise.
16098 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16099 (linux_store_registers): Likewise.
16100 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16101 prototype.
16102 (init_registers_mips64_dsp_linux): Likewise.
16103 (init_registers_mips_linux): New macro.
16104 (init_registers_mips_dsp_linux): Likewise.
16105 (mips_dsp_num_regs): Likewise.
16106 (DSP_BASE, DSP_CONTROL): New fallback macros.
16107 (mips_base_regs): New macro.
16108 (mips_regmap): Use it. Fix the size.
16109 (mips_dsp_regmap): New variable.
16110 (mips_dsp_regset_bitmap): Likewise.
16111 (mips_arch_setup): New function.
16112 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16113 than mips_regmap.
16114 (mips_cannot_store_register): Likewise.
16115 (the_low_target): Update .arch_setup, .num_regs and .regmap
16116 initializers. Add .regset_bitmap initializer.
16117 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16118 initializer.
16119 * linux-bfin-low.c (the_low_target): Likewise.
16120 * linux-cris-low.c (the_low_target): Likewise.
16121 * linux-crisv32-low.c (the_low_target): Likewise.
16122 * linux-ia64-low.c (the_low_target): Likewise.
16123 * linux-m32r-low.c (the_low_target): Likewise.
16124 * linux-m68k-low.c (the_low_target): Likewise.
16125 * linux-ppc-low.c (the_low_target): Likewise.
16126 * linux-s390-low.c (the_low_target): Likewise.
16127 * linux-sh-low.c (the_low_target): Likewise.
16128 * linux-sparc-low.c (the_low_target): Likewise.
16129 * linux-tic6x-low.c (the_low_target): Likewise.
16130 * linux-x86-low.c (the_low_target): Likewise.
16131 * linux-xtensa-low.c (the_low_target): Likewise.
16132 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16133 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16134 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16135 srv_xmlfiles.
16136 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16137 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16138
c03e6ccc
YQ
161392012-02-29 Yao Qi <yao@codesourcery.com>
16140 Pedro Alves <palves@redhat.com>
16141
16142 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16143 `step_over_finished' is true.
16144
644cebc9
PA
161452012-02-27 Pedro Alves <palves@redhat.com>
16146
16147 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16148 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16149
c14d7ab2
PA
161502012-02-27 Pedro Alves <palves@redhat.com>
16151
16152 PR server/9684
16153 * linux-low.c (pid_is_stopped): New.
16154 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16155
412c89dd
LM
161562012-02-25 Luis Machado <lgustavo@codesourcery.com>
16157
16158 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16159 of conditions.
16160
b745defe
MR
161612012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16162
16163 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16164
9f3a5c85
LM
161652012-02-24 Luis Machado <lgustavo@codesourcery>
16166
16167 * server.c (handle_query): Advertise support for target-side
16168 breakpoint condition evaluation.
16169 (process_point_options): New function.
16170 (process_serial_event): When inserting a breakpoint, check for
16171 a target-side condition that should be evaluated.
16172
16173 * mem-break.c: Include regcache.h and ax.h.
16174 (point_cond_list_t): New data structure.
16175 (breakpoint) <cond_list>: New field.
16176 (find_gdb_breakpoint_at): Make non-static.
16177 (delete_gdb_breakpoint_at): Clear any target-side
16178 conditions.
16179 (clear_gdb_breakpoint_conditions): New function.
16180 (add_condition_to_breakpoint): Likewise.
16181 (add_breakpoint_condition): Likewise.
16182 (gdb_condition_true_at_breakpoint): Likewise.
16183 (gdb_breakpoint_here): Return result directly instead
16184 of going through a local variable.
16185
16186 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16187 (clear_gdb_breakpoint_conditions): Likewise.
16188 (add_breakpoint_condition): Likewise.
16189 (gdb_condition_true_at_breakpoint): Likewise.
16190
16191 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16192 (need_step_over_p): Take target-side breakpoint condition into
16193 consideration.
16194
5e1dc496
LM
161952012-02-24 Luis Machado <lgustavo@codesourcery>
16196
16197 * server.h: Include tracepoint.h.
16198 (agent_mem_read, agent_get_trace_state_variable_value,
16199 agent_set_trace_state_variable_value,
16200 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16201 get_set_tsv_func_addr): New prototypes.
16202
16203 * ax.h: New include file.
16204 * ax.c: New source file.
16205
16206 * tracepoint.c: Include ax.h.
16207 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16208 agent_expr, eval_result_type): Move to ax.h.
16209 (parse_agent_expr): Rename to ...
16210 (gdb_parse_agent_expr): ... this, make it non-static and move
16211 to ax.h.
16212 (unparse_agent_expr) Rename to ...
16213 (gdb_unparse_agent_expr): ... this, make it non-static and move
16214 to ax.h.
16215 (eval_agent_expr): Rename to ...
16216 (eval_tracepoint_agent_expr): ... this.
16217 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16218 forward declarations.
16219 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16220 (agent_get_trace_state_variable_value): New function.
16221 (agent_set_trace_state_variable_value): New function.
16222 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16223 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16224 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16225 (condition_true_at_tracepoint): Likewise.
16226 (parse_agent_expr): Rename to ...
16227 (gdb_parse_agent_expr): ... this and move to ax.c.
16228 (unparse_agent_expr): Rename to ...
16229 (gdb_unparse_agent_expr): ... this and move to ax.c.
16230 (gdb_agent_op_name): Move to ax.c.
16231 (eval_agent_expr): Rename to ...
16232 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16233 and move to ax.c.
16234 (eval_tracepoint_agent_expr): New function.
16235 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16236 non-static.
5e1dc496
LM
16237 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16238 ax.c.
16239 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16240 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16241 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16242 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16243 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16244 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16245 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16246 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16247 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16248 (compile_bytecodes): Remove forward declaration.
16249 (is_goto_target): Move to ax.c.
16250 (compile_bytecodes): Move to ax.c and call
16251 agent_get_trace_state_variable_value (...) and
16252 agent_set_trace_state_variable_value (...).
16253
16254 * Makefile.in: Update ax.c and IPA dependencies.
16255
277e4e52
PA
162562012-02-24 Pedro Alves <palves@redhat.com>
16257
16258 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16259 (cmd_bigqtbuffer_circular): ... this. Only handle
16260 'QTBuffer:circular:'.
16261 (handle_tracepoint_general_set): Adjust.
16262
bf4c19f7
YQ
162632012-02-16 Yao Qi <yao@codesourcery.com>
16264
16265 * inferiors.c: Move code to ...
16266 * dll.c: .... here. New.
16267 * server.h: Declare clear_dlls.
16268 * Makefile.in (SFILES): Add dll.c.
16269 (OBS): Add dll.o
16270 (dll.o): New rule.
16271
d73f2619
YQ
162722012-02-11 Yao Qi <yao@codesourcery.com>
16273
16274 * server.c: (handle_monitor_command): Add a new parameter
16275 `own_buf'.
16276 (handle_query): Update caller.
16277
f8255c2a
JB
162782012-02-09 Joel Brobecker <brobecker@adacore.com>
16279
16280 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16281 * configure, config.in: Regenerate.
16282 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16283 is not defined.
16284
da84f473
PA
162852012-02-02 Pedro Alves <palves@redhat.com>
16286
16287 Try SIGKILL first, then PTRACE_KILL.
16288 * linux-low.c (linux_kill_one_lwp): New.
16289 (linux_kill_one_lwp): Rename to ...
16290 (kill_one_lwp_callback): ... this. Use the new
16291 linux_kill_one_lwp.
16292
e886a173
PA
162932012-02-02 Pedro Alves <palves@redhat.com>
16294
16295 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16296 inferior.
16297
be07f1a2
PA
162982012-01-27 Pedro Alves <palves@redhat.com>
16299
16300 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16301 (elf_64_file_p): Make static.
16302 (linux_pid_exe_is_elf_64_file): New.
16303 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16304 Delete declarations.
16305 (linux_pid_exe_is_elf_64_file): Declare.
16306 * linux-x86-low.c (x86_arch_setup): Use
16307 linux_pid_exe_is_elf_64_file.
16308
d8301ad1
JK
163092012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16310
16311 * linux-low.c (linux_wait_for_event_1): Rename to ...
16312 (linux_wait_for_event): ... here and merge it with former
16313 linux_wait_for_event - new variable wait_ptid, use it.
16314 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16315
01b17894
PA
163162012-01-23 Pedro Alves <palves@redhat.com>
16317
16318 * server.c (main): Avoid yet another case of infinite loop while
16319 detaching/killing after a longjmp.
16320
e825046f
JK
163212012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16322
16323 Code cleanup.
16324 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16325
b9e7b9c3
UW
163262012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16327
16328 * hostio.c (handle_readlink): New function.
16329 (handle_vFile): Call it to handle "vFile:readlink" packets.
16330
901f9912
UW
163312012-01-20 Pedro Alves <palves@redhat.com>
16332 Ulrich Weigand <ulrich.weigand@linaro.org>
16333
16334 * server.c (handle_v_requests): Only support vAttach and vRun to
16335 start multiple processes when in extended protocol mode.
16336
fc1ab1a0
PA
163372012-01-17 Pedro Alves <palves@redhat.com>
16338
16339 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16340 memalign plus mprotect to allocate the scratch buffer.
16341
7d5d4e98
PA
163422012-01-13 Pedro Alves <palves@redhat.com>
16343
16344 * server.c (attach_inferior): Clear `cont_thread'.
16345
f128d5e9
PA
163462012-01-13 Pedro Alves <palves@redhat.com>
16347
16348 * server.c (main): Avoid infinite loop while detaching/killing
16349 after a longjmp.
16350
06db92f0
DE
163512012-01-09 Doug Evans <dje@google.com>
16352
16353 * server.c (start_inferior): Set last_ptid in --wrapper case.
16354
32d92999
YQ
163552012-01-06 Yao Qi <yao@codesourcery.com>
16356
16357 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16358 defined.
16359 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16360
5e0a92a9
YQ
163612012-01-04 Yao Qi <yao@codesourcery.com>
16362
16363 * tracepoint.c (cmd_qtdp): Print debug message
16364 for static tracepoint.
16365
ae639e8c
YQ
163662012-01-04 Yao Qi <yao@codesourcery.com>
16367
16368 * tracepoint.c (trace_vdebug): Differentiate debug message
16369 between gdbserver and IPA.
16370
f72429c5
YQ
163712012-01-03 Yao Qi <yao@codesourcery.com>
16372
16373 * tracepoint.c (tracepoint_was_hit): Don't collect for
16374 static tracepoint.
16375
12c3e59c
JB
163762012-01-02 Joel Brobecker <brobecker@adacore.com>
16377
16378 * terminal.h: Reformat copyright header.
16379
67827812
JB
163802012-01-02 Joel Brobecker <brobecker@adacore.com>
16381
16382 * server.c (gdbserver_version): Update copyright year.
16383 * gdbreplay.c (gdbreplay_version): Likewise.
16384
3e52c33d
JK
163852011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16386
16387 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16388
16389 Revert:
16390 2011-12-18 Hui Zhu <teawater@gmail.com>
16391 * linux-low.c (linux_create_inferior): Save return value to ret.
16392
66f1260e
HZ
163932011-12-18 Hui Zhu <teawater@gmail.com>
16394
16395 * linux-low.c (linux_create_inferior): Save return value to ret.
16396
e77616d7
DE
163972011-12-16 Doug Evans <dje@google.com>
16398
e7b06c57
DE
16399 * linux-low.c (linux_create_inferior): If stdio connection,
16400 redirect stdin from /dev/null, stdout to stderr.
16401 * remote-utils.c (remote_is_stdio): New static global.
16402 (remote_connection_is_stdio): New function.
16403 (remote_prepare): Handle stdio connection.
16404 (remote_open): Ditto.
16405 (remote_close): Don't close stdin for stdio connections.
16406 (read_prim,write_prim): New functions. Replace all calls to
16407 read/write to these.
16408 * server.c (main): Watch for "-" argument. Move call to
16409 remote_prepare before start_inferior.
16410 * server.h (STDIO_CONNECTION_NAME): New macro.
16411 (remote_connection_is_stdio): Declare.
16412
e77616d7
DE
16413 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16414 in debugging output.
16415
82067193
YQ
164162011-12-15 Yao Qi <yao@codesourcery.com>
16417
16418 * tracepoint.c: Include sys/syscall.h.
16419 (gdb_ust_thread): Remove preprocessor conditional.
16420
82bfbe7e
PA
164212011-12-14 Pedro Alves <pedro@codesourcery.com>
16422
16423 * linux-low.c (linux_detach_one_lwp): Call
16424 the_low_target.prepare_to_resume before detaching.
16425
712c6575
YQ
164262011-12-14 Yao Qi <yao@codesourcery.com>
16427
16428 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16429 of write.
16430
d54d1edf
YQ
164312011-12-14 Yao Qi <yao@codesourcery.com>
16432
16433 * i386-low.c (i386_low_stopped_data_address): Initialize local
16434 variable `control'.
16435
6210a125
PA
164362011-12-13 Pedro Alves <pedro@codesourcery.com>
16437
16438 PR remote/13492
16439
16440 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16441 DR_CONTROL unless necessary. Extend comments.
16442 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16443 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16444
2ece8244
YQ
164452011-12-13 Yao Qi <yao@codesourcery.com>
16446
16447 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16448 macros.
16449 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16450
784867a5
JK
164512011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16452
16453 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16454 Print new debug message for such case.
16455
6bf36717
JK
164562011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16457
16458 Fix overlapping memcpy.
16459 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16460 the read_inferior_memory transfer.
16461 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16462 write_inferior_memory transfer.
16463 (set_fast_tracepoint_jump): New variable buf. Use it for the
16464 read_inferior_memory and write_inferior_memory transfers.
16465 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16466 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16467 Use it for the write_inferior_memory transfer.
16468 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16469 buffers.
16470
50275556
MR
164712011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16472
16473 * linux-low.c (fetch_register, store_register): Make code
16474 consistent, fix formatting.
16475
7325beb4
MR
164762011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16477
16478 * linux-low.c (usr_store_inferior_registers): Factor out code
16479 to handle individual registers into...
16480 (store_register): ... this new function.
16481
c642a434
UW
164822011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16483
16484 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16485 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16486 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16487 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16488 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16489 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16490 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16491 (srv_xmlfiles): Add new XML files.
16492
16493 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16494 and <sys/uio.h>.
16495 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16496 (init_registers_s390_linux32v1): Add prototype.
16497 (init_registers_s390_linux32v2): Likewise.
16498 (init_registers_s390_linux64v1): Likewise.
16499 (init_registers_s390_linux64v2): Likewise.
16500 (init_registers_s390x_linux64v1): Likewise.
16501 (init_registers_s390x_linux64v2): Likewise.
16502 (s390_num_regs): Increment to 52.
16503 (s390_regmap): Add orig_r2 register.
16504 (s390_num_regs_3264): Increment to 68.
16505 (s390_regmap_3264): Add orig_r2 register.
16506 (s390_collect_ptrace_register): Handle orig_r2 register.
16507 (s390_supply_ptrace_register): Likewise.
16508 (s390_fill_last_break): New function.
16509 (s390_store_last_break): Likewise.
16510 (s390_fill_system_call): New function.
16511 (s390_store_system_call): Likewise.
16512 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16513 register sets.
16514 (s390_check_regset): New function.
16515 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16516 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16517 Update target_regsets for available register sets.
16518
2268b414
JK
165192011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16520 Jan Kratochvil <jan.kratochvil@redhat.com>
16521
16522 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16523 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16524 New.
16525 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16526 * linux-low.h (struct process_info_private): New member r_debug.
16527 * server.c (handle_qxfer_libraries): Call
16528 the_target->qxfer_libraries_svr4.
16529 (handle_qxfer_libraries_svr4): New function.
16530 (qxfer_packets): New entry "libraries-svr4".
16531 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16532 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16533 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16534 PACKET_qXfer_libraries_svr4.
16535
d6db1fab
UW
165362011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16537
16538 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16539 PSW address/mask between 8-byte and 16-byte formats.
16540 (s390_supply_ptrace_register): Likewise.
16541 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16542 basic addressing mode bit.
16543
242f5f1c
SS
165442011-11-24 Stan Shebs <stan@codesourcery.com>
16545
16546 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16547
f196051f
SS
165482011-11-17 Stan Shebs <stan@codesourcery.com>
16549
16550 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16551 (tracing_start_time): New global.
16552 (tracing_stop_time): New global.
16553 (tracing_user_name): New global.
16554 (tracing_notes): New global.
16555 (tracing_stop_note): New global.
16556 (cmd_qtstart): Set traceframe_usage, start_time.
16557 (stop_tracing): Set stop_time.
16558 (cmd_qtstatus): Report additional status.
16559 (cmd_qtp): New function.
16560 (handle_tracepoint_query): Call it.
16561 (cmd_qtnotes): New function.
16562 (handle_tracepoint_general_set): Call it.
16563 (get_timestamp): Rename from tsv_get_timestamp.
16564
405f8e94
SS
165652011-11-14 Stan Shebs <stan@codesourcery.com>
16566 Kwok Cheung Yeung <kcy@codesourcery.com>
16567
16568 * linux-x86-low.c (small_jump_insn): New.
16569 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16570 trampoline and error message, build a trampoline and issue a small
16571 jump instruction to it.
16572 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16573 trampoline and error message.
16574 (x86_get_min_fast_tracepoint_insn_len): New.
16575 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16576 * linux-low.h (struct linux_target_ops): Add arguments to
16577 install_fast_tracepoint_jump_pad operation, add new operation.
16578 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16579 arguments.
16580 (linux_get_min_fast_tracepoint_insn_len): New function.
16581 (linux_target_op): Add new operation.
16582 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16583 (gdb_trampoline_buffer_end): Ditto.
16584 (gdb_trampoline_buffer_error): Ditto.
16585 (struct ipa_sym_addresses): Add fields for new IPA variables.
16586 (symbol_list): Add entries for new IPA variables.
16587 (struct tracepoint): Add fields to hold the address range of the
16588 trampoline used by the tracepoint.
16589 (trampoline_buffer_head): New static variable.
16590 (trampoline_buffer_tail): Ditto.
16591 (claim_trampoline_space): New function.
16592 (have_fast_tracepoint_trampoline_buffer): New function.
16593 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16594 structure.
16595 (install_fast_tracepoint): Ditto, also add error buffer argument.
16596 (cmd_qtminftpilen): New function.
16597 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16598 (fast_tracepoint_from_trampoline_address): New function.
16599 (fast_tracepoint_collecting): Handle trampoline as part of jump
16600 pad space.
16601 (set_trampoline_buffer_space): New function.
16602 (initialize_tracepoint): Initialize new IPA variables.
16603 * target.h (struct target_ops): Add arguments to
16604 install_fast_tracepoint_jump_pad operation, add new
16605 get_min_fast_tracepoint_insn_len operation.
16606 (target_get_min_fast_tracepoint_insn_len): New.
16607 (install_fast_tracepoint_jump_pad): Add arguments.
16608 * server.h (IPA_BUFSIZ): Define.
16609 * linux-i386-ipa.c: Include extra header files.
16610 (initialize_fast_tracepoint_trampoline_buffer): New function.
16611 (initialize_low_tracepoint): Call it.
16612 * server.h (set_trampoline_buffer_space): Declare.
16613 (claim_trampoline_space): Ditto.
16614 (have_fast_tracepoint_trampoline_buffer): Ditto.
16615
1e4d1764
YQ
166162011-11-14 Yao Qi <yao@codesourcery.com>
16617
16618 * server.c (handle_query): Handle InstallInTrace for qSupported.
16619 * tracepoint.c (add_tracepoint): Sort list.
16620 (install_tracepoint, download_tracepoint): New.
16621 (cmd_qtdp): Call them to install and download tracepoints.
16622 (sort_tracepoints): Removed.
16623 (cmd_qtstart): Update.
16624
5c73ff4e
YQ
166252011-11-14 Yao Qi <yao@codesourcery.com>
16626
16627 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16628 * mem-break.h: Declare.
16629 * tracepoint.c (cmd_qtstart): Move some code to ...
16630 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16631 New.
16632 (download_tracepoints): Move some code to ...
16633 (download_tracepoint_1): ... here. New.
16634
86a30030
YQ
166352011-11-08 Yao Qi <yao@codesourcery.com>
16636
16637 * remote-utils.c (relocate_instruction): A comment fix.
16638
8d26e50c
JB
166392011-11-07 Joel Brobecker <brobecker@adacore.com>
16640
16641 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16642 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16643 dr_status_mirror and dr_control_mirror from debug_reg_state.
16644 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16645 (i386_initial_stuff): Remove use of deleted globals.
16646 (i386_get_thread_context, i386_set_thread_context,
16647 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16648 from debug_reg_state.
16649
a59306a3
YQ
166502011-11-05 Yao Qi <yao@codesourcery.com>
16651
16652 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16653 address as TPOINT's.
16654
3065dfb6
SS
166552011-11-02 Stan Shebs <stan@codesourcery.com>
16656
16657 * tracepoint.c (agent_mem_read_string): New function.
16658 (eval_agent_expr): Call it for tracenz.
16659 * server.c (handle_query): Report support for tracenz.
16660
fd0d8c7c
YQ
166612011-11-02 Yao Qi <yao@codesourcery.com>
16662
16663 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16664
609086b1
YQ
166652011-11-02 Yao Qi <yao@codesourcery.com>
16666
16667 * target.h: Fix a typo in comment.
16668
b9fd1791
PA
166692011-10-31 Pedro Alves <pedro@codesourcery.com>
16670
16671 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16672 clobber the breakpoints' shadows with fast tracepoint jumps.
16673 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16674 * target.c (write_inferior_memory): Also pass MYADDR down to
16675 check_mem_write.
16676
03583c20
UW
166772011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16678
16679 * configure.ac: Check support for personality routine.
16680 * configure: Regenerate.
16681 * config.in: Likewise.
16682 * linux-low.c: Include <sys/personality.h>.
16683 Define ADDR_NO_RANDOMIZE if necessary.
16684 (linux_create_inferior): Disable address space randomization when
16685 forking inferior, if requested.
16686 (linux_supports_disable_randomization): New function.
16687 (linux_target_ops): Install it.
16688 * server.h (disable_randomization): Declare.
16689 * server.c (disable_randomization): New global variable.
16690 (handle_general_set): Handle QDisableRandomization.
16691 (handle_query): Likewise for qSupported.
16692 (main): Support --disable-randomization and --no-disable-randomization
16693 command line arguments.
16694 * target.h (struct target_ops): Add supports_disable_randomization.
16695 (target_supports_disable_randomization): New macro.
16696
723b724b
MF
166972011-09-29 Mike Frysinger <vapier@gentoo.org>
16698
16699 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16700 ifdef check.
16701 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16702 [!PT_GETDSBT] (target_loadmap): New definition.
16703 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16704 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16705 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16706 and PT_GETDSBT to LINUX_LOADMAP.
16707 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16708 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16709
55329a5c 167102011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16711
16712 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16713 (arm_linux_hwbp_cap): New static variable.
16714 (arm_linux_get_hwbp_cap): Replace by ...
16715 (arm_linux_init_hwbp_cap): ... this new function.
16716 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16717 (arm_linux_get_hw_watchpoint_count): Likewise.
16718 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16719 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16720 (arm_prepare_to_resume): Use perror_with_name instead of error.
16721
55329a5c 167222011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16723
16724 * linux-arm-low.c: Include <signal.h>.
16725 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16726 (struct arm_linux_hwbp_cap): New data type.
16727 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16728 (struct arm_linux_hw_breakpoint): New data type.
16729 (MAX_BPTS, MAX_WPTS): Define.
16730 (struct arch_process_info, struct arch_lwp_info): New data types.
16731 (arm_linux_get_hwbp_cap): New function.
16732 (arm_linux_get_hw_breakpoint_count): Likewise.
16733 (arm_linux_get_hw_watchpoint_count): Likewise.
16734 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16735 (arm_hwbp_control_initialize): Likewise.
16736 (arm_hwbp_control_is_enabled): Likewise.
16737 (arm_hwbp_control_is_initialized): Likewise.
16738 (arm_hwbp_control_disable): Likewise.
16739 (arm_linux_hw_breakpoint_equal): Likewise.
16740 (arm_linux_hw_point_initialize): Likewise.
16741 (struct update_registers_data): New data structure.
16742 (update_registers_callback: New function.
16743 (arm_insert_point): Likewise.
16744 (arm_remove_point): Likewise.
16745 (arm_stopped_by_watchpoint): Likewise.
16746 (arm_stopped_data_address): Likewise.
16747 (arm_new_process): Likewise.
16748 (arm_new_thread): Likewise.
16749 (arm_prepare_to_resume): Likewise.
16750 (the_low_target): Register arm_insert_point, arm_remove_point,
16751 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16752 arm_new_thread, and arm_prepare_to_resume.
16753
6b9801d4
SS
167542011-09-15 Stan Shebs <stan@codesourcery.com>
16755
16756 * server.h (struct emit_ops): Add compare-goto fields.
16757 * tracepoint.c (gdb_agent_op_sizes): New table.
16758 (emit_eq_goto): New function.
16759 (emit_ne_goto): New function.
16760 (emit_lt_goto): New function.
16761 (emit_le_goto): New function.
16762 (emit_gt_goto): New function.
16763 (emit_ge_goto): New function.
16764 (is_goto_target): New function.
16765 (compile_bytecodes): Recognize special cases of compare-goto
16766 combinations and call specialized emitters for them.
16767 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16768 (amd64_emit_ne_goto): New function.
16769 (amd64_emit_lt_goto): New function.
16770 (amd64_emit_le_goto): New function.
16771 (amd64_emit_gt_goto): New function.
16772 (amd64_emit_ge_goto): New function.
16773 (amd64_emit_ops): Add the new functions.
16774 (i386_emit_eq_goto): New function.
16775 (i386_emit_ne_goto): New function.
16776 (i386_emit_lt_goto): New function.
16777 (i386_emit_le_goto): New function.
16778 (i386_emit_gt_goto): New function.
16779 (i386_emit_ge_goto): New function.
16780 (i386_emit_ops): Add the new functions.
16781
bf15cbda
SS
167822011-09-08 Stan Shebs <stan@codesourcery.com>
16783
16784 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16785 (i386_emit_epilogue): Restore %ebx.
16786
943ca1dd
JZ
167872011-08-31 Jie Zhang <jzhang918@gmail.com>
16788
16789 * server.c (step_thread): Remove definition.
16790 (process_serial_event): Don't handle Hs.
16791 * server.h (step_thread): Remove declaration.
16792 * target.c (set_desired_inferior): Remove use of step_thread.
16793
e3deef73
LM
167942011-08-24 Luis Machado <lgustavo@codesourcery.com>
16795
16796 * linux-low.c: Include linux-procfs.h.
16797 (linux_attach_lwp_1): Update comments.
16798 (linux_attach): Scan for existing threads when attaching to a
16799 process that is the tgid.
16800 * Makefile.in: Update dependencies.
16801
13da1c97
LM
168022011-08-24 Luis Machado <lgustavo@codesourcery.com>
16803
16804 * configure.srv: Add linux-procfs.o dependencies.
16805
881127c9
YQ
168062011-08-14 Yao Qi <yao@codesourcery.com>
16807
16808 * target.h (struct target_ops): Fix indent.
16809 * win32-low.c (win32_target_ops): Fix comment.
16810
58dbd541
YQ
168112011-08-14 Andrew Jenner <andrew@codesourcery.com>
16812 Yao Qi <yao@codesourcery.com>
16813
16814 * Makefile.in (clean): Remove tic6x-*.c files.
16815 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16816 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16817 (tic6x-c64xp-linux.c): Likewise.
16818 * configure.srv: Add support for tic6x-*-uclinux.
16819 * linux-tic6x-low.c: New.
16820 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16821
78d85199
YQ
168222011-08-14 Andrew Stubbs <ams@codesourcery.com>
16823 Yao Qi <yao@codesourcery.com>
16824
16825 * target.h (struct target_ops): Add read_loadmap.
16826 * linux-low.c (struct target_loadseg): New type.
16827 (struct target_loadmap): New type.
16828 (linux_read_loadmap): New function.
16829 (linux_target_ops): Add linux_read_loadmap.
16830 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16831 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16832 to NULL.
78d85199 16833
a959a88d
EZ
168342011-08-05 Eli Zaretskii <eliz@gnu.org>
16835
16836 * win32-low.c: Include <stdint.h>.
16837
1ced966e
PA
168382011-07-22 Pedro Alves <pedro@codesourcery.com>
16839
16840 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16841 to the inferior here.
16842 (i386_remove_aligned_watchpoint): Ditto.
16843 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16844 fit part of the watchpoint in the debug registers.
16845 (i386_update_inferior_debug_regs): New.
16846 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16847 registers, and only update the inferior on success.
16848 (i386_low_remove_watchpoint): Ditto.
16849
d26e3629
KY
168502011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16851
16852 * linux-low.c (compare_ints, unique, list_threads, show_process,
16853 linux_core_of_thread): Delete.
16854 (linux_target_ops): Change linux_core_of_thread to
16855 linux_common_core_of_thread.
16856 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16857 * utils.c (malloc_failure): Change type of argument.
16858 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16859 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16860 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16861 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16862 (IPA_OBJS): Add common-utils-ipa.o.
16863 (ptid_h, linux_osdata_h): New macros.
16864 (server_h): Add common/common-utils.h, common/xml-utils.h,
16865 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16866 common/ptid.h.
16867 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16868 ptid.o, buffer.o): New rules.
16869 (linux-low.o): Add common/linux-osdata.h as a dependency.
16870 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16871 * configure.ac: Add AC_HEADER_DIRENT check.
16872 * config.in: Regenerate.
16873 * configure: Regenerate.
16874 * remote-utils.c (xml_escape_text): Delete.
16875 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16876 buffer_xml_printf): Move to common/buffer.c.
16877 * server.c (main): Remove call to initialize_inferiors.
16878 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16879 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16880 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16881 internal_error, gdb_assert, gdb_assert_fail): Delete.
16882 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16883 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16884 common/buffer.h.
16885 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16886 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16887 initialize_inferiors): Delete.
16888
2275a1a7
PA
168892011-07-20 Pedro Alves <pedro@codesourcery.com>
16890
16891 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16892 symbol error.
16893
0a5b1e09
PA
168942011-05-31 Pedro Alves <pedro@codesourcery.com>
16895
16896 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16897 assertion.
16898 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16899
6938fd34
YQ
169002011-05-26 Yao Qi <yao@codesourcery.com>
16901
16902 * Makefile.in (thread-db.o): Track dependence to
16903 common/gdb_thread_db.h.
16904 * thread-db.c: include gdb_thread_db.h from right place.
16905
b481f9e0
TT
169062011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16907
16908 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16909 __FILE__ and __LINE__ to internal_error.
16910
98a5dd13
DE
169112011-05-13 Doug Evans <dje@google.com>
16912
16913 * thread-db.c (try_thread_db_load_from_sdir): New function.
16914 (try_thread_db_load_from_dir): New function.
16915 (thread_db_load_search): Handle $sdir, ignore $pdir.
16916 Remove trying of system directories if search of
16917 libthread-db-search-path fails, that is now done via $sdir.
16918
d248b706
KY
169192011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16920
16921 * server.c (handle_query): Add EnableDisableTracepoints to the list
16922 of supported features.
43aaf8b6 16923 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16924 tracepoints.
43aaf8b6
PA
16925 (cmd_qtenable_disable): New.
16926 (cmd_qtstart): Install tracepoints even if disabled.
16927 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16928 receiving a QTEnable or QTDisable packet.
16929 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16930 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16931 tracepoints.
16932 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16933
84e578fb
DE
169342011-05-10 Doug Evans <dje@google.com>
16935
16936 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16937
71f55dd8
DE
169382011-05-04 Doug Evans <dje@google.com>
16939
16940 * linux-low.c (linux_join): Skip process lookup.
16941 * spu-low.c (spu_join): Ditto.
16942 * server.c (join_inferiors_callback): Delete.
16943 (process_serial_event): For 'D' packet (detach) call join_inferior
16944 directly.
16945
4d393d60
JM
169462011-05-04 Joseph Myers <joseph@codesourcery.com>
16947
16948 * README: Don't mention xscale*-*-linux*.
16949 * configure.srv (xscale*-*-linux*): Don't handle target.
16950
b00ad6ff
NF
169512011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16952
16953 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16954 casting pointers.
16955 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16956 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16957 (i386_emit_void_call_2): Likewise.
16958
af96c192
YQ
169592011-04-26 Yao Qi <yao@codesourcery.com>
16960
43aaf8b6
PA
16961 * linux-low.c: Move common macros to linux-ptrace.h.
16962 Include linux-ptrace.h.
af96c192
YQ
16963 * Makefile.in (linux_ptrace_h): New.
16964 (linux-low.o): Depends on linux-ptrace.h.
16965
03f2bd59
JK
169662011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16967
16968 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16969 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16970 (remote_prepare): New function with most of the TCP code from ...
16971 (remote_open): ... here. Detect PORT here unconditionally. Move also
16972 setting transport_is_reliable.
16973 * server.c (run_once): New variable.
16974 (gdbserver_usage): Document it.
16975 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16976 the first run if RUN_ONCE.
16977 * server.h (run_once, remote_prepare): New declarations.
16978
7a9dd1b2
TT
169792011-04-19 Tom Tromey <tromey@redhat.com>
16980
16981 * win32-low.c (handle_load_dll): Remove duplicate "the".
16982
81239425
PM
169832011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16984
16985 Remove support for old Cygwin 1.5 versions.
16986 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16987 function to avoid warning.
16988 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16989 warning.
16990
9e0627f1
PM
169912011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16992
16993 * gdbserver/server.h (Macro _): Define it if not available.
16994
588eebee
MS
169952011-03-14 Michael Snyder <msnyder@vmware.com>
16996
348af9f7 16997 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16998
43f70d4c
JB
169992011-03-10 Joel Brobecker <brobecker@adacore.com>
17000
17001 * Makefile.in (maintainer-clean realclean distclean): Remove
17002 "make ... subdir_do" command.
17003
348af9f7
MS
170042011-03-10 Michael Snyder <msnyder@vmware.com>
17005
17006 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17007
17008 * server.c (handle_v_run): Free alloced buffer on early return.
17009
e637a4f5
YQ
170102011-03-09 Yao Qi <yao@codesourcery.com>
17011
17012 Revert:
17013 2011-03-04 Yao Qi <yao@codesourcery.com>
17014
17015 * Makefile.in: Remove GNU make feature --directory.
17016
17017 2011-03-05 Yao Qi <yao@codesourcery.com>
17018
17019 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17020 (subdir_do): New make target. Copied from gdb/Makefile.
17021 (maintainer-clean, realclean, distclean, clean): Call corresponding
17022 make targets in common/Makefile.
17023
17024 2011-02-11 Yao Qi <yao@codesourcery.com>
17025
17026 * configure.ac: Call AC_PROG_RANLIB.
17027 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17028 * configure: Regenerate.
17029
e6edda56
JK
170302011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17031
17032 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17033
e5141119
JB
170342011-03-06 Yao Qi <yao@codesourcery.com>
17035
17036 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17037
64794aa4
JB
170382011-03-05 Yao Qi <yao@codesourcery.com>
17039
17040 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17041 (subdir_do): New make target. Copied from gdb/Makefile.
17042 (maintainer-clean, realclean, distclean, clean): Call corresponding
17043 make targets in common/Makefile.
17044
7a762829
YQ
170452011-03-04 Yao Qi <yao@codesourcery.com>
17046
17047 * Makefile.in: Remove GNU make feature --directory.
17048
348af9f7
MS
170492011-03-04 Michael Snyder <msnyder@vmware.com>
17050
17051 * server.c (queue_stop_reply): Call xmalloc not malloc.
17052
170532011-03-02 Michael Snyder <msnyder@vmware.com>
17054
17055 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17056
9f72fee2
MS
170572011-02-28 Michael Snyder <msnyder@vmware.com>
17058
588eebee
MS
17059 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17060 (cmd_qtframe): Ditto.
17061 (cmd_qtbuffer): Ditto.
17062 (cmd_bigqtbuffer): Ditto.
17063
9f72fee2
MS
17064 * utils.c (decimal2str): Initialize 'width' to nine, then
17065 don't mess with it.
17066
8040bd49
UW
170672011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17068
17069 * hostio.c (require_data): Free *data, not data.
17070
7e52cbd0
JK
170712011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17072
17073 * hostio.c (require_data): Use free, not xfree.
17074
9130f83e
MS
170752011-02-27 Michael Snyder <msnyder@vmware.com>
17076
4b812f4e
MS
17077 * server.c (handle_query): Discard unused value.
17078
9130f83e
MS
17079 * hostio.c (require_data): Free malloc memory before returning
17080 error.
17081
69d37113
MS
170822011-02-26 Michael Snyder <msnyder@vmware.com>
17083
17084 * linux-low.c (list_threads): Call closedir for dirent.
17085
35f5825a
MS
170862011-02-27 Michael Snyder <msnyder@vmware.com>
17087
2a589cef
MS
17088 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17089 a case statement falls through.
17090
0adea5f7
MS
17091 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17092
35f5825a
MS
17093 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17094 in comparison.
17095
238f1c74
MS
170962011-02-26 Michael Snyder <msnyder@vmware.com>
17097
17098 * utils.c (decimal2str): Eliminate dead code and dead param.
17099 (pulongest): Drop dead param from call to decimal2str.
17100 (plongest): Ditto.
17101
633ff500
JB
171022011-02-24 Joel Brobecker <brobecker@adacore.com>
17103
17104 Revert the following patch (not approved yet):
17105 2011-02-21 Hui Zhu <teawater@gmail.com>
17106 * tracepoint.c (tp_printf): New function.
17107 (eval_agent_expr): Handle gdb_agent_op_printf.
17108
f9c6ff72
HZ
171092011-02-21 Hui Zhu <teawater@gmail.com>
17110
17111 * tracepoint.c (tp_printf): New function.
17112 (eval_agent_expr): Handle gdb_agent_op_printf.
17113
94d5e490
TT
171142011-02-18 Tom Tromey <tromey@redhat.com>
17115
17116 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17117 (tracepoint.o): Likewise.
17118 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17119 (gdb_agent_op_names): Likewise.
17120
c7f96d2b
TT
171212011-02-18 Tom Tromey <tromey@redhat.com>
17122
17123 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17124 gdb_agent_op_rot>: New constants.
17125 (gdb_agent_op_names): Add pick and roll.
17126 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17127 cases.
17128
0feedb2c
JK
171292011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17130
17131 * aclocal.m4: Regenerated with aclocal-1.11.1.
17132
b3b9301e
PA
171332011-02-14 Pedro Alves <pedro@codesourcery.com>
17134
17135 * server.c (handle_qxfer_traceframe_info): New.
17136 (qxfer_packets): Register "traceframe-info".
17137 (handle_query): Report support for qXfer:traceframe-info:read+.
17138 * tracepoint.c (match_blocktype): New.
17139 (traceframe_find_block_type): Rename to ...
17140 (traceframe_walk_blocks): ... this. Add callback filter argument,
17141 and use it.
17142 (traceframe_find_block_type): New, reimplemented on top of
17143 traceframe_walk_blocks.
17144 (build_traceframe_info_xml): New.
17145 (traceframe_read_info): New.
17146 * server.h (traceframe_read_info): Declare.
17147
4f3e6fb7
YQ
171482011-02-11 Yao Qi <yao@codesourcery.com>
17149
17150 * configure.ac: Call AC_PROG_RANLIB.
17151 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17152 * configure: Regenerate.
17153
764880b7
PA
171542011-02-07 Pedro Alves <pedro@codesourcery.com>
17155
17156 * server.c (gdb_read_memory): Change return semantics to allow
17157 partial transfers.
17158 (handle_search_memory_1): Adjust.
17159 (process_serial_event) <'m' packet>: Handle partial transfers.
17160 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17161
1c79eb8a
PA
171622011-01-28 Pedro Alves <pedro@codesourcery.com>
17163
17164 * regcache.c (init_register_cache): Initialize
17165 regcache->register_status.
17166 (free_register_cache): Release regcache->register_status.
17167 (regcache_cpy): Copy register_status.
17168 (registers_to_string): Print 'x's for unavailable registers.
17169 (supply_register): Mark the register's status valid or
17170 unavailable, depending on whether a buffer was passed in or not.
17171 (supply_register_zeroed): New.
17172 (supply_regblock): Mark the registers' status valid or
17173 unavailable, depending on whether a buffer was passed in or not.
17174 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17175 (struct regcache): New `register_status' field.
17176 (supply_register_zeroed): Declare.
17177 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17178 supply_register_zeroed, rather than passing a NULL buffer to
17179 supply_register.
17180 * tracepoint.c (fetch_traceframe_registers): Update comment.
17181
85724a0e
PA
171822011-01-28 Pedro Alves <pedro@codesourcery.com>
17183
17184 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17185 buffer explicit.
17186
d08aafef
PA
171872011-01-25 Pedro Alves <pedro@codesourcery.com>
17188
17189 * server.h (decode_xfer_write): Change prototype.
17190 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17191 and don't extract the annex here.
17192 * server.c (decode_xfer_read): Remove `annex' parameter,
17193 and don't extract the annex here.
17194 (decode_xfer): New.
17195 (struct qxfer): New.
17196 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17197 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17198 (handle_qxfer_statictrace): New functions, abstracted out from
17199 handle_query, and made to use the struct qxfer interface.
17200 (handle_threads_qxfer_proper): Rename to ...
17201 (handle_qxfer_threads_proper): ... this.
17202 (handle_threads_qxfer): Rename to ...
17203 (handle_qxfer_threads): ... this. Adjust.
17204 (qxfer_packets): New array.
17205 (handle_qxfer): New function.
17206 (handle_query): Use handle_qxfer.
17207
493e2a69
MS
172082011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17209
17210 * gdbreplay.c: Shorten lines of >= 80 columns.
17211 * linux-low.c: Ditto.
17212 * linux-ppc-low.c: Ditto.
17213 * linux-s390-low.c: Ditto.
17214 * linux-sparc-low.c: Ditto.
17215 * linux-x86-low.c: Ditto.
17216 * linux-xtensa-low.c: Ditto.
17217 * mem-break.c: Ditto.
17218 * nto-low.c: Ditto.
17219 * regcache.h: Ditto.
17220 * remote-utils.c: Ditto.
17221 * server.c: Ditto.
17222 * server.h: Ditto.
17223 * thread-db.c: Ditto.
17224 * tracepoint.c: Ditto.
17225 * utils.c: Ditto.
17226 * win32-low.h: Ditto.
17227
44944448
JB
172282011-01-05 Joel Brobecker <brobecker@adacore.com>
17229
17230 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17231 update.
17232
71ce852c
JB
172332011-01-01 Joel Brobecker <brobecker@adacore.com>
17234
17235 * server.c (gdbserver_version): Update copyright year in version
17236 output.
17237 * gdbreplay.c (gdbreplay_version): Ditto.
17238
eb826dc6
MF
172392010-12-29 Jie Zhang <jie.zhang@analog.com>
17240
17241 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17242 * linux-bfin-low.c: New file.
17243 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17244 PT_DATA_ADDR for BFIN targets.
17245 * Makefile.in (SFILES): Add linux-bfin-low.c.
17246 (clean): Remove reg-bfin.c.
17247 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17248 * README: Mention supported Blackfin targets.
17249
39ab222a
MF
172502010-12-23 Mike Frysinger <vapier@gentoo.org>
17251
17252 * .gitignore: New file.
17253
a1f2ce7d
MF
172542010-11-16 Mike Frysinger <vapier@gentoo.org>
17255
17256 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17257
f474844c
JZ
172582010-10-22 Jie Zhang <jie@codesourcery.com>
17259
17260 * Makefile.in: Add FLAGS_TO_PASS variable.
17261 (install): Remove dependency of install-only and recursively
17262 invoke make for install-only.
17263
f1048712
DE
172642010-10-04 Doug Evans <dje@google.com>
17265
17266 * Makefile.in (uninstall): Use $(DESTDIR).
17267
b53a1623
PA
172682010-09-24 Pedro Alves <pedro@codesourcery.com>
17269
e6ee044d
PA
17270 PR gdb/11842
17271
b53a1623
PA
17272 * linux-x86-low.c (compat_siginfo_from_siginfo)
17273 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17274 si_code is < 0. Check for si_code == SI_TIMER before checking for
17275 si_code < 0.
17276
fa1bd1e4
JB
172772010-09-13 Joel Brobecker <brobecker@adacore.com>
17278
17279 * lynx-i386-low.c: New file.
17280 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17281
47fac8f8
JB
172822010-09-13 Joel Brobecker <brobecker@adacore.com>
17283
17284 * lynx-low.c (ptrace_request_to_str): Remove handling for
17285 request values that have been removed in LynxOS 5.x.
17286
1adfc54d
JB
172872010-09-13 Joel Brobecker <brobecker@adacore.com>
17288
17289 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17290 <ptrace.h>
17291
c2a66c29
NS
172922010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17293
17294 * configure.ac: Add --enable-inprocess-agent option.
17295 * configure: Rebuilt.
17296
32fcada3
YQ
172972010-09-06 Yao Qi <yao@codesourcery.com>
17298
17299 * linux-low.c (linux_kill): Remove unused variable.
17300 (linux_stabilize_threads): Likewise.
17301 * server.c (start_inferior): Likewise.
17302 (queue_stop_reply_callback): Likewise.
17303 * tracepoint.c (do_action_at_tracepoint): Likewise.
17304
0cccb683
YQ
173052010-09-06 Yao Qi <yao@codesourcery.com>
17306
17307 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17308 on return.
17309
423ec54c
JK
173102010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17311
17312 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17313
12ac6819
PA
173142010-09-06 Pedro Alves <pedro@codesourcery.com>
17315
17316 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17317 "$(IPA_DEPFILES)".
17318
8ed54b31
JB
173192010-09-01 Joel Brobecker <brobecker@adacore.com>
17320
17321 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17322 gdbserver/lynx-ppc-low.c: New files.
17323 * Makefile.in (lynx_low_h): New variable.
17324 (lynx-low.o, lynx-ppc-low.o): New rules.
17325 * configure.ac: On LynxOS, link with -lnetinet.
17326 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17327 * configure: regenerate.
17328
bb0116a4
JB
173292010-09-01 Joel Brobecker <brobecker@adacore.com>
17330
17331 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17332 * configure.ac: Add check for vasprintf and vsnprintf.
17333 * configure, config.in: Regenerate.
17334 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17335
a778ab81 173362010-09-01 Joel Brobecker <brobecker@adacore.com>
17337
17338 * gdbreplay.c: Move include of alloca.h up, next to include of
17339 malloc.h.
17340 * server.h: Add include of malloc.h.
17341 * mem-break.c: Remove include of malloc.h.
17342 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17343
8b034a19 173442010-09-01 Joel Brobecker <brobecker@adacore.com>
17345
17346 * Makefile.in (memmem.o): Build with -Wno-error.
17347
173482010-09-01 Joel Brobecker <brobecker@adacore.com>
17349
17350 * utils.c (xsnprintf): Make non-static.
17351 * server.h: Add xsnprintf declaration.
17352 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17353 replace calls to snprintf by calls to xsnprintf throughout.
17354
173552010-09-01 Joel Brobecker <brobecker@adacore.com>
17356
17357 * configure.ac: Add configure check for alloca.
17358 * configure, config.in: Regenerate.
17359 * server.h: Include alloca.h if it exists.
17360 * gdbreplay.c: Include alloca.h if it exists.
17361
1a981360
PA
173622010-08-28 Pedro Alves <pedro@codesourcery.com>
17363
17364 * linux-low.c (__SIGRTMIN): Define if not already defined.
17365 (linux_create_inferior): Check for __ANDROID__ rather than
17366 __SIGRTMIN.
17367 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17368 are already deferred.
17369 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17370 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17371 stopped and already has a pending signal to report.
17372 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17373 a pending signal to report or is moving out of a jump pad.
17374 (linux_init_signals): Check for __ANDROID__ rather than
17375 __SIGRTMIN.
17376
b4d51a55
PA
173772010-08-28 Pedro Alves <pedro@codesourcery.com>
17378
17379 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17380 debug_threads check. Avoid a linear search when not doing debug
17381 output.
17382
ec48365d
PA
173832010-08-27 Pedro Alves <pedro@codesourcery.com>
17384
17385 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17386 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17387 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17388 (process_event): Change local fd's type to gdb_fildes_t.
17389 (create_file_handler): Adjust prototype.
17390 (delete_file_handler): Adjust prototype.
17391 (handle_file_event): Adjust prototype. Use pfildes.
17392 (create_file_event): Adjsut prototype.
17393 * remote-utils.c (remote_desc, listen_desc): Change type to
17394 gdb_fildes_t.
17395 * server.h: New gdb_fildes_t typedef.
17396 [USE_WIN32API]: Include winsock2.h.
17397 (delete_file_handler, add_file_handler): Adjust prototypes.
17398 (pfildes): Declare.
17399 * utils.c (pfildes): New.
17400
854d88f0
PA
174012010-08-27 Pedro Alves <pedro@codesourcery.com>
17402
17403 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17404 * configure: Regenerate.
17405
0146f85b
PA
174062010-08-27 Pedro Alves <pedro@codesourcery.com>
17407
17408 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17409 (linux_done_accessing_memory): ... this.
17410 (linux_target_ops): Adjust.
17411 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17412 * nto-low.c (nto_target_ops): Adjust comment.
17413 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17414 * spu-low.c (spu_target_ops): Adjust comment.
17415 * target.h (target_ops): Rename unprepare_to_access_memory field
17416 to done_accessing_memory.
17417 (unprepare_to_access_memory): Rename to ...
17418 (done_accessing_memory): ... this.
17419
90d74c30
PA
174202010-08-26 Pedro Alves <pedro@codesourcery.com>
17421
17422 * linux-low.c (linux_prepare_to_access_memory): New.
17423 (linux_unprepare_to_access_memory): New.
17424 (linux_target_ops): Install them.
17425 * server.c (read_memory): Rename to ...
17426 (gdb_read_memory): ... this. Use
17427 prepare_to_access_memory/prepare_to_access_memory.
17428 (write_memory): Rename to ...
17429 (gdb_write_memory): ... this. Use
17430 prepare_to_access_memory/prepare_to_access_memory.
17431 (handle_search_memory_1): Adjust.
17432 (process_serial_event): Adjust.
17433 * target.h (struct target_ops): New fields
17434 prepare_to_access_memory and unprepare_to_access_memory.
17435 (prepare_to_access_memory, unprepare_to_access_memory): New.
17436 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17437 prepare_to_access_memory/prepare_to_access_memory.
17438 * nto-low.c (nto_target_ops): Adjust.
17439 * spu-low.c (spu_target_ops): Adjust.
17440 * win32-low.c (win32_target_ops): Adjust.
17441
fd467969
PA
174422010-08-26 Pedro Alves <pedro@codesourcery.com>
17443
17444 * Makefile.in (WARN_CFLAGS): Get it from configure.
17445 (WERROR_CFLAGS): New.
17446 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17447 * configure.ac: Introduce --enable-werror, which adds -Werror to
17448 the compiler command line. Enabled by default. Disable with
17449 --disable-werror. Add -Wdeclaration-after-statement
17450 Wpointer-arith and -Wformat-nonliteral to warning flags.
17451 * configure: Regenerate.
17452
331e2f5f
PA
174532010-08-26 Pedro Alves <pedro@codesourcery.com>
17454
17455 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17456
e581f2b4
PA
174572010-08-26 Pedro Alves <pedro@codesourcery.com>
17458
17459 * gdbreplay.c (remote_error): New.
17460 (gdbchar): New.
17461 (expect): Use gdbchar. Check for error reading from GDB.
17462 Clarify sync error output.
17463 (play): Check for errors writing to GDB.
17464 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17465 * remote-utils.c (getpkt): Check for errors writing to the remote
17466 descriptor.
17467
3c11dd79
PA
174682010-08-25 Pedro Alves <pedro@codesourcery.com>
17469
17470 * linux-low.c (linux_wait_1): Move non-debugging code out of
17471 `debug_threads' control.
17472
d20a8ad9
PA
174732010-08-25 Pedro Alves <pedro@codesourcery.com>
17474
17475 * linux-low.c (linux_wait_1): Don't set last_status here.
17476 * server.c (push_event, queue_stop_reply_callback): Assert we're
17477 not pushing a TARGET_WAITKIND_IGNORE event.
17478 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17479 (myresume, handle_target_event): Set the thread's last_resume_kind
17480 and last_status from the target returned status.
17481
964e4306
PA
174822010-08-25 Pedro Alves <pedro@codesourcery.com>
17483
17484 PR threads/10729
17485
17486 * linux-x86-low.c (update_debug_registers_callback): New.
17487 (i386_dr_low_set_addr): Use it.
17488 (i386_dr_low_get_addr): New.
17489 (i386_dr_low_set_control): Use update_debug_registers_callback.
17490 (i386_dr_low_get_control): New.
17491 (i386_dr_low_get_status): Adjust.
17492 * linux-low.c (linux_stop_lwp): New.
17493 * linux-low.h (linux_stop_lwp): Declare.
17494
17495 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17496 argument instead of a i386_debug_reg_state.
17497 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17498 a i386_debug_reg_state.
17499 (i386_insert_aligned_watchpoint): Adjust.
17500 (i386_remove_aligned_watchpoint): Adjust.
17501 (i386_low_stopped_data_address): Read the debug registers from the
17502 inferior instead of from the mirrors.
17503 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17504 (i386_dr_low_get_addr): Declare.
17505 (i386_dr_low_get_control): Declare.
17506 (i386_dr_low_get_status): Change prototype.
17507
17508 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17509 (i386_dr_low_get_addr): New.
17510 (i386_dr_low_get_control): New.
17511 (i386_dr_low_get_status): Adjust prototype. Return
17512 dr_status_mirror.
17513 (i386_initial_stuff): Clear dr_status_mirror and
17514 dr_control_mirror.
17515 (i386_get_thread_context): Adjust.
17516 (i386_set_thread_context): Adjust.
17517 (i386_thread_added): Adjust.
17518
5f21a75b
PA
175192010-08-24 Pedro Alves <pedro@codesourcery.com>
17520
17521 * linux-low.h (linux_thread_area): Delete declaration.
17522
3e4c1235
TS
175232010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17524
17525 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17526 after its termination.
17527
1971b033
PA
175282010-08-09 Pedro Alves <pedro@codesourcery.com>
17529
17530 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17531 (gdb_wants_all_stopped): Delete.
17532 (linux_wait_1): Don't call them.
17533 * server.c (handle_v_cont): Tag all threads as want-stopped.
17534 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17535 stopped as "client-wants-stopped".
17536
310444ac
PA
175372010-07-31 Pedro Alves <pedro@codesourcery.com>
17538
17539 * Makefile.in (signals_h): New.
17540 (server_h): Depend on it.
17541 (server.o): Don't depend on $(signals_def).
17542 (signals.o): Depend on $(signals_def).
17543
a19cae16
JK
175442010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17545
17546 * Makefile.in (signals_def): New.
17547 (server_h): Append include/gdb/signals.h and signals_def.
17548 (server.o): Append signals_def.
17549
30d50328
JK
175502010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17551
17552 * server.c (handle_target_event): Use target_signal_to_host for
17553 resume_info.sig initialization.
17554 * target.h (struct thread_resume) <sig>: New comment.
17555
5c3216e2
OS
175562010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17557
c6f46ca0
OS
17558 * server.c (handle_query): strcpy() the returned string from paddress()
17559 instead of sprintf().
5c3216e2
OS
17560 * utils.c (paddress): Return phex_nz().
17561
6bd31874
JB
175622010-07-07 Joel Brobecker <brobecker@adacore.com>
17563
17564 * server.c (handle_v_cont): Call mourn_inferior if process
17565 just exited.
17566 (myresume): Likewise.
17567
0fb4aa4b
PA
175682010-07-01 Pedro Alves <pedro@codesourcery.com>
17569
17570 Static tracepoints, and integration with UST.
17571
17572 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17573 * mem-break.c (uninsert_all_breakpoints)
17574 (reinsert_all_breakpoints): New.
17575 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17576 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17577 (gdb_agent_ust_loaded, helper_thread_id)
17578 (gdb_agent_helper_thread_id): New macros.
17579 (struct ipa_sym_addresses): Add addr_ust_loaded,
17580 addr_helper_thread_id, addr_cmd_buf.
17581 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17582 (in_process_agent_loaded_ust): New.
17583 (write_e_ust_not_loaded): New.
17584 (maybe_write_ipa_ust_not_loaded): New.
17585 (struct collect_static_trace_data_action): New.
17586 (enum tracepoint_type) <static_tracepoint>: New.
17587 (struct tracepoint) <handle>: Mention static tracepoints.
17588 (struct static_tracepoint_ctx): New.
17589 (CMD_BUF_SIZE): New.
17590 (add_tracepoint_action): Handle static tracepoint actions.
17591 (unprobe_marker_at): New.
17592 (clear_installed_tracepoints): Handle static tracepoints.
17593 (cmd_qtdp): Handle static tracepoints.
17594 (probe_marker_at): New.
17595 (cmd_qtstart): Handle static tracepoints.
17596 (response_tracepoint): Handle static tracepoints.
17597 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17598 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17599 (get_context_regcache): Handle static tracepoints.
17600 (do_action_at_tracepoint): Handle static tracepoint actions.
17601 (traceframe_find_block_type): Handle static trace data blocks.
17602 (traceframe_read_sdata): New.
17603 (download_tracepoints): Download static tracepoint actions.
17604 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17605 (GDB_PROBE_NAME): New.
17606 (ust_ops): New.
17607 (GET_UST_SYM): New.
17608 (USTF): New.
17609 (dlsym_ust): New.
17610 (ust_marker_to_static_tracepoint): New.
17611 (gdb_probe): New.
17612 (collect_ust_data_at_tracepoint): New.
17613 (gdb_ust_probe): New.
17614 (UNIX_PATH_MAX, SOCK_DIR): New.
17615 (gdb_ust_connect_sync_socket): New.
17616 (resume_thread, stop_thread): New.
17617 (run_inferior_command): New.
17618 (init_named_socket): New.
17619 (gdb_ust_socket_init): New.
17620 (cstr_to_hexstr): New.
17621 (next_st): New.
17622 (first_marker, next_marker): New.
17623 (response_ust_marker): New.
17624 (cmd_qtfstm, cmd_qtsstm): New.
17625 (unprobe_marker_at, probe_marker_at): New.
17626 (cmd_qtstmat, gdb_ust_thread): New.
17627 (gdb_ust_init): New.
17628 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17629 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17630 (ST_REGENTRY): New.
17631 (x86_64_st_collect_regmap): New.
17632 (X86_64_NUM_ST_COLLECT_GREGS): New.
17633 (AMD64_RIP_REGNUM): New.
17634 (supply_static_tracepoint_registers): New.
17635 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17636 (ST_REGENTRY): New.
17637 (i386_st_collect_regmap): New.
17638 (i386_NUM_ST_COLLECT_GREGS): New.
17639 (supply_static_tracepoint_registers): New.
17640 * server.c (handle_query): Handle qXfer:statictrace:read.
17641 <qSupported>: Report support for StaticTracepoints, and
17642 qXfer:statictrace:read features.
17643 * server.h (traceframe_read_sdata)
17644 (supply_static_tracepoint_registers): Declare.
17645 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17646 (unpack_varlen_hex): Include in IPA build.
17647 * Makefile.in (ustlibs, ustinc): New.
17648 (IPA_OBJS): Add remote-utils-ipa.o.
17649 ($(IPA_LIB)): Link -ldl and -lpthread.
17650 (UST_CFLAGS): New.
17651 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17652 * config.in, configure: Regenerate.
17653
9e4344e5
PA
176542010-06-20 Ian Lance Taylor <iant@google.com>
17655 Pedro Alves <pedro@codesourcery.com>
17656
17657 * linux-x86-low.c (always_true): Delete.
17658 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17659 trying to fool the compiler with always_true.
17660
c6beb2cb
PA
176612010-06-20 Pedro Alves <pedro@codesourcery.com>
17662
17663 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17664 conditions in gdbserver.
17665
d2ed6730
UW
176662010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17667
17668 * spu-low.c (spu_read_memory): Wrap around local store limit.
17669 (spu_write_memory): Likewise.
17670
4e29fb54
PA
176712010-06-15 Pedro Alves <pedro@codesourcery.com>
17672
17673 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17674 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17675 LONGEST uses.
17676 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17677 uses.
17678 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17679 uses with LONGEST uses.
17680
6a271cae
PA
176812010-06-14 Stan Shebs <stan@codesourcery.com>
17682 Pedro Alves <pedro@codesourcery.com>
17683
17684 Bytecode compiler.
17685
17686 * linux-x86-low.c: Include limits.h.
17687 (add_insns): New.
17688 (always_true): New.
17689 (EMIT_ASM): New.
17690 (EMIT_ASM32): New.
17691 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17692 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17693 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17694 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17695 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17696 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17697 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17698 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17699 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17700 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17701 (amd64_emit_void_call_2): New.
17702 (amd64_emit_ops): New.
17703 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17704 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17705 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17706 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17707 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17708 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17709 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17710 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17711 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17712 (i386_emit_stack_adjust, i386_emit_int_call_1)
17713 (i386_emit_void_call_2): New.
17714 (i386_emit_ops): New.
17715 (x86_emit_ops): New.
17716 (the_low_target): Install x86_emit_ops.
17717 * server.h (struct emit_ops): New.
17718 (get_raw_reg_func_addr): Declare.
17719 (current_insn_ptr, emit_error): Declare.
17720 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17721 (set_trace_state_variable_value): New defines.
17722 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17723 addr_get_trace_state_variable_value and
17724 addr_set_trace_state_variable_value.
17725 (symbol_list): New fields for get_raw_reg,
17726 get_trace_state_variable_value and set_trace_state_variable_value.
17727 (condfn): New typedef.
17728 (struct tracepoint): New field `compiled_cond'.
17729 (do_action_at_tracepoint): Clear compiled_cond.
17730 (get_trace_state_variable_value, set_trace_state_variable_value):
17731 Export in the IPA.
17732 (condition_true_at_tracepoint): If there's a compiled condition,
17733 run that.
17734 (current_insn_ptr, emit_error): New globals.
17735 (struct bytecode_address): New.
17736 (get_raw_reg_func_addr): New.
17737 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17738 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17739 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17740 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17741 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17742 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17743 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17744 (compile_tracepoint_condition, compile_bytecodes): New.
17745 * target.h (emit_ops): Forward declare.
17746 (struct target_ops): New field emit_ops.
17747 (target_emit_ops): New.
17748 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17749 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17750 * linux-low.c (linux_emit_ops): New.
17751 (linux_target_ops): Install it.
17752 * linux-low.h (struct linux_target_ops): New field emit_ops.
17753
92b72907
UW
177542010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17755
17756 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17757 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17758
fa593d66
PA
177592010-06-01 Pedro Alves <pedro@codesourcery.com>
17760 Stan Shebs <stan@codesourcery.com>
17761
17762 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17763 (all): Depend on $(extra_libraries).
17764 (install-only): Install the IPA.
17765 (IPA_OBJS, IPA_LIB): New.
17766 (clean): Remove the IPA lib.
17767 (IPAGENT_CFLAGS): New.
17768 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17769 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17770 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17771 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17772 * configure.ac: Check for atomic builtins support in the compiler.
17773 (IPA_DEPFILES, extra_libraries): Define.
17774 * configure.srv (ipa_obj): Add description.
17775 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17776 (i[34567]86-*-linux*): Set ipa_obj.
17777 (x86_64-*-linux*): Set ipa_obj.
17778 * linux-low.c (stabilizing_threads): New.
17779 (supports_fast_tracepoints): New.
17780 (linux_detach): Stabilize threads before detaching.
17781 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17782 the lwp is either not stabilizing, or is moving out of a jump pad.
17783 (linux_fast_tracepoint_collecting): New.
17784 (maybe_move_out_of_jump_pad): New.
17785 (enqueue_one_deferred_signal): New.
17786 (dequeue_one_deferred_signal): New.
17787 (linux_wait_for_event_1): If moving out of a jump pad, defer
17788 pending signals to later.
17789 (linux_stabilize_threads): New.
17790 (linux_wait_1): Check if threads need moving out of jump pads, and
17791 do it if so.
17792 (stuck_in_jump_pad_callback): New.
17793 (move_out_of_jump_pad_callback): New.
17794 (lwp_running): New.
17795 (linux_resume_one_lwp): Handle moving out of jump pads.
17796 (linux_set_resume_request): Dequeue deferred signals.
17797 (need_step_over_p): Also step over fast tracepoint jumps.
17798 (start_step_over): Also uninsert fast tracepoint jumps.
17799 (finish_step_over): Also reinsert fast tracepoint jumps.
17800 (linux_install_fast_tracepoint_jump): New.
17801 (linux_target_ops): Install linux_stabilize_threads and
17802 linux_install_fast_tracepoint_jump_pad.
17803 * linux-low.h (linux_target_ops) <get_thread_area,
17804 install_fast_tracepoint_jump_pad>: New fields.
17805 (struct lwp_info) <collecting_fast_tracepoint,
17806 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17807 (linux_get_thread_area): Declare.
17808 * linux-x86-low.c (jump_insn): New.
17809 (x86_get_thread_area): New.
17810 (append_insns): New.
17811 (push_opcode): New.
17812 (amd64_install_fast_tracepoint_jump_pad): New.
17813 (i386_install_fast_tracepoint_jump_pad): New.
17814 (x86_install_fast_tracepoint_jump_pad): New.
17815 (the_low_target): Install x86_get_thread_area and
17816 x86_install_fast_tracepoint_jump_pad.
17817 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17818 (struct fast_tracepoint_jump): New.
17819 (fast_tracepoint_jump_insn): New.
17820 (fast_tracepoint_jump_shadow): New.
17821 (find_fast_tracepoint_jump_at): New.
17822 (fast_tracepoint_jump_here): New.
17823 (delete_fast_tracepoint_jump): New.
17824 (set_fast_tracepoint_jump): New.
17825 (uninsert_fast_tracepoint_jumps_at): New.
17826 (reinsert_fast_tracepoint_jumps_at): New.
17827 (set_breakpoint_at): Use write_inferior_memory.
17828 (uninsert_raw_breakpoint): Use write_inferior_memory.
17829 (check_mem_read): Mask out fast tracepoint jumps.
17830 (check_mem_write): Mask out fast tracepoint jumps.
17831 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17832 (set_fast_tracepoint_jump): Declare.
17833 (delete_fast_tracepoint_jump)
17834 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17835 (reinsert_fast_tracepoint_jumps_at): Declare.
17836 * regcache.c: Don't compile many functions when building the
17837 in-process agent library.
17838 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17839 the register buffer in the heap.
17840 (free_register_cache): If the register buffer isn't owned by the
17841 regcache, don't free it.
17842 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17843 pre-existing register caches.
17844 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17845 type.
17846 (convert_ascii_to_int): : Constify `from' parameter type.
17847 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17848 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17849 the needed buffer in-place.
17850 (relocate_instruction): New.
17851 * server.c (handle_query) <qSymbols>: If the target supports
17852 tracepoints, give it a chance of looking up symbols. Report
17853 support for fast tracepoints.
17854 (handle_status): Stabilize threads.
17855 (process_serial_event): Adjust.
17856 * server.h (struct fast_tracepoint_jump): Forward declare.
17857 (struct process_info) <fast_tracepoint_jumps>: New field.
17858 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17859 (decode_X_packet, decode_M_packet): Adjust.
17860 (relocate_instruction): Declare.
17861 (in_process_agent_loaded): Declare.
17862 (tracepoint_look_up_symbols): Declare.
17863 (struct fast_tpoint_collect_status): Declare.
17864 (fast_tracepoint_collecting): Declare.
17865 (force_unlock_trace_buffer): Declare.
17866 (handle_tracepoint_bkpts): Declare.
17867 (initialize_low_tracepoint)
17868 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17869 * target.h (struct target_ops) <stabilize_threads,
17870 install_fast_tracepoint_jump_pad>: New fields.
17871 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17872 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17873 [HAVE_STDINT_H]: Include stdint.h.
17874 (trace_debug_1): Rename to ...
17875 (trace_vdebug): ... this.
17876 (trace_debug): Rename to ...
17877 (trace_debug_1): ... this. Add `level' parameter.
17878 (trace_debug): New.
17879 (ATTR_USED, ATTR_NOINLINE): New.
17880 (IP_AGENT_EXPORT): New.
17881 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17882 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17883 (about_to_request_buffer_space, trace_buffer_is_full)
17884 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17885 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17886 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17887 (traceframe_write_count, traceframes_created)
17888 (trace_state_variables)
17889 New renaming defines.
17890 (struct ipa_sym_addresses): New.
17891 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17892 (symbol_list): New.
17893 (ipa_sym_addrs): New.
17894 (all_tracepoint_symbols_looked_up): New.
17895 (in_process_agent_loaded): New.
17896 (write_e_ipa_not_loaded): New.
17897 (maybe_write_ipa_not_loaded): New.
17898 (tracepoint_look_up_symbols): New.
17899 (debug_threads) [IN_PROCESS_AGENT]: New.
17900 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17901 (UNKNOWN_SIDE_EFFECTS): New.
17902 (stop_tracing): New.
17903 (flush_trace_buffer): New.
17904 (stop_tracing_bkpt): New.
17905 (flush_trace_buffer_bkpt): New.
17906 (read_inferior_integer): New.
17907 (read_inferior_uinteger): New.
17908 (read_inferior_data_pointer): New.
17909 (write_inferior_data_pointer): New.
17910 (write_inferior_integer): New.
17911 (write_inferior_uinteger): New.
17912 (struct collect_static_trace_data_action): Delete.
17913 (enum tracepoint_type): New.
17914 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17915 <actions_str, step_actions, step_actions_str>: Only include in
17916 GDBserver.
fa593d66
PA
17917 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17918 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17919 (tracepoints): Use IP_AGENT_EXPORT.
17920 (last_tracepoint): Don't include in the IPA.
17921 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17922 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17923 (alloced_trace_state_variables): New.
17924 (trace_state_variables): Use IP_AGENT_EXPORT.
17925 (traceframe_t): Delete unused variable.
17926 (circular_trace_buffer): Don't include in the IPA.
17927 (trace_buffer_start): Delete.
17928 (struct trace_buffer_control): New.
17929 (trace_buffer_free): Delete.
17930 (struct ipa_trace_buffer_control): New.
17931 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17932 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17933 New.
17934 (trace_buffer_ctrl): New.
17935 (TRACE_BUFFER_CTRL_CURR): New.
17936 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17937 Reimplement as macros.
17938 (trace_buffer_wrap): Delete.
17939 (traceframe_write_count, traceframe_read_count)
17940 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17941 (struct tracepoint_hit_ctx) <type>: New field.
17942 (struct fast_tracepoint_ctx): New.
17943 (memory_barrier): New.
17944 (cmpxchg): New.
17945 (record_tracepoint_error): Update atomically in the IPA.
17946 (clear_inferior_trace_buffer): New.
17947 (about_to_request_buffer_space): New.
17948 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17949 updating the same buffer.
17950 (add_tracepoint): Default the tracepoint's type to trap
17951 tracepoint, and orig_size to -1.
17952 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17953 internal variables.
17954 (create_trace_state_variable): New parameter `gdb'. Handle it.
17955 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17956 (cmd_qtdp): Handle fast tracepoints.
17957 (cmd_qtdv): Adjust.
17958 (max_jump_pad_size): New.
17959 (gdb_jump_pad_head): New.
17960 (get_jump_space_head): New.
17961 (claim_jump_space): New.
17962 (sort_tracepoints): New.
17963 (MAX_JUMP_SIZE): New.
17964 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17965 IPA.
17966 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17967 support. Upload fast traceframes, and delete internal IPA
17968 breakpoints.
17969 (stop_tracing_handler): New.
17970 (flush_trace_buffer_handler): New.
17971 (cmd_qtstop): Upload fast tracepoints.
17972 (response_tracepoint): Handle fast tracepoints.
17973 (tracepoint_finished_step): Upload fast traceframes. Set the
17974 tracepoint hit context's tracepoint type.
17975 (handle_tracepoint_bkpts): New.
17976 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17977 type. Add comment about fast tracepoints.
17978 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17979 non-existing action_str field.
17980 (get_context_regcache): Handle fast tracepoints.
17981 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17982 to the regcache.
17983 (fast_tracepoint_from_jump_pad_address): New.
17984 (fast_tracepoint_from_ipa_tpoint_address): New.
17985 (collecting_t): New.
17986 (force_unlock_trace_buffer): New.
17987 (fast_tracepoint_collecting): New.
17988 (collecting): New.
17989 (gdb_collect): New.
17990 (write_inferior_data_ptr): New.
17991 (target_tp_heap): New.
17992 (target_malloc): New.
17993 (download_agent_expr): New.
17994 (UALIGN): New.
17995 (download_tracepoints): New.
17996 (download_trace_state_variables): New.
17997 (upload_fast_traceframes): New.
17998 (IPA_FIRST_TRACEFRAME): New.
17999 (IPA_NEXT_TRACEFRAME_1): New.
18000 (IPA_NEXT_TRACEFRAME): New.
18001 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18002 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18003 (gdb_jump_pad_buffer_end): New.
18004 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18005 (initialize_tracepoint): Adjust.
18006 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18007 buffer. Initialize the low module.
18008 * utils.c (PREFIX, TOOLNAME): New.
18009 (malloc_failure): Use PREFIX.
18010 (error): In the IPA, an error causes an exit.
18011 (fatal, warning): Use PREFIX.
18012 (internal_error): Use TOOLNAME.
18013 (NUMCELLS): Increase to 10.
18014 * configure, config.in: Regenerate.
18015
d149dd1d
PA
180162010-06-01 Pedro Alves <pedro@codesourcery.com>
18017
18018 * server.c (handle_query) <qSupported>: Do two passes over the
18019 qSupported string to avoid nesting strtok.
18020
f6528abd
JK
180212010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18022
18023 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18024 (CDEPS): New.
18025 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18026 -Wl,--dynamic-list.
18027 * configure: Regenerate.
18028 * proc-service.list: New.
18029
ca2a87a0
JK
180302010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18031
18032 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18033 New comment.
18034
363a6e9f
OS
180352010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18036
18037 * gdbreplay.c (remote_open): Check error return from socket() call by
18038 its equality to -1 not by it being negative.
18039 * remote-utils.c (remote_open): Likewise.
18040
d23b6cb1
PA
180412010-05-23 Pedro Alves <pedro@codesourcery.com>
18042
18043 * config.h: Regenerate.
18044
28d3cf85
MK
180452010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18046
18047 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18048 doesn't provide PTRACE_GET_THREAD_AREA.
18049
fea36a59
MK
180502010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18051
18052 * linux-m68k-low.c: Include <asm/ptrace.h>
18053 (ps_get_thread_area): Implement.
18054
24b066ba
DE
180552010-05-03 Doug Evans <dje@google.com>
18056
18057 * event-loop.c (struct callback_event): New struct.
18058 (callback_list): New global.
18059 (append_callback_event, delete_callback_event): New functions.
18060 (process_callback): New function.
18061 (start_event_loop): Call it.
18062 * remote-utils.c (NOT_SCHEDULED): Define.
18063 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18064 moved out of readchar.
18065 (readchar): Rewrite. Call reschedule before returning.
18066 (reset_readchar): New function.
18067 (remote_close): Call it.
18068 (process_remaining, reschedule): New functions.
18069 * server.h (callback_handler_func): New typedef.
18070 (append_callback_event, delete_callback_event): Declare.
18071
9836d6ea
PA
180722010-05-03 Pedro Alves <pedro@codesourcery.com>
18073
18074 * proc-service.c (ps_pglobal_lookup): Use
18075 thread_db_look_up_one_symbol.
18076 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18077 parameter. Use it instead of all_symbols_looked_up.
18078 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18079 field.
18080 (all_symbols_looked_up): Don't declare.
18081 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18082 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18083 field.
18084 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18085 Set all_symbols_looked_up here.
18086 (thread_db_look_up_one_symbol): New.
18087 (thread_db_get_tls_address): Adjust.
18088 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18089 thread_db object on the heap, and tentatively set it in the
18090 process structure.
18091 (thread_db_init): Don't set all_symbols_looked_up here.
18092 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18093
7984d532
PA
180942010-05-03 Pedro Alves <pedro@codesourcery.com>
18095
18096 * linux-low.c (linux_kill, linux_detach): Adjust.
18097 (status_pending_p_callback): Remove redundant statement. Check
18098 for !TARGET_WAITIKIND_IGNORE, instead of
18099 TARGET_WAITKIND_STOPPED.
18100 (handle_tracepoints): Make sure LWP is locked. Adjust.
18101 (linux_wait_for_event_1): Adjust.
18102 (linux_cancel_breakpoints): New.
18103 (unsuspend_one_lwp): New.
18104 (unsuspend_all_lwps): New.
18105 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18106 (send_sigstop_callback): Change return type to int, add new
18107 `except' parameter and handle it.
18108 (suspend_and_send_sigstop_callback): New.
18109 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18110 pass them down. If SUSPEND, also increment the lwp's suspend
18111 count.
18112 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18113 (need_step_over_p): Don't consider suspended LWPs.
18114 (start_step_over): Adjust.
18115 (proceed_one_lwp): Change return type to int, add new `except'
18116 parameter and handle it.
18117 (unsuspend_and_proceed_one_lwp): New.
18118 (proceed_all_lwps): Use find_inferior instead of
18119 for_each_inferior.
18120 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18121 also decrement the suspend count of LWPs. Pass `except' down,
18122 instead of hacking its suspend count.
18123 (linux_pause_all): Add `freeze' parameter. Adjust.
18124 (linux_unpause_all): New.
18125 (linux_target_ops): Install linux_unpause_all.
18126 * server.c (handle_status): Adjust.
18127 * target.h (struct target_ops): New fields `unpause_all' and
18128 `cancel_breakpoints'. Add new parameter to `pause_all'.
18129 (pause_all): Add new `freeze' parameter.
18130 (unpause_all): New.
18131 (cancel_breakpoints): New.
18132 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18133 cancel breakpoints.
18134 (cmd_qtstart): Pause threads.
18135 (stop_tracing): Pause threads, and cancel breakpoints.
18136 * win32-low.c (win32_target_ops): Adjust.
18137
e471f25b
PA
181382010-05-03 Pedro Alves <pedro@codesourcery.com>
18139
18140 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18141 the inferior right away from here...
18142 (linux_wait_1): ... to here, and adjust to check the thread's
18143 last_resume_kind instead of the lwp's step or stop_expected flags.
18144
1915ef4f
PA
181452010-05-02 Pedro Alves <pedro@codesourcery.com>
18146
18147 * README: Use consistent `GDB' and `GDBserver' spellings.
18148
f9e39928
PA
181492010-05-02 Pedro Alves <pedro@codesourcery.com>
18150
18151 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18152 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18153 (linux_detach_one_lwp): Assume the lwp is stopped.
18154 (any_thread_of): Delete.
18155 (linux_detach): Stop all lwps here. Don't blindly delete all
18156 breakpoints.
18157 (delete_lwp_callback): New.
18158 (linux_mourn): Delete all lwps of the process that is gone.
18159 (linux_wait_1): Don't delete the last lwp of the process here.
18160 * mem-break.h (mark_breakpoints_out): Declare.
18161 * mem-break.c (mark_breakpoints_out): New.
18162 (free_all_breakpoints): Use it.
18163 * server.c (handle_target_event): If the process is gone, mark
18164 breakpoints out.
18165 * thread-db.c (struct thread_db) <create_bp>: New field.
18166 (thread_db_enable_reporting): Fix prototype. Store a thread event
18167 breakpoint reference in the thread_db struct.
18168 (thread_db_load_search): Clear the thread_db object.
18169 (try_thread_db_load_1): Ditto.
18170 (switch_to_process): New.
18171 (disable_thread_event_reporting): Use it.
18172 (remove_thread_event_breakpoints): New.
18173 (thread_db_detach, thread_db_mourn): Use it.
18174
1e7fc18c
PA
181752010-05-01 Pedro Alves <pedro@codesourcery.com>
18176
18177 * linux-low.c (linux_enable_event_reporting): New.
18178 (linux_wait_for_event_1, handle_extended_wait): Use it.
18179
02fc4de7
PA
181802010-04-30 Pedro Alves <pedro@codesourcery.com>
18181
18182 * linux-low.c (linux_kill_one_lwp, linux_kill)
18183 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18184 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18185 SIGSTOP even if the LWP is stopped.
18186 (send_sigstop_callback): New.
18187 (stop_all_lwps): Use send_sigstop_callback instead.
18188 (linux_resume_one_thread): Adjust.
18189 (proceed_one_lwp): Still proceed an LWP that the client has
18190 requested to stop, if we haven't reported it as stopped yet. Make
18191 sure that LWPs the client want stopped, have a pending SIGSTOP.
18192
bc3b5632
DE
181932010-04-26 Doug Evans <dje@google.com>
18194
ae1ada35
DE
18195 * server.c (handle_general_set): Make static.
18196
bc3b5632
DE
18197 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18198 Print received char after testing for error/eof instead of before.
18199 (input_interrupt): Tweak comment.
18200
65730243
DE
182012010-04-23 Doug Evans <dje@google.com>
18202
18203 * server.c (start_inferior): Print inferior argv if --debug.
18204
a8ae7dc0
AR
182052010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18206
18207 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18208 * nto-x86-low.c: Include server.h
18209
1c07cc19
PM
182102010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18211
18212 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18213 be consistent with other sources of this directory.
18214 (init_registers_amd64): Correct name of source file of this function
18215 in the comment.
18216
e0a61e09
PM
182172010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18218
18219 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18220 64-bit executables.
18221
54709339
PM
182222010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18223
18224 * win32-i386-low.c: Add 64-bit support.
18225 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18226 (init_registers_amd64): Declare.
18227 (mappings): Add 64-bit version of array.
18228 (init_windows_x86): New function.
18229 (the_low_target): Change init_arch field to init_windows_x86.
18230
e8f0053d
PM
182312010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18232
18233 * win32-low.c: Adapt to support also 64-bit architecture.
18234 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18235 (get_image_name): Use SIZE_T type for local variable `done'.
18236 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18237 (toolhelp_get_dll_name): Idem.
18238 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18239 Use uintptr_t typecast to avoid warning.
18240 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18241 (handle_exception): Use phex_nz to avoid warning.
18242 (win32_wait): Remove unused local variable `process'.
18243
c481e77e
PM
182442010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18245
18246 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18247 `amd64-avx.o'.
18248
12ea4b69
PM
182492010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18250
18251 * configure.ac: Use `ws2_32' library for srv_mingw.
18252 * configure: Regenerate.
18253 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18254 * remote-utils.c: Likewise.
18255
f6d1620c
L
182562010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18257
18258 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18259 if __x86_64__ is defined.
18260
8e642873
PM
182612010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18262
18263 * configure: Regenerate.
18264
711e434b
PM
182652010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18266
18267 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18268 * target.h (target_ops): New get_tib_address field.
18269 * win32-low.h (win32_thread_info): Add thread_local_base field.
18270 * win32-low.c (child_add_thread): Add tlb argument.
18271 Set thread_local_base field to TLB.
18272 (get_child_debug_event): Adapt to child_add_thread change.
18273 (win32_get_tib_address): New function.
18274 (win32_target_ops): Set get_tib_address field to
18275 win32_get_tib_address.
18276 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18277
505106cd
PA
182782010-04-12 Pedro Alves <pedro@codesourcery.com>
18279
505106cd
PA
18280 * linux-low.c (linux_mourn): Also remove the process.
18281 * server.c (handle_target_event): Don't remove the process here.
18282 * nto-low.c (nto_mourn): New.
18283 (nto_target_ops): Install it.
18284 * spu-low.c (spu_mourn): New.
18285 (spu_target_ops): Install it.
18286 * win32-low.c (win32_mourn): New.
18287 (win32_target_ops): Install it.
18288
e8470a06
PA
182892010-04-12 Pedro Alves <pedro@codesourcery.com>
18290
18291 * server.h (buffer_xml_printf): Remove redundant `;'.
18292
45ba0d02
PA
182932010-04-12 Pedro Alves <pedro@codesourcery.com>
18294
18295 * regcache.c (set_register_cache): Invalidate regcaches before
18296 changing the register cache layout.
18297 (regcache_invalidate_one): Allow a NULL regcache.
18298 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18299 regcaches before changing the register cache layout or the target
18300 regsets.
18301
59e04013
L
183022010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18303
18304 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18305 variable warning on Linux/x86-64.
18306
8336d594
PA
183072010-04-11 Pedro Alves <pedro@codesourcery.com>
18308
18309 GDBserver disconnected tracing support.
18310
18311 * linux-low.c (linux_remove_process): Delete.
18312 (add_lwp): Don't set last_resume_kind here.
18313 (linux_kill): Use `mourn'.
18314 (linux_detach): Use `thread_db_detach', and `mourn'.
18315 (linux_mourn): New.
18316 (linux_attach_lwp_1): Adjust comment.
18317 (linux_attach): last_resume_kind moved the thread_info; adjust.
18318 (status_pending_p_callback): Adjust.
18319 (linux_wait_for_event_1): Adjust.
18320 (count_events_callback, select_singlestep_lwp_callback)
18321 (select_event_lwp_callback, cancel_breakpoints_callback)
18322 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18323 (proceed_one_lwp): Adjust.
18324 (linux_async): Add debug output.
18325 (linux_thread_stopped): New.
18326 (linux_pause_all): New.
18327 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18328 linux_pause_all.
18329 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18330 (thread_db_free): Delete declaration.
18331 (thread_db_detach, thread_db_mourn): Declare.
18332 * thread-db.c (thread_db_init): Use thread_db_mourn.
18333 (thread_db_free): Delete, split in two.
18334 (disable_thread_event_reporting): New.
18335 (thread_db_detach): New.
18336 (thread_db_mourn): New.
18337
18338 * server.h (struct thread_info) <last_resume_kind>: New field.
18339 <attached>: Add comment.
18340 <gdb_detached>: New field.
18341 (handler_func): Change return type to int.
18342 (handle_serial_event, handle_target_event): Ditto.
18343 (gdb_connected): Declare.
18344 (tracing): Delete.
18345 (disconnected_tracing): Declare.
18346 (stop_tracing): Declare.
18347
18348 * server.c (handle_query) <qSupported>: Report support for
18349 disconnected tracing.
18350 (queue_stop_reply_callback): Account for running threads.
18351 (gdb_wants_thread_stopped): New.
18352 (gdb_wants_all_threads_stopped): New.
18353 (gdb_reattached_process): New.
18354 (handle_status): Clear the `gdb_detached' flag of all processes.
18355 In all-stop, stop all threads.
18356 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18357 (process_serial_event): If the remote connection breaks, or if an
18358 exit was forced with "monitor exit", force an event loop exit.
18359 Handle disconnected tracing on detach.
18360 (handle_serial_event): Adjust.
18361 (handle_target_event): If GDB isn't connected, forward events back
18362 to the inferior, unless the last process exited, in which case,
18363 exit gdbserver. Adjust interface.
18364
18365 * remote-utils.c (remote_open): Don't block in accept. Instead
18366 register an event loop source on the listen socket file
18367 descriptor. Refactor bits into ...
18368 (listen_desc): ... this new global.
18369 (gdb_connected): ... this new function.
18370 (enable_async_notification): ... this new function.
18371 (handle_accept_event): ... this new function.
18372 (remote_close): Clear remote_desc.
18373
18374 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18375
18376 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18377 New fields.
18378 (mourn_inferior): Define.
18379 (target_process_qsupported): Avoid the dangling else problem.
18380 (thread_stopped): Define.
18381 (pause_all): Define.
18382 (target_waitstatus_to_string): Declare.
18383 * target.c (target_waitstatus_to_string): New.
18384
18385 * tracepoint.c (tracing): Make extern.
18386 (disconnected_tracing): New.
18387 (stop_tracing): Make extern. Handle tracing stops due to GDB
18388 disconnecting.
18389 (cmd_qtdisconnected): New.
18390 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18391 (handle_tracepoint_general_set): Handle QTDisconnected.
18392
18393 * event-loop.c (event_handler_func): Change return type to int.
18394 (process_event): Bail out if the event handler wants the event
18395 loop to stop.
18396 (handle_file_event): Ditto.
18397 (start_event_loop): Bail out if the event handler wants the event
18398 loop to stop.
18399
18400 * nto-low.c (nto_target_ops): Adjust.
18401 * spu-low.c (spu_wait): Don't remove the process here.
18402 (spu_target_ops): Adjust.
18403 * win32-low.c (win32_wait): Don't remove the process here.
18404 (win32_target_ops): Adjust.
18405
5d267c4c
PA
184062010-04-11 Pedro Alves <pedro@codesourcery.com>
18407
18408 * regcache.c (realloc_register_cache): Invalidate inferior's
18409 regcache before recreating it.
18410
623ccd72
PA
184112010-04-09 Pedro Alves <pedro@codesourcery.com>
18412
18413 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18414
219f2f23
PA
184152010-04-09 Stan Shebs <stan@codesourcery.com>
18416 Pedro Alves <pedro@codesourcery.com>
18417
18418 * server.h (LONGEST): New.
18419 (struct thread_info) <while_stepping>: New field.
18420 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18421 Declare.
18422 (initialize_tracepoint, handle_tracepoint_general_set)
18423 (handle_tracepoint_query, tracepoint_finished_step)
18424 (tracepoint_was_hit, release_while_stepping_state_list):
18425 (current_traceframe): Declare.
18426 * server.c (handle_general_set): Handle tracepoint packets.
18427 (read_memory): New.
18428 (write_memory): New.
18429 (handle_search_memory_1): Use read_memory.
18430 (handle_query): Report support for conditional tracepoints, trace
18431 state variables, and tracepoint sources. Handle tracepoint
18432 queries.
18433 (main): Initialize the tracepoints module.
18434 (process_serial_event): Handle traceframe reads/writes.
18435
18436 * linux-low.c (handle_tracepoints): New.
18437 (linux_wait_1): Call it.
18438 (linux_resume_one_lwp): Handle while-stepping.
18439 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18440 (linux_target_ops): Install them.
18441 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18442 New field.
18443 * linux-x86-low.c (x86_supports_tracepoints): New.
18444 (the_low_target). Install it.
18445
18446 * mem-break.h (delete_breakpoint): Declare.
18447 * mem-break.c (delete_breakpoint): Make external.
18448
18449 * target.h (struct target_ops): Add `supports_tracepoints',
18450 `read_pc', and `write_pc' fields.
18451 (target_supports_tracepoints): Define.
18452 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18453 (phex_nz): New.
18454
18455 * regcache.h (struct regcache) <registers_owned>: New field.
18456 (init_register_cache, regcache_cpy): Declare.
18457 (regcache_read_pc, regcache_write_pc): Declare.
18458 (register_cache_size): Declare.
18459 (supply_regblock): Declare.
18460 * regcache.c (init_register_cache): New.
18461 (new_register_cache): Use it.
18462 (regcache_cpy): New.
18463 (register_cache_size): New.
18464 (supply_regblock): New.
18465 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18466
219f2f23
PA
18467 * tracepoint.c: New.
18468
18469 * Makefile.in (OBS): Add tracepoint.o.
18470 (tracepoint.o): New rule.
18471
3a13a53b
L
184722010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18473
18474 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18475 (i386-mmx.o): New.
18476 (i386-mmx.c): Likewise.
18477 (i386-mmx-linux.o): Likewise.
18478 (i386-mmx-linux.c): Likewise.
18479
18480 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18481 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18482 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18483 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18484
18485 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18486 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18487 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18488
1570b33e
L
184892010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18490
18491 * Makefile.in (clean): Updated.
18492 (i386-avx.o): New.
18493 (i386-avx.c): Likewise.
18494 (i386-avx-linux.o): Likewise.
18495 (i386-avx-linux.c): Likewise.
18496 (amd64-avx.o): Likewise.
18497 (amd64-avx.c): Likewise.
18498 (amd64-avx-linux.o): Likewise.
18499 (amd64-avx-linux.c): Likewise.
18500
18501 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18502 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18503 (srv_amd64_regobj): Add amd64-avx.o.
18504 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18505 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18506 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18507 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18508 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18509 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18510 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18511
18512 * i387-fp.c: Include "i386-xstate.h".
18513 (i387_xsave): New.
18514 (i387_cache_to_xsave): Likewise.
18515 (i387_xsave_to_cache): Likewise.
18516 (x86_xcr0): Likewise.
18517
18518 * i387-fp.h (i387_cache_to_xsave): Likewise.
18519 (i387_xsave_to_cache): Likewise.
18520 (x86_xcr0): Likewise.
18521
18522 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18523 * linux-crisv32-low.c (target_regsets): Likewise.
18524 * linux-m68k-low.c (target_regsets): Likewise.
18525 * linux-mips-low.c (target_regsets): Likewise.
18526 * linux-ppc-low.c (target_regsets): Likewise.
18527 * linux-s390-low.c (target_regsets): Likewise.
18528 * linux-sh-low.c (target_regsets): Likewise.
18529 * linux-sparc-low.c (target_regsets): Likewise.
18530 * linux-xtensa-low.c (target_regsets): Likewise.
18531
18532 * linux-low.c: Include <sys/uio.h>.
18533 (regsets_fetch_inferior_registers): Support nt_type.
18534 (regsets_store_inferior_registers): Likewise.
18535 (linux_process_qsupported): New.
18536 (linux_target_ops): Add linux_process_qsupported.
18537
18538 * linux-low.h (regset_info): Add nt_type.
18539 (linux_target_ops): Add process_qsupported.
18540
18541 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18542 and <sys/uio.h>.
18543 (init_registers_i386_avx_linux): New.
18544 (init_registers_amd64_avx_linux): Likewise.
18545 (xmltarget_i386_linux_no_xml): Likewise.
18546 (xmltarget_amd64_linux_no_xml): Likewise.
18547 (PTRACE_GETREGSET): Likewise.
18548 (PTRACE_SETREGSET): Likewise.
18549 (x86_fill_xstateregset): Likewise.
18550 (x86_store_xstateregset): Likewise.
18551 (use_xml): Likewise.
18552 (x86_linux_update_xmltarget): Likewise.
18553 (x86_linux_process_qsupported): Likewise.
18554 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18555 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18556 init_registers_i386_linux here. Call
18557 x86_linux_update_xmltarget.
18558 (the_low_target): Add x86_linux_process_qsupported.
18559
18560 * server.c (handle_query): Call target_process_qsupported.
18561
18562 * target.h (target_ops): Add process_qsupported.
18563 (target_process_qsupported): New.
18564
fc7238bb
PA
185652010-04-03 Pedro Alves <pedro@codesourcery.com>
18566
18567 * inferiors.c (add_thread): Set last_status kind to
18568 TARGET_WAITKIND_IGNORE.
18569 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18570 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18571 (linux_wait_1): Move `thread' local definition to block that uses
18572 it. Don't NULL initialize `event_child'.
18573 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18574 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18575 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18576
bdabb078
PA
185772010-04-01 Pedro Alves <pedro@codesourcery.com>
18578
18579 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18580 an extended waitstatus, or by a watchpoint.
18581 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18582 thread was stepping or has been stopped by a watchpoint.
18583
d3bbe7a0
PA
185842010-04-01 Pedro Alves <pedro@codesourcery.com>
18585
18586 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18587 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18588 of another, then delete the previous, and validate all
18589 breakpoints.
18590 (validate_inserted_breakpoint): New.
18591 (delete_disabled_breakpoints): New.
18592 (validate_breakpoints): New.
18593 (check_mem_read): Validate breakpoints before trusting their
18594 shadow. Delete disabled breakpoints.
18595 (check_mem_write): Validate breakpoints before trusting they
18596 should be inserted. Delete disabled breakpoints.
18597 * mem-break.h (validate_breakpoints):
18598 * server.c (handle_query): Validate breakpoints when we see a
18599 qSymbol query.
18600
8b07ae33
PA
186012010-04-01 Pedro Alves <pedro@codesourcery.com>
18602
18603 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18604 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18605 if we could tell there's a GDB breakpoint at stop_pc.
18606 (need_step_over_p): Don't do a step over if we find a GDB
18607 breakpoint at the resume PC.
18608
18609 * mem-break.c (struct raw_breakpoint): New.
18610 (enum bkpt_type): New type `gdb_breakpoint'.
18611 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18612 fields. New field `raw'.
18613 (find_raw_breakpoint_at): New.
18614 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18615 breakpoint instead.
18616 (set_breakpoint_at): Adjust.
18617 (delete_raw_breakpoint): New.
18618 (release_breakpoint): New.
18619 (delete_breakpoint): Rename to...
18620 (delete_breakpoint_1): ... this. Add proc parameter. Use
18621 release_breakpoint. Return ENOENT.
18622 (delete_breakpoint): Reimplement.
18623 (find_breakpoint_at): Delete.
18624 (find_gdb_breakpoint_at): New.
18625 (delete_breakpoint_at): Delete.
18626 (set_gdb_breakpoint_at): New.
18627 (delete_gdb_breakpoint_at): New.
18628 (gdb_breakpoint_here): New.
18629 (set_reinsert_breakpoint): Use release_breakpoint.
18630 (uninsert_breakpoint): Rename to ...
18631 (uninsert_raw_breakpoint): ... this.
18632 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18633 (reinsert_raw_breakpoint): Change parameter type to
18634 raw_breakpoint.
18635 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18636 instead.
18637 (check_breakpoints): Adjust. Use release_breakpoint.
18638 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18639 (breakpoint_inserted_here): Ditto.
18640 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18641 Don't trust the breakpoint's shadow if it is not inserted.
18642 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18643 (delete_all_breakpoints): Adjust.
18644 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18645 use delete_breakpoint_1.
18646
18647 * mem-break.h (breakpoints_supported): Delete declaration.
18648 (set_gdb_breakpoint_at): Declare.
18649 (gdb_breakpoint_here): Declare.
18650 (delete_breakpoint_at): Delete.
18651 (delete_gdb_breakpoint_at): Declare.
18652
18653 * server.h (struct raw_breakpoint): Forward declare.
18654 (struct process_info): New field `raw_breakpoints'.
18655
18656 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18657 breakpoints.
18658
6bf5e0ba
PA
186592010-03-24 Pedro Alves <pedro@codesourcery.com>
18660
18661 * linux-low.c (status_pending_p_callback): Fix comment.
18662 (linux_wait_for_event_1): Move most of the internal breakpoint
18663 handling from here...
18664 (linux_wait_1): ... to here.
18665 (count_events_callback): New.
18666 (select_singlestep_lwp_callback): New.
18667 (select_event_lwp_callback): New.
18668 (cancel_breakpoints_callback): New.
18669 (select_event_lwp): New.
18670 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18671 priority to all LWPs that have had events that should be reported
18672 to the client. Cancel breakpoints when about to reporting the
18673 event to the client, not while stopping lwps. No longer cancel
18674 finished single-steps here.
18675 (cancel_finished_single_step): Delete.
18676 (cancel_finished_single_steps): Delete.
18677
414a389f
PA
186782010-03-24 Pedro Alves <pedro@codesourcery.com>
18679
18680 * mem-break.c (enum bkpt_type): New.
18681 (struct breakpoint): New field `type'.
18682 (set_breakpoint_at): Change return type to struct breakpoint
18683 pointer. Set type to `other_breakpoint' by default.
18684 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18685 in the breakpoint list.
18686 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18687 (reinsert_breakpoint): Rename to ...
18688 (reinsert_raw_breakpoint): ... this.
18689 (reinsert_breakpoints_at): Adjust.
18690 * mem-break.h (struct breakpoint): Declare.
18691 (set_breakpoint_at): Change return type to struct breakpoint
18692 pointer.
18693
2280c721
PA
186942010-03-24 Pedro Alves <pedro@codesourcery.com>
18695
18696 * server.c (handle_query): Assign, not compare.
18697
d50171e4
PA
186982010-03-24 Pedro Alves <pedro@codesourcery.com>
18699
18700 Teach linux gdbserver to step-over-breakpoints.
18701
18702 * linux-low.c (can_hardware_single_step): New.
18703 (supports_breakpoints): New.
18704 (handle_extended_wait): If stopping threads, read the stop pc of
18705 the new cloned LWP.
18706 (get_pc): New.
18707 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18708 low target doesn't support retrieving the PC.
18709 (add_lwp): Set last_resume_kind to resume_continue.
18710 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18711 (linux_attach): Don't clear stop_expected. Set the lwp's
18712 last_resume_kind to resume_stop.
18713 (linux_detach_one_lwp): Don't check for removed breakpoints.
18714 (check_removed_breakpoint): Delete.
18715 (status_pending_p): Rename to ...
18716 (status_pending_p_callback): ... this. Don't check for removed
18717 breakpoints. Don't consider threads that are stopped from GDB's
18718 perspective.
18719 (linux_wait_for_lwp): Always read the stop_pc here.
18720 (cancel_breakpoint): New.
18721 (step_over_bkpt): New global.
18722 (linux_wait_for_event_1): Implement stepping over breakpoints.
18723 (gdb_wants_lwp_stopped): New.
18724 (gdb_wants_all_stopped): New.
18725 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18726 single-step traps here. Store the thread's last reported target
18727 wait status.
18728 (send_sigstop): Don't clear stop_expected. Always set it,
18729 instead.
18730 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18731 (cancel_finished_single_step): New.
18732 (cancel_finished_single_steps): New.
18733 (wait_for_sigstop): Don't cancel finished single-step traps here.
18734 (linux_resume_one_lwp): Don't check for removed breakpoints.
18735 Don't set `step' on non-hardware step archs.
18736 (linux_set_resume_request): Ignore resume_stop requests if already
18737 stopping or stopped. Set the lwp's last_resume_kind.
18738 (resume_status_pending_p): Don't check for removed breakpoints.
18739 (need_step_over_p): New.
18740 (start_step_over): New.
18741 (finish_step_over): New.
18742 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18743 requests. Clear the thread's last reported target waitstatus.
18744 Don't use the `suspended' flag. Don't consider pending breakpoints.
18745 (linux_resume): Start a step-over if necessary.
18746 (proceed_one_lwp): New.
18747 (proceed_all_lwps): New.
18748 (unstop_all_lwps): New.
18749 * linux-low.h (struct lwp_info): Rewrite comment for the
18750 `suspended' flag. Add the `stop_pc' field. Delete the
18751 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18752 Add `'last_resume_kind' and `need_step_over' fields.
18753 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18754 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18755 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18756 (set_raw_breakpoint_at): New.
18757 (set_breakpoint_at): Rewrite to use it.
18758 (reinsert_breakpoint_handler): Delete.
18759 (set_reinsert_breakpoint): New.
18760 (reinsert_breakpoint_by_bp): Delete.
18761 (delete_reinsert_breakpoints): New.
18762 (uninsert_breakpoint): Rewrite.
18763 (uninsert_breakpoints_at): New.
18764 (reinsert_breakpoint): Rewrite.
18765 (reinsert_breakpoints_at): New.
18766 (check_breakpoints): Rewrite.
18767 (breakpoint_here): New.
18768 (breakpoint_inserted_here): New.
18769 (check_mem_read): Adjust.
18770 * mem-break.h (breakpoints_supported, breakpoint_here)
18771 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18772 (reinsert_breakpoint_by_bp): Delete declaration.
18773 (delete_reinsert_breakpoints): Declare.
18774 (reinsert_breakpoint): Delete declaration.
18775 (reinsert_breakpoints_at): Declare.
18776 (uninsert_breakpoint): Delete declaration.
18777 (uninsert_breakpoints_at): Declare.
18778 (check_breakpoints): Adjust prototype.
18779 * server.h: Adjust include order.
18780 (struct thread_info): Declare here. Add a `last_status' field.
18781
30ba68cb
MS
187822010-03-23 Michael Snyder <msnyder@vmware.com>
18783
18784 * server.c (crc32): New function.
18785 (handle_query): Add handling for 'qCRC:' request.
18786
b9a881c2
PA
187872010-03-23 Pedro Alves <pedro@codesourcery.com>
18788
18789 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18790 lwp had been stopped by a watchpoint.
18791
e92d13d5
PA
187922010-03-16 Pedro Alves <pedro@codesourcery.com>
18793
18794 * server.h (internal_error): Declare.
18795 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18796 * utils.c (internal_error): New function.
18797
64daa791
AS
187982010-03-15 Andreas Schwab <schwab@redhat.com>
18799
18800 * configure.srv: Fix typo setting srv_regobj.
18801
f52cd8cd
PA
188022010-03-15 Pedro Alves <pedro@codesourcery.com>
18803
18804 * linux-low.c (fetch_register): Avoid passing a non string literal
18805 format to `error'.
18806 (usr_store_inferior_registers): Ditto.
18807
93ae6fdc
PA
188082010-03-14 Pedro Alves <pedro@codesourcery.com>
18809
18810 * linux-low.c (linux_write_memory): Bail out early if peeking
18811 memory failed.
18812
c3adc08c
PA
188132010-03-14 Pedro Alves <pedro@codesourcery.com>
18814
18815 * linux-low.h (struct lwp_info): New fields
18816 `stopped_by_watchpoint' and `stopped_data_address'.
18817 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18818 here, and cache them in the lwp object.
18819 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18820 directly.
18821 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18822 field.
18823 (linux_stopped_by_watchpoint): Rewrite.
18824 (linux_stopped_data_address): Rewrite.
18825
bce522a2
PA
188262010-03-06 Simo Melenius <simo.melenius@iki.fi>
18827
18828 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18829 switching the current inferior, not before.
18830
90884b2b
L
188312010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18832
18833 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18834 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18835 i386-linux.c and amd64-linux.c.
18836 (reg-i386.o): Removed.
18837 (reg-i386.c): Likewise.
18838 (reg-i386-linux.o): Likewise.
18839 (reg-i386-linux.c): Likewise.
18840 (reg-x86-64.o): Likewise.
18841 (reg-x86-64.c): Likewise.
18842 (reg-x86-64-linux.o): Likewise.
18843 (reg-x86-64-linux.c): Likewise.
18844 (i386.o): New.
18845 (i386.c): Likewise.
18846 (i386-linux.o): Likewise.
18847 (i386-linux.c): Likewise.
18848 (amd64.o): Likewise.
18849 (amd64.c): Likewise.
18850 (amd64-linux.o): Likewise.
18851 (amd64-linux.c): Likewise.
18852
18853 * configure.srv (srv_i386_regobj): New.
18854 (srv_i386_linux_regobj): Likewise.
18855 (srv_amd64_regobj): Likewise.
18856 (srv_amd64_linux_regobj): Likewise.
18857 (srv_i386_32bit_xmlfiles): Likewise.
18858 (srv_i386_64bit_xmlfiles): Likewise.
18859 (srv_i386_xmlfiles): Likewise.
18860 (srv_amd64_xmlfiles): Likewise.
18861 (srv_i386_linux_xmlfiles): Likewise.
18862 (srv_amd64_linux_xmlfiles): Likewise.
18863 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18864 srv_xmlfiles to $srv_i386_xmlfiles.
18865 (i[34567]86-*-mingw32ce*): Likewise.
18866 (i[34567]86-*-mingw*): Likewise.
18867 (i[34567]86-*-nto*): Likewise.
18868 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18869 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18870 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18871 (x86_64-*-linux*): Likewise.
18872
18873 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18874 (init_registers_amd64_linux): New.
18875 (x86_arch_setup): Replace init_registers_x86_64_linux with
18876 init_registers_amd64_linux.
18877
193f13e6
MK
188782010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18879
18880 * configure.ac: Check for libdl. If it is not available link against
18881 static libthread_db.
18882 * configure: Regenerate.
18883
85d721b8
PA
188842010-02-22 Pedro Alves <pedro@codesourcery.com>
18885
18886 PR9605
18887
18888 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18889 handing a read watchpoint.
18890 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18891
6076632b
DE
188922010-02-12 Doug Evans <dje@google.com>
18893
18894 * linux-low.c (linux_supports_tracefork_flag): Document.
18895 (linux_look_up_symbols): Add comment.
18896
3327ccf7
L
188972010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18898
18899 * regcache.c (supply_register): Clear regcache if buf is NULL.
18900
0718675c 189012010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18902 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18903
18904 * inferiors.c (find_inferior): Add function documentation.
18905 (unloaded_dll): Handle the case where the unloaded dll has not
18906 been previously registered in the dll list.
18907
177321bd
DJ
189082010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18909
18910 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18911 (thumb2_breakpoint): New.
18912 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18913
2b009048
DJ
189142010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18915
18916 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18917 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18918 breakpoints.
18919
3be029c7
PA
189202010-01-21 Pedro Alves <pedro@codesourcery.com>
18921
18922 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18923
18f5de3b
JK
189242010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18925
18926 * linux-s390-low.c (s390_collect_ptrace_register)
18927 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18928
3743bb4f
DE
189292010-01-21 Doug Evans <dje@google.com>
18930
14ce3065
DE
18931 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18932 (PTRACE_ARG4_TYPE): New macro.
18933 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18934 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18935 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18936 (usr_store_inferior_registers): Ditto.
18937 (linux_read_memory, linux_write_memory): Ditto.
18938 (linux_test_for_tracefork): Ditto.
18939
3743bb4f
DE
18940 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18941 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18942
8b315be5
PA
189432010-01-21 Pedro Alves <pedro@codesourcery.com>
18944
18945 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18946 target.
18947
85492558
PA
189482010-01-21 Pedro Alves <pedro@codesourcery.com>
18949
18950 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18951 prototype to take a regcache. Adjust.
18952
442ea881
PA
189532010-01-20 Pedro Alves <pedro@codesourcery.com>
18954
18955 * regcache.h (struct thread_info): Forward declare.
18956 (struct regcache): New.
18957 (new_register_cache): Adjust prototype.
18958 (get_thread_regcache): Declare.
18959 (free_register_cache): Adjust prototype.
18960 (registers_to_string, registers_from_string): Ditto.
18961 (supply_register, supply_register_by_name, collect_register)
18962 (collect_register_as_string, collect_register_by_name): Ditto.
18963 * regcache.c (struct inferior_regcache_data): Delete.
18964 (get_regcache): Rename to ...
18965 (get_thread_regcache): ... this. Adjust. Switch inferior before
18966 fetching registers.
18967 (regcache_invalidate_one): Adjust.
18968 (regcache_invalidate): Fix prototype.
18969 (new_register_cache): Return the new register cache.
18970 (free_register_cache): Change prototype.
18971 (realloc_register_cache): Adjust.
18972 (registers_to_string): Change prototype to take a regcache. Adjust.
18973 (registers_from_string): Ditto.
18974 (register_data): Ditto.
18975 (supply_register): Ditto.
18976 (supply_register_by_name): Ditto.
18977 (collect_register): Ditto.
18978 (collect_register_as_string): Ditto.
18979 (collect_register_by_name): Ditto.
18980 * server.c (process_serial_event): Adjust.
18981 * linux-low.h (regset_fill_func, regset_store_func): Change
18982 prototype.
18983 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18984 Change prototype.
18985 * linux-low.c (get_stop_pc): Adjust.
18986 (check_removed_breakpoint): Adjust.
18987 (linux_wait_for_event): Adjust.
18988 (linux_resume_one_lwp): Adjust.
18989 (fetch_register): Add regcache parameter. Adjust.
18990 (usr_store_inferior_registers): Ditto.
18991 (regsets_fetch_inferior_registers): Ditto.
18992 (regsets_store_inferior_registers): Ditto.
18993 (linux_fetch_registers, linux_store_registers): Ditto.
18994 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18995 regcache. Adjust.
43aaf8b6
PA
18996 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18997 Ditto.
442ea881
PA
18998 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18999 prototype to take a regcache.
19000 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19001 * remote-utils.c (convert_ascii_to_int, outreg)
19002 (prepare_resume_reply): Change prototype to take a regcache.
19003 Adjust.
19004 * target.h (struct target_ops) <fetch_registers, store_registers>:
19005 Change prototype to take a regcache.
19006 (fetch_inferior_registers, store_inferior_registers): Change
19007 prototype to take a regcache. Adjust.
19008 * proc-service.c (ps_lgetregs): Adjust.
19009 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19010 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19011 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19012 take a regcache. Adjust.
19013 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19014 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19015 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19016 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19017 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19018 (cris_cannot_fetch_register):
19019 (cris_breakpoint_at): Change prototype to take a regcache.
19020 Adjust.
19021 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19022 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19023 to take a regcache. Adjust.
19024 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19025 Adjust.
19026 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19027 take a regcache. Adjust.
19028 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19029 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19030 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19031 * linux-mips-low.c (mips_get_pc):
19032 (mips_set_pc): Change prototype to take a regcache. Adjust.
19033 (mips_reinsert_addr): Adjust.
19034 (mips_collect_register): Change prototype to take a regcache.
19035 Adjust.
19036 (mips_supply_register):
19037 (mips_collect_register_32bit, mips_supply_register_32bit)
19038 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19039 (mips_store_fpregset): Ditto.
43aaf8b6
PA
19040 * linux-ppc-low.c (ppc_supply_ptrace_register)
19041 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
19042 (parse_spufs_run): Adjust.
19043 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19044 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19045 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19046 take a regcache. Adjust.
19047 * linux-s390-low.c (s390_collect_ptrace_register)
19048 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19049 (s390_set_pc): Change prototype to take a regcache. Adjust.
19050 (s390_arch_setup): Adjust.
19051 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19052 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19053 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19054 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19055 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19056 regcache. Adjust.
19057 (sparc_breakpoint_at): Adjust.
19058 * linux-xtensa-low.c (xtensa_fill_gregset):
19059 (xtensa_store_gregset):
19060 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19061 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19062 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19063 prototype to take a regcache. Adjust.
19064 * win32-arm-low.c (arm_fetch_inferior_register)
19065 (arm_store_inferior_register): Change prototype to take a
19066 regcache. Adjust.
19067 * win32-i386-low.c (i386_fetch_inferior_register)
19068 (i386_store_inferior_register): Change prototype to take a
19069 regcache. Adjust.
19070 * win32-low.c (child_fetch_inferior_registers)
19071 (child_store_inferior_registers): Change prototype to take a
19072 regcache. Adjust.
19073 (win32_wait): Adjust.
19074 (win32_fetch_inferior_registers): Change prototype to take a
19075 regcache. Adjust.
19076 (win32_store_inferior_registers): Adjust.
19077 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19078 store_inferior_register>: Change prototype to take a regcache.
19079
60c3d7b0
DE
190802010-01-20 Doug Evans <dje@google.com>
19081
19082 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19083 #ifdef.
19084 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 19085 (W_STOPCODE): Provide definition if missing.
60c3d7b0 19086
dc146f7c
VP
190872010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19088
19089 * linux-low.c (linux_core_of_thread): New.
19090 (compare_ints, show_process, list_threads): New.
19091 (linux_qxfer_osdata): Report threads and cores.
19092 (linux_target_op): Register linux_core_of_thread.
19093 * remote-utils.c (prepare_resume_reply): Report the core.
19094 (buffer_xml_printf): Support %d specifier.
19095 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19096 New.
19097 (handle_query): Handle qXfer:threads. Announce availability
19098 thereof.
19099 * target.h (struct target_ops): New field core_of_thread.
19100
7803799a
UW
191012010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19102
19103 * Makefile.in (clean): Remove new generated files.
19104 (reg-s390.o, reg-s390.c): Remove rules.
19105 (reg-s390x.o, reg-s390x.c): Likewise.
19106 (s390-linux32.o, s390-linux32.c): Add rules.
19107 (s390-linux64.o, s390-linux64.c): Likewise.
19108 (s390x-linux64.o, s390x-linux64.c): Likewise.
19109 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19110 * linux-s390-low.c: Include <elf.h>.
19111 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19112 (init_registers_s390): Remove prototype.
19113 (init_registers_s390x): Likewise.
19114 (init_registers_s390_linux32): Add prototype.
19115 (init_registers_s390_linux64): Likewise.
19116 (init_registers_s390x_linux64): Likewise.
19117 (s390_num_regs_3264): New define.
19118 (s390_regmap_3264): New global variable.
19119 (s390_cannot_fetch_register): Remove obsolete check.
19120 (s390_cannot_store_register): Likewise.
19121 (s390_collect_ptrace_register): Handle upper/lower register halves.
19122 (s390_supply_ptrace_register): Likewise.
19123 (s390_fill_gregset): Update to register number changes.
19124 (s390_get_hwcap): New routine.
19125 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19126 Install appropriate regmap and register set.
19127
6e7ffa39
JB
191282010-01-01 Joel Brobecker <brobecker@adacore.com>
19129
19130 * server.c (gdbserver_version): Update copyright year to 2010.
19131 * gdbreplay.c (gdbreplay_version): Likewise.
19132
957f3f49
DE
191332009-12-28 Doug Evans <dje@google.com>
19134
19135 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19136 elf/external.h. Include <elf.h> instead but only if necessary.
19137
ca5c370d
PA
191382009-12-28 Pedro Alves <pedro@codesourcery.com>
19139
19140 * linux-low.c (linux_remove_process): Remove `detaching'
19141 parameter. Don't release/detach from thread_db here.
19142 (linux_kill): Release/detach from thread_db here, ...
19143 (linux_detach): ... and here, before actually detaching.
19144 (linux_wait_1): ... and here, when a process exits.
19145 * thread-db.c (any_thread_of): New.
19146 (thread_db_free): Switch the current inferior to a thread of the
19147 passed in process.
19148
4ee62156
DE
191492009-12-21 Doug Evans <dje@google.com>
19150
d90e6a88
DE
19151 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19152
c5f62d5f
DE
19153 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19154 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19155 warning ifndef __NR_tkill. Move setting of errno there too.
19156 Delete unnecessary resetting of errno after syscall.
19157 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19158
10e86dd7
DE
19159 * configure.ac: Check for dladdr.
19160 * config.in: Regenerate.
19161 * configure: Regenerate.
19162 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19163 (try_thread_db_load): Update.
19164
4ee62156
DE
19165 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19166
00f515da
DE
191672009-12-18 Doug Evans <dje@google.com>
19168
e9464885
DE
19169 * event-loop.c: Include unistd.h if it exists.
19170
07d4f67e
DE
19171 * linux-low.c (my_waitpid): Move definition away from being in
19172 between linux_tracefork_child/linux_test_for_tracefork.
19173
00f515da
DE
19174 * gdb_proc_service.h (psaddr_t): Fix type.
19175 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19176 signature to match glibc.
19177
1de1badb
DE
191782009-12-16 Doug Evans <dje@google.com>
19179
19180 * linux-low.c (linux_read_memory): Fix argument to read.
19181
aeeb81d1
PA
191822009-11-26 Pedro Alves <pedro@codesourcery.com>
19183
19184 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19185 events, don't leave current_inferior pointing at null.
19186
10357975
PA
191872009-11-26 Pedro Alves <pedro@codesourcery.com>
19188
19189 * win32-low.c (LOG): Delete.
19190 (OUTMSG): Output to stderr.
19191 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19192 on compile time LOG macro.
19193 (win32_wait): Fix debug output.
19194
cf6e3471
PA
191952009-11-26 Pedro Alves <pedro@codesourcery.com>
19196
19197 * win32-low.c (win32_add_one_solib): If the dll name is
19198 "ntdll.dll", prepend the system directory to the dll path.
19199
0c85e18e
MK
192002009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19201
19202 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19203
9ac544ce 192042009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 19205 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
19206
19207 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19208 * configure.ac: Check for __mcoldfire__ and set
19209 gdb_cv_m68k_is_coldfire.
19210 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19211 reg-cf.o and reg-m68k.o.
19212 * configure: Regenerated.
19213
fd7dd3e6
PA
192142009-11-16 Pedro Alves <pedro@codesourcery.com>
19215
19216 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19217 Pass it to thread_db_free.
19218 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19219 proper `detaching' argument to linux_remove_process.
19220 * linux-low.h (thread_db_free): Add `detaching' parameter.
19221 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19222 to thread_db_free.
19223 (thread_db_free): Add `detaching' parameter. Only
19224 call td_ta_clear_event if detaching from process.
19225
75aa492e
MK
192262009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19227
19228 * thread-db.c (thread_db_free): Fix typo.
19229
21e1bee4
PP
192302009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19231
19232 PR gdb/10838
19233 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19234
8838b45e
NS
192352009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19236
19237 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19238 with an i686 compiler.
19239 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19240 needed.
19241 * configure: Rebuilt.
19242
8a35fb51
SL
192432009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19244
19245 PR gdb/10783
19246
19247 * server.c (handle_search_memory_1): Correct read_addr initialization
19248 in loop for searching subsequent chunks.
19249
96f15937
PP
192502009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19251
19252 * configure.ac: New --with-libthread-db option.
19253 * thread-db.c: Allow direct dependence on libthread_db.
19254 (thread_db_free): Adjust.
19255 * config.in: Regenerate.
19256 * configure: Likewise.
889bf7c5 19257
5f7d1694
PP
192582009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19259
19260 PR gdb/10757
19261 * thread-db.c (attach_thread): New function.
19262 (maybe_attach_thread): Return success/failure.
19263 (find_new_threads_callback): Adjust.
889bf7c5
PA
19264 (thread_db_find_new_threads): Loop until no new threads.
19265
88e3b899
PA
192662009-10-13 Pedro Alves <pedro@codesourcery.com>
19267
19268 * proc-service.c (ps_lgetregs): Formatting.
19269
cdbfd419
PP
192702009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19271
19272 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19273 * configure.ac: Adjust.
19274 * linux-low.h (struct process_info_private): Move members to struct
19275 thread_db.
19276 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19277 * linux-low.c (linux_remove_process): Adjust.
19278 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19279 * server.c (handle_query): Move code ...
19280 (handle_monitor_command): ... here. New function.
19281 * target.h (struct target_ops): New member.
19282 * thread-db.c (struct thread_db): New.
19283 (libthread_db_search_path): New variable.
19284 (thread_db_create_event, thread_db_enable_reporting)
19285 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19286 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19287 (try_thread_db_load_1, dladdr_to_soname): New functions.
19288 (try_thread_db_load, thread_db_load_search): New functions.
19289 (thread_db_init): Search for libthread_db.
19290 (thread_db_free): New function.
19291 (thread_db_handle_monitor_command): Likewise.
19292 * config.in: Regenerate.
19293 * configure: Regenerate.
889bf7c5 19294
4168d2d6
UW
192952009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19296
19297 * spu-low.c (spu_kill): Wait for inferior to terminate.
19298 Call clear_inferiors.
19299 (spu_detach): Call clear_inferiors.
19300
81ecdfbb
RW
193012009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19302
19303 * aclocal.m4: Regenerate.
19304 * config.in: Likewise.
19305 * configure: Likewise.
19306
0b9ff2c0
UW
193072009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19308
19309 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19310 (parse_spufs_run): New function.
19311 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19312 (ppc_breakpoint_at): Handle SPU breakpoints.
19313
efcbbd14
UW
193142009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19315
19316 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19317 (SPUFS_MAGIC): Define.
19318 (spu_enumerate_spu_ids): New function.
19319 (linux_qxfer_spu): New function.
19320 (linux_target_ops): Install linux_qxfer_spu.
19321
f4d9bade
UW
193222009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19323
19324 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19325 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19326 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19327 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19328 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19329 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19330 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19331 (init_registers_powerpc_cell32l): Add prototype.
19332 (init_registers_powerpc_cell64l): Likewise.
19333 (ppc_arch_setup): Detect Cell/B.E. architecture.
19334
96e946ca
RW
193352009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19336
19337 * Makefile.in (datarootdir): New variable.
19338
58d6951d
DJ
193392009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19340
19341 * linux-low.c (linux_write_memory): Update debugging output.
19342 * Makefile.in (clean): Add new descriptions.
19343 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19344 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19345 * configure.srv: Add new files for arm*-*-linux*.
19346 * linux-arm-low.c: Add new declarations.
19347 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19348 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19349 (HWCAP_VFPv3D16): New.
19350 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19351 instead of __IWMMXT__.
19352 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19353 (arm_arch_setup): New.
19354 (target_regsets): Remove #ifdef. Add VFP regset.
19355 (the_low_target): Use arm_arch_setup.
19356
12b42a12
DJ
193572009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19358
19359 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19360 the main thread again.
19361
ac8c974e
AR
193622009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19363
19364 Adding Neutrino gdbserver.
19365 * configure: Regenerated.
19366 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19367 * configure.srv (i[34567]86-*-nto*): New target.
19368 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19369 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19370 (nto_comctrl) [__QNX__]: New function.
19371 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19372
4424e0c3 193732009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19374
19375 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19376 srv_tgtobj.
19377
912cf4ba
PA
193782009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19379 Pedro Alves <pedro@codesourcery.com>
19380
19381 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19382 don't support CONTEXT_EXTENDED_REGISTERS.
19383 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19384 (the_low_target): Install them.
19385 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19386 failing with ERROR_PIPE_NOT_CONNECTED.
19387
aa5ca48f
DE
193882009-06-30 Doug Evans <dje@google.com>
19389 Pierre Muller <muller@ics.u-strasbg.fr>
19390
19391 Add h/w watchpoint support to x86-linux, win32-i386.
19392 * Makefile.in (SFILES): Add i386-low.c
19393 (i386_low_h): Define.
19394 (i386-low.o): Add dependencies.
19395 (linux-x86-low.o): Add i386-low.h dependency.
19396 (win32-i386-low.o): Ditto.
19397 * i386-low.c: New file.
19398 * i386-low.h: New file.
19399 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19400 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19401 * linux-low.c (linux_add_process): Initialize arch_private.
19402 (linux_remove_process): Free arch_private.
19403 (add_lwp): Initialize arch_private.
19404 (delete_lwp): Free arch_private.
19405 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19406 provided.
19407 * linux-low.h (process_info_private): New member arch_private.
19408 (lwp_info): New member arch_private.
19409 (linux_target_ops): New members new_process, new_thread,
19410 prepare_to_resume.
19411 (ptid_of): New macro.
19412 * linux-x86-low.c: Include stddef.h, i386-low.h.
19413 (arch_process_info): New struct.
19414 (arch_lwp_info): New struct.
19415 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19416 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19417 (i386_dr_low_get_status): New function.
19418 (x86_insert_point, x86_remove_point): New functions.
19419 (x86_stopped_by_watchpoint): New function.
19420 (x86_stopped_data_address): New function.
19421 (x86_linux_new_process, x86_linux_new_thread): New functions.
19422 (x86_linux_prepare_to_resume): New function.
19423 (the_low_target): Add entries for insert_point, remove_point,
19424 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19425 prepare_to_resume.
19426 * server.c (debug_hw_points): New global.
19427 (monitor_show_help): Document set debug-hw-points.
19428 (handle_query): Process "set debug-hw-points".
19429 * server.h (debug_hw_points): Declare.
19430 (paddress): Declare.
19431 * utils.c (NUMCELLS, CELLSIZE): New macros.
19432 (get_sell, xsnprintf, paddress): New functions.
19433 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19434 remove_point, stopped_by_watchpoint, stopped_data_address.
19435 * win32-i386-low.c: Include i386-low.h.
19436 (debug_reg_state): Replaces dr.
19437 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19438 (i386_dr_low_get_status): New function.
19439 (i386_insert_point, i386_remove_point): New functions.
19440 (i386_stopped_by_watchpoint): New function.
19441 (i386_stopped_data_address): New function.
19442 (i386_initial_stuff): Update.
19443 (get_thread_context,set_thread_context,i386_thread_added): Update.
19444 (the_low_target): Add entries for insert_point,
19445 remove_point, stopped_by_watchpoint, stopped_data_address.
19446 * win32-low.c (win32_insert_watchpoint): New function.
19447 (win32_remove_watchpoint): New function.
19448 (win32_stopped_by_watchpoint): New function.
19449 (win32_stopped_data_address): New function.
19450 (win32_target_ops): Add entries for insert_watchpoint,
19451 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19452 * win32-low.h (win32_target_ops): New members insert_point,
19453 remove_point, stopped_by_watchpoint, stopped_data_address.
19454
d993e290
PA
194552009-06-25 Pedro Alves <pedro@codesourcery.com>
19456
19457 * server.c (process_serial_event): Re-return unsupported, not
19458 error, if the type isn't recognized. Re-allow supporting only
19459 insert or remove packets. Also call require_running for
19460 breakpoints. Add missing break statement to default case. Tidy.
19461 * target.h (struct target_ops): Rename insert_watchpoint to
19462 insert_point, and remove_watchpoint to remove_point.
19463
19464 * linux-low.h (struct linux_target_ops): Likewise.
19465 * linux-low.c (linux_insert_watchpoint): Rename to ...
19466 (linux_insert_point): ... this. Adjust.
19467 (linux_remove_watchpoint): Rename to ...
19468 (linux_remove_point): ... this. Adjust.
19469 (linux_target_ops): Adjust.
19470 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19471 (cris_insert_point): ... this.
19472 (cris_remove_watchpoint): Rename to ...
19473 (cris_remove_point): ... this.
19474 (the_low_target): Adjust.
19475
0f54c268
PM
194762009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19477
19478 * server.c (handle_v_kill): Pass signal_pid to
19479 kill_inferior if multi_process is zero.
19480
c6314022
AR
194812009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19482
19483 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19484 * target.h (target_ops): Comment for *_watchpoint to make it clear
19485 the functions can get types '0' and '1'.
19486
4463ce24
AR
194872009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19488
19489 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19490 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19491 * regcache.c (get_regcache): Likewise.
19492 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19493 * win32-low.c (child_fetch_inferior_registers): Remove check for
19494 regno 0.
19495
cf8fd78b
PA
194962009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19497 Pedro Alves <pedro@codesourcery.com>
19498
19499 * target.h (struct target_ops) <supports_multi_process>: New
19500 callback.
19501 (target_supports_multi_process): New.
19502 * server.c (handle_query): Even if GDB reports support, only
19503 enable multi-process if the target also supports it. Report
19504 multi-process support only if the target backend supports it.
19505 * linux-low.c (linux_supports_multi_process): New function.
19506 (linux_target_ops): Install it as target_supports_multi_process
19507 callback.
19508
47c0c975
DE
195092009-05-24 Doug Evans <dje@google.com>
19510
e09875d4
DE
19511 Global renaming of find_thread_pid to find_thread_ptid.
19512 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19513 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19514 All callers updated.
19515
e27d73f6
DE
19516 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19517 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19518 directly.
19519
47c0c975
DE
19520 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19521 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19522 (linux_resume_one_lwp): Ditto.
19523
2acc282a
DE
195242009-05-23 Doug Evans <dje@google.com>
19525
19526 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19527 from struct inferior_list_entry * to struct lwp_info *.
19528 All callers updated.
19529
9f1036c1
DE
195302009-05-13 Doug Evans <dje@google.com>
19531
19532 * linux-x86-low.c: Don't include assert.h.
19533 (x86_siginfo_fixup): Use fatal, not assert.
19534 (x86_arch_setup): Fix comment.
19535
d0722149
DE
195362009-05-12 Doug Evans <dje@google.com>
19537
19538 Biarch support for i386/amd64 gdbserver.
19539 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19540 Add linux-x86-low.c.
19541 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19542 (linux-x86-low.o): Add.
19543 * linux-x86-64-low.c: Delete.
19544 * linux-i386-low.c: Delete.
19545 * linux-x86-low.c: New file.
19546 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19547 linux-x86-low.o.
19548 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19549 linux-x86-low.o.
19550 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19551 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19552 (linux_child_pid_to_exec_file): New function.
19553 (elf_64_header_p, elf_64_file_p): New functions.
19554 (siginfo_fixup): New function.
19555 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19556 give target a chance to convert layout.
19557 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19558 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19559
fdeb2a12
DE
195602009-05-07 Doug Evans <dje@google.com>
19561
19562 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19563 (regsets_store_inferior_registers): Ditto.
19564
a6dbe5df
PA
195652009-05-06 Pedro Alves <pedro@codesourcery.com>
19566
19567 PR server/10048
19568
19569 * linux-low.c (must_set_ptrace_flags): Delete.
19570 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19571 of the global.
19572 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19573 `lwp->must_set_ptrace_flags' instead.
ba42693b 19574 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19575 (linux_wait_1): ... not here.
19576
5091eb23
DE
195772009-04-30 Doug Evans <dje@google.com>
19578
9f767825
DE
19579 * inferiors.c (started_inferior_callback): New function.
19580 (attached_inferior_callback): New function.
19581 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19582 * server.c (print_started_pid, print_attached_pid): New functions.
19583 (detach_or_kill_for_exit): New function.
19584 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19585 * server.h (have_started_inferiors_p): Declare.
19586 (have_attached_inferiors_p): Declare.
19587
5091eb23
DE
19588 * inferiors.c (remove_process): Fix memory leak, free process.
19589 * linux-low.c (linux_remove_process): New function.
19590 (linux_kill): Call it instead of remove_process.
19591 (linux_detach, linux_wait_1): Ditto.
19592
155c8968
PA
195932009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19594
19595 * configure.srv: Add x86 Windows CE target.
19596
7fe519cb
UW
195972009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19598
19599 * inferiors.c (get_thread_process): Make global.
19600 * server.h (get_thread_process): Add prototype.
19601 * thread-db.c (find_one_thread): Use get_thread_process
19602 instead of current_process.
19603 (thread_db_get_tls_address): Do not crash if called when
19604 thread layer is not yet initialized.
19605
5472f405
UW
196062009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19607
19608 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19609 * spu-low.c (current_tid): Rename to ...
19610 (current_ptid): ... this.
19611 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19612 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19613 ptid_get_lwp (current_ptid) instead of current_tid.
19614 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19615 instead of current_tid. Use find_process_pid to verify pid
19616 argument is valid. Pass proper argument to remove_process.
19617 (spu_thread_alive): Compare current_ptid instead of current_tid.
19618 (spu_resume): Likewise.
19619
55ac2b99
PA
196202009-04-02 Pedro Alves <pedro@codesourcery.com>
19621
19622 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19623 variable.
19624
95954743
PA
196252009-04-01 Pedro Alves <pedro@codesourcery.com>
19626
19627 Implement the multiprocess extensions, and add linux multiprocess
19628 support.
19629
19630 * server.h (ULONGEST): Declare.
19631 (struct ptid, ptid_t): New.
19632 (minus_one_ptid, null_ptid): Declare.
19633 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19634 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19635 (struct inferior_list_entry): Change `id' type from unsigned from
19636 to ptid_t.
19637 (struct sym_cache, struct breakpoint, struct
19638 process_info_private): Forward declare.
19639 (struct process_info): Declare.
19640 (current_process): Declare.
19641 (all_processes): Declare.
19642 (initialize_inferiors): Declare.
19643 (add_thread): Adjust to use ptid_t.
19644 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19645 (add_process, remove_process, find_thread_pid): Declare.
19646 (find_inferior_id): Adjust to use ptid_t.
19647 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19648 (multi_process): Declare.
19649 (push_event): Adjust to use ptid_t.
19650 (read_ptid, write_ptid): Declare.
19651 (prepare_resume_reply): Adjust to use ptid_t.
19652 (clear_symbol_cache): Declare.
19653 * inferiors.c (all_processes): New.
19654 (null_ptid, minus_one_ptid): New.
19655 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19656 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19657 (add_thread): Change unsigned long to ptid. Remove gdb_id
19658 parameter. Adjust.
19659 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19660 (gdb_id_to_thread): Rename to ...
19661 (find_thread_pid): ... this. Change unsigned long to ptid.
19662 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19663 (loaded_dll, pull_pid_from_list): Adjust.
19664 (add_process, remove_process, find_process_pid)
19665 (get_thread_process, current_process, initialize_inferiors): New.
19666 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19667 (struct target_waitstatus) <related_pid>: Ditto.
19668 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19669 return type to int.
19670 (struct target_ops) <join>: Add `pid' argument.
19671 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19672 (struct target_ops) <wait>: Add `ptid' field. Change return type
19673 to ptid.
19674 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19675 (mywait): Add `ptid' argument. Change return type to ptid_t.
19676 (target_pid_to_str): Declare.
19677 * target.c (set_desired_inferior): Adjust to use ptids.
19678 (mywait): Add new `ptid' argument. Adjust.
19679 (target_pid_to_str): New.
19680 * mem-break.h (free_all_breakpoints): Declare.
19681 * mem-break.c (breakpoints): Delelete.
19682 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19683 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19684 to use per-process breakpoint list.
19685 (free_all_breakpoints): New.
19686 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19687 (symbol_cache, all_symbols_looked_up): Delete.
19688 (hexchars): New.
19689 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19690 read_ptid): New.
19691 (prepare_resume_reply): Change ptid argument's type from unsigned
19692 long to ptid_t. Adjust. Implement W;process and X;process.
19693 (free_sym_cache, clear_symbol_cache): New.
19694 (look_up_one_symbol): Adjust to per-process symbol cache. *
19695 * server.c (cont_thread, general_thread, step_thread): Change type
19696 to ptid_t.
19697 (attached): Delete.
19698 (multi_process): New.
19699 (last_ptid): Change type to ptid_t.
19700 (struct vstop_notif) <ptid>: Change type to ptid_t.
19701 (queue_stop_reply, push_event): Change `ptid' argument's type to
19702 ptid_t.
19703 (discard_queued_stop_replies): Add `pid' argument.
19704 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19705 changes. Don't reference the `attached' global.
19706 (attach_inferior): Adjust to mywait interface changes.
19707 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19708 features. Handle and report "multiprocess+". Handle
19709 "qAttached:PID".
19710 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19711 changes.
19712 (handle_v_kill): New.
19713 (handle_v_stopped): Adjust to use target_pid_to_str.
19714 (handle_v_requests): Allow multiple attaches and runs when
19715 multiprocess extensions are in effect. Handle "vKill".
19716 (myresume): Adjust to use ptids.
19717 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19718 (handle_status): Adjust to discard_queued_stop_replies interface
19719 change.
19720 (first_thread_of, kill_inferior_callback)
19721 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19722 (main): Call initialize_inferiors. Adjust to use ptids, killing
19723 and detaching from all inferiors. Handle multiprocess packet
19724 variants.
19725 * linux-low.h: Include gdb_proc_service.h.
19726 (struct process_info_private): New.
19727 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19728 <lwpid_of>: Use ptid_get_lwp.
19729 (get_lwp_thread): Adjust.
19730 (struct lwp_info): Add `dead' member.
19731 (find_lwp_pid): Declare.
19732 * linux-low.c (thread_db_active): Delete.
19733 (new_inferior): Adjust comment.
19734 (inferior_pid): Delete.
19735 (linux_add_process): New.
19736 (handle_extended_wait): Adjust.
19737 (add_lwp): Change unsigned long to ptid.
19738 (linux_create_inferior): Add process to processes table. Adjust
19739 to use ptids. Don't set new_inferior here.
19740 (linux_attach_lwp): Rename to ...
19741 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19742 it. Adjust to use ptids.
19743 (linux_attach_lwp): New.
19744 (linux_attach): Add process to processes table. Don't set
19745 new_inferior here.
19746 (struct counter): New.
19747 (second_thread_of_pid_p, last_thread_of_process_p): New.
19748 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19749 multiple processes.
19750 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19751 processes. Remove process from process table.
19752 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19753 to multiple processes.
19754 (any_thread_of): New.
19755 (linux_detach): Add `pid' argument, and handle it. Remove process
19756 from processes table.
19757 (linux_join): Add `pid' argument. Handle it.
19758 (linux_thread_alive): Change unsighed long argument to ptid_t.
19759 Consider dead lwps as not being alive.
19760 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19761 threads we're not interested in.
19762 (same_lwp, find_lwp_pid): New.
19763 (linux_wait_for_lwp): Change `pid' argument's type from int to
19764 ptid_t. Adjust.
19765 (linux_wait_for_event): Rename to ...
19766 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19767 from int to ptid_t. Adjust.
19768 (linux_wait_for_event): New.
19769 (linux_wait_1): Add `ptid' argument. Change return type to
19770 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19771 that exit from the process table.
19772 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19773 Adjust.
19774 (mark_lwp_dead): New.
19775 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19776 stopping all threads, mark its main lwp as dead.
19777 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19778 ptids.
19779 (fetch_register, usr_store_inferior_registers)
19780 (regsets_fetch_inferior_registers)
19781 (regsets_store_inferior_registers, linux_read_memory)
19782 (linux_write_memory): Inline `inferior_pid'.
19783 (linux_look_up_symbols): Adjust to use per-process
19784 `thread_db_active'.
19785 (linux_request_interrupt): Adjust to use ptids.
19786 (linux_read_auxv): Inline `inferior_pid'.
19787 (initialize_low): Don't reference thread_db_active.
19788 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19789 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19790 (ps_getpid): Return the pid of the current inferior.
19791 * thread-db.c (proc_handle, thread_agent): Delete.
19792 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19793 per-process data.
19794 (find_one_thread): Change argument type to ptid_t. Adjust to
19795 per-process data.
19796 (maybe_attach_thread): Adjust to per-process data and ptids.
19797 (thread_db_find_new_threads): Ditto.
19798 (thread_db_init): Ditto.
19799 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19800 processes table. Adjust to use ptids.
19801 (spu_kill, spu_detach): Adjust interface. Remove process from
19802 processes table.
19803 (spu_join, spu_thread_alive): Adjust interface.
19804 (spu_wait): Adjust interface. Remove process from processes
19805 table. Adjust to use ptids.
19806 * win32-low.c (current_inferior_tid): Delete.
19807 (current_inferior_ptid): New.
19808 (debug_event_ptid): New.
19809 (thread_rec): Take a ptid. Adjust.
19810 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19811 (child_delete_thread): Ditto.
19812 (do_initial_child_stuff): Add `attached' argument. Add process to
19813 processes table.
19814 (child_fetch_inferior_registers, child_store_inferior_registers):
19815 Adjust.
19816 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19817 (win32_attach): Pass 1 to do_initial_child_stuff.
19818 (win32_kill): Adjust interface. Remove process from processes
19819 table.
19820 (win32_detach): Ditto.
19821 (win32_join): Adjust interface.
19822 (win32_thread_alive): Take a ptid.
19823 (win32_resume): Adjust to use ptids.
19824 (get_child_debug_event): Ditto.
19825 (win32_wait): Adjust interface. Remove exiting process from
19826 processes table.
19827
bd99dc85
PA
198282009-04-01 Pedro Alves <pedro@codesourcery.com>
19829
19830 Non-stop mode support.
19831
19832 * server.h (non_stop): Declare.
19833 (gdb_client_data, handler_func): Declare.
19834 (delete_file_handler, add_file_handler, start_event_loop):
19835 Declare.
19836 (handle_serial_event, handle_target_event, push_event)
19837 (putpkt_notif): Declare.
19838 * target.h (enum resume_kind): New.
19839 (struct thread_resume): Replace `step' field by `kind' field.
19840 (TARGET_WNOHANG): Define.
19841 (struct target_ops) <wait>: Add `options' argument.
19842 <supports_non_stop, async, start_non_stop>: New fields.
19843 (target_supports_non_stop, target_async): New.
19844 (start_non_stop): Declare.
19845 (mywait): Add `options' argument.
19846 * target.c (mywait): Add `options' argument. Print child exit
19847 notifications here.
19848 (start_non_stop): New.
19849 * server.c (non_stop, own_buf, mem_buf): New globals.
19850 (struct vstop_notif): New.
19851 (notif_queue): New global.
19852 (queue_stop_reply, push_event, discard_queued_stop_replies)
19853 (send_next_stop_reply): New.
19854 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19855 interface changes.
19856 (attach_inferior): In non-stop mode, don't wait for the target
19857 here.
19858 (handle_general_set): Handle QNonStop.
19859 (handle_query): When handling qC, return the current general
19860 thread, instead of the first thread of the list.
19861 (handle_query): If the backend supports non-stop mode, include
19862 QNonStop+ in the qSupported query response.
19863 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19864 and non-stop mode.
19865 (handle_v_attach, handle_v_run): Handle non-stop mode.
19866 (handle_v_stopped): New.
19867 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19868 (myresume): Adjust to use resume_kind. Handle non-stop.
19869 (queue_stop_reply_callback): New.
19870 (handle_status): Handle non-stop mode.
19871 (main): Clear non_stop flag on reconnection. Use the event-loop.
19872 Refactor serial protocol handling from here ...
19873 (process_serial_event): ... to this new function. When GDB
19874 selects any thread, select one here. In non-stop mode, wait until
19875 GDB acks all pending events before exiting.
19876 (handle_serial_event, handle_target_event): New.
19877 * remote-utils.c (remote_open): Install remote_desc in the event
19878 loop.
19879 (remote_close): Remove remote_desc from the event loop.
19880 (putpkt_binary): Rename to...
19881 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19882 (putpkt_binary): New as wrapper around putpkt_binary_1.
19883 (putpkt_notif): New.
19884 (prepare_resume_reply): In non-stop mode, don't change the
19885 general_thread.
19886 * event-loop.c: New.
19887 * Makefile.in (OBJ): Add event-loop.o.
19888 (event-loop.o): New rule.
19889
19890 * linux-low.h (pid_of): Moved here.
19891 (lwpid_of): New.
19892 (get_lwp_thread): Use lwpid_of.
19893 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19894 * linux-low.c (pid_of): Delete.
19895 (inferior_pid): Use lwpid_of.
19896 (linux_event_pipe): New.
19897 (target_is_async_p): New.
19898 (delete_lwp): New.
19899 (handle_extended_wait): Use lwpid_of.
19900 (add_lwp): Don't set lwpid field.
19901 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19902 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19903 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19904 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19905 first. Adjust to linux_wait_for_event interface changes. Use
19906 lwpid_of.
19907 (linux_detach): Don't delete the main lwp here.
19908 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19909 (status_pending_p): Don't consider explicitly suspended lwps.
19910 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19911 pointer. Add OPTIONS argument. Change return type to int. Use
19912 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19913 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19914 pointer. Add status pointer argument. Return a pid instead of a
19915 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19916 changes. In non-stop mode, don't switch to a random thread.
19917 (linux_wait): Rename to...
19918 (linux_wait_1): ... this. Add target_options argument, and handle
19919 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19920 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19921 clean exit and signal exit code. Don't stop all threads in
19922 non-stop mode. In all-stop mode, only stop all threads when
19923 reporting a stop to GDB. Handle explicit thread stop requests.
19924 (async_file_flush, async_file_mark): New.
19925 (linux_wait): New.
19926 (send_sigstop): Use lwpid_of.
19927 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19928 interface changes. In non-stop mode, don't switch to a random
19929 thread.
19930 (linux_resume_one_lwp): Use lwpid_of.
19931 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19932 (linux_resume_one_thread): ... this. Handle resume_stop. In
19933 non-stop mode, don't look for pending flag in all threads.
19934 (resume_status_pending_p): Don't consider explicitly suspended
19935 threads.
19936 (my_waitpid): Reimplement. Emulate __WALL.
19937 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19938 Use lwpid_of.
19939 (sigchld_handler, linux_supports_non_stop, linux_async)
19940 (linux_start_non_stop): New.
19941 (linux_target_ops): Register linux_supports_non_stop, linux_async
19942 and linux_start_non_stop.
19943 (initialize_low): Install SIGCHLD handler.
19944 * thread-db.c (thread_db_create_event, find_one_thread)
19945 (thread_db_get_tls_address): Use lwpid_of.
19946 * win32-low.c (win32_detach): Adjust to use resume_kind.
19947 (win32_wait): Add `options' argument.
19948 * spu-low.c (spu_resume): Adjust to use resume_kind.
19949 (spu_wait): Add `options' argument.
19950
5b1c542e
PA
199512009-04-01 Pedro Alves <pedro@codesourcery.com>
19952
19953 Decouple target code from remote protocol.
19954
19955 * target.h (enum target_waitkind): New.
19956 (struct target_waitstatus): New.
19957 (struct target_ops) <wait>: Return an unsigned long. Take a
19958 target_waitstatus pointer instead of a char pointer.
19959 (mywait): Likewise.
19960 * target.c (mywait): Change prototype to return an unsigned long.
19961 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19962 * server.h (thread_from_wait, old_thread_from_wait): Delete
19963 declarations.
19964 (prepare_resume_reply): Change prototype to take a
19965 target_waitstatus.
19966 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19967 (last_status, last_ptid): New.
19968 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19969 pid instead of a signal.
19970 (attach_inferior): Remove "status" and "signal" parameters.
19971 Adjust.
19972 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19973 not as an address.
19974 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19975 (handle_v_requests, myresume): Remove "status" and "signal"
19976 parameters. Adjust.
19977 (handle_status): New.
19978 (main): Delete local `status'. Adjust.
19979 * remote-utils.c: Include target.h.
19980 (prepare_resume_reply): Change prototype to take a
19981 target_waitstatus. Adjust.
19982
19983 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19984 interface.
19985 * spu-low.c (spu_wait): Adjust.
19986 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19987 Delete.
19988 (win32_wait): Adjust.
19989
2bd7c093
PA
199902009-04-01 Pedro Alves <pedro@codesourcery.com>
19991
19992 * target.h (struct thread_resume): Delete leave_stopped member.
19993 (struct target_ops): Add a `n' argument to the `resume' callback.
19994 * server.c (start_inferior): Adjust.
19995 (handle_v_cont, myresume): Adjust.
19996 * linux-low.c (check_removed_breakpoint): Adjust to resume
19997 interface change, and to removed leave_stopped field.
19998 (resume_ptr): Delete.
19999 (struct thread_resume_array): New.
20000 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20001 resume interface change.
20002 (linux_continue_one_thread, linux_queue_one_thread)
20003 (resume_status_pending_p): Check if the resume field is NULL
20004 instead of checking the leave_stopped member.
20005 (linux_resume): Adjust to the target resume interface change.
20006 * spu-low.c (spu_resume): Adjust to the target resume interface
20007 change.
20008 * win32-low.c (win32_detach, win32_resume): Ditto.
20009
c35fafde
PA
200102009-04-01 Pedro Alves <pedro@codesourcery.com>
20011
20012 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20013 flag.
20014 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20015 pending.
20016 (linux_continue_one_thread): Only preserve the stepping flag if
20017 there's a pending breakpoint.
20018
0a59d50b
PA
200192009-03-31 Pedro Alves <pedro@codesourcery.com>
20020
20021 * server.c (main): After the inferior having exited, call
20022 remote_close before exiting gdbserver.
20023
f04c6d38
TJB
200242009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20025
20026 Fix size of FPSCR in Power 7 processors.
20027 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20028 (PPC_FEATURE_HAS_DFP): New #define.
20029 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20030 size of the FPSCR.
20031
78e5cee6
PA
200322009-03-23 Pedro Alves <pedro@codesourcery.com>
20033
20034 * server.c (handle_query) Whitespace and formatting.
20035
1b3f6016
PA
200362009-03-22 Pedro Alves <pedro@codesourcery.com>
20037
20038 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20039 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20040 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20041 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20042 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20043 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20044 Makefile.in, configure.ac: Fix whitespace throughout.
20045 * configure: Regenerate.
20046
a07b2135
PA
200472009-03-22 Pedro Alves <pedro@codesourcery.com>
20048
20049 * inferiors.c (find_inferior): Make it safe for the callback
20050 function to delete the currently iterated inferior.
20051
67cc2626
PA
200522009-03-22 Pedro Alves <pedro@codesourcery.com>
20053
20054 * Makefile.in (linuw_low_h): Move higher.
20055 (thread-db.o): Depend on $(linux_low_h).
20056
54a0b537
PA
200572009-03-17 Pedro Alves <pedro@codesourcery.com>
20058
20059 Rename "process" to "lwp" throughout.
20060
20061 * linux-low.c (all_processes): Rename to...
20062 (all_lwps): ... this.
20063 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20064 (add_process): Rename to ...
20065 (add_lwp): ... this. Adjust.
20066 (linux_create_inferior): Adjust.
20067 (linux_attach_lwp): Adjust.
20068 (linux_attach): Adjust.
20069 (linux_kill_one_process): Rename to ...
20070 (linux_kill_one_lwp): ... this. Adjust.
20071 (linux_kill): Adjust.
20072 (linux_detach_one_process): Rename to ...
20073 (linux_detach_one_lwp): ... this. Adjust.
20074 (linux_detach): Adjust.
20075 (check_removed_breakpoint): Adjust.
20076 (status_pending_p): Adjust.
20077 (linux_wait_for_process): Rename to ...
20078 (linux_wait_for_lwp): ... this. Adjust.
20079 (linux_wait_for_event): Adjust.
20080 (send_sigstop): Adjust.
20081 (wait_for_sigstop): Adjust.
20082 (stop_all_processes): Rename to ...
20083 (stop_all_lwps): ... this.
20084 (linux_resume_one_process): Rename to ...
20085 (linux_resume_one_lwp): ... this. Adjust.
20086 (linux_set_resume_request, linux_continue_one_thread)
20087 (linux_queue_one_thread, resume_status_pending_p)
20088 (usr_store_inferior_registers, regsets_store_inferior_registers)
20089 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20090 Adjust.
20091 * linux-low.h (get_process): Rename to ...
20092 (get_lwp): ... this. Adjust.
20093 (get_thread_process): Rename to ...
20094 (get_thread_lwp): ... this. Adjust.
20095 (get_process_thread): Rename to ...
20096 (get_lwp_thread): ... this. Adjust.
20097 (struct process_info): Rename to ...
20098 (struct lwp_info): ... this.
20099 (all_processes): Rename to ...
20100 (all_lwps): ... this.
20101 * proc-service.c (ps_lgetregs): Adjust.
20102 * thread-db.c (thread_db_create_event, find_one_thread)
20103 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20104
0b16c5cf
PA
201052009-03-14 Pedro Alves <pedro@codesourcery.com>
20106
20107 * server.c (handle_query): Handle "qAttached".
20108
32de4b9d
NS
201092009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20110
20111 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20112 GPLv3, update license URL.
20113
2aecd87f
DE
201142009-03-01 Doug Evans <dje@google.com>
20115
93efd302 20116 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
20117 (server_h): Add gdb_signals.h.
20118 (signals.o): Update.
20119 * server.h (target_signal_from_host,target_signal_to_host_p)
20120 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20121
86b1f9c5
PM
201222009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20123
20124 * remote-utils.c (getpkt): Also generate remote-debug
20125 information if noack_mode is set.
20126
4aa995e1
PA
201272009-02-06 Pedro Alves <pedro@codesourcery.com>
20128
20129 * server.c (handle_query): Report qXfer:siginfo:read and
20130 qXfer:siginfo:write as supported and handle them.
20131 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20132 * linux-low.c (linux_xfer_siginfo): New.
20133 (linux_target_ops): Set it.
20134
62709adf
PA
201352009-01-26 Pedro Alves <pedro@codesourcery.com>
20136
20137 * server.c (gdbserver_usage): Mention --remote-debug.
20138 (main): Accept '--remote-debug' switch.
20139
aef93bd7
DE
201402009-01-18 Doug Evans <dje@google.com>
20141
20142 * regcache.c (new_register_cache): No need to check result of xcalloc.
20143 * server.c (handle_search_memory): Back out calls to xmalloc,
20144 result is checked and error is returned to user upon failure.
20145 (handle_query): Ditto. Add more checks for result of malloc.
20146 (handle_v_cont): Check result of malloc, report error back to
20147 user upon failure.
20148 (handle_v_run): Ditto. Call freeargv.
20149 * server.h (freeargv): Declare.
20150 * utils.c (freeargv): New fn.
20151
54363045
DE
201522009-01-15 Doug Evans <dje@google.com>
20153
f626972c
DE
20154 * gdbreplay.c (perror_with_name): Make arg const char *.
20155 * server.h (target_signal_to_name): Make return type const char *.
0842e787 20156 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 20157 * utils.c (perror_with_name): Make arg const char *.
54363045 20158
18aae699
PA
201592009-01-14 Pedro Alves <pedro@codesourcery.com>
20160
20161 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20162 when handling a EXIT_PROCESS_DEBUG_EVENT.
20163
ff703abe
JB
201642009-01-06 Joel Brobecker <brobecker@adacore.com>
20165
20166 * gdbreplay.c (gdbreplay_version): Update copyright year.
20167 * server.c (gdbserver_version): Likewise.
20168
f21cc1a2 201692009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
20170
20171 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 20172 (handle_extended_wait): Improve comment.
0e21c1ec 20173
bca929d3
DE
201742008-12-13 Doug Evans <dje@google.com>
20175
20176 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20177 * server.h (ATTR_MALLOC): New macro.
20178 (xmalloc,xcalloc,xstrdup): Declare.
20179 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20180 * inferiors.c: Ditto.
20181 * linux-low.c: Ditto.
20182 * mem-break.c: Ditto.
20183 * regcache.c: Ditto.
20184 * remote-utils.c: Ditto.
20185 * server.c: Ditto.
20186 * target.c: Ditto.
20187 * win32-low.c: Ditto.
20188
97438e3f
DE
201892008-12-12 Doug Evans <dje@google.com>
20190
896c7fbb
DE
20191 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20192 in debugging printf.
20193
97438e3f
DE
20194 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20195
e3b886f8
DE
201962008-12-09 Doug Evans <dje@google.com>
20197
20198 * linux-low.h (struct process_info): Delete member tid, unused.
20199 * thread-db.c (find_one_thread): Update.
20200 (maybe_attach_thread): Update.
20201
07e059b5
VP
202022008-12-02 Pedro Alves <pedro@codesourcery.com>
20203
889bf7c5
PA
20204 * target.h (struct target_ops): Add qxfer_osdata member.
20205 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20206 and dirent.h.
20207 (linux_qxfer_osdata): New functions.
20208 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20209 callback.
20210 * server.c (handle_query): Handle "qXfer:osdata:read:".
20211 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20212 (buffer_xml_printf): New functions.
20213 * server.h (struct buffer): New.
20214 (buffer_grow_str, buffer_grow_str0): New macros.
20215 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20216 (buffer_xml_printf): Declare.
07e059b5 20217
4cab47ab
DE
202182008-11-24 Doug Evans <dje@google.com>
20219
20220 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20221
f142445f
DJ
202222008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20223
20224 * server.c (handle_v_run): Always use the supplied argument list.
20225
d0107bb6 202262008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20227
d0107bb6
BW
20228 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20229 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20230
2c4ad781
TJB
202312008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20232
20233 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20234 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20235 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20236 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20237 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20238 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20239 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20240 XML target descriptions.
20241 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20242 when inferior is running on an ISA 2.05 or later processor. Add
20243 special case to return offset for full 64-bit slot of FPSCR when
20244 in 32-bits.
20245
dfb64f85
DJ
202462008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20247
20248 * Makefile.in (SFILES, clean): Added sparc64 files.
20249 (reg-sparc64.o, reg-sparc64.c): New.
20250 * configure.srv (sparc*-*-linux*): New configuration.
20251 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20252 syscall arguments for SPARC.
20253 (regsets_store_inferior_registers): Likewise.
20254 * linux-sparc-low.c: New file.
20255
66b6e1dd
DE
202562008-10-21 Doug Evans <dje@google.com>
20257
20258 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20259 (READLINE_DIR,READLINE_DEP): Delete.
20260 (INTERNAL_CFLAGS): Update.
20261 (LINTFLAGS): Update.
20262
9b710a42
PA
202632008-10-10 Pedro Alves <pedro@codesourcery.com>
20264
20265 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20266 whole argv from the last run, not just argv[0].
20267
5822d809
PA
202682008-09-08 Pedro Alves <pedro@codesourcery.com>
20269
20270 * regcache.c (new_register_cache): Return NULL if the register
20271 cache size isn't known yet.
20272 (free_register_cache): Avoid dereferencing a NULL regcache.
20273
74aac56f
DJ
202742008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20275
20276 * configure.srv: Merge MIPS and MIPS64.
20277
400b20f5
MR
202782008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20279
20280 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20281
677c5bb1
LM
202822008-08-18 Luis Machado <luisgpm@br.ibm.com>
20283
20284 * Makefile.in: Add required vsx dependencies.
20285
20286 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20287 Declare init_registers_powerpc_vsx32l.
20288 Declare init_registers_powerpc_vsx64l.
20289 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20290 (ppc_arch_setup): Check for VSX in hwcap.
20291 (ppc_fill_vsxregset): New function.
20292 (ppc_store_vsxregset): New function.
20293 Add new VSX entry in regset_info target_regsets.
20294
20295 * configure.srv: Add new VSX dependencies.
20296
a6f3e723
SL
202972008-08-12 Pedro Alves <pedro@codesourcery.com>
20298
20299 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20300 (remote_open): Set or clear transport_is_reliable.
20301 (putpkt_binary): Don't expect acks in noack mode.
20302 (getpkt): Don't send ack/nac in noack mode.
20303 * server.c (handle_general_set): Handle QStartNoAckMode.
20304 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20305 qSupported.
20306 (main): Reset noack_mode on every connection.
20307 * server.h (noack_mode): Declare.
20308
a417dc56
RW
203092008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20310
20311 * Makefile.in (GDBREPLAY_OBS): New variable.
20312 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20313
3221518c
UW
203142008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20315 Daniel Jacobowitz <dan@codesourcery.com>
20316
20317 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20318 (usr_store_inferior_registers): Likewise.
20319 (regsets_store_inferior_registers): Likewise.
20320
ec56be1b
PA
203212008-07-31 Rolf Jansen <rj@surtec.com>
20322 Pedro Alves <pedro@codesourcery.com>
20323
20324 * configure.ac: Check for memmem declaration.
20325 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20326 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20327 (disable_packet_qfThreadInfo): Unconditionally compile.
20328 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20329 * configure, config.in: Regenerate.
20330
2fe5e3ff
DE
203312008-07-28 Doug Kwan <dougkwan@google.com>
20332
20333 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20334 (linux_write_memory): Remove declaration of errno.
20335
836acd6d
UW
203362008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20337
20338 * linux-low.c (handle_extended_wait): Do not use "status"
20339 variable uninitialized.
20340
aeba519e
PA
203412008-07-07 Pedro Alves <pedro@codesourcery.com>
20342
20343 * server.c (handle_v_attach): Inhibit reporting dll changes.
20344
db42f210
PA
203452008-06-27 Pedro Alves <pedro@codesourcery.com>
20346
20347 * remote-utils.c (prepare_resume_reply): If requested, don't
20348 output "thread:TID" in the T stop reply.
20349
20350 * server.c (disable_packet_vCont, disable_packet_Tthread)
20351 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20352 (handle_query): If requested, disable support for qC, qfThreadInfo
20353 and qsThreadInfo.
20354 (handle_v_requests): If requested, disable support for vCont.
20355 (gdbserver_show_disableable): New.
20356 (main): Handle --disable-packet and --disable-packet=LIST.
20357
20358 * server.h (disable_packet_vCont, disable_packet_Tthread)
20359 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20360
8e4c5421
CD
203612008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20362
20363 * server.c (gdbserver_usage): Mention --version.
20364
6e23a804
DJ
203652008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20366
20367 * Makefile.in (gdbreplay.o): New rule.
20368
90aa6a40
JM
203692008-06-06 Joseph Myers <joseph@codesourcery.com>
20370
20371 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20372 message, not gdbserver.
20373
c16158bc 203742008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20375 Nathan Sidwell <nathan@codesourcery.com>
20376 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20377
20378 * acinclude.m4: Include ../../config/acx.m4.
20379 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20380 * configure, config.in: Regenerate.
20381 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20382 * server.c (gdbserver_version): Print PKGVERSION.
20383 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20384 (main): Adjust gdbserver_usage calls.
20385 * gdbreplay.c (version, host_name): Add declarations.
20386 (gdbreplay_version, gdbreplay_usage): New.
20387 (main): Accept --version and --help options.
20388
aeb75bf5
DJ
203892008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20390
20391 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20392 (arm_breakpoint_at): Handle Thumb.
20393 (the_low_target): Add comment.
20394
76b233dd
UW
203952008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20396
20397 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20398
08388c79
DE
203992008-05-09 Doug Evans <dje@google.com>
20400
a3c83fae
DE
20401 * server.h (decode_search_memory_packet): Declare.
20402 * remote-utils.c (decode_search_memory_packet): New fn.
20403 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20404 (handle_search_memory): New fn.
20405 (handle_query): Process qSearch:memory packets.
20406
bb9c3d36
UW
204072008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20408
20409 * regcache.c (registers_length): Remove.
20410 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20411 full register packet.
20412 * regcache.h (registers_length): Remove prototype.
20413 * server.h (PBUFSIZ): Define to 16384.
20414
7284e1be
UW
204152008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20416
20417 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20418 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20419 powerpc-64l.o, and powerpc-altivec64l.o.
20420 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20421 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20422 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20423 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20424 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20425 to srv_xmlfiles.
20426
20427 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20428 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20429 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20430 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20431 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20432 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20433 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20434 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20435 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20436 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20437 (clean): Update.
20438
20439 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20440 (init_registers_powerpc_32l): ... this new prototype.
20441 (init_registers_powerpc_32): Remove, replace by ...
20442 (init_registers_powerpc_altivec32l): ... this new prototype.
20443 (init_registers_powerpc_e500): Remove, replace by ...
20444 (init_registers_powerpc_e500l): ... this new prototype.
20445 (init_registers_ppc64): Remove, replace by ...
20446 (init_registers_powerpc_64l): ... this new prototype.
20447 (init_registers_powerpc_64): Remove, replace by ...
20448 (init_registers_powerpc_altivec64l): ... this new prototype.
20449 (ppc_num_regs): Set to 73.
20450 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20451 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20452 (ppc_cannot_store_register): Handle orig_r3 and trap.
20453 (ppc_arch_setup): Update init_registers_... calls.
20454 (ppc_fill_gregset): Handle orig_r3 and trap.
20455
20456 * inferiors.c (clear_inferiors): Reset current_inferior.
20457
fdc59709
PB
204582008-04-23 Paolo Bonzini <bonzini@gnu.org>
20459
889bf7c5
PA
20460 * acinclude.m4: Add override.m4.
20461 * configure: Regenerate.
fdc59709 20462
c9b2f845
UW
204632008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20464
20465 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20466 initial call to init_register_ppc64.
20467
550512b8
UW
204682008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20469
43aaf8b6
PA
20470 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20471 single powerpc*-*-linux* case.
550512b8
UW
20472 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20473
b6430ec3
UW
204742008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20475
20476 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20477 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20478 from reg_xmlfiles.
20479 * linux-ppc-low.c: Include <elf.h>.
20480 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20481 (ppc_hwcap): New global variable.
20482 (ppc_regmap): Remove __SPE__ #ifdef sections.
20483 (ppc_regmap_e500): New global variable.
20484 (ppc_cannot_store_register): Update __SPE__ special case.
20485 (ppc_get_hwcap): New function.
20486 (ppc_arch_setup): Use it to determine whether inferior supports
20487 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20488 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20489 Do not access registers if target does not support AltiVec.
20490 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20491 Do not access registers if target does not support SPE.
20492 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20493
52fa2412
UW
204942008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20495
20496 * linux-low.c (disabled_regsets, num_regsets): New.
20497 (use_regsets_p): Delete.
20498 (linux_wait_for_process): Clear disabled_regsets.
20499 (regsets_fetch_inferior_registers): Check and set it.
20500 (regsets_store_inferior_registers): Likewise.
20501 (linux_fetch_registers, linux_store_registers): Do not use
20502 use_regsets_p.
20503 (initialize_low): Allocate disabled_regsets.
20504
e28b3332
DJ
205052008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20506
20507 * Makefile.in (LIBOBJS): New.
20508 (OBS): Use LIBOBJS.
20509 (memmem.o): New rule.
20510 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20511 * configure: Regenerated.
20512
4536995d
UW
205132008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20514
20515 * server.c (handle_query): Never return "unsupported" for
20516 qXfer:features:read queries.
20517
221c031f
UW
205182008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20519
20520 * server.c (get_features_xml): Fix inverted condition.
20521 (handle_query): Always support qXfer:feature:read.
20522
ccd213ac
DJ
205232008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20524
20525 * server.c (wrapper_argv): New.
20526 (start_inferior): Handle wrapper_argv. If set, expect an extra
20527 trap.
20528 (gdbserver_usage): Document --wrapper.
20529 (main): Parse --wrapper.
20530
6fe305f7
UW
205312008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20532
20533 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20534 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20535 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20536 (ppc_set_pc): Likewise.
20537 (ppc_arch_setup): New function.
20538 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20539 of collect_register.
889bf7c5 20540 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20541
5b0a002e
UW
205422008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20543
20544 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20545 instead of linux-ppc64-low.o.
20546 * linux-ppc64-low.c: Remove file.
20547 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20548 (linux-ppc64-low.o): Remove rule.
20549
20550 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20551 (init_registers_powerpc_64): Likewise.
20552 (ppc_regmap): Conditionally define depending on __powerpc64__.
20553 (ppc_cannot_store_register): Do not special-case "fpscr" when
20554 compiled on __powerpc64__.
20555 (ppc_collect_ptrace_register): New function.
20556 (ppc_supply_ptrace_register): New function.
20557 (ppc_breakpoint): Change type to "unsigned int".
20558 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20559 (the_low_target): Conditionally provide initializers for the
889bf7c5 20560 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20561 collect_ptrace_register and supply_ptrace_register members.
20562
9b4b61c8
UW
205632008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20564
20565 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20566 * server.c (gdbserver_xmltarget): Define.
20567 (get_features_xml): Use it to replace "target.xml" and arch_string.
20568
20569 * configure.srv: Remove srv_xmltarget. Add XML files that were
20570 mentioned there to srv_xmlfiles instead. Remove conditional tests
20571 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20572 srv_xmlfiles and srv_regobj to include all possible choices.
20573 * configure.ac (srv_xmltarget): Remove.
20574 (srv_xmlfiles): Do not add "target.xml".
20575 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20576 checks for supplementary target information.
20577 * configure: Regenerate.
20578 * Makefile.in (XML_TARGET): Remove.
20579 (target.xml): Remove rule.
20580 (clean): Do not clean up target.xml.
20581 (.PRECIOUS): Do not mention target.xml.
20582
20583 * target.h (struct target_ops): Remove arch_string member.
20584 * linux-low.c (linux_arch_string): Remove.
20585 (linux_target_ops): Remove arch_string initializer.
20586 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20587 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20588 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20589 * spu-low.c (spu_arch_string): Remove.
20590 (spu_target_ops): Remove arch_string initializer.
20591 * win32-low.c (win32_arch_string): Remove.
20592 (win32_target_ops): Remove arch_string initializer.
20593 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20594 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20595 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20596
ee1a7ae4
UW
205972008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20598
20599 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20600 by collect_ptrace_register and supply_ptrace_register hooks.
20601 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20602 instead of checking for the_low_target.left_pad_xfer.
20603 (usr_store_inferior_registers): Use collect_ptrace_register callback
20604 instead of checking for the_low_target.left_pad_xfer.
20605
20606 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20607 (s390_supply_ptrace_register): Likewise.
20608 (s390_fill_gregset): Call s390_collect_ptrace_register.
20609 (the_low_target): Update.
20610
20611 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20612 (ppc_supply_ptrace_register): Likewise.
20613 (the_low_target): Update.
20614
20615 * linux-i386-low.c (the_low_target): Update.
20616 * linux-x86-64-low.c (the_low_target): Update.
20617
d61ddec4
UW
206182008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20619
20620 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20621 reg-s390.o and reg-s390x.o.
20622
20623 * linux-low.c (new_inferior): New global variable.
20624 (linux_create_inferior, linux_attach): Set it.
20625 (linux_wait_for_process): Call the_low_target.arch_setup after the
20626 target has stopped for the first time.
20627 (initialize_low): Do not call the_low_target.arch_setup.
20628
20629 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20630 (s390_set_pc): Likewise.
20631 (s390_arch_setup): New function.
20632 (the_low_target): Use s390_arch_setup as arch_setup routine.
20633
20634 * regcache.c (realloc_register_cache): New function.
20635 (set_register_cache): Call it for each existing regcache.
20636
d05b4ac3
UW
206372008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20638
20639 * server.h (init_registers): Remove prototype.
20640
20641 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20642 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20643 instead of init_registers ().
20644 * linux-arm-low.c (init_registers_arm): Add prototype.
20645 (init_registers_arm_with_iwmmxt): Likewise.
20646 (the_low_target): Add initializer for arch_setup field.
20647 * linux-cris-low.c (init_registers_cris): Add prototype.
20648 (the_low_target): Add initializer for arch_setup field.
20649 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20650 (the_low_target): Add initializer for arch_setup field.
20651 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20652 (the_low_target): Add initializer for arch_setup field.
20653 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20654 (the_low_target): Add initializer for arch_setup field.
20655 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20656 (the_low_target): Add initializer for arch_setup field.
20657 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20658 (the_low_target): Add initializer for arch_setup field.
20659 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20660 (init_registers_mips64_linux): Likewise.
20661 (the_low_target): Add initializer for arch_setup field.
20662 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20663 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20664 (the_low_target): Add initializer for arch_setup field.
20665 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20666 (init_registers_powerpc_64): Likewise.
20667 (the_low_target): Add initializer for arch_setup field.
20668 * linux-s390-low.c (init_registers_s390): Add prototype.
20669 (init_registers_s390x): Likewise.
20670 (the_low_target): Add initializer for arch_setup field.
20671 * linux-sh-low.c (init_registers_sh): Add prototype.
20672 (the_low_target): Add initializer for arch_setup field.
20673 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20674 (the_low_target): Add initializer for arch_setup field.
20675 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20676 (the_low_target): Add initializer for arch_setup field.
20677
20678 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20679 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20680 instead of init_registers ().
20681 * win32-arm-low.c (init_registers_arm): Add prototype.
20682 (the_low_target): Add initializer for arch_setup field.
20683 * win32-i386-low.c (init_registers_i386): Add prototype.
20684 (the_low_target): Add initializer for arch_setup field.
20685
20686 * spu-low.c (init_registers_spu): Add prototype.
20687 (initialize_low): Call initialie_registers_spu () instead of
20688 initialize_registers ().
20689
fd96d250
PA
206902008-02-19 Pedro Alves <pedro@codesourcery.com>
20691
20692 * server.c (handle_v_requests): When handling the vRun and vAttach
20693 packets, if already debugging a process, don't kill it. Return an
20694 error instead.
20695
d41b6bb4
DJ
206962008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20697
20698 * server.c (handle_query): Correct length check.
20699
5ac588cf
PA
207002008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20701
20702 * win32-low.c (do_initial_child_stuff): Add process handle
20703 parameter. Set current_process_handle and current_process_id from the
20704 parameters. Clear globals.
20705 (win32_create_inferior): Don't set current_process_handle and
20706 current_process_id here. Instead pass them on the call to
20707 do_initial_child_stuff.
20708 (win32_attach): Likewise.
20709 (win32_clear_inferiors): New.
20710 (win32_kill): Don't close the current process handle or the
20711 current thread handle here. Instead call win32_clear_inferiors.
20712 (win32_detach): Don't open a new handle to the process. Call
20713 win32_clear_inferiors.
20714 (win32_join): Don't rely on current_process_handle; open a new
20715 handle using the process id.
20716 (win32_wait): Call win32_clear_inferiors when the inferior process
20717 has exited.
20718
ecd7ecbc
DJ
207192008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20720
20721 * server.c (monitor_show_help): Add "exit".
20722
1525d545
MG
207232008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20724
ecd7ecbc 20725 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20726 (clean): Add reg-xtensa.c.
20727 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20728 * configure.srv (xtensa*-*-linux*) New target.
20729 * linux-xtensa-low.c: New.
20730 * xtensa-xtregs.c: New.
1525d545 20731
59a016f0
PA
207322008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20733
20734 * hostio.c: Don't include errno.h.
20735 (errno_to_fileio_errno): Move to hostio-errno.
20736 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20737 error number outputting to the target->hostio_last_error callback.
20738 (hostio_packet_error): Use FILEIO_EINVAL directly.
20739 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20740 calls to hostio_error.
20741 * hostio-errno.c: New.
20742 * server.h (hostio_last_error_from_errno): Declare.
20743 * target.h (target_ops): Add hostio_last_error member.
20744 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20745 as hostio_last_error handler.
889bf7c5 20746 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20747 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20748 (wince_hostio_last_error): New functions.
20749 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20750 as hostio_last_error handler.
20751 (win32_target_ops) [!_WIN32_WCE]: Register
20752 hostio_last_error_from_errno as hostio_last_error handler.
20753 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20754 (hostio-errno.o): New rule.
20755 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20756 * configure.srv (srv_hostio_err_objs): New variable. Default to
20757 hostio-errno.o.
20758 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20759 * configure: Regenerate.
20760
2d717e4f
DJ
207612008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20762
20763 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20764 (linux_kill, linux_detach): Clean up the process list.
20765 * remote-utils.c (remote_open): Improve port number parsing.
20766 (putpkt_binary, input_interrupt): Only send interrupts if the target
20767 is running.
20768 * server.c (extended_protocol): Make static.
20769 (attached): Define earlier.
20770 (exit_requested, response_needed, program_argv): New variables.
20771 (target_running): New.
20772 (start_inferior): Clear attached here.
20773 (attach_inferior): Set attached here.
20774 (require_running): Define.
20775 (handle_query): Use require_running and target_running. Implement
20776 "monitor exit".
20777 (handle_v_attach, handle_v_run): New.
20778 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20779 (gdbserver_usage): Update.
20780 (main): Redo argument parsing. Handle --debug and --multi. Handle
20781 --attach along with other options or after the port. Save
20782 program_argv. Support no initial program. Resynchronize
20783 communication with GDB after an error. Handle "monitor exit".
20784 Use require_running and target_running. Always allow the extended
20785 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20786 restart in extended mode.
20787 * README: Refer to the GDB manual. Update --attach usage.
20788
7407e2de
AS
207892007-12-20 Andreas Schwab <schwab@suse.de>
20790
20791 * linux-low.c (STACK_SIZE): Define.
20792 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20793 (linux_test_for_tracefork): Likewise.
20794
b65d95c5
DJ
207952007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20796
20797 * linux-low.c (linux_wait_for_event): Update messages. Do not
20798 reinsert auto-delete breakpoints.
20799 * mem-break.c (struct breakpoint): Change return type of handler to
20800 int.
20801 (set_breakpoint_at): Update handler type.
20802 (reinsert_breakpoint_handler): Return 1 instead of calling
20803 delete_breakpoint.
20804 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20805 setting a new one.
20806 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20807 * mem-break.h (set_breakpoint_at): Update handler type.
20808 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20809 * win32-low.c (auto_delete_breakpoint): New.
20810 (get_child_debug_event): Use it.
20811
4e799345
DJ
208122007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20813
20814 * configure.ac: Check for pread and pwrite.
20815 * hostio.c (handle_pread): Fall back to lseek and read.
20816 (handle_pwrite): Fall back to lseek and write.
20817 * config.in, configure: Regenerated.
20818
27524b67
DJ
208192007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20820
20821 * server.c (myresume): Add own_buf argument.
20822 (main): Update calls.
20823
a20d5e98
DJ
208242007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20825
20826 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20827 * remote-utils.c (remote_open): Do not call disable_async_io.
20828 (block_async_io): Delete.
20829 (unblock_async_io): Make static.
20830 (initialize_async_io): New.
20831 * server.c (handle_v_cont): Handle async I/O here.
20832 (myresume): Likewise. Move other common resume tasks here...
20833 (main): ... from here. Call initialize_async_io. Disable async
20834 I/O before the main loop.
20835 * server.h (initialize_async_io): Declare.
20836 (block_async_io, unblock_async_io): Delete prototypes.
20837 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20838
b79d787e
DJ
208392007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20840
20841 * remote-utils.c (readchar): Allow binary data in received messages.
20842
d97903b2
PA
208432007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20844
20845 * win32-low.c (attaching): New global.
20846 (win32_create_inferior): Clear the `attaching' global.
20847 (win32_attach): Set the `attaching' global.
20848 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20849 attaching. Only set a breakpoint at the entry point if not
20850 attaching.
20851
311de423
PA
208522007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20853
20854 * server.c (main): Don't report dll events on the initial
20855 connection on attaches.
20856
6c2d16d2
PA
208572007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20858
20859 * server.c (main): Relax numerical bases supported for the pid of
20860 the --attach command line argument.
20861
5ca906e6
PA
208622007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20863
20864 * win32-low.c (win32_attach): Call OpenProcess before
20865 DebugActiveProcess, not after. Add last error output to error
20866 call.
20867
9c6c8194
PA
208682007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20869
20870 * win32-low.c (win32_get_thread_context)
20871 (win32_set_thread_context): New functions.
20872 (thread_rec): Use win32_get_thread_context.
20873 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20874 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20875 field.
20876
4d5d1aaa
PA
208772007-12-03 Leo Zayas
20878 Pedro Alves <pedro_alves@portugalmail.pt>
20879
20880 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20881 global variables.
20882 (child_add_thread): Minor cleanup.
20883 (child_continue): Resume artificially suspended threads before
20884 calling ContinueDebugEvent.
20885 (suspend_one_thread): New.
20886 (fake_breakpoint_event): New.
20887 (get_child_debug_event): Change return type to int. Check here if
20888 gdb sent an interrupt request. If a soft interrupt was requested,
20889 fake a breakpoint event. Return 0 if there is no event to handle,
20890 and 1 otherwise.
20891 (win32_wait): Don't check here if gdb sent an interrupt request.
20892 Ensure there is a valid event to handle.
20893 (win32_request_interrupt): Add soft interruption method as last
20894 resort.
20895
c436e841
PA
208962007-12-03 Leo Zayas
20897 Pedro Alves <pedro_alves@portugalmail.pt>
20898
20899 * win32-low.h (win32_thread_info): Add descriptions to the
20900 structure members. Replace `suspend_count' counter by a
20901 `suspended' flag.
20902 * win32-low.c (thread_rec): Update condition of when to get the
20903 context from the inferior. Rely on ContextFlags being set if it
20904 has already been retrieved. Only suspend the inferior thread if
20905 we haven't already. Warn if that fails.
20906 (continue_one_thread): s/suspend_count/suspended/. Only call
20907 ResumeThread once. Warn if that fails.
20908
e7b5fa67
PA
209092007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20910
20911 * win32-low.c (win32_wait): Don't read from the inferior when it
20912 has already exited.
20913
a385171d
PA
209142007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20915
20916 * Makefile.in (win32_low_h): New variable.
20917 (win32-low.o): Add dependency on $(win32_low_h).
20918 (win32-arm-low.o, win32-i386-low.o): New rules.
20919
f80c84b3
DJ
209202007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20921
20922 * hostio.c: Correct copyright year.
20923
a6b151f1
DJ
209242007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20925
20926 * Makefile.in (OBS): Add hostio.o.
20927 (hostio.o): New rule.
20928 * server.h (handle_vFile): Declare.
20929 * hostio.c: New file.
20930 * server.c (handle_v_requests): Take packet_len and new_packet_len
20931 for binary packets. Call handle_vFile.
20932 (main): Update call to handle_v_requests.
20933
f9387fc3
DJ
209342007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20935
20936 * linux-low.c: Include <sched.h>.
20937
51c2684e
DJ
209382007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20939
20940 * linux-low.c (linux_tracefork_grandchild): New.
20941 (linux_tracefork_child): Use clone.
20942 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20943
75f83163
JB
209442007-10-31 Joel Brobecker <brobecker@adacore.com>
20945
20946 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20947
da5898ce
DJ
209482007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20949
20950 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20951
24a09b5f
DJ
209522007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20953
20954 * inferiors.c (change_inferior_id): Delete.
20955 (add_pid_to_list, pull_pid_from_list): New.
20956 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20957 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20958 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20959 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20960 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20961 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20962 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20963 (using_threads): Always set to 1.
20964 (handle_extended_wait): New.
20965 (add_process): Do not set TID.
20966 (linux_create_inferior): Set must_set_ptrace_flags.
20967 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20968 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20969 (linux_thread_alive): Rename TID argument to LWPID.
20970 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20971 (linux_wait_for_event): Do not use TID or check using_threads. Update
20972 call to dead_thread_notify. Call handle_extended_wait.
20973 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20974 (send_sigstop): Delete sigstop_sent.
20975 (wait_for_sigstop): Avoid TID.
20976 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20977 (linux_test_for_tracefork): New.
20978 (linux_lookup_signals): Use thread_db_active and
20979 linux_supports_tracefork_flag.
20980 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20981 * linux-low.h (get_process_thread): Avoid TID.
20982 (struct process_ifo): Move thread_known and tid to the end. Remove
20983 sigstop_sent.
20984 (linux_attach_lwp, thread_db_init): Update prototypes.
20985 * server.h (change_inferior_id): Delete prototype.
20986 (add_pid_to_list, pull_pid_from_list): New prototypes.
20987 * thread-db.c (thread_db_use_events): New.
20988 (find_first_thread): Rename to...
20989 (find_one_thread): ...this. Update callers and messages. Do not
20990 call fatal. Check thread_db_use_events. Do not call
20991 change_inferior_id or new_thread_notify.
20992 (maybe_attach_thread): Update. Do not call new_thread_notify.
20993 (thread_db_init): Set thread_db_use_events. Check use_events.
20994 * utils.c (fatal, warning): Correct message prefix.
20995
30ed0a8f
DJ
209962007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20997
20998 * Makefile.in (clean): Remove new files.
20999 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21000 (powerpc-64.o, powerpc-64.c): New rules.
21001 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21002 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21003 with SPE.
21004 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21005 SPE targets.
21006 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21007 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21008 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21009 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21010 (target_regsets): Add AltiVec and SPE register sets.
21011 * configure.ac: Check for AltiVec and SPE.
21012 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21013 (ppc_fill_vrregset, ppc_store_vrregset): New.
21014 (target_regsets): Add AltiVec register set.
21015 * configure: Regenerated.
21016
fd462a61
DJ
210172007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21018
21019 * linux-low.c (O_LARGEFILE): Define.
21020 (linux_read_memory): Use /proc/PID/mem.
21021 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21022 * configure, config.in: Regenerated.
21023
69f223ed
DJ
210242007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21025
21026 * linux-low.c (linux_wait_for_event): Do not pass signals while
21027 single-stepping.
21028
aec18585
PA
210292007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21030
21031 * win32-low.c (create_process): New.
21032 (win32_create_inferior): Use create_process instead of
21033 CreateProcess. If create_process failed retry appending an ".exe"
21034 suffix. Store the GetLastError result immediatelly after
21035 create_process calls and use it on the call to error.
21036
34d86ddd
PA
210372007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21038
21039 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21040
5a0e3bd0
JB
210412007-08-23 Joel Brobecker <brobecker@adacore.com>
21042
21043 * configure.ac: Switch license to GPLv3.
21044
f88c79e6
MS
210452007-08-01 Michael Snyder <msnyder@access-company.com>
21046
21047 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21048
6b3d9b83
PA
210492007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21050
21051 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21052 typedef.
21053 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21054 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21055 CloseToolhelp32Snapshot.
21056 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21057 CloseToolhelp32Snapshot.
21058
c588c53c
MS
210592007-07-27 Michael Snyder <michael.snyder@access-company.com>
21060
21061 * server.c (main): Check for inferior exit before main loop.
21062
aa0403d9
PA
210632007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21064
21065 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21066 instead of on tmp_desc.
21067
255e7678
DJ
210682007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21069 Daniel Jacobowitz <dan@codesourcery.com>
21070
21071 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21072 (add_thread): Minor cleanups.
21073 (clear_inferiors): Move lower in the file. Clear the DLL
21074 list.
21075 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21076 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21077 (xml_escape_text): New.
21078 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21079 for qSupported.
21080 (handle_v_cont): Report errors.
21081 (gdbserver_version): Update.
21082 (main): Correct size of own_buf. Do not report initial DLL events.
21083 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21084 (unloaded_dll, xml_escape_text): New.
21085 * win32-low.c (enum target_waitkind): Update comments.
21086 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21087 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21088 (win32_EnumProcessModules, win32_GetModuleInformation)
21089 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21090 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21091 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21092 (win32_Module32First, win32_Module32Next, load_toolhelp)
21093 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21094 (get_child_debug_event): Handle DLL events.
21095 (win32_wait): Likewise.
21096
0d37add9
DJ
210972007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21098
21099 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21100 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21101
45e2715e
PA
211022007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21103
21104 * win32-low.c (handle_output_debug_string): Ignore event if not
21105 waiting.
21106
c5674cf1
PA
211072007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21108
21109 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21110
2bbe3cc1
DJ
211112007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21112
21113 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21114
ae13219e
DJ
211152007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21116
21117 * inferiors.c (change_inferior_id): Add comment.
21118 * linux-low.c (check_removed_breakpoint): Add an early
21119 prototype. Improve debug output.
21120 (linux_attach): Doc update.
21121 (linux_detach_one_process, linux_detach): Clean up before releasing
21122 each process.
21123 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21124 * linux-low.h (struct process_info): Doc improvement.
21125 * mem-break.c (delete_all_breakpoints): New.
21126 * mem-break.h (delete_all_breakpoints): New prototype.
21127 * thread-db.c (find_first_thread): New.
21128 (thread_db_create_event): Call it instead of
21129 thread_db_find_new_threads. Clean up unused variables.
21130 (maybe_attach_thread): Remove first thread handling.
21131 (thread_db_find_new_threads): Use find_first_thread.
21132 (thread_db_get_tls_address): Likewise.
21133
4105de34
DJ
211342007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21135
21136 * thread-db.c (thread_db_find_new_threads): Add prototype.
21137 (thread_db_create_event): Check for the main thread before adding
21138 a new thread.
21139 (maybe_attach_thread): Only enable event reporting if TID == 0.
21140 (thread_db_get_tls_address): Check for new threads.
21141
2b876972
DJ
211422007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21143
21144 * linux-low.c (linux_create_inferior): Try execv before execvp.
21145 * spu-low.c (spu_create_inferior): Likewise.
21146
7a245884
DJ
211472007-06-13 Mike Frysinger <vapier@gentoo.org>
21148
21149 * linux-low.c (linux_create_inferior): Change execv to execvp.
21150 * spu-low.c (spu_create_inferior): Likewies.
21151
117ce543
DJ
211522007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21153
21154 * Makefile.in (clean): Clean new files instead of deleted ones.
21155 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21156 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21157 rules.
21158 * configure.srv: Specify XML files and new regformats for MIPS and
21159 MIPS64 GNU/Linux.
21160 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21161 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21162 an entry for the restart register.
21163 (mips_cannot_fetch_register, mips_cannot_store_register)
21164 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21165 register names to match the XML descriptions.
21166 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21167 restart register instead of $0.
21168
0e7f50da
UW
211692007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21170 Markus Deuling <deuling@de.ibm.com>
21171
21172 * remote-utils.c (decode_xfer_write): New function.
21173 * server.h (decode_xfer_write): Add prototype.
21174 * server.c (handle_query): Add PACKET_LEN argument. Support
21175 qXfer:spu:read and qXfer:spu:write packets.
21176 (main): Pass packet_len to handle_query.
21177 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21178 * target.h (target_ops): Add qxfer_spu.
21179
374c1d38
UW
211802007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21181
21182 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21183 accessing non-seekable spufs files.
21184
bb63802a
UW
211852007-05-16 Markus Deuling <deuling@de.ibm.com>
21186
889bf7c5 21187 * server.c (handle_query): Add reply for qC packet.
bb63802a 21188
7390519e
PA
211892007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21190 Leo Zayas <lerele@champenstudios@com>
21191
21192 * server.h (check_remote_input_interrupt_request): New function.
21193 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21194 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21195 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21196 (check_remote_input_interrupt_request): New function.
21197 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 21198 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
21199 winapi_GenerateConsoleCtrlEvent): New typedefs.
21200 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21201 to 250 ms.
21202 (win32_wait): Check for remote interrupt request
21203 with check_remote_input_interrupt_request.
21204 (win32_request_interrupt): New function.
21205 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21206
34b34921
PA
212072007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21208
21209 * win32-low.c (debug_registers_changed,
21210 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21211 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21212 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21213 (thread_rec): Get context using the low target.
21214 (child_add_thread): Call thread_added on the low target,
21215 which does the same thing.
21216 (regptr): Delete.
21217 (do_initial_child_stuff): Remove debug registers references.
21218 Set context using the low target. Resume threads after
21219 setting the contexts.
21220 (child_continue): Remove dead variable. Remove debug
21221 registers references.
21222 (child_fetch_inferior_registers): Go through the low target.
21223 (do_child_store_inferior_registers): Remove.
21224 (child_store_inferior_registers): Go through the low target.
21225 (win32_resume): Remove debug registers references.
21226 Set context using the low target.
21227 (handle_exception): Change return type to void. Don't record
21228 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21229 first chance exception.
889bf7c5 21230 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21231 goto loop. Always return after waiting for debug event.
21232 (win32_wait): Convert to switch statement. Handle spurious
21233 events.
21234
21235 * win32-i386-low.c (debug_registers_changed,
21236 debug_registers_used): New.
21237 (initial_stuff): Rename to ...
21238 (i386_initial_stuff): ... this. Clear debug registers
21239 state variables.
21240 (store_debug_registers): Delete.
21241 (i386_get_thread_context): New.
21242 (load_debug_registers): Delete.
21243 (i386_set_thread_context): New.
21244 (i386_thread_added): New.
21245 (single_step): Rename to ...
21246 (i386_single_step): ... this.
21247 (do_fetch_inferior_registers): Rename to ...
21248 (i386_fetch_inferior_register): ... this.
21249 (i386_store_inferior_register): New.
21250 (the_low_target): Adapt to new interface.
21251
21252 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21253 (arm_get_thread_context): New.
21254 (arm_set_thread_context): New.
21255 (regptr): New.
21256 (do_fetch_inferior_registers): Rename to ...
21257 (arm_fetch_inferior_register): ... this.
21258 (arm_store_inferior_register): New.
21259 (arm_wince_breakpoint): Reimplement as unsigned long.
21260 (arm_wince_breakpoint_len): Define.
21261 (the_low_target): Adapt to new interface.
21262
21263 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21264 load_debug_registers. Add get_thread_context, set_thread_context,
21265 thread_added and store_inferior_register. Rename
21266 fetch_inferior_registers to fetch_inferior_register.
21267 (regptr): Remove declaration.
21268
dd6953e1
PA
212692007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21270
21271 * linux-low.c (linux_detach): Change return type to int. Return 0.
21272 * spu-low.c (spu_detach): Likewise.
21273
444d6139
PA
212742007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21275
21276 * target.h (target_ops): Change return type of detach to int.
21277 Add join.
21278 (join_inferior): New.
21279 * server.c (main): Don't skip detach support on mingw32.
21280 If the inferior doesn't support detaching return error.
21281 Call join_inferior instead of using waitpid.
21282 * linux-low.c (linux_join): New.
21283 (linux_target_op): Add linux_join.
21284 * spu-low.c (spu_join): New.
21285 (spu_target_ops): Add spu_join.
21286 * win32-low.c (win32_detach): Adapt to new interface.
21287 Reopen current_process_handle before detaching. Issue a child
21288 resume before detaching.
21289 (win32_join): New.
21290 (win32_target_op): Add win32_join.
21291
1d5315fe
PA
212922007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21293
21294 * win32-low.c (win32-attach): Fix return value.
21295 * target.h (target_ops): Describe ATTACH return values.
21296
bf914831
PA
212972007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21298
21299 * win32-low.c (GETPROCADDRESS): Define.
21300 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21301 (winapi_DebugSetProcessKillOnExit): Likewise.
21302 (win32_create_inferior): Force usage of ansi CreateProcessA.
21303 (win32_attach): Use GETPROCADDRESS.
21304 (win32_detach): Likewise.
21305
f72f3e60
PA
213062007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21307
21308 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21309
ed50f18f
PA
213102007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21311
21312 * win32-low.c: Commit leftover changes from 2007-03-29.
21313
0c2ead7e
DJ
213142007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21315
21316 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21317 fields short instead of int. Add explicit padding.
21318 (i387_cache_to_fsave): Remove unnecessary casts.
21319 (i387_fsave_to_cache): Doc fix.
21320 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21321
73725ff3
DJ
213222007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21323
21324 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21325 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21326
d99f33d8
PA
213272007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21328
21329 * configure.srv (arm*-*-mingw32ce*): Move near the other
21330 arm targets.
21331
68070c10
PA
213322007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21333
2482afc6 21334 * configure.ac: Add errno checking.
68070c10
PA
21335 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21336 sys/file.h and malloc.h.
21337 (AC_CHECK_DECLS): Add perror.
21338 (srv_mingwce): Handle.
2482afc6 21339 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21340 win32-i386-low.o to srv_tgtobj.
21341 (i[34567]86-*-mingw*): Likewise.
21342 (arm*-*-mingw32ce*): Add case.
21343 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21344 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21345 [__MINGW32CE__] (strerror): New function.
21346 [__MINGW32CE__] (errno): Define to GetLastError.
21347 [__MINGW32CE__] (COUNTOF): New macro.
21348 (remote_open): Remove extra close call.
21349 * mem-break.c (delete_breakpoint_at): New function.
21350 * mem-break.h (delete_breakpoint_at): Declare.
21351 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21352 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21353 [USE_WIN32API] (read, write): Add char* casts.
21354 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21355 * server.h: Include wincecompat.h on Windows CE.
21356 [HAVE_ERRNO_H]: Check.
21357 (perror): Declare if not declared.
21358 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21359 (perror_with_name): Remove errno declaration.
21360 * wincecompat.h: New.
21361 * wincecompat.c: New.
21362 * win32-low.h: New.
21363 * win32-arm-low.c: New.
21364 * win32-i386-low.c: New.
21365 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21366 (OUTMSG2): Make it safe.
21367 (_T): New macro.
21368 (COUNTOF): New macro.
21369 (NUM_REGS): Get it from the low target.
21370 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21371 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21372 (thread_rec): Let low target handle debug registers.
21373 (child_add_thread): Likewise.
21374 (child_init_thread_list): Likewise.
21375 (continue_one_thread): Likewise.
21376 (regptr): New.
21377 (do_child_fetch_inferior_registers): Move to ...
21378 * win32-i386-low.c: ... here, and rename to ...
21379 (do_fetch_inferior_registers): ... this.
889bf7c5 21380 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21381 Go through the low target.
21382 (do_child_store_inferior_registers): Use regptr.
21383 (strwinerror): New function.
21384 (win32_create_inferior): Handle Windows CE.
21385 Use strwinerror instead of strerror on Windows error
21386 codes. Add program to the error output.
21387 Don't close the main thread handle on Windows CE.
21388 (win32_attach): Use coredll.dll on Windows CE.
21389 (win32_kill): Close current process and current
21390 thread handles.
21391 (win32_detach): Use coredll.dll on Windows CE.
21392 (win32_resume): Let low target handle debug registers, and
21393 step request.
21394 (handle_exception): Add/Remove initial breakpoint. Avoid
21395 non-existant WSTOPSIG on Windows CE.
21396 (win32_read_inferior_memory): Cast to remove warning.
21397 (win32_arch_string): Go through the low target.
21398 (initialize_low): Call set_breakpoint_data with the low
21399 target's breakpoint.
21400 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21401 FOP_REGNUM, mappings): Move to ...
21402 * win32-i386-low.c: ... here.
21403 * win32-low.c (win32_thread_info): Move to ...
21404 * win32-low.h: ... here.
21405 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21406 win32-arm-low.c and wincecompat.c.
21407 (all:): Add $EXEEXT.
21408 (install-only:): Likewise.
21409 (gdbserver:): Likewise.
21410 (gdbreplay:): Likewise.
21411 * config.in: Regenerate.
21412 * configure: Regenerate.
21413
41093d81
PA
214142007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21415
21416 * win32-low.c: Rename typedef thread_info to
21417 win32_thread_info throughout.
21418
544afa54
PA
214192007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21420
21421 * win32-i386-low.c: Rename to ...
21422 * win32-low.c: ... this.
21423 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21424 * Makefile.in: Likewise.
21425
bce7165d
PA
214262007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21427
21428 * remote-utils.c (monitor_output): Constify msg parameter.
21429 * server.h (monitor_output): Likewise.
21430 * win32-i386-low.c (handle_output_debug_string): New.
21431 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21432 handle_output_debug_string.
21433 (get_child_debug_event): Likewise.
21434
506c7aa0
DJ
214352007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21436
21437 * server.c (main): Correct strtoul check.
21438
42c81e2a
DJ
214392007-03-27 Jon Ringle <jon@ringle.org>
21440
21441 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21442
9453113a
DJ
214432007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21444
21445 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21446
64a69107
DJ
214472007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21448
21449 * terminal.h: Check HAVE_SGTTY_H.
21450
214512007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21452
21453 * remote-utils.c (remote_open): Print out the assigned port number.
21454
c74d0ad8
DJ
214552007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21456
21457 * remote-utils.c (monitor_output): New function.
21458 * server.c (debug_threads): Define here.
21459 (monitor_show_help): New function.
21460 (handle_query): Handle qRcmd.
21461 (main): Do not handle 'd' packet.
21462 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21463 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21464 of debug_threads.
21465
de7c3b4a
PA
214662007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21467
21468 * Makefile.in (EXEEXT): New.
21469 (clean): Use $(EXEEXT).
21470
ef57601b
PA
214712007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21472
21473 * target.h (target_ops): Rename send_signal to request_interrupt,
21474 and remove enum target_signal parameter.
21475 * linux-low.c (linux_request_interrupt): Rename from
21476 linux_send_signal, and always send SIGINT.
21477 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21478 and always send SIGINT.
21479 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21480 of send_signal.
21481 (input_interrupt): Likewise.
21482
820f2bda
PA
214832007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21484
21485 * server.c (get_features_xml): Check if target implemented
21486 arch_string.
21487 * win32-i386-low.c (win32_arch_string): New.
21488 (win32_target_ops): Add win32_arch_string as arch_string member.
21489
ab39bf24
UW
214902007-02-22 Markus Deuling <deuling@de.ibm.com>
21491
21492 * spu-low.c (spu_arch_string): New.
21493 (spu_target_ops): Add spu_arch_string.
21494
61ff6e04
DJ
214952007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21496
21497 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21498 * configure.ac: Do not check for terminal.h.
21499 * configure, config.in: Regenerated.
21500
fb1e4ffc
DJ
215012007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21502
21503 * Makefile.in (OBS): Add $(XML_BUILTIN).
21504 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21505 (clean): Update.
21506 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21507 (arm-with-iwmmxt.c): New.
21508 * config.in, configure: Regenerate.
21509 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21510 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21511 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21512 (arm*-*-linux*): Add iWMMXt and regset support.
21513 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21514 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21515 (arm_store_wmmxregset, target_regsets): New.
21516 * server.c (get_features_xml): Take annex argument. Check builtin
21517 XML documents.
21518 (handle_query): Handle multiple annexes.
21519
0f48aa01
DJ
215202007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21521
21522 * remote-utils.c [USE_WIN32API] (read, write): Define.
21523 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21524 write.
21525
23181151
DJ
215262007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21527
21528 * linux-i386-low.c (the_low_target): Set arch_string.
21529 * linux-x86-64-low.c (the_low_target): Likewise.
21530 * linux-low.c (linux_arch_string): New.
21531 (linux_target_ops): Add it.
21532 * linux-low.h (struct linux_target_ops): Add arch_string.
21533 * server.c (write_qxfer_response): Use const void * for DATA.
21534 (get_features_xml): New.
21535 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21536 * target.h (struct target_ops): Add arch_string method.
21537
9d606399
DJ
215382007-01-03 Denis Pilat <denis.pilat@st.com>
21539 Daniel Jacobowitz <dan@codesourcery.com>
21540
21541 * linux-low.c (linux_kill): Handle being called with no threads.
21542 * win32-i386-low.c (win32_kill): Likewise.
21543 (get_child_debug_event): Clear current_process_handle.
21544
215452006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21546 Daniel Jacobowitz <dan@codesourcery.com>
21547
21548 * remote-utils.c (remote_open): Check the type of specified
21549 serial port devices before opening them.
21550 * server.c (main): Kill the inferior if an error occurs during
21551 the first remote_open.
21552
a5e13d24
DJ
215532006-12-05 Markus Deuling <deuling@de.ibm.com>
21554
21555 * README: Update supported targets.
21556
186947f7
DJ
215572006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21558
21559 * Makefile.in (clean): Remove reg-mips64.c.
21560 (reg-mips64.c, reg-mips64.o): New rules.
21561 * configure.srv: Handle mips64. Include regset support for mips.
21562 * linux-mips-low.c (union mips_register): New.
21563 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21564 (mips_breakpoint, mips_breakpoint_at): Use int.
21565 (mips_collect_register, mips_supply_register)
21566 (mips_collect_register_32bit, mips_supply_register_32bit)
21567 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21568 (mips_store_fpregset, target_regsets): New.
21569 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21570
a13e2c95
UW
215712006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21572
21573 * configure.srv: Add target "spu*-*-*".
21574 * Makefile.in (clean): Remove reg-spu.c.
21575 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21576 * spu-low.c: New file.
21577
cb7283db
DJ
215782006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21579
21580 * configure.ac: Correct td_thr_tls_get_addr test.
21581 * configure: Regenerated.
21582
89be2091
DJ
215832006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21584
21585 * linux-low.c (linux_wait_for_event): Reformat. Use the
21586 pass_signals array.
21587 * remote-utils.c (decode_address_to_semicolon): New.
21588 * server.c (pass_signals, handle_general_set): New.
21589 (handle_query): Mention QPassSignals for qSupported.
21590 (main): Call handle_general_set.
21591 * server.h (pass_signals, decode_address_to_semicolon): New.
21592
000ef4f0
DJ
215932006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21594
21595 * server.c (handle_query): Correct error handling for read_auxv.
21596
b7149293
UW
215972005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21598
21599 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21600 and srv_linux_thread_db to yes.
21601 * linux-s390-low.c (s390_fill_gregset): New function.
21602 (target_regsets): Define data structure.
21603
dae5f5cf
DJ
216042006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21605
21606 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21607 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21608 * config.in, configure: Regenerated.
21609 * inferiors.c (gdb_id_to_thread): New function.
21610 (gdb_id_to_thread_id): Use it.
21611 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21612 * linux-low.h (struct process_info): Add th member.
21613 (thread_db_get_tls_address): New prototype.
21614 * remote-utils.c (decode_address): Make non-static.
21615 * server.c (handle_query): Handle qGetTLSAddr.
21616 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21617 * target.h (struct target_ops): Add get_tls_address.
21618 * thread-db.c (maybe_attach_thread): Save the thread handle.
21619 (thread_db_get_tls_address): New.
21620
32ca6d61
DJ
216212006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21622
21623 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21624 (linux_resume_one_process): Take a siginfo_t *. Update all
21625 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21626 (struct pending_signals): Add a siginfo_t.
21627 (linux_wait_for_process): Always set last_status.
21628 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21629 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21630 * linux-low.h (struct process_info): Add last_status.
21631
5ffff7c1
DJ
216322006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21633
21634 * remote-utils.c (try_rle): New function.
21635 (putpkt_binary): Use it.
21636
8695c747
DJ
216372006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21638
21639 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21640 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21641 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21642 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21643 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21644 point registers.
21645
290fadea
RS
216462006-08-08 Richard Sandiford <richard@codesourcery.com>
21647
21648 * server.c (terminal_fd): New variable.
21649 (old_foreground_pgrp): Likewise.
21650 (restore_old_foreground_pgrp): New function.
21651 (start_inferior): Record the terminal file descriptor in terminal_fd
21652 and its original foreground group in old_foreground_pgrp. Register
21653 restore_old_foreground_pgrp with atexit().
21654
9f2e1e63
DJ
216552006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21656
21657 * server.c (handle_query): Correct qPart to qXfer.
21658
b80864fb
DJ
216592006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21660
21661 * configure.ac: Check for more headers which are missing on
21662 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21663 * configure.srv: Add Cygwin and mingw32.
21664 * remote-utils.c: Don't include headers unconditionally which
21665 are missing on mingw32. Include <winsock.h> for mingw32.
21666 (remote_open): Adjust for mingw32 support. Flush
21667 standard error after writing to it.
21668 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21669 (unblock_async_io, enable_async_io, disable_async_io)
21670 (readchar, getpkt): Update for Winsock support.
21671 (prepare_resume_reply): Expect a protocol signal number.
21672 * server.c: Disable <sys/wait.h> on mingw32.
21673 (start_inferior): Adjust for mingw32 support. Flush
21674 standard error after writing to it.
21675 (attach_inferior): Likewise. Use protocol signal
21676 numbers.
21677 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21678 and names.
21679 * win32-i386-low.c: New file.
21680 * Makefile.in (XM_CLIBS): Set.
21681 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21682 (win32-i386-low.o): New dependency rule.
21683 * linux-low.c (linux_wait): Use target signal numbers.
21684 * target.h (struct target_ops): Doc fix.
21685 * server.h (target_signal_to_name): New prototype.
21686 * gdbreplay.c: Don't include headers unconditionally which
21687 are missing on mingw32. Include <winsock.h> for mingw32.
21688 (remote_close, remote_open): Adjust for Winsock support.
21689 * configure, config.in: Regenerated.
21690
0876f84a
DJ
216912006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21692
21693 * server.c (decode_xfer_read, write_qxfer_response): New.
21694 (handle_query): Take a packet length argument. Handle
21695 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21696 the qSupported response.
21697 (main): Update call to handle_query.
21698
01f9e8fa
DJ
216992006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21700
21701 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21702 (putpkt_binary): Renamed from putpkt and adjusted for binary
21703 data.
21704 (putpkt): New wrapper for putpkt_binary.
21705 (readchar): Don't mask off the high bit.
21706 (decode_X_packet): New function.
21707 * server.c (main): Call putpkt_binary if a handler sets the packet
21708 length. Save the length of the incoming packet. Handle 'X'.
21709 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21710
be2a5f71
DJ
217112006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21712
21713 * server.c (handle_query): Handle qSupported.
21714
ea025f5f
DJ
217152006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21716
21717 * remote-utils.c (all_symbols_looked_up): New variable.
21718 (look_up_one_symbol): Check it.
21719 * server.h (look_up_one_symbol): New declaration.
21720 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21721
9308fc88
DJ
217222006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21723
21724 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21725 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21726 (PTRACE_GET_THREAD_AREA): Define.
21727 (ps_get_thread_area): New function.
21728
52fb6437
NS
217292006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21730
21731 * configure.srv (m68k*-*-uclinux*): New target.
21732 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21733 (linux_resume_one_process): Remove extraneous cast.
21734 (linux_read_offsets): New.
21735 (linux_target_op): Add linux_read_offsets on mmuless systems.
21736 * server.c (handle_query): Add qOffsets logic.
21737 * target.h (struct target_ops): Add read_offsets.
21738
21b0f40c
DJ
217392006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21740
21741 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21742 (PTRACE_GET_THREAD_AREA): Define.
21743 (ps_get_thread_area): New function.
21744 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21745 (linux-x86-64-low.o): Update.
21746
0050a760
DJ
217472006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21748
21749 * configure.ac: Remove checks for prfpregset_t.
21750 * gdb_proc_service.h: New file.
21751 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21752 new "gdb_proc_service.h".
21753 * proc-service.c: Likewise.
21754 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21755 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21756 * Makefile.in (gdb_proc_service_h): Updated.
21757 * configure, config.in: Regenerated.
21758
b92a518e
DJ
217592006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21760
21761 * remote-utils.c (prepare_resume_reply): Move declaration
21762 of gdb_id_from_wait to the top of the block.
21763
545587ee
DJ
217642006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21765
21766 * linux-low.c (regsets_store_inferior_registers): Read the regset
21767 from the target before filling it.
21768
9db87ebd
DJ
217692006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21770
21771 * server.c (attach_inferior): Return SIGTRAP for a successful
21772 attach.
21773
dd24457d
DJ
217742006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21775
21776 * Makefile.in (OBS): Add version.o.
21777 (STAGESTUFF): Delete.
21778 (version.o): Add dependencies.
21779 (version.c): Replace rule.
21780 (clean): Remove version.c.
21781 * server.c (gdbserver_version): New.
21782 (gdbserver_usage): Use printf.
21783 (main): Handle --version and --help.
21784 * server.h (version, host_name): Add declarations.
21785
6f0f660e
EZ
217862005-12-23 Eli Zaretskii <eliz@gnu.org>
21787
889bf7c5
PA
21788 * linux-arm-low.c:
21789 * linux-arm-low.c:
21790 * inferiors.c:
21791 * i387-fp.h:
21792 * i387-fp.c:
21793 * gdbreplay.c:
21794 * regcache.c:
21795 * proc-service.c:
21796 * mem-break.h:
21797 * mem-break.c:
21798 * linux-x86-64-low.c:
21799 * linux-sh-low.c:
21800 * linux-s390-low.c:
21801 * linux-ppc64-low.c:
21802 * linux-ppc-low.c:
21803 * linux-mips-low.c:
21804 * linux-m68k-low.c:
21805 * linux-m32r-low.c:
21806 * linux-low.h:
21807 * linux-low.c:
21808 * linux-ia64-low.c:
21809 * linux-i386-low.c:
21810 * linux-crisv32-low.c:
21811 * thread-db.c:
21812 * terminal.h:
21813 * target.h:
21814 * target.c:
21815 * server.h:
21816 * server.c:
21817 * remote-utils.c:
21818 * regcache.h:
21819 * utils.c:
21820 * Makefile.in:
21821 * configure.ac:
6f0f660e
EZ
21822 * gdbserver.1: Add (C) after Copyright. Update the FSF
21823 address.
21824
9d1fb177
DJ
218252005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21826
21827 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21828 (arm_breakpoint_at): Recognize both breakpoints.
21829 (the_low_target): Use the correct breakpoint instruction.
21830
011a70c2
DJ
218312005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21832
21833 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21834 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21835 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21836 (the_low_target): Update.
21837
7fb85e41
AS
218382005-10-25 Andreas Schwab <schwab@suse.de>
21839
21840 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21841
21842 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21843 (ia64_num_regs): Reduce to 462.
21844
3db0444b
DJ
218452005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21846
21847 * acinclude.m4: Correct quoting.
21848 * aclocal.m4: Regenerated.
21849
21850 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21851 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21852 (thread_db_init): Call thread_db_err_str.
21853 * configure.ac: Check for TD_VERSION.
21854 * config.in, configure: Regenerated.
21855
bee0189a
DJ
218562005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21857
21858 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21859
e9d25b98
DJ
218602005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21861
21862 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21863 is not available. Define HAVE_PTRACE_GETREGS if it is.
21864 * config.in, configure: Regenerated.
21865 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21866 * linux-i386-low.c, linux-m68k-low.c: Update to use
21867 HAVE_PTRACE_GETREGS.
21868 * linux-low.c (regsets_fetch_inferior_registers)
21869 (regsets_store_inferior_registers): Only return 0 if we processed
21870 GENERAL_REGS.
21871 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21872 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21873
a06660f7
DJ
218742005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21875
21876 * inferiors.c (struct thread_info): Add gdb_id.
21877 (add_thread): Add gdb_id argument.
21878 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21879 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21880 calls to add_thread.
21881 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21882 * server.c (handle_query): Use thread_to_gdb_id.
21883 (handle_v_cont, main): Use gdb_id_to_thread_id.
21884 * server.h (add_thread): Update prototype.
21885 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21886 prototypes.
21887
5a1f5858
DJ
218882005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21889
21890 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21891 left-padded registers.
21892 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21893 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21894
e122f1f5
SE
218952005-07-01 Steve Ellcey <sje@cup.hp.com>
21896
21897 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21898 * configure: Regenerate.
21899 * config.in: Regenerate.
21900 * server.h (NEED_DECLARATION_STRERROR):
21901 Replace with !HAVE_DECL_STRERROR.
21902
d592fa2f
DJ
219032005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21904
21905 * linux-low.c (linux_wait, linux_send_signal): Don't test
21906 an unsigned long variable for > 0 if it could be MAX_ULONG.
21907 * server.c (myresume): Likewise.
21908 * target.c (set_desired_inferior): Likewise.
21909
ccbd4912
MK
219102005-06-13 Mark Kettenis <kettenis@gnu.org>
21911
21912 * configure.ac: Simplify and improve check for socklen_t.
21913 * configure, config.in: Regenerate.
21914
f450004a
DJ
219152005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21916
21917 * acconfig.h: Remove.
21918 * configure.ac: Add a test for socklen_t. Use three-argument
21919 AC_DEFINE throughout.
21920 * config.in: Regenerated using autoheader 2.59.
21921 * configure: Regenerated.
21922
21923 * gdbreplay.c (socklen_t): Provide a default.
21924 (remote_open): Use socklen_t.
21925 * remote-utils.c (socklen_t): Provide a default.
21926 (remote_open): Use socklen_t.
21927 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21928 unsigned char.
21929
21930 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21931 char for buffers.
21932 * linux-low.c (linux_read_memory, linux_write_memory)
21933 (linux_read_auxv): Likewise.
21934 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21935 (check_mem_write): Likewise.
21936 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21937 Likewise.
21938 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21939 (registers_from_string, register_data): Likewise.
21940 * server.c (handle_query, main): Likewise.
21941 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21942 (decode_M_packet): Likewise.
21943 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21944 * target.h (struct target_ops): Update read_memory, write_memory,
21945 and read_auxv.
21946 (read_inferior_memory, write_inferior_memory): Update.
21947 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21948 to unsigned char *.
21949 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21950 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21951 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21952 linux-s390-low.c, linux-sh-low.c: Update for changes in
21953 read_inferior_memory and the_low_target->breakpoint.
21954
eee84df1
DJ
219552005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21956
21957 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21958 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21959 * configure.srv: Add powerpc64-*-linux*.
21960 * linux-ppc64-low.c: New file.
21961
45b134e5
OF
219622005-05-23 Orjan Friberg <orjanf@axis.com>
21963
21964 * linux-cris-low.c: New file with support for CRIS.
21965 * linux-crisv32-low.c: Ditto for CRISv32.
21966 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21967 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21968 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21969 reg-crisv32.o, and reg-crisv32.c to make rules.
21970 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21971 recognized targets.
21972
48d93c75
UW
219732005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21974
21975 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21976 of sizeof (PTRACE_XFER_TYPE).
21977 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21978
e013ee27
OF
219792005-05-12 Orjan Friberg <orjanf@axis.com>
21980
889bf7c5 21981 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21982 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21983 pointers for hardware watchpoint support.
21984 * linux-low.h (struct linux_target_ops): Ditto.
21985 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21986 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21987 to linux_target_ops.
21988 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21989 reply packet.
21990 * server.c (main): Recognize 'Z' and 'z' packets.
21991
b0ded00b
UW
219922005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21993
21994 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21995 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21996 (the_low_target): Add new members.
21997
8643e2ad
DJ
219982005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21999
22000 * proc-service.c (ps_lgetregs): Search all_processes instead of
22001 all_threads.
22002
fc620387
DJ
220032005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22004
22005 * server.c (start_inferior): Change return type to int.
22006 (attach_inferior): Change sigptr to int *.
22007 (handle_v_cont, handle_v_requests): Change signal to int *.
22008 (main): Change signal to int.
22009
220102005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
22011
22012 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22013 * configure.srv: Add m32r*-*-linux*.
22014 * linux-m32r-low.c: New file.
22015
e0e76420
DJ
220162005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22017
22018 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22019
a1928bad
DJ
220202005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22021
22022 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22023 Take unsigned long arguments for PIDs.
22024 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22025 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22026 (wait_for_sigstop, linux_resume_one_process)
22027 (regsets_fetch_inferior_registers, linux_send_signal)
22028 (linux_read_auxv): Likewise. Update the types of variables holding
22029 PIDs. Update format string specifiers.
22030 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22031 * remote-utils.c (prepare_resume_reply): Likewise.
22032 * server.c (cont_thread, general_thread, step_thread)
22033 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22034 unsigned long.
22035 (handle_query): Update format specifiers.
22036 (handle_v_cont, main): Use strtoul for thread IDs.
22037 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22038 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22039 (general_thread, step_thread, thread_from_wait)
22040 (old_thread_from_wait): Update.
22041 * target.h (struct thread_resume): Use unsigned long for THREAD.
22042 (struct target_ops): Use unsigned long for arguments to attach and
22043 thread_alive.
22044
dcdb98d2
DJ
220452005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22046
22047 * acinclude.m4: Include bfd/bfd.m4 directly.
22048 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22049 <agriffis@toolchain.org>.
22050 * aclocal.m4, configure: Regenerated.
22051
bec39cab
AC
220522005-01-07 Andrew Cagney <cagney@gnu.org>
22053
22054 * configure.ac: Rename configure.in, require autoconf 2.59.
22055 * configure: Re-generate.
22056
434c4c77
DJ
220572004-12-08 Daniel Jacobowitz <dan@debian.org>
22058
22059 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22060 LIBS when finished.
22061 * aclocal.m4: Regenerated.
22062 * configure: Regenerated.
22063
db1d3e1b
AS
220642004-11-21 Andreas Schwab <schwab@suse.de>
22065
22066 * linux-m68k-low.c (m68k_num_gregs): Define.
22067 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22068 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22069 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22070 (m68k_breakpoint_at): New. Add to the_low_target.
22071
22072 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22073 srv_linux_thread_db to yes.
22074
43360365
JB
220752004-10-20 Joel Brobecker <brobecker@gnat.com>
22076
22077 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22078 (ARCH_SET_FS): Likewise.
22079 (ARCH_GET_FS): Likewise.
22080 (ARCH_GET_GS): Likewise.
22081
fd500816
DJ
220822004-10-16 Daniel Jacobowitz <dan@debian.org>
22083
22084 * linux-i386-low.c (ps_get_thread_area): New.
22085 * linux-x86-64-low.c (ps_get_thread_area): New.
22086 * linux-low.c: Include <sys/syscall.h>.
22087 (linux_kill_one_process): Don't kill the first thread here.
22088 (linux_kill): Kill the first thread here.
22089 (kill_lwp): New function.
22090 (send_sigstop, linux_send_signal): Use it.
22091 * proc-service.c: Clean up #ifdefs.
22092 (fpregset_info): Delete.
22093 (ps_lgetregs): Update and enable implementation.
22094 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22095 implementations.
22096 * remote-utils.c (struct sym_cache, symbol_cache): New.
22097 (input_interrupt): Print a clearer message.
22098 (async_io_enabled): New variable.
22099 (enable_async_io, disable_async_io): Use it. Update comments.
22100 (look_up_one_symbol): Use the symbol cache.
22101 * thread-db.c (thread_db_look_up_symbols): New function.
22102 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22103
f6de3c42
DJ
221042004-10-16 Daniel Jacobowitz <dan@debian.org>
22105
22106 * configure.in: Test for -rdynamic.
22107 * configure: Regenerated.
22108 * Makefile (INTERNAL_LDFLAGS): New.
22109 (gdbserver, gdbreplay): Use it.
22110
2c0fc042
AC
221112004-09-02 Andrew Cagney <cagney@gnu.org>
22112
22113 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22114
075b3282
DJ
221152004-03-23 Daniel Jacobowitz <drow@mvista.com>
22116
22117 * linux-low.c (linux_wait): Clear all_processes list also.
22118
fa6a77dc
DJ
221192004-03-12 Daniel Jacobowitz <drow@mvista.com>
22120
22121 * linux-low.c: Include <errno.h>. Remove extern declaration of
22122 errno.
22123
6d782a97
DJ
221242004-03-12 Daniel Jacobowitz <drow@mvista.com>
22125
22126 * gdbreplay.c, server.h, utils.c: Update copyright years.
22127
3a7fb99b
DJ
221282004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22129
22130 * server.c (main): Print child status or termination signal from
22131 variable 'signal', not 'sig'.
22132
c3e735a6
DJ
221332004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22134
22135 * linux-low.c (linux_read_memory): Change return type to
22136 int. Check for and return error from ptrace().
22137 * target.c (read_inferior_memory): Change return type to int. Pass
22138 back return status from the_target->read_memory().
22139 * target.h (struct target_ops): Adapt *read_memory() prototype.
22140 Update comment.
22141 (read_inferior_memory): Adapt prototype.
22142 * server.c (main): Return an error packet if
22143 read_inferior_memory() returns an error.
22144
a59d1c82
DJ
221452004-03-04 Daniel Jacobowitz <drow@mvista.com>
22146
22147 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22148 Unify with other clean targets.
22149
dc3f8883
DJ
221502004-02-29 Daniel Jacobowitz <drow@mvista.com>
22151
22152 * server.c (handle_v_cont): Call set_desired_inferior.
22153
89a208da
DJ
221542004-02-29 Daniel Jacobowitz <drow@mvista.com>
22155
22156 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22157
62ea82f5
DJ
221582004-02-29 Daniel Jacobowitz <drow@mvista.com>
22159
22160 * linux-low.c (linux_wait): Unblock async I/O.
22161 (linux_resume): Block and enable async I/O.
22162 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22163 * server.h (block_async_io, unblock_async_io): Add prototypes.
22164
6910d122
DJ
221652004-02-29 Daniel Jacobowitz <drow@mvista.com>
22166
22167 * remote-utils.c (remote_open): Print a status notice after
22168 opening a TCP port.
22169 * server.c (attach_inferior): Print a status notice after
22170 attaching.
22171
221722004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
22173
22174 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22175
c89dc5d4
DJ
221762004-02-26 Daniel Jacobowitz <drow@mvista.com>
22177
22178 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22179 error packet.
22180 * server.c, target.h: Update copyright years.
22181
4b8dad4a
RM
221822004-02-25 Roland McGrath <roland@redhat.com>
22183
22184 * target.h (struct target_ops): New member `read_auxv'.
22185 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22186 * linux-low.c (linux_read_auxv): New function.
22187 (linux_target_ops): Initialize `read_auxv' member to that.
22188
d7446758
JB
221892004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22190
22191 Committed by Jim Blandy <jimb@redhat.com>.
22192
22193 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 22194 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
22195 instead of GPR_SIZE to distiguish s390 and s390x targets.
22196
5544ad89
DJ
221972004-01-31 Daniel Jacobowitz <drow@mvista.com>
22198
22199 * linux-low.c: Update copyright year.
22200 (check_removed_breakpoint): Clear pending_is_breakpoint.
22201 (linux_set_resume_request, linux_queue_one_thread)
22202 (resume_status_pending_p): New functions.
22203 (linux_continue_one_thread): Use process->resume.
22204 (linux_resume): Only resume threads if there are no pending events.
22205 * linux-low.h (struct process_info): Add resume request
22206 pointer.
22207
2a68b70e
DJ
222082004-01-30 Daniel Jacobowitz <drow@mvista.com>
22209
22210 * regcache.c (new_register_cache): Clear the allocated register
22211 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22212
64386c31
DJ
222132003-10-13 Daniel Jacobowitz <drow@mvista.com>
22214
22215 * linux-low.c (linux_resume): Take a struct thread_resume *
22216 argument.
22217 (linux_wait): Update call.
22218 (resume_ptr): New static variable.
22219 (linux_continue_one_thread): Renamed from
22220 linux_continue_one_process. Use resume_ptr.
22221 (linux_resume): Use linux_continue_one_thread.
22222 * server.c (handle_v_cont, handle_v_requests): New functions.
22223 (myresume): New function.
22224 (main): Handle 'v' case.
22225 * target.h (struct thread_resume): New type.
22226 (struct target_ops): Change argument of "resume" to struct
22227 thread_resume *.
22228 (myresume): Delete macro.
22229
c938e9b0
L
222302003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22231
22232 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22233 (uninstall): Support DESTDIR.
22234
7f313d07
BC
22235Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22236
22237 * configure.srv: Add xscale*linux copy of arm*linux entry.
22238
3b2fc2ea
DJ
222392003-07-24 Daniel Jacobowitz <drow@mvista.com>
22240
22241 * linux-arm-low.c (arm_reinsert_addr): New function.
22242 (the_low_target): Add arm_reinsert_addr.
22243
1c0a559e
MK
222442003-07-08 Mark Kettenis <kettenis@gnu.org>
22245
22246 * mem-break.c: Remove whitespace at end of file.
22247
43d5792c
DJ
222482003-06-28 Daniel Jacobowitz <drow@mvista.com>
22249
22250 * configure.in: Check whether we need to prototype strerror.
22251 * server.h: Optionally prototype strerror.
22252 * gdbreplay.c (perror_with_name): Use strerror.
22253 * linux-low.c (linux_attach_lwp): Use strerror.
22254 * utils.c (perror_with_name): Use strerror.
22255 * config.in, configure: Regenerated.
22256
c8a86edf
DJ
222572003-06-28 Daniel Jacobowitz <drow@mvista.com>
22258
22259 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22260 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22261
73d37363
DJ
222622003-06-20 Daniel Jacobowitz <drow@mvista.com>
22263
22264 * Makefile.in (SFILES): Update.
22265 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22266 low-sun3.c: Remove files.
22267
6ad8ae5c
DJ
222682003-06-17 Daniel Jacobowitz <drow@mvista.com>
22269
22270 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22271 (linux_detach_one_process, linux_detach): New functions.
22272 (linux_target_ops): Add linux_detach.
22273 * server.c (main): Handle 'D' packet.
22274 * target.h (struct target_ops): Add "detach" member.
22275 (detach_inferior): Define.
22276
1581182a
MK
222772003-06-13 Mark Kettenis <kettenis@gnu.org>
22278
22279 From Kelley Cook <kelleycook@wideopenwest.com>:
22280 * configure.srv: Accept i[34567]86 variants.
22281
e5379b03
DJ
222822003-06-05 Daniel Jacobowitz <drow@mvista.com>
22283
22284 * linux-low.c (linux_wait_for_event): Correct comment typos.
22285 (linux_resume_one_process): Call check_removed_breakpoint.
22286 (linux_send_signal): New function.
22287 (linux_target_ops): Add linux_send_signal.
22288 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22289 of kill.
22290 * target.h (struct target_ops): Add send_signal.
22291
2ff29de4
JB
222922003-05-29 Jim Blandy <jimb@redhat.com>
22293
22294 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22295 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22296 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22297 away part of the register's value.
22298
254787d4
DJ
222992003-03-26 Daniel Jacobowitz <drow@mvista.com>
22300
22301 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22302 (linux_wait_for_event, linux_init_signals): Likewise.
22303
94e10508
DJ
223042003-03-17 Daniel Jacobowitz <drow@mvista.com>
22305
22306 * configure.in: Check for stdlib.h.
22307 * configure: Regenerated.
22308 * config.in: Regenerated.
22309
4c0711e0
DJ
223102003-01-04 Andreas Schwab <schwab@suse.de>
22311
22312 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22313
ef66e766
AC
223142003-01-02 Andrew Cagney <ac131313@redhat.com>
22315
22316 * Makefile.in: Remove obsolete code.
22317
a1358604
DJ
223182002-11-20 Daniel Jacobowitz <drow@mvista.com>
22319
22320 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22321 defined(PT_FPR0_HI).
22322
23ce3b1c
DJ
223232002-11-17 Stuart Hughes <seh@zee2.com>
22324
22325 * linux-arm-low.c (arm_num_regs): Increase.
22326 (arm_regmap): Include status register.
22327
223282002-11-17 Daniel Jacobowitz <drow@mvista.com>
22329
22330 * linux-low.c (register_addr): Remove incorrect -1 check.
22331
a9fa9f7d
DJ
223322002-08-29 Daniel Jacobowitz <drow@mvista.com>
22333
22334 * linux-low.c (linux_create_inferior): Call setpgid. Return
22335 the new PID.
22336 (unstopped_p, linux_signal_pid): Remove.
22337 (linux_target_ops): Remove linux_signal_pid.
22338 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22339 global instead of target method.
22340 * target.h (struct target_ops): Remove signal_pid. Update comment
22341 for create_inferior.
22342 * server.c (signal_pid): New variable.
22343 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22344 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22345 (attach_inferior): Set signal_pid.
22346
17574093
DJ
223472002-08-23 Daniel Jacobowitz <drow@mvista.com>
22348
22349 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22350
223512002-08-20 Jim Blandy <jimb@redhat.com>
22352
22353 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22354 default for this.
22355
223562002-08-01 Andrew Cagney <cagney@redhat.com>
22357
22358 * Makefile.in: Make chill references obsolete.
22359
223602002-07-24 Kevin Buettner <kevinb@redhat.com>
22361
22362 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22363 * configure: Regenerate.
22364 * config.in: Regenerate.
22365
223662002-07-09 David O'Brien <obrien@FreeBSD.org>
22367
22368 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22369 (perror_with_name, remote_close, remote_open, expect, play): Static.
22370
223712002-07-04 Michal Ludvig <mludvig@suse.cz>
22372
4b8dad4a 22373 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22374 byte offsets instead of an array of indexes.
22375 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22376
223772002-06-13 Daniel Jacobowitz <drow@mvista.com>
22378
22379 * regcache.c: Add comment.
22380
223812002-06-11 Daniel Jacobowitz <drow@mvista.com>
22382
22383 * thread-db.c: New file.
22384 * proc-service.c: New file.
22385 * acinclude.m4: New file.
22386 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22387 proc-service.o, and thread-db.o.
22388 (linux-low.o): Add USE_THREAD_DB.
22389 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22390 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22391 * aclocal.m4: Regenerated.
22392 * config.in: Regenerated.
22393 * configure: Regenerated.
22394 * configure.in: Check for proc_service.h, sys/procfs.h,
22395 thread_db.h, and linux/elf.h headrs.
22396 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22397 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22398 Check for -lthread_db and thread support.
22399 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22400 PowerPC, and SuperH.
22401 * i387-fp.c: Constify arguments.
22402 * i387-fp.h: Likewise.
22403 * inferiors.c: (struct thread_info): Renamed from
22404 `struct inferior_info'. Remove PID member. Use generic inferior
22405 list header. All uses updated.
22406 (inferiors, signal_pid): Removed.
22407 (all_threads): New variable.
22408 (get_thread): Define.
22409 (add_inferior_to_list): New function.
22410 (for_each_inferior): New function.
22411 (change_inferior_id): New function.
22412 (add_inferior): Removed.
22413 (remove_inferior): New function.
22414 (add_thread): New function.
22415 (free_one_thread): New function.
22416 (remove_thread): New function.
22417 (clear_inferiors): Use for_each_inferior and free_one_thread.
22418 (find_inferior): New function.
22419 (find_inferior_id): New function.
22420 (inferior_target_data): Update argument type.
22421 (set_inferior_target_data): Likewise.
22422 (inferior_regcache_data): Likewise.
22423 (set_inferior_regcache_data): Likewise.
22424 * linux-low.c (linux_bp_reinsert): Remove.
22425 (all_processes, stopping_threads, using_thrads)
22426 (struct pending_signals, debug_threads, pid_of): New.
22427 (inferior_pid): Replace with macro.
22428 (struct inferior_linux_data): Remove.
22429 (get_stop_pc, add_process): New functions.
22430 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22431 Use add_process and add_thread.
22432 (linux_attach_lwp): New function, based on old linux_attach. Use
22433 add_process and add_thread. Set stop_expected for new threads.
22434 (linux_attach): New function.
22435 (linux_kill_one_process): New function.
22436 (linux_kill): Kill all LWPs.
22437 (linux_thread_alive): Use find_inferior_id.
22438 (check_removed_breakpoints, status_pending_p): New functions.
22439 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22440 Update. Use WNOHANG. Wait for cloned processes also. Update process
22441 struct for the found process.
22442 (linux_wait_for_event): New function.
22443 (linux_wait): Use it. Support LWPs.
22444 (send_sigstop, wait_for_sigstop, stop_all_processes)
22445 (linux_resume_one_process, linux_continue_one_process): New functions.
22446 (linux_resume): Support LWPs.
22447 (REGISTER_RAW_SIZE): Remove.
22448 (fetch_register): Use register_size instead. Call supply_register.
22449 (usr_store_inferior_registers): Likewise. Call collect_register.
22450 Fix recursive case.
22451 (regsets_fetch_inferior_registers): Improve error message.
22452 (regsets_store_inferior_registers): Add debugging.
22453 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22454 (unstopped_p, linux_signal_pid): New functions.
22455 (linux_target_ops): Add linux_signal_pid.
22456 (linux_init_signals): New function.
22457 (initialize_low): Call it. Initialize using_threads.
22458 * regcache.c (inferior_regcache_data): Add valid
22459 flag.
22460 (get_regcache): Fetch registers lazily. Add fetch argument
22461 and update all callers.
22462 (regcache_invalidate_one, regcache_invalidate): New
22463 functions.
22464 (new_register_cache): Renamed from create_register_cache.
22465 Return the new regcache.
22466 (free_register_cache): Change argument to a void *.
22467 (registers_to_string, registers_from_string): Call get_regcache
22468 with fetch flag set.
22469 (register_data): Make static. Pass fetch flag to get_regcache.
22470 (supply_register): Call get_regcache with fetch flag clear.
22471 (collect_register): Call get_regcache with fetch flag set.
22472 (collect_register_as_string): New function.
22473 * regcache.h: Update.
22474 * remote-utils.c (putpkt): Flush after debug output and use
22475 stderr.
22476 Handle input interrupts while waiting for an ACK.
22477 (input_interrupt): Use signal_pid method.
22478 (getpkt): Flush after debug output and use stderr.
22479 (outreg): Use collect_register_as_string.
22480 (new_thread_notify, dead_thread_notify): New functions.
22481 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22482 and general_thread.
22483 (look_up_one_symbol): Flush after debug output.
22484 * server.c (step_thread, server_waiting): New variables.
22485 (start_inferior): Don't use signal_pid. Update call to mywait.
22486 (attach_inferior): Update call to mywait.
22487 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22488 (main): Don't fetch/store registers explicitly. Use
22489 set_desired_inferior. Support proposed ``Hs'' packet. Update
22490 calls to mywait.
22491 * server.h: Update.
22492 (struct inferior_list, struct_inferior_list_entry): New.
22493 * target.c (set_desired_inferior): New.
22494 (write_inferior_memory): Constify.
22495 (mywait): New function.
22496 * target.h: Update.
22497 (struct target_ops): New signal_pid method.
22498 (mywait): Removed macro, added prototype.
22499
22500 * linux-low.h (regset_func): Removed.
22501 (regset_fill_func, regset_store_func): New.
22502 (enum regset_type): New.
22503 (struct regset_info): Add type field. Use new operation types.
22504 (struct linux_target_ops): stop_pc renamed to get_pc.
22505 Add decr_pc_after_break and breakpoint_at.
22506 (get_process, get_thread_proess, get_process_thread)
22507 (strut process_info, all_processes, linux_attach_lwp)
22508 (thread_db_init): New.
22509
22510 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22511 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22512 (the_low_target): Add new members.
22513 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22514 (i386_store_fpxregset): Constify.
22515 (target_regsets): Add new kind identifier.
22516 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22517 (i386_set_pc): Add debugging.
22518 (i386_breakpoint_at): New function.
22519 (the_low_target): Add new members.
22520 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22521 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22522 (mips_breakpoint_at): New.
22523 (the_low_target): Add new members.
22524 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22525 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22526 (the_low_target): Add new members.
22527 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22528 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22529 (the_low_target): Add new members.
22530 * linux-x86-64-low.c (target_regsets): Add new kind
22531 identifier.
22532
225332002-05-15 Daniel Jacobowitz <drow@mvista.com>
22534
22535 From Martin Pool <mbp@samba.org>:
22536 * server.c (gdbserver_usage): New function.
22537 (main): Call it.
22538
225392002-05-14 Daniel Jacobowitz <drow@mvista.com>
22540
22541 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22542 stop_at -> stop_pc.
22543
225442002-05-04 Andrew Cagney <ac131313@redhat.com>
22545
22546 * Makefile.in: Remove obsolete code.
22547
225482002-04-24 Michal Ludvig <mludvig@suse.cz>
22549
22550 * linux-low.c (regsets_fetch_inferior_registers),
22551 (regsets_store_inferior_registers): Removed cast to int from
22552 ptrace() calls.
22553 * regcache.h: Added declaration of struct inferior_info.
22554
225552002-04-20 Daniel Jacobowitz <drow@mvista.com>
22556
22557 * inferiors.c (struct inferior_info): Add regcache_data.
22558 (add_inferior): Call create_register_cache.
22559 (clear_inferiors): Call free_register_cache.
22560 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22561 * regcache.c (struct inferior_regcache_data): New.
22562 (registers): Remove.
22563 (get_regcache): New function.
22564 (create_register_cache, free_register_cache): New functions.
22565 (set_register_cache): Don't initialize the register cache here.
22566 (registers_to_string, registers_from_string, register_data): Call
22567 get_regcache.
22568 * regcache.h: Add prototypes.
22569 * server.h: Likewise.
22570
225712002-04-20 Daniel Jacobowitz <drow@mvista.com>
22572
22573 * mem-break.c: New file.
22574 * mem-break.h: New file.
22575 * Makefile.in: Add mem-break.o rule; update server.h
22576 dependencies.
22577 * inferiors.c (struct inferior_info): Add target_data
22578 member.
22579 (clear_inferiors): Free target_data member if set.
22580 (inferior_target_data, set_inferior_target_data): New functions.
22581 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22582 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22583 * linux-low.c (linux_bp_reinsert): New variable.
22584 (struct inferior_linux_data): New.
22585 (linux_create_inferior): Use set_inferior_target_data.
22586 (linux_attach): Likewise. Call add_inferior.
22587 (linux_wait_for_one_inferior): New function.
22588 (linux_wait): Call it.
22589 (linux_write_memory): Add const.
22590 (initialize_low): Call set_breakpoint_data.
22591 * linux-low.h (struct linux_target_ops): Add breakpoint
22592 handling members.
22593 * server.c (attach_inferior): Remove extra add_inferior
22594 call.
22595 * server.h: Include mem-break.h. Update inferior.c
22596 prototypes.
22597 * target.c (read_inferior_memory)
22598 (write_inferior_memory): New functions.
22599 * target.h (read_inferior_memory)
22600 (write_inferior_memory): Change macros to prototypes.
22601 (struct target_ops): Update comments. Add const to write_memory
22602 definition.
22603
226042002-04-11 Daniel Jacobowitz <drow@mvista.com>
22605
22606 * linux-low.c (usr_store_inferior_registers): Support
22607 registers which are allowed to fail to store.
22608 * linux-low.h (linux_target_ops): Likewise.
22609 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22610 (ppc_cannot_store_register): FPSCR may not be storable.
22611
226122002-04-09 Daniel Jacobowitz <drow@mvista.com>
22613
22614 * server.h: Include <string.h> if HAVE_STRING_H.
22615 * ChangeLog: Correct paths in last ChangeLog entry.
22616
226172002-04-09 Daniel Jacobowitz <drow@mvista.com>
22618
22619 * linux-low.h: Remove obsolete prototypes.
22620 (struct linux_target_ops): New.
22621 (extern the_low_target): New.
22622 * linux-low.c (num_regs, regmap): Remove declarations.
22623 (register_addr): Use the_low_target explicitly.
22624 (fetch_register): Likewise.
22625 (usr_fetch_inferior_registers): Likewise.
22626 (usr_store_inferior_registers): Likewise.
22627 * linux-arm-low.c (num_regs): Remove.
22628 (arm_num_regs): Define.
22629 (arm_regmap): Renamed from regmap, made static.
22630 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22631 made static.
22632 (arm_cannot_store_register): Renamed from cannot_store_register,
22633 made static.
22634 (the_low_target): New.
22635 * linux-i386-low.c (num_regs): Remove.
22636 (i386_num_regs): Define.
22637 (i386_regmap): Renamed from regmap, made static.
22638 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22639 made static.
22640 (i386_cannot_store_register): Renamed from cannot_store_register,
22641 made static.
22642 (the_low_target): New.
22643 * linux-ia64-low.c (num_regs): Remove.
22644 (ia64_num_regs): Define.
22645 (ia64_regmap): Renamed from regmap, made static.
22646 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22647 made static.
22648 (ia64_cannot_store_register): Renamed from cannot_store_register,
22649 made static.
22650 (the_low_target): New.
22651 * linux-m68k-low.c (num_regs): Remove.
22652 (m68k_num_regs): Define.
22653 (m68k_regmap): Renamed from regmap, made static.
22654 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22655 made static.
22656 (m68k_cannot_store_register): Renamed from cannot_store_register,
22657 made static.
22658 (the_low_target): New.
22659 * linux-mips-low.c (num_regs): Remove.
22660 (mips_num_regs): Define.
22661 (mips_regmap): Renamed from regmap, made static.
22662 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22663 made static.
22664 (mips_cannot_store_register): Renamed from cannot_store_register,
22665 made static.
22666 (the_low_target): New.
22667 * linux-ppc-low.c (num_regs): Remove.
22668 (ppc_num_regs): Define.
22669 (ppc_regmap): Renamed from regmap, made static.
22670 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22671 made static.
22672 (ppc_cannot_store_register): Renamed from cannot_store_register,
22673 made static.
22674 (the_low_target): New.
22675 * linux-s390-low.c (num_regs): Remove.
22676 (s390_num_regs): Define.
22677 (s390_regmap): Renamed from regmap, made static.
22678 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22679 made static.
22680 (s390_cannot_store_register): Renamed from cannot_store_register,
22681 made static.
22682 (the_low_target): New.
22683 * linux-sh-low.c (num_regs): Remove.
22684 (sh_num_regs): Define.
22685 (sh_regmap): Renamed from regmap, made static.
22686 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22687 made static.
22688 (sh_cannot_store_register): Renamed from cannot_store_register,
22689 made static.
22690 (the_low_target): New.
22691 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22692 (the_low_target): New.
22693
226942002-04-09 Daniel Jacobowitz <drow@mvista.com>
22695
22696 * Makefile.in: Add stamp-h target.
22697 * configure.in: Create stamp-h.
22698 * configure: Regenerated.
22699
227002002-04-09 Daniel Jacobowitz <drow@mvista.com>
22701
22702 * inferiors.c: New file.
22703 * target.c: New file.
22704 * target.h: New file.
22705 * Makefile.in: Add target.o and inferiors.o. Update
22706 dependencies.
22707 * linux-low.c (inferior_pid): New static variable,
22708 moved from server.c.
22709 (linux_create_inferior): Renamed from create_inferior.
22710 Call add_inferior. Return 0 on success instead of a PID.
22711 (linux_attach): Renamed from myattach.
22712 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22713 (linux_thread_alive): Renamed from mythread_alive.
22714 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22715 child dies.
22716 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22717 (regsets_store_inferior_registers): Correct error message.
22718 Add missing ``return 0''.
22719 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22720 (linux_store_registers): Renamed from store_inferior_registers.
22721 (linux_read_memory): Renamed from read_inferior_memory.
22722 (linux_write_memory): Renamed from write_inferior_memory.
22723 (linux_target_ops): New structure.
22724 (initialize_low): Call set_target_ops ().
22725 * remote-utils.c (unhexify): New function.
22726 (hexify): New function.
22727 (input_interrupt): Send signals to ``signal_pid''.
22728 * server.c (inferior_pid): Remove.
22729 (start_inferior): Update create_inferior call.
22730 (attach_inferior): Call add_inferior.
22731 (handle_query): New function.
22732 (main): Call handle_query for `q' packets.
22733 * server.h: Include "target.h". Remove obsolete prototypes.
22734 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22735
227362002-04-09 Daniel Jacobowitz <drow@mvista.com>
22737
22738 * Makefile.in: Add WARN_CFLAGS. Update configury
22739 dependencies.
22740 * configure.in: Check for <string.h>
22741 * configure: Regenerate.
22742 * config.in: Regenerate.
22743 * gdbreplay.c: Include needed system headers.
22744 (remote_open): Remove strchr prototype.
22745 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22746 * regcache.c (supply_register): Change buf argument to const void *.
22747 (supply_register_by_name): Likewise.
22748 (collect_register): Change buf argument to void *.
22749 (collect_register_by_name): Likewise.
22750 * regcache.h: Add missing prototypes.
22751 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22752 * server.c (handle_query): New function.
22753 (attached): New static variable, moved out of main.
22754 (main): Quiet longjmp clobber warnings.
22755 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22756 * utils.c (error): Remove NORETURN.
22757 (fatal): Likewise.